JP5401385B2 - Communication software - Google Patents

Communication software Download PDF

Info

Publication number
JP5401385B2
JP5401385B2 JP2010080512A JP2010080512A JP5401385B2 JP 5401385 B2 JP5401385 B2 JP 5401385B2 JP 2010080512 A JP2010080512 A JP 2010080512A JP 2010080512 A JP2010080512 A JP 2010080512A JP 5401385 B2 JP5401385 B2 JP 5401385B2
Authority
JP
Japan
Prior art keywords
communication
function
protocol control
control means
communication interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010080512A
Other languages
Japanese (ja)
Other versions
JP2011215693A (en
Inventor
直人 中村
浩和 岡崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitutoyo Corp
Original Assignee
Mitutoyo Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitutoyo Corp filed Critical Mitutoyo Corp
Priority to JP2010080512A priority Critical patent/JP5401385B2/en
Publication of JP2011215693A publication Critical patent/JP2011215693A/en
Application granted granted Critical
Publication of JP5401385B2 publication Critical patent/JP5401385B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Description

本発明は、コンピュータ間通信用の通信ソフトウェア(コンピュータプログラム)に係り、そのバージョンアップに関する。   The present invention relates to communication software (computer program) for computer-to-computer communication, and to version upgrade thereof.

一般に、通信ソフトウェアのバージョンアップはシステム再起動をしなくてはならないため、旧プログラムから新プログラムにバージョンアップされるまでの間に通信ができない時間が存在する。
例えば、計測情報をサーバに送信する地震計などのように、常時動作しなくてはならず、かつ、サーバとの間の通信が何時必要になるか特定できない装置にあっては、バージョンアップにより通信できない時間を極力避けたいという要請がある。
In general, since the communication software must be upgraded to restart the system, there is a time during which communication cannot be performed before the old program is upgraded to the new program.
For example, for devices that must operate constantly, such as seismometers that send measurement information to a server, and that cannot identify when communication with the server is required, upgrade the version. There is a request to avoid as much time as possible without communication.

特許文献1記載の発明にあっては、マルチプロセス・マルチスレッド構成システムにおいて、業務を停止せずにコンポーネント(ソフトウェア部品)を置換できるようにすることを課題として、全てのスレッド(動作しているプログラムの最小単位)が待機状態になり次第コンポーネントのアンロードを行い、新コンポーネントへの置換処理を行い、置換処理後にスレッドを再開する。   In the invention described in Patent Document 1, in a multi-process / multi-thread configuration system, all threads (operating) are set to be able to replace components (software parts) without stopping business. The component is unloaded as soon as the minimum unit of the program is in a standby state, the replacement process with the new component is performed, and the thread is resumed after the replacement process.

特開2001−290637号公報JP 2001-290637 A

上述したように、一般に通信ソフトウェアのバージョンアップはシステム再起動を要する。
特許文献1記載の発明にあっては、全てのスレッドが待機状態になることを条件として新コンポーネントへの置換処理を行うから、システム全体が停止状態とならない限りバージョンアップができない。
As described above, in general, upgrading of communication software requires a system restart.
In the invention described in Patent Document 1, the replacement process with the new component is performed on condition that all threads are in a standby state, and therefore the version cannot be upgraded unless the entire system is stopped.

本発明は以上の従来技術における問題に鑑みてなされたものであって、システム全体を停止状態とすることなく、旧プログラムから新プログラムにバージョンアップすることができる通信ソフトウェアを提供することを課題とする。   The present invention has been made in view of the above problems in the prior art, and it is an object of the present invention to provide communication software that can be upgraded from an old program to a new program without bringing the entire system to a stopped state. To do.

以上の課題を解決するための請求項1記載の発明は、外部コンピュータとの間の通信システムを自コンピュータに構成するための通信ソフトウェアであって、
自コンピュータに、
通信インターフェースを構成するためのソフトウェア部品と、
プロトコル制御手段を構成するためのソフトウェア部品と、
電文解釈手段を構成するためのソフトウェア部品と、を備え、
(a1)前記通信インターフェースに、通信用ハードウェアを制御する機能を実現させ、
(b1)前記プロトコル制御手段及び前記電文解釈手段に対し前記通信用ハードウェアへの外部コンピュータの最大接続数を通知する機能を実現させ、
(c1)前記通信インターフェースのコピーを生成する機能を実現させ、
(c2)前記通知に係る最大接続数分を賄う前記プロトコル制御手段のコピーを生成する機能を実現させ、
(c3)前記通知に係る最大接続数分を賄う前記電文解釈手段のコピーを生成する機能を実現させ、
(d1)前記プロトコル制御手段と前記電文解釈手段との入出力が結びつく機能を実現させ、
(d2)前記通信インターフェースと前記プロトコル制御手段との入出力が結びつく機能を実現させ、
(d3) 前記通信インターフェースと前記通信用ハードウェアとを切り離す機能を実現させ、
(d4)前記通信インターフェースと前記通信用ハードウェアとが結びつく機能を実現させる通信ソフトウェアである。
The invention according to claim 1 for solving the above problems is communication software for configuring a communication system with an external computer in its own computer,
On your computer
Software components for configuring the communication interface;
Software components for configuring the protocol control means;
A software component for configuring the message interpretation means,
(a1) The communication interface realizes a function of controlling communication hardware,
(b1) Realizing a function of notifying the protocol control means and the message interpretation means of the maximum number of external computers connected to the communication hardware;
(c1) Realizing a function to generate a copy of the communication interface,
(c2) Realizing a function of generating a copy of the protocol control means that covers the maximum number of connections related to the notification,
(c3) Realizing a function to generate a copy of the message interpretation means that covers the maximum number of connections related to the notification,
(d1) Realizing a function in which the input and output of the protocol control means and the message interpretation means are connected,
(d2) Realizing a function in which the input and output of the communication interface and the protocol control means are connected,
(d3) Realizing a function of separating the communication interface and the communication hardware;
(d4) Communication software that realizes a function of connecting the communication interface and the communication hardware.

請求項2記載の発明は、自コンピュータに、(d5)前記プロトコル制御手段と通信インターフェース1bとを切り離す機能を実現させる請求項1に記載の通信ソフトウェアである。   The invention according to claim 2 is the communication software according to claim 1, which realizes (d5) a function of separating the protocol control means and the communication interface 1b in the own computer.

本発明によれば、上記各機能により、通信システムは通信インターフェース、プロトコル制御手段及び電文解釈手段から構成され、旧通信システムが動作中であっても、新プログラムに対応する通信インターフェース、必要数分のプロトコル制御手段又は電文解釈手段を含んだ新通信システムを構築し、さらに、旧通信システムのプロトコル制御手段や電文解釈手段等のシステムの一部が動作中であっても、新通信システムが旧通信システムに交替して通信用ハードウェアに結びついた通信システムとして構成されるので、システム全体を停止状態とすることなく、旧プログラムから新プログラムにバージョンアップすることができるという効果がある。   According to the present invention, according to the above functions, the communication system includes a communication interface, a protocol control unit, and a message interpretation unit. Even when the old communication system is in operation, the communication interface corresponding to the new program, the necessary number A new communication system including the protocol control means or the message interpretation means is constructed, and even if a part of the system such as the protocol control means or the message interpretation means of the old communication system is in operation, the new communication system is Since it is configured as a communication system that is replaced with a communication system and connected to communication hardware, there is an effect that it is possible to upgrade from an old program to a new program without putting the entire system in a stopped state.

本発明の一実施形態に係る外部コンピュータと自コンピュータを含んだ通信システム全体を示す機能ブロック図である。1 is a functional block diagram showing an entire communication system including an external computer and its own computer according to an embodiment of the present invention. 本発明の第1実施形態に係る自コンピュータ内の通信システムを示す機能ブロック図で、最大接続数の通知過程を示す図(a)及びコピー生成過程を示す図(b)である。FIG. 2 is a functional block diagram showing a communication system in its own computer according to the first embodiment of the present invention, a diagram showing a maximum connection number notification process (a) and a copy generation process (b). 本発明の第1実施形態に係る自コンピュータ内の通信システムを示す機能ブロック図で、各コンポーネント間の入出力の結びつけ過程を示す図(a)及び通信用ハードウェアの結びつけ過程を示す図(b)である。FIG. 2 is a functional block diagram showing a communication system in its own computer according to the first embodiment of the present invention, a diagram showing an input / output connection process between components (a) and a communication hardware connection process (b) ). 本発明の第1実施形態に係る自コンピュータ内の通信システムを示す機能ブロック図で、新ソフトウェア部品がロードされた状態を示す図(a)及び新ソフトウェア部品を含んだ新通信システムが構築される過程を示す図(b)である。1 is a functional block diagram showing a communication system in its own computer according to the first embodiment of the present invention, a diagram showing a state in which a new software component is loaded, and a new communication system including the new software component. It is a figure (b) which shows a process. 本発明の第1実施形態に係る自コンピュータ内の通信システムを示す機能ブロック図で、旧通信システムが通信用ハードウェアを切り離した状態を示す図(a)及び新通信システムが通信用ハードウェアに結びついた状態を示す図(b)である。FIG. 2 is a functional block diagram showing a communication system in its own computer according to the first embodiment of the present invention, in which the old communication system shows a state where communication hardware is disconnected and the new communication system becomes communication hardware; It is a figure (b) which shows the connected state. 本発明の第2実施形態に係る自コンピュータ内の通信システムを示す機能ブロック図で、プロトコル制御手段と電文解釈手段からなる新通信システムの構築を示す図(a)及び新通信システムへの切替え途中を示す図(b)である。It is a functional block diagram showing a communication system in its own computer according to the second embodiment of the present invention, a diagram (a) showing the construction of a new communication system consisting of protocol control means and message interpretation means, and in the middle of switching to the new communication system FIG.

