JP7324455B2 - Serial communication method and serial communication system - Google Patents
Serial communication method and serial communication system Download PDFInfo
- Publication number
- JP7324455B2 JP7324455B2 JP2019213782A JP2019213782A JP7324455B2 JP 7324455 B2 JP7324455 B2 JP 7324455B2 JP 2019213782 A JP2019213782 A JP 2019213782A JP 2019213782 A JP2019213782 A JP 2019213782A JP 7324455 B2 JP7324455 B2 JP 7324455B2
- Authority
- JP
- Japan
- Prior art keywords
- controller
- serial communication
- command
- data
- latch
- 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
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Description
この発明は、シリアル通信方法及びシリアル通信システムに関し、特に、マスタデバイスからスレーブデバイスに対してラッチとリリースとを命じるシリアル通信方法及びシリアル通信システムに関する。 The present invention relates to a serial communication method and serial communication system, and more particularly to a serial communication method and serial communication system for instructing a slave device to latch and release from a master device.
マスタデバイスとスレーブデバイスとの間、具体的には、コントローラとセンシングデバイスとの間で、シリアル通信によりコマンドとデータとを授受することが一般的に行われている。このような構成のシリアル通信システムは、特許文献1及び非特許文献1に記載されている。
Commands and data are generally exchanged by serial communication between a master device and a slave device, more specifically, between a controller and a sensing device. A serial communication system with such a configuration is described in
センシングデバイスからデータを確実に取得するため、あるタイミングでデータを保持し、保持したデータを取得する手法が存在する。また、保持したデータを二度読みして、二度読みの結果が一致するデータを採用する手法が存在している。このデータの保持はラッチと呼ばれ、データの保持を解除することはリリースと呼ばれている。 In order to reliably acquire data from a sensing device, there is a method of holding data at a certain timing and acquiring the held data. There is also a method of reading the stored data twice and adopting the data with the same result of the double reading. This holding of data is called latching, and releasing the holding of data is called release.
上記特許文献1には、単一のコントローラにバスを通じて複数のセンシングデバイスが接続されたシングルマスタ/マルチスレーブ接続システムにおける、シングルマスタ/マルチスレーブ通信の技術が開示されている。しかし、センシングデバイスにおいてデータのラッチ(保持)/リリース(保持の解除)を実行する機能については言及されていない。
The above-mentioned
上記非特許文献1には、単一のコントローラにバスを通じて単一のセンシングデバイスが接続されたシングルマスタ/シングルスレーブ接続システムにおける、シングルマスタ/シングルスレーブ通信の技術が開示されている。しかし、センシングデバイスにおいてデータのラッチ(保持)/リリース(保持の解除)を実行する機能については言及されていない。
Non-Patent
従って、シングルマスタ/シングルスレーブ接続システムにおけるシリアル通信システムと、シングルマスタ/マルチスレーブ接続システムにおけるシリアル通信システムとのいずれであっても、任意のタイミングでデータのラッチとリリースとを行えることが望まれている。 Therefore, it is desirable to be able to latch and release data at arbitrary timing in either a serial communication system in a single-master/single-slave connection system or a serial communication system in a single-master/multi-slave connection system. ing.
本発明は、コントローラからのコマンドに基づいて、センシングデバイスにおいてデータの保持と解除とを任意のタイミングで行うことが可能なシリアル通信方法及びシリアル通信システムを提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a serial communication method and a serial communication system capable of holding and releasing data in a sensing device at arbitrary timing based on a command from a controller.
(1)この発明に係るシリアル通信方法及びシリアル通信システムは、シリアル通信機能を有するコントローラと、シリアル通信機能を有する1以上のセンシングデバイスとの間で、通信フォーマットに従ってシリアル通信を行う際に、コントローラは、センシングデバイスに対して検知したデータの保持を指示するラッチコマンドまたはセンシングデバイスに対して検知したデータの保持の解除を指示するリリースコマンドを、通信フォーマット中に含めてセンシングデバイスに対して送信し、センシングデバイスは、コントローラからのラッチコマンドに応じ、検知したデータを保持し、コントローラからのリリースコマンドに応じ、検知したデータの保持を解除する。 (1) A serial communication method and a serial communication system according to the present invention provide a serial communication between a controller having a serial communication function and one or more sensing devices having a serial communication function according to a communication format. sends to the sensing device a latch command that instructs the sensing device to hold the detected data or a release command that instructs the sensing device to release the detected data in the communication format. , the sensing device retains the detected data in response to a latch command from the controller, and releases the retention of the detected data in response to a release command from the controller.
(2)この発明に係るシリアル通信方法及びシリアル通信システムにおいて、センシングデバイスは、コントローラからのラッチコマンドに応じ、保持の指示を受け付けたことを示すコマンドをコントローラに対して送信し、コントローラからのリリースコマンドに応じ、保持の解除の指示を受け付けたことを示すコマンドをコントローラに対して送信する。 (2) In the serial communication method and serial communication system according to the present invention, the sensing device responds to the latch command from the controller by transmitting to the controller a command indicating that the holding instruction has been received, and releasing the sensing device from the controller. In response to the command, a command is transmitted to the controller indicating that an instruction to release the hold has been received.
(3)この発明に係るシリアル通信方法及びシリアル通信システムにおいて、コントローラは、センシングデバイスに対して状態を問い合わせる問い合わせコマンドを通信フォーマット中に含めて、センシングデバイスに対して送信し、センシングデバイスは、コントローラからの問い合わせコマンドに応じ、データを保持していることを示すコマンド、または、保持を解除したことを示すコマンドをコントローラに対して送信する。 (3) In the serial communication method and serial communication system according to the present invention, the controller includes an inquiry command for inquiring the state of the sensing device in the communication format and transmits the inquiry command to the sensing device, and the sensing device sends the inquiry command to the controller. In response to an inquiry command from the controller, a command indicating that the data is held or a command indicating that the holding has been released is sent to the controller.
(4)この発明に係るシリアル通信方法及びシリアル通信システムにおいて、コントローラは、センシングデバイスに対してラッチコマンドまたはリリースコマンドを送信する際に、センシングデバイスのいずれかを指定するセンシングデバイスIDを含め、センシングデバイスIDにより指定されたセンシングデバイスは、コントローラからのラッチコマンドに応じ、検知したデータを保持し、コントローラからのリリースコマンドに応じ、検知したデータの保持を解除する。指定されていないセンシングデバイスIDであっても、コントローラから全センシングデバイスを指定したラッチコマンドまたはリリースコマンドが送信された場合、全てのセンシングデバイスは、検知したデータをラッチコマンドに応じて保持し、検知したデータの保持をリリースコマンドに応じて解除する。 (4) In the serial communication method and serial communication system according to the present invention, when the controller transmits a latch command or a release command to the sensing device, the controller includes a sensing device ID that designates one of the sensing devices. The sensing device designated by the device ID retains the sensed data in response to a latch command from the controller, and releases the retention of the sensed data in response to a release command from the controller. Even if the sensing device ID is not specified, when a latch command or a release command specifying all sensing devices is sent from the controller, all sensing devices hold the detected data according to the latch command and detect release the retention of the data that has been stored in response to the release command.
(5)この発明に係るシリアル通信方法及びシリアル通信システムにおいて、コントローラがマスタデバイス、センシングデバイスがスレーブデバイスであり、マスタデバイスとスレーブデバイスとの間でシリアル通信を行う。
(6)この発明に係るシリアル通信方法及びシリアル通信システムにおいて、センシングデバイスは、コントローラからのリクエストに応じ、保持したデータを前記コントローラに対して送信する。
(5) In the serial communication method and serial communication system according to the present invention, the controller is the master device, the sensing device is the slave device, and serial communication is performed between the master device and the slave device.
(6) In the serial communication method and serial communication system according to the present invention, the sensing device transmits held data to the controller in response to a request from the controller.
この発明に係るシリアル通信方法及びシリアル通信システムによれば、コントローラは、ラッチコマンドとリリースコマンドとを通信フォーマット中に含めてセンシングデバイスに対して送信し、センシングデバイスは、ラッチコマンドに応じて検知したデータを保持し、リリースコマンドに応じて検知したデータの保持を解除するため、任意のタイミングで、コントローラからのコマンドに基づいて、センシングデバイスにおいてデータの保持と解除とを行うことが可能になる。 According to the serial communication method and serial communication system according to the present invention, the controller includes the latch command and the release command in the communication format and transmits them to the sensing device, and the sensing device senses according to the latch command. Since the data is held and the data detected in response to the release command is released, the sensing device can hold and release the data at any timing based on the command from the controller.
以下、本発明のシリアル通信システムの実施の形態について、図面を用いて説明する。なお、各図において、同一部分には同一符号を付している。 An embodiment of a serial communication system according to the present invention will be described below with reference to the drawings. In addition, in each figure, the same code|symbol is attached|subjected to the same part.
実施の形態1.
はじめに、本発明の実施の形態1において、シリアル通信方法を実行するシリアル通信システムの基本的な構成について、図1を参照して説明する。
First, in
[シリアル通信システム1Aの構成]
図1は、本発明の実施の形態1におけるシリアル通信システム1Aの構成を示す構成図である。図1において、シリアル通信方法を実行するシリアル通信システム1Aは、コントローラ10と、デバイス20と、通信ライン30Aとを備えている。コントローラ10はマスタデバイス、デバイス20はスレーブデバイスとして、通信ライン30Aを通して通信可能に接続されている。
[Structure of serial communication system 1A]
FIG. 1 is a configuration diagram showing the configuration of a serial communication system 1A according to
ここで、図1に示すシリアル通信システム1Aは、単一のコントローラ10に対して、通信ライン30Aを通して単一のデバイス20が接続されており、シングルマスタ/シングルスレーブ接続のシリアル通信システムを構成している。
シングルマスタ/シングルスレーブ接続のシリアル通信システム1Aにおいて、コントローラ10とデバイス20との間で、シングルマスタ/シングルスレーブ通信が行われる。すなわち、マスタデバイスであるコントローラ10とスレーブデバイスであるデバイス20との間で、シリアル通信によりコマンドとデータとが送受信される。
Here, in the serial communication system 1A shown in FIG. 1, a
Single master/single slave communication is performed between the
コントローラ10は、シリアル通信機能を備えており、シリアル通信によりデバイス20からデータを読み出す制御部である。デバイス20は、シリアル通信機能を備えたセンシングデバイスであり、例えば、制御対象から検知したデータをシリアル通信により出力するセンシングデバイスに該当する。
The
通信ライン30Aは、電源Vccを供給する信号線と、グランドGNDの電位を保つ信号線と、一対の差動伝送信号SD+/SD-を伝送する信号線とによって構成されている。 The communication line 30A is composed of a signal line for supplying the power supply Vcc, a signal line for maintaining the potential of the ground GND, and a signal line for transmitting a pair of differential transmission signals SD+/SD-.
電源Vccは、信号線を通してコントローラ10からデバイス20に供給される。差動伝送信号SD+/SD-は、信号線を通して双方向に伝送されるものであり、コントローラ10からデバイス20に向けて送信される場合と、デバイス20からコントローラ10に向けて送信される場合とがある。
A power supply Vcc is supplied from the
[シリアル通信システム1Bの構成]
次に、本発明の実施の形態1において、シリアル通信方法を実行するシリアル通信システム1Bの基本的な構成について、図2を参照して説明する。図2は、本発明の実施の形態1におけるシリアル通信システム1Bの構成を示す構成図である。
[Structure of serial communication system 1B]
Next, in
図2において、シリアル通信システム1Bは、主に、コントローラ10と、デバイス20と、バス通信ライン30Bとを備えている。コントローラ10はマスタデバイス、デバイス20はスレーブデバイスとして、バス通信ライン30Bを通して通信可能に接続されている。スレーブデバイスとしてのデバイス20は、複数のデバイス20_1、デバイス20_2、…、デバイス20_nを備えて構成される。
In FIG. 2, serial communication system 1B mainly includes
ここで、図2に示すシリアル通信システム1Bは、単一のコントローラ10に対して、複数のデバイス20、すなわち、デバイス20_1、デバイス20_2、…、デバイス20_nが、バス通信ライン30Bを通して並列に接続されている。これにより、シングルマスタ/マルチスレーブ接続のシリアル通信システムが構成されている。
Here, in the serial communication system 1B shown in FIG. 2, a plurality of
シングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおいて、コントローラ10とデバイス20との間で、シングルマスタ/マルチスレーブ通信が行われる。すなわち、マスタデバイスであるコントローラ10とスレーブデバイスである複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iとの間で、シリアル通信によりコマンドとデータとを送受信される。
Single-master/multi-slave communication is performed between the
複数のデバイス20_1、デバイス20_2、…、デバイス20_nを識別するため、後述するデバイスIDがそれぞれ付与されている。このデバイスIDは、1,2,3,…,nといった順番に従った番号でもよいし、製品の製造番号の全部または一部、ネットワークアドレス、あるいは任意に設定された番号であってもよい。 In order to identify the plurality of devices 20_1, 20_2, . This device ID may be a number in order such as 1, 2, 3, .
コントローラ10は、このデバイスIDによって、複数のデバイス20_1、デバイス20_2、…、デバイス20_nを識別し、いずれかまたは全てを指定することができる。複数のデバイス20_1、デバイス20_2、…、デバイス20_n側は、このデバイスIDによって、コントローラ10からの各種指示が自分宛か否かを判別することができる。
The
[通信フォーマットの説明(1)]
次に、本発明の実施の形態1のシリアル通信システム1Aにおいて実行されるシリアル通信方法の通信フォーマットを図3及び図4を参照して説明する。また、本発明の実施の形態1のシリアル通信システム1Bにおいて実行されるシリアル通信方法の通信フォーマットについて図5及び図6を参照して説明する。
[Description of communication format (1)]
Next, the communication format of the serial communication method executed in the serial communication system 1A according to
図3は、本発明の実施の形態1におけるシリアル通信システム1Aの通信フォーマットを示すタイミングチャートである。図4は、本発明の実施の形態1におけるシリアル通信システム1Aの通信フォーマットの内容の一例を示す説明図である。
FIG. 3 is a timing chart showing a communication format of the serial communication system 1A according to
まず、シングルマスタ/シングルスレーブ接続のシリアル通信システム1Aにおける通信の様子を、図3を参照して説明する。図3の(a)は、シングルマスタ/シングルスレーブ接続のシリアル通信システム1Aにおける、コントローラ10からデバイス20に対するリクエストの送信を示している。ここで、コントローラ10が送信するリクエストとは、後述するように、デバイス20に対するデータの要求を意味する。
First, the state of communication in the single master/single slave connection serial communication system 1A will be described with reference to FIG. FIG. 3(a) shows transmission of a request from the
コントローラ10は、先行するデータフレームの最終部分から1データフレーム分以上のアイドル状態が存在するか否かを監視しており、先行するデータフレームの最終部分から1データフレーム分以上のアイドル状態が継続した後に、コントロールフィールドCFをリクエストとしてデバイス20に対して送信する。なお、1データフレームとは、デバイス20からコントローラ10に向けて送信される一連のデータの単位である。
The
図3の(b)は、シングルマスタ/シングルスレーブ接続のシリアル通信システム1Aにおける、デバイス20がコントローラ10に向けて送信するデータの通信フォーマットを示している。
FIG. 3B shows a communication format of data transmitted from the
デバイス20は、1データフレーム分以上のアイドル状態が継続した後に、リクエストとしてコントロールフィールドCFが送られてくることで、通信開始であると判断する。これにより、デバイス20は、他の通信に対して誤って通信開始と判断することを回避している。
The
デバイス20は、コントローラ10からコントロールフィールドCFがリクエストとして送られてくると、通信フォーマットに従ってコントローラ10に対して、シリアル通信によりデータを送信する。デバイス20は、センシングデバイスであり、制御対象から検知したデータをコントローラ10に対して送信する。
When the
デバイス20は、図3の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、ステータスフィールドSF、データフィールドDF0~DFn、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
The
図4は、図3の(a)及び(b)のタイミングチャートに示されるデータの各フィールドの内容を示している。コントロールフィールドCFは、通信相手方へのコマンド情報である。ステータスフィールドSFは、デバイスの状態識別情報である。データフィールドDF0~DFnは、データIDに割り振られた情報である。検査フィールドCRCは、CRCフィールド以外の全てのフィールドのスタートビットとデリミッタとを除く全てのビットに対するCRC(Cyclic Redundancy Check:巡回冗長検査)による誤り検査情報である。 FIG. 4 shows the contents of each field of the data shown in the timing charts of FIGS. 3(a) and 3(b). The control field CF is command information for the communication partner. The status field SF is device status identification information. Data fields DF0 to DFn are information assigned to data IDs. The check field CRC is error check information by CRC (Cyclic Redundancy Check) for all bits except the start bit and delimiter of all fields other than the CRC field.
次に、シングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおける、通信の様子を説明する。 Next, the state of communication in the single-master/multi-slave serial communication system 1B will be described.
図5の(a)は、シングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおける、コントローラ10から複数のデバイス20_1~デバイス20_nのうちのいずれかに対するリクエストの送信を示している。ここで、コントローラ10が送信するリクエストとは、デバイス20に対するデータの要求を意味する。
FIG. 5(a) shows transmission of a request from the
コントローラ10は、上述した説明と同様に、先行するデータフレームの最終部分から1データフレーム分以上のアイドル状態が継続した後に、コントロールフィールドCFとデバイスIDフィールドIDFを、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iへのリクエストとして送信する。
As in the above description, after the idle state for one data frame or more continues from the last part of the preceding data frame, the
図5の(b)は、シングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおける、デバイス20がコントローラ10に向けて送信するデータの通信フォーマットを示している。
(b) of FIG. 5 shows a communication format of data transmitted from the
複数のデバイス20_1~デバイス20_nは、1データフレーム分以上のアイドル状態が継続した後に、リクエストとしてコントロールフィールドCFとデバイスIDフィールドIDFとが送られてくることで、通信開始であると判断する。 The plurality of devices 20_1 to 20_n determine that communication has started when the control field CF and device ID field IDF are sent as a request after the idle state continues for one data frame or more.
複数のデバイス20_1~デバイス20_nは、コントローラ10からコントロールフィールドCFとデバイスIDフィールドIDFとがリクエストとして送られてくると、コントロールフィールドCFの内容とデバイスIDフィールドIDFの内容とに応じて、自分宛のリクエストであるかを判別する。
When the control field CF and the device ID field IDF are sent as a request from the
コントローラ10からのリクエストが自分宛であると判別したデバイス20_iは、データを通信フォーマットに従ってコントローラ10に対してシリアル通信によりデータを送信する。デバイス20_iはセンシングデバイスであり、制御対象から検知したデータをコントローラ10に対して送信する。
The device 20_i that has determined that the request from the
デバイス20_iは、図5の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、デバイスIDフィールドIDF、ステータスフィールドSF、データフィールドDF0~DFn、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
As shown in FIG. 5(b), the device 20_i transmits a series of data including a control field CF, a device ID field IDF, a status field SF, data fields DF0 to DFn, and a check field CRC according to the communication format. Send to the
以上の図5の(a)及び(b)のタイミングチャートに示されるデータの各フィールドの内容を、図6を参照して説明する。図6は、本発明の実施の形態1におけるシリアル通信システム1Bの通信フォーマットの内容の一例を示す説明図である。図6は、図4に示したものと異なり、複数のデバイスを識別するデバイスID(identification)の情報であるデバイスIDフィールドIDFを更に有している。
The contents of each field of the data shown in the timing charts of FIGS. 5(a) and 5(b) will be described with reference to FIG. FIG. 6 is an explanatory diagram showing an example of the contents of the communication format of the serial communication system 1B according to
次に、本発明の実施の形態1におけるシリアル通信で用いられる通信フォーマット中のコントロールフィールドCFについて、図7と図8を参照して説明する。
Next, the control field CF in the communication format used in serial communication according to
図7は、本発明の実施の形態1におけるシリアル通信システム1A及び1Bで用いられる通信フォーマット中のコントロールフィールドCFのフォーマットを示す説明図である。コントロールフィールドCFは、スタートビット、SYNC(Synchronous)コードのビット、データIDコードのビット、データIDパリティのビット、及びデリミッタのビットが含まれている。
FIG. 7 is an explanatory diagram showing the format of the control field CF in the communication format used in the serial communication systems 1A and 1B according to
図8は、本発明の実施の形態1におけるシリアル通信システム1A及び1Bで用いられる通信フォーマット中のコントロールフィールドCFの各ビットの内容を示す説明図である。
FIG. 8 is an explanatory diagram showing the contents of each bit of the control field CF in the communication format used in the serial communication systems 1A and 1B according to
スタートビットは、開始位置を示すビットであり、例えば、“0”に固定されている。SYNCコードは、同期に用いられる予め定められたコードであり、“0”と“1”を所定回数繰り返す。この実施の形態1において、SYNCコードは、シングルマスタ/シングルスレーブ通信を行う場合は第1のSYNCコード“010”、シングルマスタ/マルチスレーブ通信を行う場合は第2のSYNCコード“101”が割り当てられる。
The start bit is a bit that indicates the start position, and is fixed to "0", for example. The SYNC code is a predetermined code used for synchronization, and repeats "0" and "1" a predetermined number of times. In this
データIDコードは、通信内容を選択するため、通信データや動作命令を割り当てられたコードである。データIDコードには、データを保持するラッチ、及び、ラッチを解除するリリースを実行するため、ラッチ/リリース制御実行IDを割り当てておくことができる。データIDパリティは、データIDコードに対するパリティチェックのビットである。デリミッタは、終了位置を示すビットであり、例えば、“1”に固定されている。 The data ID code is a code to which communication data and operation commands are assigned in order to select communication contents. A data ID code can be assigned a latch/release control execution ID to execute a latch that holds data and a release that releases the latch. Data ID parity is a parity check bit for the data ID code. The delimiter is a bit indicating the end position, and is fixed to "1", for example.
以上のコントロールフィールドCF中SYNCコードによって、シリアル通信システム1A及び1Bにおいて、シングルマスタ/シングルスレーブ通信とシングルマスタ/マルチスレーブ通信のどちらを行うかが決定される。また、SYNCコードは、“010”と“101”のいずれであっても、本来の同期の用途にも使用される。 The above SYNC code in the control field CF determines whether single master/single slave communication or single master/multi-slave communication is to be performed in serial communication systems 1A and 1B. The SYNC code, whether "010" or "101", is also used for original synchronization purposes.
シングルマスタ/シングルスレーブ通信において、デバイス20は、コントロールフィールドCFを受信した後、データIDコードに応じたデータの返信または各種の動作を実行する。
In single master/single slave communication, after receiving the control field CF, the
シングルマスタ/マルチスレーブ通信において、コントロールフィールドCFに続いてデバイスIDフィールドIDFがコントローラ10から送信されると、該当するデバイスIDを有するデバイス20_iは、データIDコードに応じたデータの返信または各種の動作を実行する。
In single-master/multi-slave communication, when the device ID field IDF is transmitted from the
[通信フォーマットの説明(2)]
次に、コントローラ10からの指示により、デバイス20においてデータのラッチとリリースとを実行するコマンドを含む通信フォーマットを、図9~図12を参照して説明する。なお、ラッチとは、フリップフロップ回路におけるラッチだけでなく、各種の回路においてデータを保持することを意味する。リリースとは、各種の回路においてラッチによるデータの保持を解除することを意味する。
[Description of communication format (2)]
Next, communication formats including commands for latching and releasing data in the
図9は、本発明の実施の形態1におけるシリアル通信システム1Aの通信フォーマットを示すタイミングチャートである。図10は、本発明の実施の形態1におけるシリアル通信システム1Aの通信フォーマットの内容の一例を示す説明図である。図9及び図10において、既に説明した図3及び図4と同一物には同一番号を付すことで重複した説明を省略し、図3及び図4とは異なる部分を中心に説明する。
FIG. 9 is a timing chart showing the communication format of the serial communication system 1A according to
まず、シングルマスタ/シングルスレーブ接続のシリアル通信システム1Aにおける、ラッチとリリースのコマンドを含む通信の様子を、図9を参照して説明する。 First, the state of communication including latch and release commands in the single master/single slave connection serial communication system 1A will be described with reference to FIG.
コントローラ10は、図9の(a)に示すように、先行するデータフレームの最終部分から1データフレーム分以上のアイドル状態が継続した後に、コントロールフィールドCF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータを、デバイス20に対して送信する。
As shown in FIG. 9A, after the idle state for one data frame or more continues from the last part of the preceding data frame, the
デバイス20は、コントロールフィールドCF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータがコントローラ10から送られてくることで、通信開始であると判断する。デバイス20は、図9の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、ステータスフィールドSF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
The
図10は、図9の(a)及び(b)のタイミングチャートに示されるデータの各フィールドの内容を示している。コントロールフィールドCFは、通信相手方へのコマンド情報である。ステータスフィールドSFは、デバイスの状態識別情報である。コマンドコードフィールドCCFは、ラッチまたはリリースに関する命令、受け付けを示すコマンドコードである。検査フィールドCRCは、CRCフィールド以外の全てのフィールドのスタートビットとデリミッタとを除く全てのビットに対するCRC(Cyclic Redundancy Check:巡回冗長検査)による誤り検査情報である。 FIG. 10 shows the contents of each field of the data shown in the timing charts of FIGS. 9(a) and 9(b). The control field CF is command information for the communication partner. The status field SF is device status identification information. The command code field CCF is a command code indicating acceptance of an instruction relating to latch or release. The check field CRC is error check information by CRC (Cyclic Redundancy Check) for all bits except the start bit and delimiter of all fields other than the CRC field.
コントローラ10は、コントロールフィールドCF中のデータIDコードに、デバイス20に対してラッチ/リリース制御の実行を指示するコマンド情報を含めることができる。コントローラ10は、更に、コマンドコードフィールドCCF中のデータに、ラッチ/リリース関連のコマンドコードとして、ラッチ実行、リリース実行、を指示するコマンドコードを含めることができる。
The
デバイス20は、コントローラ10からのコントロールフィールドCFがラッチ/リリース制御の実行を指示するコマンド情報であり、かつ、コマンドコードフィールドCCF中にラッチ/リリース関連のコマンドコードが含まれる場合、図9の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、ステータスフィールドSF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
When the control field CF from the
デバイス20は、以上のコントローラ10への送信の際に、コントローラ10から指示されたラッチまたはリリースを受け付けたことを示すコマンドコードをコマンドコードフィールドCCF中に含めるようにする。そして、デバイス20は、コントローラ10から指示されたラッチまたはリリースを実行する。
When the
次に、シングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおける、ラッチとリリースのコマンドを含む通信の様子を、図11を参照して説明する。図11は、本発明の実施の形態1におけるシリアル通信システム1Bの通信フォーマットを示すタイミングチャートである。
Next, communication including latch and release commands in the single-master/multi-slave serial communication system 1B will be described with reference to FIG. FIG. 11 is a timing chart showing the communication format of the serial communication system 1B according to
コントローラ10は、図11の(a)に示すように、先行するデータフレームの最終部分から1データフレーム分以上のアイドル状態が継続した後に、コントロールフィールドCF、デバイスIDフィールドIDF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータを、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iに対して送信する。
As shown in FIG. 11(a), the
複数のデバイス20_1~デバイス20_nは、コントロールフィールドCF、デバイスIDフィールドIDF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータがコントローラ10から送られてくることで、通信開始であると判断する。
A plurality of devices 20_1 to 20_n determine that communication is started when a series of data including a control field CF, a device ID field IDF, a command code field CCF, and a check field CRC are sent from the
複数のデバイス20_1~デバイス20_nは、コントロールフィールドCFの内容とデバイスIDフィールドIDFの内容とに応じて、自分宛のリクエストであるかを判別する。デバイスIDフィールドIDFによって指定されたデバイスに該当すると判別したデバイス20_iは、図11の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、デバイスIDフィールドIDF、ステータスフィールドSF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
A plurality of devices 20_1 to 20_n determine whether the request is addressed to itself according to the contents of the control field CF and the contents of the device ID field IDF. The device 20_i determined to correspond to the device specified by the device ID field IDF follows the communication format as shown in FIG. A series of data is sent to the
以上の図11の(a)及び(b)のタイミングチャートに示されるデータの各フィールドの内容について、図12を参照して説明する。図12は、本発明の実施の形態1におけるシリアル通信システム1Bの通信フォーマットの内容の一例を示す説明図である。図12は、図10に示したものと異なり、複数のデバイスを識別するデバイスIDの情報であるデバイスIDフィールドIDFを有している。
The contents of each field of the data shown in the timing charts of FIGS. 11(a) and 11(b) will be described with reference to FIG. FIG. 12 is an explanatory diagram showing an example of the content of the communication format of the serial communication system 1B according to
コントローラ10は、コントロールフィールドCF中のデータIDコードに、デバイス20_iに対してラッチ/リリース制御の実行を指示するコマンド情報を含めることができる。そして、コントローラ10は、更に、デバイスIDフィールドIDFにラッチ/リリース制御の実行を指示するデバイスのIDを含め、コマンドコードフィールドCCFにラッチ/リリース関連のコマンドコードを含めることができる。ここで、ラッチ関連のコマンドコードとは、ラッチ実行、ラッチ実行の対象デバイス、リリース実行、リリース実行の対象デバイス、を指示するコマンドコードである。
The
デバイス20_iは、コントローラ10からのコントロールフィールドCFがラッチ/リリース制御の実行を指示するコマンド情報であり、コマンドコードフィールドCCF中のデータにラッチ/リリース関連のコマンドコードが含まれ、かつ、デバイスIDフィールドIDFによりラッチ/リリース制御の実行を指示されたデバイスに該当する場合、図11の(b)に示されるように、通信フォーマットに従い、コントロールフィールドCF、ステータスフィールドSF、コマンドコードフィールドCCF、及び検査フィールドCRCが含まれる一連のデータをコントローラ10へ送信する。
In the device 20_i, the control field CF from the
デバイス20_iは、デバイスIDフィールドIDFによりラッチ/リリース制御の実行を指示されたデバイスに該当する場合、以上のコントローラ10への送信の際に、コントローラ10から指示されたラッチまたはリリースの受付をしたことを示すコマンドコードをコマンドコードフィールドCCF中に含めるようにする。そして、デバイス20_iは、コントローラ10から指示されたラッチまたはリリースを実行する。
If the device 20_i corresponds to the device instructed to execute the latch/release control by the device ID field IDF, the device 20_i has received the latch or release instructed by the
次に、本発明の実施の形態1におけるシリアル通信で用いられる通信フォーマット中のコマンドコードフィールドCCFについて、図13と図14を参照して説明する。図13は、本発明の実施の形態1におけるシリアル通信システム1A及び1Bで用いられる通信フォーマット中のコマンドコードフィールドCCFのフォーマットを示す説明図である。コマンドコードフィールドCCFは、スタートビット、コマンドコードフィールドCCFのビット、及びデリミッタのビットが含まれている。
Next, the command code field CCF in the communication format used in serial communication according to
図14は、本発明の実施の形態1におけるシリアル通信システム1A及び1Bで用いられる通信フォーマット中のコマンドコードフィールドCCFの各ビットの内容を示す説明図である。スタートビットは、開始位置を示すビットであり、例えば、“0”に固定されている。コマンドコードフィールドCCFのビットは、例えば、8ビットであり、0x00~0xFFの256通りの値をとりうる。デリミッタは、終了位置を示すビットであり、例えば、“1”に固定されている。
FIG. 14 is an explanatory diagram showing the contents of each bit of the command code field CCF in the communication format used in the serial communication systems 1A and 1B according to
次に、本発明の実施の形態1におけるシリアル通信で用いられる通信フォーマット中のコマンドコードフィールドCCFの具体的なコード内容を、図15を参照して説明する。図15は、本発明の実施の形態1におけるシリアル通信システム1A及び1Bで用いられる通信フォーマット中のコマンドコードの割り当てを示す説明図である。
Next, specific code contents of the command code field CCF in the communication format used in serial communication according to
図15に示すコマンドコードの割り当ては、一例として以下の通りである。
コントローラ10からのコマンドコード0x00は、複数のデバイス20_1~デバイス20_nの全てに対するリリース実行の指示である。
デバイス20側からのコマンドコード0x00は、複数のデバイス20_1~デバイス20_nの全てに対するリリース実行指示の受付を示している。
An example of assignment of command codes shown in FIG. 15 is as follows.
A command code 0x00 from the
A command code 0x00 from the
コントローラ10からのコマンドコード0x55は、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iに対するリリース実行の指示である。
デバイス20側からのコマンドコード0x55は、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iに対するリリース実行指示の受付を示している。
A command code 0x55 from the
A command code 0x55 from the
デバイス20側からのコマンドコード0x5Fは、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iがラッチ中でありデータを保持していることを示しており、特定の問い合わせコマンドコードあるいは未指定のコマンドコードがコントローラ10から送られてきた場合に送信する。
デバイス20側からのコマンドコード0x50は、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iがリリース中であり保持を解除したことを示しており、特定の問い合わせコマンドコードあるいは未指定のコマンドコードがコントローラ10から送られてきた場合に送信する。
The command code 0x5F from the
The command code 0x50 from the
コントローラ10からのコマンドコード0xAAは、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iに対するラッチ実行の指示である。
デバイス20側からのコマンドコード0xAAは、複数のデバイス20_1~デバイス20_nのうちのいずれかのデバイス20_iに対するラッチ実行指示の受付を示している。
A command code 0xAA from the
A command code 0xAA from the
コントローラ10からのコマンドコード0xFFは、複数のデバイス20_1~デバイス20_nの全てに対するラッチ実行の指示である。
デバイス20側からのコマンドコード0xFFは、複数のデバイス20_1~デバイス20_nの全てに対するラッチ実行指示の受付を示している。
A command code 0xFF from the
A command code 0xFF from the
以上の場合において、複数のデバイス20_1~デバイス20_nの全てに対してラッチまたはリリースの指示が出された場合、全てのデバイス20_1~デバイス20_nがラッチまたはリリースの指示に応じて動作するが、代表として定められたいずれかのデバイス20_jが受付のコマンドコードをコントローラ10に送信すればよい。
In the above case, when a latch or release instruction is issued to all of the plurality of devices 20_1 to 20_n, all the devices 20_1 to 20_n operate according to the latch or release instruction. One of the determined devices 20_j may transmit a command code for acceptance to the
以上の場合において、指定されていないデバイスIDがデバイスIDフィールドIDFにおいて指示され、全てのデバイス20_1~20_nを指定したラッチコマンドまたはリリースコマンドがコントローラ10から送信された場合、全てのデバイス20_1~20_nがラッチコマンドまたはリリースコマンドの指示に応じて動作する。
In the above case, if an unspecified device ID is specified in the device ID field IDF and a latch command or release command specifying all the devices 20_1 to 20_n is transmitted from the
なお、以上のシングルマスタ/マルチスレーブ接続のシリアル通信システム1Bにおけるラッチとリリースのコマンドを含む通信については、シングルマスタ/シングルスレーブのシリアル通信システム1Aに対しても適用することができる。シリアル通信システム1Aの場合は、デバイス20が単一であってデバイスの指定が存在していなため、コントローラ10とデバイス20は図15中のいずれかのコマンドコードを使用すればよい。
The communication including the latch and release commands in the single-master/multi-slave serial communication system 1B described above can also be applied to the single-master/single-slave serial communication system 1A. In the case of the serial communication system 1A, there is only one
[シリアル通信システム1Bにおける通信手順]
次に、本発明の実施の形態1のシリアル通信システム1Bにおいて実行されるシリアル通信方法の通信手順について、図16を参照しながら説明する。図16は、本発明の実施の形態1におけるシリアル通信システム1Bの通信手順を示すシーケンス図である。
[Communication procedure in serial communication system 1B]
Next, the communication procedure of the serial communication method executed in the serial communication system 1B according to
ここで、シリアル通信システム1Bは、コントローラ10に対して、複数のデバイス20_1~デバイス20_nがバス通信ライン30Bを通して並列に接続されている。複数のデバイス20_1~デバイス20_nは、センシングデバイスであり、制御対象についてのデータをラッチし、検知し、リリースによりラッチを解除することが可能に構成されている。コントローラ10から全てのデバイスに対するラッチまたはリリース実行の指示があった場合、代表デバイスとして定められたデバイス20_aが、受付をコントローラ10に対して送信するように定められている場合を想定する。
Here, in the serial communication system 1B, a plurality of devices 20_1 to 20_n are connected in parallel to the
まず、コントローラ10は、図16の(a1)に示すように、デバイス20_mに対するラッチ実行の指示を、バス通信ライン30B経由で送信する。
デバイス20_mは、コントローラ10からのラッチ実行の指示を受信すると、図16の(b1)に示すように、指示されたラッチの受付をしたことをコントローラ10へ送信し、指示されたラッチを実行して検知したデータを保持する。
First, as shown in (a1) of FIG. 16, the
When the device 20_m receives the latch execution instruction from the
コントローラ10は、ラッチの指示に応じたラッチ受付を受信した後、デバイス20_mに対して、図16の(a2)に示すように、リクエストの指示をバス通信ライン30B経由で送信する。
デバイス20_mは、コントローラ10からのリクエストの指示を受信すると、図16の(b2)に示すように、制御対象から検知したデータをコントローラ10に対して送信する。
After receiving the latch acceptance corresponding to the latch instruction, the
Upon receiving the request instruction from the
コントローラ10は、リクエストに応じてデータを取得した後、図16の(a3)に示すように、デバイス20_mに対するリリース実行の指示を、バス通信ライン30B経由で送信する。
デバイス20_mは、コントローラ10からのリリース実行の指示を受信すると、図16の(b3)に示すように、指示されたリリースの受付をしたことをコントローラ10へ送信し、指示されたリリースを実行してラッチを解除する。
After acquiring the data in response to the request, the
When the device 20_m receives the release execution instruction from the
コントローラ10は、図16の(a4)に示すように、複数のデバイス20_1~デバイス20_nの全てのデバイスに対するラッチ実行の指示を、バス通信ライン30B経由で送信する。
As shown in (a4) of FIG. 16, the
代表デバイスとして定められたデバイス20_aは、コントローラ10からの複数のデバイス20_1~デバイス20_nの全てのデバイスに対するラッチ実行の指示を受信すると、図16の(b4)に示すように、指示されたラッチの受付をしたことをコントローラ10へ送信し、指示されたラッチを実行して検知したデータを保持する。
When the device 20_a determined as the representative device receives from the
また、以上のデバイス20_aのラッチ実行と並行して、デバイス20_a以外の他のデバイスも、コントローラ10からの全てのデバイスに対するラッチ実行の指示を受信し、指示されたラッチを一斉に実行して検知したデータを保持する。
In parallel with the latch execution of the device 20_a described above, other devices than the device 20_a also receive the latch execution instruction for all the devices from the
コントローラ10は、全てのデバイスに対するラッチの指示に対して、代表と定められたデバイス20_aからのラッチ受付を受信した後、図16の(a5)に示すように、デバイス20_aに対して、リクエストの指示をバス通信ライン30B経由で送信する。
デバイス20_aは、コントローラ10からのリクエストの指示を受信すると、図16の(b5)に示すように、検知したデータをコントローラ10に対して送信する。
After receiving the latch acceptance from the representative device 20_a in response to the latch instruction for all devices, the
Upon receiving the request instruction from the
コントローラ10は、デバイス20_aからデータを受信した後、図16の(a6)に示すように、デバイス20_bに対して、リクエストの指示をバス通信ライン30B経由で送信する。
デバイス20_bは、コントローラ10からのリクエストの指示を受信すると、図16の(b6)に示すように、制御対象から検知したデータをコントローラ10に対して送信する。
After receiving the data from the device 20_a, the
Upon receiving the request instruction from the
コントローラ10は、同様にしてデバイス20_n-1からデータを受信した後、図16の(a7)に示すように、デバイス20_nに対して、リクエストの指示をバス通信ライン30B経由で送信する。
デバイス20_nは、コントローラ10からのリクエストの指示を受信すると、図16の(b7)に示すように、制御対象から検知したデータをコントローラ10に対して送信する。
After receiving data from the device 20_n-1 in the same way, the
Upon receiving the request instruction from the
コントローラ10は、以上のようにして複数のデバイス20_1~デバイス20_nの全て対してリクエストを送信し、リクエストに応じてデータを受信した後、図16の(a8)に示すように、複数のデバイス20_1~デバイス20_nの全てに対するリリース実行の指示を、バス通信ライン30B経由で送信する。
The
代表デバイスとして定められたデバイス20_aは、コントローラ10からの複数のデバイス20_1~デバイス20_nの全てのデバイスに対するリリース実行の指示を受信すると、図16の(b8)に示すように、指示されたリリースの受付をしたことをコントローラ10へ送信し、指示されたリリースを実行してラッチを解除する。
When the device 20_a determined as the representative device receives an instruction to execute release for all of the devices 20_1 to 20_n from the
また、以上のデバイス20_aのリリース実行と並行して、デバイス20_a以外の他のデバイスも、コントローラ10からの全てのデバイスに対するリリース実行の指示を受信し、それぞれ指示されたリリースを一斉に実行してラッチを解除する。
In parallel with the release execution of the device 20_a, the devices other than the device 20_a also receive instructions from the
以上の図16のシーケンス図を用いた説明では、複数のデバイス20_1~デバイス20_nが存在する場合を具体例にしたが、単一のデバイス20の場合であっても、以上の説明と同様に、ラッチ、データ送信、リリースを実行することが可能である。
In the above explanation using the sequence diagram of FIG. 16, a specific example is given of a case where there are a plurality of devices 20_1 to 20_n. However, even in the case of a
本実施の形態1によれば、任意のタイミングで、コントローラ10は、ラッチコマンドとリリースコマンドとを通信フォーマット中に含めて複数のデバイス20_1~デバイス20_nに対して送信し、複数のデバイス20_1~デバイス20_nは、ラッチコマンドに応じて検知したデータを保持し、リリースコマンドに応じて検知したデータの保持を解除することができる。
このため、任意のタイミングで、コントローラ10からのコマンドに基づいて、複数のデバイス20_1~デバイス20_nにおいてデータの保持と解除とを行うことが可能になる。
According to the first embodiment, at arbitrary timing, the
Therefore, data can be held and released in the plurality of devices 20_1 to 20_n based on commands from the
以上のように、複数のデバイス20_1~デバイス20_nは、コントローラ10からの指示により一斉にラッチを実行し、その後にコントローラ10からの指示によりデータを送信することで、複数のデバイス20_1~デバイス20_nから送信されたデータは同時性を有する状態になっている。
As described above, the plurality of devices 20_1 to 20_n simultaneously execute latching according to an instruction from the
従って、複数のデバイス20_1~デバイス20_nで検知されたそれぞれのデータに同時性を必要とするアプリケーションに対して、本実施の形態1を適用することが可能になる。 Therefore, the first embodiment can be applied to applications that require synchronism of data detected by a plurality of devices 20_1 to 20_n.
また、複数のデバイス20_1~デバイス20_nは、コントローラ10からの指示により一斉にラッチを実行しているため、複数のデバイス20_1~デバイス20_nにおいてデータを二度読みして一致を確認するアプリケーションに対して、本実施の形態1を適用することが可能になる。
In addition, since the plurality of devices 20_1 to 20_n are simultaneously latched by an instruction from the
[その他の実施の形態]
以上の実施の形態1のシリアル通信システム1A及び1Bの説明では、通信ライン30Aまたはバス通信ライン30Bにおいて、信号伝送するための2本の対等な信号線を用いたRS485規格の一対のSD+とSD-の差動伝送信号による通信を想定した例として示しているが、本発明はこの内容に限定されるものではない。例えば、本発明の実施の形態1のシリアル通信システム1A及び1BをRS422規格やRS232規格による通信に適用してもよい。また、本発明の実施の形態1のシリアル通信システム1A及び1Bを差動伝送信号によらない通信に適用してもよい。
[Other embodiments]
In the description of the serial communication systems 1A and 1B of
以上の実施の形態1のシリアル通信方法の説明では、通信フォーマットおよび内部のフィールド構成、ビット構成、及びコマンドコードなどの具体例を説明したが、これらの内容に限定されるものではない。 In the above description of the serial communication method of the first embodiment, specific examples of the communication format, internal field configuration, bit configuration, command code, etc. have been described, but the content is not limited to these.
以上の実施の形態1のシリアル通信方法の説明では、シリアル通信として調歩同期式の通信形態を想定した例を示しているが、この通信形態に限定されるものではない。 In the above description of the serial communication method of the first embodiment, an example has been given assuming an asynchronous communication mode as serial communication, but the communication mode is not limited to this.
以上の実施の形態1のシリアル通信システム1Aにおける図3と図9の説明では、デバイスIDフィールドIDFを省略した状態の通信を示しているが、コントロールフィールドCFの直後にデバイスIDフィールドIDFを付加した状態で通信することが可能である。 3 and 9 in the serial communication system 1A of the first embodiment, communication is shown without the device ID field IDF, but the device ID field IDF is added immediately after the control field CF. state can be communicated.
1A,1B シリアル通信システム、10 コントローラ、20 デバイス(センシングデバイス)、20_1~20_n 複数のデバイス(複数のセンシングデバイス)、30A 通信ライン、30B バス通信ライン。 1A, 1B serial communication system, 10 controller, 20 device (sensing device), 20_1 to 20_n multiple devices (multiple sensing devices), 30A communication line, 30B bus communication line.
Claims (6)
前記コントローラは、前記センシングデバイスに対して検知したデータの保持を指示するラッチコマンドまたは前記センシングデバイスに対して検知したデータの保持の解除を指示するリリースコマンドを、前記通信フォーマット中に含めて前記センシングデバイスに対して送信し、
前記センシングデバイスは、
前記コントローラからの前記ラッチコマンドに応じ、検知した前記データを保持し、
前記コントローラからの前記リリースコマンドに応じ、検知した前記データの保持を解除し、
前記コントローラは、前記センシングデバイスに対して状態を問い合わせる問い合わせコマンドを前記通信フォーマット中に含めて前記センシングデバイスに対して送信し、
前記センシングデバイスは、前記コントローラからの前記問い合わせコマンドに応じ、前記データを保持していることを示すコマンドまたは保持を解除したことを示すコマンドを前記コントローラに対して送信する
シリアル通信方法。 A serial communication method for performing serial communication according to a communication format between a controller having a serial communication function and one or more sensing devices having a serial communication function,
The controller includes, in the communication format, a latch command instructing the sensing device to hold the detected data or a release command instructing the sensing device to release the holding of the detected data. to the device,
The sensing device is
holding the detected data in response to the latch command from the controller;
canceling retention of the detected data in response to the release command from the controller;
The controller includes an inquiry command for inquiring the state of the sensing device in the communication format and transmits the inquiry command to the sensing device,
The serial communication method, wherein the sensing device transmits to the controller a command indicating that the data is held or a command that indicates that the holding is released in response to the inquiry command from the controller.
前記コントローラからの前記ラッチコマンドに応じ、保持の指示を受け付けたことを示すコマンドを前記コントローラに対して送信し、
前記コントローラからの前記リリースコマンドに応じ、保持の解除の指示を受け付けたことを示すコマンドを前記コントローラに対して送信する
請求項1に記載のシリアル通信方法。 The sensing device is
transmitting to the controller a command indicating acceptance of a hold instruction in response to the latch command from the controller;
2. The serial communication method according to claim 1, wherein in response to said release command from said controller, a command indicating acceptance of an instruction to cancel holding is transmitted to said controller.
前記センシングデバイスIDにより指定された前記センシングデバイスは、
前記コントローラからの前記ラッチコマンドに応じ、検知した前記データを保持し、
前記コントローラからの前記リリースコマンドに応じ、検知した前記データの保持を解除する
請求項1または請求項2に記載のシリアル通信方法。 The controller includes a sensing device ID designating one of the sensing devices when transmitting the latch command or the release command to the sensing device,
The sensing device designated by the sensing device ID,
holding the detected data in response to the latch command from the controller;
3. The serial communication method according to claim 1, wherein retention of said detected data is released in response to said release command from said controller.
前記マスタデバイスと前記スレーブデバイスとの間で前記シリアル通信を行う
請求項1から請求項3のいずれか1項に記載のシリアル通信方法。 wherein the controller is a master device and the sensing device is a slave device;
4. The serial communication method according to claim 1, wherein said serial communication is performed between said master device and said slave device.
請求項1から請求項4のいずれか1項に記載のシリアル通信方法。 5. The serial communication method according to claim 1, wherein said sensing device transmits said held data to said controller in response to a request from said controller.
請求項1から請求項5のいずれか1項に記載されたシリアル通信方法により、前記コントローラと1以上の前記センシングデバイスとの間でシリアル通信を行う
シリアル通信システム。 A controller having a serial communication function and one or more sensing devices having a serial communication function,
A serial communication system that performs serial communication between the controller and one or more of the sensing devices by the serial communication method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019213782A JP7324455B2 (en) | 2019-11-27 | 2019-11-27 | Serial communication method and serial communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019213782A JP7324455B2 (en) | 2019-11-27 | 2019-11-27 | Serial communication method and serial communication system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021086325A JP2021086325A (en) | 2021-06-03 |
JP7324455B2 true JP7324455B2 (en) | 2023-08-10 |
Family
ID=76087725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019213782A Active JP7324455B2 (en) | 2019-11-27 | 2019-11-27 | Serial communication method and serial communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7324455B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023089665A1 (en) * | 2021-11-16 | 2023-05-25 | 多摩川精機株式会社 | Serial communication method and serial communication system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004295743A (en) | 2003-03-28 | 2004-10-21 | Yokogawa Electric Corp | Multipoint data collecting device |
JP2018512664A (en) | 2015-03-12 | 2018-05-17 | アレグロ・マイクロシステムズ・エルエルシー | Signaling between master and slave components using a shared communication node of the master component |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4034844B2 (en) * | 1995-11-28 | 2008-01-16 | 富士通株式会社 | Bus extension compatible control system |
-
2019
- 2019-11-27 JP JP2019213782A patent/JP7324455B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004295743A (en) | 2003-03-28 | 2004-10-21 | Yokogawa Electric Corp | Multipoint data collecting device |
JP2018512664A (en) | 2015-03-12 | 2018-05-17 | アレグロ・マイクロシステムズ・エルエルシー | Signaling between master and slave components using a shared communication node of the master component |
Also Published As
Publication number | Publication date |
---|---|
JP2021086325A (en) | 2021-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5519603A (en) | Intelligent process control communication system and method having capability to time align corresponding data sets | |
US8923286B2 (en) | Method and apparatus for safety-related communication in a communication network of an automation system | |
JP6509477B2 (en) | Control device and control program | |
EP3651417B1 (en) | Control system and control method | |
JP7324455B2 (en) | Serial communication method and serial communication system | |
CN107205063A (en) | A kind of device conflict solution of Intelligent housing bus | |
KR100373617B1 (en) | Electronic device and its operation mode control method | |
JPH0654911B2 (en) | Method and apparatus for transferring mastership | |
WO2023089665A1 (en) | Serial communication method and serial communication system | |
JPH0424702A (en) | Control system | |
JP2010092336A (en) | Storage system and communication method | |
EP0115348B1 (en) | Remote initialization of interconnected communications stations | |
CN110351012B (en) | Method for detecting data corruption during data transmission via a fail-safe communication link | |
JP2006059100A (en) | Serial communication system device | |
WO2021010166A1 (en) | Serial communication method and serial communication system | |
WO2019009281A1 (en) | Control system and control method | |
CN106126452A (en) | The method that (SuSE) Linux OS based on IIC agreement communicates with bare machine | |
US7167940B2 (en) | Data processing method, data processing apparatus, communications device, communications method, communications protocol and program | |
JPH0522329A (en) | Specifying method for signal transmission fault | |
JP3127939B2 (en) | Event information transmission device | |
US20150215136A1 (en) | Network control device, the network control system and the method of the remote device | |
JP3459046B2 (en) | Media converter with test manager, fault detection system and fault detection method | |
JP2735078B2 (en) | Communication control method | |
CN115562912A (en) | Data redundancy monitoring method | |
JPH0375842A (en) | Errorneous control prevention circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220523 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230320 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230328 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230515 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230620 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230627 |
|
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: 20230711 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230721 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7324455 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |