JP2014013484A - Program update system - Google Patents

Program update system Download PDF

Info

Publication number
JP2014013484A
JP2014013484A JP2012150377A JP2012150377A JP2014013484A JP 2014013484 A JP2014013484 A JP 2014013484A JP 2012150377 A JP2012150377 A JP 2012150377A JP 2012150377 A JP2012150377 A JP 2012150377A JP 2014013484 A JP2014013484 A JP 2014013484A
Authority
JP
Japan
Prior art keywords
program
update
terminal device
group
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.)
Pending
Application number
JP2012150377A
Other languages
Japanese (ja)
Inventor
Junji Suzuki
准二 鈴木
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2012150377A priority Critical patent/JP2014013484A/en
Publication of JP2014013484A publication Critical patent/JP2014013484A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a program update system in which a number of terminal devices can download an update program efficiently.SOLUTION: A plurality of terminal devices are classified into groups. A download request timing is set by using, as a reference, a point of time when a first group terminal device requests a program provision device of an update program, each terminal device of a remaining group sets a request timing of download on the basis of time needed for download of an update program. When, after terminal devices of a previous group is downloaded, a request timing of a next group reaches, a terminal device requests an update program. Each terminal device downloads an update program by shifting a timing for each group.

Description

本発明は、更新プログラムをダウンロードして、プログラムを更新するプログラム更新システムに関する。   The present invention relates to a program update system that downloads an update program and updates the program.

マイコンを内蔵した端末装置は、サーバなどのプログラム提供装置に通信可能に接続され、プログラム提供装置から提供されたプログラムにしたがって所定の処理を実行する。バージョンアップなどによりプログラムが更新されるとき、端末装置は、プログラム提供装置から更新プログラムをダウンロードする。   A terminal device incorporating a microcomputer is communicably connected to a program providing device such as a server, and executes predetermined processing in accordance with a program provided from the program providing device. When the program is updated due to version upgrade or the like, the terminal device downloads the update program from the program providing device.

1つのプログラム提供装置に接続される端末装置が多数ある場合、各端末装置が更新プログラムを一斉にダウンロードすると、プログラム提供装置の負荷が大きくなってしまうとともに、ダウンロードに要する時間も長くなってしまう。   When there are a large number of terminal devices connected to one program providing device, when each terminal device downloads an update program at the same time, the load on the program providing device increases and the time required for downloading also increases.

特許文献1に記載されたダウンロードシステムでは、端末装置がダウンロードする際、ダウンロードが継続中である情報を他の端末装置に同報通信する。他の端末装置は、同報通信を受けると、ダウンロードを要求しない。   In the download system described in Patent Document 1, when a terminal device downloads, information indicating that the download is continuing is broadcast to other terminal devices. Other terminal devices do not request download upon receiving broadcast communication.

特開2007−109149号公報JP 2007-109149 A

端末装置は、更新プログラムをダウンロードするとき、他の端末装置にダウンロードすることを通知する。そして、通知を受けた端末装置が、更新プログラムをダウンロードするとき、他の端末装置に通知しなければならない。多数の端末装置がプログラムを更新する場合、このような通知が順に行われるので、全ての端末装置のダウンロードが完了するのに時間がかかってしまい、効率的でない。   When the terminal device downloads the update program, it notifies the other terminal device that the update program is to be downloaded. Then, when the terminal device that has received the notification downloads the update program, it must notify another terminal device. When a large number of terminal devices update the program, such notifications are performed in order, so that it takes time to complete downloading of all the terminal devices, which is not efficient.

本発明は、上記に鑑み、多数の端末装置が更新プログラムを効率よくダウンロードできるプログラム更新システムの提供を目的とする。   In view of the above, an object of the present invention is to provide a program update system in which a large number of terminal devices can efficiently download an update program.

本発明のプログラム更新システムは、プログラムを提供するプログラム提供装置と、プログラム提供装置と通信可能な複数の端末装置とから構成され、各端末装置は、プログラム提供装置に更新プログラムの提供を要求して、要求に応じたプログラム提供装置は更新プログラムを提供し、各端末装置は更新プログラムをダウンロードして、プログラムを更新する。このとき、複数の端末装置がグループ分けされ、各端末装置は、グループ毎にタイミングをずらして更新プログラムをダウンロードする。   The program update system according to the present invention includes a program providing device that provides a program and a plurality of terminal devices that can communicate with the program providing device. Each terminal device requests the program providing device to provide an update program. The program providing device in response to the request provides an update program, and each terminal device downloads the update program and updates the program. At this time, a plurality of terminal devices are grouped, and each terminal device downloads the update program at different timings for each group.

更新プログラムのダウンロードがグループ数と同じ回数に分けて行われるので、プログラム提供装置が個別に端末装置に対応するのに比べて、プログラム提供装置の負荷を軽減でき、端末装置は他の端末装置に通知しなくてすむ。したがって、更新プログラムのダウンロードを効率よく行うことができる。   Since the update program is downloaded in the same number of times as the number of groups, the load of the program providing device can be reduced compared to the case where the program providing device individually corresponds to the terminal device, and the terminal device can be transferred to other terminal devices. No need to notify. Therefore, the update program can be downloaded efficiently.

先のグループの端末装置が更新プログラムをダウンロードした後、次のグループの端末装置は更新プログラムを要求する。グループ毎のダウンロードが重ならず、通信が輻輳することはない。   After the terminal device of the previous group downloads the update program, the terminal device of the next group requests the update program. Downloads for each group do not overlap and communication is not congested.

