JP5958617B2 - Image forming apparatus and image forming system - Google Patents

Image forming apparatus and image forming system Download PDF

Info

Publication number
JP5958617B2
JP5958617B2 JP2015142699A JP2015142699A JP5958617B2 JP 5958617 B2 JP5958617 B2 JP 5958617B2 JP 2015142699 A JP2015142699 A JP 2015142699A JP 2015142699 A JP2015142699 A JP 2015142699A JP 5958617 B2 JP5958617 B2 JP 5958617B2
Authority
JP
Japan
Prior art keywords
status code
url
request
storage unit
image forming
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
JP2015142699A
Other languages
Japanese (ja)
Other versions
JP2016013694A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2015142699A priority Critical patent/JP5958617B2/en
Publication of JP2016013694A publication Critical patent/JP2016013694A/en
Application granted granted Critical
Publication of JP5958617B2 publication Critical patent/JP5958617B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像データを画像処理装置の記憶部に記憶した後、ユーザからの指示を受け付けた際に、その画像データを画像処理する画像処理装置及び画像形成システムに関するものである。   The present invention relates to an image processing apparatus and an image forming system that perform image processing on image data when an instruction from a user is received after the image data is stored in a storage unit of the image processing apparatus.

従来から、データの参照情報を取得し、その参照情報が示す参照先からデータを取得して印刷する機能を有する印刷装置がある。例えば、Webページを参照するためのURL情報を取得し、そのURL情報の参照先であるWebページから印刷対象データ(コンテンツ)を取得して印刷する印刷装置が、特許文献1などに開示されて知られている。   2. Description of the Related Art Conventionally, there is a printing apparatus that has a function of acquiring data reference information and acquiring and printing data from a reference destination indicated by the reference information. For example, Patent Document 1 discloses a printing apparatus that acquires URL information for referring to a Web page, acquires print target data (content) from a Web page that is a reference destination of the URL information, and prints the data. Are known.

特開2004−62573号公報JP 2004-62573 A

しかしながら、印刷装置がWebページからのデータの取得に失敗した場合、ユーザが再度、参照情報であるURL情報を取得し、そのURL情報が示すWebページからデータを取得して印刷することを指示しなければ、Webページからデータを取得することができないという問題があった。   However, when the printing apparatus fails to acquire data from the Web page, the user again acquires URL information as reference information, and instructs to acquire and print data from the Web page indicated by the URL information. Otherwise, there is a problem that data cannot be acquired from the Web page.

そこで、本発明は、参照情報が示す参照先からのデータの取得に失敗した場合でも、参照先からデータを取得することができる画像処理装置を提供することを目的とする。   Accordingly, an object of the present invention is to provide an image processing apparatus that can acquire data from a reference destination even when acquisition of data from the reference destination indicated by the reference information fails.

この課題の解決を目的としてなされた画像形成装置は、サーバとデータの送信及び受信をするネットワークインターフェースと、画像を用紙に印刷する画像形成部と、記憶部と、制御部とを備え、制御部は、ネットワークインターフェースに、記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、ネットワークインターフェースを介して受信した、第1URLに対応するHTMLファイルを、記憶部に記憶させる第1記憶処理と、要求に対する結果を示すステータスコードが要求の完了を示す第1ステータスコードであるか否かを判断する第1判断処理と、要求に対する結果を示すステータスコードが第1ステータスコードであると第1判断処理において判断した場合、記憶部に記憶させた第1URLに対応するHTMLファイルに基づき画像形成部に画像を用紙に印刷させる第1印刷処理と、要求に対する結果を示すステータスコードが第1ステータスコードでないと第1判断処理において判断した場合、要求に対する結果を示すステータスコードが第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、要求に対する結果を示すステータスコードが第2ステータスコードであると第2判断処理において判断する場合、第1URLに対応するHTMLファイルの移転先を示す第2URLを、記憶部に記憶させる第2記憶処理と、ネットワークインターフェースに、第2記憶処理により記憶部に記憶された第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、ネットワークインターフェースを介して受信した、第2URLに対応するHTMLファイルを、記憶部に記憶させる第3記憶処理と、記憶部に記憶させた第2URLに対応するHTMLファイルに基づき画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行する。   An image forming apparatus for solving this problem includes a network interface that transmits and receives data to and from a server, an image forming unit that prints an image on a sheet, a storage unit, and a control unit. Includes a first transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to the first URL stored in the storage unit to the server, and an HTML corresponding to the first URL received via the network interface. A first storage process for storing the file in the storage unit; a first determination process for determining whether or not a status code indicating a result for the request is a first status code indicating completion of the request; and a result for the request The first determination process determines that the status code is the first status code The first print processing for causing the image forming unit to print an image on a sheet based on the HTML file corresponding to the first URL stored in the storage unit, and the first determination that the status code indicating the result of the request is not the first status code. If it is determined in the process, the second determination process for determining whether or not the status code indicating the result for the request is the second status code indicating that the HTML file corresponding to the first URL has been transferred, and the result for the request When determining in the second determination process that the status code shown is the second status code, the second URL indicating the transfer destination of the HTML file corresponding to the first URL is stored in the storage unit, and the network interface , H corresponding to the second URL stored in the storage unit by the second storage process A second transmission process for transmitting a request for downloading an ML file; a third storage process for storing the HTML file corresponding to the second URL received via the network interface; and a storage section for storing the HTML file. And a second printing process for causing the image forming unit to print an image on a sheet based on the HTML file corresponding to the second URL.

本発明の画像処理装置は、参照情報に基づいて画像データを取得する。参照情報は、データの格納場所を特定する情報であり、例えばURL(Uniform Resource Locator)で記載された情報が該当する。本発明の画像処理装置は、第1URLに対応するHTMLファイルが移転されたか否かを判断し、第1URLに対応するHTMLファイルが移転されたと判断する場合、第1URLに対応するHTMLファイルの移転先を示す第2URLに対応するHTMLファイルをダウンロードするための要求を、ネットワークインターフェースに送信させ、第2URLに対応するHTMLファイルに基づき画像形成部に画像を用紙に印刷させる。   The image processing apparatus of the present invention acquires image data based on reference information. The reference information is information for specifying a data storage location, and corresponds to, for example, information described by a URL (Uniform Resource Locator). The image processing apparatus of the present invention determines whether or not the HTML file corresponding to the first URL has been transferred, and when determining that the HTML file corresponding to the first URL has been transferred, the transfer destination of the HTML file corresponding to the first URL A request for downloading an HTML file corresponding to the second URL is transmitted to the network interface, and the image forming unit is caused to print an image on a sheet based on the HTML file corresponding to the second URL.

すなわち、本発明の画像処理装置は、第2URLに基づいてHTMLファイルを取得し、ユーザは、第2URLに対応するHTMLファイルに基づき印刷された印刷物を入手することができる。また、再度、ユーザに第2URLを入力させる必要がないので、ユーザにとって煩わしい操作を低減させることもできる。   That is, the image processing apparatus of the present invention acquires an HTML file based on the second URL, and the user can obtain a printed matter printed based on the HTML file corresponding to the second URL. In addition, since it is not necessary for the user to input the second URL again, it is possible to reduce troublesome operations for the user.

また、本発明の、情報処理装置と画像形成装置とから構成される画像形成システムは、情報処理装置は、情報処理装置記憶部と、情報処理装置制御部とを備え、情報処理装置制御部は、情報処理装置記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、第1URLに対応するHTMLファイルを、情報処理装置記憶部に記憶させる第1記憶処理と、要求に対する結果を示すステータスコードが要求の完了を示す第1ステータスコードであるか否かを判断する第1判断処理と、要求に対する結果を示すステータスコードが第1ステータスコードであると第1判断処理において判断した場合、記憶部に記憶させた第1URLに対応するHTMLファイルに基づき画像形成装置に画像を用紙に印刷させる指示をする第1印刷指示処理と、要求に対する結果を示すステータスコードが第1ステータスコードでないと第1判断処理において判断した場合、要求に対する結果を示すステータスコードが第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、要求に対する結果を示すステータスコードが第2ステータスコードであると第2判断処理において判断する場合、第1URLに対応するHTMLファイルの移転先を示す第2URLを、記憶部に記憶させる第2記憶処理と、第2記憶処理により記憶部に記憶された第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、第2URLに対応するHTMLファイルを、情報処理装置記憶部に記憶させる第3記憶処理と、情報処理装置記憶部に記憶させた第2URLに対応するHTMLファイルに基づき画像形成装置に画像を形成させる指示をする第2印刷指示処理と、を実行し、画像形成装置は、情報処理装置とデータの送信及び受信をするネットワークインターフェースと、画像を用紙に印刷する画像形成部と、画像形成装置制御部を備え、画像形成装置制御部は、ネットワークインターフェースを介して受信された、第1印刷指示処理の指示により、画像形成部に画像を用紙に印刷させる第1印刷処理と、ネットワークインターフェースを介して受信された、第2印刷指示処理の指示により、画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行する画像形成システムを含んでいる。   An image forming system including an information processing device and an image forming device according to the present invention includes an information processing device storage unit and an information processing device control unit, and the information processing device control unit includes: First transmission processing for transmitting a request for downloading an HTML file corresponding to the first URL stored in the information processing device storage unit to the server, and an HTML file corresponding to the first URL are stored in the information processing device storage unit A first storage process to be performed; a first determination process for determining whether or not a status code indicating a result for the request is a first status code indicating completion of the request; and a status code indicating a result for the request is the first status code Is determined in the first determination process, the image format is based on the HTML file corresponding to the first URL stored in the storage unit. If the first determination process determines that the status code indicating the result of the request is not the first status code in the first determination process that instructs the apparatus to print an image on paper, the status code indicating the result of the request is the first A second determination process for determining whether or not the HTML file corresponding to one URL has been transferred, and a second determination process for determining that the status code indicating the result of the request is the second status code; If the determination is made in step 2, the second storage process for storing the second URL indicating the transfer destination of the HTML file corresponding to the first URL in the storage unit, and the HTML file corresponding to the second URL stored in the storage unit by the second storage process Corresponding to the second transmission process for transmitting the request for downloading the URL and the second URL Third storage processing for storing the TML file in the information processing device storage unit and second printing for instructing the image forming device to form an image based on the HTML file corresponding to the second URL stored in the information processing device storage unit The image forming apparatus includes: a network interface that transmits and receives data to and from the information processing apparatus; an image forming unit that prints an image on paper; and an image forming apparatus control unit. The control unit receives a first print process for causing the image forming unit to print an image on a sheet in accordance with an instruction for the first print instruction process received via the network interface, and a second print received via the network interface. An image forming system that executes a second printing process that causes the image forming unit to print an image on a sheet in accordance with an instruction of the instruction process. It is out.

