JP2019176319A - Communication system and lower-level device - Google Patents

Communication system and lower-level device Download PDF

Info

Publication number
JP2019176319A
JP2019176319A JP2018062490A JP2018062490A JP2019176319A JP 2019176319 A JP2019176319 A JP 2019176319A JP 2018062490 A JP2018062490 A JP 2018062490A JP 2018062490 A JP2018062490 A JP 2018062490A JP 2019176319 A JP2019176319 A JP 2019176319A
Authority
JP
Japan
Prior art keywords
message
address
unit
confirmation
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018062490A
Other languages
Japanese (ja)
Other versions
JP7109225B2 (en
Inventor
千穂 西田
Chiho Nishida
千穂 西田
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.)
Mitsubishi Electric Engineering Co Ltd
Original Assignee
Mitsubishi Electric Engineering Co 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 Mitsubishi Electric Engineering Co Ltd filed Critical Mitsubishi Electric Engineering Co Ltd
Priority to JP2018062490A priority Critical patent/JP7109225B2/en
Publication of JP2019176319A publication Critical patent/JP2019176319A/en
Application granted granted Critical
Publication of JP7109225B2 publication Critical patent/JP7109225B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To enable the avoidance of duplication of an address to a lower-level device more simply than a conventional configuration.SOLUTION: A lower-level device 2 includes: a setting unit 206 for temporarily setting an address; a message transmission unit 204 for transmitting a duplication confirmation message in which the address temporarily set by the setting unit 206 is set as a transmission destination address; a message reception unit 203 for receiving a message; and a confirmation unit 207 for confirming the address temporarily set by the setting unit 206 as an address of its own device and registering it if a duplication confirmation response message which is a message indicating a response to the duplication confirmation message is not received by the message reception unit 203 even if a certain period passes after the message transmission unit 204 transmitted the duplication confirmation message.SELECTED DRAWING: Figure 4

Description

この発明は、通信線を介して接続される上位装置及び複数の下位装置を備えた通信システム、及び下位装置に関する。   The present invention relates to a communication system including a higher-level device and a plurality of lower-level devices connected via a communication line, and a lower-level device.

従来から、通信システムでは、上位装置と複数の下位装置との間で通信を行うため、下位装置に対するアドレスを設定している(例えば特許文献1参照)。この特許文献1に開示された通信システムでは、下位装置は予めランダム数から成るシリアル番号をアドレスとして設定する。そして、下位装置のうちの1台が親局となり、この親局が、シリアル番号が重複する下位装置を検出した場合にシリアル番号の変更を行う。これにより、下位装置はアドレス重複を回避できる。   Conventionally, in a communication system, an address for a lower-level device is set in order to perform communication between the higher-level device and a plurality of lower-level devices (see, for example, Patent Document 1). In the communication system disclosed in Patent Document 1, the lower-level device sets a serial number made up of a random number as an address in advance. Then, one of the subordinate devices becomes a master station, and when this master station detects a subordinate device having a duplicate serial number, the serial number is changed. Thereby, the subordinate apparatus can avoid address duplication.

特開平10−306973号公報JP-A-10-306973

しかしながら、従来の通信システムでは、下位装置のアドレス重複を検知するために複雑な工程を経る必要がある。   However, in the conventional communication system, it is necessary to go through a complicated process in order to detect address duplication of the lower device.

この発明は、上記のような課題を解決するためになされたもので、従来構成に対してより簡易に、下位装置に対するアドレスの重複を回避可能な通信システムを提供することを目的としている。   The present invention has been made to solve the above-described problems, and it is an object of the present invention to provide a communication system that can avoid duplication of addresses for lower-level devices more easily than the conventional configuration.

この発明に係る通信システムは、通信線を介して接続される上位装置及び複数の下位装置を備え、下位装置は、アドレスを仮設定する設定部と、設定部により仮設定されたアドレスを送信先アドレスとした電文である重複確認電文を送信する下位送信部と、電文の受信を行う下位受信部と、下位送信部により重複確認電文が送信された後一定期間経過しても下位受信部により当該重複確認電文に対する応答を示す電文である重複確認応答電文が受信されない場合に、設定部により仮設定されたアドレスを自機のアドレスとして確定して登録する確定部とを備えたことを特徴とする。   The communication system according to the present invention includes an upper device and a plurality of lower devices connected via a communication line, and the lower device has a setting unit that temporarily sets an address, and an address temporarily set by the setting unit as a transmission destination The lower-level transmission unit that transmits the duplicate confirmation message that is the addressed message, the lower-level reception unit that receives the message, and the lower-level reception unit after the duplication confirmation message is transmitted by the lower-level transmission unit. And a confirmation unit for confirming and registering the address temporarily set by the setting unit as an address of the own device when a duplicate confirmation response message which is a message indicating a response to the duplicate confirmation message is not received. .

この発明によれば、上記のように構成したので、従来構成に対してより簡易に、下位装置に対するアドレスの重複を回避可能である。   According to the present invention, since it is configured as described above, it is possible to avoid duplication of addresses for lower-level devices more easily than the conventional configuration.

この発明の実施の形態1に係る通信システムの構成例を示す図である。It is a figure which shows the structural example of the communication system which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る上位装置の構成例を示す図である。It is a figure which shows the structural example of the high-order apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る下位装置の構成例を示す図である。It is a figure which shows the structural example of the low-order apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る下位装置によるアドレス設定動作の一例を示すフローチャートである。It is a flowchart which shows an example of the address setting operation | movement by the low-order apparatus based on Embodiment 1 of this invention. この発明の実施の形態1に係る下位装置によるアドレス設定動作の具体例を示すシーケンス図である。It is a sequence diagram which shows the specific example of the address setting operation | movement by the low-order apparatus based on Embodiment 1 of this invention. この発明の実施の形態1に係る上位装置によるアドレス収集動作の一例を示すフローチャートである。It is a flowchart which shows an example of the address collection operation | movement by the high-order apparatus based on Embodiment 1 of this invention. 図7A、図7Bは、この発明の実施の形態1に係る上位装置及び下位装置のハードウェア構成例を示す図である。7A and 7B are diagrams showing hardware configuration examples of the upper device and the lower device according to Embodiment 1 of the present invention.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1はこの発明の実施の形態1に係る通信システムの構成例を示す図である。
通信システムは、図1に示すように、通信線を介して接続される上位装置1及び複数の下位装置2を備えている。この通信システムは、RS−485通信を採用し、上位装置1から複数の下位装置2に対してポーリングセレクション方式のシリアル通信を行う。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1 FIG.
1 is a diagram showing a configuration example of a communication system according to Embodiment 1 of the present invention.
As shown in FIG. 1, the communication system includes an upper device 1 and a plurality of lower devices 2 connected via a communication line. This communication system adopts RS-485 communication, and performs serial communication of the polling selection method from the higher-level device 1 to a plurality of lower-level devices 2.

上位装置1は、図2に示すように、保持部101、モード設定部102、電文作成部103、電文受信部(上位受信部)104、電文送信部(上位送信部)105、送信制御部106及び登録部107を有している。   As shown in FIG. 2, the host device 1 includes a holding unit 101, a mode setting unit 102, a message creation unit 103, a message reception unit (upper reception unit) 104, a message transmission unit (upper transmission unit) 105, and a transmission control unit 106. And a registration unit 107.