最初のグループの端末装置がプログラム提供装置に更新プログラムを要求した時点を基準にして、残りグループの端末装置は更新プログラムのダウンロードに要する時間に基づいて決められたタイミングで順次更新プログラムを要求する。   On the basis of the time point when the first group of terminal devices request the program providing device for the update program, the remaining group of terminal devices sequentially request the update program at a timing determined based on the time required for downloading the update program.

更新プログラムの要求のタイミングは、更新プログラムのデータ量に基づいて決められる。通信時間に変化はないので、データ量がわかればダウンロードに要する時間を算出でき、各グループのダウンロードを要求するタイミングを決めることができる。これによって、端末装置は、無駄な待ち時間もなく、スムーズにダウンロードできる。   The update program request timing is determined based on the data amount of the update program. Since there is no change in communication time, if the amount of data is known, the time required for downloading can be calculated, and the timing for requesting downloading of each group can be determined. As a result, the terminal device can download smoothly without useless waiting time.

端末装置が有する固有情報に基づいて、各端末装置は複数のグループに分けられる。各グループに万遍なく端末装置を振り分けることができる。   Each terminal device is divided into a plurality of groups based on the unique information possessed by the terminal device. Terminal devices can be distributed uniformly to each group.

各端末装置が更新する更新プログラムのデータ量が異なるとき、各端末装置は更新プログラムのデータ量に応じて複数のグループに分けられる。グループ毎のダウンロードに要する時間は異なるが、グループ内の各端末装置のダウンロードに要する時間は同じとなり、全体のダウンロードに要する時間を短縮できる。   When the data amount of the update program updated by each terminal device is different, each terminal device is divided into a plurality of groups according to the data amount of the update program. Although the time required for downloading for each group differs, the time required for downloading each terminal device in the group is the same, and the time required for the entire download can be shortened.

プログラム提供装置は、更新プログラムのデータ量に応じて各グループのダウンロードの優先順位を決め、各端末装置に優先順位を通知する。各グループの端末装置は、決められたタイミングで更新プログラムをダウンロードする。プログラム提供装置は、複数の更新プログラムを提供するが、更新プログラム毎に提供でき、効率よく処理できる。   The program providing apparatus determines the download priority of each group according to the data amount of the update program, and notifies each terminal apparatus of the priority. The terminal device of each group downloads the update program at a determined timing. Although the program providing apparatus provides a plurality of update programs, it can be provided for each update program and can be processed efficiently.

プログラム提供装置への最大同時接続数に基づいて、各端末装置は複数のグループに分けられる。プログラム提供装置は、最大同時接続数を超えた端末装置とは一度に通信することができない。1つのグループに属する端末装置は最大同時接続数以下となるので、グループ毎に確実に更新プログラムのダウンロードを行え、ダウンロードに要する時間が延びることはない。   Each terminal device is divided into a plurality of groups based on the maximum number of simultaneous connections to the program providing device. The program providing device cannot communicate with a terminal device exceeding the maximum number of simultaneous connections at a time. Since the terminal devices belonging to one group are equal to or less than the maximum number of simultaneous connections, the update program can be reliably downloaded for each group, and the time required for downloading does not increase.

本発明によると、複数の端末装置がグループ毎にタイミングをずらして更新プログラムをダウンロードすることにより、各端末装置が一斉にダウンロードするようなことは起こらない。したがって、プログラム提供装置にかかる負荷を軽減できるとともに、端末装置間の通信を不要にでき、システム全体のダウンロードに要する時間を短縮できる。   According to the present invention, when a plurality of terminal devices download the update program at different timings for each group, the terminal devices do not download at the same time. Therefore, the load on the program providing device can be reduced, communication between terminal devices can be made unnecessary, and the time required for downloading the entire system can be shortened.

本発明のプログラム更新システムの概略構成図Schematic configuration diagram of the program update system of the present invention 端末装置の概略構成を示すブロック図Block diagram showing schematic configuration of terminal device グループ毎の更新プログラムのダウンロードのシーケンスを示す図Diagram showing the download sequence of update programs for each group 更新プログラムのデータ量に基づいてグループ分けしたときの更新プログラムのダウンロードのシーケンスを示す図Diagram showing update program download sequence when grouped based on update program data volume 最大同時接続数に基づいてグループ分けしたときの更新プログラムのダウンロードのシーケンスを示す図Diagram showing the download sequence of update programs when grouped based on the maximum number of simultaneous connections

本実施形態のプログラム更新システムを図1に示す。本システムは、プログラムを提供するプログラム提供装置1と、プログラム提供装置1と通信可能な複数の端末装置2とから構成される。プログラム提供装置1と端末装置2とは、無線通信によりデータを送受信する。   The program update system of this embodiment is shown in FIG. This system includes a program providing device 1 that provides a program and a plurality of terminal devices 2 that can communicate with the program providing device 1. The program providing device 1 and the terminal device 2 transmit and receive data by wireless communication.