以下に本発明の一実施形態につき図面を参照して説明する。以下は本発明の一実施形態であって本発明を限定するものではない。   An embodiment of the present invention will be described below with reference to the drawings. The following is one embodiment of the present invention and does not limit the present invention.

〔第1実施形態〕
まず、本発明の第1実施形態につき、図1を参照して説明する。
図1に示すように、本発明に係る通信ソフトウェアとコンピュータハードウェアとにより構成される通信システムはコンピュータ1に構成される。コンピュータ1は本通信システムによって外部コンピュータ2とデータ通信する。外部コンピュータ2は、地震計などの外部機器に搭載されるコンピュータである。コンピュータ1に外部コンピュータ2とのデータ伝送路が接続する通信用ハードウェア1aが備えられる。
[First Embodiment]
First, a first embodiment of the present invention will be described with reference to FIG.
As shown in FIG. 1, a communication system configured by communication software and computer hardware according to the present invention is configured in a computer 1. The computer 1 performs data communication with the external computer 2 by this communication system. The external computer 2 is a computer mounted on an external device such as a seismometer. The computer 1 is provided with communication hardware 1a for connecting a data transmission path to the external computer 2.

本通信システムは、通信インターフェース1bと、プロトコル制御手段1cと、電文解釈手段1dと、メインコントローラ1fとを備える。したがて、本通信ソフトウェアは、通信インターフェース1bを構成するためのソフトウェア部品と、プロトコル制御手段1cを構成するためのソフトウェア部品と、電文解釈手段1dを構成するためのソフトウェア部品と、メインコントローラ1fを構成するためのメインソフトウェアと備える。さらに本通信ソフトウェアは、以下の本通信システムの各機能、各処理の実行機能をコンピュータ1(各要素1b,1c,1d,1f)に実現させるプログラムを含む。機能を実現するプログラム構成は、クラスライブラリ、コンポーネント、メソッド、タスク、プロセス等の形態の別を問わない。   The communication system includes a communication interface 1b, a protocol control unit 1c, a message interpretation unit 1d, and a main controller 1f. Therefore, the communication software includes a software component for configuring the communication interface 1b, a software component for configuring the protocol control unit 1c, a software component for configuring the message interpretation unit 1d, and the main controller 1f. With the main software to configure. Further, the communication software includes a program that causes the computer 1 (elements 1b, 1c, 1d, and 1f) to realize the following functions and processing execution functions of the communication system. The program configuration for realizing the function may be in any form such as a class library, a component, a method, a task, and a process.

通信インターフェース1bは、通信用ハードウェア1aを制御する機能(a1)を有する。通信用ハードウェア1aの仕様によって同時に最大で何台の外部コンピュータ2が通信用ハードウェア1aに接続するかが決まる。   The communication interface 1b has a function (a1) for controlling the communication hardware 1a. The maximum number of external computers 2 connected to the communication hardware 1a at the same time is determined by the specifications of the communication hardware 1a.

本通信ソフトウェアがコンピュータ1に実現させるプロトコル制御手段1cの機能(a2)は、通信用ハードウェア1a及び通信インターフェース1bによって受信されたデータのエラー検出、データ修復、外部コンピュータ2に再度データを送信することを要求する機能、及び外部コンピュータ2に受信成功を送信する機能である。   The function (a2) of the protocol control means 1c realized by the communication software on the computer 1 is to detect errors in the data received by the communication hardware 1a and the communication interface 1b, restore the data, and send the data to the external computer 2 again. And a function of transmitting a successful reception to the external computer 2.

本通信ソフトウェアがコンピュータ1に実現させる電文解釈手段1dの機能(a3)は、プロトコル制御手段1cによる処理を経て受信成功したデータに基づき、その内容を解釈し、必要なデータに分解・再構築する機能である。   The function (a3) of the telegram interpreting means 1d realized by the communication software on the computer 1 interprets the contents based on the data successfully received through the processing by the protocol control means 1c, and decomposes / reconstructs it into necessary data. It is a function.

また本通信ソフトウェアは、通信インターフェース1bに、プロトコル制御手段1c及び電文解釈手段1dに対し通信用ハードウェア1aへの外部コンピュータ2の最大接続数を通知する機能(b1)を実現させる。   The communication software also causes the communication interface 1b to realize a function (b1) for notifying the protocol controller 1c and the message interpretation unit 1d of the maximum number of connections of the external computer 2 to the communication hardware 1a.

また本通信ソフトウェアは、通信インターフェース1bに、自らのコピーを生成する機能(c1)を実現させる。
また本通信ソフトウェアは、プロトコル制御手段1cに、前記通知に係る最大接続数分を賄う自らのコピーを生成する機能(c2)を実現させる。
また本通信ソフトウェアは、電文解釈手段1dに、前記通知に係る最大接続数分を賄う自らのコピーを生成する機能(c3)を実現させる。
In addition, the communication software causes the communication interface 1b to realize a function (c1) for generating a copy of itself.
The communication software also causes the protocol control unit 1c to realize a function (c2) for generating its own copy that covers the maximum number of connections related to the notification.
In addition, the communication software causes the message interpretation unit 1d to realize a function (c3) for generating its own copy that covers the maximum number of connections related to the notification.

