JP6825439B2 - Terminal devices, information information systems and programs - Google Patents

Terminal devices, information information systems and programs Download PDF

Info

Publication number
JP6825439B2
JP6825439B2 JP2017055758A JP2017055758A JP6825439B2 JP 6825439 B2 JP6825439 B2 JP 6825439B2 JP 2017055758 A JP2017055758 A JP 2017055758A JP 2017055758 A JP2017055758 A JP 2017055758A JP 6825439 B2 JP6825439 B2 JP 6825439B2
Authority
JP
Japan
Prior art keywords
information
polling
terminal device
communication
information processing
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
JP2017055758A
Other languages
Japanese (ja)
Other versions
JP2018160737A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2017055758A priority Critical patent/JP6825439B2/en
Publication of JP2018160737A publication Critical patent/JP2018160737A/en
Application granted granted Critical
Publication of JP6825439B2 publication Critical patent/JP6825439B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明は、端末装置、情報処理システムおよびプログラムに関する。 The present invention relates to terminal devices, information processing systems and programs.

端末と情報処理装置との通信経路を切り替える発明として、例えば特許文献1に開示された情報処理システムがある。このシステムにおいては、移動通信端末は、情報処理装置との通信が可能な範囲にあることを、アクセスポイントを介して検知した場合、無線通信でアクセスポイントを介さずに情報処理装置と直接接続する機能を起動し、情報処理装置と通信を行う。 As an invention for switching a communication path between a terminal and an information processing device, for example, there is an information processing system disclosed in Patent Document 1. In this system, when the mobile communication terminal detects that the communication with the information processing device is possible via the access point, the mobile communication terminal directly connects to the information processing device by wireless communication without going through the access point. Activates the function and communicates with the information processing device.

特開2014−187654号公報Japanese Unexamined Patent Publication No. 2014-187654

情報処理装置に接続した端末は、情報処理装置に処理を行わせ、行わせている処理に係る情報を得る場合がある。この情報を得る方法としては、コネクションを維持して情報を得る方法と、ポーリングで情報を得る方法がある。コネクションを維持して情報の授受を行う場合、必要に応じて通信を行うため、ポーリングで情報を得る方法と比較すると通信量は少なくなるが、無線通信で通信を行うと、例えば通信環境によってはコネクションが切断され、情報を取得できなくなる場合がある。ポーリングで情報を得る場合、情報の取得を繰り返すため、情報を確実に取得し得るが、ポーリングの間隔によっては通信量が増え、端末と情報処理装置の両方に負荷がかかる場合が生じ得る。 A terminal connected to the information processing device may cause the information processing device to perform processing and obtain information related to the processing being performed. As a method of obtaining this information, there are a method of obtaining information by maintaining a connection and a method of obtaining information by polling. When exchanging information while maintaining a connection, communication is performed as needed, so the amount of communication is smaller than the method of obtaining information by polling, but when communicating by wireless communication, for example, depending on the communication environment The connection may be disconnected and information may not be obtained. When information is obtained by polling, the information can be obtained reliably because the information is repeatedly acquired, but the amount of communication increases depending on the polling interval, and a load may be applied to both the terminal and the information processing device.

本発明は、上述した背景の下になされたものであり、通信量を抑えて情報を確実に授受する技術を提供することを目的とする。 The present invention has been made in the background described above, and an object of the present invention is to provide a technique for reliably transmitting and receiving information while suppressing the amount of communication.

本発明の請求項1に係る端末装置は、情報処理装置との間に確立されたコネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、前記第1取得手段が取得した情報を記憶する記憶手段と、前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段とを備える。 The terminal device according to claim 1 of the present invention includes a first acquisition means for acquiring information transmitted from the information processing device via a connection established with the information processing device, and the first acquisition means. When the storage means for storing the acquired information and the information stored in the storage means do not satisfy the predetermined conditions, the information is repeatedly acquired from the information processing apparatus by polling, and the first acquisition means acquires the information. When the information obtained and the information acquired by the poll satisfy a predetermined condition, the second acquisition means for stopping the acquisition of the information from the information processing apparatus by the poll is provided.

本発明の請求項2に係る端末装置においては、前記第2取得手段は、前記情報処理装置から情報が予め定められた時間を超えて送信されない場合、ポーリングで前記情報処理装置から繰り返し情報を取得する。 In the terminal device according to claim 2 of the present invention, the second acquisition means repeatedly acquires information from the information processing device by polling when the information is not transmitted from the information processing device for a predetermined time. To do.

本発明の請求項3に係る端末装置においては、前記第2取得手段は、前記情報処理装置から取得すべき情報を前記第1取得手段が取得していない場合、ポーリングで前記情報処理装置から繰り返し情報を取得する。 In the terminal device according to claim 3 of the present invention, when the first acquisition means has not acquired the information to be acquired from the information processing device, the second acquisition means repeats the information processing device by polling. Get information.

本発明の請求項4に係る端末装置においては、前記第2取得手段は、前記情報処理装置が送信した情報の履歴をポーリングで前記情報処理装置から取得し、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した履歴とが予め定められた第1条件を満たす場合、ポーリングで前記情報処理装置から繰り返し情報を取得する。 In the terminal device according to claim 4 of the present invention, the second acquisition means acquires the history of information transmitted by the information processing device from the information processing device by polling, and the information stored in the storage means. When the history and the history acquired by the second acquisition means satisfy a predetermined first condition, information is repeatedly acquired from the information processing apparatus by polling.

本発明の請求項5に係る端末装置においては、前記第2取得手段は、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した情報の履歴とが予め定められた第2条件を満たす場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する。 In the terminal device according to claim 5 of the present invention, the second acquisition means has a second history in which the history of information stored in the storage means and the history of information acquired by the second acquisition means are predetermined. When the condition is satisfied, the acquisition of information from the information processing apparatus by the polling is stopped.

本発明の請求項6に係る端末装置においては、前記第2取得手段は、前記情報処理装置が送信した情報の履歴をポーリングで前記情報処理装置から取得し、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した履歴とが予め定められた第3条件を満たす場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する。 In the terminal device according to claim 6 of the present invention, the second acquisition means acquires the history of information transmitted by the information processing device from the information processing device by polling, and the information stored in the storage means. When the history and the history acquired by the second acquisition means satisfy a predetermined third condition, the acquisition of information from the information processing apparatus by the polling is stopped.

本発明の請求項7に係る情報処理システムは、端末装置との間に確立されたコネクションを介して情報を送信する第1送信手段と、端末装置からのポーリングに応じて情報を送信する第2送信手段とを有する情報処理装置と、前記コネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、前記第1取得手段が取得した情報を記憶する記憶手段と、前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段とを有する端末装置と、を備える。 The information processing system according to claim 7 of the present invention has a first transmission means for transmitting information via a connection established with the terminal device and a second transmission means for transmitting information in response to polling from the terminal device. An information processing device having a transmitting means, a first acquisition means for acquiring information transmitted from the information processing device via the connection, a storage means for storing the information acquired by the first acquisition means, and the above. When the information stored in the storage means does not satisfy a predetermined condition, the information acquired by the first acquisition means and the information acquired by the poll are repeatedly acquired from the information processing apparatus by polling. It includes a terminal device having a second acquisition means for stopping the acquisition of information from the information processing device by the polling when a predetermined condition is satisfied.

本発明の請求項8に係るプログラムは、コンピュータを、情報処理装置との間に確立されたコネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、前記第1取得手段が取得した情報を記憶する記憶手段と、前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段として機能させるためのプログラムである。 The program according to claim 8 of the present invention includes a first acquisition means for acquiring information transmitted from the information processing device via a connection established between the computer and the information processing device, and the first acquisition. When the storage means for storing the information acquired by the means and the information stored in the storage means do not satisfy a predetermined condition, information is repeatedly acquired from the information processing apparatus by polling, and the first acquisition means. Is a program for functioning as a second acquisition means for stopping the acquisition of information from the information processing apparatus by the polling when the information acquired by the information processing device and the information acquired by the polling satisfy a predetermined condition. is there.

