JP2015099525A - Radio terminal device, external management terminal device, and network system - Google Patents

Radio terminal device, external management terminal device, and network system Download PDF

Info

Publication number
JP2015099525A
JP2015099525A JP2013239576A JP2013239576A JP2015099525A JP 2015099525 A JP2015099525 A JP 2015099525A JP 2013239576 A JP2013239576 A JP 2013239576A JP 2013239576 A JP2013239576 A JP 2013239576A JP 2015099525 A JP2015099525 A JP 2015099525A
Authority
JP
Japan
Prior art keywords
program
terminal
update
terminal device
wireless terminal
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
JP2013239576A
Other languages
Japanese (ja)
Other versions
JP6119572B2 (en
Inventor
豊 河本
Yutaka Kawamoto
豊 河本
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.)
Saxa Inc
Original Assignee
Saxa Inc
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 Saxa Inc filed Critical Saxa Inc
Priority to JP2013239576A priority Critical patent/JP6119572B2/en
Publication of JP2015099525A publication Critical patent/JP2015099525A/en
Application granted granted Critical
Publication of JP6119572B2 publication Critical patent/JP6119572B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically update a program of each terminal, and to simultaneously start operation of update programs in a system during an update.SOLUTION: An external management terminal 40 transfers an update program to a terminal 10(4) constituting a network system for performing communication by using a multi-hop communication system. The terminal 10(4) receiving the update program delivers the update program to a terminal 10(1). Since application timing of the update program which is delivered in order is arranged from terminal to terminal in this way, the update programs in all terminals 10 are simultaneously applied according to application timing of a terminal that reaches an application time at the earliest stage when the delivery of the update program to all of the terminals 10 (10(1) to 10(4)) is completed.

Description

本発明は、無線端末間の通信を、他の無線端末によって1回以上中継して行うマルチホップ通信方式によるネットワークシステム(ここでは、マルチホップネットワークシステムという)を構成する無線端末装置、無線端末装置に更新プログラムを注入(転送)する外部管理端末装置、及び前記ネットワークシステムに関する。   The present invention relates to a wireless terminal device and a wireless terminal device that constitute a network system (herein referred to as a multi-hop network system) based on a multi-hop communication system in which communication between wireless terminals is relayed at least once by another wireless terminal. The present invention relates to an external management terminal device that injects (transfers) an update program to the network system and the network system.