また本通信ソフトウェアは、プロトコル制御手段1cと電文解釈手段1dとの入出力が結びつく機能(d1)を実現させる。
また本通信ソフトウェアは、通信インターフェース1bとプロトコル制御手段1cとの入出力が結びつく機能(d2)を実現させる。
また本通信ソフトウェアは、通信インターフェース1bに、通信用ハードウェア1aを切り離す機能(d3)を実現させる。
また本通信ソフトウェアは、通信インターフェース1bに、通信用ハードウェア1aと結びつく機能(d4)を実現させる。
また本通信ソフトウェアは、プロトコル制御手段1cに、通信インターフェース1bを切り離す機能(d5)を実現させる。
In addition, this communication software realizes a function (d1) in which input / output between the protocol control unit 1c and the message interpretation unit 1d is linked.
Further, this communication software realizes a function (d2) in which input / output between the communication interface 1b and the protocol control means 1c is connected.
The communication software also causes the communication interface 1b to realize a function (d3) for disconnecting the communication hardware 1a.
Further, the communication software causes the communication interface 1b to realize a function (d4) associated with the communication hardware 1a.
The communication software also causes the protocol control means 1c to realize a function (d5) for disconnecting the communication interface 1b.

まず、図2、図3を参照して必要数分のプロトコル制御手段1c及び電文解釈手段1dを含んだ通信システムを構築するためのコンピュータ1による初期処理を以下に説明する。
図2(a)に示すように、上記機能(b1)により通信インターフェース1bがプロトコル制御手段1c及び電文解釈手段1dに対し最大接続数を通知する。
次に、図2(b)に示すように、上記機能(c2)によりプロトコル制御手段1cは前記通知に係る最大接続数分を賄う自らのコピー1c-1,1c-2を生成し、上記機能(c3)により電文解釈手段1dは前記通知に係る最大接続数分を賄う自らのコピー1d-1,1d-2を生成する。
First, an initial process by the computer 1 for constructing a communication system including a necessary number of protocol control means 1c and message interpretation means 1d will be described below with reference to FIGS.
As shown in FIG. 2 (a), the communication interface 1b notifies the protocol control means 1c and the message interpretation means 1d of the maximum number of connections by the function (b1).
Next, as shown in FIG. 2 (b), the function (c2) causes the protocol control means 1c to generate its own copies 1c-1 and 1c-2 that cover the maximum number of connections related to the notification. According to (c3), the message interpretation unit 1d generates its own copies 1d-1, 1d-2 that cover the maximum number of connections related to the notification.

次に、図3(a)に示すように、上記機能(d1)によりコンピュータ1はプロトコル制御手段1c,1c-1,1c-2と電文解釈手段1d,1d-1,1d-2との入出力を結びつけ、上記機能(d2)によりコンピュータ1は通信インターフェース1bとプロトコル制御手段1c,1c-1,1c-2との入出力を結びつける。   Next, as shown in FIG. 3 (a), the function (d1) causes the computer 1 to input protocol control means 1c, 1c-1, 1c-2 and message interpretation means 1d, 1d-1, 1d-2. The output is connected, and the computer (1) connects the input / output between the communication interface 1b and the protocol control means 1c, 1c-1, 1c-2 by the function (d2).

最後に、図3(b)に示すように、上記機能(d4)により通信インターフェース1bは通信用ハードウェア1aに結びつく。
以上により、最大接続数に対応した通信システムが構築される。
Finally, as shown in FIG. 3B, the communication interface 1b is connected to the communication hardware 1a by the function (d4).
As described above, a communication system corresponding to the maximum number of connections is constructed.

次に、図4、図5を参照してコンピュータ1によるバージョンアップの処理につき説明する。本処理にあっては、プロトコル制御手段1cのプログラムにバージョンアップがあったものとする。
図4(b)に示すように、新プログラムであるソフトウェア部品ver2がコンピュータ1にロードされ、かかる新プログラムに基づき新プロトコル制御手段1eが構成される。
Next, the upgrade process by the computer 1 will be described with reference to FIGS. In this processing, it is assumed that the protocol control unit 1c has been upgraded.
As shown in FIG. 4B, a software component ver2 which is a new program is loaded into the computer 1, and a new protocol control means 1e is configured based on the new program.