本発明の請求項1に係る端末装置によれば、通信量を抑えて情報を確実に授受することができる。
本発明の請求項2に係る端末装置によれば、コネクションを介して情報を取得できていない場合、ポーリングで情報を確実に授受することができる。
本発明の請求項3に係る端末装置によれば、コネクションを介して情報を取得できていない場合、ポーリングで情報を確実に授受することができる。
本発明の請求項4に係る端末装置によれば、コネクションを介して情報を取得できていない場合、ポーリングで情報を確実に授受することができる。
本発明の請求項5に係る端末装置によれば、ポーリングを停止し、通信量を抑えることができる。
本発明の請求項6に係る端末装置によれば、ポーリングを停止し、通信量を抑えることができる。
本発明の請求項7に係る情報処理システムによれば、通信量を抑えて情報を確実に授受することができる。
本発明の請求項8に係るプログラムによれば、通信量を抑えて情報を確実に授受することができる。
According to the terminal device according to claim 1 of the present invention, information can be reliably exchanged while suppressing the amount of communication.
According to the terminal device according to claim 2 of the present invention, when information cannot be acquired via a connection, information can be reliably exchanged by polling.
According to the terminal device according to claim 3 of the present invention, when information cannot be acquired via a connection, information can be reliably exchanged by polling.
According to the terminal device according to claim 4 of the present invention, when information cannot be acquired via a connection, information can be reliably exchanged by polling.
According to the terminal device according to claim 5 of the present invention, polling can be stopped and the amount of communication can be suppressed.
According to the terminal device according to claim 6 of the present invention, polling can be stopped and the amount of communication can be suppressed.
According to the information processing system according to claim 7 of the present invention, information can be reliably exchanged while suppressing the amount of communication.
According to the program according to claim 8 of the present invention, information can be reliably exchanged while suppressing the amount of communication.

本発明の一実施形態の情報処理システム1に係る装置を示した図。The figure which showed the apparatus which concerns on the information processing system 1 of one Embodiment of this invention. 端末装置10のハードウェア構成を示したブロック図。The block diagram which showed the hardware configuration of the terminal apparatus 10. 端末装置10において実現する機能の構成を示した機能ブロック図。The functional block diagram which showed the structure of the function realized in the terminal apparatus 10. 画像形成装置20のハードウェア構成を示したブロック図。The block diagram which showed the hardware structure of the image forming apparatus 20. 画像形成装置20において実現する機能の構成を示した機能ブロック図。The functional block diagram which showed the structure of the function realized in the image forming apparatus 20. 送信履歴を管理するテーブルの一例を示した図。The figure which showed an example of the table which manages the transmission history. 画像形成装置20がWebsocketの通信で送信した情報の履歴を格納したテーブルを示した図。The figure which showed the table which stored the history of the information transmitted by the image forming apparatus 20 by the communication of Websocket. 端末装置10がWebsocketの通信で受信した情報の履歴を格納したテーブルを示した図。The figure which showed the table which stored the history of the information received by the terminal apparatus 10 by the communication of Websocket. 端末装置10が行う処理の流れを示したフローチャート。The flowchart which showed the flow of the process performed by the terminal apparatus 10. 画像形成装置20がポーリングへの応答で送信した情報の履歴を格納したテーブルを示した図。The figure which showed the table which stored the history of the information transmitted by the image forming apparatus 20 in response to polling. 端末装置10がポーリングにより受信した情報の履歴を格納したテーブルを示した図。The figure which showed the table which stored the history of the information received by the terminal apparatus 10 by polling.

[実施形態]
(全体構成)
図1は、本発明の一実施形態の情報処理システム1に係る装置を示した図である。通信回線2は、データ通信が行われる通信回線であり、データ通信を行う複数のコンピュータ装置が接続される。通信回線2には、例えば有線LAN(Local Area Network)および無線LANが含まれる。
[Embodiment]
(overall structure)
FIG. 1 is a diagram showing an apparatus according to an information processing system 1 according to an embodiment of the present invention. The communication line 2 is a communication line on which data communication is performed, and a plurality of computer devices that perform data communication are connected to the communication line 2. The communication line 2 includes, for example, a wired LAN (Local Area Network) and a wireless LAN.

本発明に係る情報処理装置の一例である画像形成装置20は、用紙に画像を形成する画像形成機能、文書を読み取るスキャン機能、複写機能、ファクシミリ機能および写真印刷機能などを備えた装置である。画像形成装置20は、通信回線2に接続されており、通信回線2を介して他のコンピュータ装置と接続してデータ通信を行う。本実施形態においては、複数の画像形成装置20が通信回線2に接続可能であるが、図1においては、図面が煩雑になるのを防ぐため、一つの画像形成装置20のみを示す。 The image forming apparatus 20 which is an example of the information processing apparatus according to the present invention is an apparatus provided with an image forming function for forming an image on paper, a scanning function for reading a document, a copying function, a facsimile function, a photo printing function, and the like. The image forming apparatus 20 is connected to the communication line 2 and connects to another computer device via the communication line 2 to perform data communication. In the present embodiment, a plurality of image forming devices 20 can be connected to the communication line 2, but in FIG. 1, only one image forming device 20 is shown in order to prevent the drawings from becoming complicated.

本発明に係る端末装置の一例である端末装置10は、データ通信を行う装置であり、本実施形態においては、スマートフォンである。端末装置10は、通信回線2に含まれている無線LAN(Local Area Network)のアクセスポイントにアクセスして通信回線2に接続し、通信回線2を介してデータ通信を行う。本実施形態においては、複数の端末装置10が通信回線2に接続可能であるが、図1においては、図面が煩雑になるのを防ぐため、一つの端末装置10のみを示す。なお、端末装置10は、スマートフォンに限定されるものではなく、例えば、デスクトップ型のパーソナルコンピュータ、タブレット端末またはラップトップ型のパーソナルコンピュータであってもよい。 The terminal device 10 which is an example of the terminal device according to the present invention is a device for performing data communication, and in the present embodiment, is a smartphone. The terminal device 10 accesses a wireless LAN (Local Area Network) access point included in the communication line 2 to connect to the communication line 2, and performs data communication via the communication line 2. In the present embodiment, a plurality of terminal devices 10 can be connected to the communication line 2, but in FIG. 1, only one terminal device 10 is shown in order to prevent the drawings from becoming complicated. The terminal device 10 is not limited to a smartphone, and may be, for example, a desktop personal computer, a tablet terminal, or a laptop personal computer.

情報処理システム1においては、端末装置10と画像形成装置20が通信回線2を介して通信を行い、画像形成装置20の操作や設定を行うための画面を端末装置10で表示し、表示された画面を操作することにより、端末装置10から画像形成装置20の操作や設定を行うことが可能となっている。 In the information processing system 1, the terminal device 10 and the image forming device 20 communicate with each other via the communication line 2, and the terminal device 10 displays and displays a screen for operating and setting the image forming device 20. By operating the screen, it is possible to operate and set the image forming apparatus 20 from the terminal device 10.

(端末装置10の構成)
図2は、端末装置10のハードウェア構成の一例を示したブロック図である。タッチパネル103は、液晶ディスプレイと、液晶ディスプレイの表示面において指の接触を検出するセンサとを組み合わせた装置である。タッチパネル103は、文字やGUI(Graphical User Interface)などを表示する。また、タッチパネル103は、ユーザが指で触れた位置をセンサで検出する。
(Configuration of terminal device 10)
FIG. 2 is a block diagram showing an example of the hardware configuration of the terminal device 10. The touch panel 103 is a device that combines a liquid crystal display and a sensor that detects finger contact on the display surface of the liquid crystal display. The touch panel 103 displays characters, a GUI (Graphical User Interface), and the like. Further, the touch panel 103 detects the position touched by the user with a finger by the sensor.

通信部105は、通信回線2を介した通信を行う通信インターフェースとして機能する。また、通信部105は、移動体通信網を介して音声通話の通信およびデータ通信を行う通信インターフェースとしても機能する。 The communication unit 105 functions as a communication interface for communicating via the communication line 2. The communication unit 105 also functions as a communication interface for performing voice call communication and data communication via the mobile communication network.

音声処理部107は、マイクロフォンとスピーカを有している。音声処理部107は、端末装置10で音声通話を行う場合、通話相手の音声に係るデジタル信号が通信部105から供給されると、供給されたデジタル信号をアナログ信号に変換する。このアナログ信号は、スピーカへ供給され、スピーカからは、通話相手の音声が放音される。また、音声処理部107は、マイクロフォンが音声を収音すると、収音した音声をデジタル信号に変換する。音声処理部107は、端末装置10で音声通話を行う場合、ユーザの音声を変換して得られたデジタル信号を通信部105へ供給する。このデジタル信号は、通信部105から移動体通信網へ送信され、通話相手の端末装置10へ送信される。 The voice processing unit 107 has a microphone and a speaker. When a voice call is made by the terminal device 10, the voice processing unit 107 converts the supplied digital signal into an analog signal when the digital signal related to the voice of the other party is supplied from the communication unit 105. This analog signal is supplied to the speaker, and the voice of the other party is emitted from the speaker. Further, when the microphone picks up the voice, the voice processing unit 107 converts the picked up voice into a digital signal. When the terminal device 10 makes a voice call, the voice processing unit 107 supplies the digital signal obtained by converting the user's voice to the communication unit 105. This digital signal is transmitted from the communication unit 105 to the mobile communication network, and is transmitted to the terminal device 10 of the other party.