複数の無線端末装置(以下、単に端末という)でネットワークシステムを構築して、例えばガス、水道などの流量や使用料金等を監視する遠隔監視システムが知られている。
この遠隔監視システムにおいては、システムの運用中に、端末において不具合や仕様変更が発生した場合には、新たなプログラムで対応したり、或いは各端末に搭載され適用しているプログラムのバージョン(以下、Verと略記する)を変更することなどが行われる。
ところで、遠隔監視システムにおいては、プログラムをダウンロード(配送)したり、或いはそのVerを変更したりする場合、対象端末の設定場所が個人宅等、作業者が自由に立ち入れないような場所にあることがあり、そのため、従来から、無線通信機能等の遠隔通信機能(シングルホップ通信)により、更新プログラムのダウンロード等が行われている。
A remote monitoring system is known in which a network system is constructed by a plurality of wireless terminal devices (hereinafter simply referred to as terminals), and monitors, for example, the flow rate of gas, water, etc., usage charges, and the like.
In this remote monitoring system, if a malfunction or specification change occurs in the terminal during system operation, it can be handled by a new program, or the version of the program installed and applied to each terminal (hereinafter referred to as (Abbreviated as Ver) is performed.
By the way, in the remote monitoring system, when downloading (delivering) a program or changing its Ver, the setting location of the target terminal is in a place where an operator cannot enter freely, such as a private house. For this reason, conventionally, downloading of an update program or the like has been performed by a remote communication function (single-hop communication) such as a wireless communication function.

ところで、更新プログラムは、一般に情報量が多く、その受け渡し(配送、或いはダウンロードとも云う)のための通信に比較的時間が掛かる。また、とくに、更新プログラムの配送対象となる端末が電池駆動である場合は、消費電力対策として、間欠動作にし、かつ通信時間にも制限を設けている。そのため、このような場合、通信時間を短縮しかつ確実に更新プログラムのダウンロードを行うために、端末を更新プログラムのダウンロード専用モードに一時的に切り替えて、その配送などを行っている。
ただ、端末が広範囲に渡って設置され、無線が届く範囲には少数の端末しか存在しない場合は、シングルホップ通信では、各端末の電波が届く位置まで作業者が移動して更新プログラムをダウンロードする必要がある。
By the way, the update program generally has a large amount of information, and it takes a relatively long time for communication for delivery (also referred to as delivery or download). In particular, when the terminal to which the update program is delivered is battery-powered, intermittent operation is performed and communication time is limited as a power consumption measure. Therefore, in such a case, in order to shorten the communication time and to download the update program with certainty, the terminal is temporarily switched to the update program download-only mode and the delivery is performed.
However, if terminals are installed over a wide area and there are only a few terminals within the radio range, in single-hop communication, the worker moves to the position where the radio waves of each terminal reach and downloads the update program. There is a need.

これに対し、マルチホップ通信では、複数の端末を間に介して無線中継により遠隔地の端末まで通信が可能であるため、マルチホップ通信方式を使って更新プログラムを配送することも考えられる。しかし、従来のマルチホップ通信方式では、更新プログラムの配送時の中継通信毎に同期処理のための時間が必要なこと、中継回数(段数)が増える毎に通信エラーの確率が増えること、通信エラーによりダウンロードが失敗した場合、そのリカバリー処理に時間が掛かること、などの理由で、更新プログラムの配送、適用のため全体の処理時間が増大する。その結果、システム内で、異なるVerの更新プログラムが混在して運用される期間が長くなるという問題が生じる。
加えて、更新プログラムのダウンロード処理に時間が掛かり、端末の実運用動作にも影響が出ることなどの問題もあり、現在のところ、端末ネットワークシステムにおいて、マルチホップ通信を用いたプログラムの配送処理は実施されていない。
On the other hand, in multi-hop communication, it is possible to communicate to a remote terminal by wireless relay through a plurality of terminals, and it is also conceivable to distribute an update program using a multi-hop communication method. However, the conventional multi-hop communication method requires time for synchronization processing for each relay communication at the time of delivery of the update program, and the probability of a communication error increases as the number of relays (stages) increases. If the download fails due to the above, the entire processing time increases due to the delivery and application of the update program because the recovery process takes time. As a result, there arises a problem that a period in which different Ver update programs are mixedly used in the system becomes long.
In addition, it takes time to download the update program and affects the actual operation of the terminal. At present, in the terminal network system, the program distribution process using multi-hop communication is not available. Not implemented.

つまり、従来のシングルホップ通信方式では、作業者の移動時間などの要因で、また、マルチホップ通信方式では、ネットワーク同期や、リカバリー処理などの要因により、いずれの方式を利用しても、1台毎のプログラム更新時期(タイミング)に開き(ずれ)が出るため、異なるVerの更新ソフト(更新プログラム)がシステム全体に混在して運用される期間が長くなり、実運用に悪影響を与えやすいという問題は解決されない。   In other words, in the conventional single-hop communication method, one unit is used regardless of which method is used due to factors such as the movement time of workers, and in the multi-hop communication method, due to factors such as network synchronization and recovery processing. Since an open (shift) occurs at each program update time (timing), the period during which different Ver update software (update programs) are mixed and operated in the entire system becomes long, and it is likely to adversely affect actual operation. Is not resolved.

また、既に述べたように、シングルホップ通信方式では、電波の届く範囲まで作業者が移動しなければならないことから、更新プログラムのダウンロードの自動化は難しい。
なお、無作為に広範囲に設定された端末間通信において、マルチホップ通信方式を利用したネットワークとして、メッシュネットワークなどがあるが、メッシュネットワークでは、各端末通信経路が可変であり、しかも常時変化するために、更新プログラムのダウンロードを管理することが難しく、ダウンロードの自動化は難しい。
なお、複数のコンピュータをネットワークで接続し、更新情報に基づきこれら複数のコンピュータを一括して更新するシステム構成方式も知られている(特許文献1参照)。
しかし、この場合は、配布用コンピュータがネットワークを介して複数の更新対象コンピュータに一斉に配布するものであるから、上述のマルチホップネットワークシステムとはシステムが相違する。
Further, as already described, in the single hop communication method, since the worker has to move to a range where radio waves reach, it is difficult to automate the download of the update program.
In addition, there is a mesh network etc. as a network using the multi-hop communication method in the communication between terminals set randomly in a wide range. However, in the mesh network, each terminal communication path is variable and changes constantly. In addition, it is difficult to manage downloads of update programs, and download automation is difficult.
A system configuration method is also known in which a plurality of computers are connected via a network and the plurality of computers are collectively updated based on update information (see Patent Document 1).
However, in this case, the distribution computer distributes to a plurality of update target computers all at once via the network, so the system is different from the above-described multi-hop network system.

特開2002−175188号公報JP 2002-175188 A

本発明は、プログラムの更新における前記従来の問題に鑑みてなされたものであって、その目的は、ネットワークシステムを構成する複数の無線端末装置のプログラムの更新を自動的に行うと共に、更新に当たって、システム内で更新プログラムを同時期に一斉に運用開始できるようにすることである。   The present invention has been made in view of the above-described conventional problems in program update, and its purpose is to automatically update a program of a plurality of wireless terminal devices constituting a network system, and in updating, It is to be able to start operating the update program at the same time in the system.

本発明は、マルチホップ通信方式を用いて通信を行うネットワークシステムを構成する無線端末装置であって、前記無線端末装置は、自無線端末装置が保持するプログラムに関するプログラム管理情報を所定時間毎に互いに送受信する通信手段と、受信したプログラム管理情報に基づき、自無線端末装置のプログラム管理情報を所定の更新優先度に従って更新する更新手段と、プログラム管理情報に基づき、更新プログラムの配送の要否を判断し、更新プログラムの配送要の判断に基づき他無線端末装置から当該更新プログラムを受領し、又は更新プログラムの配送要求に基づき他無線端末装置に当該更新プログラムを配送するプログラム配送・管理手段と、全ての無線端末装置に対する更新プログラムの配送が完了したとき、当該更新プログラムの自無線端末装置における適用タイミングを調整する適用タイミング調整手段と、を有し、前記適用タイミング調整手段は、前記プログラム管理情報に含まれる他の無線端末装置の適用タイミング情報のうち、自無線端末装置の適用タイミング情報よりも早い適用タイミング情報に合わせて自無線端末装置の適用タイミング情報を調整し、前記ネットワークシステム内の各無線端末装置が同時期に更新プログラムの適用を行うようにすることを特徴とする無線端末装置である。   The present invention is a wireless terminal device that constitutes a network system that performs communication using a multi-hop communication method, and the wireless terminal device transmits program management information related to a program held by the wireless terminal device to each other at predetermined time intervals. Based on the communication means to transmit / receive, the program management information of the own wireless terminal device based on the received program management information, the update means for updating the program management information according to a predetermined update priority, and the necessity of delivery of the update program based on the program management information A program delivery / management means for receiving the update program from another wireless terminal device based on the determination of the necessity of delivery of the update program, or delivering the update program to the other wireless terminal device based on the delivery request for the update program, When delivery of the update program to another wireless terminal device is completed, the update program Application timing adjustment means for adjusting the application timing of the ram's own wireless terminal apparatus, wherein the application timing adjustment means is a part of the application timing information of other wireless terminal apparatuses included in the program management information. Adjusting the application timing information of the own wireless terminal device according to the application timing information earlier than the application timing information of the terminal device, so that each wireless terminal device in the network system applies the update program at the same time Is a wireless terminal device.

本発明によれば、ネットワークシステムを構成する複数の無線端末装置のプログラムの更新を自動的に行うことができると共に、更新に当たって、システム内で更新プログラムを同時期に一斉に運用開始することができる。   According to the present invention, it is possible to automatically update a program of a plurality of wireless terminal devices constituting a network system and to start operation of the update program simultaneously in the system at the same time. .

本発明の複数の端末で構成されたマルチホップネットワークシステムの一例を概略的に説明する図である。It is a figure which illustrates roughly an example of the multihop network system comprised by the some terminal of this invention. 更新プログラムを適用する端末及びダウンロード管理用外部管理端末の機能ブロック図である。It is a functional block diagram of a terminal to which an update program is applied and an external management terminal for download management. 更新プログラム管理情報に基づく更新プログラム配送側端末のCPUにおける処理の手順、つまり同期信号作成から更新プログラム配送までのCPUによる手順を説明するフロー図である。It is a flowchart explaining the procedure of the process in CPU of the update program delivery side terminal based on update program management information, ie, the procedure by CPU from a synchronous signal preparation to update program delivery. 更新プログラム受領側端末のCPUにおける、同期信号監視からダウンロード、及び同期補正、同期開始処理までの処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence from a synchronous signal monitoring to download, synchronous correction | amendment, and a synchronous start process in CPU of an update program receiving side terminal. 端末における更新プログラムの適用の手順を示すフロー図である。It is a flowchart which shows the procedure of application of the update program in a terminal. 外部管理端末から更新プログラムをシステム内の端末に転送を開始してから転送処理を完了するまでの処理の手順を示すフロー図である。It is a flowchart which shows the procedure of a process after starting transfer of an update program from the external management terminal to the terminal in a system until transfer processing is completed. 複数の端末で構成されるマルチホップネットワークシステムにおいて、プログラム更新処理を行う場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of performing a program update process in the multihop network system comprised with a some terminal. 複数の端末で構成されるマルチホップネットワークシステムにおいて、プログラム更新処理を行う場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of performing a program update process in the multihop network system comprised with a some terminal. システム内に新規の端末を追加(増設)した場合の更新プログラムのダウンロード手順を示すシーケンス図である。It is a sequence diagram which shows the download procedure of the update program when a new terminal is added (added) in the system. 本発明のマルチホップ通信システムの他の実施形態を示す図である。It is a figure which shows other embodiment of the multihop communication system of this invention.

以下、本発明をその実施形態について添付図面を参照して説明する。
図1は、本発明の複数の端末で構成されたマルチホップネットワークシステムの一例を概略的に説明する図である。
本マルチホップネットワークシステムの一例として、メータ類の遠隔監視システムでは、それぞれプログラムを備えた複数の端末10からなり、広範囲に設置された複数の端末10間で図示のように通信経路が設定されている。端末10(1)・・・10(4)は、それぞれ例えば料金メータ20などに接続されており、一定時間ごと或いは管理センタ30の指示により、料金情報などを料金メータ20から読み出して管理センタ30に送信する。なお、図示の例では、管理センタ30と接続された端末10(1)は、他の端末10(2)〜10(4)への中継器として機能している。また端末10(2)は、端末10(3)に対する中継器としての機能を有している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to the accompanying drawings.
FIG. 1 is a diagram schematically illustrating an example of a multihop network system including a plurality of terminals according to the present invention.
As an example of the multi-hop network system, a meter remote monitoring system includes a plurality of terminals 10 each having a program, and a communication path is set between a plurality of terminals 10 installed in a wide range as shown in the figure. Yes. Terminals 10 (1)... 10 (4) are connected to, for example, a charge meter 20, for example, and charge information and the like are read from the charge meter 20 at regular intervals or according to an instruction from the management center 30. Send to. In the illustrated example, the terminal 10 (1) connected to the management center 30 functions as a relay to the other terminals 10 (2) to 10 (4). The terminal 10 (2) has a function as a relay for the terminal 10 (3).

ここで、各端末10(1)〜10(4)は、同じネットワーク内で更新プログラムのダウンロードのための情報(以下、プログラム管理情報という)を共有している。それによって、本実施形態では、後述のように、更新プログラムを、自動で効率よく各端末に配送すると共に、後述のように、各端末への更新プログラムの適用時期を一致させることができる。   Here, the terminals 10 (1) to 10 (4) share information for downloading the update program (hereinafter referred to as program management information) within the same network. Accordingly, in this embodiment, as will be described later, the update program can be automatically and efficiently delivered to each terminal, and the application time of the update program to each terminal can be matched as described later.

即ち、マルチホップネットワークシステムにおいては、各端末は、通常、ビーコン等の同期信号を一定時間間隔毎に発信することで、同期端末の認識、端末間の通信同期をとっている。そこで、本実施形態に係るマルチホップネットワークシステムでは、このビーコン等の同期信号中に、プログラム管理情報を入れ込むことで、「更新プログラムの認識」、「更新プログラムダウンロード専用モードへの切り替え」、「システム全体の更新プログラム配送数の把握」、「更新プログラム適用時期の同期・調整」等を、同期信号の送受信によって行えるようにしている。
それによって、本実施形態では、プログラム管理情報を各端末間で事実上共有し、プログラムを更新する場合において、更新プログラムを各端末で一斉に適用して運用することができ、同一ネットワーク内でVerの異なるプログラムが混在して運用されることが実質的に起きないようにすることができる。
That is, in a multi-hop network system, each terminal normally recognizes a synchronous terminal and establishes communication synchronization between terminals by transmitting a synchronization signal such as a beacon at regular time intervals. Therefore, in the multi-hop network system according to the present embodiment, the program management information is inserted into the synchronization signal such as the beacon so that “update program recognition”, “switch to the update program download only mode”, “ “The grasp of the number of update program deliveries of the entire system”, “synchronization / adjustment of update program application timing”, etc. can be performed by transmitting and receiving synchronization signals.
Accordingly, in the present embodiment, when the program management information is effectively shared between the terminals and the program is updated, the update program can be applied and operated at the same time in each terminal. Thus, it is possible to prevent practically a mixture of different programs.

以下、本マルチホップネットワークシステムにおける各端末10(1)〜10(4)への更新プログラムの配送、及び配送された更新プログラムの各端末における適用(更新プログラムを実際に使用できる状態にすること)について説明する。
図1において、例えば、端末(ここでは端末10(4))に対して、PC(Personal Computer)などの外部のダウンロード管理用端末(ここでは、外部管理端末という)40から更新プログラムを転送(注入とも云う)する。更新プログラムを受領した端末10(4)は、更新プログラムを、自端末の不揮発メモリに記録すると共に、近隣のつまり、直接通信可能な端末(ここでは端末10(1))に対して更新プログラムを配送する。また、更新プログラムを受領した端末10(1)からは、さらに他の端末(ここでは端末10(2)と端末10(3)に、或いは、端末10(2)から端末10(3))に更新プログラムを配送する。
本実施形態では、このように端末から端末へ、順に配送される更新プログラムの適用時期(タイミング)を揃えるため、端末間の同期信号の送受信を利用して端末間で適用時期の調整が行われる。即ち、全ての端末10(10(1)〜10(4))に対する更新プログラムの配送が完了した段階で、例えば、最も早期に適用時期に到達する端末のタイミングに合わせて、全ての端末10における更新プログラムの適用を一斉に行い、ほぼ同時に使用開始できるようにする。
Hereinafter, distribution of the update program to each terminal 10 (1) to 10 (4) in this multi-hop network system and application of the distributed update program to each terminal (to make the update program actually usable) Will be described.
In FIG. 1, for example, an update program is transferred (injected) from an external download management terminal (herein referred to as an external management terminal) 40 such as a PC (Personal Computer) to a terminal (here, terminal 10 (4)). Also called). The terminal 10 (4) that has received the update program records the update program in its own nonvolatile memory and also sends the update program to a neighboring terminal, that is, a terminal (in this case, the terminal 10 (1)) that can communicate directly. to deliver. Further, from the terminal 10 (1) that has received the update program, it is further transferred to other terminals (here, the terminal 10 (2) and the terminal 10 (3), or from the terminal 10 (2) to the terminal 10 (3)). Deliver updates.
In this embodiment, in order to align the application time (timing) of the update program delivered in order from the terminal to the terminal in this way, the application time is adjusted between the terminals using transmission / reception of synchronization signals between the terminals. . That is, at the stage where the delivery of the update program to all the terminals 10 (10 (1) to 10 (4)) is completed, for example, in all the terminals 10 in accordance with the timing of the terminal that reaches the application time earliest. Apply updates at the same time so that you can start using them almost simultaneously.

以上が、本マルチホップネットワークシステムにおける更新プログラムの各端末への更新プログラムの配送、及び配送された更新プログラムの各端末における適用処理の概要である。
以下、これらの処理を行う端末、外部管理端末の構成を含め、処理全体について詳細に説明する。
ここでは、まず、以上で述べたプログラム管理情報について具体的に説明する。
同期信号に入れ込むプログラム管理情報として、ここでは、
(a)プログラムの「更新No.」情報、
(b)適用済みプログラムの「Ver」情報、
(c)保有プログラム「Ver」情報、
(d)更新プログラム保有端末台数(保有端末台数/端末総数)情報、
(e)更新適用調整カウント情報、の(a)〜(e)の情報が備えられている。
次に、これらの情報について具体的に説明する。
The above is the outline of the distribution of the update program to each terminal of the update program in this multi-hop network system and the application processing of each distributed update program at each terminal.
Hereinafter, the entire process including the configuration of the terminal that performs these processes and the external management terminal will be described in detail.
Here, first, the program management information described above will be specifically described.
As program management information to be included in the sync signal,
(A) Program “Update No.” information,
(B) “Ver” information of the applied program;
(C) Holding program “Ver” information,
(D) Number of update program owned terminals (number of owned terminals / total number of terminals) information,
(E) Update application adjustment count information (a) to (e) is provided.
Next, these pieces of information will be specifically described.