図2に示すように、端末装置2は、CPU21、プログラムメモリ22、ワークメモリ23、通信部24を備え、CPU21とメモリ22,23などの周辺機器とがバス25で接続される。プログラムメモリ22は、CPU21で実行するためのプログラムを格納する読み書き可能なフラッシュメモリなどの不揮発性メモリである。ワークメモリ23は、プログラムの実行空間を与えるRAMなどの揮発性メモリである。通信部24は、特定小電力無線、無線LANなどの無線通信を行う。CPU21、プログラムメモリ22、ワークメモリ23により、制御部が構成される。制御部は、プログラムにしたがって所定の処理を実行する。なお、プログラム提供装置1はサーバとされ、端末装置2と同じ構成であり、制御部は、端末装置2とのデータ通信を制御する。   As shown in FIG. 2, the terminal device 2 includes a CPU 21, a program memory 22, a work memory 23, and a communication unit 24, and the CPU 21 and peripheral devices such as the memories 22 and 23 are connected by a bus 25. The program memory 22 is a non-volatile memory such as a readable / writable flash memory that stores a program to be executed by the CPU 21. The work memory 23 is a volatile memory such as a RAM that provides a program execution space. The communication unit 24 performs wireless communication such as specific low power wireless and wireless LAN. The CPU 21, the program memory 22, and the work memory 23 constitute a control unit. The control unit executes predetermined processing according to the program. The program providing apparatus 1 is a server and has the same configuration as the terminal apparatus 2, and the control unit controls data communication with the terminal apparatus 2.

ここで、プログラム提供装置1および端末装置2は、メータ等の検針を行う無線テレメータシステムに使用される。プログラム提供装置1は、センタ装置に通信回線を通じて通信可能に接続された無線親機とされる。端末装置2は、住宅に設置される無線子機とされ、メータ、センサなどの端末機器が接続される。端末装置2の制御部は、定期的にプログラムを起動して、メータなどの端末機器から検針値などのデータを収集し、収集したデータをプログラム提供装置1に送信する。プログラム提供装置1は、各端末装置2から受信したデータをセンタ装置に伝送する。また、センタ装置からの電文などのデータは、プログラム提供装置1を通じて端末装置2に伝送される。端末装置2の制御部は、受信したデータに基づいて所定の処理を行う。例えば、端末機器からデータを収集して、データをセンタ装置宛に送信する。   Here, the program providing device 1 and the terminal device 2 are used in a wireless telemeter system that performs meter reading such as a meter. The program providing device 1 is a wireless master device that is communicably connected to the center device through a communication line. The terminal device 2 is a wireless slave installed in a house, and is connected to terminal devices such as a meter and a sensor. The control unit of the terminal device 2 periodically starts a program, collects data such as meter reading values from a terminal device such as a meter, and transmits the collected data to the program providing device 1. The program providing device 1 transmits data received from each terminal device 2 to the center device. Data such as a message from the center device is transmitted to the terminal device 2 through the program providing device 1. The control unit of the terminal device 2 performs a predetermined process based on the received data. For example, data is collected from the terminal device, and the data is transmitted to the center device.

センタ装置からのデータには、更新プログラムも含まれる。すなわち、端末装置2には、プログラムが予めインストールされ、端末装置2が設置される。プログラムのバージョンアップによって更新プログラムが作成されると、更新プログラムは、センタ装置からプログラム提供装置1を通じて各端末装置2に提供される。プログラム提供装置1は、センタ装置から更新プログラムをダウンロードして、SSDなどの記憶部に更新プログラムを保存する。各端末装置2はこの更新プログラムをダウンロードする。   The data from the center device includes an update program. That is, the terminal device 2 is preinstalled with a program and the terminal device 2 is installed. When an update program is created by upgrading the program, the update program is provided from the center device to each terminal device 2 through the program providing device 1. The program providing apparatus 1 downloads an update program from the center apparatus and stores the update program in a storage unit such as an SSD. Each terminal device 2 downloads this update program.

プログラムの更新に際して、プログラム提供装置1は、各端末装置2にプログラムの更新を通知する。各端末装置2は、プログラム提供装置1に更新プログラムの提供を要求する。この要求に応じて、プログラム提供装置1は更新プログラムを提供する。各端末装置2は、更新プログラムをダウンロードして、プログラムメモリ22に保存する。   When updating the program, the program providing apparatus 1 notifies each terminal apparatus 2 of the program update. Each terminal device 2 requests the program providing device 1 to provide an update program. In response to this request, the program providing apparatus 1 provides an update program. Each terminal device 2 downloads the update program and stores it in the program memory 22.

ここで、複数の端末装置2が一斉にプログラムの更新を行うと、プログラム提供装置1からダウンロードを効率よく行えなくなるおそれがある。そこで、複数の端末装置2がグループ分けされ、グループ単位で更新プログラムのダウンロードを行う。したがって、各グループのダウンロードはタイミングをずらして行われる。   Here, if the plurality of terminal devices 2 update the program all at once, there is a possibility that the download from the program providing device 1 cannot be performed efficiently. Therefore, the plurality of terminal devices 2 are grouped and the update program is downloaded in units of groups. Therefore, the download of each group is performed at different timings.

グループ分けは、各端末装置2のユニークな固有情報に基づいて行われる。固有情報として、端末装置2の製造番号があげられる。例えば、製造番号の下1桁が同じ番号の端末装置2を1つのグループとする。これにより、複数の端末装置2は10個のグループに分けられる。あるいは、下2桁毎にグループ分けしてもよい。端末装置2が数百台以上ある場合に、1つのグループに属する端末装置2を少なくできる。製造番号の代わりに、無線通信のために各端末装置2に割り当てられたIPアドレスなどのような識別番号を用いてもよい。   The grouping is performed based on unique unique information of each terminal device 2. As the unique information, the serial number of the terminal device 2 is given. For example, the terminal devices 2 having the same number in the last serial number are set as one group. Thus, the plurality of terminal devices 2 are divided into 10 groups. Or you may group into every lower 2 digits. When there are several hundred or more terminal devices 2, the number of terminal devices 2 belonging to one group can be reduced. Instead of the manufacturing number, an identification number such as an IP address assigned to each terminal device 2 for wireless communication may be used.

このグループ分けは、事前に行われる。端末装置2が設置されたとき、プログラム提供装置1の制御部は、端末装置2の固有情報を各端末装置2から取得し、固有情報に基づいて各端末装置2をグループ分けする。制御部は、各グループに属する端末装置2をリストにしたグループ情報を作成し、グループ情報を記憶部に記憶する。そして、プログラム提供装置1の制御部は、グループ情報を各端末装置2に送信する。端末装置2の制御部は、グループ情報を受け取ると、グループ情報を記憶部に記憶する。端末装置2の制御部は、自装置が属するグループを認識できる。   This grouping is performed in advance. When the terminal device 2 is installed, the control unit of the program providing device 1 acquires the unique information of the terminal device 2 from each terminal device 2, and groups the terminal devices 2 based on the unique information. The control unit creates group information in which the terminal devices 2 belonging to each group are listed, and stores the group information in the storage unit. Then, the control unit of the program providing apparatus 1 transmits group information to each terminal apparatus 2. When receiving the group information, the control unit of the terminal device 2 stores the group information in the storage unit. The control unit of the terminal device 2 can recognize the group to which the own device belongs.

更新プログラムが提供されるとき、プログラム提供装置1の制御部は、マルチキャストにより全ての端末装置2に更新情報を通知する。更新情報には、更新プログラムのデータ量、更新の開始時期などの情報が含まれる。更新の開始時期は、最初のグループがダウンロードを要求するタイミング(日時)を示す。各グループの更新の順序は、予め決められており、例えば製造番号の下1桁が0のグループから昇順とされる。   When the update program is provided, the control unit of the program providing device 1 notifies the update information to all the terminal devices 2 by multicast. The update information includes information such as the data amount of the update program and the update start time. The update start time indicates the timing (date and time) when the first group requests download. The order of updating of each group is determined in advance, and for example, the ascending order starts from the group in which the last digit of the serial number is 0.

図3に示すように、設定された要求タイミングになると、最初のグループに属する各端末装置2の制御部は、プログラム提供装置1にダウンロード指示発呼を行う。プログラム提供装置1の制御部は、この指示を受けると、指示した端末装置2宛に更新プログラムのデータを送信し、端末装置2は、更新プログラムのデータを受信して、更新プログラムのダウンロードが行われる。端末装置2の制御部は、更新プログラムを受け取ると、プログラムメモリ22に保存する。   As shown in FIG. 3, when the set request timing is reached, the control unit of each terminal device 2 belonging to the first group makes a download instruction call to the program providing device 1. Upon receiving this instruction, the control unit of the program providing apparatus 1 transmits the update program data to the instructed terminal apparatus 2, and the terminal apparatus 2 receives the update program data and downloads the update program. Is called. When receiving the update program, the control unit of the terminal device 2 stores the update program in the program memory 22.

最初のグループの端末装置2が更新プログラムをダウンロードした後、次のグループの端末装置2が更新プログラムのダウンロードを要求する。ダウンロードの要求タイミングは、最初のグループの端末装置2がプログラム提供装置1に更新プログラムのダウンロードを要求した時点を基準にして決められる。無線通信の通信速度はほぼ一定であるので、更新プログラムのダウンロードに要する時間は、更新プログラムのデータ量に基づいて算出できる。そこで、端末装置2の制御部は、プログラム提供装置1から更新情報を受け取ったとき、最初のグループのダウンロードの要求タイミングと算出したダウンロードに要する時間とに基づいて、自装置が属するグループの順番を考慮して、ダウンロードの要求タイミングを設定する。具体的には、先のグループのダウンロード終了時間に一定の時間をプラスして、要求タイミングが決められる。   After the terminal device 2 of the first group downloads the update program, the terminal device 2 of the next group requests download of the update program. The download request timing is determined based on the time point when the terminal device 2 in the first group requests the program providing apparatus 1 to download the update program. Since the communication speed of wireless communication is substantially constant, the time required for downloading the update program can be calculated based on the data amount of the update program. Therefore, when the control unit of the terminal device 2 receives the update information from the program providing device 1, the control unit determines the order of the group to which the own device belongs based on the download request timing of the first group and the calculated download time. Consider the download request timing. Specifically, the request timing is determined by adding a certain time to the download end time of the previous group.

なお、更新情報に、更新の開始時期を含めなくてもよい。各端末装置2がプログラム提供装置1からほぼ同時期に更新情報を受け取る場合、端末装置2の制御部は、更新情報を受け取った時点を基準にして、要求タイミングを設定する。あるいは、プログラム提供装置1が最初のグループの端末装置2からダウンロード指示を受けると、プログラム提供装置1の制御部は、2番目以降のグループの端末装置2に、最初のグループからダウンロード指示があったことを通知する。2番目以降のグループの各端末装置2は、この通知に基づいて要求タイミングを設定する。   The update information may not include the update start time. When each terminal device 2 receives update information from the program providing device 1 almost at the same time, the control unit of the terminal device 2 sets the request timing with reference to the time when the update information is received. Alternatively, when the program providing apparatus 1 receives a download instruction from the terminal device 2 of the first group, the control unit of the program providing apparatus 1 has received a download instruction from the first group to the terminal devices 2 of the second and subsequent groups. Notify that. Each terminal device 2 in the second and subsequent groups sets the request timing based on this notification.

2番目のグループの端末装置2の制御部は、設定された要求タイミングになると、プログラム提供装置1にダウンロード指示発呼を行う。端末装置2は、プログラム提供装置1から提供された更新プログラムをダウンロードする。   The control unit of the terminal device 2 of the second group makes a download instruction call to the program providing device 1 at the set request timing. The terminal device 2 downloads the update program provided from the program providing device 1.

このようにして、各グループの端末装置2は、ダウンロードのタイミングをずらして、順に更新プログラムをダウンロードしていく。したがって、プログラム提供装置1は一度に多数の端末装置2に更新プログラムを提供する必要がなくなるので、プログラム提供装置1にかかる負荷を軽減できる。   In this way, the terminal devices 2 of each group download the update program in order, shifting the download timing. Therefore, the program providing apparatus 1 does not need to provide an update program to a large number of terminal devices 2 at a time, and therefore the load on the program providing apparatus 1 can be reduced.

ところで、端末装置2において、適用できるプログラムが異なる場合がある。例えば、古い端末装置2では、最新のプログラムを実行できないことがある。この場合、それぞれの端末装置2における更新プログラムが異なる。すなわち、更新プログラムのデータ量に差が生じる。そこで、各端末装置2において更新される更新プログラムのデータ量が異なるとき、更新プログラムのデータ量に応じて各端末装置2が複数のグループに分けられる。更新プログラムのデータ量が同じ端末装置2は、同一のグループとなる。   By the way, in the terminal device 2, the applicable program may differ. For example, the old terminal device 2 may not be able to execute the latest program. In this case, the update program in each terminal device 2 is different. That is, a difference occurs in the data amount of the update program. Therefore, when the data amount of the update program updated in each terminal device 2 is different, each terminal device 2 is divided into a plurality of groups according to the data amount of the update program. The terminal devices 2 having the same data amount of the update program are in the same group.

プログラム提供装置1の制御部は、各端末装置2に適合する更新プログラムを確認し、更新プログラムのデータ量に応じて端末装置2をグループ化する。例えば、各端末装置2は、更新プログラムのデータ量が大中小の3つのグループに分けられる。また、制御部は、更新のタイミングに対する各グループの優先順位を決める。例えばデータ量が大のグループが1番目、中のグループが2番目、小のグループが3番目とする。   The control unit of the program providing apparatus 1 confirms an update program suitable for each terminal apparatus 2, and groups the terminal apparatuses 2 according to the data amount of the update program. For example, each terminal device 2 is divided into three groups with large, medium, and small update program data amounts. The control unit also determines the priority order of each group with respect to the update timing. For example, a group with a large amount of data is first, a middle group is second, and a small group is third.

図4に示すように、プログラム提供装置1の制御部は、所属するグループ、グループ毎の更新プログラムのデータ量、グループの優先順位といった更新情報を全ての端末装置2に通知する。端末装置2が更新情報を受信すると、制御部は、自装置が属するグループおよび優先順位を認識し、更新プログラムのダウンロードの要求タイミングを設定する。   As shown in FIG. 4, the control unit of the program providing apparatus 1 notifies all terminal apparatuses 2 of update information such as the group to which the program belongs, the data amount of the update program for each group, and the priority order of the groups. When the terminal device 2 receives the update information, the control unit recognizes the group to which the own device belongs and the priority order, and sets the update program download request timing.

優先順位が1番目のグループの端末装置2の制御部は、プログラム提供装置1から更新情報を受け取ると、すぐにプログラム提供装置1にダウンロード指示発呼を行う。プログラム提供装置1の制御部は、この指示を受けると、指示した端末装置2宛に更新プログラムのデータを送信し、更新プログラムのダウンロードが行われる。端末装置2の制御部は、ダウンロードした更新プログラムをプログラムメモリ22に保存する。   When receiving the update information from the program providing device 1, the control unit of the terminal device 2 in the group with the first priority immediately issues a download instruction to the program providing device 1. Upon receiving this instruction, the control unit of the program providing apparatus 1 transmits the update program data to the instructed terminal device 2, and the update program is downloaded. The control unit of the terminal device 2 stores the downloaded update program in the program memory 22.

優先順位が1番目以外のグループの端末装置2の制御部は、先のグループの更新プログラムのデータ量に基づいてダウンロードに要する時間を算出し、更新情報を受信した時点を基準にして、先のグループのダウンロードに要する時間分だけ遅い時間にダウンロードの要求タイミングを設定する。   The control unit of the terminal device 2 of the group other than the first priority order calculates the time required for downloading based on the data amount of the update program of the previous group, and uses the time when the update information is received as a reference. The download request timing is set to a time later by the time required for the group download.

2番目のグループの端末装置2は、1番目のグループのダウンロードが終了した後、設定された要求タイミングになると、プログラム提供装置2にダウンロード指示発呼を行う。2番目のグループのダウンロードが終了すると、3番目のグループの端末装置2は、設定された要求タイミングにしたがって更新プログラムのダウンロードを行う。   The terminal device 2 of the second group makes a download instruction call to the program providing device 2 at the set request timing after the download of the first group is completed. When the download of the second group is completed, the terminal device 2 of the third group downloads the update program according to the set request timing.

同じグループ内では、ダウンロード時間が同じとなり、グループ単位でダウンロードが行われる。これにより、ダウンロードに要する時間が異なっても、各端末装置2のダウンロードの終了時間にはばらつきがない。プログラム提供装置1はまとめて処理でき、プログラム提供装置1の負荷を軽減できる。しかも、プログラム提供装置1は、複数の更新プログラムを提供するが、更新プログラム毎に提供でき、効率よく処理できる。   Within the same group, the download time is the same, and the download is performed in units of groups. Thereby, even if the time required for the download differs, the download end time of each terminal device 2 does not vary. The program providing apparatus 1 can be processed collectively, and the load on the program providing apparatus 1 can be reduced. Moreover, the program providing apparatus 1 provides a plurality of update programs, but can provide them for each update program and can efficiently process them.

ここで、プログラム提供装置1と複数の端末装置2との間で無線通信が行われるが、プログラム提供装置1に接続できる端末装置2の台数には制限がある。上記のように、端末装置1の固有情報あるいは更新プログラムのテータ量に基づいてグループ分けしたとき、1つのグループに属する端末装置2の台数がプログラム提供装置1への最大同時接続数を超える場合がある。そこで、この最大同時接続数に基づいて、各端末装置2が複数のグループに分けられる。   Here, wireless communication is performed between the program providing device 1 and the plurality of terminal devices 2, but the number of terminal devices 2 that can be connected to the program providing device 1 is limited. As described above, when grouping is performed based on the unique information of the terminal device 1 or the data amount of the update program, the number of terminal devices 2 belonging to one group may exceed the maximum number of simultaneous connections to the program providing device 1. is there. Therefore, the terminal devices 2 are divided into a plurality of groups based on the maximum number of simultaneous connections.

通信可能な端末装置2の台数が最大同時接続数を超えている場合、プログラム提供装置1の制御部は、端末装置2のグループ分けを行う。制御部は、端末装置2の固有情報に基づいて最大同時接続数毎にグループ分けする。例えば、最大同時接続数が30台の場合、端末装置2の製造番号の若い順に30台の端末装置2が1つのグループとなり、次の30台が別のグループとなる。また、制御部は、製造番号の若いグループから順に優先順位を設定する。   When the number of communicable terminal devices 2 exceeds the maximum number of simultaneous connections, the control unit of the program providing device 1 performs grouping of the terminal devices 2. The control unit groups the maximum number of simultaneous connections based on the unique information of the terminal device 2. For example, when the maximum number of simultaneous connections is 30, the 30 terminal devices 2 become one group in ascending order of the serial number of the terminal device 2, and the next 30 devices become another group. Also, the control unit sets priorities in order from the group with the smallest production number.

プログラム提供装置1は、固有情報あるいは更新プログラムのデータ量に基づいて各端末装置2をグループ分けした後、グループ内の端末装置2の台数が最大同時接続数を超えていないかを確認する。越えている場合、プログラム提供装置1は、最大同時接続数を越えないようにグループ分けする。例えば、1グループが最大同時接続数を越えないように、再度グループ分けする。あるいは、最大同時接続数を超えたグループをさらに複数のグループに分けてもよい。   The program providing device 1 groups the terminal devices 2 based on the unique information or the data amount of the update program, and then checks whether the number of terminal devices 2 in the group exceeds the maximum number of simultaneous connections. If so, the program providing apparatus 1 performs grouping so as not to exceed the maximum number of simultaneous connections. For example, grouping is performed again so that one group does not exceed the maximum number of simultaneous connections. Alternatively, a group that exceeds the maximum number of simultaneous connections may be further divided into a plurality of groups.

図5に示すように、プログラム提供装置1は、所属するグループ、グループの優先順位といった更新情報を全ての端末装置2に通知する。端末装置2が更新情報を受信すると、制御部は、自装置が属するグループおよび優先順位を認識し、更新プログラムのダウンロードの要求タイミングを設定する。なお、更新プログラムのデータ量は同じとする。そして、優先順位が1番目のグループの端末装置2から更新プログラムがダウンロードされる。以降、各グループの端末装置2は、先のグループのダウンロードが終了した後、設定された要求タイミングになると、更新プログラムのダウンロードを行う。   As illustrated in FIG. 5, the program providing apparatus 1 notifies all terminal apparatuses 2 of update information such as the group to which the program belongs and the priority order of the groups. When the terminal device 2 receives the update information, the control unit recognizes the group to which the own device belongs and the priority order, and sets the update program download request timing. Note that the data amount of the update program is the same. Then, the update program is downloaded from the terminal device 2 in the first priority group. Thereafter, the terminal device 2 of each group downloads the update program at the set request timing after the previous group has been downloaded.

このように、最大同時接続数に基づいてグループ分けすることにより、グループ内の端末装置2は一斉にダウンロードすることができる。同一グループにおいて、複数回にわたってダウンロードが行われると、決められたタイミングで他のグループの端末装置がダウンロードできなくなるといった事態が生じるが、このような事態を防止できる。   Thus, by grouping based on the maximum number of simultaneous connections, the terminal devices 2 in the group can be downloaded all at once. If downloading is performed a plurality of times in the same group, a situation occurs in which terminal devices of other groups cannot be downloaded at a predetermined timing. This situation can be prevented.

なお、本発明は、上記実施形態に限定されるものではなく、本発明の範囲内で上記実施形態に多くの修正および変更を加え得ることは勿論である。プログラム提供装置と端末装置とは、インターネット、公衆電話回線網などのネットワークを通じて通信可能に接続されていてもよく、無線通信に限らず有線による通信であってもよい。   In addition, this invention is not limited to the said embodiment, Of course, many corrections and changes can be added to the said embodiment within the scope of the present invention. The program providing device and the terminal device may be communicably connected via a network such as the Internet or a public telephone line network, and may be wired communication as well as wireless communication.

プログラム提供装置がグループ分けする代わりに、端末装置が自らグループ分けしてもよい。端末装置は、プログラム提供装置から更新情報の通知を受けたとき、自装置の固有情報に基づいてグループを判断する。端末装置の制御部は、例えば製造番号や識別番号の下1桁に基づいて、自装置が属するグループを判断する。そして、制御部は、通知を受けた時点を基準にして、自己のグループの優先順位に基づきダウンロードの要求タイミングを設定する。   Instead of grouping by the program providing apparatus, the terminal apparatus may perform grouping by itself. When receiving the update information notification from the program providing apparatus, the terminal apparatus determines the group based on the unique information of the own apparatus. The control unit of the terminal device determines a group to which the own device belongs based on, for example, the last digit of the manufacturing number or the identification number. Then, the control unit sets the download request timing based on the priority of its own group based on the time when the notification is received.

端末装置同士が通信可能であるとき、端末装置が他の端末装置にダウンロードの開始を通知してもよい。最初のグループの端末装置は、ダウンロード指示を行ったとき、他のグループの端末装置に指示を行った時間を通知する。他のグループの端末装置は、最初のダウンロードの時間に基づいて、要求タイミングを設定する。   When the terminal devices can communicate with each other, the terminal device may notify the download start to another terminal device. When the terminal device of the first group issues a download instruction, it notifies the time of the instruction to the terminal device of another group. Other groups of terminal devices set the request timing based on the time of the first download.

1 プログラム提供装置
2 端末装置
21 CPU
22 プログラムメモリ
23 ワークメモリ
24 通信部
25 バス
1 Program providing device 2 Terminal device 21 CPU
22 Program memory 23 Work memory 24 Communication unit 25 Bus

Claims (8)

プログラムを提供するプログラム提供装置と、プログラム提供装置と通信可能な複数の端末装置とから構成され、各端末装置は、プログラム提供装置に更新プログラムの提供を要求して、要求に応じたプログラム提供装置は更新プログラムを提供し、各端末装置は更新プログラムをダウンロードして、プログラムを更新するプログラム更新システムであって、複数の端末装置がグループ分けされ、各端末装置は、グループ毎にタイミングをずらして更新プログラムをダウンロードすることを特徴とするプログラム更新システム。 A program providing apparatus that provides a program and a plurality of terminal devices that can communicate with the program providing apparatus. Each terminal apparatus requests the program providing apparatus to provide an update program, and the program providing apparatus responds to the request. Provides an update program, each terminal device is a program update system that downloads the update program and updates the program, wherein a plurality of terminal devices are grouped, and each terminal device is shifted in timing for each group A program update system for downloading an update program. 先のグループの端末装置が更新プログラムをダウンロードした後、次のグループの端末装置は更新プログラムを要求することを特徴とする請求項1記載のプログラム更新システム。 2. The program update system according to claim 1, wherein after the terminal device of the previous group downloads the update program, the terminal device of the next group requests the update program. 最初のグループの端末装置がプログラム提供装置に更新プログラムを要求した時点を基準にして、残りグループの端末装置は更新プログラムのダウンロードに要する時間に基づいて決められたタイミングで順次更新プログラムを要求することを特徴とする請求項2記載のプログラム更新システム。 Based on the time when the terminal device of the first group requests an update program from the program providing device, the terminal devices of the remaining group sequentially request the update program at a timing determined based on the time required for downloading the update program. The program update system according to claim 2. 更新プログラムの要求のタイミングは、更新プログラムのデータ量に基づいて決められることを特徴とする請求項1〜3のいずれかに記載のプログラム更新システム。 4. The program update system according to claim 1, wherein the update program request timing is determined based on a data amount of the update program. 端末装置が有する固有情報に基づいて、各端末装置は複数のグループに分けられることを特徴とする請求項1〜4のいずれかに記載のプログラム更新システム。 The program update system according to any one of claims 1 to 4, wherein each terminal device is divided into a plurality of groups based on the unique information of the terminal device. 各端末装置が更新する更新プログラムのデータ量が異なるとき、各端末装置は更新プログラムのデータ量に応じて複数のグループに分けられることを特徴とする請求項4記載のプログラム更新システム。 5. The program update system according to claim 4, wherein when the data amount of the update program updated by each terminal device is different, each terminal device is divided into a plurality of groups according to the data amount of the update program. プログラム提供装置は、更新プログラムのデータ量に応じて各グループのダウンロードの優先順位を決め、各端末装置に優先順位を通知することを特徴とする請求項6記載のプログラム更新システム。 7. The program update system according to claim 6, wherein the program providing device determines the priority of downloading of each group according to the data amount of the update program, and notifies the priority to each terminal device. プログラム提供装置への最大同時接続数に基づいて、各端末装置は複数のグループに分けられることを特徴とする請求項1〜4のいずれかに記載のプログラム更新システム。 5. The program update system according to claim 1, wherein each terminal device is divided into a plurality of groups based on the maximum number of simultaneous connections to the program providing device.
JP2012150377A 2012-07-04 2012-07-04 Program update system Pending JP2014013484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012150377A JP2014013484A (en) 2012-07-04 2012-07-04 Program update system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012150377A JP2014013484A (en) 2012-07-04 2012-07-04 Program update system