本発明に係る記憶手段の一例である記憶部102は、データを永続的に記憶する不揮発性メモリーを有している。記憶部102は、スマートフォンにインストールされる周知のオペレーティングシステムのプログラム、アプリケーションプログラムおよび各種プログラムが使用するファイルや情報を記憶する。また、記憶部102は、画像形成装置20の操作や設定を行うための専用のアプリケーションプログラム(以下、専用アプリと称する)および専用アプリが使用する各種情報を記憶する。 The storage unit 102, which is an example of the storage means according to the present invention, has a non-volatile memory for permanently storing data. The storage unit 102 stores files and information used by well-known operating system programs, application programs, and various programs installed on the smartphone. In addition, the storage unit 102 stores a dedicated application program (hereinafter, referred to as a dedicated application) for operating and setting the image forming apparatus 20, and various information used by the dedicated application.

制御部101は、CPU(Central Processing Unit)やRAM(Random Access Memory)を備えており、オペレーティングシステムのプログラムやアプリケーションプログラムを実行する。プログラムを実行している制御部101は、タッチパネル103が検出した位置と、タッチパネルに表示されている画面に応じてユーザの操作を特定し、特定した操作に応じて各部の制御や各種処理を実行する。 The control unit 101 includes a CPU (Central Processing Unit) and a RAM (Random Access Memory), and executes an operating system program or an application program. The control unit 101 executing the program identifies the user's operation according to the position detected by the touch panel 103 and the screen displayed on the touch panel, and executes control and various processes of each unit according to the specified operation. To do.

(端末装置10の機能構成)
図3は、専用アプリを実行することにより端末装置10において実現する機能のうち、本発明に係る特徴的な機能の構成の一例を示した機能ブロック図である。本発明に係る第1取得手段の一例である第1取得部1001は、通信部105を制御し、Websocketの通信により画像形成装置20から送信される情報を取得する。第1取得部1001がWebsocketの通信で取得した情報の履歴は、記憶部102に記憶される。本発明に係る第2取得手段の一例である第2取得部1002は、通信部105を制御し、SOAPでポーリングの通信を行い、画像形成装置20から送信される情報を取得する。第2取得部1002がポーリングで取得した情報の履歴は、記憶部102に記憶される。
(Functional configuration of terminal device 10)
FIG. 3 is a functional block diagram showing an example of a configuration of a characteristic function according to the present invention among the functions realized in the terminal device 10 by executing the dedicated application. The first acquisition unit 1001, which is an example of the first acquisition means according to the present invention, controls the communication unit 105 and acquires the information transmitted from the image forming apparatus 20 by the communication of Websocket. The history of information acquired by the first acquisition unit 1001 through Websocket communication is stored in the storage unit 102. The second acquisition unit 1002, which is an example of the second acquisition means according to the present invention, controls the communication unit 105, performs polling communication by SOAP, and acquires information transmitted from the image forming apparatus 20. The history of the information acquired by the second acquisition unit 1002 by polling is stored in the storage unit 102.

(画像形成装置20の構成)
図4は、画像形成装置20のハードウェア構成の一例を示した図である。操作部204は、画像形成装置20を操作するための複数のボタンを有する。また、操作部204は、液晶ディスプレイと液晶ディスプレイの表示面において指の接触を検出するセンサとを組み合わせたタッチパネル204Aを備えている。タッチパネル204Aは、画像形成装置20を操作するためのGUIの画面を表示する。なお、本実施形態においては、画像形成装置20はタッチパネル204Aを有し、タッチパネル204Aとボタンで画像形成装置20を操作可能であるが、タッチパネル204Aの替わりに液晶ディスプレイを有し、液晶ディスプレイでGUIの画面を表示し、ボタンで画像形成装置を操作する構成であってもよい。
(Structure of image forming apparatus 20)
FIG. 4 is a diagram showing an example of the hardware configuration of the image forming apparatus 20. The operation unit 204 has a plurality of buttons for operating the image forming apparatus 20. Further, the operation unit 204 includes a touch panel 204A that combines a liquid crystal display and a sensor that detects finger contact on the display surface of the liquid crystal display. The touch panel 204A displays a GUI screen for operating the image forming apparatus 20. In the present embodiment, the image forming apparatus 20 has the touch panel 204A, and the image forming apparatus 20 can be operated by the touch panel 204A and the buttons. However, the image forming apparatus 20 has a liquid crystal display instead of the touch panel 204A, and the GUI is displayed on the liquid crystal display. The screen may be displayed and the image forming apparatus may be operated with a button.

通信部205は、通信回線2に有線または無線で接続されており、通信回線2に接続されている他の装置とデータ通信を行う。 The communication unit 205 is connected to the communication line 2 by wire or wirelessly, and performs data communication with another device connected to the communication line 2.

スキャン部206は、文書を光学的に読み取り、読み取った文書の画像を表す画像ファイルを生成する画像読取装置(図示略)を備えている。画像処理部208は、用紙に形成する画像を表す画像データに各種処理を施すものである。画像処理部208は、制御部201から供給される画像データが表す画像に色補正や階調補正等の画像処理を施し、画像処理が施された画像からYellow(Y)、Magenta(M)、Cyan(C)、Black(K)の各色の画像の画像データを生成して画像形成部207へ出力する。 The scanning unit 206 includes an image reading device (not shown) that optically reads a document and generates an image file representing an image of the read document. The image processing unit 208 performs various processes on the image data representing the image formed on the paper. The image processing unit 208 performs image processing such as color correction and gradation correction on the image represented by the image data supplied from the control unit 201, and from the image processed image, Yellow (Y), Magenta (M), and so on. Image data of images of each color of Cyan (C) and Black (K) is generated and output to the image forming unit 207.

画像形成部207は、電子写真方式によって用紙にトナー像を形成する。具体的には、画像形成部207は、Yellowの色のトナー像を形成する画像形成部、Magentaの色のトナー像を形成する画像形成部、Cyanの色のトナー像を形成する画像形成部、Blackの色のトナー像を形成する画像形成部を備えている。各画像形成部は、画像処理部208が出力した画像データに従って感光体上に静電潜像を形成した後、感光体表面にトナーを付着させてYellow、Magenta、Cyan、Blackの各色のトナー像を形成し、このトナー像を用紙に転写する。そして、用紙に転写されたトナー像に熱と圧力を加えて定着させた後、トナー像が形成された用紙を画像形成装置20の外へ排出する。なお、画像形成部207は、本実施形態においてはトナーを用いて用紙に画像を形成するが、インクジェット方式などのインクを用いて用紙に画像を形成する構成としてもよい。 The image forming unit 207 forms a toner image on the paper by an electrophotographic method. Specifically, the image forming unit 207 includes an image forming unit that forms a toner image of Yellow color, an image forming unit that forms a toner image of Magenta color, and an image forming unit that forms a toner image of Cyan color. It is provided with an image forming portion for forming a toner image of Black color. Each image forming unit forms an electrostatic latent image on the photoconductor according to the image data output by the image processing unit 208, and then adheres toner to the surface of the photoconductor to form a toner image of each color of Yellow, Magenta, Cyan, and Black. Is formed, and this toner image is transferred to paper. Then, heat and pressure are applied to the toner image transferred to the paper to fix it, and then the paper on which the toner image is formed is discharged to the outside of the image forming apparatus 20. In the present embodiment, the image forming unit 207 forms an image on the paper using toner, but may be configured to form an image on the paper using ink such as an inkjet method.

記憶部202は、データを永続的に記憶する記憶装置を有しており、端末装置10から送信されて通信部205が受信した文書ファイルや画像ファイル、スキャン部206が生成した画像ファイルを記憶する。また、記憶部202は、端末装置10へ送信した情報の履歴を記憶する。また、記憶部202は、ユーザを認証するための情報として、ログインを許可するユーザに付与されたユーザIDおよびパスワードを記憶する。 The storage unit 202 has a storage device that permanently stores data, and stores document files and image files transmitted from the terminal device 10 and received by the communication unit 205, and image files generated by the scanning unit 206. .. Further, the storage unit 202 stores the history of the information transmitted to the terminal device 10. In addition, the storage unit 202 stores the user ID and password given to the user who is permitted to log in as information for authenticating the user.

制御部201は、CPU、RAMおよび不揮発性メモリーを備えており、不揮発性メモリーに記憶されているオペレーティングシステムのプログラムやアプリケーションプログラムを実行する。 The control unit 201 includes a CPU, RAM, and a non-volatile memory, and executes an operating system program or an application program stored in the non-volatile memory.

図5は、画像形成装置20において実現する機能のうち、本発明に係る機能の構成を示したブロック図である。本発明に係る第1送信手段の一例である第1送信部2001は、Websocketの通信で情報を端末装置10へ送信する。第1送信部2001がWebsocketの通信で送信した情報の履歴は、記憶部202に記憶される。本発明に係る第2送信手段の一例である第2送信部2002は、端末装置10からのポーリングの通信へ応答して情報を送信する。第2送信部2002がポーリングの応答で送信した情報の履歴は、記憶部202に記憶される。 FIG. 5 is a block diagram showing a configuration of a function according to the present invention among the functions realized by the image forming apparatus 20. The first transmission unit 2001, which is an example of the first transmission means according to the present invention, transmits information to the terminal device 10 by Websocket communication. The history of the information transmitted by the first transmission unit 2001 in the Websocket communication is stored in the storage unit 202. The second transmission unit 2002, which is an example of the second transmission means according to the present invention, transmits information in response to the polling communication from the terminal device 10. The history of the information transmitted by the second transmission unit 2002 in response to the polling is stored in the storage unit 202.

(実施形態の動作例)
次に本実施形態の動作の一例を説明する。端末装置10のユーザが、専用アプリの実行を指示する操作をタッチパネル103において行うと、端末装置10は、専用アプリを実行する。専用アプリを実行した端末装置10は、通信回線2に接続し、Websocketの規格に従った通信により画像形成装置20との間でコネクションを確立する。端末装置10と画像形成装置20との間でコネクションが確立すると、端末装置10と画像形成装置20との間で双方向の通信が可能となる。
(Operation example of the embodiment)
Next, an example of the operation of this embodiment will be described. When the user of the terminal device 10 performs an operation instructing the execution of the dedicated application on the touch panel 103, the terminal device 10 executes the dedicated application. The terminal device 10 that executes the dedicated application connects to the communication line 2 and establishes a connection with the image forming device 20 by communication according to the Websocket standard. When a connection is established between the terminal device 10 and the image forming device 20, bidirectional communication becomes possible between the terminal device 10 and the image forming device 20.

次に、例えばユーザIDがUser_Aであるユーザが、ユーザIDおよびパスワードをタッチパネル103において入力し、画像形成装置20へのログインを指示する操作を行うと、端末装置10は、入力されたユーザIDおよびパスワードの組を画像形成装置20へ送信する。画像形成装置20は、端末装置10から送信されたユーザIDとパスワードの組を取得する。画像形成装置20においては、この取得したユーザIDとパスワードの組と同じ組が記憶部202に記憶されている場合、ユーザIDがUser_Aであるユーザが画像形成装置20にログインした状態となる。 Next, for example, when a user whose user ID is User_A inputs a user ID and password on the touch panel 103 and performs an operation instructing login to the image forming apparatus 20, the terminal device 10 performs the input user ID and the input user ID and password. The password set is transmitted to the image forming apparatus 20. The image forming apparatus 20 acquires a set of a user ID and a password transmitted from the terminal apparatus 10. In the image forming apparatus 20, when the same set as the acquired set of the user ID and the password is stored in the storage unit 202, the user whose user ID is User_A is logged in to the image forming apparatus 20.

画像形成装置20は、ユーザがログインすると、ログインしたユーザへ送信した情報の送信履歴をユーザ毎に記憶する。図6は、ログインしたユーザ毎に生成される送信履歴を管理するテーブルTB1の一例を示した図である。UI識別子のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10を識別する識別子を格納する。UI種別のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10の種別を格納する。ユーザIDのフィールドは、画像形成装置20にログインしたユーザのユーザIDを格納する。 When the user logs in, the image forming apparatus 20 stores the transmission history of the information transmitted to the logged-in user for each user. FIG. 6 is a diagram showing an example of a table TB1 that manages a transmission history generated for each logged-in user. The UI identifier field stores an identifier that identifies the terminal device 10 used by the user who has logged in to the image forming device 20. The UI type field stores the type of the terminal device 10 used by the user who has logged in to the image forming device 20. The user ID field stores the user ID of the user who has logged in to the image forming apparatus 20.

例えば、ユーザIDがUser_Aであるユーザが、スマートフォンである端末装置10で無線通信により画像形成装置20へログインした場合、図6の1行目のレコードに示したように、UI種別のフィールドには「スマートフォン」が格納され、ユーザIDのフィールドには「User_A」が格納される。 For example, when a user whose user ID is User_A logs in to the image forming apparatus 20 by wireless communication with the terminal device 10 which is a smartphone, as shown in the record of the first line of FIG. 6, the UI type field is displayed. "Smartphone" is stored, and "User_A" is stored in the user ID field.

接続方式のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10の通信方法を格納する。例えば、接続方式のフィールドには、端末装置10が有線の通信回線で画像形成装置20に接続している場合には「有線」が格納され、端末装置10が無線の通信回線を用いて画像形成装置20に接続している場合には「無線」が格納される。 The connection method field stores the communication method of the terminal device 10 used by the user who has logged in to the image forming device 20. For example, in the connection method field, when the terminal device 10 is connected to the image forming device 20 by a wired communication line, "wired" is stored, and the terminal device 10 forms an image using a wireless communication line. When connected to the device 20, "wireless" is stored.

ポーリング設定のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10からのポーリングの通信に対して応答を行うか否かを表す情報を格納する。例えば、有線の通信回線で画像形成装置20に接続している端末装置10に対しては、画像形成装置20は、端末装置10からのポーリングの通信へ応答しないため、ポーリング設定のフィールドには「NO」が格納される。また、無線の通信回線を介して画像形成装置20に接続している端末装置10に対しては、画像形成装置20は、端末装置10からのポーリングの通信へ応答するため、ポーリング設定のフィールドには「YES」が格納される。 The poll setting field stores information indicating whether or not to respond to the polling communication from the terminal device 10 used by the user who has logged in to the image forming device 20. For example, for the terminal device 10 connected to the image forming device 20 by a wired communication line, the image forming device 20 does not respond to the polling communication from the terminal device 10, so that the field of the polling setting is " "NO" is stored. Further, for the terminal device 10 connected to the image forming device 20 via the wireless communication line, the image forming device 20 responds to the polling communication from the terminal device 10, so that the polling setting field is entered. Is stored as "YES".

Websocket送信履歴のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10へWebsocketの通信で送信した情報の履歴を格納するテーブルの名称が格納される。例えば、ユーザIDがUser_Aであるユーザが使用する端末装置10へWebsocketの通信で送信した情報の履歴を格納するテーブルの名称が「UI1_WS」である場合、図6の1行目のレコードに示したように、Websocket送信履歴のフィールドには、「UI1_WS」が格納される。 In the Websocket transmission history field, the name of a table that stores the history of information transmitted by Websocket communication to the terminal device 10 used by the user who has logged in to the image forming device 20 is stored. For example, when the name of the table for storing the history of information transmitted by Websocket communication to the terminal device 10 used by the user whose user ID is User_A is "UI1_WS", it is shown in the record in the first row of FIG. As described above, "UI1_WS" is stored in the field of the Websocket transmission history.

ポーリング送信履歴のフィールドは、画像形成装置20にログインしたユーザが使用する端末装置10からのポーリングの通信への応答で送信した情報の履歴を格納するテーブルの名称が格納される。例えば、ユーザIDがUser_Aであるユーザが使用する端末装置10へポーリングの通信への応答で送信した情報の履歴を格納するテーブルの名称が「UI1_PO」である場合、図6の1行目のレコードに示したように、ポーリング送信履歴のフィールドには「UI1_PO」が格納される。 The field of the polling transmission history stores the name of the table that stores the history of the information transmitted in response to the polling communication from the terminal device 10 used by the user logged in to the image forming apparatus 20. For example, when the name of the table storing the history of the information transmitted in response to the polling communication to the terminal device 10 used by the user whose user ID is User_A is "UI1_PO", the record in the first row of FIG. As shown in, "UI1_PO" is stored in the polling transmission history field.

画像形成装置20にログインしたユーザが、端末装置10に記憶されている文書ファイルを選択し、選択した文書ファイルが表す文書の印刷を指示する操作をタッチパネル103において行うと、端末装置10は、選択された文書ファイルと印刷を指示するメッセージを画像形成装置20へ送信する。 When a user logged in to the image forming apparatus 20 selects a document file stored in the terminal apparatus 10 and performs an operation on the touch panel 103 to instruct printing of a document represented by the selected document file, the terminal apparatus 10 selects. The document file and the message instructing printing are transmitted to the image forming apparatus 20.

画像形成装置20は、端末装置10から送信された文書ファイルとメッセージを受信する。文書ファイルとメッセージを受信した画像形成装置20は、画像処理部208と画像形成部207を制御し、受信した文書ファイルが表す文書の印刷処理(印刷ジョブ)を開始する。 The image forming apparatus 20 receives the document file and the message transmitted from the terminal apparatus 10. The image forming apparatus 20 that has received the document file and the message controls the image processing unit 208 and the image forming unit 207, and starts the printing process (print job) of the document represented by the received document file.

文書の印刷を開始した画像形成装置20は、文書の印刷に係る情報を端末装置10へWebsocketの通信で送信する。文書の印刷に係る情報とは、例えば、印刷の進捗状況を表す情報である。画像形成装置20は、文書の印刷を開始すると、印刷の開始を通知する情報をWebsocketの通信で送信し、文書の各ページを印刷する毎に、各ページの印刷完了を通知する情報をWebsocketの通信で送信する。また、画像形成装置20は、文書の印刷が終了すると、文書の印刷を通知する情報をWebsocketの通信で送信する。画像形成装置20は、端末装置10へWebsocketの通信で情報を送信すると、情報を送信する毎に、送信した情報の履歴を記憶する。 The image forming apparatus 20 that has started printing the document transmits the information related to the printing of the document to the terminal apparatus 10 by Websocket communication. The information related to printing a document is, for example, information indicating the progress of printing. When the image forming apparatus 20 starts printing the document, the image forming apparatus 20 transmits the information notifying the start of printing by the Websocket communication, and each time each page of the document is printed, the information notifying the completion of printing of each page is transmitted by the Websocket. Send by communication. Further, when the printing of the document is completed, the image forming apparatus 20 transmits the information notifying the printing of the document by Websocket communication. When information is transmitted to the terminal device 10 by Websocket communication, the image forming apparatus 20 stores the history of the transmitted information each time the information is transmitted.

図7は、User_Aが使用する端末装置10へWebsocketの通信で送信した情報の履歴を格納したテーブル、即ち、テーブルの名称が「UI1_WS」であるテーブルの一例を示した図である。情報IDのフィールドは、端末装置10へWebsocketの通信で送信した情報を識別する識別子を格納する。日時のフィールドは、端末装置10へWebsocketの通信で情報を送信した日時を格納する。通知種別のフィールドは、Websocketの通信で送信した情報の種別を格納する。例えば、送信した情報が、文書を印刷するジョブに係る情報である場合、通知種別のフィールドには「ジョブ」が格納される。通知内容のフィールドは、送信した情報の内容を格納する。ユーザIDのフィールドは、情報の送信先である端末装置10のユーザのユーザIDを格納する。通知先のフィールドは、情報の送信先であるユーザが使用する端末装置10を識別する識別子を格納する。 FIG. 7 is a diagram showing an example of a table in which a history of information transmitted by Websocket communication to the terminal device 10 used by User_A is stored, that is, a table whose name is "UI1_WS". The information ID field stores an identifier that identifies information transmitted to the terminal device 10 via Websocket communication. The date and time field stores the date and time when the information is transmitted to the terminal device 10 by Websocket communication. The notification type field stores the type of information transmitted by Websocket communication. For example, if the transmitted information is information related to a job for printing a document, "job" is stored in the notification type field. The notification content field stores the content of the transmitted information. The user ID field stores the user ID of the user of the terminal device 10 to which the information is transmitted. The notification destination field stores an identifier that identifies the terminal device 10 used by the user who is the destination of the information.

例えば、ユーザIDがUser_Aであるユーザが使用する端末装置10から送信された文書ファイルに応じて、画像形成装置20がページ数が3ページである文書を印刷した場合、画像形成装置20は、端末装置10に対して文書の印刷開始を通知する情報、1ページ目の印刷の完了通知の情報、2ページ目の印刷の完了通知の情報、3ページ目の印刷の完了通知の情報、および文書の印刷の完了通知の情報を送信する。 For example, when the image forming apparatus 20 prints a document having 3 pages according to the document file transmitted from the terminal apparatus 10 used by the user whose user ID is User_A, the image forming apparatus 20 uses the terminal. Information for notifying the device 10 of the start of printing of a document, information for notifying the completion of printing on the first page, information on notifying the completion of printing on the second page, information on notifying the completion of printing on the third page, and information on the document Send print completion notification information.

この場合、情報の履歴を格納するテーブルの名称が「UI1_WS」であるテーブルには、図7に例示したように、文書の印刷開始の情報が1行目のレコードに格納され、1ページ目の印刷の完了通知の情報が2行目のレコードに格納され、2ページ目の印刷の完了通知の情報が3行目のレコードに格納され、3ページ目の印刷の完了通知の情報が4行目のレコードに格納され、文書の印刷の完了通知の情報が5行目のレコードに格納される。 In this case, in the table in which the name of the table for storing the history of information is "UI1_WS", as illustrated in FIG. 7, the information on the start of printing the document is stored in the record on the first line, and the first page. The print completion notification information is stored in the second line record, the print completion notification information on the second page is stored in the third line record, and the print completion notification information on the third page is stored in the fourth line. The information of the completion notification of printing of the document is stored in the record of the fifth line.

一方、端末装置10は、画像形成装置20からWebsocketの通信で送信される情報を受信し、Websocketの通信で受信した情報を履歴として記憶する。図8は、User_Aが使用する端末装置10がWebsocketの通信で受信した情報の履歴を格納したテーブルの一例を示した図である。情報IDのフィールドは、Websocketの通信で受信した情報を識別する識別子を格納する。日時のフィールドは、Websocketの通信で情報を受信した日時を格納する。通知種別のフィールドは、Websocketの通信で受信した情報の種別を格納する。通知内容のフィールドは、Websocketの通信で受信した情報の内容を格納する。 On the other hand, the terminal device 10 receives the information transmitted from the image forming device 20 in the Websocket communication, and stores the information received in the Websocket communication as a history. FIG. 8 is a diagram showing an example of a table in which the history of information received by the terminal device 10 used by User_A in Websocket communication is stored. The information ID field stores an identifier that identifies the information received in the Websocket communication. The date and time field stores the date and time when the information was received in the Websocket communication. The notification type field stores the type of information received in Websocket communication. The notification content field stores the content of the information received in the Websocket communication.

画像形成装置20にWebSocketの通信で接続している端末装置10は、図9に示した処理を行い、受信した情報の履歴を参照し、WebSocketの通信が正常に行われているか判断する(ステップSA1)。例えば、端末装置10は、2ページ目の完了通知を受信した後、予め定められた時間が経過しても3ページ目の完了通知を受信しなかった場合、Websocketの通信が異常であると判断する。つまり端末装置10は、順番に送信される情報を受信するという条件を満たしておらず、受信すべき情報を受信していない場合、Websocketの通信が異常であると判断する。 The terminal device 10 connected to the image forming device 20 by WebSocket communication performs the processing shown in FIG. 9, refers to the history of the received information, and determines whether WebSocket communication is normally performed (step). SA1). For example, if the terminal device 10 does not receive the completion notification on the third page even after a predetermined time has elapsed after receiving the completion notification on the second page, it determines that the Websocket communication is abnormal. To do. That is, if the terminal device 10 does not satisfy the condition of receiving the information to be transmitted in order and does not receive the information to be received, it is determined that the Websocket communication is abnormal.

端末装置10は、Websocketの通信に異常があると判断した場合、画像形成装置20に対してSOAP(Simple Object Access Protocol)でポーリングの通信を行い、ユーザIDがUser_Aであるユーザに係る処理の最新の情報をリクエストする(ステップSA2)。画像形成装置20は、端末装置10が行ったポーリングの通信によるリクエストに応じて、ユーザIDがUser_Aであるユーザに係る処理の最新の情報をSOAPで端末装置10へ送信する。 When the terminal device 10 determines that there is an abnormality in the Websocket communication, the terminal device 10 performs polling communication with the image forming device 20 by SOAP (Simple Object Access Protocol), and the latest processing related to the user whose user ID is User_A. Request information for (step SA2). The image forming apparatus 20 transmits the latest information of the processing relating to the user whose user ID is User_A to the terminal apparatus 10 by SOAP in response to the request by the polling communication performed by the terminal apparatus 10.