(a)プログラム更新No.情報
この情報は、更新プログラムをダウンロード(配送)する際に、各端末10がダウンロードを行うか否かを判断する場合の判断基準となる情報で、ダウンロードの優先度を示す情報である。
即ち、プログラム更新No.(ナンバー)は、そのNo.で更新プログラムの優先度、ここでは新しさを表す。つまり、No.の高い(数値の大きい)もの程新しく、各端末10における適用の優先度が高い。
各端末10は、同期信号を受信したとき、それに付加されたプログラム管理情報中のプログラム更新No.と自端末で適用中のプログラム更新No.を比較して、同期信号中のプログラム更新No.が自端末のそれよりも大きい(優先度が高い)場合は、送信元端末10に対して更新プログラムのダウンロードを要求する。
(A) Program update No. information This information is information used as a criterion when each terminal 10 determines whether to download (deliver) an update program. It is information to show.
In other words, the program update number (number) represents the priority of the update program, here the newness. That is, the higher the number (the larger the numerical value) is, the higher the priority of application at each terminal 10 is.
When each terminal 10 receives the synchronization signal, it compares the program update No. in the program management information added thereto with the program update No. being applied in its own terminal, and the program update No. in the synchronization signal is obtained. If it is larger than that of its own terminal (priority is high), it requests the transmission source terminal 10 to download the update program.

なお、ここでは、プログラム更新No.を0〜F(但し、プログラム更新No.=Fに対しては最初のNo.1を優先する)とし、プログラム更新No.=0は、更新プログラムを保有していない初期値を表すものとする。また、Fは任意の整数であり、自由に設定できる。
プログラム更新No.の更新方法は、後述するように、更新プログラム配送の大元である端末10(外部のダウンロード管理用端末である外部管理端末40からプログラムの転送を受けた端末、図1では端末10(4))でプログラム更新No.を更新する。他の端末10は、プログラム管理情報中のプログラム更新No.が自端末で管理しているプログラム更新No.よりも優先度(数値)が高く、かつ保有更新プログラムのVerが、自端末と異なる場合に、更新プログラムのダウンロードを要求する。
Here, the program update No. is 0 to F (however, the first No. 1 has priority over the program update No. = F), and the program update No. = 0 holds the update program. It shall represent the initial value that is not. F is an arbitrary integer and can be set freely.
As will be described later, the update method of the program update No. is as follows. The terminal 10 that is the source of the update program delivery (the terminal that has received the program transfer from the external management terminal 40 that is an external download management terminal, the terminal in FIG. 10 (4)), the program update number is updated. The other terminal 10 has a higher priority (numerical value) than the program update number managed by the own terminal in the program management information and the Ver of the retained update program is different from the own terminal Request download of the update program.

(b)適用済みプログラムVer情報
適用済みプログラムVer情報は、現在端末に適用している、つまり端末において使用中のプログラムVerを示す。
(c)保有プログラムVer情報
保有プログラムVer情報は、端末が現在保有している更新プログラムのVerを示す。ここで、ダウンロード済みの更新プログラムは、継続配送用として、自端末に適用した後(自端末で使用可能な状態にした後)も消去しないで保存しておく。これは、例えば、ネットワーク中の全ての端末について更新プログラムの適用が完了した状態で、このVerの更新プログラムを保持しない端末10が、新たに当該ネットワークに接続された場合などを想定して、自動配送用として保存しておくためである。
(B) Applied program Ver information The applied program Ver information indicates a program Ver that is currently applied to the terminal, that is, that is being used in the terminal.
(C) Holding program Ver information The holding program Ver information indicates the Ver of the update program currently held by the terminal. Here, the downloaded update program is stored without being erased even after being applied to the own terminal (after being made available on the own terminal) for continuous delivery. For example, in the state where the application of the update program has been completed for all terminals in the network and the terminal 10 that does not hold this Ver update program is newly connected to the network, it is automatic. This is because it is stored for delivery.

(d)更新プログラム保有端末台数(保有端末台数/端末総数)情報
更新プログラム保有端末台数情報は、保有端末台数/端末総数、即ちシステムを構成する全端末中で何台が更新プログラムを受領したかを示す情報である。例えば、システムを構成する全端末数を255台として、そのうち100台が更新プログラムの配送を受けた場合は、更新プログラム保有端末台数情報は100/255となる。また、全ての端末10が更新プログラムを受け取ったときは、更新プログラム保有端末台数情報は255/255となり、その時点から、次に説明する「更新適用調整カウント」を開始する。
なお、受信した更新プログラム保有端末台数(保有端末台数/端末総数)情報と、自端末で管理している同情報に差異がある場合は、更新プログラム保有端末台数情報が大きい方を優先し、自端末の同情報を補正(更新)する。これにより、更新プログラム保有端末台数情報はシステム内の全ての端末において共有することができる。
(D) Number of update program owned terminals (number of owned terminals / total number of terminals) information The number of owned update program terminals is the number of owned terminals / total number of terminals, that is, how many terminals received the update program among all the terminals constituting the system. It is information which shows. For example, if the total number of terminals constituting the system is 255 and 100 of them receive the delivery of the update program, the update program possession terminal number information is 100/255. When all the terminals 10 have received the update program, the update program possession terminal number information becomes 255/255, and from that point, the “update application adjustment count” described below is started.
If there is a difference between the received update program number of owned terminals (number of owned terminals / total number of terminals) information and the same information managed by the own terminal, give priority to the one with larger update program owned terminal number information. The same information on the terminal is corrected (updated). Thereby, the update program possession terminal number information can be shared by all terminals in the system.

(e)更新適用調整カウント情報(カウント値)
更新適用調整カウント情報は、保有更新プログラムの適用時期決定用のカウンタ(後述の更新適用カウント手段)のカウント情報である。
ここでカウンタは、マルチホップネットワークシステムにおける情報伝達遅延の補正用カウンタであって、全ての端末の更新準備が完了した時点、つまり、更新プログラム保有端末台数情報が255/255になった段階で、カウンタのカウントを開始する。実際の更新プログラムの適用は、カウントが満了した時点で行う。
(E) Update application adjustment count information (count value)
The update application adjustment count information is count information of a counter (update application count means described later) for determining the application time of the retained update program.
Here, the counter is a counter for correcting the information transmission delay in the multi-hop network system, and when the update preparation of all terminals is completed, that is, when the update program possession terminal number information becomes 255/255, Start counting the counter. The actual update program is applied when the count expires.

なお、同期信号(プログラム管理情報)に含まれる他の端末の更新時期調整カウント情報(カウント値)をチェックして、カウント値が初期値から変化していることが認識されたときは、相手端末のカウント値と自端末のカウント値を比較して、より更新プログラムの適用時期に近づいた方のカウント値(例えばカウントダウンであれば、よりカウントダウンが進んでいる方のカウント値)に変更する。これによって、適用時期の同期調整を行うことができる。   When the update timing adjustment count information (count value) of another terminal included in the synchronization signal (program management information) is checked and it is recognized that the count value has changed from the initial value, the counterpart terminal And the count value of the terminal itself are compared, and the count value is closer to the time when the update program is applied (for example, if the countdown is a countdown, the count value is more advanced). As a result, the application time can be adjusted synchronously.

なお、後述するように、更新プログラムがシステム内の全ての端末に配送されない状態でも、強制的に適用時期決定用のカウンタを始動できるようにしてもよい。その場合は、既に更新プログラムを受領済みの端末については同時期に更新を適用する。
また、大元の更新プログラム転送端末(図1の端末10(4))に接続された外部管理端末40で、更新プログラム保有端末台数情報が255/255になるまでの時間をサンプリングして、これを更新適用調整カウント情報に適用することで、更新プログラムの適用時の同期精度を向上させることができる。
As will be described later, the counter for determining the application time may be forcibly started even when the update program is not delivered to all terminals in the system. In this case, the update is applied to the terminal that has already received the update program at the same time.
In addition, the external management terminal 40 connected to the original update program transfer terminal (terminal 10 (4) in FIG. 1) samples the time until the update program possession terminal number information becomes 255/255, and this is sampled. Is applied to the update application adjustment count information, the synchronization accuracy when applying the update program can be improved.

次に、図1に示すマルチホップネットワークシステムを構成する端末10とダウンロードのための外部管理端末40について図面を参照して説明する。
図2は、以下で説明する更新プログラムを適用する端末及びダウンロード管理用外部管理端末の機能ブロック図である。
ここで、端末10は、通信を行うためのCPU12と、本発明の通信手段に対応する無線モジュール14と、RAM(Random Access Memory)16と、不揮発メモリ18と、とを備えている。
ここで、無線モジュール14には、マルチホップ通信処理手段14aと、ダウンロードモード通信処理手段14bが備えられ、RAM16はダウンロード管理情報保持領域16aを有し、不揮発メモリ18には、更新プログラムを保存する領域18aと、ダウンロード管理情報のための退避領域18bが設けられている。
Next, the terminal 10 constituting the multi-hop network system shown in FIG. 1 and the external management terminal 40 for downloading will be described with reference to the drawings.
FIG. 2 is a functional block diagram of a terminal to which an update program described below is applied and an external management terminal for download management.
Here, the terminal 10 includes a CPU 12 for performing communication, a wireless module 14 corresponding to the communication means of the present invention, a RAM (Random Access Memory) 16, and a nonvolatile memory 18.
Here, the wireless module 14 includes a multi-hop communication processing unit 14a and a download mode communication processing unit 14b. The RAM 16 has a download management information holding area 16a, and the nonvolatile memory 18 stores an update program. An area 18a and a save area 18b for download management information are provided.

CPU12には、同期信号参照及び送信手段122aと、プログラム配送・管理手段122bと、更新適用カウント手段122cと、適用タイミング調整手段122dと、更新手段122e、を備えるネットワーク同期・制御部122、動作モード切替制御手段124aとから成るダウンロード通信制御部124、及び電池駆動による低消費電力動作時における間欠動作を制御する制御部126が備えられている。これらは全てプログラムを読み込むことにより構成される機能実現手段である。   The CPU 12 includes a network synchronization / control unit 122 including a synchronization signal reference / transmission unit 122a, a program delivery / management unit 122b, an update application count unit 122c, an application timing adjustment unit 122d, and an update unit 122e. A download communication control unit 124 including a switching control unit 124a and a control unit 126 that controls intermittent operation during low power consumption operation by battery driving are provided. These are all function realizing means configured by reading a program.