次に、上記機能(b1)により通信インターフェース1bが新プロトコル制御手段1e及び電文解釈手段1dに対し最大接続数を通知する。
次に、図4(b)に示すように、上記機能(c1)により通信インターフェース1bは自らのコピー1b-1を生成し、上記機能(c2)によりプロトコル制御手段1eは前記通知に係る最大接続数分を賄う自らのコピー1e-1,1e-2を生成し、上記機能(c3)により電文解釈手段1dは前記通知に係る最大接続数分を賄う(この場合最大接続数と同数)の自らのコピー1d-3,1d-4,1d-5を生成する。
Next, the communication interface 1b notifies the new protocol control means 1e and the message interpretation means 1d of the maximum number of connections by the function (b1).
Next, as shown in FIG. 4 (b), the communication interface 1b generates its own copy 1b-1 by the function (c1), and the protocol control means 1e allows the maximum connection related to the notification by the function (c2). It generates its own copies 1e-1,1e-2 that cover a few minutes, and the message interpreting means 1d covers the maximum number of connections related to the notification by the function (c3) (in this case, the same number as the maximum number of connections) Copies 1d-3, 1d-4, and 1d-5 are generated.

次に、図4(b)に示すように、上記機能(d1)によりコンピュータ1は新プロトコル制御手段1e,1e-1,1e-2と電文解釈手段1d-3,1d-4,1d-5との入出力を結びつけ、上記機能(d2)によりコンピュータ1は通信インターフェース1b-1と新プロトコル制御手段1e,1e-1,1e-2との入出力を結びつける。
したがって、旧プロトコル制御手段1c,1c-1,1c-2を備えた旧通信システムが動作中であっても、新プログラムに対応する通信インターフェース1b-1、必要数分のプロトコル制御手段1e,1e-1,1e-2及び電文解釈手段1d-3,1d-4,1d-5を含んだ新通信システムを構築することができる。
Next, as shown in FIG. 4B, the function (d1) causes the computer 1 to use the new protocol control means 1e, 1e-1, 1e-2 and the message interpretation means 1d-3, 1d-4, 1d-5. With the function (d2), the computer 1 connects the input / output between the communication interface 1b-1 and the new protocol control means 1e, 1e-1, 1e-2.
Therefore, even if the old communication system having the old protocol control means 1c, 1c-1, 1c-2 is operating, the communication interface 1b-1 corresponding to the new program, the required number of protocol control means 1e, 1e -1,1e-2 and message interpretation means 1d-3, 1d-4, 1d-5 can be constructed.

次に、図5(a)に示すように、上記機能(d3)により通信インターフェース1bは通信用ハードウェア1aを切り離し、図5(b)に示すように、上記機能(d4)により通信インターフェース1b-1は通信用ハードウェア1aに結びつく。
以上により、旧プロトコル制御手段1c,1c-1,1c-2を備えた旧通信システムが新プロトコル制御手段1e,1e-1,1e-2を備えた新通信システムに交替し、通信システムのバージョンアップが完了する。
本通信システムは、上記の通信インターフェース1bの切り離し(図5(a))と、通信インターフェース1b-1の通信用ハードウェア1aとの結びつき(図5(b))の処理、すなわち、切替処理を、パケット等のデータ伝送単位の間隔時間で実行する。すなわち、通信用ハードウェア1a及び通信インターフェース1bによる先のデータ伝送単位の処理終了直後に、通信インターフェース1bの切り離し(図5(a))を行い、続いて、通信インターフェース1b-1の通信用ハードウェア1aとの結びつき(図5(b))の処理を実行し、通信用ハードウェア1a及び通信インターフェース1b-1により次のデータ伝送単位の処理を実行する。そのために、本通信ソフトウェアは、通信インターフェース1bにおける上記データ伝送単位の処理終了を検出し、この検出を契機に上記切り離し・結びつきの処理を実行する機能をコンピュータ1に実現する。本機能単位は通信インターフェースに自律的機能として構成してもよいし、メインコントローラ1fに構成してもよい。
そして、先のデータ伝送単位に関しては、旧通信システムのプロトコル制御手段1c,1c-1,1c-2及び電文解釈手段1d,1d-1,1d-2により処理する。
したがって、旧通信システムのプロトコル制御手段1c,1c-1,1c-2や電文解釈手段1d,1d-1,1d-2等のシステムの一部が動作中であっても、新通信システムが旧通信システムに交替して通信用ハードウェア1aに結びついた通信システムとして構成される。
以上により、システム全体を停止状態とすることなく、旧プログラムから新プログラムにバージョンアップすることができる。
また、通信回線の高速化などにより、一台のコンピュータ1で処理できる地震計などの外部機器が増えた場合にも、以上説明した機構により自動的に通信相手の増加に対応することができる。
Next, as shown in FIG. 5 (a), the communication interface 1b disconnects the communication hardware 1a by the function (d3), and as shown in FIG. 5 (b), the communication interface 1b by the function (d4). -1 is connected to the communication hardware 1a.
As described above, the old communication system having the old protocol control means 1c, 1c-1, 1c-2 is replaced with the new communication system having the new protocol control means 1e, 1e-1, 1e-2. Up is completed.
The communication system performs the process of disconnecting the communication interface 1b (FIG. 5 (a)) and the communication hardware 1a of the communication interface 1b-1 (FIG. 5 (b)), that is, the switching process. This is executed at intervals of data transmission units such as packets. That is, immediately after the processing of the previous data transmission unit by the communication hardware 1a and the communication interface 1b is completed, the communication interface 1b is disconnected (FIG. 5 (a)), and then the communication interface 1b-1 communication hardware The processing of the connection with the hardware 1a (FIG. 5B) is executed, and the processing of the next data transmission unit is executed by the communication hardware 1a and the communication interface 1b-1. For this purpose, this communication software detects the end of the processing of the data transmission unit in the communication interface 1b, and implements the function of executing the disconnection / linking process on the computer 1 triggered by this detection. This functional unit may be configured as an autonomous function in the communication interface, or may be configured in the main controller 1f.
The previous data transmission unit is processed by the protocol control means 1c, 1c-1, 1c-2 and message interpretation means 1d, 1d-1, 1d-2 of the old communication system.
Therefore, even if a part of the system such as the protocol control means 1c, 1c-1, 1c-2 and the message interpretation means 1d, 1d-1, 1d-2 of the old communication system is operating, the new communication system is Instead of the communication system, the communication system is configured as a communication system linked to the communication hardware 1a.
As described above, it is possible to upgrade from the old program to the new program without putting the entire system in a stopped state.
Further, even when the number of external devices such as seismometers that can be processed by one computer 1 increases due to the speeding up of communication lines, it is possible to automatically cope with an increase in the number of communication partners by the mechanism described above.