また、この課題の解決を目的としてなされた他の画像形成装置は、サーバとデータの送信及び受信をするネットワークインターフェースと、画像を用紙に印刷する画像形成部と、記憶部と、制御部とを備え、制御部は、ネットワークインターフェースに、記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、ネットワークインターフェースを介して受信した、第1URLに対応するHTMLファイルを、記憶部に記憶させる第1記憶処理と、要求に対する結果を示すステータスコードが要求の完了以外を示す第1ステータスコードであるか否かを判断する第1判断処理と、要求に対する結果を示すステータスコードが第1ステータスコードでないと第1判断処理において判断した場合、記憶部に記憶させた第1URLに対応するHTMLファイルに基づき画像形成部に画像を用紙に印刷させる第1印刷処理と、要求に対する結果を示すステータスコードが第1ステータスコードであると第1判断処理において判断した場合、要求に対する結果を示すステータスコードが、第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、要求に対する結果を示すステータスコードが第2ステータスコードであると第2判断処理において判断する場合、第1URLに対応するHTMLファイルの移転先を示す第2URLを、記憶部に記憶させる第2記憶処理と、ネットワークインターフェースに、第2記憶処理により記憶部に記憶された第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、ネットワークインターフェースを介して受信した、第2URLに対応するHTMLファイルを、記憶部に記憶させる第3記憶処理と、記憶部に記憶させた第2URLに対応するHTMLファイルに基づき画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行する。   Another image forming apparatus for solving this problem includes a server and a network interface for transmitting and receiving data, an image forming unit for printing an image on a sheet, a storage unit, and a control unit. The control unit includes a first transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to the first URL stored in the storage unit to the server, and the first URL received via the network interface. A first storage process for storing an HTML file corresponding to, in a storage unit; a first determination process for determining whether or not a status code indicating a result for a request is a first status code indicating other than completion of the request; If the status code indicating the result of the request is not the first status code, the first determination process is performed. If the determination is made, the first status code is a first print process for causing the image forming unit to print an image on a sheet based on the HTML file corresponding to the first URL stored in the storage unit, and the status code indicating the result for the request is the first status code. And a second determination process for determining whether or not the status code indicating the result of the request is the second status code indicating that the HTML file corresponding to the first URL has been transferred. When the second determination process determines that the status code indicating the result for the request is the second status code, the second storage process for storing the second URL indicating the transfer destination of the HTML file corresponding to the first URL in the storage unit And the second U stored in the storage unit by the second storage process in the network interface. A second transmission process for transmitting a request for downloading an HTML file corresponding to L, a third storage process for storing the HTML file corresponding to the second URL received via the network interface, in a storage unit; And a second printing process for causing the image forming unit to print an image on a sheet based on an HTML file corresponding to the second URL stored in the unit.

また、本発明の、他の、情報処理装置と画像形成装置とから構成される画像形成システムは、情報処理装置は、情報処理装置記憶部と、情報処理装置制御部とを備え、情報処理装置制御部は、情報処理装置記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、第1URLに対応するHTMLファイルを、情報処理装置記憶部に記憶させる第1記憶処理と、要求に対する結果を示すステータスコードが、要求の完了以外を示す第1ステータスコードであるか否かを判断する第1判断処理と、要求に対する結果を示すステータスコードが第1ステータスコードでないと第1判断処理において判断した場合、記憶部に記憶させた第1URLに対応するHTMLファイルに基づき画像形成装置に画像を用紙に印刷させる指示をする第1印刷指示処理と、要求に対する結果を示すステータスコードが第1ステータスコードであると第1判断処理において判断した場合、要求に対する結果を示すステータスコードが、第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、要求に対する結果を示すステータスコードが第2ステータスコードであると第2判断処理において判断する場合、第1URLに対応するHTMLファイルの移転先を示す第2URLを、記憶部に記憶させる第2記憶処理と、第2記憶処理により記憶部に記憶された第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、第2URLに対応するHTMLファイルを、情報処理装置記憶部に記憶させる第3記憶処理と、情報処理装置記憶部に記憶させた第2URLに対応するHTMLファイルに基づき画像形成装置に画像を形成させる指示をする第2印刷指示処理と、を実行し、画像形成装置は、情報処理装置とデータの送信及び受信をするネットワークインターフェースと、画像を用紙に印刷する画像形成部と、画像形成装置制御部を備え、画像形成装置制御部は、ネットワークインターフェースを介して受信された、第1印刷指示処理の指示により、画像形成部に画像を用紙に印刷させる第1印刷処理と、ネットワークインターフェースを介して受信された、第2印刷指示処理の指示により、画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行する画像形成システムを含んでいる。   According to another aspect of the present invention, an image forming system including an information processing apparatus and an image forming apparatus includes an information processing apparatus storage unit and an information processing apparatus control unit. The control unit stores a first transmission process for transmitting a request for downloading an HTML file corresponding to the first URL stored in the information processing device storage unit to the server, and an HTML file corresponding to the first URL in the information processing device storage. A first storage process to be stored in the unit, a first determination process for determining whether or not a status code indicating a result for the request is a first status code indicating other than completion of the request, and a status code indicating the result for the request Is determined not to be the first status code in the first determination process, the HTML file corresponding to the first URL stored in the storage unit The first print instruction process for instructing the image forming apparatus to print an image on the sheet and the first determination process that the status code indicating the result for the request is the first status code indicates the result for the request. Second determination processing for determining whether the status code is the second status code indicating that the HTML file corresponding to the first URL has been transferred, and the status code indicating the result for the request is the second status code. In the second determination process, the second URL indicating the transfer destination of the HTML file corresponding to the first URL is stored in the storage unit, and the second URL stored in the storage unit by the second storage process A second transmission process for transmitting a request for downloading an HTML file corresponding to the second U A third storage process for storing the HTML file corresponding to L in the information processing device storage unit, and an instruction for causing the image forming apparatus to form an image based on the HTML file corresponding to the second URL stored in the information processing device storage unit. The image forming apparatus includes a network interface that transmits and receives data to and from the information processing apparatus, an image forming unit that prints an image on paper, and an image forming apparatus control unit. The image forming apparatus control unit receives the first print processing for causing the image forming unit to print an image on a sheet according to the instruction of the first print instruction processing received via the network interface, and the network forming interface. And second print processing for causing the image forming unit to print an image on a sheet in accordance with an instruction of the second print instruction processing. Includes the system.

本発明の第1実施形態にかかるプリンタの電気的構成を示すブロック図である。1 is a block diagram showing an electrical configuration of a printer according to a first embodiment of the present invention. Webページ印刷処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a web page printing process. Webページ印刷処理におけるリトライ設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the retry setting process in a web page printing process. 本発明の第2実施形態おけるリトライ設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the retry setting process in 2nd Embodiment of this invention. リトライ設定処理におけるタイミング決定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the timing determination process in a retry setting process.

[第1実施形態]
以下、本発明の画像処理装置を具体化した第1実施形態について、添付図面を参照しつつ詳細に説明する。本形態は、Webページから印刷対象データを取得して印刷する機能を有するプリンタに本発明を適用したものである。
[First Embodiment]
Hereinafter, a first embodiment in which the image processing apparatus of the present invention is embodied will be described in detail with reference to the accompanying drawings. In this embodiment, the present invention is applied to a printer having a function of acquiring print data from a Web page and printing it.

[プリンタの構成]
本形態のプリンタ100(印刷装置の一例)は、図1に示すように、CPU31と、ROM32と、RAM33と、NVRAM(Non Volatile RAM)34とを備えた制御部30を備えている。また、制御部30は、用紙に画像を印刷する画像形成部10と、動作状況の表示やユーザによる入力操作の受付を行う操作パネル40と、ネットワークインターフェース37と、USBインターフェース38と、無線通信インターフェース39と、時間を計測するタイマー35とに、電気的に接続されている。
[Printer configuration]
As shown in FIG. 1, the printer 100 (an example of a printing apparatus) according to this embodiment includes a control unit 30 including a CPU 31, a ROM 32, a RAM 33, and an NVRAM (Non Volatile RAM) 34. In addition, the control unit 30 includes an image forming unit 10 that prints an image on paper, an operation panel 40 that displays an operation status and accepts an input operation by a user, a network interface 37, a USB interface 38, and a wireless communication interface. 39 and a timer 35 for measuring time are electrically connected.

ROM32には、プリンタ100を制御するための制御プログラムであるファームウェアや各種設定、初期値等が記憶されている。RAM33およびNVRAM34は、各種制御プログラムが読み出される作業領域として、あるいは印刷データを一時的に記憶する記憶領域として利用される。また、NVRAM34(記憶部の一例)は、出荷後にユーザによって設定される各種の設定を記憶する記憶領域として利用される。   The ROM 32 stores firmware, which is a control program for controlling the printer 100, various settings, initial values, and the like. The RAM 33 and the NVRAM 34 are used as a work area from which various control programs are read or as a storage area for temporarily storing print data. The NVRAM 34 (an example of a storage unit) is used as a storage area for storing various settings set by the user after shipment.

CPU31(取得部、判断部、再取得部、理由判断部、設定部、検知部、速度判断部の一例)は、ROM32から読み出した制御プログラムや各種センサから送られる信号に従って、その処理結果をRAM33またはNVRAM34に記憶させながら、プリンタ100の各構成要素を制御する。   The CPU 31 (an example of an acquisition unit, a determination unit, a re-acquisition unit, a reason determination unit, a setting unit, a detection unit, and a speed determination unit) stores the processing result in the RAM 33 according to a control program read from the ROM 32 and signals sent from various sensors. Alternatively, each component of the printer 100 is controlled while being stored in the NVRAM 34.

ネットワークインターフェース37およびUSBインターフェース38は、他の装置との通信を可能にするインターフェースである。プリンタ100は、これらのインターフェースを介して他の装置から送信されるデータを受信する。   The network interface 37 and the USB interface 38 are interfaces that enable communication with other devices. The printer 100 receives data transmitted from other devices via these interfaces.

本形態では、プリンタ100は、ネットワークインターフェース37を介して、プリンタ100用のプリンタドライバ210が組み込まれたパーソナルコンピュータ(PC)200や、Webページを格納するWebサーバ300との通信が可能になっている。プリンタ100は、PC200及びWebサーバ300などの通信装置とともに印刷システム900を構成している。   In this embodiment, the printer 100 can communicate with the personal computer (PC) 200 in which the printer driver 210 for the printer 100 is incorporated and the Web server 300 that stores the Web page via the network interface 37. Yes. The printer 100 constitutes a printing system 900 together with communication devices such as the PC 200 and the Web server 300.

