Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7334474B2 - Data relay device, data relay method, monitoring system, server device, terminal device and computer program - Google Patents
[go: Go Back, main page]

JP7334474B2 - Data relay device, data relay method, monitoring system, server device, terminal device and computer program - Google Patents

Data relay device, data relay method, monitoring system, server device, terminal device and computer program Download PDF

Info

Publication number
JP7334474B2
JP7334474B2 JP2019100641A JP2019100641A JP7334474B2 JP 7334474 B2 JP7334474 B2 JP 7334474B2 JP 2019100641 A JP2019100641 A JP 2019100641A JP 2019100641 A JP2019100641 A JP 2019100641A JP 7334474 B2 JP7334474 B2 JP 7334474B2
Authority
JP
Japan
Prior art keywords
data
transmission
server device
unit
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019100641A
Other languages
Japanese (ja)
Other versions
JP2020194444A (en
Inventor
俊貴 中曽根
裕史 中島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2019100641A priority Critical patent/JP7334474B2/en
Publication of JP2020194444A publication Critical patent/JP2020194444A/en
Application granted granted Critical
Publication of JP7334474B2 publication Critical patent/JP7334474B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、監視対象装置を監視するためのデータ中継装置、データ中継方法、監視システム、サーバ装置、端末装置及びコンピュータプログラムに関する。 The present invention relates to a data relay device, a data relay method, a monitoring system, a server device, a terminal device, and a computer program for monitoring a monitoring target device.

近年、通信技術の発達及びIOT(Internet Of Things)の技術の発達等により、様々な環境で遠隔監視のシステムが導入され始めている。遠隔監視システムでは、制御装置又はセンサ等の種々の装置から、有線又は無線の通信を介してサーバ装置へ様々なデータが集約される。ユーザは、パーソナルコンピュータ又はスマートフォン等の端末装置を利用してサーバ装置へアクセスし、サーバ装置に集約された様々なデータを取得して閲覧することにより、監視対象の装置の動作状態及び故障の有無等を遠隔で把握することができる。 2. Description of the Related Art In recent years, with the development of communication technology and the technology of IOT (Internet Of Things), remote monitoring systems have started to be introduced in various environments. In the remote monitoring system, various data are aggregated from various devices such as control devices or sensors to a server device via wired or wireless communication. The user accesses the server device using a terminal device such as a personal computer or a smartphone, and acquires and browses various data aggregated in the server device to determine the operating status and failure status of the device to be monitored. etc. can be grasped remotely.

特許文献1においては、遠隔監視対象装置の状態を遠隔監視装置が監視する遠隔監視システムが提案されている。この遠隔監視システムでは、遠隔監視対象装置から異常の通知情報を遠隔監視装置が受信し、受信した通知情報を監視サーバへ送信する。監視サーバは、受信した通知情報を監視者側コンピュータへ電子メール等で通知する。 Patent Document 1 proposes a remote monitoring system in which a remote monitoring device monitors the state of a remote monitoring target device. In this remote monitoring system, the remote monitoring device receives abnormality notification information from the remote monitoring target device, and transmits the received notification information to the monitoring server. The monitoring server notifies the monitoring person's computer of the received notification information by e-mail or the like.

特開2004-295162号公報JP 2004-295162 A

サーバ装置に集約される監視対象装置に関するデータには様々なものが含まれ得る。サーバ装置へのデータ送信については、データの種別等に応じて適した送信方法が異なる可能性があるが、従来の監視システムではデータ送信の方法について十分な検討がなされていなかった。 Various data can be included in the data related to the monitoring target device that is aggregated in the server device. Regarding data transmission to the server device, there is a possibility that a suitable transmission method differs depending on the type of data, etc. However, in the conventional monitoring system, sufficient consideration has not been given to the data transmission method.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、データ種別等に応じた方法でデータ送受信を行うことができるデータ中継装置、データ中継方法、監視システム、サーバ装置、端末装置及びコンピュータプログラムを提供することにある。 The present invention has been made in view of such circumstances, and aims to provide a data relay device, a data relay method, a monitoring system, and a data relay device capable of transmitting and receiving data by a method according to the data type, etc. An object of the present invention is to provide a server device, a terminal device and a computer program.

本発明に係るデータ中継装置は、監視対象装置が送信するデータを受信する受信部と、前記受信部が受信したデータから時系列の第1データを生成する第1生成部と、前記第1生成部が生成した第1データをサーバ装置へ送信する第1送信処理部と、前記受信部が受信したデータに基づき、前記監視対象装置に係る第2データを生成する第2生成部と、前記第2生成部が生成した第2データを前記サーバ装置へ送信する第2送信処理部とを備え、前記第1送信処理部は、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、前記第2送信処理部は、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行う。 A data relay device according to the present invention comprises a receiving unit for receiving data transmitted by a monitoring target device, a first generating unit for generating first time-series data from the data received by the receiving unit, and the first generating unit. a first transmission processing unit that transmits first data generated by a unit to a server device; a second generation unit that generates second data related to the monitoring target device based on the data received by the reception unit; a second transmission processing unit configured to transmit the second data generated by the second generation unit to the server device, wherein the first transmission processing unit, when transmission of the first data to the server device fails, The second transmission processing unit does not retransmit the first data, and retransmits the second data when transmission of the second data to the server device fails.

また、本発明に係るデータ中継装置は、前記第2生成部が、前記受信部が受信したデータを所定期間に亘って蓄積したデータを前記第2データとする。 Further, in the data relay device according to the present invention, the second generation unit uses data, which is accumulated over a predetermined period of time, data received by the reception unit as the second data.

また、本発明に係るデータ中継装置は、前記第2生成部が、前記監視対象装置の状態変化に係る第2データを生成する。 Also, in the data relay device according to the present invention, the second generation unit generates second data related to the state change of the monitoring target device.

また、本発明に係るデータ中継装置は、前記第1生成部が、前記受信部が受信したデータの所定位置から抽出したデータを前記第1データとし、前記第2生成部は、前記受信部が受信したデータの所定位置から前記監視対象装置の状態を示すデータを抽出し、時系列的に抽出した複数の前記データに基づいて前記監視対象装置の状態変化に係る前記第2データを生成する。 Further, in the data relaying device according to the present invention, the first generation unit sets the data extracted from a predetermined position of the data received by the reception unit as the first data, and the second generation unit performs Data indicating the state of the monitored device is extracted from a predetermined position of the received data, and the second data relating to the state change of the monitored device is generated based on the plurality of data extracted in time series.

また、本発明に係るデータ中継装置は、前記第1データを記憶する記憶部を備え、前記第1送信処理部による前記第1データの送信後に、送信の成否に関わらず、前記記憶部に記憶された第1データを消去する。 Further, the data relay device according to the present invention includes a storage unit for storing the first data, and after the transmission of the first data by the first transmission processing unit, the data is stored in the storage unit regardless of success or failure of the transmission. Erase the first data that has been written.

また、本発明に係るデータ中継装置は、前記第2データ又は前記第2データを生成するためのデータを記憶する不揮発性の記憶部を備え、前記第2送信処理部が前記第2データの送信に成功するまで、前記記憶部は第2データ又は第2データを生成するためのデータを記憶する。 Further, the data relay device according to the present invention includes a nonvolatile storage unit that stores the second data or data for generating the second data, and the second transmission processing unit transmits the second data. The storage unit stores the second data or data for generating the second data until successful.

また、本発明に係るデータ中継方法は、監視対象装置が送信するデータを受信し、受信したデータから時系列の第1データを生成し、生成した第1データをサーバ装置へ送信し、受信したデータに基づき、前記監視対象装置に係る第2データを生成し、生成した第2データを前記サーバ装置へ送信し、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行う。 Further, the data relay method according to the present invention receives data transmitted by a monitoring target device, generates time-series first data from the received data, transmits the generated first data to the server device, and receives the received data. Based on the data, the second data related to the monitoring target device is generated, the generated second data is transmitted to the server device, and when the transmission of the first data to the server device fails, the first data When the transmission of the second data to the server device fails without retransmitting the data, the second data is retransmitted.

また、本発明に係る監視システムは、監視対象装置に係るデータをサーバ装置がデータ中継装置を介して取得する監視システムであって、前記データ中継装置は、監視対象装置が送信するデータを受信する受信部と、前記受信部が受信したデータから時系列の第1データを生成する第1生成部と、前記第1生成部が生成した第1データをサーバ装置へ送信する第1送信処理部と、前記受信部が受信したデータに基づき、前記監視対象装置に係る第2データを生成する第2生成部と、前記第2生成部が生成した第2データを前記サーバ装置へ送信する第2送信処理部とを有し、前記第1送信処理部は、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、前記第2送信処理部は、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行い、前記サーバ装置は、前記データ中継装置が送信する前記第1データ及び前記第2データを受信する受信部と、前記受信部が受信した前記第1データ及び前記第2データを記憶する記憶部と、前記記憶部に記憶した前記第1データ及び前記第2データを端末装置へ送信する送信部とを有する。 A monitoring system according to the present invention is a monitoring system in which a server device acquires data related to a monitoring target device via a data relay device, and the data relay device receives data transmitted by the monitoring target device. a receiving unit, a first generating unit that generates time-series first data from data received by the receiving unit, and a first transmission processing unit that transmits the first data generated by the first generating unit to a server device; a second generation unit for generating second data related to the monitored device based on the data received by the reception unit; and a second transmission for transmitting the second data generated by the second generation unit to the server device. a processing unit, wherein the first transmission processing unit does not retransmit the first data when transmission of the first data to the server device fails; and, if transmission of the second data to the server device fails, the second data is retransmitted, and the server device transmits the first data and the second data transmitted by the data relay device. a receiving unit for receiving, a storage unit for storing the first data and the second data received by the receiving unit, and a transmission for transmitting the first data and the second data stored in the storage unit to a terminal device and

また、本発明に係るサーバ装置は、監視対象装置に係る第1データを送信失敗の際に再送信を行わずに送信し、前記監視対象装置に係る第2データを送信失敗の際に再送信を行って送信するデータ中継装置から、前記第1データ及び前記第2データを受信する受信部と、前記受信部が受信した前記第1データ及び前記第2データを記憶する記憶部と、前記記憶部に記憶した前記第1データ及び前記第2データを端末装置へ送信する送信部とを備える。 Further, the server device according to the present invention transmits the first data related to the monitored device without retransmitting when transmission fails, and retransmits the second data related to the monitored device when transmission fails. a receiving unit for receiving the first data and the second data from the data relay device that performs and transmits the data; a storage unit for storing the first data and the second data received by the receiving unit; and a transmitting unit configured to transmit the first data and the second data stored in the unit to the terminal device.

また、本発明に係るサーバ装置は、前記送信部が、前記端末装置からの要求に応じて、前記第1データ及び前記第2データを前記端末装置へ送信する。 Also, in the server device according to the present invention, the transmission unit transmits the first data and the second data to the terminal device in response to a request from the terminal device.

また、本発明に係るサーバ装置は、送信失敗により前記データ中継装置から送信されなかった第1データを、前記受信部が受信した前記第2データに基づいて補完する補完部を備える。 Also, the server device according to the present invention includes a complementing unit that complements the first data that has not been transmitted from the data relay device due to a transmission failure, based on the second data that the receiving unit has received.

また、本発明に係る端末装置は、データ中継装置から送信失敗の際に再送信を行わずに送信される監視対象に係る第1データ及び送信失敗の際に再送信を行って送信される第2データを受信して記憶するサーバ装置が送信する前記第1データ及び前記第2データを受信する受信部と、前記受信部が受信した前記第1データ及び前記第2データに基づいて、前記監視対象に係る情報を表示部に表示する表示処理部とを備える。 Further, the terminal device according to the present invention provides the first data to be monitored which is transmitted from the data relay device without retransmission when transmission fails, and the second data which is transmitted after retransmission when transmission fails. 2. a receiving unit for receiving the first data and the second data transmitted by a server device that receives and stores data; and the monitoring based on the first data and the second data received by the receiving unit. and a display processing unit that displays information related to the target on the display unit.

また、本発明に係る端末装置は、前記受信部が、前記サーバ装置へデータの送信を要求し、要求に応じて前記サーバ装置が送信するデータを受信し、前記表示処理部は、前記受信部が前記データを受信する都度、前記表示部の表示を更新する。 Further, in the terminal device according to the present invention, the receiving unit requests transmission of data from the server device, receives data transmitted by the server device in response to the request, and the display processing unit receives data from the receiving unit. updates the display on the display each time it receives the data.

また、本発明に係るコンピュータプログラムは、コンピュータに、監視対象装置が送信するデータを受信し、受信したデータから時系列の第1データを生成し、生成した第1データをサーバ装置へ送信し、受信したデータに基づき、前記監視対象装置に係る第2データを生成し、生成した第2データを前記サーバ装置へ送信し、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行う処理を実行させる。 Further, the computer program according to the present invention receives data transmitted by the monitored device to the computer, generates time-series first data from the received data, transmits the generated first data to the server device, generating second data related to the monitoring target device based on the received data, transmitting the generated second data to the server device, and if transmission of the first data to the server device fails, When the transmission of the second data to the server device fails without retransmitting the first data, a process of retransmitting the second data is executed.

また、本発明に係るコンピュータプログラムは、コンピュータに、監視対象装置に係る第1データを送信失敗の際に再送信を行わずに送信し、前記監視対象装置に係る第2データを送信失敗の際に再送信を行って送信するデータ中継装置から、前記第1データ及び前記第2データを受信し、受信した前記第1データ及び前記第2データを記憶部に記憶し、記憶した前記第1データ及び前記第2データを端末装置へ送信する処理を実行させる。 Further, the computer program according to the present invention transmits the first data related to the monitoring target device to the computer without retransmission when the transmission fails, and transmits the second data related to the monitoring target device to the computer when the transmission fails. receiving the first data and the second data from the data relay device that retransmits and transmits the data, storing the received first data and the second data in a storage unit, and storing the stored first data and a process of transmitting the second data to the terminal device.

また、本発明に係るコンピュータプログラムは、コンピュータに、データ中継装置から送信失敗の際に再送信を行わずに送信される監視対象に係る第1データ及び送信失敗の際に再送信を行って送信される第2データを受信して記憶するサーバ装置が送信する前記第1データ及び前記第2データを受信し、受信した前記第1データ及び前記第2データに基づいて、前記監視対象に係る情報を表示部に表示する処理を実行させる。 A computer program according to the present invention provides a computer with first data to be monitored that is transmitted from a data relay device without retransmission when transmission fails, and data that is retransmitted and transmitted when transmission fails. receiving the first data and the second data transmitted by a server device that receives and stores the second data that is received, and based on the received first data and the second data, information related to the monitoring target is displayed on the display unit.

本発明においては、監視対象装置とサーバ装置との間にデータ中継装置が介在してデータを中継する処理を行う。データ中継装置は、監視対象装置から送信されるデータを受信し、受信したデータから第1データを生成してサーバ装置へ送信する。このときにデータ中継装置は、サーバ装置への送信に失敗した場合であっても、この第1データの再送信を行わない。またデータ中継装置は、受信したデータに基づいて第2データを生成してサーバ装置へ送信する。このときにデータ中継装置は、サーバ装置への送信に失敗した場合には、この第2データを再送信する。データ中継装置が、再送信を行わない第1データの送信と、再送信を行う第2データの送信との2つのデータ送信方法を提供することによって、データの種別等に適したサーバ装置へのデータ送信が実現できる。なお、第1データには、送信周期、使用用途又はデータ構造等が異なる複数種類のデータが含まれ得る。同様に、第2データには、送信周期、使用用途又はデータ構造等が異なる複数種類のデータが含まれ得る。 In the present invention, a data relay device intervenes between the monitoring target device and the server device to relay data. The data relay device receives data transmitted from the monitoring target device, generates first data from the received data, and transmits the first data to the server device. At this time, the data relay device does not retransmit the first data even if transmission to the server device fails. The data relay device also generates second data based on the received data and transmits the second data to the server device. At this time, the data relay device retransmits the second data if the transmission to the server device fails. By providing two data transmission methods, that is, the transmission of the first data without retransmission and the transmission of the second data with retransmission, the data relay device provides a suitable transmission to the server device for the type of data, etc. Data transmission can be realized. Note that the first data may include a plurality of types of data with different transmission cycles, uses, data structures, and the like. Similarly, the second data may include multiple types of data with different transmission cycles, uses, data structures, and the like.

また本発明においてデータ中継装置は、監視対象装置から受信したデータを所定期間に亘って蓄積したデータを、再送信を行う第2データとしてサーバ装置へ送信する。これにより再送信されなかった第1データを含む蓄積データを第2データとしてサーバ装置へ送信することができ、サーバ装置は受信できなかった第1データを取得することができる。 Further, in the present invention, the data relay apparatus transmits data received from the monitoring target apparatus accumulated over a predetermined period to the server apparatus as second data to be retransmitted. Thereby, the stored data including the first data that has not been retransmitted can be transmitted to the server device as the second data, and the server device can acquire the first data that has not been received.

また本発明においてデータ中継装置は、監視対象装置から受信したデータに基づいて、監視対象装置の状態変化に係るデータを生成し、生成したデータを第2データとしてサーバ装置へ送信する。これにより、監視対象装置の状態変化をサーバ装置へ確実に送信することができる。 Also, in the present invention, the data relay device generates data related to the state change of the monitoring target device based on the data received from the monitoring target device, and transmits the generated data to the server device as the second data. Accordingly, it is possible to reliably transmit the state change of the monitored device to the server device.

また本発明においてデータ中継装置は、監視対象装置から受信したデータの所定位置から抽出したデータを第1データとする。またデータ中継装置は、受信したデータの所定位置から監視対象装置の状態を示すデータを抽出し、時系列的に抽出した複数のデータに基づいて監視対象装置の状態変化に係るデータを生成する。これにより監視対象装置から送信するデータには複数種のデータを含むことができ、データ中継装置は監視対象装置から受信したデータの所定位置から第1データ及び第2データを生成することができる。 Further, in the present invention, the data relay device uses data extracted from a predetermined position of the data received from the monitoring target device as the first data. The data relay device also extracts data indicating the state of the monitored device from a predetermined position in the received data, and generates data related to the state change of the monitored device based on a plurality of data extracted in time series. As a result, the data transmitted from the monitoring target device can include a plurality of types of data, and the data relay device can generate the first data and the second data from the predetermined position of the data received from the monitoring target device.

また本発明においては、データ中継装置の記憶部は、第1データを記憶し、第1データの送信後には送信の成否に関わらず、この第1データを消去する。これにより、再送信が行われない第1データが記憶され続けて記憶部の記憶容量を圧迫することを防止できる。 Further, in the present invention, the storage unit of the data relay device stores the first data, and deletes the first data after the transmission of the first data regardless of success or failure of the transmission. As a result, it is possible to prevent the storage capacity of the storage unit from being squeezed by continuing to store the first data that is not retransmitted.

また本発明においてデータ中継装置は、不揮発性の記憶部に第2データ又は第2データを生成するためのデータを記憶する。データ中継装置は、送信に成功するまで第2データ又は第2データを生成するためのデータを記憶し、送信に成功した後でデータを消去する。これにより、再送信を行う必要がある第2データが消失することを防止できる。 Further, in the present invention, the data relay device stores the second data or data for generating the second data in the nonvolatile storage unit. The data relay device stores the second data or data for generating the second data until the transmission succeeds, and erases the data after the transmission succeeds. This can prevent the second data that needs to be retransmitted from being lost.

また本発明においては、監視対象装置に係る第1データ及び第2データをデータ中継装置から受信したサーバ装置が、受信した第1データ及び第2データを記憶する。サーバ装置は、記憶した第1データ及び第2データを端末装置へ送信する。端末装置は、サーバ装置からの第1データ及び第2データを受信し、監視対象に係る情報を表示部に表示する。これにより、サーバ装置は監視対象装置に係るデータを蓄積し、ユーザは端末装置を利用してサーバに蓄積されたデータを閲覧することができる。 Further, in the present invention, the server device that receives the first data and second data relating to the monitored device from the data relay device stores the received first data and second data. The server device transmits the stored first data and second data to the terminal device. The terminal device receives the first data and the second data from the server device, and displays information related to the monitored object on the display unit. As a result, the server device accumulates data related to the monitoring target device, and the user can browse the data accumulated in the server using the terminal device.

また本発明においてサーバ装置は、端末装置からの要求に応じて第1データ又は第2データを送信する。端末装置は、サーバ装置へ第1データ又は第2データの送信を要求し、要求に応じてサーバ装置から第1データ又は第2データを受信する都度、表示部の表示を更新する。これにより、端末装置はサーバ装置が蓄積したデータを取得して、監視対象装置に関する情報表示を行うことができる。 Also, in the present invention, the server device transmits the first data or the second data in response to a request from the terminal device. The terminal device requests the server device to transmit the first data or the second data, and updates the display on the display unit each time the first data or the second data is received from the server device in response to the request. As a result, the terminal device can acquire data accumulated by the server device and display information about the monitored device.

また本発明においてサーバ装置は、送信失敗によりデータ中継装置から送信されなかった第1データを、データ中継装置が送信する第2データに基づいて補完する。これによりサーバ装置は、再送信が行われない第1データについて第2データに基づく補完により取得することができ、監視対象装置に係るデータを確実に記憶して蓄積することができる。 Further, in the present invention, the server device complements the first data that has not been transmitted from the data relay device due to a transmission failure, based on the second data transmitted by the data relay device. Accordingly, the server device can acquire the first data that is not retransmitted by complementing the second data, and can reliably store and accumulate the data related to the monitoring target device.

本発明による場合は、データ種別等に応じた方法でデータ送受信を行うことができる。 According to the present invention, data transmission/reception can be performed by a method according to the data type or the like.

本実施の形態に係る監視システムの概要を説明するための模式図である。BRIEF DESCRIPTION OF THE DRAWINGS It is a schematic diagram for demonstrating the outline|summary of the monitoring system which concerns on this Embodiment. 本実施の形態に係るゲートウェイの構成を示すブロック図である。3 is a block diagram showing the configuration of a gateway according to this embodiment; FIG. 本実施の形態に係るサーバ装置の構成を示すブロック図である。1 is a block diagram showing the configuration of a server device according to an embodiment; FIG. 本実施の形態に係る端末装置の構成を示すブロック図である。2 is a block diagram showing the configuration of a terminal device according to this embodiment; FIG. 印刷設備がゲートウェイへ送信するデータの構成を説明するための模式図である。FIG. 4 is a schematic diagram for explaining the structure of data that the printing equipment transmits to the gateway; ゲートウェイのログ記憶部に記憶されるログの一例を示す模式図である。4 is a schematic diagram showing an example of a log stored in a log storage unit of a gateway; FIG. ゲートウェイが送信するリアルタイムデータの構成を説明するための模式図である。FIG. 4 is a schematic diagram for explaining the configuration of real-time data transmitted by a gateway; ゲートウェイが送信する加工データの構成を説明するための模式図である。FIG. 4 is a schematic diagram for explaining a configuration of processed data transmitted by a gateway; ゲートウェイが送信する過去ログデータの構成を説明するための模式図である。FIG. 4 is a schematic diagram for explaining the configuration of past log data transmitted by a gateway; サーバ装置の印刷設備DBの構成を説明するための模式図である。4 is a schematic diagram for explaining the configuration of a printing facility DB of the server device; FIG. 端末装置による印刷設備に関する情報のリアルタイム表示の一例を示す模式図である。FIG. 4 is a schematic diagram showing an example of real-time display of information on printing equipment by a terminal device; 端末装置による印刷設備に関する情報の稼働状況表示の一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of an operating status display of information about printing equipment by a terminal device; 端末装置による印刷設備に関する情報の期間表示の一例を示す模式図である。FIG. 5 is a schematic diagram showing an example of period display of information about printing equipment by a terminal device; 本実施の形態に係る印刷設備が行うデータ送信処理の手順を示すフローチャートである。4 is a flow chart showing the procedure of data transmission processing performed by the printing equipment according to the embodiment; 本実施の形態に係るゲートウェイが行うデータ受信処理の手順を示すフローチャートである。4 is a flow chart showing the procedure of data reception processing performed by the gateway according to the present embodiment; 本実施の形態に係るゲートウェイが行うリアルタイムデータの送信処理の手順を示すフローチャートである。6 is a flow chart showing the procedure of transmission processing of real-time data performed by the gateway according to the present embodiment; 本実施の形態に係るゲートウェイが行う加工データの送信処理の手順を示すフローチャートである。6 is a flow chart showing a procedure of transmission processing of processed data performed by the gateway according to the present embodiment; 本実施の形態に係るゲートウェイが行う過去ログデータの送信処理の手順を示すフローチャートである。7 is a flow chart showing a procedure of transmission processing of past log data performed by the gateway according to the present embodiment; 本実施の形態に係るサーバ装置が行う処理の手順を示すフローチャートである。4 is a flow chart showing the procedure of processing performed by the server device according to the present embodiment; 本実施の形態に係る端末装置が行う処理の手順を示すフローチャートである。4 is a flow chart showing the procedure of processing performed by the terminal device according to the present embodiment;

本発明の実施形態に係る監視システムの具体例を、以下に図面を参照しつつ説明する。なお、本発明はこれらの例示に限定されるものではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 A specific example of a monitoring system according to an embodiment of the present invention will be described below with reference to the drawings. The present invention is not limited to these examples, but is indicated by the scope of the claims, and is intended to include all modifications within the scope and meaning equivalent to the scope of the claims.

<システム概要>
図1は、本実施の形態に係る監視システムの概要を説明するための模式図である。本実施の形態に係る監視システムは、工場1に設置された一又は複数の印刷設備2の状態を遠隔監視するシステムである。なお本実施の形態においては、監視対象装置として工場1の印刷設備2を例に監視システムの構成を説明するが、監視対象装置は工場1の印刷設備2に限らず、種々の装置であってよい。例えば監視対象装置は、人が装着するウェアラブル端末等の装置であってもよい。
<System Overview>
FIG. 1 is a schematic diagram for explaining an outline of a monitoring system according to this embodiment. A monitoring system according to the present embodiment is a system for remotely monitoring the status of one or a plurality of printing facilities 2 installed in a factory 1 . In the present embodiment, the configuration of the monitoring system will be described using the printing equipment 2 of the factory 1 as an example of the equipment to be monitored. good. For example, the monitored device may be a device such as a wearable terminal worn by a person.

工場1は、例えば紙媒体に対して文字又は画像等の印刷を行って書籍又はポスター等を生成する工場である。工場1には、紙媒体への印刷を行うための印刷設備2が設けられる。印刷設備2には、印刷用のインク又はトナー等を蓄積するタンク、紙媒体を搬送するためのローラ機構、紙媒体への印刷を行う印刷機構、これらの動作を制御する制御機構、並びに、これら動作に係る温度等を検知するセンサ等が含まれ得る。印刷設備2は、1つの工場1に複数が設けられてよい。 A factory 1 is, for example, a factory that prints characters, images, or the like on paper media to produce books, posters, or the like. A factory 1 is provided with printing equipment 2 for printing on paper media. The printing equipment 2 includes a tank for accumulating ink or toner for printing, a roller mechanism for conveying paper media, a printing mechanism for printing on paper media, a control mechanism for controlling these operations, and these Sensors and the like may be included to sense temperature and the like associated with operation. A plurality of printing facilities 2 may be provided in one factory 1 .

本実施の形態に係る印刷設備2は、工場1内に設けられた通信線を介してデータの送受信を行う通信機能を備えている。一又は複数の印刷設備2は、通信線を介して工場1内に設けられたゲートウェイ3に接続されている。なお図1においては、複数の印刷設備2がバス型に接続された構成が示されているが、これに限るものではなく、例えば複数の印刷設備2がゲートウェイ3を中心にスター型に接続されてもよい。また印刷設備2及びゲートウェイ3は、有線通信ではなく、無線通信を行ってもよい。 The printing equipment 2 according to this embodiment has a communication function for transmitting and receiving data via a communication line provided in the factory 1 . One or more printing facilities 2 are connected to a gateway 3 provided in the factory 1 via communication lines. Although FIG. 1 shows a configuration in which a plurality of printing facilities 2 are connected in a bus configuration, the configuration is not limited to this. For example, a plurality of printing facilities 2 are connected in a star configuration around a gateway 3. may Also, the printing equipment 2 and the gateway 3 may perform wireless communication instead of wired communication.

各印刷設備2は、例えばインク又はトナー等の残量をセンサで検知した検知結果の数値情報、装置の温度又は湿度等をセンサで検知した検知結果の数値情報、及び、各機構の動作状態を示すフラグ情報等の種々の情報を含むデータをゲートウェイ3へ送信する。本実施の形態において印刷設備2が送信するデータには、数値情報及びフラグ情報が含まれる。各印刷設備2は、このデータ送信を所定周期(例えば数秒~数十秒に1回の周期)で繰り返し行っている。 Each printing equipment 2, for example, the numerical information of the detection result of detecting the remaining amount of ink or toner by the sensor, the numerical information of the detection result of detecting the temperature or humidity of the device by the sensor, and the operating state of each mechanism. Data including various information such as flag information to indicate is transmitted to the gateway 3 . Data transmitted by the printing equipment 2 in this embodiment includes numerical information and flag information. Each printing equipment 2 repeats this data transmission at a predetermined cycle (for example, once every several seconds to several tens of seconds).

ゲートウェイ3は、工場1内に設けられ、工場1内の通信線を介して一又は複数の印刷設備2との間で通信を行うことができる。またゲートウェイ3は、例えば携帯電話通信網又は無線LAN(Local Area Network)等を利用した無線通信により、サーバ装置4との間で通信を行うことができる。ただしゲートウェイ3及びサーバ装置4は、有線通信を行ってもよい。ゲートウェイ3は、印刷設備2が周期的に送信するデータを受信し、受信したデータをサーバ装置4へ送信する処理を行う。本実施の形態においてゲートウェイ3は、印刷設備2から受信したデータに基づいて、(1)リアルタイムデータの送信、(2)加工データの送信、(3)過去ログデータの送信の3種のデータ送信をサーバ装置4に対して行う。 The gateway 3 is provided in the factory 1 and can communicate with one or a plurality of printing facilities 2 via communication lines within the factory 1 . Also, the gateway 3 can communicate with the server device 4 by wireless communication using, for example, a mobile phone communication network or a wireless LAN (Local Area Network). However, the gateway 3 and the server device 4 may perform wired communication. The gateway 3 receives data periodically transmitted by the printing equipment 2 and performs processing for transmitting the received data to the server device 4 . In this embodiment, the gateway 3 transmits three types of data based on the data received from the printing equipment 2: (1) transmission of real-time data, (2) transmission of processed data, and (3) transmission of past log data. to the server device 4 .

(1)リアルタイムデータの送信
ゲートウェイ3は、印刷設備2のデータ送信周期と同程度の周期(例えば数秒~数十秒に1回の周期)で、印刷設備2からの受信データをサーバ装置4へ送信する。ゲートウェイ3は、印刷設備2からの受信データに含まれる数値情報及びフラグ情報を取得し、複数の印刷設備2に関して取得した複数の情報を含む1つの送信データを生成してサーバ装置4へ送信する。なおリアルタイムデータには、フラグ情報を含まなくてもよい。
(1) Transmission of real-time data The gateway 3 sends the data received from the printing equipment 2 to the server device 4 at a period similar to the data transmission period of the printing equipment 2 (for example, once every several seconds to several tens of seconds). Send. The gateway 3 acquires numerical information and flag information included in the received data from the printing equipment 2, generates one piece of transmission data containing a plurality of pieces of information acquired regarding the plurality of printing equipment 2, and transmits the data to the server device 4. . Real-time data may not include flag information.

(2)加工データの送信
ゲートウェイ3は、印刷設備2から時系列的に受信した複数のデータに含まれるフラグ情報を参照し、フラグ情報に示される印刷設備2の状態の変化の有無を判定する。ゲートウェイ3は、フラグ情報の変化を示すデータを生成し、これを加工データとしてサーバ装置4へ送信する。ゲートウェイ3は、リアルタイムデータの送信周期より長い周期(例えば数十秒~数分に1回の周期)で、印刷設備2の状態変化を示す加工データをサーバ装置4へ送信する。
(2) Transmitting processed data The gateway 3 refers to flag information included in a plurality of data received in chronological order from the printing equipment 2, and determines whether or not there is a change in the state of the printing equipment 2 indicated by the flag information. . The gateway 3 generates data indicating changes in the flag information and transmits this to the server device 4 as processed data. The gateway 3 transmits processed data indicating changes in the state of the printing equipment 2 to the server device 4 at a cycle longer than the transmission cycle of real-time data (for example, once every several tens of seconds to several minutes).

(3)過去ログデータの送信
ゲートウェイ3は、印刷設備2からの受信データに含まれる数値情報及びフラグ情報を所定期間(例えば数時間~数日)に亘って記憶する。ゲートウェイ3は、この所定期間を周期として、記憶した全ての情報を過去ログデータとしてサーバ装置4へ送信する。過去ログデータの送信完了後、ゲートウェイ3は、記憶していた過去ログデータを消去してよい。
(3) Transmission of past log data The gateway 3 stores numerical information and flag information included in the data received from the printing equipment 2 for a predetermined period (for example, several hours to several days). The gateway 3 transmits all the stored information as past log data to the server device 4 with this predetermined period as a cycle. After completing transmission of the past log data, the gateway 3 may erase the stored past log data.

サーバ装置4はゲートウェイ3からのデータを受信した場合に、受信完了の通知をゲートウェイ3へ与える。この通知の有無によりゲートウェイ3は、データの送信に成功したか又は失敗したかを判定することができる。ゲートウェイ3は、サーバ装置4へのデータ送信に失敗した場合、データの再送信を行うことができる。ただし本実施の形態に係るゲートウェイ3は、上記のリアルタイムデータについては、データ送信に失敗しても再送信を行わない。ゲートウェイ3は、加工データ及び過去ログデータについては、データ送信に失敗した場合に再送信を行う。なおゲートウェイ3及びサーバ装置4による通信の失敗の要因は、どのようなものであってもよい。 When the server device 4 receives the data from the gateway 3, it gives the gateway 3 a notice of completion of reception. Based on the presence or absence of this notification, the gateway 3 can determine whether the data transmission has succeeded or failed. The gateway 3 can resend the data when the data transmission to the server device 4 fails. However, the gateway 3 according to the present embodiment does not retransmit the above real-time data even if the data transmission fails. The gateway 3 retransmits the processed data and the past log data when the data transmission fails. The cause of communication failure by the gateway 3 and the server device 4 may be of any kind.

サーバ装置4は、例えば工場1の外部、例えばデータセンター等に設置される。サーバ装置4は、有線又は無線の通信を介して、ゲートウェイ3及び端末装置5等との間でデータの送受信を行うことができる。本実施の形態に係るサーバ装置4は、ゲートウェイ3から送信されるデータを受信し、受信したデータを記憶して蓄積する。サーバ装置4は、1つの工場1に係るデータのみではなく、複数の工場1に係るデータを蓄積してよい。 The server device 4 is installed, for example, outside the factory 1, for example, in a data center or the like. The server device 4 can transmit and receive data to and from the gateway 3, the terminal device 5, and the like via wired or wireless communication. The server device 4 according to the present embodiment receives data transmitted from the gateway 3, and stores and accumulates the received data. The server device 4 may store not only data relating to one factory 1 but also data relating to a plurality of factories 1 .

本実施の形態に係るサーバ装置4は、ゲートウェイ3から所定の周期で送信される上記のリアルタイムデータを受信する都度、受信したリアルタイムデータに含まれる一又は複数の印刷設備2の数値情報及びフラグ情報を取得し、取得したこれらの情報を記憶する。本実施の形態においては、ゲートウェイ3はリアルタイムデータの送信に失敗しても再送信を行わない。このためサーバ装置4が受信して記憶するリアルタイムデータには、時系列的に欠損が生じる可能性がある。そこで本実施の形態に係るサーバ装置4は、受信できなかったリアルタイムデータに係る数値情報及びフラグ情報は、その後に受信する加工データ及び過去ログデータを基に補完する。ただしサーバ装置4は、リアルタイムデータを記憶するのではなく、過去ログデータを記憶しておく構成であってもよい。 Each time the server device 4 according to the present embodiment receives the above-described real-time data transmitted from the gateway 3 at a predetermined cycle, the numerical value information and flag information of one or more printing facilities 2 included in the received real-time data and store the obtained information. In this embodiment, the gateway 3 does not retransmit real-time data even if it fails to transmit. Therefore, the real-time data received and stored by the server device 4 may be lost in time series. Therefore, the server device 4 according to the present embodiment supplements numerical information and flag information related to real-time data that could not be received based on processed data and past log data that are received thereafter. However, the server device 4 may be configured to store past log data instead of storing real-time data.

またサーバ装置4は、蓄積した印刷設備2に関する情報を、ユーザが利用する端末装置5に提供する。サーバ装置4は、端末装置5からの要求に応じて、蓄積した情報から必要な情報を抽出し、抽出した情報を含むデータを端末装置5へ送信する。端末装置5は、パーソナルコンピュータ、スマートフォン又はタブレット型端末等であり、通信機能及びユーザインタフェースを備える汎用的な情報処理装置であってよい。ユーザは、例えば端末装置5のインターネットブラウザ等のアプリケーションプログラムを利用してサーバ装置4へアクセスし、ブラウザ上に表示される種々のメニュー等を選択することで、所望の工場1の所望の印刷設備2についての情報を端末装置5に表示させることができる。 The server device 4 also provides the terminal device 5 used by the user with the accumulated information on the printing equipment 2 . The server device 4 extracts necessary information from the accumulated information in response to a request from the terminal device 5 and transmits data including the extracted information to the terminal device 5 . The terminal device 5 is a personal computer, a smart phone, a tablet terminal, or the like, and may be a general-purpose information processing device having a communication function and a user interface. The user accesses the server device 4 using an application program such as an Internet browser of the terminal device 5, for example, and selects various menus displayed on the browser to select the desired printing facility of the desired factory 1. 2 can be displayed on the terminal device 5 .

例えば、ユーザは特定の印刷設備2のインク又はトナー等の残量を端末装置5にリアルタイム表示することができる。この場合、端末装置5からサーバ装置4へリアルタイム表示の要求が与えられ、この要求に応じてサーバ装置4がゲートウェイ3から受信したリアルタイムデータを端末装置5へ送信することにより、端末装置5においてリアルタイム表示が実現される。また例えば、ユーザは印刷設備2のインク又はトナー等の1ヶ月間の残量の変化を端末装置5に表示することができる。この場合、端末装置5からサーバ装置4へ1ヶ月間の残量表示の要求が与えられ、この要求に応じてサーバ装置4が蓄積した1ヶ月間の情報を取得して端末装置5へ送信することにより、端末装置5において1ヶ月間の残量表示が実現される。なお、上記の端末装置5による情報表示は一例であって、これに限るものではない。 For example, the user can display the amount of ink, toner, or the like remaining in a particular printing facility 2 on the terminal device 5 in real time. In this case, a request for real-time display is given from the terminal device 5 to the server device 4, and in response to this request, the server device 4 transmits the real-time data received from the gateway 3 to the terminal device 5, so that the terminal device 5 can display real-time data. Display is realized. Further, for example, the user can display on the terminal device 5 the change in the remaining amount of ink, toner, or the like in the printing equipment 2 for one month. In this case, the terminal device 5 requests the server device 4 to display the remaining amount for one month. As a result, the terminal device 5 can display the remaining amount for one month. It should be noted that the information display by the terminal device 5 is an example, and the present invention is not limited to this.

また本実施の形態に係る監視システムでは、ユーザは端末装置5を用いて印刷設備2の遠隔制御を行うことができる。例えばユーザは、端末装置5を用いて印刷設備2の動作停止の制御命令等を与えることができる。端末装置5は、ユーザの操作に基づいて受け付けた制御命令をサーバ装置4へ送信する。サーバ装置4は、端末装置5から受信した制御命令をゲートウェイ3へ送信する。ゲートウェイ3は、受信した制御命令を、制御対象の印刷設備2へ送信する。制御命令を受信した印刷設備2は、受信した制御命令に応じた制御を行う。 Further, in the monitoring system according to this embodiment, the user can remotely control the printing equipment 2 using the terminal device 5 . For example, the user can use the terminal device 5 to issue a control command or the like to stop the operation of the printing equipment 2 . The terminal device 5 transmits the received control command to the server device 4 based on the user's operation. The server device 4 transmits the control command received from the terminal device 5 to the gateway 3 . The gateway 3 transmits the received control command to the printing equipment 2 to be controlled. The printing equipment 2 that has received the control command performs control according to the received control command.

<装置構成>
図2は、本実施の形態に係るゲートウェイ3の構成を示すブロック図である。本実施の形態に係るゲートウェイ3は、処理部(プロセッサ)31、記憶部(ストレージ)32、送受信バッファ33、第1通信部(トランシーバ)34及び第2通信部(トランシーバ)35等を備えて構成されている。処理部31は、CPU(Central Processing Unit)又はMPU(Micro-Processing Unit)等の演算処理装置を用いて構成されている。処理部31は、記憶部32に記憶されたプログラム32aを読み出して実行することにより、印刷設備2とサーバ装置4との間のデータ送受信を中継するための種々の処理を行う。
<Device configuration>
FIG. 2 is a block diagram showing the configuration of the gateway 3 according to this embodiment. The gateway 3 according to the present embodiment includes a processing unit (processor) 31, a storage unit (storage) 32, a transmission/reception buffer 33, a first communication unit (transceiver) 34, a second communication unit (transceiver) 35, and the like. It is The processing unit 31 is configured using an arithmetic processing device such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit). The processing unit 31 reads and executes a program 32 a stored in the storage unit 32 to perform various processes for relaying data transmission/reception between the printing equipment 2 and the server device 4 .