以上の実施形態においては、プロトコル制御手段1cのプログラムにバージョンアップがあった場合につき説明した。通信インターフェース1b、プロトコル制御手段1c及び電文解釈手段1dのうちいずれの要素のバージョンアップにも以上の機構により、必要数の要素を生成して、切り離し、結び付けの処理を行うことにより対応することができる。
以上の機構によれば、通信インターフェース1b、プロトコル制御手段1c及び電文解釈手段1dのうちバージョンアップのある要素に関してのみ新プログラムをロードして、バージョンアップの無い要素に関しては、従前の要素を複製するから、通信インターフェース、プロトコル制御、電文解釈のいずれに関する通信の仕様変更にも、最小の変更で簡便かつ早期に対応することができる。
In the above embodiment, the case where the program of the protocol control means 1c has been upgraded has been described. The upgrade of any element of the communication interface 1b, protocol control means 1c, and message interpretation means 1d can be handled by generating the necessary number of elements by the above mechanism, separating them, and performing the linking process. it can.
According to the above mechanism, the new program is loaded only with respect to the upgraded elements of the communication interface 1b, protocol control means 1c, and message interpretation means 1d, and the previous elements are duplicated with respect to the elements that are not upgraded. Therefore, it is possible to easily and quickly cope with a change in communication specifications related to any of the communication interface, protocol control, and message interpretation with minimal changes.

〔第2実施形態〕
次に、本発明の第2実施形態につき、図6を参照して説明する。上記第1実施形態においては、通信インターフェース1b以下の構造を多重生成して新通信システムに切り替えたが、本実施形態はこれとは異なりコンピュータ1は以下のように処理する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to FIG. In the first embodiment, the structure below the communication interface 1b is generated and switched to the new communication system. However, in the present embodiment, the computer 1 processes as follows.

まず、第1実施形態と同様に新プログラムであるソフトウェア部品ver2がコンピュータ1にロードされ、かかる新プログラムに基づき新プロトコル制御手段1eが構成される。
次に、第1実施形態と同様に上記機能(b1)により通信インターフェース1bが新プロトコル制御手段1e及び電文解釈手段1dに対し最大接続数を通知する。
次に、図6(a)に示すように、上記機能(c2)によりプロトコル制御手段1eは前記通知に係る最大接続数分を賄う自らのコピー1e-1,1e-2を生成し、上記機能(c3)により電文解釈手段1dは前記通知に係る最大接続数分を賄う(この場合最大接続数と同数)の自らのコピー1d-3,1d-4,1d-5を生成する。
次に、図6(a)に示すように、上記機能(d1)によりコンピュータ1は新プロトコル制御手段1e,1e-1,1e-2と電文解釈手段1d-3,1d-4,1d-5との入出力を結びつける。
First, similarly to the first embodiment, a software component ver2 which is a new program is loaded into the computer 1, and a new protocol control means 1e is configured based on the new program.
Next, as in the first embodiment, the communication interface 1b notifies the new protocol control unit 1e and the message interpretation unit 1d of the maximum number of connections by the function (b1).
Next, as shown in FIG. 6 (a), the function (c2) causes the protocol control means 1e to generate its own copies 1e-1 and 1e-2 that cover the maximum number of connections related to the notification. According to (c3), the message interpretation unit 1d generates its own copies 1d-3, 1d-4, and 1d-5 that cover the maximum number of connections related to the notification (in this case, the same number as the maximum number of connections).
Next, as shown in FIG. 6A, the function (d1) causes the computer 1 to use the new protocol control means 1e, 1e-1, 1e-2 and the message interpretation means 1d-3, 1d-4, 1d-5. Connect the input and output.