この他、USBインターフェース38を介して他の装置を利用してもよい。例えば、USBインターフェース38にフラッシュメモリが装着されている場合には、そのフラッシュメモリを記憶領域として利用できる。また、キーボードが装着されている場合には、そのキーボードを利用して入力操作を行うことができる。   In addition, other devices may be used via the USB interface 38. For example, when a flash memory is attached to the USB interface 38, the flash memory can be used as a storage area. Further, when a keyboard is mounted, an input operation can be performed using the keyboard.

また、画像形成部10は、用紙に画像を印刷することができればよく、画像形成方式については電子写真方式であってもインクジェット方式であってもよい。また、カラー印刷が可能であってもよく、モノクロ印刷専用であってもよい。   The image forming unit 10 only needs to be able to print an image on a sheet, and the image forming method may be an electrophotographic method or an ink jet method. Further, color printing may be possible, or monochrome printing may be dedicated.

また、操作パネル40は、ユーザ入力を受け付ける各種のボタンと、文字情報やボタン等を表示するタッチパネル画面とを有している。各種のボタンとしては、例えば、印刷動作の開始を指示するOKボタンや、印刷動作のキャンセルを指示するキャンセルボタン、ユーザがWebベージのURLを入力するための文字ボタンがある。   The operation panel 40 also includes various buttons that accept user input and a touch panel screen that displays character information, buttons, and the like. Examples of the various buttons include an OK button for instructing the start of the printing operation, a cancel button for instructing the cancellation of the printing operation, and a character button for the user to input a Web page URL.

[プリンタの制御]
続いて、プリンタ100の制御について説明する。第1実施形態のプリンタ100は、Webページを参照するためのURL情報を取得し、そのURL情報に基づいてWebページから印刷対象データ(コンテンツ)を取得し、そのコンテンツを印刷するWebページ印刷機能を有している。
[Printer Control]
Next, control of the printer 100 will be described. The printer 100 according to the first embodiment acquires URL information for referring to a Web page, acquires print target data (content) from the Web page based on the URL information, and prints the content. have.

Webページ印刷を行う際には、先ず、ユーザが操作パネル40を操作してWebページ印刷の実行指示を入力する。プリンタ100は、その実行指示が入力されると、URLの入力を促す入力画面を表示する。ユーザは、その入力画面にWebページのURL情報を入力する。例えば、Webサーバ300(図1参照)の所定のディレクトリに格納されているWebページの情報を印刷する場合には、そのディレクトリパスを含むURL情報を入力する。その後、操作パネル40のOKボタンを押下する。   When performing web page printing, the user first operates the operation panel 40 to input a web page printing execution instruction. When the execution instruction is input, the printer 100 displays an input screen that prompts the user to input a URL. The user inputs the URL information of the Web page on the input screen. For example, when printing information on a Web page stored in a predetermined directory of the Web server 300 (see FIG. 1), URL information including the directory path is input. Thereafter, the OK button on the operation panel 40 is pressed.

プリンタ100は、OKボタンが押下されると、入力されたURL情報をRAM33に一時記憶させ、そのURL情報に基づいてWebサーバ300の所定のディレクトリにアクセスし、印刷対象データを自機のメモリ領域にダウンロードする。そして、ダウンロードした印刷対象データの印刷を実行する。なお、プリンタ100は、印刷対象データを印刷した場合は、一時的に記憶させたURL情報をRAM33から消去する。   When the OK button is pressed, the printer 100 temporarily stores the input URL information in the RAM 33, accesses a predetermined directory of the Web server 300 based on the URL information, and stores the print target data in its own memory area. Download to. Then, the downloaded print target data is printed. Note that the printer 100 erases the temporarily stored URL information from the RAM 33 when printing the print target data.

しかし、ダウンロードする印刷対象データは、Webサーバ300の所定のディレクトリにアクセスすれば、必ずしも自機のメモリ領域にダウンロードすることができるわけではない。そこで、プリンタ100は、印刷対象データを正常にダウンロードできたか判断し、印刷対象データを正常にダウンロードできなかった場合に、印刷対象データを正常にダウンロードできなかったときのステータスコード及び入力されたWebページのURL情報をメモリ領域に記憶させる。   However, the print target data to be downloaded cannot always be downloaded to the memory area of the own machine if a predetermined directory of the Web server 300 is accessed. Therefore, the printer 100 determines whether or not the print target data has been downloaded normally. When the print target data cannot be downloaded normally, the status code and the input Web code when the print target data cannot be downloaded normally are determined. The URL information of the page is stored in the memory area.

そして、プリンタ100は、メモリ領域に記憶させたステータスコードを解析し、メモリ領域に記憶させたWebページのURL情報を用いて、Webサーバ300の所定のディレクトリにアクセスする時間やアクセスする間隔等を設定する(以下、リトライ設定という)。その後、プリンタ100は、リトライ設定に基づきWebサーバ300の所定のディレクトリにアクセスする(以下、リトライといい、再取得部の一例)。   Then, the printer 100 analyzes the status code stored in the memory area, and uses the URL information of the Web page stored in the memory area to determine a time for accessing a predetermined directory of the Web server 300, an access interval, and the like. Set (hereinafter referred to as retry setting). Thereafter, the printer 100 accesses a predetermined directory of the Web server 300 based on the retry setting (hereinafter referred to as retry, an example of a reacquisition unit).

[ステータスコード]
(1)正常にダウンロードできたときのステータスコード
具体的にプリンタ100が印刷対象データを正常にダウンロードできたと判断するのは、印刷対象データを自機のメモリ領域にダウンロードするという要求に対して、プリンタ100が下記のステータスコードを受信したときである。
[Status code]
(1) Status code when successfully downloaded The printer 100 determines that the print target data has been downloaded normally in response to a request to download the print target data to its own memory area. This is when the printer 100 receives the following status code.

200:OK
206:Partial Content
「200:OK」は要求の完了を意味するステータスコードであり、「200:OK」のステータスコードを受信したとき、プリンタ100は、印刷対象データを正常にダウンロードできたと判断できる。また、印刷対象データを分割してダウンロードする場合等は、「206:Partial Content」のステータスコードを受信するので、プリンタ100は、印刷対象データを正常にダウンロードできたと判断してよい。
200: OK
206: Partial Content
“200: OK” is a status code indicating completion of the request. When the status code of “200: OK” is received, the printer 100 can determine that the print target data has been successfully downloaded. Further, when the print target data is divided and downloaded, the status code “206: Partial Content” is received, so the printer 100 may determine that the print target data has been successfully downloaded.

(2)正常にダウンロードできなかったときのステータスコード
一方、プリンタ100が印刷対象データを正常にダウンロードできなかったと判断するのは、印刷対象データを自機のメモリ領域にダウンロードするという要求に対して、プリンタ100が下記のステータスコードを受信したときである。
(2) Status code when data cannot be downloaded normally On the other hand, the printer 100 determines that the data to be printed could not be downloaded normally in response to a request to download the data to be printed into its own memory area. This is when the printer 100 receives the following status code.

1XX:要求に対して処理を継続中
3XX:要求を完了させるために追加の処理が必要な状態
4XX:クライアントからの要求不備
5XX:サーバーエラー
なお、上記ステータスコードは、ステータスコードの一例であり、これらに限られるものではない。また、Xには0〜9の数字が入る。また、200及び206のステータスコード以外の2XXのステータスコードは、印刷対象データを自機のメモリ領域にダウンロードするという要求に対しての応答ではないので、プリンタ100は、印刷対象データを正常にダウンロードできなかったと判断してよい。
1XX: Processing is being continued for the request 3XX: Additional processing is required to complete the request 4XX: Incomplete request from the client 5XX: Server error The above status code is an example of a status code, However, it is not limited to these. X is a number from 0 to 9. Also, since the status code of 2XX other than the status codes of 200 and 206 is not a response to the request to download the print target data to its own memory area, the printer 100 downloads the print target data normally. You may judge that it was not possible.

また、本実施形態では、具体的に印刷対象データを正常にダウンロードできなかったときのステータスコードとして、下記のステータスコードを使って説明する下記のステータスコードを使って説明する。   In the present embodiment, the following status code, which is described using the following status code, is specifically described as the status code when the print target data cannot be normally downloaded.

301:Moved Permanently
302:Found
303:See Other
307:Temporary Redirect
403:Forbidden
404:Not Found
408:Request Timeout
503:Service Unavailable
(3)即時リトライ可能なステータスコード
「301 Moved Permanently」、「302 Found」、「303 See Other」及び「307 Temporary Redirect」のステータスコードを受信したときは、入力されたURL情報に基づくWebサーバ300の所定のディレクトリにアクセスしたが、所定のディレクトリに印刷対象データがなかった可能性が高い。この場合、Webサーバ300から受信した情報の中に、印刷対象データの移転先を示すURL情報が含まれていることがある。印刷対象データの移転先を示すURL情報が含まれていれば、このURL情報をRAM33に一時的に記憶させ、移転先のディレクトリにアクセスし、印刷対象データを自機のメモリ領域にダウンロードすることができる。このため、印刷対象データの移転先を示すURL情報に基づいてWebサーバ300の所定のディレクトリにアクセスするようにリトライ設定を行う。なお、先に受信したステータスコードと同様のステータスコードを受信する可能性は低いので、リトライ設定を行った後、即時にリトライしてよい。
301: Moved Permanently
302: Found
303: See Other
307: Temporary Redirect
403: Forbidden
404: Not Found
408: Request Timeout
503: Service Unavailable
(3) Status code that can be immediately retried When the status code of “301 Moved Permanently”, “302 Found”, “303 See Other” and “307 Temporary Redirect” is received, the Web server 300 based on the input URL information There is a high possibility that there is no print target data in the predetermined directory. In this case, the information received from the Web server 300 may include URL information indicating the transfer destination of the print target data. If URL information indicating the transfer destination of the print target data is included, this URL information is temporarily stored in the RAM 33, the transfer destination directory is accessed, and the print target data is downloaded to the memory area of the own machine. Can do. Therefore, a retry setting is performed so as to access a predetermined directory of the Web server 300 based on URL information indicating a transfer destination of print target data. Note that since it is unlikely that a status code similar to the previously received status code will be received, it may be retried immediately after setting retry settings.

(4)短時間でリトライ可能なステータスコード
また、「503:Service Unavailable」のステータスコードを受信したときは、Webサーバ300の負荷が高くなっているか、または、Webサーバ300の保守により一時的に利用できない状態となっている可能性が高い。このため、リトライするまでに間隔を設けなければ、先に受信したステータスコードと同様のステータスコードを受信する可能性が高くなり、アクセスの効率が悪くなる。そこで、リトライするまでに間隔を設けてリトライするようにリトライ設定を行う。
(4) Status code that can be retried in a short time In addition, when the status code “503: Service Unavailable” is received, the load on the Web server 300 is high, or the Web server 300 is temporarily maintained. There is a high possibility that it is not available. For this reason, if there is no interval before retrying, there is a high possibility that a status code similar to the previously received status code will be received, resulting in poor access efficiency. Therefore, retry setting is performed so that retry is performed at an interval before retrying.