保持部101は、アドレス(論理的アドレス)が記録されるテーブルを保持する。初期状態では、テーブルには、アドレス設定において下位装置2に対して設定可能な番号のアドレスが全て未使用の状態(下位装置2のアドレスとして登録されていない状態)で記録されている。   The holding unit 101 holds a table in which addresses (logical addresses) are recorded. In the initial state, all addresses having numbers that can be set for the lower device 2 in the address setting are recorded in an unused state (a state in which the addresses are not registered as addresses of the lower device 2).

図1では、アドレス設定において下位装置2に対して設定可能なアドレスの番号が1〜240である場合を想定している。また図1では、下位装置(No.3)ではアドレス(3)が登録され、下位装置(No.4)ではアドレス(4)が登録され、その他の下位装置2ではアドレスが未登録である場合を示している。また、アドレスが未登録の下位装置2には、初期のアドレスとして、事前に決められた第1の仮アドレスが登録されている。第1の仮アドレスは、アドレス設定において下位装置2に対して設定可能な番号とは異なる番号のアドレスである。図1では、第1の仮アドレスの番号は254となっている。   In FIG. 1, it is assumed that the address numbers that can be set for the lower-level device 2 in the address setting are 1 to 240. In FIG. 1, the address (3) is registered in the lower level device (No. 3), the address (4) is registered in the lower level device (No. 4), and the address is not registered in the other lower level devices 2. Is shown. Further, a first provisional address determined in advance is registered as an initial address in the low-order device 2 whose address is not registered. The first temporary address is an address having a number different from a number that can be set for the lower level device 2 in the address setting. In FIG. 1, the number of the first temporary address is 254.

なお、保持部101としては、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、EPROM(Erasable Programmable ROM)、EEPROM(Electrically EPROM)等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD(Digital Versatile Disc)等が該当する。   As the holding unit 101, for example, a nonvolatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), an EEPROM (Electrically EPROM), or the like. A magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD (Digital Versatile Disc), or the like is applicable.

なお図2では、上位装置1の内部に保持部101が設けられた場合を示した。しかしながら、これに限らず、上位装置1の外部に保持部101が設けられてもよい。   FIG. 2 shows a case where the holding unit 101 is provided inside the host device 1. However, the present invention is not limited to this, and the holding unit 101 may be provided outside the host device 1.

モード設定部102は、上位装置1の動作モードを設定する。上位装置1の動作モードとしては、通常モード及び試運転モードがある。通常モードは、通常動作を行うモードであり、下位装置2の運転情報をモニタするためのモードである。試運転モードは、下位装置2のアドレスを確認するためのモードである。   The mode setting unit 102 sets the operation mode of the higher-level device 1. The operation mode of the host device 1 includes a normal mode and a trial operation mode. The normal mode is a mode for performing a normal operation, and is a mode for monitoring the operation information of the lower device 2. The trial operation mode is a mode for confirming the address of the lower device 2.

電文作成部103は、電文を作成する。
この電文作成部103は、上位装置1が通常モードである場合に、アドレスが登録済みである下位装置2を対象とし、運転情報の送信を要求する電文(状態要求電文)を作成する。この状態要求電文は、識別コード、電文の種別、電文の送信元である自機(上位装置1)のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部103は、送信先アドレスとして、テーブルに記録されている使用中のアドレス(下位装置2のアドレスとして登録されているアドレス)を用いる。
The message creation unit 103 creates a message.
When the host device 1 is in the normal mode, the message creation unit 103 creates a message (state request message) that requests transmission of operation information for the lower device 2 whose address is already registered. This status request message indicates an identification code, a message type, an address (source address) of the own device (higher level device 1) that is a message transmission source, an address of the message (destination address), and the like. Have information. The message creation unit 103 uses the address currently in use recorded in the table (the address registered as the address of the lower level device 2) as the transmission destination address.

また、電文作成部103は、上位装置1が試運転モードである場合に、テーブルに記録されている全てのアドレス先を対象とし、通信を確認する電文(通信確認電文)を作成する。この通信確認電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部103は、送信先アドレスとして、テーブルに記録されている全てのアドレス(使用中のアドレス及び未使用のアドレス)をそれぞれ用いる。   In addition, when the host device 1 is in the trial operation mode, the message creation unit 103 creates a message (communication confirmation message) for confirming communication for all address destinations recorded in the table. This communication confirmation message includes information indicating an identification code, a message type, an address (transmission source address) of the device that is the transmission source of the message, an address of the transmission destination (transmission destination address), and the like. The message creation unit 103 uses all addresses recorded in the table (used addresses and unused addresses) as transmission destination addresses.

電文受信部104は、電文の受信を行う。また、電文受信部104は、電文を受信した場合に、電文に含まれる送信先アドレスから当該電文が自機宛ての電文であるかを判断する。そして、電文受信部104は、電文が自機宛ての電文であると判断した場合には当該電文を取得し、電文が自機宛ての電文ではないと判断した場合には当該電文を読み捨てる。   The message receiving unit 104 receives a message. In addition, when receiving a message, the message reception unit 104 determines whether the message is a message addressed to itself from a transmission destination address included in the message. The message receiving unit 104 acquires the message when it is determined that the message is a message addressed to itself, and discards the message when it is determined that the message is not addressed to itself.

電文送信部105は、電文の送信を行う。この電文送信部105は、電文作成部103により状態要求電文が作成された場合に、当該状態要求電文をポーリングセレクション方式で送信する。また、電文送信部105は、電文作成部103により通信確認電文が作成された場合に、当該通信確認電文をポーリングセレクション方式で送信する。
送信制御部106は、電文送信部105による電文の送信を制御する。
The message transmission unit 105 transmits a message. When the message requesting unit 103 generates a status request message, the message transmission unit 105 transmits the status request message by a polling selection method. In addition, when a communication confirmation message is generated by the message generation unit 103, the message transmission unit 105 transmits the communication confirmation message by a polling selection method.
The transmission control unit 106 controls transmission of a message by the message transmission unit 105.

登録部107は、電文受信部104により後述する確定電文が受信された場合に、テーブルに、当該確定電文により通知されたアドレスを、当該確定電文の送信元である下位装置2のアドレスとして登録する。
また、登録部107は、電文受信部104により通信確認電文に対する応答電文が受信された場合に、テーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である下位装置2のアドレスとして登録する。
When the message receiving unit 104 receives a confirmed message described later, the registration unit 107 registers the address notified by the confirmed message in the table as the address of the lower-level device 2 that is the transmission source of the confirmed message. .
In addition, when the response message for the communication confirmation message is received by the message reception unit 104, the registration unit 107 stores the transmission destination address of the communication confirmation message in the table and the lower device 2 that is the transmission source of the response message. Register as an address.

下位装置2は、図3に示すように、記録部201、電文作成部202、電文受信部(下位受信部)203、電文送信部(下位送信部)204、送信制御部205、設定部206及び確定部207を有している。   As shown in FIG. 3, the lower-level device 2 includes a recording unit 201, a message creation unit 202, a message reception unit (lower reception unit) 203, a message transmission unit (lower transmission unit) 204, a transmission control unit 205, a setting unit 206, and A determination unit 207 is provided.

記録部201は、自機(下位装置2)のアドレスを記録する。初期状態では、記録部201は、自機のアドレスとして第1の仮アドレスを記録している。
なお、記録部201としては、例えば、RAM、ROM、フラッシュメモリ、EPROM、EEPROM等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD等が該当する。
The recording unit 201 records the address of the own device (lower device 2). In the initial state, the recording unit 201 records the first temporary address as the address of the own device.
The recording unit 201 is, for example, a nonvolatile or volatile semiconductor memory such as RAM, ROM, flash memory, EPROM, EEPROM, magnetic disk, flexible disk, optical disk, compact disk, mini disk, DVD, or the like. To do.