記憶部32は、例えばフラッシュメモリなどの不揮発性のメモリ素子、又は、ハードディスクなどの磁気記憶装置等を用いて構成されている。記憶部32は、処理部31が実行する各種のプログラム、及び、処理部31の処理に必要な各種のデータを記憶する。本実施の形態において記憶部32には、処理部31が実行するプログラム32aが記憶されると共に、印刷設備2から受信したメッセージに含まれる情報を所定期間に亘って記憶するログ記憶部32bが設けられている。 The storage unit 32 is configured using, for example, a non-volatile memory device such as a flash memory, or a magnetic storage device such as a hard disk. The storage unit 32 stores various programs executed by the processing unit 31 and various data required for processing by the processing unit 31 . In the present embodiment, the storage unit 32 stores a program 32a executed by the processing unit 31, and is provided with a log storage unit 32b that stores information included in messages received from the printing equipment 2 for a predetermined period of time. It is

プログラム32aは、例えばゲートウェイ3の製造段階において記憶部32に書き込まれてもよい。例えばプログラム32aは、サーバ装置4又はこれ以外のサーバ装置等が配信するものをゲートウェイ3が通信にて取得してもよい。例えばプログラム32aは、メモリカード又は光ディスク等の記録媒体99に記録されたプログラム32aをゲートウェイ3が読み出して記憶部32に記憶してもよい。例えばプログラム32aは、記録媒体99に記録されたものを書込装置が読み出してゲートウェイ3の記憶部32に書き込んでもよい。プログラム32aは、ネットワークを介した配信の態様で提供されてもよく、記録媒体99に記録された態様で提供されてもよい。 The program 32a may be written into the storage unit 32, for example, during the manufacturing stage of the gateway 3. FIG. For example, the program 32a may be distributed by the server device 4 or another server device or the like, and the gateway 3 may obtain the program through communication. For example, the program 32a may be stored in the storage unit 32 after the gateway 3 reads the program 32a recorded on the recording medium 99 such as a memory card or an optical disk. For example, the program 32 a may be recorded in the recording medium 99 and read by the writing device and written in the storage unit 32 of the gateway 3 . The program 32 a may be provided in the form of distribution via a network, or may be provided in the form of being recorded on the recording medium 99 .

送受信バッファ33は、例えばSRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等の揮発性のメモリ素子を用いて構成されている。送受信バッファ33は、第1通信部34及び第2通信部35が受信した受信データ、及び、処理部31が生成した送信データ等を一時的に記憶する。 The transmission/reception buffer 33 is configured using a volatile memory device such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The transmission/reception buffer 33 temporarily stores the reception data received by the first communication unit 34 and the second communication unit 35, the transmission data generated by the processing unit 31, and the like.

第1通信部34は、工場1内に設けられた通信線を介して一又は複数の印刷設備2に接続されている。ゲートウェイ3及び印刷設備2の接続には、例えばRS-232C等の規格が採用され得るが、これに限るものではなく、種々の規格が用いられてよい。第1通信部34は、印刷設備2から送信されたデータを受信し、送受信バッファ33を介して、受信データを処理部31へ与える。また第1通信部34は、送受信バッファ33を介して処理部31から与えられた送信データを、印刷設備2へ送信する。 The first communication unit 34 is connected to one or a plurality of printing equipments 2 via communication lines provided inside the factory 1 . Standards such as RS-232C, for example, may be adopted for connection between the gateway 3 and the printing equipment 2, but the present invention is not limited to this, and various standards may be used. The first communication unit 34 receives data transmitted from the printing equipment 2 and provides the received data to the processing unit 31 via the transmission/reception buffer 33 . The first communication unit 34 also transmits the transmission data given from the processing unit 31 via the transmission/reception buffer 33 to the printing equipment 2 .

第2通信部35は、インターネット、無線LAN及び携帯電話通信網等を含むネットワークNを介して、種々の装置との間で通信を行うことができる。本実施の形態においては、第2通信部35は、ネットワークNを介してサーバ装置4との通信を行う。第2通信部35は、送受信バッファ33を介して処理部31から与えられたデータをサーバ装置4へ送信する。また第2通信部35は、サーバ装置4から受信した受信データを、送受信バッファ33を介して、処理部31へ与える。 The second communication unit 35 can communicate with various devices via a network N including the Internet, wireless LAN, mobile phone communication network, and the like. In this embodiment, the second communication unit 35 communicates with the server device 4 via the network N. FIG. The second communication unit 35 transmits data given from the processing unit 31 to the server device 4 via the transmission/reception buffer 33 . The second communication unit 35 also provides the reception data received from the server device 4 to the processing unit 31 via the transmission/reception buffer 33 .

また本実施の形態に係るゲートウェイ3の処理部31には、記憶部32に記憶されたプログラム32aを処理部31が読み出して実行することにより、受信処理部31a、データ取得部31b、データ生成部31c及び送信処理部31d等がソフトウェア的な機能ブロックとして実現される。受信処理部31aは、第1通信部34が印刷設備2から受信した受信データを送受信バッファ33から取得することによって、印刷設備2からのデータを受信する処理を行う。同様に受信処理部31aは、第2通信部35がサーバ装置4から受信した受信データを送受信バッファ33から取得することによって、サーバ装置4からのデータを受信する処理を行う。 In the processing unit 31 of the gateway 3 according to the present embodiment, the processing unit 31 reads out and executes the program 32a stored in the storage unit 32, so that the reception processing unit 31a, the data acquisition unit 31b, the data generation unit 31c, transmission processing unit 31d, etc. are implemented as software functional blocks. The reception processing unit 31 a performs processing for receiving data from the printing equipment 2 by acquiring the reception data received from the printing equipment 2 by the first communication unit 34 from the transmission/reception buffer 33 . Similarly, the reception processing unit 31 a performs processing for receiving data from the server device 4 by acquiring the reception data received from the server device 4 by the second communication unit 35 from the transmission/reception buffer 33 .

データ取得部31bは、受信処理部31aが受信した印刷設備2からのデータに含まれる数値情報及びフラグ情報を抽出して取得する処理を行う。データ取得部31bが取得する数値情報及びフラグ情報は、リアルタイムデータとして送信される情報であり、ログ情報として記憶される情報でもある。データ取得部31bは、取得した数値情報及びフラグ情報に、このデータの送信元の印刷設備2を識別する識別情報及びこのデータを受信した日時の情報等を付して、記憶部32のログ記憶部32bに記憶する。 The data acquisition unit 31b extracts and acquires numerical information and flag information included in the data from the printing equipment 2 received by the reception processing unit 31a. The numerical value information and flag information acquired by the data acquisition unit 31b are information transmitted as real-time data, and are also information stored as log information. The data acquisition unit 31b attaches, to the acquired numerical information and flag information, identification information for identifying the printing equipment 2 that sent this data, information on the date and time when this data was received, etc., and stores the log in the storage unit 32. Stored in section 32b.

データ生成部31cは、データ取得部31bが取得した情報及びログ記憶部32bに記憶された情報に基づいて、サーバ装置4へ送信するデータを生成する処理を行う。データ生成部31cは、データ取得部31bが取得した数値情報及びフラグ情報にヘッダ及びフッタ等を付すことで送信用のリアルタイムデータを生成する。またデータ生成部31cは、データ取得部31bがフラグ情報を取得する都度、1つ前に受信したデータのフラグ情報との比較を行い、フラグ情報に変化が生じていたデータを抽出することによって、フラグ情報の変化を示す(印刷設備2の状態変化を示す)加工データを生成する。またデータ生成部31cは、所定期間に亘ってログ記憶部32bに蓄積された複数の情報を読み出して一まとめにすることによって過去ログデータを生成する。 The data generation unit 31c performs processing for generating data to be transmitted to the server device 4 based on the information acquired by the data acquisition unit 31b and the information stored in the log storage unit 32b. The data generation unit 31c generates real-time data for transmission by adding headers, footers, and the like to the numerical information and flag information acquired by the data acquisition unit 31b. Each time the data acquisition unit 31b acquires flag information, the data generation unit 31c compares the flag information with the flag information of the previously received data, and extracts data whose flag information has changed. Processed data indicating changes in the flag information (indicating changes in the state of the printing equipment 2) is generated. The data generation unit 31c also generates past log data by reading out and grouping together a plurality of pieces of information accumulated in the log storage unit 32b over a predetermined period.

送信処理部31dは、データ生成部31cが生成した送信用のデータを所定の周期でサーバ装置4へ送信する処理を行う。送信処理部31dは、送信用のデータを送受信バッファ33に記憶し、第2通信部35に送信命令を与えることで、このデータをサーバ装置4へ送信することができる。送信処理部31dは、例えば数秒~数十秒に1回の周期でリアルタイムデータの送信を行う。送信処理部31dは、例えば数十秒~数分に1回の周期で加工データの送信を行う。送信処理部31dは、例えば数時間~数日に1回の周期で過去ログデータの送信を行う。なおデータ生成部31cが各データを生成する周期は、各データの送信周期と同じであってよい。 The transmission processing unit 31d performs processing for transmitting the transmission data generated by the data generation unit 31c to the server device 4 at a predetermined cycle. The transmission processing unit 31 d stores data for transmission in the transmission/reception buffer 33 and can transmit this data to the server device 4 by giving a transmission command to the second communication unit 35 . The transmission processing unit 31d transmits real-time data, for example, once every several seconds to several tens of seconds. The transmission processing unit 31d transmits the processed data, for example, once every several tens of seconds to several minutes. The transmission processing unit 31d transmits past log data, for example, once every several hours to several days. Note that the cycle in which the data generator 31c generates each data may be the same as the transmission cycle of each data.

また送信処理部31dは、サーバ装置4へのデータの送信に失敗した場合に、このデータを再送信する処理を行う。サーバ装置4は、ゲートウェイ3からのデータの受信を完了した後、受信完了をゲートウェイ3へ通知する。ゲートウェイ3は、データの送信後から所定時間内にサーバ装置4から受信完了の通知を受信しない場合に、データの送信に失敗したと判断し、データの再送信を行う。ただし本実施の形態において送信処理部31dは、リアルタイムデータについては送信に失敗しても再送信は行わない。送信処理部31dは、加工データ及び過去ログデータについて、送信に失敗した場合に再送信を行う。 Further, when the transmission of data to the server device 4 fails, the transmission processing unit 31d performs processing for retransmitting the data. After completing the reception of the data from the gateway 3, the server device 4 notifies the gateway 3 of reception completion. If the gateway 3 does not receive a reception completion notification from the server device 4 within a predetermined time after the data transmission, the gateway 3 determines that the data transmission has failed and retransmits the data. However, in the present embodiment, the transmission processing unit 31d does not retransmit real-time data even if transmission fails. The transmission processing unit 31d retransmits the processed data and the past log data when the transmission fails.

図3は、本実施の形態に係るサーバ装置4の構成を示すブロック図である。本実施の形態に係るサーバ装置4は、処理部(プロセッサ)41、記憶部(ストレージ)42及び通信部(トランシーバ)43等を備えて構成されている。処理部41は、CPU又はMPU等の演算処理装置を用いて構成されている。処理部41は、記憶部42に記憶されたサーバプログラム42aを読み出して実行することにより、ゲートウェイ3から送信される印刷設備2に関するデータを蓄積する処理、及び、端末装置5へ印刷設備2に関するデータを送信する処理等の種々の処理を行う。 FIG. 3 is a block diagram showing the configuration of the server device 4 according to this embodiment. The server device 4 according to the present embodiment includes a processing unit (processor) 41, a storage unit (storage) 42, a communication unit (transceiver) 43, and the like. The processing unit 41 is configured using an arithmetic processing unit such as a CPU or MPU. The processing unit 41 reads out and executes a server program 42a stored in the storage unit 42 to store data related to the printing equipment 2 transmitted from the gateway 3 and to transfer data related to the printing equipment 2 to the terminal device 5. various processing such as processing for transmitting

記憶部42は、例えばハードディスク等の大容量の記憶装置を用いて構成されている。記憶部42は、処理部41が実行する各種のプログラム、及び、処理部41の処理に必要な各種のデータを記憶する。本実施の形態において記憶部42は、処理部41が実行するサーバプログラム42aを記憶している。また記憶部42には、印刷設備2に関するデータを蓄積する印刷設備DB(データベース)42bが設けられている。 The storage unit 42 is configured using, for example, a large-capacity storage device such as a hard disk. The storage unit 42 stores various programs executed by the processing unit 41 and various data required for processing by the processing unit 41 . In the present embodiment, the storage unit 42 stores a server program 42a executed by the processing unit 41. FIG. The storage unit 42 is also provided with a printing facility DB (database) 42b that stores data relating to the printing facility 2 .

サーバプログラム42aは、例えばサーバ装置4の製造段階において記憶部42に書き込まれてもよい。例えばサーバプログラム42aは、遠隔の他のサーバ装置等が配信するものをサーバ装置4が通信にて取得してもよい。例えばサーバプログラム42aは、メモリカード又は光ディスク等の記録媒体98に記録されたサーバプログラム42aをサーバ装置4が読み出して記憶部42に記憶してもよい。例えばサーバプログラム42aは、記録媒体98に記録されたものを書込装置が読み出してサーバ装置4の記憶部42に書き込んでもよい。サーバプログラム42aは、ネットワークを介した配信の態様で提供されてもよく、記録媒体98に記録された態様で提供されてもよい。 The server program 42a may be written in the storage unit 42 during the manufacturing stage of the server device 4, for example. For example, the server program 42a may be delivered by another remote server device or the like, and the server device 4 may acquire the program through communication. For example, the server program 42a may be stored in the storage unit 42 after the server device 4 reads the server program 42a recorded in the recording medium 98 such as a memory card or an optical disc. For example, the server program 42 a may be recorded in the recording medium 98 and read by a writing device and written in the storage unit 42 of the server device 4 . The server program 42 a may be provided in the form of distribution via a network, or may be provided in the form of being recorded on the recording medium 98 .

印刷設備DB42bは、ゲートウェイ3から受信したデータに含まれる数値情報及びフラグ情報等の情報、即ち印刷設備2に関する情報を記憶する。これらの印刷設備2に関する情報は、工場1を識別する識別情報、印刷設備2を識別する識別情報、及び、ゲートウェイ3が情報を取得した日時等の情報に対応付けて記憶される。印刷設備DB42bは、例えば数年~数十年の長期間に亘って、これらの情報を記憶する。 The printing equipment DB 42b stores information such as numerical information and flag information included in the data received from the gateway 3, that is, information related to the printing equipment 2. FIG. The information about the printing equipment 2 is stored in association with information such as identification information identifying the factory 1, identification information identifying the printing equipment 2, and information such as the date and time when the gateway 3 acquired the information. The printing facility DB 42b stores this information for a long period of time, for example several years to several decades.

通信部43は、インターネット、無線LAN及び携帯電話通信網等を含むネットワークNを介して、種々の装置との間で通信を行うことができる。本実施の形態においては、通信部43は、ネットワークNを介してゲートウェイ3及び端末装置5等との通信を行う。通信部43は、処理部41から与えられたデータを他の装置へ送信すると共に、他の装置から受信したデータを処理部41へ与える。 The communication unit 43 can communicate with various devices via a network N including the Internet, wireless LAN, mobile phone communication network, and the like. In this embodiment, the communication unit 43 communicates with the gateway 3, the terminal device 5, and the like via the network N. FIG. The communication unit 43 transmits data received from the processing unit 41 to other devices, and provides the processing unit 41 with data received from other devices.

なお記憶部42は、サーバ装置4に接続された外部記憶装置であってよい。またサーバ装置4は、複数のコンピュータを含んで構成されるマルチコンピュータであってよく、ソフトウェアによって仮想的に構築された仮想マシンであってもよい。またサーバ装置4は、上記の構成に限定されず、例えば可搬型の記憶媒体に記憶された情報を読み取る読取部、操作入力を受け付ける入力部、又は、画像を表示する表示部等を含んでもよい。 Note that the storage unit 42 may be an external storage device connected to the server device 4 . The server device 4 may be a multicomputer including a plurality of computers, or may be a virtual machine virtually constructed by software. The server device 4 is not limited to the above configuration, and may include, for example, a reading unit for reading information stored in a portable storage medium, an input unit for receiving operation inputs, or a display unit for displaying images. .

また本実施の形態に係るサーバ装置4の処理部41には、記憶部42に記憶されたサーバプログラム42aを処理部41が読み出して実行することにより、受信処理部41a、送信処理部41b、補完部41c及びデータ加工部41d等がソフトウェア的な機能ブロックとして実現される。受信処理部41aは、ネットワークNを介してゲートウェイ3から送信されたデータを通信部43にて受信する処理を行う。受信処理部41aは、ゲートウェイ3から送信されるリアルタイムデータを受信した場合、このデータに含まれる情報を記憶部42の印刷設備DB42bに記憶する。また受信処理部41aは、ゲートウェイ3から送信される加工データ及び過去ログデータを受信した場合、このデータに含まれる情報を補完部41cへ与える。 Further, in the processing unit 41 of the server device 4 according to the present embodiment, the server program 42a stored in the storage unit 42 is read out and executed by the processing unit 41, whereby the reception processing unit 41a, the transmission processing unit 41b, the complement The unit 41c, the data processing unit 41d, and the like are implemented as software functional blocks. The reception processing unit 41 a performs processing for receiving data transmitted from the gateway 3 via the network N at the communication unit 43 . When receiving the real-time data transmitted from the gateway 3, the reception processing unit 41a stores the information included in this data in the printing facility DB 42b of the storage unit 42. FIG. Further, when the reception processing unit 41a receives the processed data and the past log data transmitted from the gateway 3, the reception processing unit 41a provides the information contained in the data to the complementing unit 41c.

送信処理部41bは、印刷設備DB42bに記憶された種々のデータを、通信部43にてネットワークNを介して端末装置5へ送信する処理を行う。送信処理部41bは、例えば端末装置5からの要求に応じて、所定の期間及び所定の印刷設備2に関する情報を印刷設備DB42bから抽出し、抽出した情報を含むデータを要求元の端末装置5へ送信する。また例えば、端末装置5にて印刷設備2に関する情報のリアルタイム表示を行う場合、送信処理部41bは、受信処理部41aが受信したデータに含まれる情報を取得し、この情報が必要な端末装置5へ送信してもよい。 The transmission processing unit 41b performs processing for transmitting various data stored in the printing equipment DB 42b to the terminal device 5 via the network N by the communication unit 43. FIG. For example, in response to a request from the terminal device 5, the transmission processing unit 41b extracts information about a predetermined period of time and a predetermined printing facility 2 from the printing facility DB 42b, and sends data including the extracted information to the terminal device 5 that made the request. Send. Further, for example, when displaying information about the printing equipment 2 in real time on the terminal device 5, the transmission processing unit 41b acquires the information included in the data received by the reception processing unit 41a, and can be sent to

補完部41cは、受信処理部41aが受信したゲートウェイ3からの加工データ及び過去ログデータに基づいて、印刷設備DB42bに記憶される情報を補完する処理を行う。ゲートウェイ3が送信するリアルタイムデータは送信失敗時に再送信を行わないため、リアルタイムデータに基づいて印刷設備DB42bに記憶される情報には欠損が生じる可能性がある。例えば補完部41cは、ゲートウェイ3にて所定期間に亘って蓄積された過去ログデータを受信し、この過去ログデータの中から印刷設備DB42bに記憶されていない情報を抽出し、抽出した情報を印刷設備DB42bに記憶することで、印刷設備DB42bの欠損情報を補完することができる。 The complementing unit 41c performs a process of complementing the information stored in the printing facility DB 42b based on the processed data and past log data from the gateway 3 received by the reception processing unit 41a. Since the real-time data sent by the gateway 3 is not resent when the transmission fails, there is a possibility that the information stored in the printing equipment DB 42b based on the real-time data will be lost. For example, the complementing unit 41c receives past log data accumulated over a predetermined period in the gateway 3, extracts information not stored in the printing facility DB 42b from this past log data, and prints the extracted information. By storing in the equipment DB 42b, the missing information in the printing equipment DB 42b can be complemented.

データ加工部41dは、ゲートウェイ3から受信したデータに対して、種々の加工処理を行う。例えばデータ加工部41dは、過去ログデータに含まれる特定の印刷設備2に関する数値情報を取得し、取得した複数の数値情報について平均値又は偏差値等のデータを生成することができる。また例えばデータ加工部41dは、複数の数値情報をグラフ化した画像データを生成することができる。データ加工部41dにより生成されるデータは上記のものに限らず、種々のデータがデータ加工部41dの加工により生成され得る。 The data processing unit 41d performs various processing on the data received from the gateway 3. FIG. For example, the data processing unit 41d can acquire numerical information about a specific printing facility 2 included in past log data, and generate data such as an average value or a deviation value for a plurality of acquired numerical information. Further, for example, the data processing unit 41d can generate image data in which a plurality of numerical information are graphed. The data generated by the data processing unit 41d is not limited to the above, and various data can be generated by the processing of the data processing unit 41d.

図4は、本実施の形態に係る端末装置5の構成を示すブロック図である。本実施の形態に係る端末装置5は、処理部(プロセッサ)51、記憶部(ストレージ)52、通信部(トランシーバ)53、表示部54及び操作部55等を備えて構成されている。処理部51は、CPU又はMPU等の演算処理装置を用いて構成されている。処理部51は、記憶部52に記憶されたプログラム52aを読み出して実行することにより、サーバ装置4との通信処理及び印刷設備2に関する情報を表示する処理等の種々の処理を行う。 FIG. 4 is a block diagram showing the configuration of the terminal device 5 according to this embodiment. The terminal device 5 according to the present embodiment includes a processing section (processor) 51, a storage section (storage) 52, a communication section (transceiver) 53, a display section 54, an operation section 55, and the like. The processing unit 51 is configured using an arithmetic processing unit such as a CPU or MPU. The processing unit 51 reads and executes a program 52 a stored in the storage unit 52 to perform various processes such as communication processing with the server device 4 and processing for displaying information about the printing equipment 2 .

記憶部52は、例えばフラッシュメモリなどの不揮発性のメモリ素子を用いて構成されている。記憶部52は、処理部51が実行する各種のプログラム、及び、処理部51の処理に必要な各種のデータを記憶する。本実施の形態において記憶部52は、処理部51が実行するプログラム52aを記憶している。プログラム52aは、例えば端末装置5の製造段階において記憶部52に書き込まれてもよい。例えばプログラム52aは、遠隔のサーバ装置等が配信するものを端末装置5が通信にて取得してもよい。例えばプログラム52aは、メモリカード又は光ディスク等の記録媒体97に記録されたプログラム52aを端末装置5が読み出して記憶部52に記憶してもよい。例えばプログラム52aは、記録媒体97に記録されたものを書込装置が読み出して端末装置5の記憶部52に書き込んでもよい。プログラム52aは、ネットワークを介した配信の態様で提供されてもよく、記録媒体97に記録された態様で提供されてもよい。 The storage unit 52 is configured using a non-volatile memory element such as a flash memory, for example. The storage unit 52 stores various programs executed by the processing unit 51 and various data necessary for the processing of the processing unit 51 . In the present embodiment, the storage unit 52 stores a program 52a executed by the processing unit 51. FIG. The program 52a may be written into the storage unit 52 during the manufacturing stage of the terminal device 5, for example. For example, the program 52a may be distributed by a remote server device or the like and acquired by the terminal device 5 through communication. For example, the program 52a may be stored in the storage unit 52 after the terminal device 5 reads the program 52a recorded in the recording medium 97 such as a memory card or an optical disc. For example, the program 52 a may be recorded in the recording medium 97 and read by a writing device and written in the storage unit 52 of the terminal device 5 . The program 52 a may be provided in the form of distribution via a network, or may be provided in the form of being recorded on the recording medium 97 .

通信部53は、インターネット、無線LAN及び携帯電話通信網等を含むネットワークNを介して、種々の装置との間で通信を行うことができる。本実施の形態においては、通信部53は、ネットワークNを介してサーバ装置4との通信を行う。通信部53は、処理部51から与えられたデータをサーバ装置4へ送信すると共に、サーバ装置4から受信したデータを処理部51へ与える。 The communication unit 53 can communicate with various devices via a network N including the Internet, wireless LAN, mobile phone communication network, and the like. In this embodiment, the communication unit 53 communicates with the server device 4 via the network N. FIG. The communication unit 53 transmits data provided from the processing unit 51 to the server device 4 and provides data received from the server device 4 to the processing unit 51 .

表示部54は、液晶ディスプレイ等を用いて構成されており、処理部51の処理に基づいて種々の画像及び文字等を表示する。操作部55は、例えばタッチパネル、キーボード又はマウス等の入力デバイスによりユーザの操作を受け付け、受け付けた操作を処理部51へ通知する。 The display unit 54 is configured using a liquid crystal display or the like, and displays various images, characters, etc. based on the processing of the processing unit 51 . The operation unit 55 receives a user's operation using an input device such as a touch panel, keyboard, or mouse, and notifies the processing unit 51 of the received operation.

また本実施の形態に係る端末装置5は、記憶部52に記憶されたプログラム52aを処理部51が読み出して実行することにより、受信処理部51a及び表示処理部51b等がソフトウェア的な機能ブロックとして実現される。受信処理部51aは、ネットワークNを介してサーバ装置4から送信されたデータを通信部53にて受信する処理を行う。受信処理部51aは、受信したデータに含まれる情報を表示処理部51bへ与える。 Further, in the terminal device 5 according to the present embodiment, the processing unit 51 reads out and executes the program 52a stored in the storage unit 52, so that the reception processing unit 51a, the display processing unit 51b, etc. are configured as software functional blocks. Realized. The reception processing unit 51 a performs processing for receiving data transmitted from the server device 4 via the network N by the communication unit 53 . The reception processing unit 51a provides the information included in the received data to the display processing unit 51b.

表示処理部51bは、受信処理部51aが受信したデータに含まれる情報に基づいて、印刷設備2に関する情報を表示部54に表示する処理を行う。本実施の形態において表示処理部51bは、リアルタイムデータに基づくリアルタイム表示、加工データに基づくフラグ情報表示、及び、過去ログデータに基づく期間表示の3種の表示を行うことができる。 The display processing unit 51b performs processing for displaying information about the printing equipment 2 on the display unit 54 based on the information included in the data received by the reception processing unit 51a. In the present embodiment, the display processing unit 51b can perform three types of display: real-time display based on real-time data, flag information display based on processed data, and period display based on past log data.

<データ中継処理>
図5は、印刷設備2がゲートウェイ3へ送信するデータの構成を説明するための模式図である。本実施の形態において印刷設備2が送信するデータは、ヘッダ部、データ部及びフッタ部が連結された構造をなしている。ヘッダ部には、例えばこのデータの送信元である印刷設備2のID又はアドレス等の識別情報と、データの送信先となるゲートウェイ3のID又はアドレス等の識別情報とが含まれる。データ部には、印刷設備2に関する種々の情報が格納される。フッタ部には、例えばこのデータの誤り検出又は誤り訂正のための情報等が含まれる。
<Data relay processing>
FIG. 5 is a schematic diagram for explaining the structure of data that the printing equipment 2 transmits to the gateway 3. As shown in FIG. The data transmitted by the printing equipment 2 in this embodiment has a structure in which a header portion, a data portion, and a footer portion are connected. The header portion includes, for example, identification information such as the ID or address of the printing equipment 2 that is the source of this data, and identification information such as the ID or address of the gateway 3 that is the destination of the data. Various information about the printing equipment 2 is stored in the data section. The footer portion includes, for example, information for error detection or error correction of this data.

印刷設備2の送信データは、例えば予め定められた所定のデータ長であり、先頭部分がヘッダ部に割り当てられ、末尾部分がフッタ部に割り当てられ、これらの間の部分がデータ部に割り当てられる。所定データ長のデータ部をどのように利用してどのような情報を送信するかは、印刷設備2毎に異なっていてよい。図示の例では、印刷設備Aは、データ部を3つの領域に分け、1番目の領域に数値情報を格納し、2番目の領域にフラグ情報を格納し、3番目の領域に数値情報を格納している。また印刷設備Bは、データ部を2つの領域に分け、1番目の領域に数値情報を格納し、2番目の領域にフラグ情報を格納している。 The transmission data of the printing equipment 2 has, for example, a predetermined data length, the leading portion is assigned to the header portion, the trailing portion is assigned to the footer portion, and the portion between them is assigned to the data portion. How the data portion of the predetermined data length is used and what kind of information is transmitted may differ for each printing facility 2 . In the illustrated example, the printing equipment A divides the data section into three areas, storing numerical information in the first area, flag information in the second area, and numerical information in the third area. are doing. Printing equipment B divides the data section into two areas, the first area stores numerical information, and the second area stores flag information.

各印刷設備2は、例えばセンサの検出結果に係る数値情報と、自身の動作状態等を示すフラグ情報とを取得し、図示の形式のデータを生成して、所定の周期でゲートウェイ3へ送信する。ゲートウェイ3は、各印刷設備2が送信するデータのデータ部にどのような情報が格納されているかの対応を示すテーブル等の情報を記憶部32に予め記憶している。ゲートウェイ3のデータ取得部31bは、このテーブルに基づいて受信データの適切な位置から数値情報及びフラグ情報を取得する。 Each printing equipment 2 acquires, for example, numerical information related to the detection result of the sensor and flag information indicating its own operating state, etc., generates data in the illustrated format, and transmits the data to the gateway 3 at a predetermined cycle. . The gateway 3 pre-stores in the storage unit 32 information such as a table showing the correspondence between what kind of information is stored in the data portion of the data transmitted by each printing equipment 2 . The data acquisition unit 31b of the gateway 3 acquires numerical information and flag information from appropriate positions of the received data based on this table.

図6は、ゲートウェイ3のログ記憶部32bに記憶されるログの一例を示す模式図である。本実施の形態に係るゲートウェイ3は、工場1内に設けられた印刷設備2からのデータを受信し、受信したデータに含まれる情報を取得して記憶部32のログ記憶部32bに記憶する。ログ記憶部32bには、データ送信元の印刷設備2を識別するID等の情報と、受信データのデータ部に格納された数値情報及びフラグ情報と、このデータを受信した受信日時の情報とが対応付けて記憶される。なおゲートウェイ3は、印刷設備2のIDを受信したデータのヘッダ部から取得することができる。またゲートウェイ3は、日時を計時する機能を備えており、この計時機能によりデータの受信日時の情報を取得することができる。 FIG. 6 is a schematic diagram showing an example of a log stored in the log storage unit 32b of the gateway 3. As shown in FIG. The gateway 3 according to the present embodiment receives data from the printing equipment 2 provided in the factory 1, acquires information contained in the received data, and stores the information in the log storage section 32b of the storage section 32. FIG. The log storage unit 32b contains information such as an ID for identifying the printing equipment 2 that sent the data, numerical information and flag information stored in the data portion of the received data, and information on the date and time when the data was received. They are stored in association with each other. The gateway 3 can acquire the ID of the printing equipment 2 from the header portion of the received data. The gateway 3 also has a function of measuring the date and time, and can obtain information on the date and time when the data was received by this function.

図7は、ゲートウェイ3が送信するリアルタイムデータの構成を説明するための模式図である。本実施の形態に係るゲートウェイ3は、所定周期(例えば数秒~数十秒に1回の周期)で、ログ記憶部32bに記憶された情報を基に、図示の構成のリアルタイムデータを生成してサーバ装置4へ送信する。リアルタイムデータには、ゲートウェイ3を識別するゲートウェイIDと、このリアルタイムデータを送信する日時情報と、一又は複数の印刷設備2に関する情報とが含まれている。 FIG. 7 is a schematic diagram for explaining the structure of real-time data transmitted by the gateway 3. As shown in FIG. The gateway 3 according to the present embodiment generates real-time data having the configuration shown in the drawing based on the information stored in the log storage unit 32b at a predetermined cycle (for example, once every several seconds to several tens of seconds). Send to the server device 4 . The real-time data includes a gateway ID for identifying the gateway 3, date and time information for transmitting this real-time data, and information on one or more printing facilities 2. FIG.

リアルタイムデータに含まれる各印刷設備2に関する情報には、印刷設備2を識別するID等の情報と、印刷設備2からの受信データのデータ部の情報と、このデータを受信した受信日時の情報とがそれぞれ含まれており、これらはログ記憶部32bに記憶された情報でもある。リアルタイムデータに含まれる印刷設備2に関する情報の数は、最大でゲートウェイ3に接続された印刷設備2の数である。即ち、リアルタイムデータには、各印刷設備2について最新の情報が1つずつ含まれる。 The information about each printing equipment 2 included in the real-time data includes information such as an ID for identifying the printing equipment 2, information on the data part of the data received from the printing equipment 2, and information on the reception date and time when this data was received. , which are also information stored in the log storage unit 32b. The number of pieces of information about printing equipment 2 included in real-time data is the maximum number of printing equipment 2 connected to gateway 3 . That is, the real-time data includes one latest piece of information for each printing facility 2 .

ゲートウェイ3は、リアルタイムデータの送信タイミングに至った場合、ログ記憶部32bに記憶された複数の情報の中から、各印刷設備2について最新の情報を取得し、取得した複数の情報を含むリアルタイムデータを生成してサーバ装置4へ送信する。なおこのときにゲートウェイ3は、前回のリアルタイムデータの送信後に印刷設備2から受信したデータに含まれる情報を今回のリアルタイムデータに含む情報の対象とする。印刷設備2について最新の情報が既に以前のリアルタイムデータとして送信済みである場合、この情報は今回のリアルタイムデータに含まれる必要はない。 When the real-time data transmission timing comes, the gateway 3 acquires the latest information about each printing equipment 2 from among the multiple pieces of information stored in the log storage unit 32b, and transmits real-time data including the acquired pieces of information. is generated and transmitted to the server device 4 . At this time, the gateway 3 treats the information included in the data received from the printing equipment 2 after the transmission of the previous real-time data as the information included in the current real-time data. If the latest information about the printing facility 2 has already been sent as previous real-time data, this information need not be included in the current real-time data.

ゲートウェイ3は、生成したリアルタイムデータを送受信バッファ33に格納し、第2通信部35に送信命令を与えることでリアルタイムデータをサーバ装置4へ送信する。サーバ装置4はゲートウェイ3からのデータを受信した場合に受信完了を通知し、この通知の有無によりゲートウェイ3は自らが送信したデータがサーバ装置4にて受信されたか否か、即ちデータ送信の正否を判定することができる。ただし、本実施の形態においてゲートウェイ3は、リアルタイムデータの送信に失敗した場合であっても、このリアルタイムデータの再送信は行わない。ゲートウェイ3は、送受信バッファ33に格納したリアルタイムデータを、送信の成否に関わらず消去する。 The gateway 3 stores the generated real-time data in the transmission/reception buffer 33 and transmits the real-time data to the server device 4 by giving a transmission command to the second communication unit 35 . When the server device 4 receives data from the gateway 3, the server device 4 notifies reception completion. Based on the presence or absence of this notification, the gateway 3 determines whether the data transmitted by itself has been received by the server device 4, that is, whether the data transmission is correct or not. can be determined. However, in this embodiment, the gateway 3 does not retransmit the real-time data even if transmission of the real-time data fails. The gateway 3 erases the real-time data stored in the transmission/reception buffer 33 regardless of success or failure of transmission.

図8は、ゲートウェイ3が送信する加工データの構成を説明するための模式図である。本実施の形態に係るゲートウェイ3は、リアルタイムデータの送信周期より長い周期(例えば数十秒~数分に1回の周期)で、ログ記憶部32bに記憶された情報を基に、図示の加工データを生成してサーバ装置4へ送信する。加工データには、ゲートウェイ3を識別するゲートウェイIDと、前回の加工データの送信日時の情報と、今回の加工データの送信日時の情報と、一又は複数の印刷設備2に関する情報とが含まれている。加工データに含まれる各印刷設備2に関する情報には、リアルタイムデータと同様に、印刷設備2を識別するID等の情報と、印刷設備2からの受信データのデータ部の情報と、このデータを受信した受信日時の情報とがそれぞれ含まれている。 FIG. 8 is a schematic diagram for explaining the configuration of processed data transmitted by the gateway 3. As shown in FIG. The gateway 3 according to the present embodiment processes the illustrated data based on the information stored in the log storage unit 32b at a cycle longer than the transmission cycle of real-time data (for example, once every several tens of seconds to several minutes). Data is generated and transmitted to the server device 4 . The processed data includes a gateway ID that identifies the gateway 3, information on the transmission date and time of the previous processed data, information on the transmission date and time of the current processed data, and information on one or more printing equipment 2. there is The information about each printing facility 2 contained in the processed data includes information such as an ID for identifying the printing facility 2, information on the data part of the data received from the printing facility 2, and information on the data received from the printing facility 2, as in the real-time data. and information on the received date and time.

ゲートウェイ3は、前回の加工データの送信後に印刷設備2から受信したデータを対象に、このデータに含まれるフラグ情報を調べる。ゲートウェイ3は、各印刷設備2について時系列にフラグ情報を比較し、フラグ情報が変化したタイミングの情報をログ記憶部32bから全て抽出する。ゲートウェイ3は、抽出した全ての情報を含む加工データを生成してサーバ装置4へ送信する。このため加工データには、1つの印刷設備2に関して複数の情報が含まれ得る。 The gateway 3 examines the flag information contained in the data received from the printing equipment 2 after the transmission of the previous processed data. The gateway 3 compares the flag information in chronological order for each printing facility 2 and extracts all the information on the timing at which the flag information changes from the log storage unit 32b. The gateway 3 generates processed data including all the extracted information and transmits the processed data to the server device 4 . Thus, processing data may contain multiple pieces of information about one printing facility 2 .

ゲートウェイ3は、生成した加工データをサーバ装置4へ送信し、サーバ装置4からの受信完了の通知を受信したか否かに基づいて、加工データの送信の正否を判定する。本実施の形態においてゲートウェイ3は、加工データの送信に失敗した場合、加工データの再送信を行う。なお加工データの再送信は、送信に失敗したと判定した際に遅滞なく行ってよい。ただし本実施の形態に係るゲートウェイ3は、次の周期で送信する加工データに、送信に失敗した加工データの情報を含めることで、加工データの再送信を行う。 The gateway 3 transmits the generated processed data to the server device 4, and determines whether the transmission of the processed data is correct based on whether or not a reception completion notification has been received from the server device 4. In this embodiment, the gateway 3 retransmits the processed data when transmission of the processed data fails. Note that the retransmission of the processed data may be performed without delay when it is determined that the transmission has failed. However, the gateway 3 according to the present embodiment retransmits the processed data by including the information of the processed data whose transmission has failed in the processed data to be transmitted in the next cycle.

図9は、ゲートウェイ3が送信する過去ログデータの構成を説明するための模式図である。本実施の形態に係るゲートウェイ3は、加工データの送信周期より長い周期(例えば数時間~数日に1回の周期)で、ログ記憶部32bに記憶された情報を基に、図示の過去ログデータを生成してサーバ装置4へ送信する。本実施の形態においては、過去ログデータは印刷設備2毎に分割して生成され、ゲートウェイ3は印刷設備2毎の過去ログデータをサーバ装置4へ送信する。各過去ログデータには、印刷設備2を識別するID等の情報と、この過去ログデータに含まれる情報の日時範囲(最初のデータ受信時刻及び最後のデータ受信時刻)と、この印刷設備2に関してログ記憶部32bに記憶されたデータ部及びデータ受信時刻の情報とがそれぞれ含まれている。 FIG. 9 is a schematic diagram for explaining the configuration of past log data transmitted by the gateway 3. As shown in FIG. The gateway 3 according to the present embodiment, based on the information stored in the log storage unit 32b at a cycle longer than the transmission cycle of the processed data (for example, once a cycle of several hours to several days), the past log shown in the figure Data is generated and transmitted to the server device 4 . In the present embodiment, the past log data is divided for each printing facility 2 and generated, and the gateway 3 transmits the past log data for each printing facility 2 to the server device 4 . Each past log data includes information such as an ID that identifies the printing facility 2, the date and time range of the information contained in this past log data (first data reception time and last data reception time), and information about this printing facility 2 The data portion stored in the log storage portion 32b and the information on the data reception time are included respectively.

ゲートウェイ3は、前回の過去ログデータの送信後に印刷設備2から受信したデータを対象に、全ての受信データに含まれる情報を過去ログデータとしてサーバ装置4へ送信する。なおゲートウェイ3は、過去ログデータの送信後、ログ記憶部32bに記憶された情報を全て消去してもよい。ログ記憶部32bの情報を消去する場合、ゲートウェイ3は、ログ記憶部32bに記憶された全ての情報を含む過去ログデータを生成して送信すればよい。 The gateway 3 targets the data received from the printing equipment 2 after the previous transmission of past log data, and transmits information contained in all received data to the server device 4 as past log data. Note that the gateway 3 may erase all the information stored in the log storage unit 32b after transmitting the past log data. When erasing the information in the log storage unit 32b, the gateway 3 may generate and transmit past log data including all the information stored in the log storage unit 32b.

ゲートウェイ3は、生成した過去ログデータをサーバ装置4へ送信し、サーバ装置4からの受信完了の通知を受信したか否かに基づいて、過去ログデータの送信の正否を判定する。本実施の形態においてゲートウェイ3は、過去ログデータの送信に失敗した場合、過去ログデータの再送信を行う。過去ログデータの再送信は、加工データの再送信と同様に、次の周期で送信する過去ログデータに、送信に失敗した過去ログデータの情報を含めることで行われる。ただしゲートウェイ3は、過去ログデータの送信に失敗したと判定した場合に、遅滞なくこの過去ログデータを再送信してもよい。 The gateway 3 transmits the generated past log data to the server device 4 and determines whether or not the transmission of the past log data is correct based on whether or not a reception completion notification has been received from the server device 4 . In the present embodiment, the gateway 3 retransmits the past log data when transmission of the past log data fails. Similar to retransmission of processed data, retransmission of past log data is performed by including information of past log data that has failed to be transmitted in past log data to be transmitted in the next cycle. However, the gateway 3 may resend the past log data without delay when it determines that the past log data has failed to be sent.

図10は、サーバ装置4の印刷設備DB42bの構成を説明するための模式図である。本実施の形態に係るサーバ装置4は、ゲートウェイ3から送信されるデータを受信し、受信したデータに含まれる情報を取得して印刷設備DB42bに記憶する。印刷設備DB42bには、ゲートウェイ3を識別するゲートウェイIDと、印刷設備2を識別するID等の情報と、印刷設備2から受信したデータのデータ部の情報と、このデータをゲートウェイ3が受信した受信日時の情報とが対応付けて記憶される。 FIG. 10 is a schematic diagram for explaining the configuration of the printing facility DB 42b of the server device 4. As shown in FIG. The server device 4 according to the present embodiment receives data transmitted from the gateway 3, acquires information included in the received data, and stores the information in the printing facility DB 42b. The printing equipment DB 42b contains information such as a gateway ID for identifying the gateway 3, information such as an ID for identifying the printing equipment 2, information on the data part of data received from the printing equipment 2, and data received by the gateway 3. Date and time information is stored in association with this.

本実施の形態においてサーバ装置4は、ゲートウェイ3が送信するリアルタイムデータを受信する都度、受信したリアルタイムデータに含まれる情報を取得して印刷設備DB42bに記憶する。またサーバ装置4は、ゲートウェイ3からサーバ装置4へのリアルタイムデータの送信に失敗し、受信できなかったリアルタイムデータに関する情報を、それ以後に受信する加工データ又は過去ログデータに含まれる情報を用いて補完し、印刷設備DB42bに情報を蓄積する。なおサーバ装置4は、リアルタイムデータの受信毎に情報を印刷設備DB42bに記憶するのではなく、過去ログデータの受信毎に情報を印刷設備DB42bに記憶してもよい。 In this embodiment, every time the server device 4 receives real-time data transmitted by the gateway 3, it acquires information contained in the received real-time data and stores it in the printing equipment DB 42b. In addition, the server device 4 fails to transmit real-time data from the gateway 3 to the server device 4, and uses information contained in processed data or past log data received thereafter to obtain information about real-time data that could not be received. The information is complemented and stored in the printing equipment DB 42b. Note that the server apparatus 4 may store information in the printing facility DB 42b each time past log data is received instead of storing information in the printing facility DB 42b each time real-time data is received.

<情報表示>
ゲートウェイ3から得られる印刷設備2に関する情報を印刷設備DB42bに記憶したサーバ装置4は、端末装置5からの要求に応じて印刷設備DB42bに記憶された情報を提供する。端末装置5は、サーバ装置4から提供される情報に基づいて、印刷設備2に関する情報表示を行う。本実施の形態において端末装置5では、印刷設備2に関する情報を、(1)リアルタイム表示、(2)稼働状況表示、及び、(3)期間表示の3種の方法で表示することができる。
<Information display>
The server device 4 that stores the information about the printing facility 2 obtained from the gateway 3 in the printing facility DB 42b provides the information stored in the printing facility DB 42b in response to a request from the terminal device 5. FIG. The terminal device 5 displays information about the printing equipment 2 based on the information provided by the server device 4 . In the present embodiment, the terminal device 5 can display information about the printing equipment 2 in three ways: (1) real-time display, (2) operating status display, and (3) period display.

例えばユーザは、端末装置5に表示されたメニュー画面等において、表示方法の選択及び切替等の操作を行うことができる。またユーザは、情報を表示する印刷設備2を選択する操作を行うことができる。端末装置5が受け付けた表示方法及び表示対象等の選択内容は端末装置5からサーバ装置4へ送信され、サーバ装置4はユーザの選択に応じた印刷設備2の情報を印刷設備DB42bから取得して端末装置5へ送信する。サーバ装置4からの情報を受信した端末装置5は、ユーザにより選択された方法で印刷設備2に関する情報を表示する。 For example, the user can perform operations such as selection and switching of display methods on a menu screen or the like displayed on the terminal device 5 . Also, the user can perform an operation to select the printing equipment 2 for which information is to be displayed. The terminal device 5 transmits the selected contents of the display method and the display object received by the terminal device 5 to the server device 4, and the server device 4 acquires the information of the printing facility 2 according to the user's selection from the printing facility DB 42b. Send to the terminal device 5 . The terminal device 5 that has received the information from the server device 4 displays the information about the printing equipment 2 in a manner selected by the user.

(1)リアルタイム表示
図11は、端末装置5による印刷設備2に関する情報のリアルタイム表示の一例を示す模式図である。本例のリアルタイム表示においては、各印刷設備2に関するインク残量の数値情報が表示される。図示の例では、4つの印刷設備A~Dについてそれぞれ、インク残量を示すグラフと、これらの情報が取得された日時とが対応付けて表示されている。これらの情報の表示は、印刷設備2が送信するデータに含まれる数値情報に基づくものである。本例において印刷設備2が送信するデータには、印刷設備2のタンクに蓄積されたインクの残量をセンサ等にて検知した検知結果が数値情報に含まれているものとする。
(1) Real-Time Display FIG. 11 is a schematic diagram showing an example of real-time display of information about the printing facility 2 by the terminal device 5. As shown in FIG. In the real-time display of this example, numerical information on the remaining amount of ink for each printing facility 2 is displayed. In the illustrated example, for each of the four printing facilities A to D, a graph showing the remaining amount of ink and the date and time when this information was acquired are displayed in association with each other. The display of these information is based on the numerical information included in the data sent by the printing facility 2 . In this example, it is assumed that the data transmitted by the printing equipment 2 includes numerical information obtained by detecting the remaining amount of ink accumulated in the tank of the printing equipment 2 by a sensor or the like.

なお図示の例では、印刷設備A~Cについての情報取得日時は2019年4月15日の10時38分頃と表示されているが、印刷設備Dについての情報取得日時は2019年4月15日の4時12分41秒と表示されている。これは、印刷設備Dについての情報取得が4時12分41秒以降に行われておらず、印刷設備Dについての情報がリアルタイムで更新されていない事を示している。例えば通信の不具合等の要因により、印刷設備Dについての情報を取得できない状況が続いている場合に、このような表示がなされる可能性がある。 In the illustrated example, the information acquisition date and time for printing equipment A to C are displayed as around 10:38 on April 15, 2019, but the information acquisition date and time for printing equipment D is April 15, 2019. The date is displayed as 4:12:41. This indicates that the information about the printing equipment D has not been acquired after 4:12:41 and the information about the printing equipment D has not been updated in real time. For example, such a display may be made when the information about the printing equipment D cannot be acquired due to factors such as communication failure.

端末装置5によるリアルタイム表示は、ゲートウェイ3が送信するリアルタイムデータに基づいて行われる。端末装置5は、ゲートウェイ3によるリアルタイムデータの送信周期と同じ周期で、サーバ装置4に対しリアルタイムデータに含まれる情報の取得を要求する。サーバ装置4は、端末装置5からの要求に応じて、リアルタイムデータに含まれる情報を端末装置5へ送信する。このときにサーバ装置4は、端末装置5へ送信する情報を、ゲートウェイ3から受信したリアルタイムデータから直接的に取得してもよく、印刷設備DB42bから取得してもよい。端末装置5は、サーバ装置4からの情報を受信する都度、表示を更新し、最新の印刷設備2に関する数値情報をユーザに提供することができる。なお本例では、印刷設備2に関する数値情報に基づくリアルタイム表示を行っているが、フラグ情報に基づくリアルタイム表示を行ってもよい。またサーバ装置4は、端末装置5からの要求に応じて情報送信を行うのではなく、ゲートウェイ3からリアルタイムデータを受信する都度、受信したリアルタイムデータに含まれる情報を端末装置5へ送信してもよい。又は、サーバ装置4は、ゲートウェイ3によるリアルタイムデータの送信周期と同じ周期で、ゲートウェイ3から受信したリアルタイムデータに含まれる情報を端末装置5へ送信してもよい。 Real-time display by the terminal device 5 is performed based on real-time data transmitted by the gateway 3 . The terminal device 5 requests the server device 4 to acquire information contained in the real-time data at the same cycle as the transmission cycle of the real-time data by the gateway 3 . The server device 4 transmits information included in the real-time data to the terminal device 5 in response to a request from the terminal device 5 . At this time, the server device 4 may acquire the information to be transmitted to the terminal device 5 directly from the real-time data received from the gateway 3 or from the printing equipment DB 42b. The terminal device 5 can update the display each time it receives information from the server device 4 and provide the user with the latest numerical information on the printing equipment 2 . In this example, real-time display is performed based on numerical information regarding the printing equipment 2, but real-time display based on flag information may be performed. Further, the server device 4 may transmit information included in the received real-time data to the terminal device 5 each time real-time data is received from the gateway 3 instead of transmitting information in response to a request from the terminal device 5. good. Alternatively, the server device 4 may transmit the information included in the real-time data received from the gateway 3 to the terminal device 5 at the same cycle as the transmission cycle of the real-time data from the gateway 3 .

またゲートウェイ3によるリアルタイムデータの送信は、失敗による再送信が行われない。このためリアルタイム表示では、ゲートウェイ3がリアルタイムデータの送信に失敗した場合、端末装置5にて表示の更新がなされない。図11の印刷設備Dについての表示が、リアルタイムでの表示更新がなされていない状態である。このような場合に端末装置5は、リアルタイム表示の更新が滞っている旨を通知してもよい。端末装置5は、例えばリアルタイムデータの送信周期又はそれ以上の所定周期に亘ってリアルタイム表示の更新がなされていない場合に、表示が更新されていない旨を通知するメッセージ又はアイコン等を表示することができる。 Further, transmission of real-time data by the gateway 3 is not retransmitted due to failure. Therefore, in real-time display, if the gateway 3 fails to transmit real-time data, the terminal device 5 does not update the display. The display of the printing equipment D in FIG. 11 is in a state where the display is not updated in real time. In such a case, the terminal device 5 may notify that updating of the real-time display is delayed. For example, when the real-time display has not been updated for a transmission period of real-time data or a predetermined period longer than that, the terminal device 5 can display a message, an icon, or the like notifying that the display has not been updated. can.

リアルタイム表示が滞った場合であっても、その後にサーバ装置4が新たなリアルタイムデータを取得することによって、リアルタイム表示が再開される。図11に示す例では、印刷設備Dについての情報更新が4時12分41秒を最後に滞っているが、サーバ装置4が印刷設備Dについての新たなリアルタイムデータを取得した場合に、このリアルタイムデータを取得した日時の情報で表示が更新される。 Even if the real-time display is delayed, the real-time display is resumed after the server device 4 acquires new real-time data. In the example shown in FIG. 11, the last update of the information about the printing facility D is delayed at 4:12:41. The display is updated with information on the date and time when the data was acquired.

(2)稼働状況表示
図12は、端末装置5による印刷設備2に関する情報の稼働状況表示の一例を示す模式図である。稼働状況表示においては、各印刷設備2の状態が作動又は停止のいずれであるかを、横軸を時間とするタイミングチャートにて図示される。本例では、図中に描かれたハッチング付きの長方形により示される期間は、印刷設備2が作動状態であることを示している。これ以外の長方形が描かれていない期間は、印刷設備2が停止状態であることを示している。
(2) Operation Status Display FIG. 12 is a schematic diagram showing an example of an operation status display of information about the printing facility 2 by the terminal device 5. As shown in FIG. In the operation status display, whether the status of each printing facility 2 is active or stopped is shown in a timing chart with time on the horizontal axis. In this example, the periods indicated by the hatched rectangles drawn in the figure indicate that the printing facility 2 is in operation. A period in which no rectangle is drawn indicates that the printing equipment 2 is in a stopped state.

また印刷設備Cに関する表示には、その一部に欠損部分が存在する。図12においてこの欠損部分を、対角線を直線で結んだ長方形の領域として図示している。この欠損部分は、サーバ装置4が印刷設備Cに関するフラグ情報を得ることができなかったことを示している。またこのような欠損部分の表示を行うことによって、印刷設備Cが停止状態であるのか、又は、印刷設備Cに関するフラグ情報を取得できないのかを、ユーザに認識させることができる。 Also, the display of the printing facility C has a missing part. In FIG. 12, this missing portion is shown as a rectangular area with straight lines connecting the diagonals. This missing portion indicates that the server device 4 was unable to obtain the flag information regarding the printing equipment C. FIG. Also, by displaying the missing portion in this way, the user can recognize whether the printing equipment C is in a stopped state or whether the flag information regarding the printing equipment C cannot be acquired.

本例において、各印刷設備2が送信するデータに含まれるフラグ情報には、この印刷設備2が作動状態又は停止状態のいずれであるかを示すフラグが含まれている。端末装置5による稼働状況表示は、ゲートウェイ3が送信する加工データに含まれるフラグ情報に基づいて行われる。サーバ装置4は、ゲートウェイ3による加工データの送信周期と同じ周期で、ゲートウェイ3から受信した加工データに含まれる情報を端末装置5へ送信する。このときにサーバ装置4は、端末装置5へ送信する情報を、ゲートウェイ3から受信した加工データから直接的に取得してもよく、印刷設備DB42bから取得してもよい。本例においてサーバ装置4は、例えば受信した加工データから最新の情報を取得すると共に、所定期間に遡る情報を印刷設備DB42bから取得し、これら取得した情報をまとめて端末装置5へ送信することで、図示の稼働状況表示を行うことができる。端末装置5は、サーバ装置4による情報の送信に応じて表示を更新し、印刷設備2の動作状態が変化したタイミングをユーザに知らせることができる。 In this example, the flag information included in the data transmitted by each printing facility 2 includes a flag indicating whether this printing facility 2 is in an operating state or in a stopped state. The operation status display by the terminal device 5 is performed based on the flag information included in the processed data transmitted by the gateway 3 . The server device 4 transmits the information included in the processed data received from the gateway 3 to the terminal device 5 at the same cycle as the transmission cycle of the processed data from the gateway 3 . At this time, the server device 4 may acquire the information to be transmitted to the terminal device 5 directly from the processed data received from the gateway 3 or from the printing facility DB 42b. In this example, the server device 4 acquires, for example, the latest information from the received processed data, acquires information dating back to a predetermined period from the printing facility DB 42b, and collectively transmits the acquired information to the terminal device 5. , the operation status display shown in the figure can be performed. The terminal device 5 can update the display according to the transmission of information from the server device 4, and inform the user of the timing when the operating state of the printing facility 2 changes.

またサーバ装置4がフラグ情報を取得できずに適切な稼働状況表示を行うことができなかった欠損部分については、その後にサーバ装置4が取得した加工データ又は過去ログデータに含まれる情報に基づいて補完されて表示される。 In addition, regarding the missing part where the server device 4 could not acquire the flag information and could not display the appropriate operation status, based on the information included in the processed data or the past log data acquired by the server device 4 after that Complemented and displayed.

(3)期間表示
図13は、端末装置5による印刷設備2に関する情報の期間表示の一例を示す模式図である。期間表示においては、各印刷設備2の数値情報が、横軸を時間とするグラフにて図示される。本例では、所定期間に亘る各印刷設備2のインク残量の変化をグラフ表示している。期間表示として表示する印刷設備2及び期間は、端末装置5にてユーザが選択することが可能である。端末装置5はユーザが選択した印刷設備2及び期間の情報をサーバ装置4へ送信し、サーバ装置4は選択された印刷設備2及び期間に係る情報を印刷設備DB42bから取得して端末装置5へ送信する。
(3) Period Display FIG. 13 is a schematic diagram showing an example of period display of information about the printing equipment 2 by the terminal device 5 . In the period display, the numerical information of each printing facility 2 is illustrated in a graph with time on the horizontal axis. In this example, changes in the amount of ink remaining in each printing facility 2 over a predetermined period are displayed graphically. The printing facility 2 and the period to be displayed as the period display can be selected by the user on the terminal device 5 . The terminal device 5 transmits the information on the printing facility 2 and the period selected by the user to the server device 4, and the server device 4 acquires the information on the selected printing facility 2 and the period from the printing facility DB 42b and sends it to the terminal device 5. Send.

また印刷設備Cに関する表示には、その一部に欠損部分が存在する。図13においてこの欠損部分を、対角線を直線で結んだ長方形の領域として図示している。この欠損部分は、サーバ装置4が印刷設備Cに関する過去ログデータを得ることができなかったことを示している。本実施の形態においては、過去ログデータは送信に失敗した場合に再送信がなされる。サーバ装置4は、再送信された過去ログデータを取得した場合に、取得した過去ログデータに含まれる情報を用いて欠損部分を保管して表示する。 Also, the display of the printing facility C has a missing part. In FIG. 13, this missing portion is shown as a rectangular area with straight lines connecting the diagonals. This missing portion indicates that the server device 4 was unable to obtain the past log data regarding the printing equipment C. FIG. In this embodiment, past log data is retransmitted when transmission fails. When the server device 4 acquires the retransmitted past log data, the server device 4 uses the information included in the acquired past log data to store and display the missing portion.

なお本実施の形態において期間表示は、サーバ装置4がゲートウェイ3から新たなデータを受信した場合であっても、表示の更新はなされない。サーバ装置4は、端末装置5からの要求に応じて期間表示のためのデータを1度だけ送信する。その後は、端末装置5にて例えば期間の変更がなされた場合、又は、表示の更新の操作がなされた場合等に、端末装置5からサーバ装置4へ期間表示の要求が与えられ、この要求に応じてサーバ装置4が必要な情報を端末装置5へ送信し、端末装置5にて表示の更新が行われる。ただし、例えばサーバ装置4がゲートウェイ3からリアルタイムデータを受信する都度、最新の情報をサーバ装置4が端末装置5へ送信し、これを受信した端末装置5にて期間表示の更新が行われてもよい。 In this embodiment, the period display is not updated even when the server device 4 receives new data from the gateway 3 . The server device 4 transmits data for period display only once in response to a request from the terminal device 5 . Thereafter, when, for example, the period is changed on the terminal device 5, or when an operation to update the display is performed, the terminal device 5 requests the server device 4 to display the period. In response, the server device 4 transmits necessary information to the terminal device 5, and the terminal device 5 updates the display. However, for example, every time the server device 4 receives real-time data from the gateway 3, the server device 4 transmits the latest information to the terminal device 5, and even if the terminal device 5 that receives this information updates the period display. good.

なお、上記のリアルタイム表示、稼働状況表示及び期間表示のいずれの表示においても、端末装置5にて表示される表示画面の画像は、サーバ装置4が生成してもよく、端末装置5が生成してもよい。サーバ装置4が画像を生成する場合、サーバ装置4は印刷設備DB42bから取得した情報を用いて表示用の画像を生成し、生成した画像を端末装置5へ送信してもよい。端末装置5が画像を生成する場合、サーバ装置4は印刷設備DB42bから取得した情報を端末装置5へ送信し、サーバ装置4から受信した情報を用いて端末装置5が表示用の画像を生成してもよい。 In any of the real-time display, operating status display, and period display, the image of the display screen displayed on the terminal device 5 may be generated by the server device 4 or may be generated by the terminal device 5. may When the server device 4 generates an image, the server device 4 may generate an image for display using information acquired from the printing facility DB 42 b and transmit the generated image to the terminal device 5 . When the terminal device 5 generates an image, the server device 4 transmits information acquired from the printing equipment DB 42b to the terminal device 5, and the terminal device 5 generates an image for display using the information received from the server device 4. may

<フローチャート>
図14は、本実施の形態に係る印刷設備2が行うデータ送信処理の手順を示すフローチャートである。本実施の形態に係る印刷設備2は、所定の周期でゲートウェイ3への情報送信を繰り返し行っている。印刷設備2は、ゲートウェイ3へデータを送信するタイミングに至ったか否かを判定する(ステップS1)。データの送信タイミングに至っていない場合(S1:NO)、印刷設備2は、送信タイミングに至るまで待機する。ゲートウェイ3へのデータの送信タイミングに至った場合(S1:YES)、印刷設備2は、例えばセンサ等を用いることによって、インク残量等の数値情報を取得する(ステップS2)。また印刷設備2は、自身の動作状態を示すフラグ情報を取得する(ステップS3)。印刷設備2は、取得した数値情報及びフラグ情報に対して適宜のヘッダ部及びフッタ部を付すことにより送信用のデータを生成する(ステップS4)。印刷設備2は、生成したデータをゲートウェイ3へ送信し(ステップS5)、処理を終了する。
<Flowchart>
FIG. 14 is a flowchart showing the procedure of data transmission processing performed by the printing facility 2 according to this embodiment. The printing equipment 2 according to this embodiment repeatedly transmits information to the gateway 3 at a predetermined cycle. The printing equipment 2 determines whether or not the timing for transmitting data to the gateway 3 has come (step S1). If the data transmission timing has not come yet (S1: NO), the printing equipment 2 waits until the transmission timing comes. When it is time to send data to the gateway 3 (S1: YES), the printing equipment 2 acquires numerical information such as the remaining amount of ink by using a sensor or the like (step S2). The printing equipment 2 also acquires flag information indicating its own operating state (step S3). The printing equipment 2 generates data for transmission by attaching appropriate headers and footers to the obtained numerical information and flag information (step S4). The printing equipment 2 transmits the generated data to the gateway 3 (step S5), and ends the process.

図15は、本実施の形態に係るゲートウェイ3が行うデータ受信処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ3の処理部31の受信処理部31aは、第1通信部34にて印刷設備2から送信されるデータを受信したか否かを判定する(ステップS11)。データを受信していない場合(S11:NO)、受信処理部31aは、データを受信するまで待機する。印刷設備2からのデータを受信した場合(S11:YES)、受信処理部31aは、受信したデータの所定位置に含まれるデータ部を取得する(ステップS12)。受信処理部31aは、取得したデータ部に、このデータを受信した受信時刻情報を付与する(ステップS13)。受信処理部31aは、このデータを、送信元の印刷設備2のID等に対応付けて、記憶部32のログ記憶部32bに記憶し(ステップS14)、処理を終了する。 FIG. 15 is a flow chart showing the procedure of data reception processing performed by the gateway 3 according to this embodiment. The reception processing unit 31a of the processing unit 31 of the gateway 3 according to the present embodiment determines whether or not the first communication unit 34 has received data transmitted from the printing equipment 2 (step S11). If data has not been received (S11: NO), the reception processing unit 31a waits until data is received. When data is received from the printing equipment 2 (S11: YES), the reception processing unit 31a acquires the data part included in the predetermined position of the received data (step S12). The reception processing unit 31a adds reception time information at which this data was received to the acquired data portion (step S13). The reception processing unit 31a stores this data in the log storage unit 32b of the storage unit 32 in association with the ID, etc. of the printing equipment 2 that is the transmission source (step S14), and ends the process.

図16は、本実施の形態に係るゲートウェイ3が行うリアルタイムデータの送信処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ3は、所定の周期で印刷設備2に係るリアルタイムデータの送信を繰り返し行っている。ゲートウェイ3の処理部31の送信処理部31dは、サーバ装置4へリアルタイムデータを送信するタイミングに至ったか否かを判定する(ステップS21)。リアルタイムデータの送信タイミングに至っていない場合(S21:NO)、送信処理部31dは、送信タイミングに至るまで待機する。 FIG. 16 is a flow chart showing the procedure of real-time data transmission processing performed by the gateway 3 according to the present embodiment. The gateway 3 according to the present embodiment repeatedly transmits real-time data related to the printing equipment 2 at predetermined intervals. The transmission processing unit 31d of the processing unit 31 of the gateway 3 determines whether or not it is time to transmit real-time data to the server device 4 (step S21). If the real-time data transmission timing has not come yet (S21: NO), the transmission processing unit 31d waits until the transmission timing comes.

リアルタイムデータの送信タイミングに至った場合(S21:YES)、処理部31のデータ取得部31bは、前回のリアルタイムデータの送信後に印刷設備2から受信したデータを対象に、ログ記憶部32bから各印刷設備2付き1つずつの最新情報を取得する(ステップS22)。処理部31のデータ生成部31cは、ログ記憶部32bから取得した印刷設備2の情報に、ゲートウェイ3のID及び送信日時情報等を付して、サーバ装置4へ送信するリアルタイムデータを生成する(ステップS23)。送信処理部31dは、生成されたリアルタイムデータを送受信バッファ33に格納する(ステップS24)。送信処理部31dは、第2通信部35に送信命令を与えることによって、送受信バッファ33に格納されたリアルタイムデータをサーバ装置4へ送信する(ステップS25)。送信処理部31dは、リアルタイムデータがサーバ装置4にて受信されたか否かに関わらず、送受信バッファから送信済みのリアルタイムデータを消去し(ステップS26)、処理を終了する。 When the real-time data transmission timing has arrived (S21: YES), the data acquisition unit 31b of the processing unit 31 retrieves the data received from the printing equipment 2 after the previous real-time data transmission from the log storage unit 32b for each print. The latest information for each facility 2 is acquired (step S22). The data generation unit 31c of the processing unit 31 generates real-time data to be transmitted to the server device 4 by attaching the ID of the gateway 3, transmission date and time information, etc. to the information of the printing equipment 2 acquired from the log storage unit 32b ( step S23). The transmission processing unit 31d stores the generated real-time data in the transmission/reception buffer 33 (step S24). The transmission processing unit 31d transmits the real-time data stored in the transmission/reception buffer 33 to the server device 4 by giving a transmission command to the second communication unit 35 (step S25). The transmission processing unit 31d erases the transmitted real-time data from the transmission/reception buffer regardless of whether the real-time data has been received by the server device 4 (step S26), and ends the process.

図17は、本実施の形態に係るゲートウェイ3が行う加工データの送信処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ3は、所定の周期で印刷設備2に係る加工データの送信を繰り返し行っている。ゲートウェイ3の処理部31の送信処理部31dは、サーバ装置4へ加工データを送信するタイミングに至ったか否かを判定する(ステップS41)。加工データの送信タイミングに至っていない場合(S41:NO)、送信処理部31dは、送信タイミングに至るまで待機する。 FIG. 17 is a flow chart showing the procedure of transmission processing of processed data performed by the gateway 3 according to the present embodiment. The gateway 3 according to the present embodiment repeatedly transmits processed data related to the printing equipment 2 at a predetermined cycle. The transmission processing unit 31d of the processing unit 31 of the gateway 3 determines whether or not it is time to transmit the processed data to the server device 4 (step S41). If the transmission timing of the processed data has not come (S41: NO), the transmission processing unit 31d waits until the transmission timing.

加工データの送信タイミングに至った場合(S41:YES)、処理部31のデータ取得部31bは、前回の加工データの送信後に印刷設備2から受信したデータを対象に、時系列的に前後する情報を比較し、ログ記憶部32bからフラグ情報が変化した情報を取得する(ステップS42)。またデータ取得部31bは、前回の加工データの送信失敗により、前回の加工データが保存データとして保存されているか否かを判定する(ステップS43)。保存データが存在する場合(S43:YES)、データ取得部31bは、この保存データを取得して(ステップS44)、ステップS45へ処理を進める。保存データが存在しない場合(S43:NO)、データ取得部31bは、ステップS45へ処理を進める。 When the transmission timing of the processed data has arrived (S41: YES), the data acquisition unit 31b of the processing unit 31 acquires chronologically forward and backward information for the data received from the printing equipment 2 after the transmission of the previous processed data. are compared, and information indicating a change in the flag information is obtained from the log storage unit 32b (step S42). Further, the data acquisition unit 31b determines whether or not the last processed data is saved as the saved data due to the previous failed transmission of the processed data (step S43). If there is stored data (S43: YES), the data acquisition unit 31b acquires this stored data (step S44), and proceeds to step S45. If the saved data does not exist (S43: NO), the data acquisition unit 31b advances the process to step S45.

次いで、処理部31のデータ生成部31cは、ステップS42及びS44にて取得した情報に、ゲートウェイ3のID、前回の加工データの送信日時情報及び今回の送信日時情報等を付して、サーバ装置4へ送信する加工データを生成する(ステップS45)。送信処理部31dは、生成された加工データを送受信バッファ33に格納する(ステップS46)。送信処理部31dは、第2通信部35に送信命令を与えることによって、送受信バッファ33に格納された加工データをサーバ装置4へ送信する(ステップS47)。 Next, the data generation unit 31c of the processing unit 31 attaches the ID of the gateway 3, the previous transmission date and time information of the processed data, the current transmission date and time information, etc. to the information acquired in steps S42 and S44, and the server device 4 is generated (step S45). The transmission processing unit 31d stores the generated processed data in the transmission/reception buffer 33 (step S46). The transmission processing unit 31d transmits the processed data stored in the transmission/reception buffer 33 to the server device 4 by giving a transmission command to the second communication unit 35 (step S47).

送信処理部31dは、ステップS47にて送信した加工データに対するサーバ装置4からの受信完了の通知を受信したか否かを判定する(ステップS48)。受信完了の通知を受信した場合(S48:YES)、送信処理部31dは、送受信バッファ33から加工データを消去して(ステップS49)、処理を終了する。受信完了の通知を受信しない場合(S48:NO)、送信処理部31dは、再送信のために加工データを保存し(ステップS50)、処理を終了する。なお加工データの保存は、記憶部32又は送受信バッファ33の記憶領域を利用して行われる。 The transmission processing unit 31d determines whether or not a notification of completion of reception of the processed data transmitted in step S47 has been received from the server device 4 (step S48). When receiving the reception completion notification (S48: YES), the transmission processing unit 31d erases the processed data from the transmission/reception buffer 33 (step S49), and ends the process. If the notification of reception completion is not received (S48: NO), the transmission processing unit 31d saves the processed data for retransmission (step S50), and terminates the process. The processed data is saved using the storage area of the storage unit 32 or the transmission/reception buffer 33 .

図18は、本実施の形態に係るゲートウェイ3が行う過去ログデータの送信処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ3は、所定の周期で印刷設備2に係る過去ログデータの送信を繰り返し行っている。ゲートウェイ3の処理部31の送信処理部31dは、サーバ装置4へ過去ログデータを送信するタイミングに至ったか否かを判定する(ステップS61)。過去ログデータの送信タイミングに至っていない場合(S61:NO)、送信処理部31dは、送信タイミングに至るまで待機する。 FIG. 18 is a flow chart showing the procedure of past log data transmission processing performed by the gateway 3 according to the present embodiment. The gateway 3 according to the present embodiment repeatedly transmits past log data related to the printing equipment 2 at a predetermined cycle. The transmission processing unit 31d of the processing unit 31 of the gateway 3 determines whether or not it is time to transmit the past log data to the server device 4 (step S61). If the transmission timing of the past log data has not come yet (S61: NO), the transmission processing unit 31d waits until the transmission timing comes.

過去ログデータの送信タイミングに至った場合(S61:YES)、処理部31のデータ取得部31bは、ログ記憶部32bに記憶された全ての情報を取得する(ステップS62)。またデータ取得部31bは、前回の過去ログデータの送信失敗により、前回の過去ログデータが保存データとして保存されているか否かを判定する(ステップS63)。保存データが存在する場合(S63:YES)、データ取得部31bは、この保存データを取得して(ステップS64)、ステップS65へ処理を進める。保存データが存在しない場合(S63:NO)、データ取得部31bは、ステップS65へ処理を進める。 When it is time to send past log data (S61: YES), the data acquisition unit 31b of the processing unit 31 acquires all information stored in the log storage unit 32b (step S62). Further, the data acquisition unit 31b determines whether or not the previous past log data is saved as the save data due to the previous past log data transmission failure (step S63). If there is stored data (S63: YES), the data acquisition unit 31b acquires this stored data (step S64), and proceeds to step S65. If the saved data does not exist (S63: NO), the data acquisition unit 31b advances the process to step S65.

次いで、処理部31のデータ生成部31cは、ステップS62及びS64にて取得した情報を基に、印刷設備2毎に情報を整理した過去ログデータを生成する(ステップS65)。送信処理部31dは、生成された過去ログデータを送受信バッファ33に格納する(ステップS66)。送信処理部31dは、第2通信部35に送信命令を与えることによって、送受信バッファ33に格納された過去ログデータをサーバ装置4へ送信する(ステップS67)。 Next, the data generation unit 31c of the processing unit 31 generates past log data in which information is organized for each printing equipment 2 based on the information acquired in steps S62 and S64 (step S65). The transmission processing unit 31d stores the generated past log data in the transmission/reception buffer 33 (step S66). The transmission processing unit 31d transmits the past log data stored in the transmission/reception buffer 33 to the server device 4 by giving a transmission command to the second communication unit 35 (step S67).