(5)リトライに長時間要するステータスコード
一方、「403:Forbidden」及び「404:Not Found」のステータスコードを受信したときは、Webサーバ300においてアクセス権の設定ミス等の可能性が高い。このとき、Webサーバ300の管理者が連絡を受けてから設定を直す時間を考慮すると、1時間程度もしくはそれ以上の時間がかかることが予想される。このため、リトライするまでに間隔を設けなければ、先に受信したステータスコードと同様のステータスコードを受信する可能性が高くなり、アクセスの効率が悪くなる。
(5) Status codes that require a long time to retry On the other hand, when the status codes of “403: Forbidden” and “404: Not Found” are received, there is a high possibility that the Web server 300 has an access right setting error or the like. At this time, it is expected that it takes about one hour or more in consideration of the time to correct the setting after the administrator of the Web server 300 is contacted. For this reason, if there is no interval before retrying, there is a high possibility that a status code similar to the previously received status code will be received, resulting in poor access efficiency.

また、「403:Forbidden」及び「404:Not Found」のステータスコードを受信したときは、「503:Service Unavailable」のステータスコードを受信したときに比べ、「403:Forbidden」及び「404:Not Found」のステータスから復帰するためにかかる時間が長くなる傾向にある。そこで、「503:Service Unavailable」のステータスコードよりもリトライするまでの間隔が長くなるように設定することにより、リトライするまでの間隔を適切に設定して、印刷対象データを自機のメモリ領域にダウンロードすることができる。   Also, when the status codes of “403: Forbidden” and “404: Not Found” are received, “403: Forbidden” and “404: Not Found” are compared with the status codes of “503: Service Unavailable”. ”Tends to take longer to recover from the status. Therefore, by setting the interval until retry to be longer than the status code of “503: Service Unavailable”, the interval until retry is set appropriately, and the print target data is stored in the memory area of the own machine. Can be downloaded.

(6)通信速度と関連性のあるステータスコード
また、「408:Request Timeout」のステータスコードを受信したときは、クライアントからのリクエスト待ちでサーバがタイムアウトしている可能性が高い。このとき、Webサーバ300へのアクセスが集中しているため、通信速度が低下している可能性も高い。このステータスコードは、リトライするまでの間隔を長く設定したからといって、必ずしも同様のステータスコードを受信する可能性が低くなるとは限らない。また、通信速度が速くなればなるほど同様のステータスコードを受信する可能性が低くなる。そこで、通信速度が所定の通信速度以上となったときにリトライするように設定すれば、印刷対象データを自機のメモリ領域にダウンロードすることができる可能性が高くなる。
(6) Status code related to communication speed When a status code of “408: Request Timeout” is received, the server is likely to time out while waiting for a request from the client. At this time, since access to the Web server 300 is concentrated, there is a high possibility that the communication speed is reduced. This status code does not necessarily reduce the possibility of receiving a similar status code just because the interval until retry is set longer. In addition, the higher the communication speed, the lower the possibility of receiving a similar status code. Therefore, if the communication speed is set to retry when the communication speed exceeds a predetermined communication speed, there is a high possibility that the print target data can be downloaded to the memory area of the own machine.

[Webページ印刷処理]
続いて、前述したWebページ印刷機能を実現するWebページ印刷処理について、図2のフローチャートを参照しつつ説明する。Webページ印刷処理は、URL情報が入力された後にOKボタンの押下を受け付けたことを契機に、CPU31によって実行される。
[Web page printing process]
Next, Web page printing processing for realizing the above-described Web page printing function will be described with reference to the flowchart of FIG. The Web page printing process is executed by the CPU 31 in response to accepting the pressing of the OK button after the URL information is input.

Webページ印刷処理では、先ず、CPU31は、ユーザにより入力されてRAM33に一時記憶されたURL情報を読み出すことにより取得し、そのURL情報に基づいて印刷対象データを取得する(S101、取得部の一例)。すなわち、URL情報に記憶されている参照先のWebページにアクセスし、印刷対象データをダウンロードする。   In the Web page printing process, first, the CPU 31 acquires URL information input by the user and temporarily stored in the RAM 33, and acquires print target data based on the URL information (S101, an example of an acquisition unit). ). That is, it accesses a reference Web page stored in the URL information, and downloads print target data.

次に、CPU31は、Webページを正常に取得できたか否か判断する(S102、判断部の一例)。このS102の判断は、印刷対象データをRAM33に記憶し、「200:OK」、または、「206:Partial Content」のステータスコードを受信したかにより実行される。   Next, the CPU 31 determines whether or not the Web page has been successfully acquired (S102, an example of a determination unit). The determination in S102 is executed depending on whether the print target data is stored in the RAM 33 and the status code “200: OK” or “206: Partial Content” is received.

CPU31は、Webページを正常に取得できたと判断する場合(S102:YES)、RAM33に記憶した印刷対象データをビットマップデータ等の印刷データ変換し(S103)、画像形成部10に対して印刷データに基づいて用紙に画像を印刷させ(S104)、Webページ印刷処理を終了させる。   When the CPU 31 determines that the Web page has been successfully acquired (S102: YES), the print target data stored in the RAM 33 is converted to print data such as bitmap data (S103), and the print data is sent to the image forming unit 10. In step S104, an image is printed on a sheet based on the web page printing process.

一方、CPU31は、Webページを正常に取得できていないと判断する場合(S102:NO)、すなわち、「200:OK」、または、「206:Partial Content」以外のステータスコードを受信したとき、RAM33に一時記憶されているステータスコード及び入力されたURL情報をNVRAM34に記憶させる(S105、受信部の一例)。そして、リトライ設定処理を実行し(S106)、Webページ印刷処理を終了する。URL情報などがNVRAM34に記憶された後は、URL情報などをRAM33から消去することができる。   On the other hand, when the CPU 31 determines that the Web page has not been acquired normally (S102: NO), that is, when a status code other than “200: OK” or “206: Partial Content” is received, the RAM 33 Is stored in the NVRAM 34 (S105, an example of a receiving unit). Then, a retry setting process is executed (S106), and the Web page printing process is terminated. After the URL information or the like is stored in the NVRAM 34, the URL information or the like can be deleted from the RAM 33.

なお、リトライ設定処理を実行した後、CPU31は、リトライ設定に従いWebページ印刷処理とは別処理でリトライを実行しているが、リトライ設定に従いWebページ印刷処理の中でリトライを実行してもよい(再取得部の一例)。   Note that after executing the retry setting process, the CPU 31 executes the retry in a process different from the Web page printing process according to the retry setting, but may execute the retry in the Web page printing process according to the retry setting. (An example of a reacquisition part).

[リトライ設定処理]
続いて、Webページ印刷処理中のS106のリトライ設定処理(理由判断部、設定部の一例)について、図3のフローチャートを参照しつつ説明する。
[Retry setting process]
Next, the retry setting process (an example of the reason determination unit and the setting unit) in S106 during the Web page printing process will be described with reference to the flowchart of FIG.

プリンタ100が入力されたURL情報に基づいて印刷対象データをダウンロードすることに失敗したとき、再度、URL情報を入力することは、ユーザにとって煩わしい。また、ユーザはダウンロードすることに失敗した理由がわからないから、再度、ユーザにURL情報を入力させたとしても、さらにダウンロードすることに失敗することもある。このため、適切なタイミングで印刷対象データをダウンロードすることは難しい。そこで、プリンタ100は、リトライ設定処理により、リトライするタイミングを設定する。   When the printer 100 fails to download the print target data based on the input URL information, it is troublesome for the user to input the URL information again. Further, since the user does not know the reason why the download failed, even if the user inputs the URL information again, the download may further fail. For this reason, it is difficult to download the print target data at an appropriate timing. Therefore, the printer 100 sets a retry timing by retry setting processing.

リトライ設定処理では、先ず、CPU31は、NVRAM34からステータスコードを取得し(S201)、印刷対象データの移転先を示すURL情報があるか否か判断する(S202、理由判断部、認証部の一例)。このS202の判断は、「301 Moved Permanently」、「302 Found」、「303 See Other」及び「307 Temporary Redirect」のステータスコードを受信したか否かにより実行される。   In the retry setting process, first, the CPU 31 acquires a status code from the NVRAM 34 (S201), and determines whether there is URL information indicating a transfer destination of the print target data (S202, an example of a reason determination unit and an authentication unit). . The determination in S202 is executed based on whether or not the status codes “301 Moved Permanently”, “302 Found”, “303 See Other”, and “307 Temporary Redirect” are received.

印刷対象データの移転先を示すURL情報があると判断した場合(S202:YES)、CPU31は、移転先を示すURL情報を参照してリトライを即時、実行するように設定し(S206、設定部の一例)、リトライ設定処理を終了する。   When it is determined that there is URL information indicating the transfer destination of the print target data (S202: YES), the CPU 31 refers to the URL information indicating the transfer destination and sets the retry immediately (S206, setting unit). Example), the retry setting process is terminated.

ここで、ステータスコードを受信したとしても必ずしもWebサーバ300や通信速度等に問題があるとは限らない。例えば、上記のように移転先のURLを含むステータスコードである場合があり、Webサーバ300のトラブル解消する制御等を行ったとしても、ステータスコードに適した制御ができない。そこで、ステータスコードが移転先のURLを含むステータスコードである場合、移転先を示すURL情報を参照してリトライを即時に実行するようにする。なお、S202で判断するステータスコードだけの実施形態でもよい。   Here, even if the status code is received, there is not necessarily a problem with the Web server 300 or the communication speed. For example, the status code may include a transfer destination URL as described above, and control suitable for the status code cannot be performed even if control for solving the trouble of the Web server 300 is performed. Therefore, when the status code is a status code including the URL of the transfer destination, the retry is immediately executed with reference to the URL information indicating the transfer destination. Note that an embodiment with only the status code determined in S202 may be used.

一方、印刷対象データの移転先を示すURL情報がないと判断した場合(S202:NO)、CPU31は、一時的なエラーであるか判断する(S203、理由判断部、認証部の一例)。このS203の判断は、「503:Service Unavailable」のステータスコードを受信したか否かにより実行される。   On the other hand, when it is determined that there is no URL information indicating the transfer destination of the print target data (S202: NO), the CPU 31 determines whether it is a temporary error (S203, an example of a reason determination unit and an authentication unit). The determination in S203 is executed based on whether or not the status code “503: Service Unavailable” has been received.