なお図3では、下位装置2の内部に記録部201が設けられた場合を示した。しかしながら、これに限らず、下位装置2の外部に記録部201が設けられてもよい。   FIG. 3 shows a case where the recording unit 201 is provided inside the lower-level device 2. However, the present invention is not limited to this, and the recording unit 201 may be provided outside the lower-level device 2.

電文作成部202は、電文を作成する。
この電文作成部202は、設定部206によりアドレスが仮設定された場合に、当該仮設定されたアドレスを送信先アドレスとした電文(重複確認電文)を作成する。この重複確認電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部202は、送信元アドレスとして、下位装置2に対して事前に決められている第2の仮アドレスを用いる。第2の仮アドレスは、アドレス設定において下位装置2に対して設定可能な番号のアドレス及び第1の仮アドレスとは異なる番号(例えば253)のアドレスである。
The message creation unit 202 creates a message.
When the setting unit 206 temporarily sets an address, the message creation unit 202 creates a message (duplication confirmation message) using the temporarily set address as a transmission destination address. This duplication confirmation message has information indicating an identification code, a message type, an address of the own device (transmission source address) that is a transmission source of the message, an address of the transmission destination of the message (transmission destination address), and the like. The message creation unit 202 uses a second temporary address determined in advance for the lower-level device 2 as the source address. The second temporary address is an address with a number that can be set for the lower level device 2 in address setting and an address with a number different from the first temporary address (for example, 253).

また、電文作成部202は、電文受信部203により自機宛ての重複確認電文が受信された場合に、重複確認電文に対する応答を示す電文(重複確認応答電文)を作成する。この重複確認応答電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部202は、送信先アドレスとして、重複確認電文の送信元アドレスを用いるだけでなく、所定の第2の仮アドレス(例えば253)を用いることができる。   In addition, when the message reception unit 203 receives a duplicate confirmation message addressed to itself, the message creation unit 202 creates a message (duplication confirmation response message) indicating a response to the duplicate confirmation message. This duplication confirmation response message includes information indicating an identification code, a message type, an address of the own device that is a message transmission source (transmission source address), a message transmission destination address (transmission destination address), and the like. The message creation unit 202 can use a predetermined second temporary address (for example, 253) as well as the transmission source address of the duplication confirmation message as the transmission destination address.

また、電文作成部202は、確定部207によりアドレスが確定された場合に、当該確定されたアドレスを通知する電文(確定電文)を作成する。この確定電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先である上位装置1のアドレス(送信元アドレス)等を示す情報を有する。なお、電文作成部202は、送信元アドレスとして、確定部207により確定されたアドレスを用いる。   In addition, when the address is determined by the determination unit 207, the message generation unit 202 generates a message (confirmed message) that notifies the determined address. This confirmed message is information indicating an identification code, a message type, an address of the own device that is a message transmission source (transmission source address), an address of the host device 1 that is a transmission destination of the message (transmission source address), and the like. Have The message creation unit 202 uses the address determined by the determination unit 207 as the transmission source address.

また、電文作成部202は、電文受信部203により自機宛ての状態要求電文が受信された場合に、当該状態要求電文に対する応答を示す電文(応答電文)を作成する。応答電文は、自機の運転情報を通知する電文である。この応答電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先である上位装置1のアドレス(送信先アドレス)等を示す情報に加え、自機の運転情報(運転状態、温度情報及び冷媒状態等を示す情報)を有する。   In addition, when a message request unit 203 receives a status request message addressed to itself, the message creation unit 202 creates a message (response message) indicating a response to the status request message. The response message is a message that notifies the operation information of the own device. The response message includes information indicating an identification code, a message type, an address of the own device that is a message transmission source (transmission source address), an address of the host device 1 that is a transmission destination of the message (transmission destination address), and the like. In addition to the operation information of the own machine (information indicating the operation state, temperature information, refrigerant state, etc.).

また、電文作成部202は、電文受信部203により自機宛ての通信確認電文が受信された場合に、当該通信確認電文に対する応答を示す電文(応答電文)を作成する。この応答電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先である上位装置1のアドレス(送信先アドレス)等を示す情報を有する。   In addition, when the message reception unit 203 receives a communication confirmation message addressed to itself, the message generation unit 202 generates a message (response message) indicating a response to the communication confirmation message. The response message includes information indicating an identification code, a message type, an address of the own device that is a message transmission source (transmission source address), an address of the host device 1 that is a transmission destination of the message (transmission destination address), and the like. Have

電文受信部203は、電文の受信を行う。また、電文受信部203は、電文を受信した場合に、電文に含まれる送信先アドレスから当該電文が自機宛ての電文であるかを判断する。そして、電文受信部203は、電文が自機宛ての電文であると判断した場合には当該電文を取得し、電文が自機宛ての電文ではないと判断した場合には当該電文を読み捨てる。   The message receiving unit 203 receives a message. In addition, when receiving a message, the message reception unit 203 determines whether the message is a message addressed to itself from a transmission destination address included in the message. The message receiving unit 203 acquires the message when it is determined that the message is a message addressed to itself, and discards the message when it is determined that the message is not a message addressed to itself.

電文送信部204は、電文の送信を行う。この電文送信部204は、電文作成部202により重複確認電文が作成された場合に、当該重複確認電文を送信する。また、電文送信部204は、電文作成部202により重複確認応答電文が作成された場合に、当該重複確認応答電文を送信する。また、電文送信部204は、電文作成部202により確定電文が作成された場合に、当該確定電文を送信する。また、電文送信部204は、電文作成部202により応答電文が作成された場合に、当該応答電文を送信する。
送信制御部205は、電文送信部204による電文の送信を制御する。
The message transmission unit 204 transmits a message. The message transmission unit 204 transmits the duplication confirmation message when the message creation unit 202 creates a duplication confirmation message. Further, when a duplicate confirmation response message is created by the message creation unit 202, the message transmission unit 204 sends the duplicate confirmation response message. In addition, when a message is generated by the message generator 202, the message transmitter 204 transmits the determined message. In addition, when a response message is created by the message creation unit 202, the message transmission unit 204 transmits the response message.
The transmission control unit 205 controls transmission of a message by the message transmission unit 204.

設定部206は、アドレスを仮設定する。また、設定部206は、電文受信部203により自機宛ての重複確認応答電文が受信された場合には、異なるアドレスへの仮設定を行う。   The setting unit 206 temporarily sets an address. Further, when the message reception unit 203 receives a duplicate confirmation response message addressed to itself, the setting unit 206 performs provisional setting to a different address.

確定部207は、電文送信部204により重複確認電文が送信された後一定期間経過しても電文受信部203により自機宛ての重複確認応答電文が受信されない場合に、設定部206により仮設定されたアドレスを自機のアドレスとして確定して記録部201に登録する。   The confirming unit 207 is provisionally set by the setting unit 206 when a duplicate confirmation response message addressed to itself is not received by the message receiving unit 203 even after a certain period of time has elapsed after the duplication confirmation message is transmitted by the message transmission unit 204. The determined address is determined as the address of the own device and registered in the recording unit 201.

次に、実施の形態1に係る通信システムの動作例について説明する。
まず、下位装置2によるアドレス設定動作の一例について、図4を参照しながら説明する。以下では、上位装置1及び複数の下位装置2が通信線を介して接続されているものとする。
下位装置2によるアドレス設定動作では、図4に示すように、まず、設定部206は、アドレスを仮設定する(ステップST401)。なお、設定部206は、任意のアドレスを仮設定可能である。例えば、設定部206は、下位装置2を操作するユーザにより指定されたアドレスを自機のアドレスとして仮設定してもよい。また、上位装置1が、テーブルに記録されている未使用のアドレスのうちの1つを、アドレスが未登録である下位装置2に通知する機能を有する場合には、設定部206は、この通知された未使用のアドレスがユーザにより選択された場合に当該未使用のアドレスを自機のアドレスとして仮設定してもよい。
Next, an operation example of the communication system according to Embodiment 1 will be described.
First, an example of an address setting operation by the lower device 2 will be described with reference to FIG. In the following, it is assumed that the upper device 1 and the plurality of lower devices 2 are connected via a communication line.
In the address setting operation by the lower level device 2, as shown in FIG. 4, first, the setting unit 206 temporarily sets an address (step ST401). The setting unit 206 can temporarily set an arbitrary address. For example, the setting unit 206 may temporarily set the address specified by the user who operates the lower level device 2 as the address of the own device. When the higher-level device 1 has a function of notifying one of the unused addresses recorded in the table to the lower-level device 2 whose address is not registered, the setting unit 206 notifies this notification. When the unused address is selected by the user, the unused address may be temporarily set as the address of the own device.

次いで、電文作成部202は、設定部206により仮設定されたアドレスを送信先アドレスとした重複確認電文を作成する(ステップST402)。
次いで、電文送信部204は、送信制御部205による制御に従い、電文作成部202により作成された重複確認電文を送信する(ステップST403)。なお、ポーリングセレクション方式では、通常、上位装置1から状態要求電文等の要求電文を送信して下位装置2は要求電文に対する応答電文を送信する形式をとるが、ここでは、例外的に、下位装置2から自発的に電文を送信可能としている。また、電文送信部204は、重複確認電文を、要求電文及び応答電文が送信される送信期間の空き時間を利用して送信する。
Next, the message creation unit 202 creates a duplication confirmation message using the address temporarily set by the setting unit 206 as a transmission destination address (step ST402).
Next, the message transmission unit 204 transmits the duplication confirmation message created by the message creation unit 202 in accordance with the control by the transmission control unit 205 (step ST403). In the polling selection method, normally, a request message such as a status request message is transmitted from the host device 1 and the lower device 2 transmits a response message to the request message. 2 can send a message voluntarily. In addition, the message transmission unit 204 transmits the duplication confirmation message by using the free time of the transmission period in which the request message and the response message are transmitted.

ここで、ある下位装置2が重複確認電文の送信を行うと、上位装置1及び当該下位装置2以外の下位装置2はポーリングセレクション方式のルールを無視して動作を一時停止する。なお、この一時停止を行っている上位装置1及び下位装置2は、一定期間が経過した後、又は、重複確認電文以外の電文を受信した場合に一時停止を解除する。また、この期間内では、下位装置2は重複確認応答電文のみを送信可能である。そして、重複確認電文の送信先アドレスと同一のアドレスを自機のアドレスとして登録している下位装置2が存在する場合には、アドレスが重複していることになる。そのため、この下位装置2は、アドレスが重複していることを示す重複確認応答電文を作成し、この重複確認応答電文を、重複確認電文の送信元アドレスに返信する。   Here, when a certain subordinate apparatus 2 transmits a duplication confirmation message, the subordinate apparatus 2 other than the superordinate apparatus 1 and the subordinate apparatus 2 ignores the rules of the polling selection method and temporarily stops its operation. Note that the upper device 1 and the lower device 2 performing the suspension cancel the suspension after a certain period of time has elapsed or when a message other than a duplicate confirmation message has been received. Further, within this period, the lower-level device 2 can transmit only a duplicate confirmation response message. If there is a lower device 2 that registers the same address as the destination address of the duplication confirmation message as its own address, the address is duplicated. Therefore, this lower level apparatus 2 creates a duplication confirmation response message indicating that the address is duplicated, and returns this duplication confirmation response message to the source address of the duplication confirmation message.

次いで、電文受信部203は、一定期間内に自機宛ての重複確認応答電文を受信したかを判断する(ステップST404)。
このステップST404において、電文受信部203が一定期間内に自機宛ての重複確認応答電文を受信しない場合には、確定部207は、設定部206により仮設定されたアドレスを自機のアドレスとして確定して記録部201に登録する(ステップST405)。
Next, the message receiving unit 203 determines whether or not a duplicate confirmation response message addressed to itself has been received within a certain period (step ST404).
In step ST404, when the message receiving unit 203 does not receive a duplicate confirmation response message addressed to itself within a certain period, the determination unit 207 determines the address temporarily set by the setting unit 206 as the address of the own device. Then, it is registered in the recording unit 201 (step ST405).

また、電文作成部202は、確定電文を作成する(ステップST406)。
次いで、電文送信部204は、送信制御部205による制御に従い、電文作成部202により作成された確定電文を上位装置1に送信する(ステップST407)。なお、この場合には、例外的に、下位装置2から自発的に電文を送信可能としている。また、電文送信部204は、確定電文を、要求電文及び応答電文が送信される送信期間の空き時間を利用して送信する。
その後、上位装置1は、確定電文を受信し、テーブルに、当該確定電文により通知されたアドレスを、当該確定電文の送信元である下位装置2のアドレスとして登録する。
Moreover, the message creation unit 202 creates a confirmed message (step ST406).
Next, the message transmission unit 204 transmits the confirmed message created by the message creation unit 202 to the higher-level device 1 according to the control of the transmission control unit 205 (step ST407). In this case, as an exception, a message can be transmitted voluntarily from the lower device 2. In addition, the message transmission unit 204 transmits a confirmed message by using a free time in a transmission period in which a request message and a response message are transmitted.
Thereafter, the upper device 1 receives the confirmed message, and registers the address notified by the confirmed message in the table as the address of the lower device 2 that is the transmission source of the confirmed message.

一方、ステップST404において、電文受信部203が一定期間内に自機宛ての重複確認応答電文を受信した場合には、シーケンスはステップST401に戻り、設定部206は、異なるアドレスへの仮設定を行う。
なおここでは、電文受信部203により自機宛ての重複確認応答電文が受信された場合に、設定部206が異なるアドレスへの仮設定を行うものとした。しかしながら、これに限らず、例えば、電文受信部203により自機宛ての重複確認応答電文が受信された場合に、下位装置2が有する表示器(不図示)にアドレスが重複している旨を表示(LEDランプの点灯等)してアドレス設定動作を終了してもよい。
On the other hand, in step ST404, when the message reception unit 203 receives a duplicate confirmation response message addressed to itself within a certain period, the sequence returns to step ST401, and the setting unit 206 performs temporary setting to a different address. .
Here, it is assumed that, when the message reception unit 203 receives a duplicate confirmation response message addressed to the own device, the setting unit 206 performs temporary setting to a different address. However, the present invention is not limited to this. For example, when a duplicate confirmation response message addressed to the own device is received by the message receiving unit 203, a message indicating that the address is duplicated is displayed on a display (not shown) of the lower level device 2. The address setting operation may be terminated after the LED lamp is turned on.