次に、図6(b)に示すように、上記機能(d5)により旧プロトコル制御手段1c,1c-1,1c-2が、シーケンスとシーケンスの間のデータ伝送単位に対する処理(シーケンス)が無い時間に、かかる時間が先に到来したものから順に通信インターフェース1bを切り離すとともに、上記機能(d2)により切り離された旧要素に順次交替して新プロトコル制御手段1e,1e-1,1e-2が通信インターフェース1bに結びつく。例えば、図6に示すように旧プロトコル制御手段1c-1が通信インターフェース1bを切り離し旧プロトコル制御手段1c-1に交替して新プロトコル制御手段1e-1が通信インターフェース1bに結びつく。同様にして順次、旧プロトコル制御手段1cに交替して新プロトコル制御手段1eが通信インターフェース1bに結びつき、旧プロトコル制御手段1c-2に交替して新プロトコル制御手段1e-2が通信インターフェース1bに結びつく。
そのために、本通信ソフトウェアは、プロトコル制御手段1c,1c-1,1c-2における上記データ伝送単位の処理終了を検出し、この検出を契機に上記切り離し・結びつきの処理を実行する機能をコンピュータ1に実現する。本機能単位は通信インターフェース及びプロトコル制御手段に自律的機能として構成してもよいし、メインコントローラ1fに構成してもよい。
以上により、旧プロトコル制御手段1c,1c-1,1c-2を備えた旧通信システムが新プロトコル制御手段1e,1e-1,1e-2を備えた新通信システムに交替し、通信システムのバージョンアップが完了する。
以上のようにシステム全体を停止状態とすることなく、旧プログラムから新プログラムにバージョンアップすることができる。特に、第2実施形態によれば、コネクション単位、すなわち、一つの通信用ハードウェア1a‐一つの通信インターフェース1b‐一つのプロトコル制御手段1c‐一つの電文解釈手段1dの結びつきからなる一系統単位でバージョンアップすることができ、他のコネクションが動作中であっても、順次コネクション単位でバージョンアップし交替していくことによりシステム全体のバージョンアップを完了させることができる。すなわち、通信システムを動作させながらにして当該通信システムをバージョンアップさせることができる。
Next, as shown in FIG. 6 (b), the old protocol control means 1c, 1c-1, 1c-2 has no processing (sequence) for the data transmission unit between the sequences by the function (d5). The communication interface 1b is disconnected in order from the time when the time has come first, and the new protocol control means 1e, 1e-1, 1e-2 are sequentially replaced with the old elements disconnected by the function (d2). Connected to the communication interface 1b. For example, as shown in FIG. 6, the old protocol control means 1c-1 disconnects the communication interface 1b and replaces it with the old protocol control means 1c-1, and the new protocol control means 1e-1 is connected to the communication interface 1b. Similarly, the old protocol control unit 1c is sequentially replaced with the new protocol control unit 1e, which is connected to the communication interface 1b, and the old protocol control unit 1c-2 is replaced with the new protocol control unit 1e-2, which is connected to the communication interface 1b. .
For this purpose, the communication software detects the end of the processing of the data transmission unit in the protocol control means 1c, 1c-1, 1c-2, and has the function of executing the disconnection / linking process in response to this detection. Realize. This functional unit may be configured as an autonomous function in the communication interface and protocol control means, or may be configured in the main controller 1f.
As described above, the old communication system having the old protocol control means 1c, 1c-1, 1c-2 is replaced with the new communication system having the new protocol control means 1e, 1e-1, 1e-2. Up is completed.
As described above, it is possible to upgrade from an old program to a new program without bringing the entire system to a stopped state. In particular, according to the second embodiment, in connection units, that is, in one system unit comprising one communication hardware 1a, one communication interface 1b, one protocol control unit 1c, and one message interpretation unit 1d. The version can be upgraded, and even when other connections are in operation, the version upgrade of the entire system can be completed by sequentially upgrading and replacing each connection. That is, the communication system can be upgraded while operating the communication system.

1 自コンピュータ
1a 通信用ハードウェア
1b 通信インターフェース
1c プロトコル制御手段
1d 電文解釈手段
1e 新プロトコル制御手段
1f メインコントローラ
2 外部コンピュータ
1 Local Computer 1a Communication Hardware 1b Communication Interface 1c Protocol Control Unit 1d Message Interpretation Unit 1e New Protocol Control Unit 1f Main Controller 2 External Computer

Claims (2)