同期信号参照及び送信手段122aは、同期信号に付加する更新プログラムのプログラム管理情報を作成し、同期信号発信処理を行う。
プログラム配送・管理手段122bは、プログラム管理情報に基づき、プログラムの配送の要否を判断し、プログラムの配送要の判断に基づき他端末から当該プログラムの配送を受け付け、又はプログラムの配送要求に基づき他端末に当該プログラムを配送する処理を行う。
更新適用カウント手段122cは、プログラム配送・管理手段122bの更新プログラム情報のうち、(d)更新プログラム保有端末台数(保有端末台数/端末総数)情報の更新プログラム保有端末台数から、全ての端末に更新プログラムが配送されたことを確認したとき更新適用のためのカウントを行うカウント手段である。
適用タイミング調整手段122dは、更新適用カウント手段122cがカウントを満了して配送された更新プログラムを適用するタイミングを、更新適用カウント手段122cのカウント満了までのカウント値を変更することにより調整する。
ダウンロード通信制御部124は、端末間におけるプログラムの送信又は受信制御を行う。
更新手段122eは、具体的には以下で説明するがプログラム管理情報を更新(又は補正)する処理を行う。
The synchronization signal reference and transmission unit 122a creates program management information of an update program to be added to the synchronization signal, and performs synchronization signal transmission processing.
Based on the program management information, the program delivery / management unit 122b determines whether the program delivery is necessary, accepts the delivery of the program from another terminal based on the judgment of the program delivery necessity, or other based on the program delivery request. Processing to deliver the program to the terminal is performed.
The update application count means 122c updates all terminals from the update program possession terminal number in the (d) update program possession terminal number (number of possessed terminals / total number of terminals) information in the update program information of the program delivery / management means 122b. It is a counting means that counts for applying the update when it is confirmed that the program has been delivered.
The application timing adjustment unit 122d adjusts the timing at which the update application count unit 122c expires the count and applies the delivered update program by changing the count value until the count of the update application count unit 122c expires.
The download communication control unit 124 controls transmission or reception of programs between terminals.
The update unit 122e performs a process of updating (or correcting) the program management information, which will be specifically described below.

動作モード切替制御手段124aは、端末10がプログラムを送信または受信するときに間欠通信モードを連続通信モードに又はその逆に切り替えたり、規格上通信時間に制限がある場合は、一時的に制限のない通信チャネルに変更したり、通常モードにする時は、戻したりし、端末がプログラムを送信または受信するときに動作モードを通常モードからプログラムダウンロードモードに又はその逆に切り替えたり、規格上通信時間に制限がある場合は、一時的に制限のない通信チャネルに変更したり、通常モードにする時は、戻したりする制御を行う。
間欠動作制御部126は、電池駆動による低消費電力動作時における間欠動作を制御する。
When the terminal 10 transmits or receives a program, the operation mode switching control unit 124a switches the intermittent communication mode to the continuous communication mode or vice versa, or temporarily limits the communication time if the communication time is limited according to the standard. When switching to a non-communication channel, returning to normal mode, returning, switching the operation mode from normal mode to program download mode or vice versa when the terminal sends or receives a program, or the communication time according to the standard When there is a restriction, control is performed such that the communication channel is temporarily changed to an unrestricted communication channel or returned to the normal mode.
The intermittent operation control unit 126 controls intermittent operation during battery-driven low power consumption operation.

ダウンロード管理用の外部管理端末40は、CPU41と、通信IF(インタフェース)部42と、RAM43と、ユーザIF部44と、表示部45を備えている。
CPU41には、これもプログラムにより構成される機能実現手段として、更新プログラム配送状況監視手段411と、配送済み更新プログラムの強制適用開始判定手段412と、が備えられている。
RAM43には、更新プログラム(オリジナル版)が保持されている。
ユーザIF部44は、更新プログラムの転送開始や、強制適用開始操作のための操作部を構成する。
表示部45は、更新プログラム配送状況の確認やユーザに対する警告などの表示を行う。
The external management terminal 40 for download management includes a CPU 41, a communication IF (interface) unit 42, a RAM 43, a user IF unit 44, and a display unit 45.
The CPU 41 is provided with an update program delivery status monitoring means 411 and a forced update start determination means 412 for a delivered update program, as function realizing means that are also configured by programs.
The RAM 43 holds an update program (original version).
The user IF unit 44 constitutes an operation unit for starting transfer of update programs and forcing application start operation.
The display unit 45 displays the update program delivery status and displays a warning to the user.

図3は、プログラム管理情報に基づく更新プログラム配送側端末10のCPU12における処理の手順、つまり同期信号作成から更新プログラム配送までのCPU12による手順を説明するフロー図である。
即ち、まず、更新プログラム配送側端末(例えば図1の端末10(4))が、同期信号発信タイミングになったとき(S101、YES)、自端末の更新プログラム管理情報((a)プログラムの更新No.情報、(b)適用済みプログラム更新Ver情報、(c)保有プログラムVer情報、(d)更新プログラム保有端末台数情報、(e)更新適用調整カウント情報)を記憶手段(RAM16;図2)から読み出す(S102)。
FIG. 3 is a flowchart for explaining a processing procedure in the CPU 12 of the update program delivery side terminal 10 based on the program management information, that is, a procedure by the CPU 12 from the generation of the synchronization signal to the delivery of the update program.
That is, first, when the update program delivery terminal (for example, the terminal 10 (4) in FIG. 1) has reached the synchronization signal transmission timing (S101, YES), the update program management information of the own terminal ((a) program update) No. information, (b) applied program update Ver information, (c) possessed program Ver information, (d) update program possession terminal number information, (e) update application adjustment count information) storage means (RAM 16; FIG. 2) (S102).

次に、同期信号参照及び送信手段122aにより、同期信号に付加する更新プログラム管理情報を作成し(S103)、同期信号発信処理を実行する(S104)。
ここで、他の端末10からプログラム受領要求(又は応答)が有れば(S105、YES)、動作モード切替制御手段124aにより、間欠通信を連続通信に切替え、通信時間制限の解除や通信チャネルの一時的な変更などのダウンロード専用通信シーケンスを開始し、取得したプログラムは、これも記憶手段である不揮発メモリ18の更新プログラム保持領域18aへ格納する(S107)。
Next, update program management information to be added to the synchronization signal is created by the synchronization signal reference and transmission means 122a (S103), and a synchronization signal transmission process is executed (S104).
Here, if there is a program reception request (or response) from another terminal 10 (S105, YES), the operation mode switching control means 124a switches the intermittent communication to continuous communication, cancels the communication time limit, and sets the communication channel. A download-only communication sequence such as a temporary change is started, and the acquired program is stored in the update program holding area 18a of the nonvolatile memory 18 which is also a storage means (S107).

次に、更新プログラム保持領域18aに格納した更新プログラムを、配送要求のあった端末へ配送(ダウンロード)し(S108)、配送が完了したときは(S108、YES)、更新手段122eにより、自端末の更新プログラム管理情報(ここでは、更新プログラム保有端末台数(保有端末台数/端末総数)情報)を更新する。
その後、例えば、動作モード切替制御手段124aにより、連続動作を間欠動作に、また、通信時間制限の再設定や一時的に変更した通信チャネルを戻し、ダウンロード専用通信シーケンスから通常運用モードに復帰して(S110)、スタートに戻る。
なお、ステップS105で、他の端末10からプログラム受領要求がなく(S105、NO)、所定の応答待ち時間が満了したときは(S106、YES)、スタートに戻る。
Next, the update program stored in the update program holding area 18a is delivered (downloaded) to the terminal that requested the delivery (S108), and when the delivery is completed (S108, YES), the updating means 122e causes the local terminal to Update program management information (in this case, information on the number of update program possessed terminals (number of owned terminals / total number of terminals) information) is updated.
Thereafter, for example, the operation mode switching control unit 124a returns the continuous operation to the intermittent operation, resets the communication time limit or temporarily changes the communication channel, and returns to the normal operation mode from the download dedicated communication sequence. (S110), the process returns to the start.
In step S105, if there is no program reception request from another terminal 10 (S105, NO) and the predetermined response waiting time has expired (S106, YES), the process returns to the start.

次に、更新プログラム受領側端末10のCPU12における、同期信号監視からダウンロード、及び同期補正、同期開始処理までの処理手順について、図4を参照して説明する。
まず、更新プログラム受領側端末(例えば図1の端末10(1))は、同期信号を受信すると(S201)、プログラム配送・管理手段122bは、同期信号に入れ込まれた(又は付加された)送信元端末(図1の端末10(4))の更新プログラム管理情報中の「更新No.」を確認する(S202)。ここで、更新プログラムがあり(つまり、更新No.=0ではなく)、かつ自端末の更新No.が相手端末の更新No.以下であれば(S203、YES)、プログラム管理情報中の「更新プログラムVer」を参照する(S204)。ここで、自端末で保有する更新プログラムのVerとプログラム管理情報中のVerが一致していなければ(S205、NO)、動作モード切替制御手段124aにより、間欠通信を連続通信に切替え、通信時間制限を解除や通信チャネルの一時的な変更などのダウンロード専用通信シーケンスを開始する(S206)。
Next, a processing procedure from synchronization signal monitoring to downloading, synchronization correction, and synchronization start processing in the CPU 12 of the update program receiving side terminal 10 will be described with reference to FIG.
First, when the update program receiving terminal (for example, the terminal 10 (1) in FIG. 1) receives the synchronization signal (S201), the program delivery / management means 122b is inserted (or added) into the synchronization signal. “Update No.” in the update program management information of the transmission source terminal (terminal 10 (4) in FIG. 1) is confirmed (S202). Here, if there is an update program (that is, not update number = 0) and the update number of the own terminal is less than or equal to the update number of the partner terminal (S203, YES), “update” in the program management information Reference is made to “Program Ver” (S204). Here, if the Ver of the update program held in the terminal does not match the Ver in the program management information (NO in S205), the operation mode switching control unit 124a switches the intermittent communication to the continuous communication and limits the communication time. A download-dedicated communication sequence such as canceling or temporarily changing the communication channel is started (S206).

ここで、更新プログラムのダウンロード(配送)が完了すれば(S207、YES)、再び動作モード切替制御手段124aにより、連続動作を間欠動作に、また、通信時間制限の再設定や一時的に変更した通信チャネルを戻し、ダウンロード専用通信シーケンスから通常運用モードに復帰する(S208)。また、それと共に、更新手段122eにより、配送元端末の更新プログラム管理情報により自己の更新プログラム管理情報を更新する。即ち、更新No.の複写、保有更新プログラムVerの複写、更新プログラム保有端末台数(保有端末台数/端末総数)の複写後に、更新プログラム保有端末台数を加算、後述の更新適用調整カウンタのカウント値の複写を行う(S209)。   Here, when downloading (delivery) of the update program is completed (S207, YES), the operation mode switching control unit 124a again changes the continuous operation to the intermittent operation, and resets or temporarily changes the communication time limit. The communication channel is returned and the normal operation mode is restored from the download-only communication sequence (S208). At the same time, the update unit 122e updates its own update program management information with the update program management information of the delivery source terminal. That is, after copying the update number, copying the owned update program Ver, copying the number of update program holding terminals (number of owned terminals / total number of terminals), the number of update program holding terminals is added, and the count value of the update application adjustment counter described later Copying is performed (S209).