次に、下位装置2によるアドレス設定動作の具体例について、図5を参照しながら説明する。
図5では、まず、下位装置(No.1)が、アドレス(1)を自機のアドレスとして仮設定している(ステップST501)。
そして、下位装置(No.1)は、アドレス(1)を送信先とした重複確認電文を送信する(ステップST502)。この下位装置(No.1)による重複確認電文の送信により、上位装置1及び他の下位装置2は動作を一時停止する(電文送信待機)。
一方、この通信システムでは、アドレス(1)と同一のアドレスを自機のアドレスとして登録している下位装置2は存在しないため、下位装置(No.1)は自機宛ての重複確認応答電文を受信することはない。よって、下位装置(No.1)は一定期間(アドレス確定待ち時間)待機した後、アドレス(1)を自機のアドレスとして確定し、その旨を示す確定電文を上位装置1に送信する(ステップST503,ST504)。その後、上位装置1は、アドレス(1)を下位装置(No.1)のアドレスとして登録する。
Next, a specific example of the address setting operation by the lower level apparatus 2 will be described with reference to FIG.
In FIG. 5, first, the lower-level device (No. 1) temporarily sets the address (1) as the address of the own device (step ST501).
Then, the lower device (No. 1) transmits a duplication confirmation message with the address (1) as the transmission destination (step ST502). Due to the transmission of the duplication confirmation message by this lower level device (No. 1), the higher level device 1 and the other lower level devices 2 temporarily stop the operation (waiting for the transmission of the message).
On the other hand, in this communication system, there is no lower device 2 that registers the same address as the address (1) as its own address, so the lower device (No. 1) sends a duplicate confirmation response message addressed to its own device. Never receive. Therefore, after waiting for a certain period (address determination waiting time), the lower-level device (No. 1) determines address (1) as its own address, and transmits a confirmation message indicating that to the higher-level device 1 (step) ST503, ST504). Thereafter, the host device 1 registers the address (1) as the address of the lower device (No. 1).

図5では、次に、下位装置(No.2)が、アドレス(3)を自機のアドレスとして仮設定している(ステップST505)。
そして、下位装置(No.2)は、アドレス(3)を送信先とした重複確認電文を送信する(ステップST506)。この下位装置(No.2)による重複確認電文の送信により、上位装置1及び他の下位装置2は動作を一時停止する(電文送信待機)。
一方、この通信システムでは、アドレス(3)と同一のアドレスを自機のアドレスとして登録している下位装置(No.3)が存在している。そして、この下位装置(No.3)は、自機宛ての重複確認電文を受信した後、重複確認応答電文を下位装置(No.2)に返信する(ステップST507)。
そして、下位装置(No.2)は、自機宛ての重複確認応答電文を受信し、アドレスをリセットする(ステップST508)。
その後、下位装置(No.2)は、アドレス(2)を自機のアドレスとして仮設定している(ステップST509)。その後、上記と同様の動作を行う。
In FIG. 5, next, the lower-level device (No. 2) temporarily sets the address (3) as the address of the own device (step ST505).
Then, the lower order apparatus (No. 2) transmits a duplication confirmation message with the address (3) as the transmission destination (step ST506). Due to the transmission of the duplication confirmation message by this lower level device (No. 2), the higher level device 1 and the other lower level devices 2 temporarily stop the operation (waiting for the transmission of the message).
On the other hand, in this communication system, there is a lower device (No. 3) that registers the same address as the address (3) as the address of its own device. Then, after receiving the duplication confirmation message addressed to itself, this lower level apparatus (No. 3) returns a duplication confirmation response message to the lower level apparatus (No. 2) (step ST507).
Then, the lower device (No. 2) receives the duplication confirmation response message addressed to itself and resets the address (step ST508).
Thereafter, the lower device (No. 2) temporarily sets the address (2) as the address of the own device (step ST509). Thereafter, the same operation as described above is performed.

このように、実施の形態1に係る通信システムでは、下位装置2に対するアドレス設定の際に、下位装置2同士がアドレスを監視し合うことでアドレス重複を検知している。これにより、従来構成に対してより簡易に、下位装置2に対するアドレスの重複を回避可能である。   As described above, in the communication system according to the first embodiment, the address duplication is detected by the lower devices 2 monitoring each other when the addresses are set for the lower devices 2. Thereby, it is possible to avoid duplication of addresses for the lower-level device 2 more easily than in the conventional configuration.

なお上記では、上位装置1及び複数の下位装置2が通信線を介して接続された場合での、アドレス設定を示した。一方、上位装置1が接続されておらず、複数の下位装置2のみが通信線を介して接続されている場合には、ポーリングセレクションは存在しないが、基本的な動作は上記と同様である。また、この場合には、下位装置2による確定電文の作成及び送信は実施されない。そして、上位装置1が下位装置2に対して接続された後、上位装置1は、例えば図6に示す手順で、下位装置2のアドレスを収集する。   In the above description, the address setting in the case where the upper device 1 and the plurality of lower devices 2 are connected via the communication line is shown. On the other hand, when the upper device 1 is not connected and only the plurality of lower devices 2 are connected via the communication line, there is no polling selection, but the basic operation is the same as described above. In this case, creation and transmission of a confirmed message by the lower device 2 are not performed. Then, after the upper device 1 is connected to the lower device 2, the upper device 1 collects the addresses of the lower devices 2 by the procedure shown in FIG. 6, for example.

上位装置1によるアドレス収集動作では、図6に示すように、まず、モード設定部102は、動作モードを試運転モードに設定する(ステップST601)。例えば、上位装置1が有する表示器(不図示)に試運転ボタンが表示されており、上位装置1を操作するユーザが試運転ボタンを選択することで、モード設定部102は動作モードを試運転モードに設定する。   In the address collection operation by the host device 1, as shown in FIG. 6, first, the mode setting unit 102 sets the operation mode to the trial operation mode (step ST601). For example, a test run button is displayed on a display (not shown) of the host device 1, and the mode setting unit 102 sets the operation mode to the test run mode when the user operating the host device 1 selects the test run button. To do.

次いで、電文作成部103は、通信確認電文を作成する(ステップST602)。なお、電文作成部103は、送信先アドレスとして、テーブルに記録されている全てのアドレスをそれぞれ用いる。   Next, the message creation unit 103 creates a communication confirmation message (step ST602). The message creation unit 103 uses all addresses recorded in the table as transmission destination addresses.

次いで、電文送信部105は、送信制御部106による制御に従い、電文作成部103により作成された通信確認電文をポーリングセレクション方式で送信する(ステップST603)。
その後、通信確認電文の送信先アドレスと同一のアドレスを自機のアドレスとして登録している下位装置2は、この通信確認電文を受信して応答電文を作成し、この応答電文を上位装置1に返信する。
Next, the message transmission unit 105 transmits the communication confirmation message created by the message creation unit 103 by the polling selection method according to the control by the transmission control unit 106 (step ST603).
Thereafter, the lower device 2 that registers the same address as the transmission destination address of the communication confirmation message as its own address, receives this communication confirmation message, creates a response message, and sends this response message to the upper device 1. Send back.

次いで、電文受信部104は、一定期間内に通信確認電文に対する応答電文を受信したかを判断する(ステップST604)。
このステップST604において、電文受信部104が一定期間内に通信確認電文に対する応答電文を受信した場合には、登録部107は、テーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である下位装置2のアドレスとして登録する(ステップST605)。その後、シーケンスはステップST602に戻り、上位装置1は、次の送信先アドレスに対する通信確認電文の作成へ移行する。
Next, the message reception unit 104 determines whether a response message for the communication confirmation message has been received within a certain period (step ST604).
In step ST604, when the message reception unit 104 receives a response message for the communication confirmation message within a certain period, the registration unit 107 stores the transmission destination address of the communication confirmation message in the table and the transmission of the response message. It is registered as the address of the original lower level apparatus 2 (step ST605). Thereafter, the sequence returns to step ST602, and the higher-level device 1 proceeds to creation of a communication confirmation message for the next transmission destination address.