一時的なエラーである場合(S203:YES)、CPU31は、リトライを10分後にするように設定し(S204、設定部の一例)、リトライ設定処理を終了する。一方、一時的なエラーでない場合(S203:NO)、CPU31は、リトライを1時間後にするように設定し(S205、設定部の一例)、リトライ設定処理を終了する。   If it is a temporary error (S203: YES), the CPU 31 sets the retry to be 10 minutes later (S204, an example of a setting unit), and ends the retry setting process. On the other hand, if the error is not a temporary error (S203: NO), the CPU 31 sets the retry to be one hour later (S205, an example of a setting unit), and ends the retry setting process.

すなわち、一時的なエラーである場合(S203:YES)は、一時的なエラーでない場合(S203:NO)に比べて、リトライする間隔が短くなるように設定される。   That is, when the error is a temporary error (S203: YES), the retry interval is set to be shorter than when the error is not a temporary error (S203: NO).

[第1実施形態の効果]
以上詳細に説明したように、第1実施形態のプリンタ100は、CPU31は、Webページを正常に取得できていないと判断する場合(S102:NO)、ステータスコード及び入力されたURL情報をNVRAM34に記憶させ(S105)、リトライ設定処理を実行する(S106)。そして、リトライ設定処理を実行したときは、リトライ設定に従いWebページ印刷処理を実行する。このため、CPU31は、Webページを正常に取得できていないと判断する場合(S102:NO)、リトライ設定に従い、NVRAM34に記憶させているURL情報に対応する印刷対象データをダウンロードさせる。よって、CPU31は、Webページを正常に取得できていないと判断する場合でも、URL情報に対応する印刷対象データを取得することができる。
[Effect of the first embodiment]
As described above in detail, when the CPU 31 determines that the Web page cannot be acquired normally (S102: NO), the printer 100 of the first embodiment stores the status code and the input URL information in the NVRAM 34. Store (S105) and execute the retry setting process (S106). When the retry setting process is executed, the Web page printing process is executed according to the retry setting. Therefore, if the CPU 31 determines that the Web page has not been acquired normally (S102: NO), the CPU 31 downloads the print target data corresponding to the URL information stored in the NVRAM 34 according to the retry setting. Therefore, the CPU 31 can acquire the print target data corresponding to the URL information even when determining that the Web page cannot be normally acquired.

また、印刷対象データの移転先を示すURL情報があると判断した場合(S202:YES)、Webサーバ300や通信速度等に問題があるわけではないから、CPU31は、リトライを即時、実行するように設定し(S206、設定部の一例)、リトライ設定処理を終了する。また、一時的なエラーである場合(S203:YES)、CPU31は、リトライを10分後にするように設定し(S204、設定部の一例)、リトライ設定処理を終了する。また、一時的なエラーでない場合(S203:NO)、CPU31は、リトライを1時間後にするように設定し(S205、設定部の一例)、リトライ設定処理を終了する。このため、印刷対象データの取得に失敗した理由に応じた適切な方法でリトライすることができる。   If it is determined that there is URL information indicating the transfer destination of the print target data (S202: YES), there is no problem with the Web server 300, the communication speed, and the like, so the CPU 31 immediately executes the retry. (S206, an example of a setting unit), and the retry setting process ends. If it is a temporary error (S203: YES), the CPU 31 sets the retry to be 10 minutes later (S204, an example of a setting unit), and ends the retry setting process. On the other hand, if the error is not a temporary error (S203: NO), the CPU 31 sets the retry to be one hour later (S205, an example of a setting unit), and ends the retry setting process. For this reason, it is possible to retry by an appropriate method according to the reason why acquisition of print target data has failed.

また、印刷対象データの移転先を示すURL情報があるか否かの判断(S202)は、「301 Moved Permanently」、「302 Found」、「303
See Other」及び「307 Temporary Redirect」のステータスコードを受信したか否かにより実行される。また、一時的なエラーであるかの判断は、「503:Service Unavailable」のステータスコードを受信したか否かにより実行される。このため、ステータスコードから失敗の理由を判断することになり、失敗の理由を適切に判断できる。これにより、失敗した理由に応じた適切な方法で印刷対象データを再取得することができる可能性が高くなる。
Further, the determination as to whether there is URL information indicating the transfer destination of the print target data (S202) is “301 Moved Permanently”, “302 Found”, “303”.
It is executed depending on whether or not the status codes “See Other” and “307 Temporary Redirect” have been received. The determination as to whether the error is a temporary error is executed based on whether or not the status code “503: Service Unavailable” is received. For this reason, the reason for failure is determined from the status code, and the reason for failure can be determined appropriately. This increases the possibility that the print target data can be reacquired by an appropriate method according to the reason for the failure.

また、「301 Moved Permanently」、「302 Found」、「303 See Other」及び「307 Temporary Redirect」のステータスコードを受信したときは、入力されたURL情報に基づくWebサーバ300の所定のディレクトリにアクセスしたが印刷対象データがなかった可能性が高い。この場合、Webサーバ300から受信した情報の中に、印刷対象データの移転先を示すURL情報が含まれていることがある。印刷対象データの移転先を示すURL情報が含まれていれば、このURL情報をRAM33に一時的に記憶させ、移転先のディレクトリにアクセスし、印刷対象データを自機のメモリ領域にダウンロードすることができる。このため、移転先を示すURL情報に基づいて印刷対象データを再取得できる可能性が高い。   When a status code of “301 Moved Permanently”, “302 Found”, “303 See Other” or “307 Temporary Redirect” is received, a predetermined directory of the Web server 300 based on the input URL information is accessed. There is a high possibility that there was no data to be printed. In this case, the information received from the Web server 300 may include URL information indicating the transfer destination of the print target data. If URL information indicating the transfer destination of the print target data is included, this URL information is temporarily stored in the RAM 33, the transfer destination directory is accessed, and the print target data is downloaded to the memory area of the own machine. Can do. For this reason, there is a high possibility that the print target data can be reacquired based on the URL information indicating the transfer destination.

また、一時的なエラーである場合(S203:YES)は、一時的なエラーでない場合(S203:NO)に比べて、リトライする間隔が短くなるように設定される。このため、プリンタ100は、一時的なエラーである場合(S203:YES)は、一時的なエラーでない場合(S203:NO)よりも早くリトライすることができる。   When the error is a temporary error (S203: YES), the retry interval is set to be shorter than when the error is not a temporary error (S203: NO). For this reason, the printer 100 can retry earlier when it is a temporary error (S203: YES) than when it is not a temporary error (S203: NO).

[第2実施形態]
本発明の第2実施形態は、リトライ設定処理について第1実施形態と異なる。第2実施形態は、リトライ設定処理にタイミング決定処理を含むが、Webページ印刷処理については第1実施形態と同様である。第1実施形態のリトライ設定処理は、ステータスコードに応じてリトライする間隔を変更していた。第2実施形態のリトライ設定処理では、タイムアウトが原因で印刷対象データをダウンロードすることに失敗したとき、タイムアウトとならない所定の通信速度で印刷対象データをダウンロードする。
[Second Embodiment]
The second embodiment of the present invention differs from the first embodiment in the retry setting process. In the second embodiment, the retry setting process includes a timing determination process, but the Web page printing process is the same as that in the first embodiment. In the retry setting process of the first embodiment, the retry interval is changed according to the status code. In the retry setting process of the second embodiment, when downloading of print target data fails due to a timeout, the print target data is downloaded at a predetermined communication speed that does not cause a timeout.

[リトライ設定処理]
Webページ印刷処理中の第2実施形態のリトライ設定処理(理由判断部、設定部の一例)について、図4のフローチャートを参照しつつ説明する。
[Retry setting process]
A retry setting process (an example of a reason determining unit and an example of a setting unit) of the second embodiment during the Web page printing process will be described with reference to the flowchart of FIG.

リトライ設定処理では、先ず、CPU31は、NVRAM34からステータスコードを取得し(S301)、タイムアウトしたか否か判断する(S302、理由判断部の一例)。このS302の判断は、「408:Request Timeout」のステータスコードを受信したか否かにより実行される。   In the retry setting process, first, the CPU 31 acquires a status code from the NVRAM 34 (S301), and determines whether or not a timeout has occurred (S302, an example of a reason determination unit). The determination in S302 is executed based on whether or not the status code “408: Request Timeout” has been received.

CPU31は、タイムアウトしていないと判断する場合(S302:NO)、リトライ設定処理を終了する。   When determining that the time-out has not occurred (S302: NO), the CPU 31 ends the retry setting process.

一方、CPU31は、タイムアウトしたと判断した場合(S302:YES)、タイミング決定処理を実行し(S303、設定部の一例)、リトライ設定処理を終了する。   On the other hand, if the CPU 31 determines that a time-out has occurred (S302: YES), the CPU 31 executes a timing determination process (S303, an example of a setting unit), and ends the retry setting process.

[タイミング決定処理]
続いて、リトライ設定処理中のS203のタイミング決定処理(設定部の一例)について、図5のフローチャートを参照しつつ説明する。
[Timing determination process]
Next, the timing determination process (an example of a setting unit) in S203 during the retry setting process will be described with reference to the flowchart of FIG.

タイミング決定処理では、Pingを実行することによりWebサーバ300との通信速度を取得し、NVRAM34に予め記憶されている所定の通信速度となった場合、Webサーバ300の所定のディレクトリにアクセスする。なお、所定の通信速度は、例えば、「200:OK」等のステータスコードを受信したときの通信速度の平均値である。   In the timing determination process, the communication speed with the Web server 300 is acquired by executing Ping, and when a predetermined communication speed stored in advance in the NVRAM 34 is reached, a predetermined directory of the Web server 300 is accessed. The predetermined communication speed is, for example, an average value of communication speeds when a status code such as “200: OK” is received.

ここで、Pingとは、ICMP(Internet Control Message Protocol)という、インターネット上で使用される通信プロトコルの、Echo Message/Echo Reply Messageを使用したネットワークの診断コマンドである。Pingを実行すると、Echo要求パケットが指定されたWebサーバ300のIPアドレスに送信されて、Echo要求パケットがそのままWebサーバ300からプリンタ100へ返信される。このとき、Echo要求パケットのデータ量とEcho要求パケットを送信してからEcho要求パケットが返信されるまでの時間とに基づいて通信速度を求めることができる。   Here, Ping is a diagnostic command for a network using Echo Message / Echo Reply Message, a communication protocol used on the Internet, called ICMP (Internet Control Message Protocol). When Ping is executed, an Echo request packet is transmitted to the designated IP address of the Web server 300, and the Echo request packet is returned as it is from the Web server 300 to the printer 100. At this time, the communication speed can be obtained based on the data amount of the Echo request packet and the time from when the Echo request packet is transmitted until the Echo request packet is returned.