次に、プログラム管理情報中の「更新適用調整カウント」を参照して(S210)、補正用カウンタによるカウント動作が開始済みでなければ(S211、NO)、更新プログラム管理情報中の「更新プログラム保有端末台数(保有端末台数/端末総数)」を参照し(S212)、全端末への更新プログラムがダウンロード済みであれば(S213、YES)、更新適用カウント手段122cは、予め定めた設定値に基づき更新カウントを開始する(S214)。なお、この場合、カウント値を初期値から変更(例えば100から99に変更)する。設定値であるカウント値の更新は、適用タイミング調整手段122dにより、一定周期ごとに行う。カウント値は初期値以外であれば更新する。その後、スタートに戻る。   Next, referring to “update application adjustment count” in the program management information (S210), if the count operation by the correction counter has not started (S211, NO), “update program possession” in the update program management information The number of terminals (the number of owned terminals / the total number of terminals) is referred to (S212), and if the update program has been downloaded to all terminals (S213, YES), the update application counting means 122c is based on a predetermined set value. The update count is started (S214). In this case, the count value is changed from the initial value (for example, changed from 100 to 99). The count value that is the set value is updated at regular intervals by the application timing adjusting unit 122d. If the count value is other than the initial value, it is updated. Then return to the start.

ステップS203において、自端末の更新Noが相手端末の更新No.以下でなければ(S203、NO)、通常運用の処理を継続して(S215)、スタートに戻る。また、ステップS205において、自端末が保有する更新プログラムVerと一致するときは(S205、YES)、相手端末と自端末のプログラム管理情報を比較し、優先度に従いプログラム管理情報を更新する。この場合、(d)更新プログラム保有端末台数(保有端末台数/端末総数)情報を比較し、更新プログラム保有端末台数の値が大きい方を、また、適用タイミング調整手段122dは、更新適用調整カウンタのカウント値同士を比較してカウントがより進んでいる方を、それぞれ選択して補正つまり更新する。なお、配送元端末でもその適用タイミング調整手段122dが同様の補正を行う(S216)。ステップS216における更新後は、ステップS210に進む。
ステップS213で、全端末へのダウンロード済みでなくとも(S213、NO)、外部管理端末40の配送済み更新プログラムの強制適用開始判定手段412の判定結果に基づく更新カウント開始要求が有れば(S217、YES)、ステップS214に進み、開始要求がなければ(S217、NO)、スタートに戻り最初から処理をやり直す。
In step S203, if the update number of the own terminal is not less than or equal to the update number of the partner terminal (S203, NO), the normal operation processing is continued (S215), and the process returns to the start. In step S205, when it matches the update program Ver held by the own terminal (S205, YES), the program management information of the partner terminal and the own terminal is compared, and the program management information is updated according to the priority. In this case, (d) information on the number of update program possession terminals (number of possession terminals / total number of terminals) is compared, and the value of the update program possession terminal number is larger, and the application timing adjustment means 122d The count values are compared with each other and the one with the more advanced count is selected and corrected, that is, updated. Note that the application timing adjustment unit 122d performs the same correction at the delivery source terminal (S216). After the update in step S216, the process proceeds to step S210.
If it is determined in step S213 that there has been an update count start request based on the determination result of the forced application start determination means 412 of the delivered update program of the external management terminal 40 even if it has not been downloaded to all terminals (S213, NO) (S217). , YES), the process proceeds to step S214. If there is no start request (S217, NO), the process returns to the start and starts again.

図5は、端末10における更新プログラムの適用の手順を示すフロー図である。
端末10における同期監視周期が到来したときは(S301、YES)、更新適用カウント手段122cのカウント値をチェックし、カウント値が初期値でなければ(S302、NO)、プログラム管理情報中の「更新適用調整カウント値」を更新する(S303)。カウント値が満了であれば(S304、YES)、プログラム管理情報を変更し、それを不揮発メモリ18のダウンロード管理情報退避領域18bに退避する処理を行う(S305)。なお、ここで、変更対象となる情報は、「適用済みプログラムVer」であるが、変更していない他のプログラム管理情報も同様に退避する。その後、保有更新プログラムを自端末に適用する処理を行い(S306)、この処理が終了した後、不揮発メモリからプログラム管理情報及び保有更新プログラムを復帰する処理を行い(S307)、スタートに戻る。
なお、ステップS302でカウント値が初期値である場合(S302、YES)、ステップS304でカウント値が満了していないとき(S304、NO)は、そのままスタートに戻り、最初から処理をやり直す。
FIG. 5 is a flowchart showing a procedure for applying the update program in the terminal 10.
When the synchronization monitoring period in the terminal 10 has arrived (S301, YES), the count value of the update application count means 122c is checked. If the count value is not the initial value (S302, NO), “update” in the program management information is performed. The “application adjustment count value” is updated (S303). If the count value has expired (S304, YES), the program management information is changed and a process of saving it in the download management information saving area 18b of the nonvolatile memory 18 is performed (S305). Here, the information to be changed is “applied program Ver”, but other program management information that has not been changed is similarly saved. Thereafter, a process of applying the retained update program to the own terminal is performed (S306). After this process is completed, a process of returning the program management information and the retained update program from the nonvolatile memory is performed (S307), and the process returns to the start.
If the count value is the initial value in step S302 (S302, YES), and if the count value has not expired in step S304 (S304, NO), the process returns to the start and starts again from the beginning.

図6は、図1に示すように、外部管理端末40から更新プログラムをシステム内の端末10(4)に転送を開始してから転送処理を完了するまでの処理の手順を示すフロー図である。
まず、外部管理端末40に接続された端末10(4)に更新プログラムを転送する(S401)。次に、外部管理端末40の更新プログラム配送状況監視手段411は、外部管理端末40に接続された端末10(4)の更新プログラム管理情報を取得して、その「更新プログラム保有端末台数/端末総数」を監視する。この監視は周期的に継続して行う(S402)。次に、マルチホップネットワークシステム内の全ての端末10(1)〜10(4)に対する更新プログラムの書き換えが完了したか否か判別し(S403)、完了していなければ(S403、NO)、配送済み更新プログラムの強制適用開始判定手段412は、予め定めた更新完了予測時間をオーバーしたか否かを判別する(S404)。ここで、オーバーしていれば(S404、YES)、外部管理端末40に接続された端末10(4)に更新カウント開始を自動実行させるか、または、ユーザへのアラーム表示で操作をさせる処理、つまり、外部管理端末40に接続された端末10(4)において「更新カウント開始要求」をユーザに実施させる処理を行い(S405)、この処理を終了する。なお、ステップS403で全数書き換え完了していれば(S403、YES)、処理を終了する。また、ステップS404で更新完了予測時間をオーバーしていなければステップS402に戻る。
FIG. 6 is a flowchart showing a processing procedure from when the update program is transferred from the external management terminal 40 to the terminal 10 (4) in the system until the transfer processing is completed, as shown in FIG. .
First, the update program is transferred to the terminal 10 (4) connected to the external management terminal 40 (S401). Next, the update program delivery status monitoring means 411 of the external management terminal 40 acquires the update program management information of the terminal 10 (4) connected to the external management terminal 40, and the “update program holding terminal number / total number of terminals” is acquired. Is monitored. This monitoring is continuously performed periodically (S402). Next, it is determined whether or not rewriting of the update program for all the terminals 10 (1) to 10 (4) in the multi-hop network system is completed (S403), and if not completed (S403, NO), delivery is performed. The forcible application start determining unit 412 for the already-updated program determines whether or not a predetermined update completion prediction time has been exceeded (S404). Here, if it is over (S404, YES), the terminal 10 (4) connected to the external management terminal 40 is automatically executed to start the update count, or is operated with an alarm display to the user, That is, the terminal 10 (4) connected to the external management terminal 40 performs a process for causing the user to execute an “update count start request” (S405), and ends this process. Note that if the entire number has been rewritten in step S403 (S403, YES), the process ends. If the update completion prediction time has not been exceeded in step S404, the process returns to step S402.

以上では、各端末の処理を個別に説明したが、次に、マルチホップネットワークシステムにおいて連携して行われる各端末のプログラム更新処理について説明する。
図7(図7A、B)は複数の端末で構成されるマルチホップネットワークシステムにおいて、プログラム更新処理を行う場合の処理手順を説明するシーケンス図である。なお、ここでは、便宜上無線端末は3台(端末10(1)〜10(3))であるとして説明する。
即ち、図7(図7A、B)に示すネットワークシステムは、マルチホップネットワークで端末10(1)〜10(3)で構成されており、更新プログラムはVer1.0をVer0.0にダウングレードするものとする。また、更新適用調整カウント値は、仮に100(監視周期)とする。また、通常通信時のチャネルは5とし、ダウンロードに適した専用チャネルは13とする。
In the above, the processing of each terminal has been described individually. Next, the program update processing of each terminal performed in cooperation in the multihop network system will be described.
FIG. 7 (FIGS. 7A and 7B) is a sequence diagram for explaining a processing procedure when a program update process is performed in a multi-hop network system including a plurality of terminals. Here, for convenience, it is assumed that there are three wireless terminals (terminals 10 (1) to 10 (3)).
That is, the network system shown in FIG. 7 (FIGS. 7A and 7B) is a multi-hop network and is composed of terminals 10 (1) to 10 (3), and the update program downgrades Ver1.0 to Ver0.0. Shall. The update application adjustment count value is assumed to be 100 (monitoring cycle). In addition, the channel for normal communication is 5 and the dedicated channel suitable for downloading is 13.

図7(図7A、B)においては、まず、端末10(1)〜10(3)の更新プログラム管理情報はすべて一致している、つまり、(a)プログラムの更新No.情報;1、(b)適用済みプログラムVer情報はVer1.0、(c)保有プログラムVer情報もVer1.0、(d)更新プログラム保有端末台数(保有端末台数/端末総数)情報はいずれも3/3、(e)更新適用調整カウント情報は、いずれも初期値(100)である。
この状態において、端末10(3)に更新プログラム(Ver0.0)が転送されると(S501)、端末10(3)の更新プログラム管理情報のうち、プログラムの更新No.情報;2に、保有プログラムVer情報はVer0.0に、更新プログラム保有端末台数(保有端末台数/端末総数)情報は、3台中1台だけに更新プログラムが転送されたため、1/3に変更される(S502)。なお、適用済みプログラムVer情報(Ver1.0)は変更されない。
In FIG. 7 (FIGS. 7A and 7B), the update program management information of the terminals 10 (1) to 10 (3) are all identical, that is, (a) Program update number information; b) Applied program Ver information is Ver1.0, (c) Owned program Ver information is Ver1.0, (d) Update program possession terminal number (number of owned terminals / total number of terminals) information is 3/3, (e ) The update application adjustment count information is all the initial value (100).
In this state, when the update program (Ver0.0) is transferred to the terminal 10 (3) (S501), the update number management information of the program 10 in the update program management information of the terminal 10 (3); The program Ver information is changed to Ver0.0, and the update program possession terminal number (number of owned terminals / total number of terminals) information is changed to 1/3 because the update program is transferred to only one of the three (S502). The applied program Ver information (Ver1.0) is not changed.