送信処理部31dは、ステップS67にて送信した過去ログデータに対するサーバ装置4からの受信完了の通知を受信したか否かを判定する(ステップS68)。受信完了の通知を受信した場合(S68:YES)、送信処理部31dは、送受信バッファ33から過去ログデータを消去する(ステップS69)。その後、送信処理部31dは、ログ記憶部32bに記憶された全情報を消去し(ステップS70)、処理を終了する。受信完了の通知を受信しない場合(S68:NO)、送信処理部31dは、再送信のために過去ログデータを保存し(ステップS71)、処理を終了する。なお過去ログデータの保存は、記憶部32又は送受信バッファ33の記憶領域を利用して行われる。 The transmission processing unit 31d determines whether or not a reception completion notification for the past log data transmitted in step S67 has been received from the server device 4 (step S68). When receiving the reception completion notification (S68: YES), the transmission processing unit 31d deletes the past log data from the transmission/reception buffer 33 (step S69). After that, the transmission processing unit 31d erases all the information stored in the log storage unit 32b (step S70), and terminates the process. If the notification of reception completion is not received (S68: NO), the transmission processing unit 31d saves the past log data for retransmission (step S71), and terminates the process. The past log data is saved using the storage area of the storage unit 32 or the transmission/reception buffer 33 .

図19は、本実施の形態に係るサーバ装置4が行う処理の手順を示すフローチャートである。本実施の形態に係るサーバ装置4の処理部41の受信処理部41aは、通信部43にてゲートウェイ3から送信されるリアルタイムデータを受信したか否かを判定する(ステップS81)。リアルタイムデータを受信した場合(S81:YES)、受信処理部41aは、リアルタイムデータの受信を完了した旨の通知をゲートウェイ3へ送信する(ステップS82)。次いで受信処理部41aは、受信したリアルタイムデータに含まれる情報を、印刷設備DB42bに記憶し(ステップS83)、処理を終了する。なおサーバ装置4は、受信したリアルタイムデータに含まれる情報を必要とする端末装置5、即ちリアルタイム表示を行っている端末装置5へこの情報を送信してもよい。 FIG. 19 is a flow chart showing the procedure of processing performed by the server device 4 according to the present embodiment. The reception processing unit 41a of the processing unit 41 of the server device 4 according to the present embodiment determines whether or not the communication unit 43 has received real-time data transmitted from the gateway 3 (step S81). When real-time data is received (S81: YES), the reception processing unit 41a transmits a notification to the effect that the reception of real-time data is completed to the gateway 3 (step S82). Next, the reception processing unit 41a stores the information included in the received real-time data in the printing equipment DB 42b (step S83), and terminates the process. Note that the server device 4 may transmit this information to the terminal device 5 that requires the information contained in the received real-time data, that is, the terminal device 5 that is performing real-time display.

リアルタイムデータを受信していない場合(S81:NO)、受信処理部41aは、通信部43にてゲートウェイ3から送信される加工データを受信したか否かを判定する(ステップS85)。加工データを受信した場合(S85:YES)、受信処理部41aは、加工データの受信を完了した旨の通知をゲートウェイ3へ送信する(ステップS86)。次いで処理部41の補完部41cは、受信した加工データに含まれる情報を取得し、ログ記憶部32bに記憶されていない情報を補完する処理を行って(ステップS87)、処理を終了する。なおサーバ装置4は、受信した加工データに含まれる情報を必要とする端末装置5、即ち稼働状況表示を行っている端末装置5へこの情報を送信してもよい。 If real-time data has not been received (S81: NO), the reception processing unit 41a determines whether or not the communication unit 43 has received processed data transmitted from the gateway 3 (step S85). When the processed data has been received (S85: YES), the reception processing unit 41a transmits a notification to the effect that the reception of the processed data has been completed to the gateway 3 (step S86). Next, the complementing unit 41c of the processing unit 41 acquires information contained in the received processed data, performs a process of complementing information not stored in the log storage unit 32b (step S87), and ends the process. Note that the server device 4 may transmit this information to the terminal device 5 that requires the information contained in the received processed data, that is, the terminal device 5 that displays the operating status.

加工データを受信していない場合(S85:NO)、受信処理部41aは、通信部43にてゲートウェイ3から送信される過去ログデータを受信したか否かを判定する(ステップS89)。過去ログデータを受信していない場合(S89:NO)、受信処理部41aは、ステップS81へ処理を戻し、いずれかのデータを受信するまで待機する。過去ログデータを受信した場合(S89:YES)、受信処理部41aは、過去ログデータの受信を完了した旨の通知をゲートウェイ3へ送信する(ステップS90)。次いで処理部41の補完部41cは、受信した過去ログデータに含まれる情報を取得し、ログ記憶部32bに記憶されていない情報を補完して(ステップS91)、処理を終了する。 If the processed data has not been received (S85: NO), the reception processing unit 41a determines whether or not the past log data transmitted from the gateway 3 has been received by the communication unit 43 (step S89). If past log data has not been received (S89: NO), the reception processing unit 41a returns to step S81 and waits until any data is received. If past log data has been received (S89: YES), the reception processing unit 41a transmits a notification to the effect that the past log data has been received to the gateway 3 (step S90). Next, the complementing unit 41c of the processing unit 41 acquires information included in the received past log data, complements information not stored in the log storage unit 32b (step S91), and ends the process.

なお本フローチャートのステップS87及びS91の補完処理は、必ずしも行われなくてよい。印刷設備DB42bに記憶された情報に欠損が存在しない場合、又は、欠損部分に相当する情報が受信データに含まれていない場合には、補完処理は行われない。 It should be noted that the complementary processing in steps S87 and S91 of this flow chart does not necessarily have to be performed. If there is no loss in the information stored in the printing equipment DB 42b, or if the received data does not contain information corresponding to the missing portion, the complementing process is not performed.

図20は、本実施の形態に係る端末装置5が行う処理の手順を示すフローチャートである。本実施の形態に係る端末装置5の処理部51は、表示部54に表示したメニュー画面又は設定画面等において、ユーザが望む印刷設備2の情報に関する表示設定等を受け付ける(ステップS101)。例えば処理部51は、リアルタイム表示、稼働状況表示又は期間表示のいずれを行うかの選択、及び、表示対象とする印刷設備2の選択等を受け付ける。処理部51は、受け付けた表示設定等に基づいて、サーバ装置4に対し、印刷設備2に関する情報表示のために必要なデータの取得を要求する(ステップS102)。 FIG. 20 is a flowchart showing the procedure of processing performed by the terminal device 5 according to this embodiment. The processing unit 51 of the terminal device 5 according to the present embodiment receives display settings and the like regarding the information of the printing equipment 2 desired by the user on the menu screen or the setting screen displayed on the display unit 54 (step S101). For example, the processing unit 51 receives selection of any of real-time display, operation status display, and period display, and selection of the printing equipment 2 to be displayed. The processing unit 51 requests the server device 4 to acquire data necessary for displaying information about the printing equipment 2 based on the received display settings (step S102).

処理部51の受信処理部51aは、要求に応じてサーバ装置4が送信するデータを受信したか否かを判定する(ステップS103)。データを受信していない場合(S103:NO)、受信処理部51aは、サーバ装置4からのデータを受信するまで待機する。サーバ装置4からのデータを受信した場合(S103:YES)、処理部51の表示処理部51bは、受信したデータに基づいて、表示部54に印刷設備2の情報表示を行う(ステップS104)。ここで表示処理部51bは、ステップS101にて受け付けた表示設定等に基づいて、リアルタイム表示、稼働状況表示又は期間表示を行う。 The reception processing unit 51a of the processing unit 51 determines whether or not the data transmitted by the server device 4 in response to the request has been received (step S103). If data has not been received (S103: NO), the reception processing unit 51a waits until data is received from the server device 4. FIG. When data is received from the server device 4 (S103: YES), the display processing section 51b of the processing section 51 displays information on the printing equipment 2 on the display section 54 based on the received data (step S104). Here, the display processing unit 51b performs real-time display, operation status display, or period display based on the display settings received in step S101.

本実施の形態においては、端末装置5からサーバ装置4へデータの取得要求を行うことで、端末装置5は表示に必要なデータをサーバ装置4から取得する。リアルタイム表示の場合、端末装置5は、所定周期(例えば数秒~数十秒に1回の周期)でデータの取得をサーバ装置4に要求する。稼働状況表示及び期間表示の場合、ユーザによる表示更新の操作に応じて、端末装置5はデータの取得を要求する。 In the present embodiment, the terminal device 5 requests the server device 4 to acquire data, and the terminal device 5 acquires data necessary for display from the server device 4 . In the case of real-time display, the terminal device 5 requests the server device 4 to acquire data at predetermined intervals (for example, once every several seconds to several tens of seconds). In the case of the operating status display and the period display, the terminal device 5 requests acquisition of data according to the display update operation by the user.

情報表示を行った後、受信処理部51aは、サーバ装置4に対するデータ取得のタイミングに至ったか否かを判定する(ステップS105)。リアルタイム表示の場合には所定周期で、稼働状況表示及び期間表示の場合にはユーザの操作に応じて、データ取得のタイミングが生じる。データ取得のタイミングに至ったと判定した場合(S105:YES)、受信処理部51aは、サーバ装置4に対するデータ取得を要求する(ステップS106)。受信処理部51aは、要求に応じて送信されるサーバ装置4からのデータを受信したか否かを判定する(ステップS107)。サーバ装置4からのデータを受信した場合(S107:YES)、表示処理部51bは、新たに受信したデータに基づいて印刷設備2に関する情報表示の更新を行い(ステップS108)、ステップS105へ処理を戻す。 After displaying the information, the reception processing unit 51a determines whether or not it is time to acquire data from the server device 4 (step S105). In the case of real-time display, the timing of data acquisition occurs at a predetermined cycle, and in the case of operating status display and period display, the timing of data acquisition occurs according to the user's operation. If it is determined that the data acquisition timing has come (S105: YES), the reception processing unit 51a requests the server device 4 to acquire data (step S106). The reception processing unit 51a determines whether or not the data transmitted in response to the request has been received from the server device 4 (step S107). If data has been received from the server device 4 (S107: YES), the display processing unit 51b updates the information display regarding the printing equipment 2 based on the newly received data (step S108), and proceeds to step S105. return.

サーバ装置4に対するデータ取得のタイミングに至っていない場合(S105:NO)、処理部51は、印刷設備2に関する情報表示に対する終了操作がユーザによりなされたか否かを判定する(ステップS109)。終了操作がなされていない場合(S109:NO)、処理部51は、ステップS105へ処理を戻す。終了操作がなされた場合(S109:YES)、表示処理部51bは、印刷設備2に関する情報表示を終了し、例えばメニュー画面等を表示部54に表示して(ステップS110)、処理を終了する。 If the data acquisition timing for the server device 4 has not come yet (S105: NO), the processing unit 51 determines whether or not the user has performed an operation to terminate the display of information about the printing equipment 2 (step S109). If the end operation has not been performed (S109: NO), the processing unit 51 returns the processing to step S105. If a termination operation has been performed (S109: YES), the display processing unit 51b terminates the display of information about the printing equipment 2, displays, for example, a menu screen on the display unit 54 (step S110), and terminates the process.

<まとめ>
以上の構成の本実施の形態に係る監視システムは、監視対象となる印刷設備2とサーバ装置4との間にゲートウェイ3が介在してデータを中継する処理を行う。ゲートウェイ3は、印刷設備2から送信されたデータを受信し、受信したデータから数値情報及びフラグ情報等を取得してリアルタイムデータ(第1データ)を生成し、リアルタイムデータをサーバ装置4へ送信する。このときにゲートウェイ3は、サーバ装置4への送信に失敗した場合であっても、このリアルタイムデータの再送信を行わない。
<Summary>
In the monitoring system according to the present embodiment having the above configuration, the gateway 3 intervenes between the printing equipment 2 to be monitored and the server device 4 to relay data. The gateway 3 receives data transmitted from the printing equipment 2, acquires numerical information, flag information, etc. from the received data, generates real-time data (first data), and transmits the real-time data to the server device 4. . At this time, the gateway 3 does not resend this real-time data even if the transmission to the server device 4 fails.

またゲートウェイ3は、受信したデータに基づいてログ記憶部32bに記憶された数値情報及びフラグ情報等を取得して加工データ又は過去ログデータ(第2データ)を生成し、生成した加工データ又は過去ログデータをサーバ装置4へ送信する。このときにゲートウェイ3は、サーバ装置4への送信に失敗した場合、送信に失敗した加工データ又は過去ログデータの再送信を行う。ゲートウェイ3が、再送信を行わない第1データを含むリアルタイムデータの送信と、再送信を行う加工データ又は過去ログデータの送信との2つのデータ送信方法を提供することによって、データの種別等に適したサーバ装置4へのデータ送信が実現できる。 In addition, the gateway 3 acquires numerical information and flag information stored in the log storage unit 32b based on the received data, generates processed data or past log data (second data), and generates processed data or past log data (second data). Log data is sent to the server device 4 . At this time, if the transmission to the server device 4 fails, the gateway 3 retransmits the processed data or past log data that failed to be transmitted. The gateway 3 provides two data transmission methods: transmission of real-time data including first data that is not retransmitted, and transmission of processed data or past log data that is retransmitted. Data transmission to a suitable server device 4 can be realized.

また本実施の形態に係るゲートウェイ3は、印刷設備2から受信したデータをログ記憶部32bに記憶し、所定期間に亘ってログ記憶部32bに蓄積したデータを、再送信を行う過去ログデータとしてサーバ装置4へ送信する。これにより再送信されなかったリアルタイムデータの情報を含む蓄積データを過去ログデータとしてサーバ装置4へ送信することができ、サーバ装置4は受信できなかったリアルタイムデータの情報を過去ログデータから取得することができる。 In addition, the gateway 3 according to the present embodiment stores data received from the printing equipment 2 in the log storage unit 32b, and uses the data accumulated in the log storage unit 32b over a predetermined period as past log data to be resent. Send to the server device 4 . Thereby, accumulated data including information of real-time data that has not been retransmitted can be transmitted to the server device 4 as past log data, and the server device 4 can acquire information of real-time data that has not been received from the past log data. can be done.

また本実施の形態に係るゲートウェイ3は、印刷設備2から受信したデータに基づいて、印刷設備2の状態変化に係る加工データを生成してサーバ装置4へ送信する。これにより、印刷設備2の状態変化をサーバ装置4へ確実に送信することができる。 Further, the gateway 3 according to the present embodiment generates processed data related to the state change of the printing equipment 2 based on the data received from the printing equipment 2 and transmits the processed data to the server device 4 . Thereby, the state change of the printing equipment 2 can be reliably transmitted to the server device 4 .

また本実施の形態に係るゲートウェイ3は、印刷設備2から受信したデータの所定位置(データ部)から抽出した数値情報及びフラグ情報をリアルタイムデータとする。またゲートウェイ3は、受信したデータの所定位置から印刷設備2の状態を示すフラグ情報を抽出し、時系列的に抽出した複数のフラグ情報に基づいて印刷設備2の状態変化に係る加工データを生成する。これにより印刷設備2から送信するデータには複数種類の情報を含むことができ、ゲートウェイ3は印刷設備2から受信したデータの所定位置からリアルタイムデータ及び加工データを生成することができる。 Also, the gateway 3 according to the present embodiment uses the numerical value information and flag information extracted from a predetermined position (data portion) of the data received from the printing equipment 2 as real-time data. The gateway 3 also extracts flag information indicating the state of the printing equipment 2 from a predetermined position in the received data, and generates processed data related to the state change of the printing equipment 2 based on the plurality of pieces of flag information extracted in time series. do. As a result, the data transmitted from the printing facility 2 can contain a plurality of types of information, and the gateway 3 can generate real-time data and processed data from predetermined positions in the data received from the printing facility 2 .

また本実施の形態に係るゲートウェイ3は、サーバ装置4へ送信するリアルタイムデータを送受信バッファ33に記憶し、送信に失敗した場合にこのリアルタイムデータを送受信バッファ33から消去する。これにより再送信が行われないリアルタイムデータが記憶され続けて送受信バッファ33の記憶容量を圧迫することを防止できる。 Further, the gateway 3 according to the present embodiment stores real-time data to be transmitted to the server device 4 in the transmission/reception buffer 33, and deletes the real-time data from the transmission/reception buffer 33 when the transmission fails. As a result, it is possible to prevent the storage capacity of the transmission/reception buffer 33 from being squeezed by continuous storage of real-time data that is not retransmitted.

また本実施の形態に係るゲートウェイ3は、不揮発性の記憶部32に過去ログデータを生成するための情報を記憶する。ゲートウェイ3は、送信に成功するまで過去ログデータを生成するための情報を記憶部32に記憶し、過去ログデータの送信に成功した後で情報を消去する。これにより、再送信を行う必要がある過去ログデータが消失することを防止できる。 Also, the gateway 3 according to the present embodiment stores information for generating past log data in the nonvolatile storage unit 32 . The gateway 3 stores the information for generating the past log data in the storage unit 32 until the transmission succeeds, and erases the information after the past log data has been successfully transmitted. This prevents the loss of past log data that needs to be resent.

また本実施の形態に係るサーバ装置4は、印刷設備2に係るリアルタイムデータ、加工データ及び過去ログデータをゲートウェイ3から受信し、受信したデータに含まれる情報を記憶部42の設備DB42bに記憶する。サーバ装置4は、設備DB42bに記憶した情報を端末装置5へ送信する。端末装置5は、サーバ装置4からのデータを受信し、印刷設備2に係る情報を表示部54に表示する。これにより、サーバ装置4は印刷設備2に係る情報を蓄積し、ユーザは端末装置5を利用してサーバ装置4に蓄積された情報を閲覧することができる。 Further, the server device 4 according to the present embodiment receives real-time data, processed data, and past log data relating to the printing equipment 2 from the gateway 3, and stores information contained in the received data in the equipment DB 42b of the storage unit 42. . The server device 4 transmits the information stored in the facility DB 42 b to the terminal device 5 . The terminal device 5 receives data from the server device 4 and displays information related to the printing facility 2 on the display unit 54 . As a result, the server device 4 accumulates information related to the printing equipment 2 , and the user can view the information accumulated in the server device 4 using the terminal device 5 .

なおサーバ装置4は、ゲートウェイ3からリアルタイムデータを受信する都度、このリアルタイムデータに含まれる情報を端末装置5へ送信してもよい。端末装置5は、サーバ装置4から情報を受信する都度、表示部54の表示を更新する。これにより、印刷設備2に係る情報を端末装置5で逐一更新することができ、印刷設備2に関する情報のリアルタイム表示等が実現できる。 The server device 4 may transmit the information included in the real-time data to the terminal device 5 each time it receives the real-time data from the gateway 3 . The terminal device 5 updates the display on the display unit 54 each time information is received from the server device 4 . As a result, the information related to the printing equipment 2 can be updated one by one by the terminal device 5, and the real-time display of the information related to the printing equipment 2 can be realized.

また本実施の形態に係るサーバ装置4は、送信失敗によりゲートウェイ3から送信されなかったリアルタイムデータに係る情報を、ゲートウェイ3が送信する加工データ及び過去ログデータに基づいて補完する。これによりサーバ装置4は、再送信が行われないリアルタイムデータに含まれる情報について、加工データ及び過去ログデータに基づく保管により取得することができ、印刷設備2に関する情報を確実に記憶して蓄積することができる。 Moreover, the server device 4 according to the present embodiment complements information related to real-time data that has not been transmitted from the gateway 3 due to a transmission failure, based on the processed data and past log data transmitted by the gateway 3 . As a result, the server device 4 can acquire the information contained in the real-time data that is not retransmitted by storing it based on the processed data and the past log data, and reliably stores and accumulates the information regarding the printing equipment 2. be able to.