例えば、画像形成装置20は、User_AへWebsocketの通信で送信した情報の履歴を参照し、User_Aの端末装置10へ送信した最新の情報を取得する。この最新の情報が、例えば、文書の印刷の完了通知である場合、印刷完了の通知をSOAPで端末装置10へ送信する。画像形成装置20は、端末装置10へポーリングの通信への応答(レスポンス)でSOAPにより情報を送信すると、情報を送信する毎に、SOAPで送信した情報の履歴を記憶する。 For example, the image forming apparatus 20 refers to the history of information transmitted to User_A by Websocket communication, and acquires the latest information transmitted to the terminal device 10 of User_A. When the latest information is, for example, a notification of the completion of printing of a document, the notification of the completion of printing is transmitted to the terminal device 10 by SOAP. When the image forming apparatus 20 transmits information by SOAP to the terminal apparatus 10 in response to the polling communication, the image forming apparatus 20 stores the history of the information transmitted by SOAP every time the information is transmitted.

図10は、User_Aが使用する端末装置10へ、ポーリングの通信への応答でSOAPにより送信した情報の履歴を格納したテーブル、即ち、テーブルの名称が「UI1_PO」であるテーブルの一例を示した図である。情報IDのフィールドは、端末装置10へSOAPにより送信した情報を識別する識別子を格納する。日時のフィールドは、端末装置10へSOAPの通信により情報を送信した日時を格納する。通知種別のフィールドは、SOAPの通信で送信した情報の種別を格納する。通知内容のフィールドは、送信した情報の内容を格納する。ユーザIDのフィールドは、情報の送信先であるユーザのユーザIDを格納する。通知先のフィールドは、情報の送信先であるユーザが使用する端末装置10を識別する識別子を格納する。 FIG. 10 is a diagram showing an example of a table in which a history of information transmitted by SOAP in response to a polling communication to the terminal device 10 used by User_A is stored, that is, a table whose name is "UI1_PO". Is. The information ID field stores an identifier that identifies the information transmitted by SOAP to the terminal device 10. The date and time field stores the date and time when the information was transmitted to the terminal device 10 by SOAP communication. The notification type field stores the type of information transmitted by SOAP communication. The notification content field stores the content of the transmitted information. The user ID field stores the user ID of the user to whom the information is sent. The notification destination field stores an identifier that identifies the terminal device 10 used by the user who is the destination of the information.

端末装置10は、ポーリングの通信によるリクエストに応じて画像形成装置20から送信された情報、即ち、リクエストに対するレスポンスを取得し(ステップSA3)、ポーリングの通信により受信した情報を履歴として記憶する(ステップSA4)。
図11は、User_Aが使用する端末装置10がポーリングにより受信した情報の履歴を格納したテーブルの一例を示した図である。情報IDのフィールドは、ポーリングの通信で受信した情報を識別する識別子を格納する。日時のフィールドは、ポーリングの通信で情報を受信した日時を格納する。通知種別のフィールドは、ポーリングの通信で受信した情報の種別を格納する。通知内容のフィールドは、ポーリングの通信で受信した情報の内容を格納する。
The terminal device 10 acquires the information transmitted from the image forming apparatus 20 in response to the request by the polling communication, that is, the response to the request (step SA3), and stores the information received by the polling communication as a history (step). SA4).
FIG. 11 is a diagram showing an example of a table in which the history of information received by the terminal device 10 used by User_A by polling is stored. The information ID field stores an identifier that identifies the information received in the polling communication. The date and time field stores the date and time when the information was received in the polling communication. The notification type field stores the type of information received in the polling communication. The notification content field stores the content of the information received in the polling communication.

なお、端末装置10と画像形成装置20との間でWebsocketの通信が復旧すると、User_Aに係るジョブの情報が、ポーリングの通信への応答とは別に、Websocketの通信でも画像形成装置20から端末装置10へ送信される。例えば、印刷が完了する前にWebsocketの通信が復旧し、Websocketの通信が復旧した後で文書の印刷が完了した場合、画像形成装置20は、印刷完了の情報をWebsocketの通信でも端末装置10へ送信する。端末装置10は、画像形成装置20からWebsocketの通信で送信される情報を受信し、Websocketの通信で受信した情報を履歴として記憶する。 When the Websocket communication is restored between the terminal device 10 and the image forming device 20, the job information related to User_A is sent from the image forming device 20 to the terminal device in the Websocket communication as well, apart from the response to the polling communication. It is transmitted to 10. For example, if the Websocket communication is restored before the printing is completed and the document printing is completed after the Websocket communication is restored, the image forming apparatus 20 sends the print completion information to the terminal device 10 even in the Websocket communication. Send. The terminal device 10 receives the information transmitted from the image forming device 20 in the Websocket communication, and stores the information received in the Websocket communication as a history.

端末装置10は、ポーリングの通信で画像形成装置20から情報を受信すると、ポーリングの繰り返しを終了するか判断する(ステップSA5)。具体的には、端末装置10は、Websocketの通信で取得した情報の履歴とポーリングの通信で取得した情報の履歴を比較し、ポーリングの繰り返しを終了するか否かを判断する。 When the terminal device 10 receives the information from the image forming device 20 in the polling communication, the terminal device 10 determines whether to end the repetition of the polling (step SA5). Specifically, the terminal device 10 compares the history of information acquired by Websocket communication with the history of information acquired by polling communication, and determines whether or not to end the repetition of polling.

例えば、端末装置10は、現時点から予め定められた過去の時点までの間にWebsocketの通信で取得した情報と、現時点から予め定められた過去の時点までの間にポーリングの通信で取得した情報とが一致しないという条件を満たす場合、ポーリングの繰り返しを終了しないと判断する。端末装置10は、ポーリングの繰り返しを終了しない場合(ステップSA5でNO)、処理の流れをステップSA2へ戻し、ポーリングの通信を再度行う。 For example, the terminal device 10 includes information acquired by Websocket communication from the present time to a predetermined past time point, and information acquired by polling communication from the present time to a predetermined past time point. If the condition that does not match is satisfied, it is determined that the polling repetition is not finished. If the terminal device 10 does not end the repetition of polling (NO in step SA5), the processing flow is returned to step SA2, and the polling communication is performed again.

端末装置10は、現時点から予め定められた過去の時点までの間にWebsocketの通信で取得した情報と、現時点から予め定められた過去の時点までの間にポーリングの通信で取得した情報とが一致するという条件(第2条件の一例)を満たした場合、ポーリングの繰り返しを終了すると判断する。端末装置10は、ポーリングの繰り返しを終了する場合(ステップSA5でYES),処理の流れをステップSA1へ戻し、Websocketの通信を継続する。 In the terminal device 10, the information acquired by the Websocket communication from the present time to the predetermined past time point and the information acquired by the polling communication from the present time to the predetermined past time point match. When the condition of doing (an example of the second condition) is satisfied, it is determined that the repetition of polling is finished. When the terminal device 10 ends the repetition of polling (YES in step SA5), the terminal device 10 returns the processing flow to step SA1 and continues Websocket communication.

本実施形態によれば、端末装置10は、Websocketの通信に異常が発生した場合、ポーリングによって情報を要求するため、Websocketの通信で取得できなかった情報を取得する。また、本実施形態によれば、Websocketの通信により取得した情報とポーリングの通信により取得した情報とが一致するとポーリングの繰り返しを終了するため、ポーリングの通信を繰り返し続ける構成と比較すると、通信量が低くなる。 According to the present embodiment, when an abnormality occurs in the Websocket communication, the terminal device 10 requests the information by polling, and therefore acquires the information that could not be acquired by the Websocket communication. Further, according to the present embodiment, when the information acquired by the Websocket communication and the information acquired by the polling communication match, the polling repetition is terminated. It gets lower.

[変形例]
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限定されることなく、他の様々な形態で実施可能である。例えば、上述の実施形態を以下のように変形して本発明を実施してもよい。なお、上述した実施形態および以下の変形例は、各々を組み合わせてもよい。
[Modification example]
Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and can be implemented in various other embodiments. For example, the present invention may be carried out by modifying the above-described embodiment as follows. The above-described embodiment and the following modifications may be combined with each other.