次に、端末10(1)が同期信号を発信するタイミングになると、端末10(1)から同期信号がブロードキャストされる。この同期信号を受信した端末10(3)は、端末10(1)のプログラム更新No.情報;1をチェックし、それが自端末のもの(プログラム更新No.情報;2)よりも少ないつまり自端末のプログラムよりも前のもの(古いもの)であるので無視する(S503)。他方、端末10(2)も同様に端末10(1)の同期信号を受信するが、更新プログラムはないので、通常動作をそのまま継続する(S504)。   Next, when it is time for the terminal 10 (1) to transmit the synchronization signal, the synchronization signal is broadcast from the terminal 10 (1). The terminal 10 (3) that has received this synchronization signal checks the program update No. information; 1 of the terminal 10 (1), which is less than that of its own terminal (program update No. information; 2). Since it is earlier (older) than the terminal program, it is ignored (S503). On the other hand, the terminal 10 (2) similarly receives the synchronization signal of the terminal 10 (1), but there is no update program, so normal operation is continued as it is (S504).

次に、端末10(3)が同期信号発信タイミングになると、同期信号をブロードキャストする(S505)。この同期信号を受信した端末10(1)及び端末10(2)は端末10(3)のプログラム更新No.情報;2をチェックし、いずれも、自端末のもの(プログラム更新No.情報;1)よりも大、つまり後のもの(新しいもの)であるので、プログラムの更新が必要であることを認識し、端末10(3)に対してプログラム受領要求を返信する(S506)。
端末10(3)は、プログラム受領要求を受信すると、最初に受信した端末、ここでは端末10(1)に対して確認信号を送信し、それと共に自端末をダウンロードモードに切り替える(S507)。他方、端末10(1)は、端末10(3)からの確認信号を受信すると自端末をダウンロードモードに切り替える(S508)。
Next, when the terminal 10 (3) reaches the synchronization signal transmission timing, the synchronization signal is broadcast (S505). The terminal 10 (1) and the terminal 10 (2) that have received this synchronization signal check the program update No. information; 2 of the terminal 10 (3), both of which are their own terminals (program update No. information; 1 ), That is, the later (new), it is recognized that the program needs to be updated, and a program reception request is returned to the terminal 10 (3) (S506).
Upon receiving the program reception request, the terminal 10 (3) transmits a confirmation signal to the terminal that has received it first, here the terminal 10 (1), and switches its own terminal to the download mode (S507). On the other hand, when the terminal 10 (1) receives the confirmation signal from the terminal 10 (3), the terminal 10 (1) switches its own terminal to the download mode (S508).

続いて、端末10(3)から端末10(1)に対して更新プログラムを受け渡す(S509)。端末10(1)は更新プログラムを受領してダウンロードが完了すると、完了確認信号を端末10(3)へ送信し、更新プログラム管理情報を更新し、さらに、通常モードへ復帰する(S510)。
端末10(3)は、端末10(1)からの完了確認信号を受信すると自端末の更新プログラム管理情報を変更する(つまり、保有端末台数情報を1/3から2/3に変更する)(S511)。
Subsequently, the update program is delivered from the terminal 10 (3) to the terminal 10 (1) (S509). When the terminal 10 (1) receives the update program and the download is completed, the terminal 10 (1) transmits a completion confirmation signal to the terminal 10 (3), updates the update program management information, and returns to the normal mode (S510).
When the terminal 10 (3) receives the completion confirmation signal from the terminal 10 (1), the terminal 10 (3) changes its own update program management information (that is, changes the owned terminal number information from 1/3 to 2/3) ( S511).

(以下は図7B)
続いて、端末10(1)の同期信号発信タイミングになると同期信号をブロードキャストする(S512)。
同期信号を受信した端末10(3)は、プログラム更新No.情報;2が自身のプログラム更新No. 情報;2と同じであるのでダウンロードは要求しないが、保有端末台数情報及び更新適用調整カウント情報を参照して、自端末のそれと差異があれば補正する(なお、この場合、保有端末台数情報は2/2、更新適用調整カウント情報は初期値で一致している)。
他方、同期信号を受信した端末10(2)は、同期信号に含まれる更新プログラム管理情報のプログラム更新No.情報;2をチェックし、自端末のプログラム更新No.情報;1よりも後のもの(新しいもの)であることから、プログラムの更新が必要であることを認識し、端末10(1)に対してプログラム受領要求を送信する(S513)。
端末10(1)は、プログラム受領要求を受信すると、端末10(2)に対して確認信号を送信して、自端末をダウンロードモードに切り替える(S514)。
端末10(2)は、端末10(1)からの確認信号を受信すると自端末をダウンロードモードに切り替える(S515)。
(The following is FIG. 7B)
Subsequently, when the synchronization signal transmission timing of the terminal 10 (1) is reached, the synchronization signal is broadcast (S512).
The terminal 10 (3) that has received the synchronization signal is not required to download the program update No. information; 2 is the same as its own program update No. information; If there is a difference from that of the own terminal, it is corrected (in this case, the number of owned terminals is 2/2, and the update application adjustment count information is the same as the initial value).
On the other hand, the terminal 10 (2) that has received the synchronization signal checks the program update No. information of the update program management information included in the synchronization signal; 2 and the program update No. information of its own terminal; Since it is (new), it is recognized that the program needs to be updated, and a program reception request is transmitted to the terminal 10 (1) (S513).
Upon receiving the program reception request, the terminal 10 (1) transmits a confirmation signal to the terminal 10 (2) and switches its own terminal to the download mode (S514).
Upon receiving the confirmation signal from the terminal 10 (1), the terminal 10 (2) switches its own terminal to the download mode (S515).

続いて、端末10(1)から端末10(2)に更新プログラムを受け渡す(S516)。
端末10(2)は、更新プログラムを受領してダウンロードが完了すると、完了確認信号を端末10(1)へ送信し、更新プログラム管理情報を更新し、さらに、通常モードへ復帰する(S517)。
端末10(1)は、端末10(2)の完了確認信号を受信すると、次に自端末の更新プログラム管理情報を変更する。つまり、保有端末台数情報を2/3から3/3に変更する。また、それと共に、通常モードへ復帰し、保有端末台数情報が満了なので、調整カウントを開始する(S518)。
Subsequently, the update program is delivered from the terminal 10 (1) to the terminal 10 (2) (S516).
When the terminal 10 (2) receives the update program and download is completed, the terminal 10 (2) transmits a completion confirmation signal to the terminal 10 (1), updates the update program management information, and returns to the normal mode (S517).
When the terminal 10 (1) receives the completion confirmation signal from the terminal 10 (2), the terminal 10 (1) next changes its own update program management information. That is, the owned terminal number information is changed from 2/3 to 3/3. At the same time, the process returns to the normal mode, and since the owned terminal number information is expired, the adjustment count is started (S518).

続いて、端末10(2)の同期信号発信タイミングになると同期信号をブロードキャストする(S519)。
同期信号を受信した端末10(1)は、プログラム更新No. 情報;2が自身のプログラム更新No. 情報;2と同じであるのでダウンロードは要求しないが、保有端末台数情報及び更新適用調整カウント情報を参照して、自端末のそれと差異があれば補正する(S520)(なお、この場合、保有端末台数情報は3/3、更新適用調整カウント情報は初期値で一致している)。
Subsequently, when the synchronization signal transmission timing of the terminal 10 (2) comes, the synchronization signal is broadcast (S519).
The terminal 10 (1) that has received the synchronization signal does not request download because the program update No. information; 2 is the same as its own program update No. information; 2, but the number of owned terminals and the update application adjustment count information If there is a difference from that of the own terminal, correction is made (S520) (in this case, the number of owned terminals is 3/3, and the update application adjustment count information is the same as the initial value).

他方、同期信号を受信した端末10(3)は、プログラム更新No.情報が自端末のそれと同じであるのでダウンロードは要求しないが、端末10(2)の保有端末台数情報3/3と、調整カウント99は自端末の保有端末台数情報2/3と、調整カウント100と相違し、しかもいずれも自端末よりも進んでいるので、自端末の保有端末台数情報と調整カウントを受信した端末10(2)に合わせて変更する。つまり、保有端末台数情報を2/3から3/3に変更し、かつ調整カウントは初期値(100)から99に変更(カウントダウン)する(S521)。   On the other hand, the terminal 10 (3) that has received the synchronization signal does not request download because the program update No. information is the same as that of its own terminal, but the terminal 10 (2) possessed terminal number information 3/3 and adjustment The count 99 is different from the owned terminal number information 2/3 of the own terminal and the adjustment count 100, and both are more advanced than the own terminal, so the terminal 10 ( Change according to 2). That is, the owned terminal number information is changed from 2/3 to 3/3, and the adjustment count is changed (counted down) from the initial value (100) to 99 (S521).

このように、各端末は他端末からの同期信号を受信する度に、それに含まれるプログラム更新No.情報から更新プログラム受領の要否を判断し、かつ保有端末台数情報、調整カウント値を最も進んだものに書き換える。
したがって、更新プログラムをダウンロードした後、その更新プログラムへの切り替えを全端末でほぼ同時に行うことができる。そのため、同じシステム内において、新旧プログラムが混在する可能性を事実上なくすことができる。
In this way, each time each terminal receives a synchronization signal from another terminal, it determines whether or not it is necessary to receive the update program from the program update number information included therein, and the terminal terminal number information and the adjustment count value are the most advanced. Rewrite it to something.
Therefore, after the update program is downloaded, switching to the update program can be performed almost simultaneously on all terminals. Therefore, the possibility of mixing old and new programs in the same system can be virtually eliminated.

次に、システム内に新規の端末を追加(増設)した場合の更新プログラムのダウンロード手順を、図8を参照して説明する。
ここでは、端末10(3)と端末10(1)で構成されるシステムに新規端末10(2)を追加する場合を例に採って説明する。
端末10(2)をシステムに増設した後、端末10(2)の同期信号発信タイミングになると、同期信号をブロードキャストする(S601)。これを受信した端末10(1)、10(3)は、いずれも端末10(2)のプログラム更新No.情報が0であるので、更新プログラムを保持しないと認識し、この同期信号に対しては反応しない(無視する)。次に、端末10(1)が同期信号発信タイミングになると、同期信号をブロードキャストする(S602)。
Next, an update program download procedure when a new terminal is added (added) in the system will be described with reference to FIG.
Here, a case where a new terminal 10 (2) is added to a system composed of the terminal 10 (3) and the terminal 10 (1) will be described as an example.
After the terminal 10 (2) is added to the system, the synchronization signal is broadcast when the synchronization signal transmission timing of the terminal 10 (2) comes (S601). The terminals 10 (1) and 10 (3) that have received this recognize that the program update No. information of the terminal 10 (2) is 0, so that the terminal 10 (2) does not hold the update program. Does not respond (ignore). Next, when the terminal 10 (1) reaches the synchronization signal transmission timing, the synchronization signal is broadcast (S602).

