JP6802072B2 - Data input / output control device and control method - Google Patents

Data input / output control device and control method Download PDF

Info

Publication number
JP6802072B2
JP6802072B2 JP2017005183A JP2017005183A JP6802072B2 JP 6802072 B2 JP6802072 B2 JP 6802072B2 JP 2017005183 A JP2017005183 A JP 2017005183A JP 2017005183 A JP2017005183 A JP 2017005183A JP 6802072 B2 JP6802072 B2 JP 6802072B2
Authority
JP
Japan
Prior art keywords
data
terminal
host
terminals
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017005183A
Other languages
Japanese (ja)
Other versions
JP2018116356A (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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2017005183A priority Critical patent/JP6802072B2/en
Publication of JP2018116356A publication Critical patent/JP2018116356A/en
Application granted granted Critical
Publication of JP6802072B2 publication Critical patent/JP6802072B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本発明は、データ入出力制御装置および制御方法に関し、特に、ホストと複数の端末がシリアル通信する環境におけるデータ入出力制御装置および制御方法に関する。 The present invention relates to a data input / output control device and a control method, and more particularly to a data input / output control device and a control method in an environment in which a host and a plurality of terminals communicate serially.

一般に、電子機器に実装された基板内及び基板間におけるデバイス間での信号の通信方式として、I2C(Inter-Integrated Circuit)通信方式やSPI(Serial Peripheral Interface)通信方式などのシリアル通信方式が広く利用されている。また、このようなシリアル通信方式はマスタ−スレーブ間通信においても使用されており、この場合は少なくとも一つ以上の端末と一つ以上のホストとの組み合わせによって構成される。例えば、大規模システムを扱う基板に実装された端末側のデバイスである複数のDSP(Digital Signal Processor)が、ホスト側のデバイスである同一データを保持している複数のROM(Read Only Memory)から起動データを読み出す通信形態が考えられる。 In general, serial communication methods such as I2C (Inter-Integrated Circuit) communication method and SPI (Serial Peripheral Interface) communication method are widely used as signal communication methods within and between devices mounted on electronic devices. Has been done. In addition, such a serial communication method is also used in master-slave communication, and in this case, it is composed of a combination of at least one or more terminals and one or more hosts. For example, multiple DSPs (Digital Signal Processors), which are terminals-side devices mounted on a board that handles a large-scale system, are from multiple ROMs (Read Only Memory), which are host-side devices and hold the same data. A communication form for reading startup data is conceivable.

デバイス間でシリアル通信を行うデバイスの組み合わせが複数存在し、それぞれが1対1で同一データを通信するような場合、低消費電力化、回路規模削減、部品点数削減の観点から、ホスト側のデバイスの数を削減することが望ましいとされている。 When there are multiple combinations of devices that perform serial communication between devices and each communicates the same data on a one-to-one basis, the device on the host side is used from the viewpoints of low power consumption, reduction of circuit scale, and reduction of the number of parts. It is desirable to reduce the number of.

通常、シリアル通信方式においてデバイスを削減する方法としては、デバイス間のシリアル接続をバス接続方式とすることで実現している。バス接続方式では、1台のホストに対して複数台の端末が、一つの伝送路上で接続されている状態となっており、ホストは各端末と順番に通信を行う。 Usually, as a method of reducing the number of devices in the serial communication method, the serial connection between the devices is realized by the bus connection method. In the bus connection method, a plurality of terminals are connected to one host on one transmission path, and the host communicates with each terminal in turn.

このようなシリアル通信を用いた通信システムが特許文献1乃至特許文献3に開示されている。 A communication system using such serial communication is disclosed in Patent Documents 1 to 3.

特許文献1は、センサとマイクロプロセッサとの間の通信をI2C通信のみならずSPI通信も可能なように構築した通信システムに関する技術である。I2CデバイスおよびSPIデバイスの双方をマスタとした通信システムでは、I2C通信とSPI通信とが非同期で動作するため、I2C通信の信号とSPI通信の信号とが衝突するおそれがある。そこで、特許文献1は、I2CデバイスおよびSPIデバイスの双方をマスタとした通信システムにおいて、選択回路を配備して、I2C通信の信号とSPI通信の信号とが衝突するおそれがないようにした通信システムを開示する。 Patent Document 1 is a technology related to a communication system constructed so that communication between a sensor and a microprocessor can be performed not only by I2C communication but also by SPI communication. In a communication system using both an I2C device and an SPI device as a master, since the I2C communication and the SPI communication operate asynchronously, there is a possibility that the I2C communication signal and the SPI communication signal collide with each other. Therefore, Patent Document 1 is a communication system in which a selection circuit is provided in a communication system using both an I2C device and an SPI device as a master so that the I2C communication signal and the SPI communication signal do not collide with each other. To disclose.

特許文献2は、マスタから複数のスレーブに対して、I2Cバスを用いたシリアル通信によって発行された同時複数制御を指示するコマンドによって、複数のスレーブを同時制御可能にしたシリアル通信システムを開示する。特許文献2が開示する技術によれば、複数の機能から成る制御プログラムを各スレーブに予め記憶しておき、マスタが複数のスレーブに対して、実行すべき制御プログラムの機能に対応するプログラムステップを、シリアル通信を介して指定する。そして、複数のスレーブの各々が指定されたプログラムステップを同時に実行することで、マスタが複数のスレーブに対して実行させるべき機能を同時に制御することができる。 Patent Document 2 discloses a serial communication system in which a plurality of slaves can be simultaneously controlled by a command issued by a master to a plurality of slaves for simultaneous multiple control by serial communication using an I2C bus. According to the technique disclosed in Patent Document 2, a control program composed of a plurality of functions is stored in each slave in advance, and a program step corresponding to the function of the control program to be executed by the master for the plurality of slaves is provided. , Specified via serial communication. Then, by simultaneously executing the designated program steps for each of the plurality of slaves, it is possible to simultaneously control the functions to be executed by the master for the plurality of slaves.

特許文献3は、親ノードと、通信回線を介して親ノードにマルチドロップ接続されてコマンド信号を受信する複数の子ノードとがポーリング/セレクティング方式でシリアル通信を行う技術を開示する。特許文献3は、親ノードと通信速度が互いに異なる複数の子ノードとが効率よく通信を行うことができる通信システムを実現する。特許文献3が開示する技術では、親ノードが各子ノードの通信速度に関する情報を記憶し、通信速度の速い子ノード宛の信号から順に高い優先度を予め設定する。そして、親ノードがバッファに格納された送信待ち信号に対して優先度に基づいて設定された送信順位に従って信号を送信することで、通信速度の速い子ノード宛の信号が優先的に送信されて効率的な通信が行われる。 Patent Document 3 discloses a technique in which a parent node and a plurality of child nodes that are multi-drop-connected to the parent node via a communication line and receive a command signal perform serial communication by a polling / selection method. Patent Document 3 realizes a communication system in which a parent node and a plurality of child nodes having different communication speeds can efficiently communicate with each other. In the technique disclosed in Patent Document 3, the parent node stores information on the communication speed of each child node, and sets a higher priority in advance in order from the signal addressed to the child node having the faster communication speed. Then, the parent node transmits a signal to the transmission waiting signal stored in the buffer according to the transmission order set based on the priority, so that the signal addressed to the child node having a high communication speed is preferentially transmitted. Efficient communication is performed.

特開2016-4388号公報Japanese Unexamined Patent Publication No. 2016-4388 特開2008-217757号公報Japanese Unexamined Patent Publication No. 2008-217757 特開2010-258811号公報Japanese Unexamined Patent Publication No. 2010-258811

1台のホストに対して複数台の端末が一つの伝送路上で接続されるバス接続方式では、ホストが複数台の端末とシリアル通信を行う場合、ホストと各端末との通信は逐次処理となる。そのため、ホストは通信中の端末との通信処理の完了を待たなければならず、次の端末と通信を開始するまでに待ち時間が発生し、ホストと接続される端末数が増えるに連れて通信に掛かる時間が増加するという課題があった。 In the bus connection method in which multiple terminals are connected to one host on one transmission path, when the host performs serial communication with multiple terminals, the communication between the host and each terminal is a sequential process. .. Therefore, the host must wait for the completion of communication processing with the terminal being communicated, and a waiting time occurs before starting communication with the next terminal, and communication as the number of terminals connected to the host increases. There was a problem that the time required for the operation increased.

図1は、本発明の課題を説明するためのシリアル通信環境の構成例を示すブロック図である。例えば、図1に示すような1台のホスト200に複数台の端末101〜10nがそれぞれバス接続された構成でシリアル通信を行う場合、ホスト200が端末101と通信を行っている間は、その他の端末102〜10nはホスト200と通信をすることが出来ない。そして、端末101の通信処理が完了するのを待ってから次の端末がホスト200と通信を行う。そのため、ホスト200と接続される端末の数が増えた場合、全体としての処理時間は、端末の数が増えるにつれて、ホスト200が一つの端末との通信に掛かる時間ずつ増加することになる。このことは、複数台の端末が同一内容の端末データを1台のホストに送信し、ホストから各端末に同一内容のホストデータを返送する形態のシリアル通信を行う環境においてもいえる。 FIG. 1 is a block diagram showing a configuration example of a serial communication environment for explaining the subject of the present invention. For example, in the case of performing serial communication in a configuration in which a plurality of terminals 101 to 10n are connected to one host 200 by a bus as shown in FIG. 1, while the host 200 is communicating with the terminal 101, the other Terminals 102 to 10n cannot communicate with the host 200. Then, after waiting for the communication processing of the terminal 101 to be completed, the next terminal communicates with the host 200. Therefore, when the number of terminals connected to the host 200 increases, the processing time as a whole increases by the time required for the host 200 to communicate with one terminal as the number of terminals increases. This also applies to an environment in which a plurality of terminals transmit terminal data having the same content to one host and perform serial communication in which the host returns the host data having the same content to each terminal.

特許文献1は、I2CデバイスおよびSPIデバイスの双方をマスタとした通信システムにおいて、I2C通信の信号とSPI通信の信号とが衝突するおそれがないようにした通信システムを開示する。しかし、特許文献1は複数台の端末と1台のホストがシリアル通信を行う場合の処理時間を短縮することには言及していない。 Patent Document 1 discloses a communication system in which both an I2C device and an SPI device are used as masters so that the I2C communication signal and the SPI communication signal do not collide with each other. However, Patent Document 1 does not mention shortening the processing time when a plurality of terminals and one host perform serial communication.

特許文献2は、マスタから複数のスレーブを同時制御可能にして処理時間を短縮するシリアル通信システムを開示する。特許文献2では、制御プログラムを予め記憶した各スレーブに、実行すべき制御プログラムの機能に対応するプログラムステップをマスタから指示する。そして、複数のスレーブの各々が指示されたプログラムステップを同時に実行するように構成している。しかし、特許文献2が開示する通信システムは、逆方向の通信である、複数のスレーブから1つのマスタ方向の同時通信に関しては言及していない。 Patent Document 2 discloses a serial communication system that enables simultaneous control of a plurality of slaves from a master to shorten processing time. In Patent Document 2, the master instructs each slave in which the control program is stored in advance a program step corresponding to the function of the control program to be executed. Then, each of the plurality of slaves is configured to execute the instructed program step at the same time. However, the communication system disclosed in Patent Document 2 does not mention simultaneous communication from a plurality of slaves to one master direction, which is communication in the reverse direction.

特許文献3は、親ノードと通信速度が互いに異なる複数の子ノードとの通信に際し、親ノードのバッファに格納された送信待ち信号に対して、子ノードの通信速度に応じた優先度で送信する通信システムを開示する。しかし、特許文献3が開示する通信システムは、逆方向の通信である、複数の子ノードから1つの親ノード方向の同時通信および処理時間の短縮に関しては言及していない。 Patent Document 3 transmits a transmission waiting signal stored in a buffer of a parent node with a priority according to the communication speed of the child node when communicating with a plurality of child nodes having different communication speeds from the parent node. Disclose the communication system. However, the communication system disclosed in Patent Document 3 does not mention simultaneous communication from a plurality of child nodes to one parent node and shortening of processing time, which is communication in the reverse direction.

本発明は、複数台の端末と1台のホストが同一内容のデータでシリアル通信を行う環境において、ホストと各端末の相互間の通信における全体としての処理時間を最小限に抑えて通信することを可能とするデータ入出力制御装置および制御方法を提供する。 According to the present invention, in an environment in which a plurality of terminals and one host perform serial communication with the same data, the overall processing time in communication between the host and each terminal is minimized. A data input / output control device and a control method that enable the above are provided.

上記の目的を実現するために、本発明の一形態であるデータ入出力制御装置は、シリアル通信方式を用いて外部との通信を行う複数台の端末と、前記端末のそれぞれの前記端末とデータの送受信を行う1台のホストを接続し、それぞれの前記端末が同時に送信した同一内容の端末データのうちの最初に到着した前記端末データのみを前記ホストに送信し、前記端末データに応じて前記ホストが返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力するデータ中継手段と、それぞれの前記端末に対応して配備され、前記データ中継手段が分配出力する前記ホストデータを蓄積し、送信指示を受けると、蓄積した前記ホストデータを、接続している前記端末に送信するバッファメモリ手段とを含み、前記データ中継手段は、分配出力した前記ホストデータがそれぞれの前記端末に対応する前記バッファメモリ手段に蓄積され、かつ、前記端末データが全ての前記端末から到着したことを識別すると、前記バッファメモリ手段に前記送信指示を出力することを特徴とする。 In order to realize the above object, the data input / output control device according to one embodiment of the present invention includes a plurality of terminals that communicate with the outside using a serial communication method, and each of the terminals and data. One host that transmits and receives is connected, and only the terminal data that arrives first among the terminal data of the same content transmitted simultaneously by each of the terminals is transmitted to the host, and the terminal data is transmitted according to the terminal data. Data relay means that receives host data returned by the host, duplicates the received host data and distributes and outputs it, and the host data that is deployed corresponding to each of the terminals and is distributed and output by the data relay means. When the data is stored and a transmission instruction is received, the stored host data is transmitted to the connected terminal including a buffer memory means, and the data relay means distributes and outputs the host data to the respective terminals. It is characterized in that when it is stored in the corresponding buffer memory means and it is identified that the terminal data has arrived from all the terminals, the transmission instruction is output to the buffer memory means.

また、本発明の別の形態であるデータ入出力制御方法は、シリアル通信方式を用いて外部との通信を行う複数台の端末のそれぞれの端末が同時に送信する同一内容の端末データのうちの最初に到着した前記端末データのみをホストに送信し、前記端末データに応じて前記ホストが返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力し、それぞれの前記端末に対応して配備されたバッファメモリに、分配出力された前記ホストデータを蓄積し、分配出力した前記ホストデータをそれぞれの前記端末に対応する前記バッファメモリに蓄積し、かつ、前記端末データが全ての前記端末から到着したことを識別すると、前記バッファメモリに蓄積している前記ホストデータを、接続している前記端末に送信することを特徴とする。 Further, the data input / output control method, which is another embodiment of the present invention, is the first of the terminal data having the same content transmitted simultaneously by each terminal of a plurality of terminals that communicate with the outside using the serial communication method. Only the terminal data arriving at is transmitted to the host, the host data returned by the host is received according to the terminal data, the received host data is duplicated and distributed and output, and corresponding to each of the terminals. The distributed and output host data is stored in the distributed buffer memory, the distributed and output host data is stored in the buffer memory corresponding to each terminal, and the terminal data is all the terminals. When it is identified that the data has arrived from, the host data stored in the buffer memory is transmitted to the connected terminal.

本発明は、複数台の端末と1台のホストが同一内容のデータでシリアル通信を行う環境において、ホストと各端末の相互間の通信における全体としての処理時間を最小限に抑えることができる。 According to the present invention, in an environment in which a plurality of terminals and one host perform serial communication with the same data, the overall processing time in communication between the host and each terminal can be minimized.

本発明の課題を説明するためのシリアル通信環境の構成例を示すブロック図である。It is a block diagram which shows the structural example of the serial communication environment for demonstrating the subject of this invention. 本発明の第1の実施形態のデータ入出力制御装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the data input / output control device of 1st Embodiment of this invention. 本発明の第1の実施形態のデータ入出力制御方法の動作を説明するフロー図である。It is a flow diagram explaining operation of the data input / output control method of 1st Embodiment of this invention. 本発明の第2の実施形態のデータ入出力制御装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the data input / output control device of the 2nd Embodiment of this invention. 第2の実施形態のデータ入出力制御装置の端末データ制御回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of the terminal data control circuit of the data input / output control device of 2nd Embodiment. 第2の実施形態のデータ入出力制御装置のホストデータ制御回路の構成例を示すブロック図である。It is a block diagram which shows the structural example of the host data control circuit of the data input / output control device of 2nd Embodiment. 端末データ制御回路が、複数台の端末から送信された端末データを、1台のホストに送信する動作を示すフローチャートである。It is a flowchart which shows the operation which the terminal data control circuit transmits terminal data transmitted from a plurality of terminals to one host. ホストデータ制御回路が、1台のホストから受信したホストデータを複数台の端末に送信する動作を示すフローチャートである。It is a flowchart which shows the operation which the host data control circuit transmits the host data received from one host to a plurality of terminals. 本発明の第3の実施形態のデータ入出力制御装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the data input / output control device of the 3rd Embodiment of this invention.

本発明を実施するための形態の概要を説明する。 The outline of the embodiment for carrying out the present invention will be described.

本発明を実施するための形態は、同一のシリアル通信方式を用いて外部との通信を行う複数台の端末と1台のホストの間にデータ中継装置としてのデータ入出力制御装置を配置して、それらの端末とホストの間の通信を実行する。シリアル通信方式としては、送信線と受信線の2本のデータ線を有するSPI方式の場合について説明する。 In a mode for carrying out the present invention, a data input / output control device as a data relay device is arranged between a plurality of terminals and one host that communicate with the outside using the same serial communication method. , Perform communication between those terminals and hosts. As the serial communication method, the case of the SPI method having two data lines, a transmission line and a reception line, will be described.

また、本発明を実施するための形態において適用される通信では、すべての端末からホストに同一内容のデータが送られ、ホストからの応答データもすべての端末に対して同一内容のデータが返送される。例えば、電源起動等で複数の端末がホストから起動データ(同一内容のデータ)を要求する場合が想定される。 Further, in the communication applied in the embodiment of the present invention, the same content data is sent from all terminals to the host, and the response data from the host is also returned to all terminals with the same content data. To. For example, it is assumed that a plurality of terminals request startup data (data with the same contents) from the host when the power is started.

なお、実施の形態は例示であり、開示の装置及び方法は、以下の実施の形態の構成には限定されない。また、図に付した参照符号は理解を助けるための一例として便宜上付記したものであり、なんらの限定を意図するものではない。さらに、図面中の矢印の向きは、一例を示すものであり、ブロック間の信号の向きを限定するものではない。なお、図中の一点鎖線は装置内で伝達される制御信号を示している。 The embodiment is an example, and the disclosed device and method are not limited to the configuration of the following embodiment. In addition, the reference symbols attached to the figures are added for convenience as an example to assist understanding, and are not intended to be limited in any way. Further, the direction of the arrow in the drawing shows an example and does not limit the direction of the signal between blocks. The alternate long and short dash line in the figure indicates the control signal transmitted in the device.

(第1の実施形態)
図2を参照して第1の実施形態のデータ入出力制御装置の構成を説明する。
(First Embodiment)
The configuration of the data input / output control device of the first embodiment will be described with reference to FIG.

本実施形態のデータ入出力制御装置30は、シリアル通信方式を用いて外部との通信を行う複数台の端末10と、複数台の端末10のそれぞれの端末とデータの送受信を行う1台のホスト20と接続する。なお、複数台の端末10のそれぞれを区別する必要がある場合は、端末11、12乃至1nとして説明する。 The data input / output control device 30 of the present embodiment is a plurality of terminals 10 that communicate with the outside using a serial communication method, and one host that transmits / receives data to and from each terminal of the plurality of terminals 10. Connect with 20. When it is necessary to distinguish each of the plurality of terminals 10, the terminals 11, 12 to 1n will be described.

データ入出力制御装置30は、データ中継手段31とバッファメモリ手段32を含んで構成される。 The data input / output control device 30 includes a data relay means 31 and a buffer memory means 32.

データ中継手段31は複数台の端末10のそれぞれの端末11、12乃至1nとシリアル通信線によって接続される。また、データ中継手段31はホスト20とシリアル通信線によって接続される。 The data relay means 31 is connected to the respective terminals 11, 12 to 1n of the plurality of terminals 10 by a serial communication line. Further, the data relay means 31 is connected to the host 20 by a serial communication line.

データ中継手段31は、複数台の端末10のそれぞれの端末11、12乃至1nが同時に送信した同一内容の端末データのうちの最初に到着した端末データのみをホスト20に送信する。ここで、それぞれの端末11、12乃至1nは端末データを同時に送信するが、送信処理の端末毎のばらつきや、端末が実装されている位置によって端末データがデータ中継手段31に到着する時間が若干異なる。このように到着時間が若干異なる端末データのうちの最初に到着した端末データのみをホスト20に送信する。 The data relay means 31 transmits only the first arriving terminal data of the terminal data having the same contents transmitted simultaneously by the terminals 11, 12 to 1n of the plurality of terminals 10 to the host 20. Here, the terminals 11, 12 to 1n simultaneously transmit the terminal data, but the time for the terminal data to arrive at the data relay means 31 is slightly different depending on the variation of the transmission processing for each terminal and the position where the terminals are mounted. different. Of the terminal data whose arrival times are slightly different in this way, only the terminal data that arrives first is transmitted to the host 20.

そして、データ中継手段31は、この端末データに応じてホスト20が返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力する。 Then, the data relay means 31 receives the host data returned by the host 20 in response to the terminal data, duplicates the received host data, and distributes and outputs the received host data.

バッファメモリ手段32は、複数台の端末10のそれぞれの端末11、12乃至1nに対応して配備され、データ中継手段31が分配出力するホストデータを蓄積する。また、バッファメモリ手段32は、送信指示を受けると、蓄積したホストデータを、接続している端末11、12乃至1nに送信する。 The buffer memory means 32 is deployed corresponding to the respective terminals 11, 12 to 1n of the plurality of terminals 10, and stores the host data distributed and output by the data relay means 31. Further, when the buffer memory means 32 receives a transmission instruction, the buffer memory means 32 transmits the accumulated host data to the connected terminals 11, 12 to 1n.

ここで、データ中継手段31は、分配出力したホストデータがそれぞれの端末11、12乃至1nに対応するバッファメモリ手段32に蓄積され、かつ、端末データが複数台の端末10の全ての端末11、12乃至1nから到着したことを識別すると、バッファメモリ手段32に送信指示を出力する。 Here, in the data relay means 31, the distributed output host data is stored in the buffer memory means 32 corresponding to each terminal 11, 12 to 1n, and the terminal data is stored in all the terminals 11 of the plurality of terminals 10. When it is identified that the arrival is from 12 to 1n, a transmission instruction is output to the buffer memory means 32.

次に、図3を参照して第1の実施形態のデータ入出力制御方法の動作を説明する。 Next, the operation of the data input / output control method of the first embodiment will be described with reference to FIG.

第1の実施形態のデータ入出力制御方法は、第1の実施形態のデータ入出力制御装置30が図3の各動作ステップを実行することで実現される。 The data input / output control method of the first embodiment is realized by the data input / output control device 30 of the first embodiment executing each operation step of FIG.

シリアル通信方式を用いて外部との通信を行う複数台の端末のそれぞれの端末が同時に送信する同一内容の端末データのうちの最初に到着した端末データのみをホストに送信する(S101)。 Only the first terminal data of the terminal data of the same content transmitted by each terminal of a plurality of terminals communicating with the outside using the serial communication method is transmitted to the host (S101).

この端末データに応じてホストが返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力する(S102)。 The host data returned by the host according to the terminal data is received, and the received host data is duplicated and distributed and output (S102).

それぞれの端末に対応して配備されたバッファメモリに、分配出力されたホストデータを蓄積する(S103)。 The distributed and output host data is stored in the buffer memory deployed corresponding to each terminal (S103).

分配出力したホストデータをそれぞれの端末に対応するバッファメモリに蓄積し、かつ、端末データが複数台の端末の全ての端末から到着したことを識別すると、バッファメモリに蓄積しているホストデータを、接続している端末に送信する(S104)。 When the distributed output host data is stored in the buffer memory corresponding to each terminal and it is identified that the terminal data has arrived from all the terminals of a plurality of terminals, the host data stored in the buffer memory is stored. It is transmitted to the connected terminal (S104).

本実施形態のデータ入出力制御装置は、複数台の端末のそれぞれの端末が同時に送信した端末データの中から最初に到着したいずれか一つの端末データをホストに送信する。そして、その端末データに応じてホストが返送したホストデータを受信して複製し、それぞれの端末に対応して配備されたバッファメモリに蓄積する。そして、ホストデータをそれぞれの端末に送信するタイミングを確認して、バッファメモリを解放する。ホストデータをそれぞれの端末に送信するタイミングとは、ホストデータを各バッファメモリに蓄積し、しかも、到着時間が若干異なる端末データが全ての端末から到着したことを識別したタイミングである。 The data input / output control device of the present embodiment transmits to the host any one terminal data that arrives first from the terminal data transmitted simultaneously by each terminal of a plurality of terminals. Then, the host data returned by the host according to the terminal data is received, duplicated, and stored in the buffer memory deployed corresponding to each terminal. Then, the buffer memory is released by confirming the timing of transmitting the host data to each terminal. The timing at which the host data is transmitted to each terminal is the timing at which the host data is stored in each buffer memory and it is identified that the terminal data having slightly different arrival times has arrived from all the terminals.

このように、本実施形態では複数台の端末と1台のホストが同一内容のデータでシリアル通信を行う環境において、各端末による逐次処理を行うことなく、ホストと各端末の相互間の通信における全体としての処理時間を最小限に抑えることができる。 As described above, in the present embodiment, in an environment in which a plurality of terminals and one host perform serial communication with the same data, the communication between the host and each terminal is performed without performing sequential processing by each terminal. The processing time as a whole can be minimized.

(第2の実施形態)
次に、図4乃至図8を参照して第2の実施形態を説明する。
(Second Embodiment)
Next, a second embodiment will be described with reference to FIGS. 4 to 8.

図4は、本発明の第2の実施形態のデータ入出力制御装置の構成例を示すブロック図である。 FIG. 4 is a block diagram showing a configuration example of the data input / output control device according to the second embodiment of the present invention.

第2の実施形態のデータ入出力制御装置40は、第1の実施形態のデータ入出力制御装置30と同様に、シリアル通信方式を用いて外部との通信を行う複数台の端末10と、それぞれの端末とデータの送受信を行う1台のホスト20と接続する。なお、複数台の端末10のそれぞれを区別する必要がある場合は、端末11、12乃至1nとして説明する。 The data input / output control device 40 of the second embodiment is the same as the data input / output control device 30 of the first embodiment, with a plurality of terminals 10 communicating with the outside using a serial communication method, respectively. Connects to one host 20 that sends and receives data to and from the terminal. When it is necessary to distinguish each of the plurality of terminals 10, the terminals 11, 12 to 1n will be described.

データ入出力制御装置40は、端末データ制御回路41、ホストデータ制御回路42およびバッファメモリ回路43を含んで構成される。ここで、端末データ制御回路41およびホストデータ制御回路42は、第1の実施形態におけるデータ中継手段31に対応する構成となっている。 The data input / output control device 40 includes a terminal data control circuit 41, a host data control circuit 42, and a buffer memory circuit 43. Here, the terminal data control circuit 41 and the host data control circuit 42 have a configuration corresponding to the data relay means 31 in the first embodiment.

端末データ制御回路41は、複数台の端末10のそれぞれの端末11、12乃至1nとシリアル通信線の受信データラインによって接続され、ホスト20とはシリアル通信線の送信データラインによって接続される。端末データ制御回路41は、複数台の端末10のそれぞれの端末11、12乃至1nから同一内容の端末データを非同期で受信し、最先着の端末データをホスト20に送信する。ここで、「非同期で受信」とは、それぞれの端末11、12乃至1nは端末データを同時に送信するが、端末データ制御回路41に到着する時間にばらつきがあることを意味する。これは、前述したように、送信処理の端末毎のばらつきや、端末が実装されている位置によって端末データの到着時間が若干異なることに起因するものである。 The terminal data control circuit 41 is connected to each of the terminals 11, 12 to 1n of the plurality of terminals 10 by a reception data line of a serial communication line, and is connected to the host 20 by a transmission data line of the serial communication line. The terminal data control circuit 41 asynchronously receives terminal data having the same contents from the terminals 11, 12 to 1n of the plurality of terminals 10, and transmits the first-come-first-served terminal data to the host 20. Here, "asynchronously receiving" means that the terminals 11, 12 to 1n simultaneously transmit terminal data, but the time of arrival at the terminal data control circuit 41 varies. This is because, as described above, the arrival time of the terminal data is slightly different depending on the variation of the transmission processing for each terminal and the position where the terminal is mounted.

また、端末データ制御回路41は、それぞれの端末11、12乃至1nが送信した端末データの到着状況を識別し、全ての端末11、12乃至1nからの端末データの受信完了を確認すると受信完了通知をホストデータ制御回路42に出力する。 Further, the terminal data control circuit 41 identifies the arrival status of the terminal data transmitted by the respective terminals 11, 12 to 1n, and confirms the completion of reception of the terminal data from all the terminals 11, 12 to 1n to notify the reception completion. Is output to the host data control circuit 42.

ホストデータ制御回路42は、ホスト20とシリアル通信線の受信データラインによって接続され、端末データに応じてホスト20が返送するホストデータを受信する。 The host data control circuit 42 is connected to the host 20 by a reception data line of a serial communication line, and receives host data returned by the host 20 according to the terminal data.

ホストデータ制御回路42は、ホスト20から受信したホストデータを、複数台の端末10の数に応じて複製し、同一内容のホストデータを分配出力する。 The host data control circuit 42 duplicates the host data received from the host 20 according to the number of a plurality of terminals 10, and distributes and outputs the host data having the same contents.

バッファメモリ回路43は、複数台の端末10のそれぞれの端末11、12乃至1nに対応して配備されたFIFO(First In First Out)バッファを備えて構成される。各FIFOバッファはホストデータ制御回路42に接続され、ホストデータ制御回路42が分配出力するホストデータは、個々のFIFOバッファに格納・蓄積される。 The buffer memory circuit 43 includes a FIFO (First In First Out) buffer deployed corresponding to each of the terminals 11, 12 to 1n of the plurality of terminals 10. Each FIFO buffer is connected to the host data control circuit 42, and the host data distributed and output by the host data control circuit 42 is stored and stored in individual FIFO buffers.

ホストデータ制御回路42は、分配出力したホストデータがそれぞれのFIFOバッファに蓄積されたこと、および端末データの受信完了通知を受け取ったことを条件に、バッファメモリ回路43に対して送信指示を出力する。なお、ホストデータ制御回路42は、ホストデータを分配出力したことを以てホストデータがそれぞれのFIFOバッファに蓄積されたと判断してかまわない。または、バッファメモリ回路43が各FIFOバッファの蓄積状況を確認し、全てのFIFOバッファの蓄積データ量が同一量増加したことを以て、ホストデータ制御回路42に蓄積完了通知を出すように構成してもかまわない。 The host data control circuit 42 outputs a transmission instruction to the buffer memory circuit 43 on condition that the distributed and output host data is stored in the respective FIFO buffers and the reception completion notification of the terminal data is received. .. The host data control circuit 42 may determine that the host data has been accumulated in the respective FIFO buffers by distributing and outputting the host data. Alternatively, the buffer memory circuit 43 may be configured to check the accumulation status of each FIFO buffer and issue an accumulation completion notification to the host data control circuit 42 when the accumulated data amount of all the FIFO buffers has increased by the same amount. It doesn't matter.

送信指示を受けたバッファメモリ回路43は、個々のFIFOバッファに蓄積したホストデータを、シリアル通信線の送信データラインによって接続されているそれぞれの端末11、12乃至1nに送信する。 The buffer memory circuit 43 that has received the transmission instruction transmits the host data stored in the individual FIFO buffers to the respective terminals 11, 12 to 1n connected by the transmission data line of the serial communication line.

このように、データ入出力制御装置40は、端末データ制御回路41に最先着した端末データをホスト20に送信し、その端末データに対する返送データであるホストデータを受け取ると、その複製を生成して分配出力する。分配出力されたホストデータは各端末に対応するFIFOバッファに一旦蓄積される。そして、複数台の端末10の全ての端末11、12乃至1nから端末データを受信したことを確認すると、FIFOバッファを解放して、蓄積されているホストデータを一斉に各端末に送信する。 In this way, the data input / output control device 40 transmits the terminal data first arrived at the terminal data control circuit 41 to the host 20, and when it receives the host data which is the return data for the terminal data, it generates a copy thereof. Distribute output. The distributed and output host data is temporarily stored in the FIFO buffer corresponding to each terminal. Then, when it is confirmed that the terminal data has been received from all the terminals 11, 12 to 1n of the plurality of terminals 10, the FIFO buffer is released and the stored host data is transmitted to each terminal all at once.

上述したデータ入出力制御装置40の利用例を簡単に説明する。 An example of using the data input / output control device 40 described above will be briefly described.

電源起動時に複数台の端末10のそれぞれの端末11、12乃至1nが同時に通信を開始し、ホスト20に対してホスト20が備えるメモリのアドレス100番地から101番地、102番地・・・と順番にデータ読み出しを行う場合を例にして説明する。 When the power is turned on, the terminals 11, 12 to 1n of the plurality of terminals 10 start communication at the same time, and the memory addresses 100 to 101, 102, etc. of the memory provided by the host 20 with respect to the host 20 are in order. The case of reading data will be described as an example.

起動後、各端末はリードフラグとアドレス情報(100番地)を含んだ端末データをホスト20に対して送信する。端末データ制御回路41は各端末から受信した端末データの中で最先着の端末データをそのままホスト20へ送信する。また、端末データ制御回路41は各端末が送信した端末データの到着数が、接続されている全ての端末数になるまでカウントし、到着数=端末数になった時にホストデータ制御回路42へ端末データ受信完了通知を出力する。なお、最先着以外の端末データは廃棄される。 After activation, each terminal transmits terminal data including a read flag and address information (address 100) to the host 20. The terminal data control circuit 41 transmits the first terminal data among the terminal data received from each terminal to the host 20 as it is. Further, the terminal data control circuit 41 counts until the number of arrivals of terminal data transmitted by each terminal reaches the total number of connected terminals, and when the number of arrivals = the number of terminals, the terminal is sent to the host data control circuit 42. Output data reception completion notification. In addition, terminal data other than the first-come-first-served basis is discarded.

ホスト20は、最先着で受信した端末データに基づいた処理を実行し、指定されたメモリのアドレス(100番地)に格納されたデータを読み出して、ホストデータとして端末側に返送する。 The host 20 executes a process based on the terminal data received on a first-come-first-served basis, reads the data stored in the designated memory address (address 100), and returns the data as host data to the terminal side.

ホストデータ制御回路42は、ホスト20から受信したホストデータを複数台の端末10の数に応じて複製して分配出力する。分配出力されたホストデータは、ホストデータ制御回路42と接続されているバッファメモリ回路43の各FIFOバッファに蓄積される。ホストデータ制御回路42は、全てのFIFOバッファへのホストデータの蓄積完了と端末データ制御回路41からの端末データ受信完了通知の受信をもって送信指示を出力して全てのFIFOバッファを解放する。これにより、FIFOバッファに蓄積されたホストデータが各端末に送信される。 The host data control circuit 42 duplicates the host data received from the host 20 according to the number of a plurality of terminals 10 and distributes and outputs the host data. The distributed output host data is stored in each FIFO buffer of the buffer memory circuit 43 connected to the host data control circuit 42. The host data control circuit 42 outputs a transmission instruction and releases all the FIFO buffers when the accumulation of host data in all the FIFO buffers is completed and the terminal data reception completion notification is received from the terminal data control circuit 41. As a result, the host data stored in the FIFO buffer is transmitted to each terminal.

複数の端末10やホスト20のそれぞれの自身の視点から見ると、上記の動作は通常の同期式シリアル通信を行っているのと変わらない。そして、各端末はリードフラグと次に読み出すべきアドレス情報(101番地)を含んだ端末データをホスト20に対して送信する動作を、必要データの読み出しが完了するまで順次繰り返して実行する。 From the viewpoint of each of the plurality of terminals 10 and the host 20, the above operation is the same as that of normal synchronous serial communication. Then, each terminal sequentially repeats the operation of transmitting the terminal data including the read flag and the address information (address 101) to be read next to the host 20 until the reading of the necessary data is completed.

このように、本実施形態では、ホスト20はデータ入出力制御装置40を介することにより、接続している端末の数に依存することなく、複数台の端末10の中の一つの端末のデータについて処理を行えば良い。そのため、本実施形態のように構成することで、ホストデータの複製やFIFOバッファの解放のタイミング調整の時間を鑑みても、複数台の端末10と1台のホスト20との間の通信処理時間を大幅に短縮することができる。 As described above, in the present embodiment, the host 20 uses the data input / output control device 40 to control the data of one terminal among the plurality of terminals 10 without depending on the number of connected terminals. You just have to do the processing. Therefore, by configuring as in the present embodiment, the communication processing time between the plurality of terminals 10 and one host 20 is taken into consideration in consideration of the time for duplicating the host data and adjusting the timing for releasing the FIFO buffer. Can be significantly shortened.

続いて、端末データ制御回路41とホストデータ制御回路42について説明する。 Subsequently, the terminal data control circuit 41 and the host data control circuit 42 will be described.

図5は、データ入出力制御装置40の端末データ制御回路41の構成例を示すブロック図である。 FIG. 5 is a block diagram showing a configuration example of the terminal data control circuit 41 of the data input / output control device 40.

端末データ制御回路41は、端末データインタフェース部411、ホストデータインタフェース部412、端末データ選択部413および端末データ受信完了通知部414を含む構成になっている。 The terminal data control circuit 41 is configured to include a terminal data interface unit 411, a host data interface unit 412, a terminal data selection unit 413, and a terminal data reception completion notification unit 414.

端末データインタフェース部411は、複数台の端末10のそれぞれの端末11、12乃至1nに対応して配備され、シリアル通信線の受信データラインによって各端末と接続される。端末データインタフェース部411は、対応する端末から受信した端末データを端末データ選択部413に出力する。また、端末データインタフェース部411は、対応する端末からの端末データを受信したときに、当該端末が送信した端末データが到着したことを示す端末データ受信通知を端末データ受信完了通知部414に出力する。 The terminal data interface unit 411 is provided corresponding to each terminal 11, 12 to 1n of a plurality of terminals 10, and is connected to each terminal by a reception data line of a serial communication line. The terminal data interface unit 411 outputs the terminal data received from the corresponding terminal to the terminal data selection unit 413. Further, when the terminal data interface unit 411 receives the terminal data from the corresponding terminal, it outputs a terminal data reception notification indicating that the terminal data transmitted by the terminal has arrived to the terminal data reception completion notification unit 414. ..

なお、前述したように、起動時間の端末毎のばらつきや、端末の実装位置によって、各端末が送信する端末データの到着時間にはばらつきがある。 As described above, the arrival time of the terminal data transmitted by each terminal varies depending on the variation of the startup time for each terminal and the mounting position of the terminal.

ホストデータインタフェース部412は、シリアル通信線の送信データラインによってホスト20と接続される。 The host data interface unit 412 is connected to the host 20 by the transmission data line of the serial communication line.

端末データ選択部413は、複数台の端末10のそれぞれの端末11、12乃至1nから受信した端末データを入力し、そのうちの一つを選択してホストデータインタフェース部412を介してホスト20に出力する。前述のように、各端末が送信する端末データは全て同一内容のデータであるため、何れか一つの端末データをホスト20に送信すればよい。端末データ選択部413は、複数台の端末10のそれぞれの端末11、12乃至1nが送信した端末データのうち、最先着の端末データを選択して出力する。なお、最先着の端末データを選択して出力した後に到着する他の端末データは廃棄する。 The terminal data selection unit 413 inputs terminal data received from terminals 11, 12 to 1n of each of the plurality of terminals 10, selects one of them, and outputs the terminal data to the host 20 via the host data interface unit 412. To do. As described above, since all the terminal data transmitted by each terminal has the same content, any one terminal data may be transmitted to the host 20. The terminal data selection unit 413 selects and outputs the first-come-first-served terminal data from the terminal data transmitted by the terminals 11, 12 to 1n of the plurality of terminals 10. Note that other terminal data that arrives after selecting and outputting the first-come-first-served terminal data is discarded.

端末データ受信完了通知部414は、複数台の端末10のそれぞれの端末11、12乃至1nが送信した端末データの到着を、対応する端末データインタフェース部411が出力する端末データ受信通知により知ることができる。そして、端末データインタフェース部411に接続された全ての端末11、12乃至1nからの端末データ受信通知を受信することで、全ての端末11、12乃至1nからの端末データが到着したことを識別する。全ての端末11、12乃至1nからの端末データが到着したことを識別した端末データ受信完了通知部414は、端末データ受信完了通知をホストデータ制御回路42へ出力してその旨を通知する。なお、端末データ受信完了通知部414は、端末データインタフェース部411に接続されている端末数を把握しており、端末データを受信した端末の数と比較して全ての端末11、12乃至1nからの端末データが到着したことを識別する。 The terminal data reception completion notification unit 414 can know the arrival of terminal data transmitted by the terminals 11, 12 to 1n of the plurality of terminals 10 by the terminal data reception notification output by the corresponding terminal data interface unit 411. it can. Then, by receiving the terminal data reception notification from all the terminals 11, 12 to 1n connected to the terminal data interface unit 411, it is identified that the terminal data from all the terminals 11, 12 to 1n has arrived. .. The terminal data reception completion notification unit 414 that has identified that the terminal data from all the terminals 11, 12 to 1n has arrived outputs the terminal data reception completion notification to the host data control circuit 42 to notify the fact. The terminal data reception completion notification unit 414 grasps the number of terminals connected to the terminal data interface unit 411, and compares the number of terminals that have received the terminal data with the number of terminals 11, 12 to 1n. Identifies that the terminal data of is arrived.

また、端末データ受信完了通知部414はホストデータ制御回路42からリセット通知を受信する。このリセット通知は、後述するように、ホストデータ制御回路42が図4で説明したバッファメモリ回路43に送信指示を出力して全てのFIFOバッファを解放させた後に、次の通信に備えて関連回路をリセットするものである。そのため、端末データ受信完了通知部414は端末データ受信通知のカウントをリセットするとともに、端末データ選択部413にもリセット通知を送る。端末データ選択部413は、リセット通知の受信により、最先着の端末データ選択に関する情報をリセットして次に送信される端末データの選択に備える。 Further, the terminal data reception completion notification unit 414 receives the reset notification from the host data control circuit 42. As will be described later, this reset notification is a related circuit in preparation for the next communication after the host data control circuit 42 outputs a transmission instruction to the buffer memory circuit 43 described with reference to FIG. 4 to release all the FIFO buffers. Is to reset. Therefore, the terminal data reception completion notification unit 414 resets the count of the terminal data reception notification, and also sends a reset notification to the terminal data selection unit 413. Upon receiving the reset notification, the terminal data selection unit 413 resets the information regarding the first-come-first-served terminal data selection and prepares for the selection of the terminal data to be transmitted next.

次に、ホストデータ制御回路42について説明する。 Next, the host data control circuit 42 will be described.

図6は、データ入出力制御装置40のホストデータ制御回路42の構成例を示すブロック図である。 FIG. 6 is a block diagram showing a configuration example of the host data control circuit 42 of the data input / output control device 40.

ホストデータ制御回路は、ホストデータインタフェース部421、ホストデータ複製部422およびホストデータ送信制御部423を含む構成になっている。 The host data control circuit is configured to include a host data interface unit 421, a host data duplication unit 422, and a host data transmission control unit 423.

ホストデータインタフェース部421は、シリアル通信線の受信データラインによってホスト20と接続される。 The host data interface unit 421 is connected to the host 20 by the reception data line of the serial communication line.

ホストデータ複製部422は、ホストデータインタフェース部421を介してホスト20から受信したホストデータを、接続されているすべての端末の数だけ複製して分配出力する。ここでホスト20から受信するホストデータは、端末データ制御回路41が選択してホスト20に送信した端末データに対する返送データである。 The host data duplication unit 422 duplicates the host data received from the host 20 via the host data interface unit 421 by the number of all connected terminals and distributes and outputs the host data. Here, the host data received from the host 20 is the return data for the terminal data selected by the terminal data control circuit 41 and transmitted to the host 20.

ホストデータ複製部422が分配出力したホストデータは、図4で説明したバッファメモリ回路43の各端末に対応するFIFOバッファに格納され蓄積される。 The host data distributed and output by the host data duplication unit 422 is stored and stored in the FIFO buffer corresponding to each terminal of the buffer memory circuit 43 described with reference to FIG.

ホストデータ複製部422は、複製したホストデータの分配出力が完了すると分配出力完了通知を出力する。ここでは、ホストデータを分配出力したことを以てホストデータがそれぞれのFIFOバッファに蓄積されたと見なしている。もちろん、前述したように、バッファメモリ回路43からFIFOバッファの蓄積完了通知を受信するように構成している場合は、バッファメモリ回路43からの蓄積完了通知受信を以て分配出力完了通知を出力すればよい。 The host data duplication unit 422 outputs a distribution output completion notification when the distribution output of the duplicated host data is completed. Here, it is considered that the host data is accumulated in each FIFO buffer by distributing and outputting the host data. Of course, as described above, when the buffer memory circuit 43 is configured to receive the storage completion notification of the FIFO buffer, the distribution output completion notification may be output by receiving the storage completion notification from the buffer memory circuit 43. ..

ホストデータ送信制御部423は、図5で説明した端末データ制御回路41の端末データ受信完了通知部414から端末データ受信完了通知を受信する。また、ホストデータ送信制御部423は、複製したホストデータの分配出力が完了したことを示す分配出力完了通知をホストデータ複製部422から受信する。 The host data transmission control unit 423 receives the terminal data reception completion notification from the terminal data reception completion notification unit 414 of the terminal data control circuit 41 described with reference to FIG. Further, the host data transmission control unit 423 receives a distribution output completion notification from the host data duplication unit 422 indicating that the distribution output of the duplicated host data has been completed.

ホストデータ送信制御部423は、分配出力完了通知を受信し、かつ、端末データ受信完了通知を受信したときに、図4で説明したバッファメモリ回路43に送信指示を出力して、全てのFIFOバッファを解放させる。これにより、FIFOバッファに蓄積されたホストデータが各端末に送信される。 When the host data transmission control unit 423 receives the distribution output completion notification and receives the terminal data reception completion notification, the host data transmission control unit 423 outputs a transmission instruction to the buffer memory circuit 43 described with reference to FIG. 4 to output all the FIFO buffers. To release. As a result, the host data stored in the FIFO buffer is transmitted to each terminal.

ホストデータ送信制御部423は、送信指示を出力して全てのFIFOバッファを解放させた後に、受信した端末データ受信完了通知と分配出力完了通知を削除し、リセット通知を端末データ制御回路41に送る。これは、前述したように、次の通信に備えて関連回路をリセットするものである。 After outputting the transmission instruction and releasing all the FIFO buffers, the host data transmission control unit 423 deletes the received terminal data reception completion notification and distribution output completion notification, and sends a reset notification to the terminal data control circuit 41. .. This resets the related circuit in preparation for the next communication, as described above.

上述した端末データ制御回路41とホストデータ制御回路42の動作を、それぞれ図7と図8を参照して説明する。 The operations of the terminal data control circuit 41 and the host data control circuit 42 described above will be described with reference to FIGS. 7 and 8, respectively.

図7は、端末データ制御回路41が、複数台の端末から送信された端末データを、1台のホストに送信する動作を示すフローチャートである。 FIG. 7 is a flowchart showing an operation in which the terminal data control circuit 41 transmits terminal data transmitted from a plurality of terminals to one host.

複数台の端末10のそれぞれの端末11、12乃至1nは非同期で通信を開始して、ホスト20に対して端末データを送信する。例えば、電源起動時にホスト20が備えるメモリのアドレス100番地から101番地、102番地・・・と順番にデータ読み出しの処理を行うものとすると、端末データとしてリードフラグとアドレス情報(100番地)を含んだデータを送信する。 Each of the terminals 11, 12 to 1n of the plurality of terminals 10 starts communication asynchronously and transmits terminal data to the host 20. For example, assuming that data reading processing is performed in order from address 100 to address 101, address 102, etc. of the memory provided in the host 20 when the power is turned on, the read flag and address information (address 100) are included as terminal data. Send the data.

各端末は同時に通信を開始するが、起動時間の端末毎のばらつきや、端末の実装位置によってそれぞれの端末データが端末データ制御回路41に到着する時間が若干異なる。端末データ制御回路41では、複数台の端末10のそれぞれの端末11、12乃至1nが送信した端末データを到着順に受信する(S201)。 Each terminal starts communication at the same time, but the time for each terminal data to arrive at the terminal data control circuit 41 is slightly different depending on the variation of the startup time for each terminal and the mounting position of the terminal. The terminal data control circuit 41 receives the terminal data transmitted by the terminals 11, 12 to 1n of the plurality of terminals 10 in the order of arrival (S201).

端末データ制御回路41では、受信した端末データが最先着であるかどうかを確認する(S202)。 The terminal data control circuit 41 confirms whether or not the received terminal data is first-come-first-served (S202).

受信した端末データが最先着のものである場合(S202、Yes)、端末データ制御回路41はこの最先着の端末データをそのままホスト20へ送信する(S203)。そして、ステップS201に戻り、後続の端末データを順次受信する。 When the received terminal data is the first-come-first-served one (S202, Yes), the terminal data control circuit 41 transmits the first-come-first-served terminal data to the host 20 as it is (S203). Then, the process returns to step S201, and subsequent terminal data is sequentially received.

ステップS202の処理で、受信した端末データが最先着のものでない場合、(S202、No)、端末データ制御回路41では、受信した端末データが最後着であるかどうかを確認する(S204)。つまり、端末データ制御回路41は各端末が送信した端末データの到着数が、接続されている全ての端末数になるまでカウントし、到着数=端末数になったときに、最後着の端末データを受信したことを識別する。 If the received terminal data is not the first-come-first-served one in the process of step S202 (S202, No), the terminal data control circuit 41 confirms whether or not the received terminal data is the last-arrival (S204). That is, the terminal data control circuit 41 counts until the number of arrivals of terminal data transmitted by each terminal reaches the total number of connected terminals, and when the number of arrivals = the number of terminals, the last terminal data arrives. Identifies that the was received.

ステップS204の処理で、受信した端末データが最後着のものでない場合、(S204、No)、端末データ制御回路41は、受信した端末データを廃棄し(S205)、ステップS201に戻り、後続の端末データを順次受信する。 If the received terminal data is not the last one in the process of step S204 (S204, No), the terminal data control circuit 41 discards the received terminal data (S205), returns to step S201, and succeeds the terminal. Receive data sequentially.

ステップS204の処理で、受信した端末データが最後着のものである場合、(S204、Yes)、端末データ制御回路41は複数台の端末10の全ての端末11、12乃至1nからの端末データを受信したことを示す端末データ受信完了通知を出力する(S206)。なお、受信した最後着の端末データはステップS206において廃棄される。 In the process of step S204, when the received terminal data is the last one (S204, Yes), the terminal data control circuit 41 inputs the terminal data from all the terminals 11, 12 to 1n of the plurality of terminals 10. A terminal data reception completion notification indicating that the data has been received is output (S206). The last received terminal data is discarded in step S206.

続いて、ホストデータ制御回路42の動作を説明する。 Subsequently, the operation of the host data control circuit 42 will be described.

図8は、ホストデータ制御回路42が、1台のホスト20から受信したホストデータを、複数台の端末10のそれぞれの端末11、12乃至1nに送信する動作を示すフローチャートである。 FIG. 8 is a flowchart showing an operation in which the host data control circuit 42 transmits the host data received from one host 20 to the respective terminals 11, 12 to 1n of the plurality of terminals 10.

ホスト20は、端末データ制御回路41から受信した最先着の端末データに基づいた処理を実行し、指定されたメモリのアドレス(100番地)に格納されたデータを読み出して、ホストデータとしてホストデータ制御回路42に送信する。 The host 20 executes processing based on the first-come-first-served terminal data received from the terminal data control circuit 41, reads the data stored in the designated memory address (address 100), and controls the host data as host data. It transmits to the circuit 42.

ホストデータ制御回路42は、ホスト20から返送されたホストデータを受信する(S301)。 The host data control circuit 42 receives the host data returned from the host 20 (S301).

そして、ホストデータ制御回路42は、この受信したホストデータを複製してバッファメモリ回路43の各FIFOバッファに送信する(S302)。ホストデータは複数台の端末10のそれぞれの端末11、12乃至1nに対して複製され、対応するFIFOバッファに分配出力される。ステップS303で、全てのFIFOバッファにホストデータを蓄積したかどうかを確認する。 Then, the host data control circuit 42 duplicates the received host data and transmits it to each FIFO buffer of the buffer memory circuit 43 (S302). The host data is duplicated for each of the terminals 11, 12 to 1n of the plurality of terminals 10, and is distributed and output to the corresponding FIFO buffer. In step S303, it is confirmed whether or not the host data has been accumulated in all the FIFO buffers.

このステップS302とS303の処理は、ホストデータ複製部422で実行され、複製したホストデータの分配出力が完了すると分配出力完了通知が出力される。前述したように、ホストデータの分配出力が完了したことを以てホストデータがそれぞれのFIFOバッファに蓄積されたと見なしている。もちろん、バッファメモリ回路43からFIFOバッファの蓄積完了通知を受信するように構成している場合は、バッファメモリ回路43からの蓄積完了通知で確認できる。 The processes of steps S302 and S303 are executed by the host data duplication unit 422, and when the distribution output of the duplicated host data is completed, a distribution output completion notification is output. As described above, it is considered that the host data has been accumulated in each FIFO buffer when the distribution output of the host data is completed. Of course, when the buffer memory circuit 43 is configured to receive the storage completion notification of the FIFO buffer, it can be confirmed by the storage completion notification from the buffer memory circuit 43.

全てのFIFOバッファにホストデータを蓄積したことを確認すると(S303、Yes)、ホストデータ制御回路42は、端末データ制御回路41から端末データ受信完了通知を受信したかどうかを確認する(S304)。 After confirming that the host data has been accumulated in all the FIFO buffers (S303, Yes), the host data control circuit 42 confirms whether or not the terminal data reception completion notification has been received from the terminal data control circuit 41 (S304).

ステップS304で、端末データ受信完了通知をまだ受信していない場合(S304、No)、端末データ制御回路41からの端末データ受信完了通知を待受ける。 If the terminal data reception completion notification has not yet been received in step S304 (S304, No), the terminal data reception completion notification from the terminal data control circuit 41 is awaited.

端末データ受信完了通知を受信した場合(S304、Yes)、ホストデータ制御回路42は、送信指示を出力して全てのFIFOバッファを解放する(S305)。これにより、FIFOバッファに蓄積されたホストデータが各端末に送信される。また、ステップS305では、送信指示を出力して全てのFIFOバッファを解放させた後に、受信した端末データ受信完了通知と分配出力完了通知を削除し、リセット通知を端末データ制御回路41に送る。リセット通知は、前述したように、次の通信に備えて関連回路をリセットするものである。 When the terminal data reception completion notification is received (S304, Yes), the host data control circuit 42 outputs a transmission instruction and releases all the FIFO buffers (S305). As a result, the host data stored in the FIFO buffer is transmitted to each terminal. Further, in step S305, after outputting the transmission instruction to release all the FIFO buffers, the received terminal data reception completion notification and distribution output completion notification are deleted, and the reset notification is sent to the terminal data control circuit 41. As described above, the reset notification resets the related circuit in preparation for the next communication.

複数台の端末10のそれぞれの端末11、12乃至1nの全てが、対応するFIFOバッファからホストデータを受信することで一連の通信が完了する。 A series of communication is completed when all of the terminals 11, 12 to 1n of the plurality of terminals 10 receive the host data from the corresponding FIFO buffers.

つまり、各端末は、送信したリードフラグとアドレス情報(100番地)を含んだ端末データに対して、指定されたメモリのアドレス(100番地)からホスト20が読み出して返送したデータであるホストデータを受信する。そして、各端末はリードフラグと次に読み出すべきアドレス情報(101番地)を含んだ端末データをホスト20に対して送信し、必要データの読み出しが完了するまで順次繰り返して次以降の通信を実行する。 That is, each terminal reads and returns the host data, which is the data read and returned by the host 20 from the specified memory address (address 100), with respect to the terminal data including the transmitted read flag and address information (address 100). Receive. Then, each terminal transmits the terminal data including the read flag and the address information (address 101) to be read next to the host 20, and sequentially repeats until the reading of the necessary data is completed to execute the next and subsequent communications. ..

なお、上記の説明ではステップS303で全てのFIFOバッファにホストデータを蓄積したかどうかを確認し、ステップS304で端末データ制御回路41からの端末データ受信完了通知の受信を確認している。しかし、これらのステップの順番は逆であってもかまわない。つまり、端末データ制御回路41からの端末データ受信完了通知の受信を確認し、その後に全てのFIFOバッファにホストデータを蓄積したかどうかを確認するようにしてもよい。ホストデータ制御回路42は、全てのFIFOバッファへのホストデータの格納完了と端末データ制御回路41からの受信完了通知の受信をもって送信指示を出力する。 In the above description, it is confirmed in step S303 whether or not the host data is accumulated in all the FIFO buffers, and in step S304, the reception of the terminal data reception completion notification from the terminal data control circuit 41 is confirmed. However, the order of these steps can be reversed. That is, the reception of the terminal data reception completion notification from the terminal data control circuit 41 may be confirmed, and then it may be confirmed whether or not the host data has been accumulated in all the FIFO buffers. The host data control circuit 42 outputs a transmission instruction when the storage of the host data in all the FIFO buffers is completed and the reception completion notification is received from the terminal data control circuit 41.

以上に説明したように、複数台の端末と1台のホスト間でシリアル通信を行う場合、各端末とホスト間での逐次処理が行われ、端末の数が増加するほど全体としての通信時間が端末の数だけ増加していた。例えば、複数台の端末と1台のホストとの全体としての通信時間をT、ホストが一つの端末との通信を行う時間をS、端末の数をNとすると、逐次処理を行う場合には、T=S×Nの通信時間を要した。 As described above, when serial communication is performed between a plurality of terminals and one host, sequential processing is performed between each terminal and the host, and the communication time as a whole increases as the number of terminals increases. It increased by the number of terminals. For example, assuming that the total communication time between a plurality of terminals and one host is T, the time for the host to communicate with one terminal is S, and the number of terminals is N, sequential processing is performed. , T = S × N communication time was required.

一方、本実施形態のデータ入出力制御装置を用いることにより、ホストは複数ある端末の中の一つの端末の端末データについて処理を行えば良いことになる。そのため、必要とする通信時間は、T=S×1+(データ入出力制御装置におけるデータの処理時間)と表すことができる。 On the other hand, by using the data input / output control device of the present embodiment, the host may process the terminal data of one terminal among the plurality of terminals. Therefore, the required communication time can be expressed as T = S × 1 + (data processing time in the data input / output control device).

つまり、端末の数Nが増加した場合、逐次処理を行う場合には全体としての通信時間Tは端末数に比例して増加するのに対し、本実施形態では、端末の数Nに拠らず、全体としての通信時間Tは一定であるといえる。また、各端末は他の端末の通信状況に拠らず、タイミングを気にすることなく通信を行うことができるので、端末内の制御回路等の簡素化に寄与できる。また、ホストは複数ある端末の中の一つの端末のデータについて処理を行えば良いので、ホスト負荷の軽減に寄与できる。 That is, when the number N of terminals increases, the communication time T as a whole increases in proportion to the number of terminals when performing sequential processing, whereas in the present embodiment, it does not depend on the number N of terminals. It can be said that the communication time T as a whole is constant. Further, since each terminal can perform communication without worrying about the timing regardless of the communication status of other terminals, it can contribute to the simplification of the control circuit and the like in the terminal. Further, since the host only needs to process the data of one terminal among the plurality of terminals, it can contribute to the reduction of the host load.

このように、本実施形態では複数台の端末と1台のホストが同一内容のデータでシリアル通信を行う環境において、各端末による逐次処理を行うことなく、ホストと各端末の相互間の通信における全体としての処理時間を最小限に抑えることができる。 As described above, in the present embodiment, in an environment in which a plurality of terminals and one host perform serial communication with the same data, the communication between the host and each terminal is performed without performing sequential processing by each terminal. The processing time as a whole can be minimized.

(第3の実施形態)
次に、図9を参照して第3の実施形態を説明する。
(Third Embodiment)
Next, a third embodiment will be described with reference to FIG.

図9は、本発明の第3の実施形態のデータ入出力制御装置の構成例を示すブロック図である。 FIG. 9 is a block diagram showing a configuration example of the data input / output control device according to the third embodiment of the present invention.

第3の実施形態のデータ入出力制御装置50は、図4に示した第2の実施形態のデータ入出力制御装置40に加えて、動作クロック供給回路54を含む構成になっている。 The data input / output control device 50 of the third embodiment has a configuration including an operation clock supply circuit 54 in addition to the data input / output control device 40 of the second embodiment shown in FIG.

また、データ入出力制御装置50にシリアル通信線により接続される複数台の端末10のそれぞれの端末11、12乃至1nの動作速度は異なるものとして構成される。そして、データ入出力制御装置50とホスト20との間の動作速度は低速側の端末の動作速度に合わされて、最も遅い動作速度に設定されているものとする。 Further, the operating speeds of the terminals 11, 12 to 1n of the plurality of terminals 10 connected to the data input / output control device 50 by the serial communication line are configured to be different. Then, it is assumed that the operating speed between the data input / output control device 50 and the host 20 is set to the slowest operating speed in accordance with the operating speed of the terminal on the low speed side.

動作クロック供給回路54は、バッファメモリ回路53の各FIFOバッファに、対応する端末の動作速度の動作クロック信号をそれぞれ供給する。 The operation clock supply circuit 54 supplies each FIFO buffer of the buffer memory circuit 53 with an operation clock signal of the operation speed of the corresponding terminal.

その他の構成については第2の実施形態で説明した各機能部ブロックの構成と同じなので、それらの説明は省略する。また、端末データ制御回路51が複数台の端末10のそれぞれの端末11、12乃至1nから端末データを受信し、最先着の端末データをホスト20に送信する動作も第2の実施形態の動作と同じなので、その関連動作の説明は省略する。ここでは、ホストデータ制御回路52がホスト20からホストデータを受信する動作から説明する。 Since other configurations are the same as the configurations of the functional unit blocks described in the second embodiment, their description will be omitted. Further, the operation in which the terminal data control circuit 51 receives the terminal data from the respective terminals 11, 12 to 1n of the plurality of terminals 10 and transmits the first-come-first-served terminal data to the host 20 is also an operation of the second embodiment. Since they are the same, the description of the related operation is omitted. Here, the operation of the host data control circuit 52 receiving host data from the host 20 will be described.

ホスト20から受信したホストデータはホストデータ制御回路52で分配され、バッファメモリ回路53の各FIFOバッファに格納・蓄積される。 The host data received from the host 20 is distributed by the host data control circuit 52, and is stored and stored in each FIFO buffer of the buffer memory circuit 53.

ホストデータ制御回路52は、全てのFIFOバッファにホストデータを蓄積し、かつ、端末データ制御回路51から端末データ受信完了通知を受信すると送信指示を出力して全てのFIFOバッファを解放する。 The host data control circuit 52 stores host data in all FIFO buffers, and when it receives a terminal data reception completion notification from the terminal data control circuit 51, it outputs a transmission instruction to release all FIFO buffers.

これにより、ホストデータが各端末に送信されるが、その際に、各FIFOバッファでは、動作クロック供給回路54から供給されたそれぞれの端末の動作速度に対応する動作クロック信号に乗せ換えてホストデータを各端末に送信する。 As a result, the host data is transmitted to each terminal, and at that time, in each FIFO buffer, the host data is replaced with the operation clock signal corresponding to the operation speed of each terminal supplied from the operation clock supply circuit 54. To each terminal.

従って、本実施形態のデータ入出力制御装置50によれば、複数台の端末10のそれぞれの端末11、12乃至1nと1台のホスト20の動作速度が異なっている場合であっても、ホスト20は最も遅い端末の動作速度に合わせた処理が行なえる。そして、FIFOバッファの出力に際して、動作クロック供給回路54が供給するそれぞれの端末の動作速度に対応した動作クロック信号に乗せ換えて処理することで、各端末の動作速度でホストデータを送信することができる。 Therefore, according to the data input / output control device 50 of the present embodiment, even if the operating speeds of the respective terminals 11, 12 to 1n of the plurality of terminals 10 and the one host 20 are different, the host 20 can perform processing according to the operating speed of the slowest terminal. Then, when the FIFO buffer is output, the host data can be transmitted at the operating speed of each terminal by processing the output by substituting the operating clock signal corresponding to the operating speed of each terminal supplied by the operating clock supply circuit 54. it can.

このように、本実施形態では複数台の端末と1台のホストが同一内容のデータでシリアル通信を行う環境において、各端末による逐次処理を行うことなく、ホストと各端末の相互間の通信における全体としての処理時間を最小限に抑えることができる。しかも、各端末の動作速度が異なる場合であっても、ホストは各端末のそれぞれの動作速度に合わせることなく通信することができる。 As described above, in the present embodiment, in an environment in which a plurality of terminals and one host perform serial communication with the same data, the communication between the host and each terminal is performed without performing sequential processing by each terminal. The processing time as a whole can be minimized. Moreover, even if the operating speeds of the terminals are different, the host can communicate without adjusting to the operating speeds of the respective terminals.

なお、上述した各実施形態のデータ入出力制御装置は、CPU(Central Processing Unit)にコンピュータプログラムを実行させることで任意の処理を行う、一般的なコンピュータ装置と同様のハードウェア構成によって実現しても良い。つまり、CPUが、不揮発メモリ等で構成される補助記憶部に格納されているプログラムを、RAM(Random Access Memory)等の主記憶部にロードして実行することで、上述したデータ入出力制御装置の各機能をソフトウェア的に実現しても良い。 The data input / output control device of each of the above-described embodiments is realized by a hardware configuration similar to that of a general computer device, which performs arbitrary processing by causing a CPU (Central Processing Unit) to execute a computer program. Is also good. That is, the CPU loads the program stored in the auxiliary storage unit composed of the non-volatile memory or the like into the main storage unit such as the RAM (Random Access Memory) and executes the data input / output control device described above. Each function of may be realized by software.

10、11、12、1n 端末
101、102、10n 端末
20、200 ホスト
30、40、50 データ入出力制御装置
31 データ中継手段
32 バッファメモリ手段
41、51 端末データ制御回路
42、52 ホストデータ制御回路
43、53 バッファメモリ回路
54 動作クロック供給回路
411 端末データインタフェース部
412、421 ホストデータインタフェース部
413 端末データ選択部
414 端末データ受信完了通知部
422 ホストデータ複製部
423 ホストデータ送信制御部
10, 11, 12, 1n terminal 101, 102, 10n terminal 20, 200 Host 30, 40, 50 Data input / output control device 31 Data relay means 32 Buffer memory means 41, 51 Terminal data control circuit 42, 52 Host data control circuit 43, 53 Buffer memory circuit 54 Operation clock supply circuit 411 Terminal data interface unit 412, 421 Host data interface unit 413 Terminal data selection unit 414 Terminal data reception completion notification unit 422 Host data replication unit 423 Host data transmission control unit

Claims (10)

シリアル通信方式を用いて外部との通信を行う複数台の端末と、それぞれの前記端末とデータの送受信を行う1台のホストを接続し、それぞれの前記端末が同時に送信した同一内容の端末データのうちの最初に到着した前記端末データのみを前記ホストに送信し、前記端末データに応じて前記ホストが返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力するデータ中継手段と、
それぞれの前記端末に対応して配備され、前記データ中継手段が分配出力する前記ホストデータを蓄積し、送信指示を受けると、蓄積した前記ホストデータを、接続している前記端末に送信するバッファメモリ手段と
を備え、
前記データ中継手段は、分配出力した前記ホストデータがそれぞれの前記端末に対応する前記バッファメモリ手段に蓄積され、かつ、前記端末データが全ての前記端末から到着したことを識別すると、前記バッファメモリ手段に前記送信指示を出力する
ことを特徴とするデータ入出力制御装置。
Multiple terminals that communicate with the outside using the serial communication method are connected to each terminal and one host that transmits and receives data, and the terminal data of the same content transmitted by each terminal at the same time A data relay means that transmits only the terminal data that arrives first to the host, receives the host data returned by the host according to the terminal data, duplicates the received host data, and distributes and outputs the data. ,
A buffer memory that is deployed corresponding to each terminal, accumulates the host data distributed and output by the data relay means, and when receiving a transmission instruction, transmits the accumulated host data to the connected terminal. With means,
When the data relay means identifies that the distributed and output host data is stored in the buffer memory means corresponding to each terminal and that the terminal data has arrived from all the terminals, the buffer memory means A data input / output control device characterized by outputting the transmission instruction to.
前記データ中継手段は、
前記複数台の端末からの受信データラインを接続してそれぞれの端末から同一内容の前記端末データを受信し、最初に到着した前記端末データのみを前記ホストと接続した送信データラインを介して送信し、前記複数台の端末の全ての端末から前記端末データを受信すると、前記端末データが全ての前記端末から到着したことを示す端末データ受信完了通知を出力する端末データ制御回路と、
前記ホストからの受信データラインを接続し、前記ホストから前記ホストデータを受信すると当該ホストデータを複製して前記バッファメモリ手段に分配出力し、前記端末データ制御回路が出力する前記端末データ受信完了通知を受信すると前記送信指示を前記バッファメモリ手段に出力するホストデータ制御回路と
を含むことを特徴とする請求項1に記載のデータ入出力制御装置。
The data relay means
The reception data lines from the plurality of terminals are connected to receive the terminal data having the same contents from each terminal, and only the terminal data that arrives first is transmitted via the transmission data line connected to the host. A terminal data control circuit that outputs a terminal data reception completion notification indicating that the terminal data has arrived from all the terminals when the terminal data is received from all the terminals of the plurality of terminals.
When the reception data line from the host is connected and the host data is received from the host, the host data is duplicated and distributed and output to the buffer memory means, and the terminal data reception completion notification output by the terminal data control circuit is notified. The data input / output control device according to claim 1, further comprising a host data control circuit that outputs the transmission instruction to the buffer memory means when the data is received.
前記端末データ制御回路は、
前記複数台の端末のそれぞれの端末に対応して配備され、当該端末からの受信データラインを接続し、当該端末が送信する前記端末データの受信を検知して端末データ受信通知を出力する端末データインタフェース部と、
前記ホストへの送信データラインを接続するホストデータインタフェース部と、
前記端末データインタフェース部を介して前記端末データを受信し、最初に到着した前記端末データのみを選択し、前記ホストデータインタフェース部を介して当該選択した端末データを送信する端末データ選択部と、
それぞれの前記端末データインタフェース部が出力する前記端末データ受信通知を受信し、前記複数台の端末の全ての端末から前記端末データを受信したことを識別すると前記端末データ受信完了通知を出力する端末データ受信完了通知部と、
を備えることを特徴とする請求項2に記載のデータ入出力制御装置。
The terminal data control circuit
Terminal data that is deployed corresponding to each terminal of the plurality of terminals, connects a reception data line from the terminal, detects reception of the terminal data transmitted by the terminal, and outputs a terminal data reception notification. Interface part and
A host data interface unit that connects the transmission data line to the host,
A terminal data selection unit that receives the terminal data via the terminal data interface unit, selects only the terminal data that arrives first, and transmits the selected terminal data via the host data interface unit.
Terminal data that receives the terminal data reception notification output by each terminal data interface unit and outputs the terminal data reception completion notification when it is identified that the terminal data has been received from all the terminals of the plurality of terminals. Reception completion notification unit and
The data input / output control device according to claim 2, wherein the data input / output control device is provided.
前記ホストデータ制御回路は、
前記ホストからの受信データラインを接続するホストデータインタフェース部と、
前記ホストから前記ホストデータを受信すると当該ホストデータを複製して前記バッファメモリ手段に分配出力し、分配出力した前記ホストデータがそれぞれの前記端末に対応する前記バッファメモリ手段に蓄積された旨を通知する分配出力完了通知を出力するホストデータ複製部と、
前記分配出力完了通知と前記端末データ受信完了通知を受信すると前記送信指示を前記バッファメモリ手段に出力するホストデータ送信制御部と
を備えることを特徴とする請求項2または請求項3に記載のデータ入出力制御装置。
The host data control circuit
A host data interface unit that connects the reception data line from the host,
When the host data is received from the host, the host data is duplicated and distributed and output to the buffer memory means, and a notification is notified that the distributed and output host data is stored in the buffer memory means corresponding to each terminal. The host data replication unit that outputs the distribution output completion notification,
The data according to claim 2 or 3, further comprising a host data transmission control unit that outputs the transmission instruction to the buffer memory means when the distribution output completion notification and the terminal data reception completion notification are received. Input / output control device.
前記ホストデータ送信制御部は、前記送信指示を前記バッファメモリ手段に出力すると、前記端末データ受信完了通知と前記分配出力完了通知を削除し、前記複数台の端末のそれぞれの端末からの前記端末データの到着に関する情報のリセットを指示するリセット通知を前記端末データ制御回路に出力する
ことを特徴とする請求項4に記載のデータ入出力制御装置。
When the host data transmission control unit outputs the transmission instruction to the buffer memory means, the terminal data reception completion notification and the distribution output completion notification are deleted, and the terminal data from each terminal of the plurality of terminals is deleted. The data input / output control device according to claim 4, wherein a reset notification instructing the reset of information regarding the arrival of the data is output to the terminal data control circuit.
前記複数台の端末のそれぞれの端末に対応して配備された前記バッファメモリ手段に、対応する前記端末の動作速度の動作クロック信号をそれぞれ供給する動作クロック供給回路を更に備え、
前記ホストとの間の動作速度を、前記端末の動作速度の最も遅い動作速度に設定し、
前記バッファメモリ手段は、前記送信指示を受けると、蓄積した前記ホストデータを、接続している前記端末の動作速度に対応する動作クロック信号に乗せ換えて送信する
ことを特徴とする請求項1乃至請求項5のいずれかの請求項に記載のデータ入出力制御装置。
The buffer memory means provided corresponding to each terminal of the plurality of terminals is further provided with an operation clock supply circuit for supplying an operation clock signal of the corresponding operation speed of the terminal.
The operating speed with the host is set to the slowest operating speed of the terminal.
The buffer memory means, when receiving the transmission instruction, transmits the accumulated host data by transferring it to an operation clock signal corresponding to the operation speed of the connected terminal. The data input / output control device according to any one of claims 5.
シリアル通信方式を用いて外部との通信を行う複数台の端末のそれぞれの端末が同時に送信する同一内容の端末データのうちの最初に到着した前記端末データのみをホストに送信し、
前記端末データに応じて前記ホストが返送したホストデータを受信し、受信した当該ホストデータを複製して分配出力し、
それぞれの前記端末に対応して配備されたバッファメモリに、分配出力された前記ホストデータを蓄積し、
分配出力した前記ホストデータをそれぞれの前記端末に対応する前記バッファメモリに蓄積し、かつ、前記端末データが全ての前記端末から到着したことを識別すると、前記バッファメモリに蓄積している前記ホストデータを、接続している前記端末に送信する
ことを特徴とするデータ入出力制御方法。
Of the terminal data of the same content transmitted simultaneously by each terminal of a plurality of terminals that communicate with the outside using the serial communication method, only the terminal data that arrives first is transmitted to the host.
The host data returned by the host is received according to the terminal data, and the received host data is duplicated and distributed and output.
The host data distributed and output is stored in the buffer memory deployed corresponding to each terminal.
When the distributed and output host data is stored in the buffer memory corresponding to each terminal and it is identified that the terminal data has arrived from all the terminals, the host data stored in the buffer memory is identified. A data input / output control method, characterized in that the data is transmitted to the connected terminal.
前記複数台の端末のそれぞれの端末からの前記端末データの受信に際して、
それぞれの前記端末が送信する前記端末データの受信を検知して端末データ受信通知を出力し、
前記端末データ受信通知に基づいて前記複数台の端末の全ての端末から前記端末データが到着したことを示す端末データ受信完了通知を出力し、
前記端末データに応じて前記ホストが返送したホストデータの受信に際して、
前記ホストから前記ホストデータを受信すると当該ホストデータを複製してそれぞれの前記バッファメモリに分配して出力し、
分配出力した前記ホストデータがそれぞれの前記端末に対応する前記バッファメモリに蓄積された旨を通知する分配出力完了通知を出力し、
前記端末データ受信完了通知と前記分配出力完了通知の両方が出力された時に、それぞれの前記バッファメモリに蓄積している前記ホストデータを、接続している前記端末に送信する
ことを特徴とする請求項7に記載のデータ入出力制御方法。
Upon receiving the terminal data from each of the plurality of terminals
Detects the reception of the terminal data transmitted by each of the terminals and outputs a terminal data reception notification.
Based on the terminal data reception notification, a terminal data reception completion notification indicating that the terminal data has arrived from all the terminals of the plurality of terminals is output.
Upon receiving the host data returned by the host in response to the terminal data
When the host data is received from the host, the host data is duplicated, distributed to each of the buffer memories, and output.
A distribution output completion notification is output to notify that the distributed output host data has been stored in the buffer memory corresponding to each terminal.
A claim characterized in that when both the terminal data reception completion notification and the distribution output completion notification are output, the host data stored in the respective buffer memories is transmitted to the connected terminal. Item 7. The data input / output control method according to Item 7.
それぞれの前記バッファメモリに蓄積している前記ホストデータを接続している前記端末に送信すると、出力された前記端末データ受信完了通知と前記分配出力完了通知を削除し、前記複数台の端末のそれぞれの端末からの前記端末データの到着に関する情報をリセットする
ことを特徴とする請求項8に記載のデータ入出力制御方法。
When the host data stored in each of the buffer memories is transmitted to the connected terminal, the output terminal data reception completion notification and the distribution output completion notification are deleted, and each of the plurality of terminals is deleted. The data input / output control method according to claim 8, wherein the information regarding the arrival of the terminal data from the terminal is reset.
前記複数台の端末のそれぞれの端末に対応して配備された前記バッファメモリに、対応する前記端末の動作速度の動作クロック信号をそれぞれ供給し、
前記ホストとの間の動作速度を、前記端末の動作速度の最も遅い動作速度に設定し、
前記バッファメモリに蓄積している前記ホストデータを接続している前記端末に送信する際に、接続している前記端末の動作速度に対応する動作クロック信号に乗せ換えて前記ホストデータを送信する
ことを特徴とする請求項7乃至請求項9のいずれかの請求項に記載のデータ入出力制御方法。
The operation clock signal of the operation speed of the corresponding terminal is supplied to the buffer memory provided corresponding to each terminal of the plurality of terminals.
The operating speed with the host is set to the slowest operating speed of the terminal.
When transmitting the host data stored in the buffer memory to the connected terminal, the host data is transmitted by superimposing it on an operation clock signal corresponding to the operating speed of the connected terminal. The data input / output control method according to any one of claims 7 to 9, wherein the data input / output control method is characterized.
JP2017005183A 2017-01-16 2017-01-16 Data input / output control device and control method Active JP6802072B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017005183A JP6802072B2 (en) 2017-01-16 2017-01-16 Data input / output control device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017005183A JP6802072B2 (en) 2017-01-16 2017-01-16 Data input / output control device and control method

Publications (2)

Publication Number Publication Date
JP2018116356A JP2018116356A (en) 2018-07-26
JP6802072B2 true JP6802072B2 (en) 2020-12-16

Family

ID=62984172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017005183A Active JP6802072B2 (en) 2017-01-16 2017-01-16 Data input / output control device and control method

Country Status (1)

Country Link
JP (1) JP6802072B2 (en)

Also Published As

Publication number Publication date
JP2018116356A (en) 2018-07-26

Similar Documents

Publication Publication Date Title
US8719476B2 (en) Communication system, master device and slave device, and communication method, configured to handle plural concurrent requests
CN106557446B (en) Bus system
JPH02501245A (en) Method and apparatus for interconnecting buses in a multibus computer system
CN106354674B (en) Semiconductor device and system
CN108959136B (en) SPI-based data transmission accelerating device and system and data transmission method
WO2016189294A1 (en) Single-chip multi-processor communication
JP2017011519A (en) Communication system using network
CN104854845A (en) Method and apparatus using high-efficiency atomic operations
JP6568399B2 (en) Information processing device
WO2016047104A1 (en) Data transfer control system, data transfer control method, and program storage medium
JP6802072B2 (en) Data input / output control device and control method
US11036205B2 (en) Control device and communication device
JP5456434B2 (en) Pipe arbitration circuit, pipe arbitration method
JP4104939B2 (en) Multiprocessor system
KR100790747B1 (en) Plc system and method of controlling communication thereof
CN114928511A (en) Data processing apparatus and data processing system
US11068423B2 (en) Control device and communication device
JP6171367B2 (en) Switch device, image processing device, and exclusive control method
JP6295700B2 (en) Arbitration circuit and processing method of the arbitration circuit
JP2012114724A (en) Electronic control device
CN113204438B (en) Inter-core communication method and system of AMP (analog to digital) system
US11829806B2 (en) High-speed barrier synchronization processing that includes a plurality of different processing stages to be processed stepwise with a plurality of registers
JP3472638B2 (en) Bidirectional communication switching device and bidirectional communication switching method
CN110399322B (en) Data transmission method and ping-pong DMA framework
TWI724608B (en) Microcontroller architecture and data reading method in architecture

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20170712

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201023

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201126

R150 Certificate of patent or registration of utility model

Ref document number: 6802072

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150