一方、ステップST604において、電文受信部104が一定期間内に通信確認電文に対する応答電文を受信しない場合には、シーケンスはステップST602に戻り、上位装置1は、次の送信先アドレスに対する通信確認電文の作成へ移行する。すなわち、この場合には、上位装置1は、通信確認電文の送信先に下位装置2は存在しないと判断する。   On the other hand, in step ST604, when the message receiving unit 104 does not receive a response message for the communication confirmation message within a certain period, the sequence returns to step ST602, and the upper apparatus 1 transmits a communication confirmation message for the next transmission destination address. Move to creation. That is, in this case, the upper device 1 determines that the lower device 2 does not exist at the transmission destination of the communication confirmation message.

ここで、例えば特許文献2に示されるように、上位装置が複数の下位装置に対するアドレス設定を行う通信システムも知られている。この通信システムでは、下位装置のアドレス重複を回避可能である。しかしながら、この通信システムでは、上位装置と下位装置との間での通信が必須となる。そのため、上位装置及び下位装置の配置及び配線が完了した後でないとアドレス設定を実施できない。
これに対し、実施の形態1に係る通信システムでは、上位装置1が下位装置2に接続されているかいないかに関わらず、下位装置2に対するアドレス設定をアドレス重複なく実施可能である。そのため、上位装置1が未設置又は未通電の場合、上位装置1の入れ替え時又はデータ破損の際にも、上位装置1との通信を行うことなく、下位装置2に対するアドレス設定が可能であり、作業利便性が増す。
特開2006−29769号公報
Here, for example, as shown in Patent Document 2, a communication system in which an upper apparatus performs address setting for a plurality of lower apparatuses is also known. In this communication system, it is possible to avoid duplication of addresses of lower devices. However, in this communication system, communication between the upper apparatus and the lower apparatus is essential. For this reason, address setting can be performed only after the arrangement and wiring of the upper device and the lower device are completed.
On the other hand, in the communication system according to the first embodiment, address setting for the lower device 2 can be performed without duplication of addresses regardless of whether the upper device 1 is connected to the lower device 2 or not. Therefore, when the host device 1 is not installed or not energized, it is possible to set an address for the lower device 2 without performing communication with the host device 1 even when the host device 1 is replaced or data is damaged. Work convenience increases.
JP 2006-29769 A

このように、実施の形態1に係る通信システムでは、上位装置1が下位装置2に接続されていない場合でも、下位装置2のみでアドレス設定が可能である。一方、例えば、下位装置2が複数の系統に分かれており、系統毎に独立してアドレス設定が実施されることも想定される。この場合、各系統を1つの系統にまとめようとすると、アドレスの重複が生じる可能性がある。
複数系統の統合によりアドレスの重複が生じると、上位装置1が下位装置2に接続された後、上位装置1からはアドレスが重複している下位装置2に対して電文を送ることは可能であるが、アドレスが重複している下位装置2からは、電文が衝突してしまうため、上位装置1に対して電文を送ることができない。
そこで、上位装置1は、状態要求電文の送信を複数回実施しても下位装置2からの応答が無い場合には、通信異常である旨の電文を当該下位装置2に送信する。そして、この電文を受信した下位装置2は、表示器に通信異常である旨の表示(LEDランプの点灯等)を行う。これにより、この下位装置2を操作するユーザは、上位装置1からの電文は受信できているものの上位装置1へは電文を送信できていないことを確認でき、アドレスが重複していることを確認できる。その後、このアドレスが重複している下位装置2は、自機のアドレスを第1の仮アドレスに戻し、上記に示したアドレス設定動作によりアドレスの再設定を実施する。
As described above, in the communication system according to the first embodiment, even when the higher-level device 1 is not connected to the lower-level device 2, the address setting can be performed only by the lower-level device 2. On the other hand, for example, it is assumed that the lower device 2 is divided into a plurality of systems, and address setting is performed independently for each system. In this case, if each system is combined into one system, there is a possibility that address overlap occurs.
When duplication of addresses occurs due to the integration of multiple systems, it is possible to send a message from the higher level device 1 to the lower level device 2 with the same address after the higher level device 1 is connected to the lower level device 2. However, since the telegrams collide from the subordinate device 2 having the same address, the telegram cannot be sent to the superordinate device 1.
Therefore, if there is no response from the lower level device 2 even if the status request message is transmitted a plurality of times, the higher level device 1 transmits a message indicating a communication error to the lower level device 2. Then, the lower-level device 2 that has received this message displays on the display that the communication is abnormal (such as turning on an LED lamp). As a result, the user who operates this lower level device 2 can confirm that the message from the higher level device 1 has been received but has not been transmitted to the higher level device 1 and that the address is duplicated. it can. Thereafter, the subordinate apparatus 2 having the same address returns its own address to the first temporary address, and resets the address by the address setting operation described above.

次に、実施の形態1に係る通信システムの適用例について説明する。
実施の形態1に係る通信システムは、例えば、下位装置2をショーケースの制御コントローラとして用い、上位装置1を複数のショーケースを統括管理する上位コントローラとして用いた冷却システムに適用可能である。
また、実施の形態1に係る通信システムは、例えば、下位装置2を空調機の制御コントローラとして用い、上位装置1を複数の空調機を統括管理する上位コントローラとして用いた空調システムに適用可能である。
Next, an application example of the communication system according to Embodiment 1 will be described.
The communication system according to Embodiment 1 can be applied to, for example, a cooling system in which the lower device 2 is used as a showcase control controller and the upper device 1 is used as an upper controller that manages a plurality of showcases.
The communication system according to the first embodiment is applicable to an air conditioning system that uses, for example, the lower device 2 as a control controller for an air conditioner and uses the upper device 1 as a higher controller that manages a plurality of air conditioners. .

上記では、実施の形態1に係る通信システムの適用先として、上記のような冷却システム又は空調システムを挙げたが、通信システムの適用先はこれに限らない。   In the above description, the cooling system or the air conditioning system as described above is given as the application destination of the communication system according to Embodiment 1, but the application destination of the communication system is not limited to this.

以上のように、この実施の形態1によれば、下位装置2は、アドレスを仮設定する設定部206と、設定部206により仮設定されたアドレスを送信先アドレスとした重複確認電文を送信する電文送信部204と、電文の受信を行う電文受信部203と、電文送信部204により重複確認電文が送信された後一定期間経過しても電文受信部203により当該重複確認電文に対する重複確認応答電文が受信されない場合に、設定部206により仮設定されたアドレスを自機のアドレスとして確定して登録する確定部207とを備えた。これにより、実施の形態1に係る通信システムは、従来構成に対してより簡易に、下位装置2に対するアドレスの重複を回避可能である。   As described above, according to the first embodiment, the lower-level device 2 transmits a setting unit 206 that temporarily sets an address and a duplicate confirmation message that uses the address temporarily set by the setting unit 206 as a transmission destination address. A message transmission unit 204, a message reception unit 203 that receives a message, and a duplicate confirmation response message for the duplication confirmation message by the message reception unit 203 even after a certain period of time has elapsed since the duplication confirmation message was transmitted by the message transmission unit 204 And a confirming unit 207 for confirming and registering the address temporarily set by the setting unit 206 as the address of its own device when it is not received. As a result, the communication system according to Embodiment 1 can avoid duplication of addresses for the lower-level device 2 more easily than the conventional configuration.