タイミング決定処理では、先ず、CPU31は、Pingを実行し、Echo要求パケットをWebサーバ300に送信することでWebサーバ300にアクセスし(S401)、Webサーバ300にEcho要求パケットを送信してからEcho要求パケットが返信されるまでの応答時間を測定する(S402)。   In the timing determination process, first, the CPU 31 executes Ping, accesses the Web server 300 by transmitting an Echo request packet to the Web server 300 (S401), transmits the Echo request packet to the Web server 300, and then selects Echo. The response time until the request packet is returned is measured (S402).

次に、CPU31は、Echo要求パケットのデータ量とEcho要求パケットを送信してからEcho要求パケットが返信されるまでの応答時間とに基づいて通信速度を求め、通信速度を検知する(S403、検知部の一例)。   Next, the CPU 31 obtains the communication speed based on the data amount of the Echo request packet and the response time from when the Echo request packet is transmitted until the Echo request packet is returned, and detects the communication speed (S403, detection). Part).

そして、CPU31は、S403で検知した通信速度が所定の通信速度以上であるか否かを判断し(S404、速度判断部の一例)、検知した通信速度が所定の通信速度未満であると判断した場合(S404:NO)、検知した通信速度が所定の通信速度以上となるまで、S401〜S403を繰り返す。   Then, the CPU 31 determines whether or not the communication speed detected in S403 is equal to or higher than the predetermined communication speed (S404, an example of a speed determination unit), and determines that the detected communication speed is less than the predetermined communication speed. In the case (S404: NO), S401 to S403 are repeated until the detected communication speed becomes equal to or higher than the predetermined communication speed.

一方、CPU31は、S403で検知した通信速度が所定の通信速度以上であると判断した場合(S404:YES)、リトライを即時、実行するように設定し(S405)、タイミング決定処理を終了する。   On the other hand, if the CPU 31 determines that the communication speed detected in S403 is equal to or higher than the predetermined communication speed (S404: YES), the CPU 31 sets to retry immediately (S405), and ends the timing determination process.

[第2実施形態の効果]
以上詳細に説明したように、第2実施形態のプリンタ100は、検知した通信速度が所定の通信速度以上であると判断した場合(S404:YES)、リトライを即時、実行するように設定し(S405)、タイミング決定処理を終了する。このため、通信が混雑していない、すなわち、通信速度が所定の通信速度以上であるときにリトライすることになり、印刷対象データを取得できる可能性が高くなる。
[Effects of Second Embodiment]
As described above in detail, when the printer 100 of the second embodiment determines that the detected communication speed is equal to or higher than the predetermined communication speed (S404: YES), the printer 100 is set to immediately execute a retry ( S405), the timing determination process is terminated. For this reason, when the communication is not congested, that is, when the communication speed is equal to or higher than the predetermined communication speed, the retry is performed, and the possibility that the print target data can be acquired increases.

[変形例]
なお、本実施形態は単なる例示にすぎず、本発明を何ら限定するものではない。したがって本発明は当然に、その要旨を逸脱しない範囲内で種々の改良、変形が可能である。例えば、プリンタは、印刷機能を備えるものであればよく、複合機又は複写機であっても適用可能である。
[Modification]
In addition, this embodiment is only a mere illustration and does not limit this invention at all. Therefore, the present invention can be variously improved and modified without departing from the scope of the invention. For example, the printer is not limited as long as it has a printing function, and can be applied even to a multifunction machine or a copying machine.

また、PC、スマートフォン及びサーバ等の画像処理装置に適用することも可能である。例えば、Webページ印刷処理において、URL情報に基づいて印刷対象データを取得すること(S101)、Webページを正常に取得できたか否か判断すること(S102)、RAM33に記憶した印刷対象データをビットマップデータ等の印刷データ変換すること(S103)、RAM33に一時記憶されているステータスコード及び入力されたURL情報をNVRAM34に記憶させること(S105)、リトライ設定処理を実行すること(S106)は、画像処理装置が行ってもよい。   The present invention can also be applied to image processing apparatuses such as PCs, smartphones, and servers. For example, in the Web page printing process, the print target data is acquired based on the URL information (S101), it is determined whether or not the Web page has been normally acquired (S102), and the print target data stored in the RAM 33 is a bit. Converting print data such as map data (S103), storing the status code temporarily stored in the RAM 33 and the input URL information in the NVRAM 34 (S105), and executing the retry setting process (S106) It may be performed by the image processing apparatus.

また、本実施形態では、操作パネル400の操作によって、プリンタに記憶されている印刷ジョブの印刷を開始しているが、これに限るものではない。例えば、モバイル端末からの印刷指令、又はカードリーダ等による認証に従って印刷を開始してもよい。   In this embodiment, printing of a print job stored in the printer is started by operating the operation panel 400, but the present invention is not limited to this. For example, printing may be started according to a print command from the mobile terminal or authentication by a card reader or the like.

また、本実施形態では、プリンタ100においてWebページのURL情報を入力しているが、これに限るものではない。例えば、PC200においてWebページのURL情報を入力し、PC200からプリンタ100にWebページのURL情報が送信されてもよい。また、プリンタにWebページのURL情報を送信する情報処理装置は、PCに限るものではなく、例えば、スマートフォン等のモバイル端末であってもよい。さらに、USB等の可搬記憶媒体がURL情報を記憶しており、プリンタ100がUSBからURL情報を読み出してもよい。   In this embodiment, the URL information of the Web page is input in the printer 100, but the present invention is not limited to this. For example, URL information of a Web page may be input from the PC 200 and the URL information of the Web page may be transmitted from the PC 200 to the printer 100. The information processing apparatus that transmits the URL information of the Web page to the printer is not limited to the PC, and may be a mobile terminal such as a smartphone. Further, a portable storage medium such as a USB may store the URL information, and the printer 100 may read the URL information from the USB.

また、本実施形態では、具体的に印刷対象データを正常にダウンロードできなかったときのステータスコードとして、3XX及び4XXを使って説明したが、200及び206以外の2XXを使ってもよい。例えば、200及び206以外の2XXのステータスコードを受信した場合、URL情報に基づいてWebサーバ300の所定のディレクトリにアクセスするときのエラーでないから、Webページ印刷処理を終了させてもよい。   In the present embodiment, 3XX and 4XX have been described as the status codes when the print target data has not been successfully downloaded. However, 2XX other than 200 and 206 may be used. For example, if a 2XX status code other than 200 and 206 is received, it is not an error when accessing a predetermined directory of the Web server 300 based on the URL information, and the Web page printing process may be terminated.

また、本実施形態では、ステータスコードによってURL情報に基づくWebサーバ300の所定のディレクトリにアクセスする時間を、即時、10分後、または1時間後に設定していたが、Webサーバ300の所定のディレクトリに周期的にアクセスする周期を長くしたり、短くしたりすることで、アクセスする間隔を変更してもよい。   In this embodiment, the time for accessing the predetermined directory of the Web server 300 based on the URL information by the status code is set immediately, 10 minutes later, or 1 hour later. The access interval may be changed by lengthening or shortening the periodic access cycle.

また、本実施形態では、Webベージの取得に失敗したとき、URL情報がRAM33から読み出されてNVRAM34に不揮発状態で記憶される(S105)が、この構成に限定されない。Webページの取得に失敗した後にリトライが完了するまでの間、URL情報を記憶している構成であればよい。例えば、URL情報が入力されてからリトライが完了するまで、URL情報をRAM33などの一時記憶部に継続して記憶してもよい。また、例えば、USBインターフェース38に装着されているフラッシュメモリに、URL情報を記憶してもよい。   In the present embodiment, when acquisition of a Web page fails, URL information is read from the RAM 33 and stored in a nonvolatile state in the NVRAM 34 (S105), but is not limited to this configuration. Any configuration may be used as long as URL information is stored until the retry is completed after acquisition of the Web page fails. For example, the URL information may be continuously stored in the temporary storage unit such as the RAM 33 until the retry is completed after the URL information is input. For example, the URL information may be stored in a flash memory attached to the USB interface 38.

また、本実施形態では、所定の通信速度はNVRAM34に予め記憶されていたが、印刷対象データのデータ量を取得し、印刷対象データのデータ量が大きければ大きいほど、所定の通信速度が速くなるように設定してもよい。このとき、NVRAM34には印刷対象データのデータ量と通信速度とを対応させたテーブルが記憶されている。例えば、HTMLファイルの場合、ソーステキストをダウンロードした後、ソーステキストを解析して、HTMLにリンクされている画像データのデータ量を取得する。そして、上記テーブルから画像データのデータ量に対応する通信速度を取得し、現在の通信速度が上記テーブルから取得した通信速度を超えているか否か判断する。現在の通信速度が上記テーブルから取得した通信速度を超えている場合、印刷対象データを自機のメモリ領域にダウンロードする。   In this embodiment, the predetermined communication speed is stored in advance in the NVRAM 34. However, the data amount of the print target data is acquired, and the larger the data amount of the print target data, the higher the predetermined communication speed. You may set as follows. At this time, the NVRAM 34 stores a table in which the amount of data to be printed is associated with the communication speed. For example, in the case of an HTML file, after downloading the source text, the source text is analyzed, and the data amount of the image data linked to the HTML is acquired. Then, the communication speed corresponding to the data amount of the image data is acquired from the table, and it is determined whether or not the current communication speed exceeds the communication speed acquired from the table. When the current communication speed exceeds the communication speed acquired from the table, the print target data is downloaded to the memory area of the own machine.

また、本実施形態では、S103において、「200:OK」、または、「206:Partial Content」のステータスコードを受信したとき、CPU31は、Webページを正常に取得できたと判断しているが(S103:YES)、他の実施形態であってもよい。例えば、印刷対象データをダウンロード中、または、「301 Moved Permanently」「302 Found」「303 See Other」「307 Temporary Redirect」「403:Forbidden」「404:Not Found」のうちいずれかのステータスコードを受信したときは、Webページを正常に取得できていないと判断(S103:NO)してもよい。   In this embodiment, when the status code of “200: OK” or “206: Partial Content” is received in S103, the CPU 31 determines that the Web page has been successfully acquired (S103). : YES), other embodiments may be used. For example, printing target data is being downloaded, or one of the status codes “301 Moving Permanent”, “302 Found”, “303 See Other”, “307 Temporary Redirect”, “403: Forbidden”, or “404: Not Found” is received When it does, it may be judged that the Web page has not been acquired normally (S103: NO).