Publications (1)

Publication Number Publication Date
JP2014013484A true JP2014013484A (en) 2014-01-23

Family

ID=50109135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012150377A Pending JP2014013484A (en) 2012-07-04 2012-07-04 Program update system

Country Status (1)

Country Link
JP (1) JP2014013484A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016135093A (en) * 2015-01-19 2016-07-25 エルエス産電株式会社Lsis Co., Ltd. Photovoltaic power generation system
JP2018042851A (en) * 2016-09-15 2018-03-22 サクサ株式会社 Hall system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000347957A (en) * 1999-06-01 2000-12-15 Fujitsu Ltd Remote maintenance system
JP2004328239A (en) * 2003-04-23 2004-11-18 Denso Corp Radio communication system, on-vehicle communication terminal, and center communication terminal
JP2006318293A (en) * 2005-05-13 2006-11-24 Matsushita Electric Ind Co Ltd Automatic updating apparatus for software and terminal
JP2006344115A (en) * 2005-06-10 2006-12-21 Matsushita Electric Ind Co Ltd Server, and information processing method and program therefor
JP2007164371A (en) * 2005-12-12 2007-06-28 Toshiba Corp Software management system
JP2009146403A (en) * 2007-12-11 2009-07-02 Sharp Corp Server device and method for updating software of multiple network nodes
JP2009230171A (en) * 2008-03-19 2009-10-08 Fujitsu Ltd Update management program, management node, update management method, and cluster system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000347957A (en) * 1999-06-01 2000-12-15 Fujitsu Ltd Remote maintenance system
JP2004328239A (en) * 2003-04-23 2004-11-18 Denso Corp Radio communication system, on-vehicle communication terminal, and center communication terminal
JP2006318293A (en) * 2005-05-13 2006-11-24 Matsushita Electric Ind Co Ltd Automatic updating apparatus for software and terminal
JP2006344115A (en) * 2005-06-10 2006-12-21 Matsushita Electric Ind Co Ltd Server, and information processing method and program therefor
JP2007164371A (en) * 2005-12-12 2007-06-28 Toshiba Corp Software management system
JP2009146403A (en) * 2007-12-11 2009-07-02 Sharp Corp Server device and method for updating software of multiple network nodes
JP2009230171A (en) * 2008-03-19 2009-10-08 Fujitsu Ltd Update management program, management node, update management method, and cluster system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016135093A (en) * 2015-01-19 2016-07-25 エルエス産電株式会社Lsis Co., Ltd. Photovoltaic power generation system
KR20160089169A (en) * 2015-01-19 2016-07-27 엘에스산전 주식회사 Photovoltaic system
KR101950445B1 (en) * 2015-01-19 2019-02-20 엘에스산전 주식회사 Photovoltaic system
JP2018042851A (en) * 2016-09-15 2018-03-22 サクサ株式会社 Hall system

Similar Documents

Publication Publication Date Title
CN108491222B (en) Gateway equipment upgrading method and device, gateway equipment and storage medium
EP3764220B1 (en) Automatic application updates
JP2018106686A5 (en)
US9904532B2 (en) System and method for distributing software updates
JP6325109B2 (en) Management device, management device control method, and management system control method
JP7225596B2 (en) Program update system, program update server and vehicle
CN110532077B (en) Task processing method and device and storage medium
CN110099369B (en) Method and device for processing information in M2M
US20210119858A1 (en) Network node firmware update
US20170351503A1 (en) Method and system for installing software
BRPI0909482A2 (en) routing and interrupt information update on a communication network
JP2014013484A (en) Program update system
WO2018164037A1 (en) Relay apparatus, server, method for setting relay apparatus, and recording medium
JP5933110B2 (en) COMMUNICATION DEVICE, CONTROL DEVICE, AND PROGRAM
CN105652813B (en) A method of embedded real-time EtherCAT main websites are built based on AM335X processors
CN113923240A (en) System and method for dynamically upgrading equipment interface protocol in gateway of Internet of things by using local OTA method
EP3133782A1 (en) Wireless relay device, processing apparatus, wireless communication system, and wireless communication method
US9049180B2 (en) Method for providing a signal output on the basis of a main file and at least one secondary file, and motor vehicle
JP6011601B2 (en) Information processing apparatus and program
JP5664086B2 (en) Information processing apparatus, communication system, and program
CN112395072A (en) Model deployment method and device, storage medium and electronic equipment
US10970059B2 (en) Systems and methods for updating firmware and critical configuration data to scalable distributed systems using a peer to peer protocol
TW201927036A (en) Method for scheduling tasks of a wireless sensor network
JP5895043B1 (en) Cluster system, cluster management server, and cluster management program
JP2010086206A (en) Setting device and field network system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151211

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160719

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170207