最後に、図7を参照して、実施の形態1に係る上位装置1及び下位装置2のハードウェア構成例を説明する。以下では、上位装置1のハードウェア構成例について説明するが、下位装置2についても同様である。
上位装置1における電文受信部104は受信装置により実現され、電文送信部105は送信装置により実現される。また、上位装置1におけるモード設定部102、電文作成部103、送信制御部106及び登録部107の各機能は、処理回路51により実現される。処理回路51は、図7Aに示すように、専用のハードウェアであってもよいし、図7Bに示すように、メモリ53に格納されるプログラムを実行するCPU(Central Processing Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサ、又はDSP(Digital Signal Processor)ともいう)52であってもよい。
Finally, with reference to FIG. 7, a hardware configuration example of the upper device 1 and the lower device 2 according to the first embodiment will be described. Hereinafter, a hardware configuration example of the upper device 1 will be described, but the same applies to the lower device 2.
The message reception unit 104 in the higher-level device 1 is realized by a reception device, and the message transmission unit 105 is realized by a transmission device. The functions of the mode setting unit 102, the message creation unit 103, the transmission control unit 106, and the registration unit 107 in the higher level apparatus 1 are realized by the processing circuit 51. The processing circuit 51 may be dedicated hardware as shown in FIG. 7A, or as shown in FIG. 7B, a CPU (Central Processing Unit) that executes a program stored in the memory 53, a central processing unit, It may be a processing device, an arithmetic device, a microprocessor, a microcomputer, a processor, or a DSP (Digital Signal Processor)) 52.

処理回路51が専用のハードウェアである場合、処理回路51は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)、又はこれらを組み合わせたものが該当する。モード設定部102、電文作成部103、送信制御部106及び登録部107の各部の機能それぞれを処理回路51で実現してもよいし、各部の機能をまとめて処理回路51で実現してもよい。   When the processing circuit 51 is dedicated hardware, the processing circuit 51 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), or an FPGA (Field Programmable Gate). Array) or a combination thereof. The functions of the respective units of the mode setting unit 102, the message creation unit 103, the transmission control unit 106, and the registration unit 107 may be realized by the processing circuit 51, or the functions of the respective units may be collectively realized by the processing circuit 51. .

処理回路51がCPU52の場合、モード設定部102、電文作成部103、送信制御部106及び登録部107の機能は、ソフトウェア、ファームウェア、又はソフトウェアとファームウェアとの組み合わせにより実現される。ソフトウェア及びファームウェアはプログラムとして記述され、メモリ53に格納される。処理回路51は、メモリ53に記憶されたプログラムを読み出して実行することにより、各部の機能を実現する。すなわち、上位装置1は、処理回路51により実行されるときに、例えば図4〜6に示した各ステップが結果的に実行されることになるプログラムを格納するためのメモリ53を備える。また、これらのプログラムは、モード設定部102、電文作成部103、送信制御部106及び登録部107の手順及び方法をコンピュータに実行させるものであるともいえる。ここで、メモリ53としては、例えば、RAM、ROM、フラッシュメモリ、EPROM、EEPROM等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD等が該当する。   When the processing circuit 51 is the CPU 52, the functions of the mode setting unit 102, message creation unit 103, transmission control unit 106, and registration unit 107 are realized by software, firmware, or a combination of software and firmware. Software and firmware are described as programs and stored in the memory 53. The processing circuit 51 implements the functions of each unit by reading and executing the program stored in the memory 53. That is, the host device 1 includes a memory 53 for storing a program that, when executed by the processing circuit 51, for example, causes each step shown in FIGS. 4 to 6 to be executed as a result. Further, it can be said that these programs cause the computer to execute the procedures and methods of the mode setting unit 102, the message creation unit 103, the transmission control unit 106, and the registration unit 107. Here, as the memory 53, for example, non-volatile or volatile semiconductor memory such as RAM, ROM, flash memory, EPROM, EEPROM, etc., magnetic disk, flexible disk, optical disk, compact disk, mini disk, DVD, etc. To do.

なお、モード設定部102、電文作成部103、送信制御部106及び登録部107の各機能について、一部を専用のハードウェアで実現し、一部をソフトウェア又はファームウェアで実現するようにしてもよい。例えば、モード設定部102については専用のハードウェアとしての処理回路51でその機能を実現し、電文作成部103、送信制御部106及び登録部107については処理回路51がメモリ53に格納されたプログラムを読み出して実行することによってその機能を実現することが可能である。   Note that some of the functions of the mode setting unit 102, the message creation unit 103, the transmission control unit 106, and the registration unit 107 may be realized by dedicated hardware and partly realized by software or firmware. . For example, the function of the mode setting unit 102 is realized by the processing circuit 51 as dedicated hardware, and the processing circuit 51 is stored in the memory 53 for the message creation unit 103, the transmission control unit 106, and the registration unit 107. The function can be realized by reading out and executing.

このように、処理回路51は、ハードウェア、ソフトウェア、ファームウェア、又はこれらの組み合わせによって、上述の各機能を実現することができる。   As described above, the processing circuit 51 can realize the above-described functions by hardware, software, firmware, or a combination thereof.

なお、本願発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。   In the present invention, any constituent element of the embodiment can be modified or any constituent element of the embodiment can be omitted within the scope of the invention.

1 上位装置、2 下位装置、51 処理回路、52 CPU、53 メモリ、101 保持部、102 モード設定部、103 電文作成部、104 電文受信部(上位受信)、105 電文送信部(上位送信部)、106 送信制御部、107 登録部、201 記録部、202 電文作成部、203 電文受信部(下位受信部)、204 電文送信部(下位送信部)、205 送信制御部、206 設定部、207 確定部。   DESCRIPTION OF SYMBOLS 1 High-order apparatus, 2 Low-order apparatus, 51 Processing circuit, 52 CPU, 53 Memory, 101 Holding part, 102 Mode setting part, 103 Message preparation part, 104 Message reception part (higher reception), 105 Message transmission part (higher transmission part) 106 transmission control unit 107 registration unit 201 recording unit 202 message creation unit 203 message reception unit (lower reception unit) 204 message transmission unit (lower transmission unit) 205 transmission control unit 206 setting unit 207 Department.

Claims (6)