また、第2実施形態のリトライ設定処理では、「408:Request Timeout」のステータスコードを受信したか否かにより、タイムアウトしたか否か判断しているが(S302)、他の実施形態であってもよい。例えば、URL情報に記憶されている参照先のWebページにアクセスするときに、タイマー35を起動し、所定時間以内に「200:OK」、または、「206:Partial Content」のステータスコードを受信しなかったときには、タイムアウトと判断するようにしてもよい。これにより、時間不足が失敗の理由か正確に判断することができる。   In the retry setting process of the second embodiment, it is determined whether or not a timeout has occurred depending on whether or not the status code of “408: Request Timeout” has been received (S302). Also good. For example, when accessing the reference Web page stored in the URL information, the timer 35 is started and a status code of “200: OK” or “206: Partial Content” is received within a predetermined time. If not, it may be determined that a timeout has occurred. This makes it possible to accurately determine whether the lack of time is the reason for the failure.

10 画像形成部
30 制御部
100 プリンタ
110 メモリ領域
200 PC
300 Webサーバ
900 印刷システム
10 Image forming unit 30 Control unit 100 Printer 110 Memory area 200 PC
300 Web Server 900 Printing System

Claims (9)

サーバとデータの送信及び受信をするネットワークインターフェースと、
画像を用紙に印刷する画像形成部と、
記憶部と、
制御部とを備え、
制御部は、
前記ネットワークインターフェースに、前記記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求を前記サーバへ送信させる第1送信処理と、
前記ネットワークインターフェースを介して受信した、前記第1URLに対応するHTMLファイルを、前記記憶部に記憶させる第1記憶処理と、
前記要求に対する結果を示すステータスコードが前記要求の完了を示す第1ステータスコードであるか否かを判断する第1判断処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードであると前記第1判断処理において判断した場合、前記記憶部に記憶させた前記第1URLに対応するHTMLファイルに基づき前記画像形成部に画像を用紙に印刷させる第1印刷処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記要求に対する結果を示すステータスコードが前記第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、
前記要求に対する結果を示すステータスコードが前記第2ステータスコードであると前記第2判断処理において判断する場合、前記第1URLに対応するHTMLファイルの移転先を示す第2URLを、前記記憶部に記憶させる第2記憶処理と、
前記ネットワークインターフェースに、前記第2記憶処理により前記記憶部に記憶された前記第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、
前記ネットワークインターフェースを介して受信した、前記第2URLに対応するHTMLファイルを、前記記憶部に記憶させる第3記憶処理と、
前記記憶部に記憶させた前記第2URLに対応するHTMLファイルに基づき前記画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行することを特徴とする画像形成装置。
A network interface for sending and receiving data to and from the server;
An image forming unit for printing an image on paper;
A storage unit;
A control unit,
The control unit
A first transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to a first URL stored in the storage unit to the server;
A first storage process for storing, in the storage unit, an HTML file corresponding to the first URL received via the network interface;
A first determination process for determining whether or not a status code indicating a result of the request is a first status code indicating completion of the request;
When it is determined in the first determination process that the status code indicating the result for the request is the first status code, an image is stored in the image forming unit based on the HTML file corresponding to the first URL stored in the storage unit. A first printing process for printing on the paper;
When it is determined in the first determination process that the status code indicating the result for the request is not the first status code, the status code indicating the result for the request indicates that the HTML file corresponding to the first URL has been transferred. A second determination process for determining whether it is a second status code;
When the second determination process determines that the status code indicating the result for the request is the second status code, the storage unit stores a second URL indicating the transfer destination of the HTML file corresponding to the first URL. A second storage process;
A second transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to the second URL stored in the storage unit by the second storage process;
A third storage process for storing the HTML file corresponding to the second URL received via the network interface in the storage unit;
An image forming apparatus that executes a second printing process for causing the image forming unit to print an image on a sheet based on an HTML file corresponding to the second URL stored in the storage unit.
前記記憶部として、
揮発性の揮発性記憶部と、
不揮発性の不揮発性記憶部と、
を備え、
前記制御部は、
前記第1記憶処理において、前記第1URLに対応するHTMLファイルを、前記揮発性記憶部に記憶させ、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記第1URLに対応するHTMLファイルを前記記憶部から消去させる第1消去処理を実行する、請求項1に記載の画像形成装置。
As the storage unit,
A volatile volatile storage;
A non-volatile non-volatile storage unit;
With
The controller is
In the first storage process, an HTML file corresponding to the first URL is stored in the volatile storage unit,
A first erasure process for erasing an HTML file corresponding to the first URL from the storage unit when it is determined in the first determination process that a status code indicating a result of the request is not the first status code; Item 2. The image forming apparatus according to Item 1.
前記記憶部として、
揮発性の揮発性記憶部と、
不揮発性の不揮発性記憶部と、
を備え、
前記制御部は、
前記要求に対する結果を示すステータスコードを前記揮発性記憶部に記憶させる第4記憶処理を実行し、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記要求に対する結果を示すステータスコードを、前記不揮発性記憶部に記憶させる、ことを特徴とする請求項1に記載の画像形成装置。
As the storage unit,
A volatile volatile storage;
A non-volatile non-volatile storage unit;
With
The controller is
Performing a fourth storage process for storing a status code indicating a result of the request in the volatile storage unit;
A status code indicating a result for the request is stored in the nonvolatile storage unit when it is determined in the first determination process that a status code indicating a result for the request is not the first status code. The image forming apparatus according to claim 1.
前記制御部は、
外部の情報処理装置から送信された前記第1URLを、前記記憶部に記憶させる第5記憶処理を実行することを特徴とする請求項1〜3のいずれか一項に記載の画像形成装置。
The controller is
The image forming apparatus according to any one of claims 1 to 3, wherein a fifth storage process is executed to store the first URL transmitted from an external information processing apparatus in the storage unit.
前記第1URLを入力するための入力部を備え、
前記制御部は、
前記入力部から入力された前記第1URLを前記記憶部に記憶させる第6記憶処理を実行することを特徴とする請求項1〜4のいずれか一項に記載の画像形成装置。
An input unit for inputting the first URL;
The controller is
5. The image forming apparatus according to claim 1, wherein a sixth storage process is executed to store the first URL input from the input unit in the storage unit. 6.
可搬記憶媒体と接続される可搬記憶媒体インターフェースを備え、
前記制御部は、
前記可搬記憶媒体インターフェースに接続された前記可搬記憶媒体から前記第1URLを読み出す読出処理と、
前記読出処理により読み出された前記第1URLを前記記憶部に記憶させる第7記憶処理を実行することを特徴とする請求項1〜5のいずれか一項に記載の画像形成装置。
A portable storage medium interface connected to the portable storage medium;
The controller is
A reading process of reading the first URL from the portable storage medium connected to the portable storage medium interface;
The image forming apparatus according to claim 1, wherein a seventh storage process for storing the first URL read by the read process in the storage unit is executed.
情報処理装置と画像形成装置とから構成される画像形成システムにおいて、
情報処理装置は、
情報処理装置記憶部と、
情報処理装置制御部とを備え、
情報処理装置制御部は、
前記情報処理装置記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、
前記第1URLに対応するHTMLファイルを、前記情報処理装置記憶部に記憶させる第1記憶処理と、
前記要求に対する結果を示すステータスコードが前記要求の完了を示す第1ステータスコードであるか否かを判断する第1判断処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードであると前記第1判断処理において判断した場合、前記記憶部に記憶させた前記第1URLに対応するHTMLファイルに基づき前記画像形成装置に画像を用紙に印刷させる指示をする第1印刷指示処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記要求に対する結果を示すステータスコードが前記第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、
前記要求に対する結果を示すステータスコードが前記第2ステータスコードであると前記第2判断処理において判断する場合、前記第1URLに対応するHTMLファイルの移転先を示す第2URLを、前記記憶部に記憶させる第2記憶処理と、
前記第2記憶処理により前記記憶部に記憶された前記第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、
前記第2URLに対応するHTMLファイルを、前記情報処理装置記憶部に記憶させる第3記憶処理と、
前記情報処理装置記憶部に記憶させた前記第2URLに対応するHTMLファイルに基づき前記画像形成装置に画像を形成させる指示をする第2印刷指示処理と、を実行し、
画像形成装置は、
前記情報処理装置とデータの送信及び受信をするネットワークインターフェースと、
画像を用紙に印刷する画像形成部と、
画像形成装置制御部を備え、
前記画像形成装置制御部は、
前記ネットワークインターフェースを介して受信された、前記第1印刷指示処理の指示により、前記画像形成部に画像を用紙に印刷させる第1印刷処理と、
前記ネットワークインターフェースを介して受信された、前記第2印刷指示処理の指示により、前記画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行することを特徴とする画像形成システム。
In an image forming system including an information processing apparatus and an image forming apparatus,
Information processing device
An information processing device storage unit;
An information processing device control unit,
The information processing device control unit
A first transmission process for transmitting a request for downloading an HTML file corresponding to a first URL stored in the information processing device storage unit to a server;
A first storage process for storing an HTML file corresponding to the first URL in the information processing device storage unit;
A first determination process for determining whether or not a status code indicating a result of the request is a first status code indicating completion of the request;
When it is determined in the first determination process that the status code indicating the result for the request is the first status code, an image is stored in the image forming apparatus based on the HTML file corresponding to the first URL stored in the storage unit. A first print instruction process for instructing to print on the paper;
When it is determined in the first determination process that the status code indicating the result for the request is not the first status code, the status code indicating the result for the request indicates that the HTML file corresponding to the first URL has been transferred. A second determination process for determining whether it is a second status code;
When the second determination process determines that the status code indicating the result for the request is the second status code, the storage unit stores a second URL indicating the transfer destination of the HTML file corresponding to the first URL. A second storage process;
A second transmission process for transmitting a request for downloading an HTML file corresponding to the second URL stored in the storage unit by the second storage process;
A third storage process for storing an HTML file corresponding to the second URL in the information processing device storage unit;
Executing a second print instruction process for instructing the image forming apparatus to form an image based on an HTML file corresponding to the second URL stored in the information processing apparatus storage unit;
The image forming apparatus
A network interface for transmitting and receiving data to and from the information processing apparatus;
An image forming unit for printing an image on paper;
An image forming apparatus control unit;
The image forming apparatus control unit
A first print process for causing the image forming unit to print an image on a sheet in accordance with an instruction of the first print instruction process received via the network interface;
An image forming system that executes a second print process for causing the image forming unit to print an image on a sheet in accordance with an instruction of the second print instruction process received via the network interface.
サーバとデータの送信及び受信をするネットワークインターフェースと、
画像を用紙に印刷する画像形成部と、
記憶部と、
制御部とを備え、
制御部は、
前記ネットワークインターフェースに、前記記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求を前記サーバへ送信させる第1送信処理と、
前記ネットワークインターフェースを介して受信した、前記第1URLに対応するHTMLファイルを、前記記憶部に記憶させる第1記憶処理と、
前記要求に対する結果を示すステータスコードが前記要求の完了以外を示す第1ステータスコードであるか否かを判断する第1判断処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記記憶部に記憶させた前記第1URLに対応するHTMLファイルに基づき前記画像形成部に画像を用紙に印刷させる第1印刷処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードであると前記第1判断処理において判断した場合、前記要求に対する結果を示すステータスコードが、前記第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、
前記要求に対する結果を示すステータスコードが前記第2ステータスコードであると前記第2判断処理において判断する場合、前記第1URLに対応するHTMLファイルの移転先を示す第2URLを、前記記憶部に記憶させる第2記憶処理と、
前記ネットワークインターフェースに、前記第2記憶処理により前記記憶部に記憶された前記第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、
前記ネットワークインターフェースを介して受信した、前記第2URLに対応するHTMLファイルを、前記記憶部に記憶させる第3記憶処理と、
前記記憶部に記憶させた前記第2URLに対応するHTMLファイルに基づき前記画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行することを特徴とする画像形成装置。
A network interface for sending and receiving data to and from the server;
An image forming unit for printing an image on paper;
A storage unit;
A control unit,
The control unit
A first transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to a first URL stored in the storage unit to the server;
A first storage process for storing, in the storage unit, an HTML file corresponding to the first URL received via the network interface;
First determination processing for determining whether a status code indicating a result of the request is a first status code indicating other than completion of the request;
When it is determined in the first determination process that the status code indicating the result for the request is not the first status code, an image is displayed on the image forming unit based on the HTML file corresponding to the first URL stored in the storage unit. A first printing process for printing on paper;
If it is determined in the first determination process that the status code indicating the result for the request is the first status code, the HTML file corresponding to the first URL is transferred as the status code indicating the result for the request A second determination process for determining whether or not the second status code indicates
When the second determination process determines that the status code indicating the result for the request is the second status code, the storage unit stores a second URL indicating the transfer destination of the HTML file corresponding to the first URL. A second storage process;
A second transmission process for causing the network interface to transmit a request for downloading an HTML file corresponding to the second URL stored in the storage unit by the second storage process;
A third storage process for storing the HTML file corresponding to the second URL received via the network interface in the storage unit;
An image forming apparatus that executes a second printing process for causing the image forming unit to print an image on a sheet based on an HTML file corresponding to the second URL stored in the storage unit.
情報処理装置と画像形成装置とから構成される画像形成システムにおいて、
情報処理装置は、
情報処理装置記憶部と、
情報処理装置制御部とを備え、
情報処理装置制御部は、
前記情報処理装置記憶部に記憶される第1URLに対応するHTMLファイルをダウンロードするための要求をサーバへ送信させる第1送信処理と、
前記第1URLに対応するHTMLファイルを、前記情報処理装置記憶部に記憶させる第1記憶処理と、
前記要求に対する結果を示すステータスコードが、前記要求の完了以外を示す第1ステータスコードであるか否かを判断する第1判断処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードでないと前記第1判断処理において判断した場合、前記記憶部に記憶させた前記第1URLに対応するHTMLファイルに基づき前記画像形成装置に画像を用紙に印刷させる指示をする第1印刷指示処理と、
前記要求に対する結果を示すステータスコードが前記第1ステータスコードであると前記第1判断処理において判断した場合、前記要求に対する結果を示すステータスコードが、前記第1URLに対応するHTMLファイルが移転されたことを示す第2ステータスコードであるか否かを判断する第2判断処理と、
前記要求に対する結果を示すステータスコードが前記第2ステータスコードであると前記第2判断処理において判断する場合、前記第1URLに対応するHTMLファイルの移転先を示す第2URLを、前記記憶部に記憶させる第2記憶処理と、
前記第2記憶処理により前記記憶部に記憶された前記第2URLに対応するHTMLファイルをダウンロードするための要求を送信させる第2送信処理と、
前記第2URLに対応するHTMLファイルを、前記情報処理装置記憶部に記憶させる第3記憶処理と、
前記情報処理装置記憶部に記憶させた前記第2URLに対応するHTMLファイルに基づき前記画像形成装置に画像を形成させる指示をする第2印刷指示処理と、を実行し、
画像形成装置は、
前記情報処理装置とデータの送信及び受信をするネットワークインターフェースと、
画像を用紙に印刷する画像形成部と、
画像形成装置制御部を備え、
前記画像形成装置制御部は、
前記ネットワークインターフェースを介して受信された、前記第1印刷指示処理の指示により、前記画像形成部に画像を用紙に印刷させる第1印刷処理と、
前記ネットワークインターフェースを介して受信された、前記第2印刷指示処理の指示により、前記画像形成部に画像を用紙に印刷させる第2印刷処理と、を実行することを特徴とする画像形成システム。
In an image forming system including an information processing apparatus and an image forming apparatus,
Information processing device
An information processing device storage unit;
An information processing device control unit,
The information processing device control unit
A first transmission process for transmitting a request for downloading an HTML file corresponding to a first URL stored in the information processing device storage unit to a server;
A first storage process for storing an HTML file corresponding to the first URL in the information processing device storage unit;
First determination processing for determining whether or not a status code indicating a result of the request is a first status code indicating other than completion of the request;
If it is determined in the first determination process that the status code indicating the result for the request is not the first status code, an image is sent to the image forming apparatus based on the HTML file corresponding to the first URL stored in the storage unit. A first print instruction process for instructing printing on paper;
If it is determined in the first determination process that the status code indicating the result for the request is the first status code, the HTML file corresponding to the first URL is transferred as the status code indicating the result for the request A second determination process for determining whether or not the second status code indicates
When the second determination process determines that the status code indicating the result for the request is the second status code, the storage unit stores a second URL indicating the transfer destination of the HTML file corresponding to the first URL. A second storage process;
A second transmission process for transmitting a request for downloading an HTML file corresponding to the second URL stored in the storage unit by the second storage process;
A third storage process for storing an HTML file corresponding to the second URL in the information processing device storage unit;
Executing a second print instruction process for instructing the image forming apparatus to form an image based on an HTML file corresponding to the second URL stored in the information processing apparatus storage unit;
The image forming apparatus
A network interface for transmitting and receiving data to and from the information processing apparatus;
An image forming unit for printing an image on paper;
An image forming apparatus control unit;
The image forming apparatus control unit
A first print process for causing the image forming unit to print an image on a sheet in accordance with an instruction of the first print instruction process received via the network interface;
An image forming system that executes a second print process for causing the image forming unit to print an image on a sheet in accordance with an instruction of the second print instruction process received via the network interface.
JP2015142699A 2015-07-17 2015-07-17 Image forming apparatus and image forming system Active JP5958617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015142699A JP5958617B2 (en) 2015-07-17 2015-07-17 Image forming apparatus and image forming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015142699A JP5958617B2 (en) 2015-07-17 2015-07-17 Image forming apparatus and image forming system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011188797A Division JP5824974B2 (en) 2011-08-31 2011-08-31 Image processing device