これを受信した端末10(3)は、同期信号に付加された更新プログラム管理情報が自端末のそれと同じであるので無視する。しかし、端末10(2)は、プログラム更新No情報.;Fからプログラム更新が必要であることを認識して、端末10(1)に対してプログラム受領要求を送信する(S603)。端末10(1)は、端末10(2)のプログラム受領要求に対して要求確認を返信すると共に、端末10(2)は、自端末をダウンロードモードに切り替える(S604)。端末10(1)は、端末10(2)からの要求確認を受信すると、保有端末台数情報を2/2から2/3に変更し、自端末をダウンロードモードに切り替える(S605)。続いて、端末10(1)は、更新プログラムを端末10(2)に受け渡す(S606)。端末10(2)は、更新プログラムを受け取ると、更新手段122eにより、同時に送信される端末10(1)の更新プログラム管理情報に基づき、自端末の更新プログラム管理情報を変更する。この場合、保有端末台数情報は3/3で満了であるので、直ちに更新プログラムの適用処理を行う。また、同時に、受領確認を端末10(1)に送信し、モードを通常モードに戻す(S607)。   The terminal 10 (3) receiving this is ignored because the update program management information added to the synchronization signal is the same as that of its own terminal. However, the terminal 10 (2) recognizes that a program update is necessary from the program update No. information F; and transmits a program reception request to the terminal 10 (1) (S603). The terminal 10 (1) returns a request confirmation in response to the program reception request of the terminal 10 (2), and the terminal 10 (2) switches its own terminal to the download mode (S604). Upon receiving the request confirmation from the terminal 10 (2), the terminal 10 (1) changes the owned terminal number information from 2/2 to 2/3, and switches its own terminal to the download mode (S605). Subsequently, the terminal 10 (1) delivers the update program to the terminal 10 (2) (S606). When the terminal 10 (2) receives the update program, the update means 122e changes the update program management information of the terminal 10 (2) based on the update program management information of the terminal 10 (1) transmitted at the same time. In this case, since the information on the number of owned terminals is 3/3, the update program application processing is immediately performed. At the same time, a receipt confirmation is transmitted to the terminal 10 (1), and the mode is returned to the normal mode (S607).

端末10(1)は、端末10(2)から送信される受領確認信号に含まれる端末10(2)のプログラム管理情報にしたがって、更新手段122eにより保有端末台数情報を2/3から3/3に変更し、モードを通常モードに戻す(S608)。続いて、端末10(1)の同期信号発信タイミングにおいて、同期信号をブロードキャストする(S609)。端末10(3)は、端末10(1)の更新プログラム管理情報中のプログラム更新No.情報が自端末のものと同じであるので、ダウンロード要求は行わないが、保有端末台数情報に差異があるので、その保有端末台数情報を2/2から3/3に変更する(S609)。
なお、端末10(2)は、いまやプログラム更新No.情報は自端末と同様であるので、ダウンロード要求は行わないが、保有端末台数情報や調整カウント値については自身のものに対して変更があれば変更する。
システム内に新規の端末を追加(増設)した場合は以上の手順で更新プログラムのダウンロード等が行われる。
The terminal 10 (1) updates the owned terminal number information from 2/3 to 3/3 by the updating means 122e according to the program management information of the terminal 10 (2) included in the receipt confirmation signal transmitted from the terminal 10 (2). And the mode is returned to the normal mode (S608). Subsequently, the synchronization signal is broadcast at the synchronization signal transmission timing of the terminal 10 (1) (S609). The terminal 10 (3) does not make a download request because the program update No. information in the update program management information of the terminal 10 (1) is the same as that of its own terminal, but there is a difference in the number of owned terminals. Therefore, the owned terminal number information is changed from 2/2 to 3/3 (S609).
Since the terminal 10 (2) has the same program update number information as that of its own terminal, no download request is made, but the number of owned terminals and the adjustment count value may be changed. Change.
When a new terminal is added (added) in the system, the update program is downloaded by the above procedure.

以上、本実施形態について説明したが、次に、外部管理端末40を用いて、更新適用時期を調整することもできる。
次にその点について説明する。
再び図1において、外部管理端末40は、端末のダウンロード管理情報をそれに接続した端末10(4)から、例えば定期的に取得する。その更新プログラム管理情報から更新プログラムが全体の端末に行き渡る想定時間(その想定時間は、例えば、システム内の無線端末数や同期信号発信間隔などを基にシミュレーションにより算出する)を超えても更新プログラムが行き渡らないと判定したときは、自動で或いはユーザへのアラーム通知による手動操作を促す。これにより、端末10(4)の更新プログラム管理情報中の「更新カウンタ」を強制的にカウント開始させることができる。
Although the present embodiment has been described above, the update application time can also be adjusted using the external management terminal 40.
Next, this point will be described.
In FIG. 1 again, the external management terminal 40 acquires the download management information of the terminal from the terminal 10 (4) connected thereto, for example, periodically. An update program that exceeds the estimated time that the update program reaches all terminals from the update program management information (the estimated time is calculated by simulation based on the number of wireless terminals in the system, the synchronization signal transmission interval, etc.) When it is determined that the user does not spread, manual operation is prompted automatically or by alarm notification to the user. As a result, the “update counter” in the update program management information of the terminal 10 (4) can be forcibly started.

また、システム内の全ての端末に更新プログラムが行き渡る(配送が完了する)までの時間をサンプリングすることで、ネットワーク内での更新プログラムの配送完了までの時間を認識することができ、更新プログラムが行き渡るまでの想定時間の予測精度を上げることができるなど、効果的な管理ができる。   Also, by sampling the time until the update program reaches all terminals in the system (delivery is completed), it is possible to recognize the time until the update program is delivered within the network. Effective management is possible, for example, the accuracy of predicting the estimated time to reach the destination can be improved.

次に、以上で本発明のネットワークシステムの他の適用例について説明する。
無線による遠隔監視システムでは、無線によるネットワーク機能を既に有しており、ビーコン等の同期手段も有しているため、上述の更新プログラムの適用手段及び方法を容易に実施することができるが、この場合は、図1に示した外部管理端末40の機能を管理センタ30に持たせたものである。
Next, another application example of the network system of the present invention will be described.
Since the wireless remote monitoring system already has a wireless network function and also has a synchronization means such as a beacon, the above-described update program applying means and method can be easily implemented. In this case, the management center 30 has the function of the external management terminal 40 shown in FIG.

図9は、本発明のマルチホップネットワークシステムの他の実施形態を示す図である。
即ち、本実施形態においては、一般家庭における電気、ガス、水道などの使用量(使用料金)の遠隔検針システムにおいて、端末の1台(例えば親機がある場合は親機)10(1)に対して、管理センタ30から更新プログラムを配送する。
更新プログラムが配送された端末10(1)は、端末同士の無線ネットワークにおける既に説明した手順にしたがって、他の端末10(2)、10(3)、10(4)に更新プログラムを配送する。ここで、更新プログラムを受領した端末10(4)はさらに端末10(5)に、次に、端末10(5)は端末10(6)に更新プログラムを配送する。
例えば、管理センタ30から各端末のプログラムのバージョン(Ver)アップを同時期に行う。或いは、端末10(10(1)〜10(6))が、料金メータから料金情報を収集する時刻設定を同時期に一斉に変更することなどが可能になる。
FIG. 9 is a diagram showing another embodiment of the multi-hop network system of the present invention.
That is, in the present embodiment, in a remote meter-measuring system for usage (charge) of electricity, gas, water, etc. in a general household, one terminal (for example, a parent device if there is a parent device) 10 (1) On the other hand, the update program is delivered from the management center 30.
The terminal 10 (1) to which the update program has been delivered delivers the update program to the other terminals 10 (2), 10 (3), and 10 (4) according to the procedure already described in the wireless network between the terminals. Here, the terminal 10 (4) that received the update program further delivers the update program to the terminal 10 (5), and then the terminal 10 (5) delivers the update program to the terminal 10 (6).
For example, the version (Ver) of the program of each terminal is updated from the management center 30 at the same time. Alternatively, it becomes possible for the terminals 10 (10 (1) to 10 (6)) to simultaneously change the time settings for collecting fee information from the fee meter at the same time.

以上、本実施形態について説明したが、本実施形態によれば以下のような作用効果が得られる。即ち、
(1)マルチホップ通信方式によるダウンロード時間が従来の更新プログラムのダウンロード時間よりも短縮できる。また、ダウンロードを自動で行うことができる。
(2)プログラムの更新対象となる複数の端末に対して、同時期に更新可能であるため新旧のプログラムが同一システム内で混在することによる悪影響の虞がない。
(3)無線状況の悪化等で、一時的にプログラムの更新できない端末が存在する場合であっても、端末が発信する同期信号を利用するため、無線通信が可能になった段階で、プログラムの更新を行うことができる。
(4)全ての端末の更新の進捗状況を更新元(外部管理端末、管理センタ)で確認できるため、例えば一定時間経過した段階で、システムを構成する全端末に更新プログラムが行き渡らない場合でも、強制的に更新プログラムの適用を開始することができる。そのため、一部の端末の不具合などで他の端末の更新プログラムの適用が遅延することが防止できる。
Although the present embodiment has been described above, the following operational effects can be obtained according to the present embodiment. That is,
(1) The download time by the multi-hop communication method can be shortened compared to the download time of the conventional update program. In addition, downloading can be performed automatically.
(2) Since a plurality of terminals to be updated can be updated at the same time, there is no risk of adverse effects caused by mixing old and new programs in the same system.
(3) Even if there is a terminal that cannot temporarily update the program due to deterioration of the wireless situation, etc., since the synchronization signal transmitted by the terminal is used, when the wireless communication becomes possible, Updates can be made.
(4) Since the update progress of all terminals can be confirmed by the update source (external management terminal, management center), for example, even when the update program does not reach all terminals constituting the system after a certain period of time has passed, The application of the update program can be forcibly started. Therefore, it is possible to prevent the application of the update program of other terminals from being delayed due to a malfunction of some terminals.

10・・・端末、12・・・CPU、122a・・・同期信号参照及び送信手段、122b・・・プログラム配送・管理手段、122c・・・更新適用カウント手段、122d・・・適用タイミング調整手段、14・・無線モジュール、16・・・RAM、18・・・不揮発メモリ、20・・・料金メータ、30・・・管理センタ、40・・・外部管理端末、41・・・CPU、42・・・通信IF部、43・・・RAM、44・・・ユーザIF部。   DESCRIPTION OF SYMBOLS 10 ... Terminal, 12 ... CPU, 122a ... Synchronization signal reference and transmission means, 122b ... Program delivery / management means, 122c ... Update application count means, 122d ... Application timing adjustment means 14, wireless module, 16 ... RAM, 18 ... nonvolatile memory, 20 ... fee meter, 30 ... management center, 40 ... external management terminal, 41 ... CPU, 42. ..Communication IF unit, 43... RAM, 44.