外部コンピュータとの間の通信システムを自コンピュータに構成するための通信ソフトウェアであって、
自コンピュータに、
通信インターフェースを構成するためのソフトウェア部品と、
プロトコル制御手段を構成するためのソフトウェア部品と、
電文解釈手段を構成するためのソフトウェア部品と、を備え、
(a1)前記通信インターフェースに、通信用ハードウェアを制御する機能を実現させ、
(b1)前記プロトコル制御手段及び前記電文解釈手段に対し前記通信用ハードウェアへの外部コンピュータの最大接続数を通知する機能を実現させ、
(c1)前記通信インターフェースのコピーを生成する機能を実現させ、
(c2)前記通知に係る最大接続数分を賄う前記プロトコル制御手段のコピーを生成する機能を実現させ、
(c3)前記通知に係る最大接続数分を賄う前記電文解釈手段のコピーを生成する機能を実現させ、
(d1)前記プロトコル制御手段と前記電文解釈手段との入出力が結びつく機能を実現させ、
(d2)前記通信インターフェースと前記プロトコル制御手段との入出力が結びつく機能を実現させ、
(d3) 前記通信インターフェースと前記通信用ハードウェアとを切り離す機能を実現させ、
(d4)前記通信インターフェースと前記通信用ハードウェアとが結びつく機能を実現させる通信ソフトウェア。
Communication software for configuring a communication system with an external computer in its own computer,
On your computer
Software components for configuring the communication interface;
Software components for configuring the protocol control means;
A software component for configuring the message interpretation means,
(a1) The communication interface realizes a function of controlling communication hardware,
(b1) Realizing a function of notifying the protocol control means and the message interpretation means of the maximum number of external computers connected to the communication hardware;
(c1) Realizing a function to generate a copy of the communication interface,
(c2) Realizing a function of generating a copy of the protocol control means that covers the maximum number of connections related to the notification,
(c3) Realizing a function to generate a copy of the message interpretation means that covers the maximum number of connections related to the notification,
(d1) Realizing a function in which the input and output of the protocol control means and the message interpretation means are connected,
(d2) Realizing a function in which the input and output of the communication interface and the protocol control means are connected,
(d3) Realizing a function of separating the communication interface and the communication hardware;
(d4) Communication software that realizes a function of connecting the communication interface and the communication hardware.
自コンピュータに、
(d5)前記プロトコル制御手段と通信インターフェース1bとを切り離す機能を実現させる請求項1に記載の通信ソフトウェア。
On your computer
(d5) The communication software according to claim 1, which realizes a function of separating the protocol control means and the communication interface 1b.
JP2010080512A 2010-03-31 2010-03-31 Communication software Active JP5401385B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010080512A JP5401385B2 (en) 2010-03-31 2010-03-31 Communication software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010080512A JP5401385B2 (en) 2010-03-31 2010-03-31 Communication software

Publications (2)

Publication Number Publication Date
JP2011215693A JP2011215693A (en) 2011-10-27
JP5401385B2 true JP5401385B2 (en) 2014-01-29

Family

ID=44945381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010080512A Active JP5401385B2 (en) 2010-03-31 2010-03-31 Communication software

Country Status (1)

Country Link
JP (1) JP5401385B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06311199A (en) * 1993-04-26 1994-11-04 Nippon Telegr & Teleph Corp <Ntt> Uninterrupted communication control software changing method
JPH09168040A (en) * 1995-12-15 1997-06-24 Chokosoku Network Computer Gijutsu Kenkyusho:Kk Protocol processing method
EP0935192A1 (en) * 1998-02-09 1999-08-11 Sony Europa B.V. Method and system for communication between application programs and a network
JP4541727B2 (en) * 2004-03-04 2010-09-08 三菱電機株式会社 Software function update device

Also Published As

Publication number Publication date
JP2011215693A (en) 2011-10-27

Similar Documents

Publication Publication Date Title
US9792188B2 (en) Remote cable access point reset
EP2816467B1 (en) Method and device for checkpoint and restart of container state
CA2339783C (en) Fault tolerant computer system
TWI575362B (en) Backup method, pre-testing method for enviornment updating and system thereof
US20110083046A1 (en) High availability operator groupings for stream processing applications
US9361151B2 (en) Controller system with peer-to-peer redundancy, and method to operate the system
WO2016045439A1 (en) Vnfm disaster-tolerant protection method and device, nfvo and storage medium
CN111143044B (en) Task scheduling management system, method, device and storage medium thereof
CN111045854A (en) Method, apparatus and computer program product for managing service containers
WO2014138980A1 (en) Computer system using in-service software upgrade
CN106161086A (en) Control method that master control borad is restarted and device
JP5401385B2 (en) Communication software
JP2015114952A (en) Network system, monitoring control unit, and software verification method
JP6894266B2 (en) Program update control method and program update control program for information processing device and management control device
EP3509249B1 (en) Systems and methods for health monitoring and upgrade of a distributed controller
JP6654662B2 (en) Server device and server system
EP3643020B1 (en) System and method for stabilizing a bacnet mstp network when failures occur
JP2012190101A (en) Cluster system
JP6554801B2 (en) Redundant communication device and control method thereof
JP6364773B2 (en) Information processing apparatus, information processing system, memory replication method, and computer program
US11929876B1 (en) Method for modifying network configuration of resource manager and managed resources
JP2010244129A (en) Computer system
JP2013156963A (en) Control program, control method, information processing apparatus, and control system
JP2005157462A (en) System switching method and information processing system
CN116264548A (en) In-service software upgrades with active service monitoring

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131015

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131028

R150 Certificate of patent or registration of utility model

Ref document number: 5401385

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250