Publications (2)

Publication Number Publication Date
JP2016013694A JP2016013694A (en) 2016-01-28
JP5958617B2 true JP5958617B2 (en) 2016-08-02

Family

ID=55230288

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015142699A Active JP5958617B2 (en) 2015-07-17 2015-07-17 Image forming apparatus and image forming system

Country Status (1)

Country Link
JP (1) JP5958617B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11355498A (en) * 1998-06-08 1999-12-24 Canon Inc Method, device, and system for image formation and computer readable storage medium
JP2001249841A (en) * 2000-03-07 2001-09-14 Hitachi Ltd Automatic re-requesting method using proxy server
JP2002304363A (en) * 2001-04-06 2002-10-18 Seiko Epson Corp Automatic collection of contents through network
JP2004062573A (en) * 2002-07-30 2004-02-26 Canon Inc Printing system
JP2006301746A (en) * 2005-04-15 2006-11-02 Canon Inc Image formation device and information processing method
JP4712639B2 (en) * 2005-09-13 2011-06-29 株式会社リコー Network printing system, printing apparatus, print data generation apparatus, network printing method, printing method, print data generation method, and program
JP2007216552A (en) * 2006-02-17 2007-08-30 Konica Minolta Business Technologies Inc IMAGE FORMING APPARATUS AND Web PAGE FILE ACQUISITION PROGRAM
JP5397189B2 (en) * 2009-11-27 2014-01-22 日本電気株式会社 Terminal device

Also Published As

Publication number Publication date
JP2016013694A (en) 2016-01-28

Similar Documents

Publication Publication Date Title
US10445032B2 (en) Management server communicating with image processing apparatus and terminal device
US9036192B2 (en) Image processing systems that establish connections using different communication protocols, data processing apparatuses that establish connections using different communication protocols, and computer-readable media storing instructions for such data processing apparatuses
US9116651B2 (en) Image processing apparatus, control method, and recording medium storing computer program for image processing
JP6300511B2 (en) System and execution instruction method
JP5824974B2 (en) Image processing device
JP6690439B2 (en) Image processing device
US11533218B2 (en) Communication method and control method in information processing apparatus
US10270927B2 (en) Controlling a display of a function execution apparatus based on an executable condition of a file processing function
JP2019175313A (en) Application program
JP6476541B2 (en) Image forming apparatus, print request deleting method, and program
JP5830904B2 (en) Printing apparatus and printing system
JP5857589B2 (en) Printing apparatus and printing system
JP5958617B2 (en) Image forming apparatus and image forming system
JP4683113B2 (en) Image forming apparatus
US9864556B2 (en) Image forming apparatus having web browser, method of controlling image forming apparatus, and storage medium
US20110010718A1 (en) Electronic device, information processing method, and computer program product having computer-readable information processing program
JP7155669B2 (en) Application programs for mobile terminals and mobile terminals
JP6657709B2 (en) Program and information processing device
US20180097967A1 (en) Communication device
US20240143241A1 (en) Storage medium and setting system
JP7238521B2 (en) Program sets, programs and information processing equipment
US10838671B2 (en) Terminal device, non-transitory computer-readable recording medium storing instructions to control the terminal device and method of controlling terminal device
JP7106838B2 (en) IMAGE FORMING DEVICE, DEVICE SETTING METHOD AND DEVICE SETTING PROGRAM
JP6202166B2 (en) Mobile terminal and program
US20110069345A1 (en) Image forming apparatus for packet capture system, and control method and storage medium therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160518

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160606

R150 Certificate of patent or registration of utility model

Ref document number: 5958617

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150