通信線を介して接続される上位装置及び複数の下位装置を備え、
前記下位装置は、
アドレスを仮設定する設定部と、
前記設定部により仮設定されたアドレスを送信先アドレスとした電文である重複確認電文を送信する下位送信部と、
電文の受信を行う下位受信部と、
前記下位送信部により重複確認電文が送信された後一定期間経過しても前記下位受信部により当該重複確認電文に対する応答を示す電文である重複確認応答電文が受信されない場合に、前記設定部により仮設定されたアドレスを自機のアドレスとして確定して登録する確定部とを備えた
ことを特徴とする通信システム。
A host device and a plurality of lower devices connected via a communication line;
The subordinate device is:
A setting section for temporarily setting an address;
A lower transmission unit that transmits a duplication confirmation message that is a message with the address temporarily set by the setting unit as a transmission destination address;
A lower-level receiving unit that receives a message;
If a duplicate confirmation response message, which is a message indicating a response to the duplicate confirmation message, is not received by the lower reception unit even after a certain period of time has elapsed after the duplication confirmation message is transmitted by the lower transmission unit, the setting unit temporarily A communication system, comprising: a determination unit configured to determine and register a set address as an address of the own device.
前記下位送信部は、前記下位受信部により自機宛ての重複確認電文が受信された場合に、重複確認応答電文を、当該重複確認電文の送信元である前記下位装置に送信する
ことを特徴とする請求項1記載の通信システム。
The lower transmission unit transmits a duplication confirmation response message to the lower-level device that is a transmission source of the duplication confirmation message when the duplication confirmation message addressed to itself is received by the lower-level reception unit. The communication system according to claim 1.
前記設定部は、前記下位受信部により自機宛ての重複確認応答電文が受信された場合に、異なるアドレスへの仮設定を行う
ことを特徴とする請求項1又は請求項2記載の通信システム。
The communication system according to claim 1 or 2, wherein the setting unit performs temporary setting to a different address when a duplicate confirmation response message addressed to the own device is received by the lower receiving unit.
前記下位送信部は、前記確定部により確定されたアドレスを通知する電文である確定電文を前記上位装置に送信し、
前記上位装置は、
アドレスが記録されるテーブルを保持する保持部と、
電文の受信を行う上位受信部と、
前記上位受信部により確定電文が受信された場合に、前記テーブルに、当該確定電文により通知されたアドレスを、当該確定電文の送信元である前記下位装置のアドレスとして登録する登録部とを備えた
ことを特徴とする請求項1記載の通信システム。
The lower transmission unit transmits a confirmed message, which is a message notifying the address confirmed by the confirmation unit, to the higher-level device;
The host device is
A holding unit for holding a table in which addresses are recorded;
A high-order receiving unit that receives a message;
When a confirmed message is received by the higher-order receiving unit, the table includes a registration unit that registers the address notified by the confirmed message as the address of the lower-level device that is the transmission source of the confirmed message. The communication system according to claim 1.
前記上位装置は、
アドレスが記録されるテーブルを保持する保持部と、
電文の受信を行う上位受信部と、
前記テーブルに記録されている全てのアドレスをそれぞれ送信先アドレスとした電文である通信確認電文をポーリングセレクション方式で送信する上位送信部と、
前記上位受信部により通信確認電文に対する応答を示す電文である応答電文が受信された場合に、前記テーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である前記下位装置のアドレスとして登録する登録部とを備え、
前記下位送信部は、前記下位受信部により自機宛ての通信確認電文が受信された場合に、応答電文を前記上位装置に送信する
ことを特徴とする請求項1記載の通信システム。
The host device is
A holding unit for holding a table in which addresses are recorded;
A high-order receiving unit that receives a message;
An upper transmission unit that transmits a communication confirmation message, which is a message with all addresses recorded in the table as destination addresses, in a polling selection method,
When a response message that is a message indicating a response to the communication confirmation message is received by the higher-level receiving unit, the transmission destination address of the communication confirmation message is stored in the table, and the lower-level device that is the transmission source of the response message A registration unit for registering as an address,
The communication system according to claim 1, wherein the lower-level transmission unit transmits a response message to the higher-level device when a communication confirmation message addressed to the own device is received by the lower-level reception unit.
アドレスを仮設定する設定部と、
前記設定部により仮設定されたアドレスを送信先アドレスとした電文である重複確認電文を送信する下位送信部と、
電文の受信を行う下位受信部と、
前記下位送信部により重複確認電文が送信された後一定期間経過しても前記下位受信部により当該重複確認電文に対する応答を示す電文である重複確認応答電文が受信されない場合に、前記設定部により仮設定されたアドレスを自機のアドレスとして確定して登録する確定部と
を備えた下位装置。
A setting section for temporarily setting an address;
A lower transmission unit that transmits a duplication confirmation message that is a message with the address temporarily set by the setting unit as a transmission destination address;
A lower-level receiving unit that receives a message;
If a duplicate confirmation response message, which is a message indicating a response to the duplicate confirmation message, is not received by the lower reception unit even after a certain period of time has elapsed after the duplication confirmation message is transmitted by the lower transmission unit, the setting unit temporarily A subordinate device comprising a confirmation unit that confirms and registers a set address as its own address.
JP2018062490A 2018-03-28 2018-03-28 Communications system Active JP7109225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018062490A JP7109225B2 (en) 2018-03-28 2018-03-28 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018062490A JP7109225B2 (en) 2018-03-28 2018-03-28 Communications system

Publications (2)

Publication Number Publication Date
JP2019176319A true JP2019176319A (en) 2019-10-10
JP7109225B2 JP7109225B2 (en) 2022-07-29

Family

ID=68167404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018062490A Active JP7109225B2 (en) 2018-03-28 2018-03-28 Communications system

Country Status (1)

Country Link
JP (1) JP7109225B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0352352A (en) * 1989-07-19 1991-03-06 Sanyo Electric Co Ltd Home bus communication equipment
JPH03127531A (en) * 1989-10-13 1991-05-30 Matsushita Electric Ind Co Ltd Address setting method
JPH03267835A (en) * 1990-03-16 1991-11-28 Hitachi Ltd Local area network control system
JP2003008585A (en) * 2001-04-20 2003-01-10 Toshiba Corp Communication controller and communication control method, and communication apparatus and communication method
WO2009104482A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Apparatus for determining address, communication system, method and program for determining the address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0352352A (en) * 1989-07-19 1991-03-06 Sanyo Electric Co Ltd Home bus communication equipment
JPH03127531A (en) * 1989-10-13 1991-05-30 Matsushita Electric Ind Co Ltd Address setting method
JPH03267835A (en) * 1990-03-16 1991-11-28 Hitachi Ltd Local area network control system
JP2003008585A (en) * 2001-04-20 2003-01-10 Toshiba Corp Communication controller and communication control method, and communication apparatus and communication method
WO2009104482A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Apparatus for determining address, communication system, method and program for determining the address

Also Published As

Publication number Publication date
JP7109225B2 (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US9081818B2 (en) SAS fabric discovery
CN103676821A (en) Method of establishing control relationships, configuration device, and networked device
WO2019196448A1 (en) Wireless networking method of air conditioner, air conditioner indoor unit, and air conditioner outdoor unit
US20180234294A1 (en) System and method for configuring iot devices
JP2019212279A (en) Method and device for operating smart network interface card
CN111448428A (en) Determining causes of faults in HVAC systems
US11499736B2 (en) HVAC equipment settings
JP7109225B2 (en) Communications system
JP6273878B2 (en) Control system and control method
JP7101511B2 (en) Communications system
JP5774178B2 (en) Communication adapter, communication method, and program
JP2014174734A (en) Data communication system and master unit thereof, and data communication method
WO2021176624A1 (en) Air-conditioning system, management device, air conditioner, sensor data acquisition method, and program
JP4493661B2 (en) Chipset function detection and configuration by I / O device
JP7109224B2 (en) Communication system and upper equipment
JP6320563B2 (en) Communication device, communication adapter, communication system, communication parameter response method, and program
KR101723561B1 (en) Web of things plug-in system
CN113748415B (en) Management device, management method, and computer-readable recording medium
JP6856048B2 (en) Control system and control method
JP2017054428A (en) Communication adapter, communication method and program
JP2007519998A5 (en)
JP6562723B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM
JPWO2006030697A1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE COMMUNICATION CONTROL PROGRAM
KR20170110097A (en) Redundant heating, ventilation, and air conditioning control systems
JP7442895B1 (en) Information processing method and information processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210216

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20210216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220121

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220719

R150 Certificate of patent or registration of utility model

Ref document number: 7109225

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150