なお本実施の形態においては、監視対象装置を印刷設備2としたが、監視システムの監視対象は印刷設備2に限らず、種々の装置であってよい。また本実施の形態において説明した送信データの形式及び画面表示等は、一例であって、これに限るものではない。また本実施の形態においてサーバ装置4は、受信したリアルタイムデータに含まれる情報を印刷設備DB42bに記憶し、欠損部分を加工データ及び過去ログデータにて補完する構成としたが、これに限るものではない。サーバ装置4は、過去ログデータを受信して印刷設備DB42bに記憶する構成であってもよい。 In the present embodiment, the printing facility 2 is used as the device to be monitored, but the monitoring target of the monitoring system is not limited to the printing facility 2, and may be various devices. Also, the format of transmission data, screen display, and the like described in the present embodiment are merely examples, and are not limited to these. In the present embodiment, the server device 4 stores the information contained in the received real-time data in the printing facility DB 42b, and supplements the missing part with the processed data and the past log data, but it is not limited to this. do not have. The server device 4 may be configured to receive past log data and store it in the printing facility DB 42b.

今回開示された実施形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed this time are illustrative in all respects and should be considered not restrictive. The scope of the present invention is indicated by the scope of the claims rather than the meaning described above, and is intended to include all modifications within the scope and meaning equivalent to the scope of the claims.

1 工場
2 印刷設備(監視対象装置)
3 ゲートウェイ(データ中継装置)
4 サーバ装置
5 端末装置
31 処理部
31a 受信処理部(受信部)
31b データ取得部
31c データ生成部(第1生成部、第2生成部)
31d 送信処理部(第1送信処理部、第2送信処理部)
32 記憶部
32a プログラム(コンピュータプログラム)
32b ログ記憶部
33 送受信バッファ(記憶部)
34 第1通信部
35 第2通信部
41 処理部
41a 受信処理部(受信部)
41b 送信処理部(送信部)
41c 補完部
42 記憶部
42a サーバプログラム(コンピュータプログラム)
42b 印刷設備DB
43 通信部
51 処理部
51a 受信処理部(受信部)
51b 表示処理部
52 記憶部
52a プログラム(コンピュータプログラム)
53 通信部
54 表示部
55 操作部
97,98,99 記録媒体
N ネットワーク
1 factory 2 printing equipment (monitored equipment)
3 gateway (data relay device)
4 server device 5 terminal device 31 processing unit 31a reception processing unit (receiving unit)
31b data acquisition unit 31c data generation unit (first generation unit, second generation unit)
31d transmission processing unit (first transmission processing unit, second transmission processing unit)
32 storage unit 32a program (computer program)
32b log storage unit 33 transmission/reception buffer (storage unit)
34 first communication unit 35 second communication unit 41 processing unit 41a reception processing unit (receiving unit)
41b Transmission processing unit (transmission unit)
41c complementing unit 42 storage unit 42a server program (computer program)
42b Printing Equipment DB
43 communication unit 51 processing unit 51a reception processing unit (receiving unit)
51b display processing unit 52 storage unit 52a program (computer program)
53 communication unit 54 display unit 55 operation unit 97, 98, 99 recording medium N network

Claims (12)

監視対象装置が送信する数値情報及びフラグ情報を含むデータを受信する受信部と、
前記受信部が受信したデータから、少なくとも前記数値情報を含む時系列の第1データを生成する第1生成部と、
前記第1生成部が生成した第1データをサーバ装置へ送信する第1送信処理部と、
前記受信部が受信したデータに含まれる前記フラグ情報に基づき、前記監視対象装置の状態変化に係る第2データを生成する第2生成部と、
前記第2生成部が生成した第2データを前記サーバ装置へ送信する第2送信処理部と
前記受信部が受信したデータに含まれる前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを生成する第3生成部と、
前記第3生成部が生成した第3データを前記サーバ装置へ送信する第3送信処理部と
を備え、
前記第1送信処理部は、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、
前記第2送信処理部は、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行
前記第3送信処理部は、前記第3データの前記サーバ装置への送信に失敗した場合に、当該第3データの再送信を行う、
データ中継装置。
a receiving unit for receiving data including numerical information and flag information transmitted by the monitored device;
a first generating unit that generates first time-series data including at least the numerical information from the data received by the receiving unit;
a first transmission processing unit that transmits the first data generated by the first generation unit to a server device;
a second generating unit that generates second data related to a state change of the monitored device based on the flag information included in the data received by the receiving unit;
a second transmission processing unit that transmits the second data generated by the second generation unit to the server device;
a third generating unit that generates third data in which the numerical information and the flag information included in the data received by the receiving unit are accumulated over a predetermined period;
a third transmission processing unit that transmits the third data generated by the third generation unit to the server device;
with
wherein, when transmission of the first data to the server device fails, the first transmission processing unit does not retransmit the first data;
The second transmission processing unit retransmits the second data when transmission of the second data to the server device fails,
The third transmission processing unit retransmits the third data when transmission of the third data to the server device fails.
Data relay device.
前記第1生成部は、前記受信部が受信したデータの所定位置から抽出したデータを前記第1データとし、
前記第2生成部は、前記受信部が受信したデータの所定位置から前記監視対象装置の状態を示すフラグ情報を抽出し、時系列的に抽出した複数の前記フラグ情報に基づいて前記監視対象装置の状態変化に係る前記第2データを生成する、
請求項に記載のデータ中継装置。
The first generating unit sets data extracted from a predetermined position of the data received by the receiving unit as the first data,
The second generating unit extracts flag information indicating a state of the monitored device from a predetermined position of the data received by the receiving unit, and based on the plurality of pieces of flag information extracted in time series, the monitored device. generating the second data relating to the state change of
The data relay device according to claim 1 .
前記第1データを記憶するバッファを備え、
前記第1送信処理部による前記第1データの送信後に、送信の成否に関わらず、前記バッファに記憶された第1データを消去する、
請求項1又は請求項に記載のデータ中継装置。
comprising a buffer for storing the first data;
after transmission of the first data by the first transmission processing unit, erasing the first data stored in the buffer regardless of success or failure of transmission;
3. The data relay device according to claim 1 or 2 .
前記第データ又は前記第データを生成するためのデータを記憶する不揮発性の記憶部を備え、
前記第送信処理部が前記第データの送信に成功するまで、前記記憶部は第データ又は第データを生成するためのデータを記憶する、
請求項1から請求項までのいずれか1つに記載のデータ中継装置。
A non-volatile storage unit that stores the third data or data for generating the third data,
until the third transmission processing unit successfully transmits the third data, the storage unit stores the third data or data for generating the third data;
The data relay device according to any one of claims 1 to 3 .
前記第2送信処理部による前記第2データの送信周期は、前記第1送信処理部による前記第1データの送信周期より長く、a transmission cycle of the second data by the second transmission processing unit is longer than a transmission cycle of the first data by the first transmission processing unit;
前記第3送信処理部による前記第3データの送信周期は、前記第2送信処理部による前記第2データの送信周期より長い、a transmission cycle of the third data by the third transmission processing unit is longer than a transmission cycle of the second data by the second transmission processing unit;
請求項1から請求項4までのいずれか1つに記載のデータ中継装置。The data relay device according to any one of claims 1 to 4.
監視対象装置が送信する数値情報及びフラグ情報を含むデータを受信し、
受信したデータから、少なくとも前記数値情報を含む時系列の第1データを生成し、
生成した第1データをサーバ装置へ送信し、
受信したデータに含まれる前記フラグ情報に基づき、前記監視対象装置の状態変化に係る第2データを生成し、
生成した第2データを前記サーバ装置へ送信し、
受信したデータに含まれる前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを生成し、
生成した第3データを前記サーバ装置へ送信し、
前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、
前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行
前記第3データの前記サーバ装置への送信に失敗した場合に、当該第3データの再送信を行う、
データ中継方法。
receiving data including numerical information and flag information transmitted by the monitored device;
generating time-series first data containing at least the numerical information from the received data;
transmitting the generated first data to the server device;
generating second data related to the state change of the monitored device based on the flag information included in the received data;
transmitting the generated second data to the server device;
generating third data by accumulating the numerical information and the flag information included in the received data over a predetermined period;
transmitting the generated third data to the server device;
when transmission of the first data to the server device fails, without retransmitting the first data;
when transmission of the second data to the server device fails, retransmitting the second data;
When transmission of the third data to the server device fails, retransmitting the third data;
Data relay method.
監視対象装置に係るデータをサーバ装置がデータ中継装置を介して取得する監視システムであって、
前記データ中継装置は、
監視対象装置が送信する数値情報及びフラグ情報を含むデータを受信する受信部と、
前記受信部が受信したデータから、少なくとも前記数値情報を含む時系列の第1データを生成する第1生成部と、
前記第1生成部が生成した第1データをサーバ装置へ送信する第1送信処理部と、
前記受信部が受信したデータに含まれる前記フラグ情報に基づき、前記監視対象装置の状態変化に係る第2データを生成する第2生成部と、
前記第2生成部が生成した第2データを前記サーバ装置へ送信する第2送信処理部と
前記受信部が受信したデータに含まれる前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを生成する第3生成部と、
前記第3生成部が生成した第3データを前記サーバ装置へ送信する第3送信処理部と
を有し、
前記第1送信処理部は、前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、
前記第2送信処理部は、前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行い、
前記第3送信処理部は、前記第3データの前記サーバ装置への送信に失敗した場合に、当該第3データの再送信を行い、
前記サーバ装置は、
前記データ中継装置が送信する前記第1データ前記第2データ及び前記第3データを受信する受信部と、
前記受信部が受信した前記第1データ前記第2データ及び前記第3データを記憶する記憶部と、
前記記憶部に記憶した前記第1データ前記第2データ及び前記第3データを端末装置へ送信する送信部と
を有する、
監視システム。
A monitoring system in which a server device acquires data related to a monitored device via a data relay device,
The data relay device
a receiving unit that receives data including numerical information and flag information transmitted by the monitored device;
a first generating unit that generates first time-series data including at least the numerical information from the data received by the receiving unit;
a first transmission processing unit that transmits the first data generated by the first generation unit to a server device;
a second generating unit that generates second data related to a state change of the monitored device based on the flag information included in the data received by the receiving unit;
a second transmission processing unit that transmits the second data generated by the second generation unit to the server device ;
a third generating unit that generates third data in which the numerical information and the flag information included in the data received by the receiving unit are accumulated over a predetermined period;
a third transmission processing unit that transmits the third data generated by the third generation unit to the server device;
has
wherein, when transmission of the first data to the server device fails, the first transmission processing unit does not retransmit the first data;
The second transmission processing unit retransmits the second data when transmission of the second data to the server device fails,
The third transmission processing unit retransmits the third data when transmission of the third data to the server device fails,
The server device
a receiving unit that receives the first data , the second data , and the third data transmitted by the data relay device;
a storage unit that stores the first data , the second data , and the third data received by the receiving unit;
a transmission unit configured to transmit the first data , the second data , and the third data stored in the storage unit to a terminal device;
Monitoring system.
監視対象装置に係る少なくとも数値情報を含む時系列の第1データを送信失敗の際に再送信を行わずに送信し、前記監視対象装置に係るフラグ情報に基づいて生成された前記監視対象装置の状態変化に係る第2データを送信失敗の際に再送信を行って送信し、前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを送信失敗の際に再送信を行って送信するデータ中継装置から、前記第1データ前記第2データ及び前記第3データを受信する受信部と、
前記受信部が受信した前記第1データ前記第2データ及び前記第3データを記憶する記憶部と、
前記記憶部に記憶した前記第1データ前記第2データ及び前記第3データを端末装置へ送信する送信部と
を備えるサーバ装置。
Time-series first data including at least numerical information related to a monitored device is transmitted without retransmission in the event of a transmission failure, and the monitored device generated based on flag information related to the monitored device. When the transmission fails, the second data related to the state change is retransmitted and transmitted, and when the transmission fails, the third data obtained by accumulating the numerical value information and the flag information over a predetermined period is retransmitted. a receiving unit that receives the first data , the second data, and the third data from the data relay device that transmits the data;
a storage unit that stores the first data , the second data , and the third data received by the receiving unit;
A server device comprising: a transmission unit configured to transmit the first data , the second data , and the third data stored in the storage unit to a terminal device.
前記送信部は、前記端末装置からの要求に応じて、前記第1データ前記第2データ及び前記第3データを前記端末装置へ送信する、請求項に記載のサーバ装置。 9. The server device according to claim 8 , wherein said transmission unit transmits said first data , said second data and said third data to said terminal device in response to a request from said terminal device. 送信失敗により前記データ中継装置から送信されなかった第1データを、前記受信部が受信した前記第データに基づいて補完する補完部を備える、請求項又は請求項に記載のサーバ装置。 10. The server device according to claim 8 , further comprising a complementing unit that complements the first data not transmitted from the data relay device due to transmission failure based on the third data received by the receiving unit. コンピュータに、
監視対象装置が送信する数値情報及びフラグ情報を含むデータを受信し、
受信したデータから、少なくとも前記数値情報を含む時系列の第1データを生成し、
生成した第1データをサーバ装置へ送信し、
受信したデータに含まれる前記フラグ情報に基づき、前記監視対象装置の状態変化に係る第2データを生成し、
生成した第2データを前記サーバ装置へ送信し、
受信したデータに含まれる前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを生成し、
生成した第3データを前記サーバ装置へ送信し、
前記第1データの前記サーバ装置への送信に失敗した場合に、当該第1データの再送信を行わず、
前記第2データの前記サーバ装置への送信に失敗した場合に、当該第2データの再送信を行い、
前記第3データの前記サーバ装置への送信に失敗した場合に、当該第3データの再送信を行う
処理を実行させるコンピュータプログラム。
to the computer,
receiving data including numerical information and flag information transmitted by the monitored device;
generating time-series first data containing at least the numerical information from the received data;
transmitting the generated first data to the server device;
generating second data related to the state change of the monitored device based on the flag information included in the received data;
transmitting the generated second data to the server device;
generating third data by accumulating the numerical information and the flag information included in the received data over a predetermined period;
transmitting the generated third data to the server device;
when transmission of the first data to the server device fails, without retransmitting the first data;
when transmission of the second data to the server device fails, retransmitting the second data ;
When transmission of the third data to the server device fails, the third data is retransmitted.
A computer program that causes a process to be performed.
コンピュータに、
監視対象装置に係る少なくとも数値情報を含む時系列の第1データを送信失敗の際に再送信を行わずに送信し、前記監視対象装置に係るフラグ情報に基づいて生成された前記監視対象装置の状態変化に係る第2データを送信失敗の際に再送信を行って送信し、前記数値情報及び前記フラグ情報を所定期間に亘って蓄積した第3データを送信失敗の際に再送信を行って送信するデータ中継装置から、前記第1データ前記第2データ及び前記第3データを受信し、
受信した前記第1データ前記第2データ及び前記第3データを記憶部に記憶し、
記憶した前記第1データ前記第2データ及び前記第3データを端末装置へ送信する
処理を実行させるコンピュータプログラム。
to the computer,
Time-series first data including at least numerical information related to a monitored device is transmitted without retransmission in the event of a transmission failure, and the monitored device generated based on flag information related to the monitored device. When the transmission fails, the second data related to the state change is retransmitted and transmitted, and when the transmission fails, the third data obtained by accumulating the numerical value information and the flag information over a predetermined period is retransmitted. receiving the first data , the second data and the third data from a data relay device for transmission ;
storing the received first data , second data and third data in a storage unit;
A computer program for executing a process of transmitting the stored first data , second data , and third data to a terminal device.
JP2019100641A 2019-05-29 2019-05-29 Data relay device, data relay method, monitoring system, server device, terminal device and computer program Active JP7334474B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019100641A JP7334474B2 (en) 2019-05-29 2019-05-29 Data relay device, data relay method, monitoring system, server device, terminal device and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019100641A JP7334474B2 (en) 2019-05-29 2019-05-29 Data relay device, data relay method, monitoring system, server device, terminal device and computer program

Publications (2)

Publication Number Publication Date
JP2020194444A JP2020194444A (en) 2020-12-03
JP7334474B2 true JP7334474B2 (en) 2023-08-29

Family

ID=73546409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019100641A Active JP7334474B2 (en) 2019-05-29 2019-05-29 Data relay device, data relay method, monitoring system, server device, terminal device and computer program

Country Status (1)

Country Link
JP (1) JP7334474B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20250326238A1 (en) * 2022-05-27 2025-10-23 Mimaki Engineering Co., Ltd. Display method
JP7725422B2 (en) * 2022-05-27 2025-08-19 株式会社ミマキエンジニアリング Display method, electronic device, program, and management system
JP2025051941A (en) * 2023-09-25 2025-04-07 東芝テック株式会社 Information processing device, server, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295162A (en) 2003-02-04 2004-10-21 I-Net Device Co Ltd Remote monitoring system
JP2006323505A (en) 2005-05-17 2006-11-30 Sony Corp Manufacturing history monitoring system and manufacturing history monitoring method
JP2012094961A (en) 2010-10-25 2012-05-17 Nec Corp Monitoring system, monitoring method, server device, program, and monitoring device
JP2015037387A (en) 2013-08-19 2015-02-26 有限会社サンパックシステム Environmental monitoring apparatus and environmental monitoring method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004295162A (en) 2003-02-04 2004-10-21 I-Net Device Co Ltd Remote monitoring system
JP2006323505A (en) 2005-05-17 2006-11-30 Sony Corp Manufacturing history monitoring system and manufacturing history monitoring method
JP2012094961A (en) 2010-10-25 2012-05-17 Nec Corp Monitoring system, monitoring method, server device, program, and monitoring device
JP2015037387A (en) 2013-08-19 2015-02-26 有限会社サンパックシステム Environmental monitoring apparatus and environmental monitoring method

Also Published As

Publication number Publication date
JP2020194444A (en) 2020-12-03

Similar Documents

Publication Publication Date Title
JP7334474B2 (en) Data relay device, data relay method, monitoring system, server device, terminal device and computer program
US9720776B2 (en) Server system, method for controlling the same, and program for executing parallel distributed processing
CN101277354B (en) Information processing apparatus
CN110191182B (en) Distributed file batch processing method, device, equipment and readable storage medium
US8452194B2 (en) System, image processing apparatus, image forming apparatus, and method thereof
US20020143936A1 (en) Management device, method and recording medium for managing network device
JP2009289218A (en) Information processing apparatus, and recovery method and recovery program for input information thereof
JP6021651B2 (en) Management system, management method, and computer program
JPH11161322A (en) Production line monitoring system
CN113032205B (en) Picture uploading method and device, storage medium and electronic equipment
CN113676353B (en) Device control method, device, storage medium and electronic device
JP2024158739A (en) Information processing device, control method, and program
JP7081313B2 (en) Relay server
JP6819501B2 (en) Information processing system and information processing method
JP4089192B2 (en) Image forming device management server
EP4518303A1 (en) Image management apparatus, method of controlling image management apparatus, and computer program
KR102851420B1 (en) Method, apparatus and recording medium storing instructions for processing delivery-related data for delivery management application offline
JP5544903B2 (en) Server device and control program thereof
JP2012095171A (en) Information processing system, information processing device, and image forming device
JP2024098775A (en) Information processing device, control method and program
US20220232103A1 (en) Information processing system, information provision system, and information processing method
JP2007272328A (en) Computer system
JP2008107977A (en) Document management device
JP7107042B2 (en) Information processing device and information processing program
JP2018186427A (en) Communication service management device and communication service management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220325

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221220

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20230215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230404

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230731

R150 Certificate of patent or registration of utility model

Ref document number: 7334474

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150