(変形例1)
上述した実施形態においては、端末装置10は、予め定められた時間が経過しても次に送られるべき情報を受信しなかった場合、ステップSA1でWebsocketの通信に異常があると判断し、ポーリングの通信を開始しているが、Websocketの通信に異常があると判断する方法は、実施形態に方法に限定されるものではない。
(Modification example 1)
In the above-described embodiment, if the terminal device 10 does not receive the information to be sent next even after the lapse of a predetermined time, it is determined in step SA1 that there is an abnormality in the Websocket communication, and polling is performed. However, the method of determining that there is an abnormality in the Websocket communication is not limited to the method according to the embodiment.

例えば、端末装置10が印刷開始の通知を受信した後、1ページ目と2ページ目の印刷の完了通知を受信できず、3ページ目の印刷の完了通知を受信した場合を想定する。このように、受信するはずの1ページ目と2ページ目の印刷の完了通知を端末装置10が受信していない場合、端末装置10は、ステップSA1において、Websocketの通信に異常があったと判断し(ステップSA1でYES)、ステップSA2へ処理の流れを移し、ポーリングの通信を開始してもよい。 For example, it is assumed that after the terminal device 10 receives the printing start notification, the printing completion notifications of the first and second pages cannot be received, and the printing completion notification of the third page is received. In this way, when the terminal device 10 does not receive the print completion notification of the first page and the second page that should be received, the terminal device 10 determines in step SA1 that there is an abnormality in the Websocket communication. (YES in step SA1), the processing flow may be shifted to step SA2, and polling communication may be started.

(変形例2)
本発明においては、端末装置10は、予め定められた周期でポーリングの通信を行い、画像形成装置20がWebsocketの通信で端末装置10へ送信した情報の履歴のうち、最新のものから予め定められた個数の情報を画像形成装置20から取得してもよい。この場合、端末装置10は、このポーリングの通信で取得した情報と、Websocketの通信で受信した情報の履歴のうち、最新のものから予め定められた個数の情報とを比較し、情報が一致しないという条件(第1条件の一例)を満たす場合にはステップSA2へ処理の流れを移し、情報が一致するという条件(第3条件の一例)を満たす場合には、ポーリングの繰り返しを終了するようにしてもよい。即ち、端末装置10がWebsocketの通信で受信した情報の履歴と、画像形成装置20がWebsocketの通信で送信した情報の履歴とが一致しない場合には、処理の流れをステップSA2へ移すようにしてもよい。
(Modification 2)
In the present invention, the terminal device 10 performs polling communication at a predetermined cycle, and the latest history of information transmitted by the image forming device 20 to the terminal device 10 via Websocket communication is predetermined. The number of pieces of information may be acquired from the image forming apparatus 20. In this case, the terminal device 10 compares the information acquired in the polling communication with a predetermined number of pieces of information from the latest information in the history of the information received in the Websocket communication, and the information does not match. When the condition (an example of the first condition) is satisfied, the processing flow is shifted to step SA2, and when the condition that the information matches (an example of the third condition) is satisfied, the polling repetition is terminated. You may. That is, when the history of the information received by the terminal device 10 in the Websocket communication and the history of the information transmitted by the image forming device 20 in the Websocket communication do not match, the processing flow is shifted to step SA2. May be good.

また、端末装置10は、予め定められた周期で予め定められた期間の間、繰り返しポーリングの通信を行う構成としてもよい。この構成の場合、端末装置10は、例えば、10分が経過する毎に1分の間、ポーリングの通信を繰り返し行い、画像形成装置20へUser_Aに係る処理の最新の情報をリクエストする。端末装置10は、この構成においても、ポーリングの通信で取得した情報のうち、最新のものから予め定められた個数の情報と、Websocketの通信で受信した情報のうち、最新のものから予め定められた個数の情報とを比較し、比較した情報が一致しない場合、ステップSA2へ処理の流れを移すようにしてもよい。 Further, the terminal device 10 may be configured to repeatedly perform polling communication at a predetermined cycle for a predetermined period. In the case of this configuration, the terminal device 10 repeatedly performs polling communication for 1 minute every 10 minutes, for example, and requests the image forming device 20 for the latest information on the process related to User_A. Even in this configuration, the terminal device 10 is predetermined from the latest information acquired in the poll communication and the latest information received in the Websocket communication. The information may be compared with the number of information, and if the compared information does not match, the processing flow may be shifted to step SA2.

(変形例3)
本発明においては、端末装置10は、ステップSA5でYESと判断した場合、ポーリングの通信により受信した情報の履歴を消去してもよい。
(Modification 3)
In the present invention, if the terminal device 10 determines YES in step SA5, the terminal device 10 may delete the history of the information received by the polling communication.

(変形例4)
本発明においては、端末装置10は、WebSocketの通信で取得した情報の履歴について、取得した日時から予め定められた時間が経過した情報の履歴については、履歴から消去してもよい。また、端末装置10は、WebSocketの通信で取得した情報の履歴について、最新の履歴から過去へ予め定められた期間内の履歴を残し、当該期間外の履歴を消去するようにしてもよい。例えば、端末装置10は、最新の履歴から過去へ1時間の範囲内の履歴を残し、最新の履歴から1時間の範囲外の履歴を消去するようにしてもよい。
(Modification example 4)
In the present invention, the terminal device 10 may delete the history of information acquired by WebSocket communication from the history of information for which a predetermined time has elapsed from the acquisition date and time. Further, the terminal device 10 may leave a history within a predetermined period from the latest history to the past for the history of information acquired by WebSocket communication, and delete the history outside the period. For example, the terminal device 10 may leave a history within the range of one hour from the latest history to the past, and delete the history outside the range of one hour from the latest history.

また、端末装置10は、WebSocketの通信で取得した情報の履歴について、最新の履歴から過去へ予め定められた個数の履歴を残し、他の履歴を消去するようにしてもよい。例えば、端末装置10は、最新の履歴から過去へ100個の情報の履歴を残し、他の履歴を消去するようにしてもよい。また、端末装置10は、ステップSA5でYSEと判断した場合、ポーリングの通信へのレスポンスとして送信した情報の履歴の消去を指示するメッセージを画像形成装置20へ送信し、画像形成装置20は、ポーリングの通信へのレスポンスとして送信した情報の履歴を、このメッセージに応じて消去してもよい。 Further, the terminal device 10 may leave a predetermined number of histories from the latest history to the past with respect to the history of information acquired by WebSocket communication, and delete other histories. For example, the terminal device 10 may leave a history of 100 pieces of information from the latest history to the past and delete other histories. Further, when the terminal device 10 determines YSE in step SA5, the terminal device 10 transmits a message instructing the image forming apparatus 20 to delete the history of the transmitted information as a response to the polling communication, and the image forming apparatus 20 polles. The history of the information transmitted as a response to the communication of the above may be deleted according to this message.

1…情報処理システム、2…通信回線、10…端末装置、20…画像形成装置、101…制御部、102…記憶部、103…タッチパネル、105…通信部、107…音声処理部、201…制御部、202…記憶部、204…操作部、204A…タッチパネル、205…通信部、206…スキャン部、207…画像形成部、208…画像処理部、1001…第1取得部、1002…第2取得部、2001…第1送信部、2002…第2送信部。 1 ... Information processing system, 2 ... Communication line, 10 ... Terminal device, 20 ... Image forming device, 101 ... Control unit, 102 ... Storage unit, 103 ... Touch panel, 105 ... Communication unit, 107 ... Voice processing unit, 201 ... Control Unit, 202 ... Storage unit, 204 ... Operation unit, 204A ... Touch panel, 205 ... Communication unit, 206 ... Scan unit, 207 ... Image forming unit, 208 ... Image processing unit, 1001 ... First acquisition unit, 1002 ... Second acquisition Units, 2001 ... 1st transmitter, 2002 ... 2nd transmitter.

Claims (8)