Claims (7)

マルチホップ通信方式を用いて通信を行うネットワークシステムを構成する無線端末装置であって、
前記無線端末装置は、自無線端末装置が保持するプログラムに関するプログラム管理情報を所定時間毎に互いに送受信する通信手段と、
受信したプログラム管理情報に基づき、自無線端末装置のプログラム管理情報を所定の更新優先度に従って更新する更新手段と、
プログラム管理情報に基づき、更新プログラムの配送の要否を判断し、更新プログラムの配送要の判断に基づき他無線端末装置から当該更新プログラムを受領し、又は更新プログラムの配送要求に基づき他無線端末装置に当該更新プログラムを配送するプログラム配送・管理手段と、
全ての無線端末装置に対する更新プログラムの配送が完了したとき、当該更新プログラムの自無線端末装置における適用タイミングを調整する適用タイミング調整手段と、を有し、
前記適用タイミング調整手段は、前記プログラム管理情報に含まれる他の無線端末装置の適用タイミング情報のうち、自無線端末装置の適用タイミング情報よりも早い適用タイミング情報に合わせて自無線端末装置の適用タイミング情報を調整し、前記ネットワークシステム内の各無線端末装置が同時期に更新プログラムの適用を行うようにすることを特徴とする無線端末装置。
A wireless terminal device constituting a network system that performs communication using a multi-hop communication method,
The wireless terminal device includes a communication unit that transmits and receives program management information related to a program held by the wireless terminal device to each other at predetermined time intervals;
Based on the received program management information, update means for updating the program management information of the own wireless terminal device according to a predetermined update priority,
Based on the program management information, it is determined whether or not delivery of the update program is required, the update program is received from another wireless terminal device based on the determination of whether the update program is required to be delivered, or the other wireless terminal device is received based on the update program delivery request. A program delivery / management means for delivering the update program to
Application timing adjustment means for adjusting the application timing of the update program in its own wireless terminal device when delivery of the update program to all wireless terminal devices is completed,
The application timing adjusting means applies the application timing of the own radio terminal device in accordance with the application timing information earlier than the application timing information of the own radio terminal device among the application timing information of other radio terminal devices included in the program management information. A wireless terminal device that adjusts information so that each wireless terminal device in the network system applies an update program at the same time.
請求項1に記載された無線端末装置において、
前記プログラム管理情報は、前記各端末が発信する同期信号に付加して発信されることを特徴とする無線端末装置。
The wireless terminal device according to claim 1,
The program management information is transmitted in addition to a synchronization signal transmitted by each terminal.
請求項1に記載された無線端末装置において、
前記プログラム管理情報は、プログラム同士の優先度を示す保有プログラム情報を含み、前記プログラム配送・管理手段は、前記保有プログラム情報の優先度に基づき更新プログラムの配送の要否を判断することを特徴とする無線端末装置。
The wireless terminal device according to claim 1,
The program management information includes owned program information indicating priority between programs, and the program delivery / management means determines whether update program delivery is necessary based on the priority of the retained program information. A wireless terminal device.
請求項1に記載された無線端末装置において、
前記プログラム管理情報は、更新プログラムの配送済み端末数を表す更新プログラム保有無線端末装置台数情報を含み、
前記適用タイミング調整手段は、更新プログラム保有無線端末装置台数情報に基づき、更新プログラム保有無線端末装置台数が前記ネットワークシステムを構成する無線端末装置台数の総数に達したとき始動するカウント手段の更新プログラム適用までのカウント数を調整することを特徴とする無線端末装置。
The wireless terminal device according to claim 1,
The program management information includes update program possession wireless terminal device number information indicating the number of terminals to which the update program has been delivered,
The application timing adjustment means is based on the update program possession wireless terminal device number information, and the update program application of the counting means that starts when the update program possession wireless terminal device count reaches the total number of wireless terminal devices constituting the network system. A wireless terminal device, wherein the count number is adjusted.
請求項1ないし4のいずれかに記載された無線端末装置において、
前記プログラム配送・管理手段が、更新プログラムの配送要の判断に基づき他無線端末装置から当該更新プログラムを受領し、又は更新プログラムの配送要求に基づき他無線端末装置に当該更新プログラムの配送を行うとき、前記無線端末装置の通信モードを間欠通信モードから連続通信モードに切り替え、かつ、前記無線端末装置の通信時間制限の解除や通信チャネルを一時的に変更する動作モード切替制御手段を有することを特徴とする無線端末装置。
The wireless terminal device according to any one of claims 1 to 4,
When the program delivery / management means receives the update program from another wireless terminal device based on the determination of the necessity of delivery of the update program, or delivers the update program to another wireless terminal device based on the delivery request for the update program And an operation mode switching control means for switching the communication mode of the wireless terminal device from the intermittent communication mode to the continuous communication mode, and releasing the communication time restriction of the wireless terminal device or temporarily changing the communication channel. A wireless terminal device.
請求項1ないし5のいずれかに記載された無線端末装置に、更新プログラムを転送する外部管理端末装置であって、
前記無線端末装置の更新プログラム保有無線端末装置台数情報を監視する更新プログラム配送状況監視手段と、
予め定めた更新完了予定時間を超えて更新プログラムの各無線端末装置に対する配送が完了していないときに、前記無線端末装置に前記適用タイミングを強制設定するか又はユーザに対するアラーム表示を行う、更新プログラム強制適用開始判定手段と、を有することを特徴とする外部管理端末装置。
An external management terminal device that transfers an update program to the wireless terminal device according to claim 1,
Update program delivery status monitoring means for monitoring the number of pieces of wireless terminal device update program possession information of the wireless terminal device;
An update program that forcibly sets the application timing to the wireless terminal device or displays an alarm to the user when delivery of the update program to each wireless terminal device is not completed beyond a predetermined update completion scheduled time An external management terminal device comprising: a forced application start determination unit.
請求項1ないし5のいずれかに記載された無線端末装置で構成され、前記無線端末装置間でマルチホップ通信方式を用いて通信を行うことを特徴とするネットワークシステム。   A network system comprising the wireless terminal device according to claim 1, wherein communication is performed between the wireless terminal devices using a multi-hop communication method.
JP2013239576A 2013-11-20 2013-11-20 Wireless terminal device, external management terminal device, and network system Active JP6119572B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013239576A JP6119572B2 (en) 2013-11-20 2013-11-20 Wireless terminal device, external management terminal device, and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013239576A JP6119572B2 (en) 2013-11-20 2013-11-20 Wireless terminal device, external management terminal device, and network system

Publications (2)

Publication Number Publication Date
JP2015099525A true JP2015099525A (en) 2015-05-28
JP6119572B2 JP6119572B2 (en) 2017-04-26

Family

ID=53376090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013239576A Active JP6119572B2 (en) 2013-11-20 2013-11-20 Wireless terminal device, external management terminal device, and network system

Country Status (1)

Country Link
JP (1) JP6119572B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018036981A (en) * 2016-09-02 2018-03-08 東芝テック株式会社 Communication device and program
JP2019154021A (en) * 2018-02-28 2019-09-12 サイレックス・テクノロジー株式会社 Control device, control method, and program
JP7321337B2 (en) 2018-07-04 2023-08-04 三菱電機株式会社 Air conditioning control system, control program update method, program, and air conditioner

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005536934A (en) * 2002-08-22 2005-12-02 ドコモ コミュニケーションズ ラボラトリーズ ヨーロッパ ゲーエムベーハー Reconfiguration of network nodes in an ad hoc network
JP2006171918A (en) * 2004-12-13 2006-06-29 Internatl Business Mach Corp <Ibm> Data transmission to client and execution control method of update data
JP2010045526A (en) * 2008-08-11 2010-02-25 Brother Ind Ltd Method of updating program of wireless ad-hoc network terminal, and wireless ad-hoc network terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005536934A (en) * 2002-08-22 2005-12-02 ドコモ コミュニケーションズ ラボラトリーズ ヨーロッパ ゲーエムベーハー Reconfiguration of network nodes in an ad hoc network
JP2006171918A (en) * 2004-12-13 2006-06-29 Internatl Business Mach Corp <Ibm> Data transmission to client and execution control method of update data
JP2010045526A (en) * 2008-08-11 2010-02-25 Brother Ind Ltd Method of updating program of wireless ad-hoc network terminal, and wireless ad-hoc network terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018036981A (en) * 2016-09-02 2018-03-08 東芝テック株式会社 Communication device and program
JP2019154021A (en) * 2018-02-28 2019-09-12 サイレックス・テクノロジー株式会社 Control device, control method, and program
JP7321337B2 (en) 2018-07-04 2023-08-04 三菱電機株式会社 Air conditioning control system, control program update method, program, and air conditioner

Also Published As

Publication number Publication date
JP6119572B2 (en) 2017-04-26

Similar Documents

Publication Publication Date Title
US11134223B2 (en) Low-power radio frequency network for a system of cameras
US9692538B2 (en) Latency mitigation
EP2469493A1 (en) Field optimized, configurable wireless fire system
WO2004010338A8 (en) System and method for updating data in remote device
EP2915292A2 (en) Distribution of software updates in wireless multihop networks
CN107005443A (en) Relaying residential gateway between terminal installation and server
JP6119572B2 (en) Wireless terminal device, external management terminal device, and network system
CN103650567A (en) Method for configuring a node
CN107357621B (en) Method for carrying out remote wireless software upgrading on satellite time service equipment
JP5830411B2 (en) Radio management system and transmission management method
JP5766503B2 (en) Wireless management system, wireless terminal device, and transmission management method
EP3076564A1 (en) Wireless relay device, wireless communication system, and wireless relay method
US11949983B2 (en) Transmission and confirmation of camera configuration data and commands through a network
JP5821557B2 (en) Mobile terminal system having application program deletion function
JP2016005172A (en) Mesh radio communication system, radio communication method and radio unit
JP2015176234A (en) Sensor network software delivery system, wireless terminal, software delivery method, and program
JP2010045526A (en) Method of updating program of wireless ad-hoc network terminal, and wireless ad-hoc network terminal
JP2013160521A (en) Method for setting time, communication device, and time setting program
JP2009017114A (en) Software program downloading and updating method for radio terminal station
US20150111554A1 (en) Femto base station apparatus, operation system
JP6509065B2 (en) Wireless communication system and wireless communication device
US20180352405A1 (en) Wireless communication terminal, information processing method and storage medium
KR20170109407A (en) Mobile communication terminal and method for accumulating and using relay mileage
CN107615824B (en) Wireless communication device
JP7287370B2 (en) Electronic device, communication control method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160428

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170224

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170313

R150 Certificate of patent or registration of utility model

Ref document number: 6119572

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150