情報処理装置との間に確立されたコネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、
前記第1取得手段が取得した情報を記憶する記憶手段と、
前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段と
を備える端末装置。
A first acquisition means for acquiring information transmitted from the information processing device via a connection established with the information processing device, and
A storage means for storing the information acquired by the first acquisition means and
When the information stored in the storage means does not satisfy a predetermined condition, the information is repeatedly acquired from the information processing apparatus by polling, and the information acquired by the first acquisition means and the information acquired by the polling. A terminal device including a second acquisition means for stopping the acquisition of information from the information processing apparatus by the polling when the information processing device satisfies a predetermined condition.
前記第2取得手段は、前記情報処理装置から情報が予め定められた時間を超えて送信されない場合、ポーリングで前記情報処理装置から繰り返し情報を取得する
請求項1に記載の端末装置。
The terminal device according to claim 1, wherein the second acquisition means repeatedly acquires information from the information processing device by polling when information is not transmitted from the information processing device for a predetermined time.
前記第2取得手段は、前記情報処理装置から取得すべき情報を前記第1取得手段が取得していない場合、ポーリングで前記情報処理装置から繰り返し情報を取得する
請求項1または請求項2に記載の端末装置。
The second acquisition means according to claim 1 or 2, wherein when the first acquisition means does not acquire the information to be acquired from the information processing device, the second acquisition means repeatedly acquires the information from the information processing device by polling. Terminal device.
前記第2取得手段は、前記情報処理装置が送信した情報の履歴をポーリングで前記情報処理装置から取得し、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した履歴とが予め定められた第1条件を満たす場合、ポーリングで前記情報処理装置から繰り返し情報を取得する
請求項1から請求項3のいずれか一項に記載の端末装置。
The second acquisition means acquires the history of the information transmitted by the information processing device from the information processing device by polling, and the history of the information stored in the storage means and the history acquired by the second acquisition means are obtained. The terminal device according to any one of claims 1 to 3, wherein when a predetermined first condition is satisfied, information is repeatedly acquired from the information processing device by polling.
前記第2取得手段は、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した情報の履歴とが予め定められた第2条件を満たす場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する
請求項1から請求項4のいずれか一項に記載の端末装置。
When the history of information stored in the storage means and the history of information acquired by the second acquisition means satisfy a predetermined second condition, the second acquisition means can be used from the information processing apparatus by polling. The terminal device according to any one of claims 1 to 4, wherein the acquisition of the information of the above is stopped.
前記第2取得手段は、前記情報処理装置が送信した情報の履歴をポーリングで前記情報処理装置から取得し、前記記憶手段に記憶された情報の履歴と前記第2取得手段が取得した履歴とが予め定められた第3条件を満たす場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する
請求項1から請求項5のいずれか一項に記載の端末装置。
The second acquisition means acquires the history of the information transmitted by the information processing device from the information processing device by polling, and the history of the information stored in the storage means and the history acquired by the second acquisition means are obtained. The terminal device according to any one of claims 1 to 5, which stops the acquisition of information from the information processing device by the polling when a predetermined third condition is satisfied.
端末装置との間に確立されたコネクションを介して情報を送信する第1送信手段と、
端末装置からのポーリングに応じて情報を送信する第2送信手段と
を有する情報処理装置と、
前記コネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、
前記第1取得手段が取得した情報を記憶する記憶手段と、
前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段と
を有する端末装置と、
を備える情報処理システム。
A first transmission means for transmitting information via a connection established with a terminal device,
An information processing device having a second transmission means for transmitting information in response to polling from the terminal device, and
A first acquisition means for acquiring information transmitted from the information processing device via the connection, and
A storage means for storing the information acquired by the first acquisition means and
When the information stored in the storage means does not satisfy a predetermined condition, the information is repeatedly acquired from the information processing apparatus by polling, and the information acquired by the first acquisition means and the information acquired by the polling. A terminal device having a second acquisition means for stopping the acquisition of information from the information processing device by the polling when the above-determined conditions are satisfied.
Information processing system equipped with.
コンピュータを、
情報処理装置との間に確立されたコネクションを介して前記情報処理装置から送信される情報を取得する第1取得手段と、
前記第1取得手段が取得した情報を記憶する記憶手段と、
前記記憶手段に記憶された情報が予め定められた条件を満たしていない場合、ポーリングで前記情報処理装置から繰り返し情報を取得し、前記第1取得手段が取得した情報と、前記ポーリングで取得した情報が予め定められた条件を満たしている場合、前記ポーリングによる前記情報処理装置からの情報の取得を停止する第2取得手段
として機能させるためのプログラム。
Computer,
A first acquisition means for acquiring information transmitted from the information processing device via a connection established with the information processing device, and
A storage means for storing the information acquired by the first acquisition means and
When the information stored in the storage means does not satisfy a predetermined condition, the information is repeatedly acquired from the information processing apparatus by polling, and the information acquired by the first acquisition means and the information acquired by the polling. Is a program for functioning as a second acquisition means for stopping the acquisition of information from the information processing apparatus by the polling when the above-determined conditions are satisfied.
JP2017055758A 2017-03-22 2017-03-22 Terminal devices, information information systems and programs Active JP6825439B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017055758A JP6825439B2 (en) 2017-03-22 2017-03-22 Terminal devices, information information systems and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017055758A JP6825439B2 (en) 2017-03-22 2017-03-22 Terminal devices, information information systems and programs

Publications (2)

Publication Number Publication Date
JP2018160737A JP2018160737A (en) 2018-10-11
JP6825439B2 true JP6825439B2 (en) 2021-02-03

Family

ID=63796015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017055758A Active JP6825439B2 (en) 2017-03-22 2017-03-22 Terminal devices, information information systems and programs

Country Status (1)

Country Link
JP (1) JP6825439B2 (en)

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110125856A1 (en) * 2009-11-25 2011-05-26 Lg Electronics Inc. Mobile terminal and method of providing email services in the mobile terminal
JP2012037944A (en) * 2010-08-03 2012-02-23 Canon Inc Image forming device, substitute operation system, image forming device control method, and program
JP5899713B2 (en) * 2011-08-31 2016-04-06 セイコーエプソン株式会社 Printing apparatus and printing method
JP5721659B2 (en) * 2012-04-06 2015-05-20 キヤノン株式会社 Management device, management system, and control method
JP6140937B2 (en) * 2012-05-23 2017-06-07 キヤノン株式会社 Network device, program, system and method
CN103167017B (en) * 2013-01-09 2016-06-29 北京奇虎科技有限公司 Web polling method, Apparatus and system
JP2015103123A (en) * 2013-11-27 2015-06-04 シャープ株式会社 Network system, communication method, electronic apparatus, application server, and program
JP6287174B2 (en) * 2013-12-24 2018-03-07 株式会社リコー Information processing system, information processing apparatus, information processing method, and information processing program
US10498777B2 (en) * 2014-03-17 2019-12-03 Citrix Systems, Inc. Real-time push notifications for cloud-based applications
JP6193185B2 (en) * 2014-07-09 2017-09-06 株式会社東芝 Communication device, terminal device, and program
JP6471441B2 (en) * 2014-09-24 2019-02-20 富士ゼロックス株式会社 Information processing apparatus, system, and program
JP6488608B2 (en) * 2014-09-24 2019-03-27 富士ゼロックス株式会社 Information processing apparatus, system, and program

Also Published As

Publication number Publication date
JP2018160737A (en) 2018-10-11

Similar Documents

Publication Publication Date Title
JP5954142B2 (en) Image processing system, image processing apparatus, and information processing apparatus
JP6476616B2 (en) Communication device, terminal device, and image processing system
JP5803973B2 (en) Portable terminal device, method for displaying job execution setting screen in the same device, and display program
US10333774B2 (en) Image forming apparatus that cooperates with management server, method of controlling image forming apparatus, and storage medium
JP6383175B2 (en) Information processing apparatus, method, program, and information processing system
JP6163997B2 (en) Image processing system, image processing apparatus, and control program
US10142517B2 (en) Image forming apparatus, print system, method for controlling image forming apparatus, method for controlling print system, and storage medium storing program
US20120133966A1 (en) Image processing apparatus, control method thereof and storage medium
JP2014203225A (en) Information processing apparatus and image forming apparatus
JP6897214B2 (en) Information processing equipment, programs and information processing systems
JP5817766B2 (en) Information processing apparatus, communication system, and program
JP2017092858A (en) Image forming system, image forming apparatus, and program
JP5866903B2 (en) Image processing apparatus, image processing system, communication apparatus, and program
JP6215043B2 (en) Information display system and electronic device
JP6292202B2 (en) Image forming system, communication terminal, and program
JP6825439B2 (en) Terminal devices, information information systems and programs
JP6123703B2 (en) Information processing program and information processing apparatus
US11509560B2 (en) Information processing apparatus, communication system, and information processing method
JP6561795B2 (en) Image forming system, image forming method, image forming apparatus, and program
JP6693167B2 (en) Information terminal, image processing system, and program
JP6354394B2 (en) Information processing apparatus and image processing system
JP7236243B2 (en) Information processing device, control method, and program
JP6542684B2 (en) INFORMATION PROCESSING SYSTEM, IMAGE FORMING APPARATUS, TRANSFER CONTROL PROGRAM, AND TRANSFER CONTROL METHOD
JP6841112B2 (en) Information processing equipment, programs and information processing systems
JP7415705B2 (en) Image forming apparatus, image forming method, image forming program, and image forming system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200228

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201228

R150 Certificate of patent or registration of utility model

Ref document number: 6825439

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350