Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5866908B2 - COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM - Google Patents
[go: Go Back, main page]

JP5866908B2 - COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM - Google Patents

COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM Download PDF

Info

Publication number
JP5866908B2
JP5866908B2 JP2011202823A JP2011202823A JP5866908B2 JP 5866908 B2 JP5866908 B2 JP 5866908B2 JP 2011202823 A JP2011202823 A JP 2011202823A JP 2011202823 A JP2011202823 A JP 2011202823A JP 5866908 B2 JP5866908 B2 JP 5866908B2
Authority
JP
Japan
Prior art keywords
program
format
executed
time
web page
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.)
Expired - Fee Related
Application number
JP2011202823A
Other languages
Japanese (ja)
Other versions
JP2013065155A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2011202823A priority Critical patent/JP5866908B2/en
Publication of JP2013065155A publication Critical patent/JP2013065155A/en
Application granted granted Critical
Publication of JP5866908B2 publication Critical patent/JP5866908B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は、通信システムおよびそれに関連する技術に関し、特に、ウエブサーバとウエブブラウザとの間の通信技術に関する。   The present invention relates to a communication system and a technology related thereto, and more particularly to a communication technology between a web server and a web browser.

ウエブブラウザにおいては、ウエブサーバから送信されてきたウエブページデータ(HTMLデータ等)に基づく処理(表示処理等)が実行される。   In the web browser, processing (display processing or the like) based on web page data (HTML data or the like) transmitted from the web server is executed.

また、ウエブブラウザは、予め定められた内容を表示するのみならず、各種の形式のプログラムを呼び出して実行することも可能である。たとえば、ウエブページデータに埋め込まれたデータに基づいて、ウエブブラウザ上において「Java(JavaScript)」(商標)あるいはアドビ社の「Flash」(商標)などの様々な形式のプログラムが実行され得る。   Further, the web browser can display not only predetermined contents but also call and execute various types of programs. For example, various types of programs such as “Java (JavaScript)” (trademark) or Adobe “Flash” (trademark) can be executed on a web browser based on data embedded in web page data.

具体的には、ウエブページデータにおいては、予め定められた形式(指定形式)の所定のプログラムが呼び出されるべき旨が記述されており、当該ウエブページデータをウエブサーバから受信したウエブブラウザは当該ウエブページデータ内の記述に基づいて、当該指定形式による所定のプログラムを実行する。   Specifically, the web page data describes that a predetermined program in a predetermined format (specified format) should be called, and the web browser that receives the web page data from the web server receives the web page data. Based on the description in the page data, a predetermined program in the specified format is executed.

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

ところで、たとえば、MFPなどの画像形成装置の中にも、ウエブサーバ機能を有し、情報通信端末と通信することが可能な装置が存在する。一方、当該装置の通信先である当該情報通信端末には、様々なブラウザが搭載されている。   Incidentally, for example, among image forming apparatuses such as MFPs, there are apparatuses that have a web server function and can communicate with an information communication terminal. On the other hand, various browsers are mounted on the information communication terminal which is a communication destination of the apparatus.

また、上記の各種形式のプログラムの実行速度は、情報通信端末に実装されたブラウザの種類によって異なる、という事情が存在する。   In addition, there is a circumstance that the execution speed of the various types of programs described above varies depending on the type of browser installed in the information communication terminal.

具体的には、或るブラウザに関しては、「Java」(商標)の実行速度は「Flash」(商標)の実行速度よりも大きい(高速である)。一方、別のブラウザに関しては、逆に、「Java」の実行速度は「Flash」の実行速度よりも小さい(低速)こともある。   Specifically, for a certain browser, the execution speed of “Java” (trademark) is larger (high speed) than the execution speed of “Flash” (trademark). On the other hand, on the other browser, conversely, the execution speed of “Java” may be lower (slower) than the execution speed of “Flash”.

そのため、「Java」の実行速度が「Flash」の実行速度よりも大きなブラウザに対して、常に「Flash」で所定の処理を実行することは効率的であるとは言えない。逆に、「Java」の実行速度が「Flash」の実行速度よりも小さなブラウザに対して、常に「Java」で所定の処理を実行することも効率的であるとは言えない。   Therefore, it cannot be said that it is efficient to always execute a predetermined process in “Flash” for a browser whose execution speed of “Java” is higher than that of “Flash”. Conversely, it cannot be said that it is efficient to always execute a predetermined process in “Java” for a browser whose execution speed of “Java” is lower than that of “Flash”.

なお、上記特許文献1の技術は、このような問題を解決するものではない。   In addition, the technique of the said patent document 1 does not solve such a problem.

そこで、この発明の課題は、端末装置のブラウザに適した形式のプログラムを用いて当該端末装置において効率的に処理を実行させることが可能な技術を提供することを課題とする。   Therefore, an object of the present invention is to provide a technique that can efficiently execute processing in a terminal device using a program in a format suitable for the browser of the terminal device.

上記課題を解決すべく、請求項1の発明は、端末装置との間で通信が可能でありウエブサーバ機能を内蔵する通信装置であって、端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得する取得手段と、前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定する決定手段と、所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成する生成手段と、前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信する送信手段とを備えることを特徴とする。   In order to solve the above-mentioned problem, the invention of claim 1 is a communication device capable of communicating with a terminal device and having a built-in web server function, and has a plurality of formats on a web browser mounted on the terminal device. Acquisition means for acquiring each execution required time when processing is executed using each of the programs, and an optimum program format corresponding to the web browser is selected from the plurality of formats. Determination means for determining based on time, generation means for generating web page data in which a description for executing a predetermined process using the program of the optimum program format is embedded, and a page request from the web browser And transmitting means for transmitting the web page data in response.

請求項2の発明は、請求項1の発明に係る通信装置において、前記複数の形式のプログラムは、それぞれ、ウエブページを記述するデータから呼出可能な形式のプログラムであることを特徴とする。   According to a second aspect of the present invention, in the communication apparatus according to the first aspect of the invention, the plurality of types of programs are programs that can be called from data describing a web page.

請求項3の発明は、請求項1または請求項2の発明に係る通信装置において、前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、前記所定の処理が第i回目(値iは自然数)に実行される際には、前記送信手段は、前記第1形式のプログラムで前記所定の処理を実行すべき旨が記述された第1のウエブページデータを前記ウエブブラウザに向けて送信し、前記取得手段は、前記第1形式のプログラムによる実行所要時間である第1の所要時間を取得し、前記所定の処理が第j回目(値jは自然数)に実行される際には、前記送信手段は、前記第2形式のプログラムで前記所定の処理を実行すべき旨が記述された第2のウエブページデータを前記ウエブブラウザに向けて送信し、前記取得手段は、前記第2形式のプログラムによる実行所要時間である第2の所要時間を取得し、前記所定の処理が第k回目(値kは自然数であり、k>i、且つ、k>j)に実行される際には、前記決定手段は、前記第1の所要時間と前記第2の所要時間とに基づいて前記最適プログラム形式を決定し、前記生成手段は、前記最適プログラム形式で前記所定の処理を実行すべき旨が記述された第3のウエブページデータを生成し、前記送信手段は、前記ウエブブラウザからのページリクエストに応答して前記第3のウエブページデータを送信することを特徴とする。   According to a third aspect of the present invention, in the communication device according to the first or second aspect of the invention, the plurality of types of programs include a first type of program and a second type of program, and the predetermined processing is performed. When executed at the i-th time (value i is a natural number), the transmission means receives the first web page data describing that the predetermined processing should be executed by the program in the first format. Transmitting to a web browser, the acquisition means acquires a first required time that is an execution required time by the program in the first format, and the predetermined processing is executed at the jth time (value j is a natural number). In this case, the transmission means transmits second web page data describing that the predetermined processing should be executed by the program in the second format to the web browser, and the acquisition means Said When a second required time that is an execution required time by a program of a format is acquired and the predetermined processing is executed at the k-th time (value k is a natural number, k> i and k> j) The determining means determines the optimal program format based on the first required time and the second required time, and the generating means should execute the predetermined processing in the optimal program format And generating the third web page data, and the transmission means transmits the third web page data in response to a page request from the web browser.

請求項4の発明は、請求項1または請求項2の発明に係る通信装置において、前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、前記所定の処理が第i回目(値iは自然数)に実行される際には、前記送信手段は、前記第1形式のプログラムで前記所定の処理を実行すべき旨が記述された第1のウエブページデータを前記ウエブブラウザに向けて送信し、前記取得手段は、前記第1形式のプログラムによる実行所要時間である第1の所要時間を取得し、前記決定手段は、前記第1の所要時間が第1の基準時間よりも小さい場合には、前記第1形式を前記最適プログラム形式として決定し、前記第1の所要時間が前記第1の基準時間よりも大きい場合には、前記第1形式とは異なる第2形式を前記最適プログラム形式の候補として決定することを特徴とする。   According to a fourth aspect of the present invention, in the communication device according to the first or second aspect of the invention, the plurality of types of programs include a first type of program and a second type of program, and the predetermined processing is performed. When executed at the i-th time (value i is a natural number), the transmission means receives the first web page data describing that the predetermined processing should be executed by the program in the first format. The information is transmitted to a web browser, the acquisition means acquires a first required time that is a time required for execution by the program of the first format, and the determination means determines the first required time as a first reference time. When the time is smaller than the time, the first format is determined as the optimum program format, and when the first required time is larger than the first reference time, the second format is different from the first format. The format And determining a candidate grams format.

請求項5の発明は、請求項4の発明に係る通信装置において、前記所定の処理が第j回目(値jは自然数、且つ、j>i)に実行される際において、前記送信手段は、前記第2形式のプログラムで前記所定の処理を実行すべき旨が記述された第2のウエブページデータを前記ウエブブラウザに向けて送信し、前記取得手段は、前記第2形式のプログラムによる実行所要時間である第2の所要時間を取得し、前記決定手段は、前記第1の所要時間が前記第1の基準時間よりも大きく且つ前記第2の所要時間が第2の基準時間よりも小さいことを条件として前記第2形式を前記最適プログラム形式として確定することを特徴とする。   According to a fifth aspect of the present invention, in the communication device according to the fourth aspect of the invention, when the predetermined processing is executed at the jth time (value j is a natural number and j> i), The second web page data describing that the predetermined processing should be executed by the second format program is transmitted to the web browser, and the acquisition means requires execution by the second format program. A second required time that is a time is acquired, and the determining means has the first required time larger than the first reference time and the second required time is smaller than the second reference time. The second format is determined as the optimum program format on condition that

請求項6の発明は、請求項1または請求項2の発明に係る通信装置において、前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、前記所定の処理が実際に実行される前において、前記送信手段は、前記第1形式のプログラムで第1のテスト処理を実行すべき旨と前記第2形式のプログラムで第2のテスト処理を実行すべき旨とが記述されたテスト用ウエブページデータを前記ウエブブラウザに向けて送信し、前記取得手段は、前記テスト用ウエブページデータに従って前記ウエブブラウザで実行された前記第1形式のプログラムによる実行所要時間である第1の所要時間と、前記テスト用ウエブページデータに従って前記ウエブブラウザで実行された前記第2形式のプログラムによる実行所要時間である第2の所要時間とを取得し、前記決定手段は、前記第1の所要時間と前記第2の所要時間とに基づいて前記最適プログラム形式を決定し、前記所定の処理が実際に実行される際には、前記生成手段は、前記最適プログラム形式で前記所定の処理を実行すべき旨が記述された特定のウエブページデータを生成し、前記送信手段は、前記ウエブブラウザからのページリクエストに応答して前記特定のウエブページデータを送信することを特徴とする。   According to a sixth aspect of the present invention, in the communication device according to the first or second aspect of the invention, the plurality of types of programs include a first type of program and a second type of program, and the predetermined processing is performed. Before the actual execution, the transmission means indicates that the first test process should be executed by the first format program and the second test process should be executed by the second format program. The described test web page data is transmitted to the web browser, and the acquisition means is a time required for execution by the program of the first format executed by the web browser according to the test web page data. 1 and the time required for execution by the program in the second format executed by the web browser in accordance with the test web page data. The second required time is obtained, and the determining means determines the optimum program format based on the first required time and the second required time, and the predetermined processing is actually executed. In this case, the generation means generates specific web page data describing that the predetermined processing should be executed in the optimum program format, and the transmission means responds to a page request from the web browser. Then, the specific web page data is transmitted.

請求項7の発明は、a)通信先装置である端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得するステップと、b)前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定するステップと、c)所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成するステップと、d)前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信するステップとをサーバコンピュータに実行させるためのプログラムであることを特徴とする。   The invention according to claim 7 is: a) obtaining each execution time required when processing is executed using each of a plurality of types of programs on a web browser mounted on a terminal device which is a communication destination device; B) determining an optimum program format corresponding to the web browser from the plurality of formats based on the respective execution times; and c) performing a predetermined process on the program of the optimum program format. Generating a web page data in which a description to be executed is embedded; and d) transmitting the web page data in response to a page request from the web browser. It is a program.

請求項8の発明は、通信システムであって、ウエブサーバ機能を内蔵する通信装置と、前記通信装置との間で通信が可能な端末装置とを備え、前記通信装置は、前記端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得する取得手段と、前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定する決定手段と、所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成する生成手段と、前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信する送信手段とを有することを特徴とする。   The invention of claim 8 is a communication system comprising a communication device incorporating a web server function and a terminal device capable of communicating with the communication device, wherein the communication device is mounted on the terminal device. Acquisition means for acquiring each execution time when processing is executed using each of the programs of a plurality of formats on the web browser, and the web browser is selected from among the programs of the plurality of formats. Determining means for determining an optimal program format based on each execution time required; and generating means for generating web page data in which a description for executing a predetermined process using the program of the optimal program format is embedded. And transmitting means for transmitting the web page data in response to a page request from the web browser.

請求項9の発明は、請求項8の発明に係る通信システムにおいて、前記通信装置は、画像形成装置であることを特徴とする。   According to a ninth aspect of the present invention, in the communication system according to the eighth aspect of the invention, the communication device is an image forming device.

請求項10の発明は、請求項8または請求項9の発明に係る通信システムにおいて、前記端末装置は、携帯式端末装置であることを特徴とする。   According to a tenth aspect of the present invention, in the communication system according to the eighth or ninth aspect of the invention, the terminal device is a portable terminal device.

請求項1ないし請求項10に記載の発明によれば、端末装置のブラウザに適した形式のプログラムを用いて当該端末装置にて効率的に処理を実行させることが可能である。   According to the first to tenth aspects of the present invention, it is possible to efficiently execute processing in the terminal device using a program in a format suitable for the browser of the terminal device.

第1実施形態に係る通信システムの構成を示す概略図である。It is the schematic which shows the structure of the communication system which concerns on 1st Embodiment. 端末装置の概略構成を示す機能ブロック図である。It is a functional block diagram which shows schematic structure of a terminal device. 画像形成装置(ウエブサーバ)と端末装置(ウエブブラウザ)との間の動作を示す図である。It is a figure which shows operation | movement between an image forming apparatus (web server) and a terminal device (web browser). 画像形成装置の動作を中心に示すフローチャートである。3 is a flowchart illustrating mainly the operation of the image forming apparatus. 第2実施形態に係る画像形成装置の動作を示すフローチャートである。10 is a flowchart illustrating an operation of the image forming apparatus according to the second embodiment. 第3実施形態に係る動作を示す図である。It is a figure which shows the operation | movement which concerns on 3rd Embodiment. テスト用のウエブページデータの一例を示す図である。It is a figure which shows an example of the web page data for a test. ウエブページデータで利用されるFlash形式プログラムのソースコード(コンパイル前のデータ)を示す図である。It is a figure which shows the source code (data before compiling) of the Flash format program utilized with web page data.

以下、本発明の実施形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<1.第1実施形態>
<1−1.構成概要>
図1は、第1実施形態に係る通信システム1(1A)の構成を示す概略図である。図1に示すように、通信システム1は、通信装置10と複数の情報端末装置(端末装置とも称する)50(50a,50b,...)とを備える。通信装置10と各端末装置50とは、互いにネットワークNWを介して通信を行うことが可能である。ネットワークNWは、LAN(Local Area Network)およびインターネットなどによって構成される。また、ネットワークNWに対する接続態様は、有線接続であってもよく、或いは無線接続であってもよい。
<1. First Embodiment>
<1-1. Outline of configuration>
FIG. 1 is a schematic diagram illustrating a configuration of a communication system 1 (1A) according to the first embodiment. As shown in FIG. 1, the communication system 1 includes a communication device 10 and a plurality of information terminal devices (also referred to as terminal devices) 50 (50a, 50b,...). The communication device 10 and each terminal device 50 can communicate with each other via the network NW. The network NW is configured by a LAN (Local Area Network), the Internet, and the like. Further, the connection mode to the network NW may be wired connection or wireless connection.

通信装置10は、ウエブ(Web)サーバ機能を有するサーバコンピュータ(あるいは単にウエブサーバ)とも称される。ここでは、通信装置10は、ウエブサーバ機能を有する画像形成装置10として構成されている。また、各端末装置50はウエブクライアント機能(ウエブブラウザ機能)を有している。各端末装置50は、それぞれ、ウエブブラウザアプリケーションソフトウエアプログラム(単にウエブブラウザないしブラウザとも称する)を実行することによって、ウエブサーバとしての画像形成装置10にアクセスし、画像形成装置10から各種のデータを受信し、当該受信データに基づく表示動作等を実行する。   The communication device 10 is also referred to as a server computer (or simply a web server) having a web (Web) server function. Here, the communication apparatus 10 is configured as an image forming apparatus 10 having a web server function. Each terminal device 50 has a web client function (web browser function). Each terminal device 50 accesses the image forming apparatus 10 as a web server by executing a web browser application software program (also simply referred to as a web browser or browser), and receives various data from the image forming apparatus 10. Receive and execute display operation based on the received data.

<1−2.画像形成装置の構成>
ここでは、画像形成装置10として、MFP(マルチ・ファンクション・ペリフェラル(Multi-Functional Peripheral))を例示する。
<1-2. Configuration of image forming apparatus>
Here, an MFP (Multi-Functional Peripheral) is exemplified as the image forming apparatus 10.

MFP10は、スキャン機能、コピー機能、ファクシミリ機能およびボックス格納機能などを備える装置(複合機とも称する)である。具体的には、MFP10は、図1の機能ブロック図に示すように、画像読取部2、印刷出力部3、通信部4、格納部5、入出力部6およびコントローラ9等を備えており、これらの各部を複合的に動作させることによって、各種の機能を実現する。   The MFP 10 is a device (also referred to as a multi-function device) having a scan function, a copy function, a facsimile function, a box storage function, and the like. Specifically, as shown in the functional block diagram of FIG. 1, the MFP 10 includes an image reading unit 2, a print output unit 3, a communication unit 4, a storage unit 5, an input / output unit 6, a controller 9, and the like. Various functions are realized by operating these components in a complex manner.

画像読取部2は、MFP10の所定の位置に載置された原稿を光学的に読み取って(すなわちスキャンして)、当該原稿の画像データ(原稿画像なしいスキャン画像とも称する)を生成する処理部である。この画像読取部2は、スキャン部であるとも称される。   The image reading unit 2 optically reads (that is, scans) a document placed at a predetermined position of the MFP 10 and generates image data of the document (also referred to as a scanned image). It is. The image reading unit 2 is also referred to as a scanning unit.

印刷出力部3は、印刷対象に関するデータに基づいて紙などの各種の媒体に画像を印刷出力する出力部である。   The print output unit 3 is an output unit that prints out an image on various media such as paper based on data related to a print target.

通信部4は、公衆回線等を介したファクシミリ通信を行うことが可能な処理部である。さらに、通信部4は、ネットワークNWを介したネットワーク通信を行うことも可能である。このネットワーク通信では、たとえば、TCP/IP(Transmission Control Protocol / Internet Protocol)等の各種のプロトコルが利用される。当該ネットワーク通信を利用することによって、MFP10は、所望の相手先(端末装置50等)との間で各種のデータを授受することが可能である。   The communication unit 4 is a processing unit capable of performing facsimile communication via a public line or the like. Further, the communication unit 4 can perform network communication via the network NW. In this network communication, for example, various protocols such as TCP / IP (Transmission Control Protocol / Internet Protocol) are used. By using the network communication, the MFP 10 can exchange various data with a desired partner (the terminal device 50 or the like).

格納部5は、ハードディスクドライブ(HDD)等の記憶装置で構成される。格納部5は、印刷ジョブに係るデータを記憶する。また、格納部5は、通信先である各端末装置に関する情報(データテーブルTL1等)をも記憶する。データテーブルTL1においては、後述するようにして決定された「最適プログラム形式」(後述)が、各端末装置50(ブラウザBW)と各ページのURLとの組合せごとに記憶される。   The storage unit 5 includes a storage device such as a hard disk drive (HDD). The storage unit 5 stores data relating to the print job. The storage unit 5 also stores information (such as the data table TL1) regarding each terminal device that is a communication destination. In the data table TL1, “optimum program format” (described later) determined as described later is stored for each combination of each terminal device 50 (browser BW) and the URL of each page.

入出力部6は、MFP10に対する入力を受け付ける操作入力部6aと、各種情報の表示出力を行う表示部6bとを備えている。   The input / output unit 6 includes an operation input unit 6a that receives input to the MFP 10 and a display unit 6b that displays and outputs various types of information.

コントローラ9は、MFP10に内蔵され、MFP10を統括的に制御する制御装置である。コントローラ9は、CPUおよび各種の半導体メモリ(RAMおよびROM)等を備えるコンピュータシステムとして構成される。コントローラ9は、CPUにおいて、ROM(例えば、EEPROM)内に格納されている所定のソフトウエアプログラム(以下、単にプログラムとも称する)PG1を実行することによって、各種の処理部を実現する。なお、当該プログラムPG1は、USBメモリなどの可搬性の記録媒体、あるいはネットワークNW等を介してMFP10にインストールされるようにしてもよい。また、このプログラムPG1は、ウエブサーバプログラムであるとも表現される。   The controller 9 is a control device that is built in the MFP 10 and controls the MFP 10 in an integrated manner. The controller 9 is configured as a computer system including a CPU and various semiconductor memories (RAM and ROM). The controller 9 implements various processing units by executing a predetermined software program (hereinafter also simply referred to as a program) PG1 stored in a ROM (for example, EEPROM) in the CPU. The program PG1 may be installed in the MFP 10 via a portable recording medium such as a USB memory or a network NW. The program PG1 is also expressed as a web server program.

具体的には、図1に示すように、コントローラ9は、通信制御部11と取得部13と決定部15と生成部17とを含む各種の処理部を実現する。   Specifically, as illustrated in FIG. 1, the controller 9 implements various processing units including a communication control unit 11, an acquisition unit 13, a determination unit 15, and a generation unit 17.

通信制御部11は、端末装置50に実装されたウエブブラウザBWからのページリクエスト(HTTP(HyperText Transfer Protocol)リクエスト)RQを受信する。また、通信制御部11は、当該ページリクエストRQに応答して、指定されたウエブページ(指定URL:Uniform Resource Locator)のウエブページデータ(HTML(HyperText Markup Language)データ等)DTをウエブブラウザBWに対して送信する。すなわち、通信制御部11は、ウエブブラウザBWからのデータ要求(HTTPリクエスト)RQに対する応答動作(HTTPレスポンス)を実行する。   The communication control unit 11 receives a page request (HTTP (HyperText Transfer Protocol) request) RQ from the web browser BW installed in the terminal device 50. Further, in response to the page request RQ, the communication control unit 11 sends web page data (HTML (HyperText Markup Language) data, etc.) DT of the designated web page (designated URL: Uniform Resource Locator) to the web browser BW. Send to. That is, the communication control unit 11 executes a response operation (HTTP response) to the data request (HTTP request) RQ from the web browser BW.

このウエブページデータDTには、複数の形式のプログラムのうち、特定の形式のプログラムを実行するための記述が埋め込まれる。ウエブブラウザBWは、当該記述に基づいて、当該特定の形式のプログラムによる処理PR等を実行することができる。ここにおいて、複数の形式のプログラムは、それぞれ、ウエブページを記述するデータ(HTMLデータ等)から呼出可能な形式のプログラムである。複数の形式のプログラムとしては、たとえば、「JavaScript」(ジャバスクリプト)等のスクリプトによるプログラム、およびAdobe(アドビ)社の「Flash」(フラッシュ)などのプログラム(プラグインプログラム)等が例示される。   In this web page data DT, a description for executing a specific format program among a plurality of formats is embedded. Based on the description, the web browser BW can execute processing PR and the like by the program in the specific format. Here, the programs of a plurality of formats are programs that can be called from data (HTML data or the like) describing a web page. Examples of the programs of a plurality of formats include a program using a script such as “JavaScript” (Javascript) and a program (plug-in program) such as “Flash” (Flash) manufactured by Adobe.

取得部13は、端末装置50に実装されたウエブブラウザBW上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得する。   The acquisition unit 13 acquires each execution time required when processing is executed using each of a plurality of programs on the web browser BW installed in the terminal device 50.

決定部15は、複数の形式のプログラムの中から、当該ウエブブラウザBWに適したプログラム形式である「最適プログラム形式」を決定する。決定部15は、各実行所要時間等に基づいて「最適プログラム形式」を決定する。   The determination unit 15 determines an “optimum program format” that is a program format suitable for the web browser BW from a plurality of programs. The determination unit 15 determines an “optimum program format” based on each execution time and the like.

生成部17は、所定の処理PRを「最適プログラム形式」のプログラムを用いて実行するための記述が埋め込まれたウエブページデータDTを生成する。   The generation unit 17 generates web page data DT in which a description for executing a predetermined process PR using an “optimum program format” program is embedded.

ウエブページデータDTは通信制御部11等によって端末装置50に返信され、当該端末装置50は当該ウエブページデータDTを用いて処理PRを実行する。処理PRとしては、たとえば、画像形成装置10(ウエブサーバ)と通信して当該画像形成装置10内のジョブリスト情報を取得し、当該ジョブリスト情報を表示するための表示用データを作成する処理PR1が例示される。また、処理PRは、画像形成装置10(ウエブサーバ)と通信して当該画像形成装置10における消耗品の状態を示す情報(トナーカートリッジ使用回数情報等)を取得し、当該情報を表示する表示用データを作成する処理PR2であってもよい。さらに、処理PRは、画像形成装置10(ウエブサーバ)と通信して当該画像形成装置10の現時点での印刷設定内容情報を取得して印刷設定画面(設定変更画面)の表示用データを作成する処理PR3等であってもよい。   The web page data DT is returned to the terminal device 50 by the communication control unit 11 or the like, and the terminal device 50 executes the process PR using the web page data DT. As the process PR, for example, a process PR1 for communicating with the image forming apparatus 10 (web server) to acquire job list information in the image forming apparatus 10 and creating display data for displaying the job list information. Is exemplified. Further, the processing PR communicates with the image forming apparatus 10 (web server) to acquire information (toner cartridge usage count information, etc.) indicating the state of consumables in the image forming apparatus 10 and displays the information. The process PR2 for creating data may be used. Further, the process PR communicates with the image forming apparatus 10 (web server) to acquire the current print setting content information of the image forming apparatus 10 and create display data for the print setting screen (setting change screen). Processing PR3 etc. may be sufficient.

<1−3.端末装置50の構成>
端末装置50は、CPU等を備えるコンピュータシステムとして構成される。端末装置50は、たとえば携帯式の情報端末装置(タブレット型端末等)として構成される。なお、これに限定されず、端末装置50は、据え置き型の情報端末装置(デスクトップコンピュータ等)であってもよい。
<1-3. Configuration of Terminal Device 50>
The terminal device 50 is configured as a computer system including a CPU and the like. The terminal device 50 is configured as, for example, a portable information terminal device (tablet type terminal or the like). The terminal device 50 is not limited to this, and may be a stationary information terminal device (desktop computer or the like).

端末装置50は、図2に示すように、通信部54、操作部56およびCPU59等を備える。図2は、端末装置50の概略構成を示す機能ブロック図である。   As shown in FIG. 2, the terminal device 50 includes a communication unit 54, an operation unit 56, a CPU 59, and the like. FIG. 2 is a functional block diagram illustrating a schematic configuration of the terminal device 50.

通信部54は、ネットワーク通信により画像形成装置10等との通信等を行う処理部である。   The communication unit 54 is a processing unit that performs communication with the image forming apparatus 10 and the like through network communication.

操作部56は、たとえば、タッチスクリーンで構成される。当該タッチスクリーンは、各種の情報を表示するとともに、ユーザからの操作入力を受け付ける。   The operation unit 56 is configured by a touch screen, for example. The touch screen displays various types of information and accepts operation inputs from the user.

CPU59は、所定のプログラムPG2(具体的には、ブラウザ機能を有するアプリケーションソフトウエアプログラム)を実行することによって、各種の処理部を実現する。具体的には、図2に示すように、端末装置50のCPU59にてプログラムPG2が実行されることにより、入出力制御部61,通信制御部63、処理実行部65および処理時間計測部67を含む各種の処理部が実現される。なお、当該プログラムPG2は、USBメモリなどの可搬性の記録媒体、あるいはネットワークNW等を介して端末装置50にインストールされればよい。   The CPU 59 implements various processing units by executing a predetermined program PG2 (specifically, an application software program having a browser function). Specifically, as shown in FIG. 2, the program PG2 is executed by the CPU 59 of the terminal device 50, so that the input / output control unit 61, the communication control unit 63, the process execution unit 65, and the process time measurement unit 67 are changed. Various processing units including the above are realized. The program PG2 may be installed in the terminal device 50 via a portable recording medium such as a USB memory or a network NW.

入出力制御部61は、端末装置50の操作部56(タッチスクリーン等)に関する操作入力動作および表示出力動作を制御する。   The input / output control unit 61 controls an operation input operation and a display output operation related to the operation unit 56 (touch screen or the like) of the terminal device 50.

通信制御部63は、通信部54と協働して、画像形成装置10等とのネットワーク通信動作を制御する。   The communication control unit 63 controls network communication operation with the image forming apparatus 10 and the like in cooperation with the communication unit 54.

処理実行部65は、画像形成装置10から送信されてきたウエブページデータDTにおいて指示された処理PR等を実行する。   The process execution unit 65 executes a process PR instructed in the web page data DT transmitted from the image forming apparatus 10.

また、処理時間計測部67は、ウエブページデータDTの記述等に基づいて、処理PRの実行時間を計測する。計測された実行所要時間(計測結果情報)は、通信制御部63等によって、画像形成装置10に送信される。   Further, the processing time measuring unit 67 measures the execution time of the processing PR based on the description of the web page data DT. The measured execution time (measurement result information) is transmitted to the image forming apparatus 10 by the communication control unit 63 and the like.

ここにおいて、処理PRは、複数の形式のプログラムを用いて実行され得る。ただし、上述のように、端末装置50のウエブブラウザにおいて、いずれの形式のプログラムで当該処理PRを実行するかに依拠して、当該処理PRの処理時間(換言すれば、処理速度)が異なる。   Here, the process PR can be executed using a plurality of types of programs. However, as described above, the processing time (in other words, the processing speed) of the process PR differs depending on which type of program is used to execute the process PR in the web browser of the terminal device 50.

この実施形態においては、後述するようにして、各端末装置50のウエブブラウザに適したプログラム形式(最適プログラム形式)が決定され、当該プログラム形式のプログラムを用いて当該処理PRが実行される。これによれば、処理PRに関する処理効率を向上させることが可能である。   In this embodiment, as will be described later, a program format (optimum program format) suitable for the web browser of each terminal device 50 is determined, and the process PR is executed using a program of the program format. According to this, it is possible to improve the processing efficiency regarding the process PR.

<1−2.動作>
図3は、ウエブ(WEB)サーバ機能を有する画像形成装置(サーバとも称する)10とウエブブラウザ機能を有する端末装置(クライアントとも称する)50との間の動作を示す図である。また、図4は、画像形成装置10(サーバ側の装置)の動作を中心に示すフローチャートである。
<1-2. Operation>
FIG. 3 is a diagram illustrating an operation between an image forming apparatus (also referred to as a server) 10 having a web (WEB) server function and a terminal apparatus (also referred to as a client) 50 having a web browser function. FIG. 4 is a flowchart mainly showing the operation of the image forming apparatus 10 (server-side apparatus).

図3に示すように、端末装置50は、特定のウエブページの表示指示(ページクエストとも称する)RQを画像形成装置10に対して送出する。ここでは、画像形成装置10は、「通常モード」で動作しているものとする。   As shown in FIG. 3, the terminal device 50 sends a display instruction (also referred to as a page quest) RQ for a specific web page to the image forming apparatus 10. Here, it is assumed that the image forming apparatus 10 is operating in the “normal mode”.

画像形成装置10は、当該ページリクエストRQに応答して、当該特定のウェブページのウエブページデータ(HTMLデータ等)を準備する。より具体的には、画像形成装置10(生成部17等)は、実行実績等に応じた形式のプログラムを利用して処理PRを実行すべき旨が指示されたウエブページデータを作成する。そして、画像形成装置10は、当該ウェブページデータを端末装置50に返信する。   In response to the page request RQ, the image forming apparatus 10 prepares web page data (such as HTML data) for the specific web page. More specifically, the image forming apparatus 10 (the generation unit 17 or the like) creates web page data instructed that the process PR should be executed using a program in a format corresponding to the execution record. Then, the image forming apparatus 10 returns the web page data to the terminal device 50.

端末装置50は、受信したウエブページデータに基づいて、処理PRを実行する。また、端末装置50は、処理PRの実行に要した時間(実行所要時間)を計測し、画像形成装置10に向けて当該実行所要時間(詳細にはその情報)を画像形成装置10に送信する。画像形成装置10は、受信した実行所要時間TMを保持する。   The terminal device 50 executes the process PR based on the received web page data. Further, the terminal device 50 measures the time (execution required time) required to execute the process PR, and transmits the execution required time (specifically, information thereof) to the image forming apparatus 10. . The image forming apparatus 10 holds the received required execution time TM.

この実施形態では、図3に示すように、破線で囲まれる処理が何度か繰り返して実行される。   In this embodiment, as shown in FIG. 3, the process surrounded by a broken line is repeatedly executed several times.

具体的には、第i回目(値iは自然数)(ここでは、1回目)の処理PRの実行時には第1形式のプログラムPM1が用いられ、第j回目(値jは自然数であり、j>i)(ここでは、2回目)の処理PRの実行時には第2形式のプログラムPM2が用いられる。そして、両実行時における各処理PRの実行所要時間の大小に応じて、第k回目(値kは自然数であり、k>i、且つ、k>j)(ここでは、第3回目以降)の処理PRの実行時に用いるプログラム形式(最適プログラム形式)が決定される。各回の処理PRの実行時においては、それぞれ、対応するウエブページデータDT1,DT2,DT3が画像形成装置10から端末装置50へと送信される。なお、処理PRが第3回目以降に実行される際には、処理PRに関する実行所要時間の計測動作および当該実行所要時間の通知動作は行われない。   Specifically, when executing the i-th (value i is a natural number) (here, the first) process PR, the first form of the program PM1 is used, and the j-th (value j is a natural number, j> i) When executing the process PR (second time here), the second-format program PM2 is used. Then, the k-th time (value k is a natural number, k> i, and k> j) (here, the third and subsequent times) according to the time required for executing each process PR during both executions. A program format (optimum program format) used when executing the process PR is determined. When each process PR is executed, the corresponding web page data DT1, DT2, DT3 is transmitted from the image forming apparatus 10 to the terminal device 50, respectively. In addition, when the process PR is executed after the third time, the measurement operation for the execution required time for the process PR and the notification operation for the execution required time are not performed.

図4は、このような動作(主にサーバ側の動作)を示すフローチャートである。   FIG. 4 is a flowchart showing such an operation (mainly on the server side).

ステップS11,S12においては、特定の端末装置50のブラウザBWからのアクセスが何回目のものであるかに基づく分岐処理が行われる。当該アクセスが第1回目であると判定されると、ステップS11からステップS13に進む。当該アクセスが第2回目であると判定されると、ステップS12からステップS15に進む。また、ステップS12で当該アクセスが第3回目以降であると判定されると、ステップS17に進む。   In steps S11 and S12, a branching process is performed based on how many times the access from the browser BW of the specific terminal device 50 is performed. If it is determined that the access is the first time, the process proceeds from step S11 to step S13. If it is determined that the access is the second time, the process proceeds from step S12 to step S15. If it is determined in step S12 that the access is the third or subsequent time, the process proceeds to step S17.

(1)処理PRが第1回目に実際に実行される際には、ステップS11からステップS13に進む。ステップS13においては、生成部17は、第1形式のプログラムPM1(たとえば、「JavaScript」形式のプログラム)で所定の処理PRを実行すべき旨が記述された第1のウエブページデータDT1を生成する。詳細には、複数の形式のプログラムに対応して予め準備された複数のデータ(記述データ)の中から、第1の形式のプログラムに対応するデータが選択され、選択されたデータに基づいて第1のウエブページデータDT1が生成される。そして、通信制御部11は、第1のウエブページデータDT1を端末装置50のウエブブラウザBWに向けて送信する(図3も参照)。   (1) When the process PR is actually executed for the first time, the process proceeds from step S11 to step S13. In step S <b> 13, the generation unit 17 generates first web page data DT <b> 1 in which it is described that a predetermined process PR should be executed by a first format program PM <b> 1 (for example, a “JavaScript” format program). . Specifically, data corresponding to the first format program is selected from a plurality of data (description data) prepared in advance corresponding to the plurality of format programs, and the first data is selected based on the selected data. One web page data DT1 is generated. Then, the communication control unit 11 transmits the first web page data DT1 toward the web browser BW of the terminal device 50 (see also FIG. 3).

端末装置50は、受信したウエブページデータに基づいて、処理PRを実行するとともに、処理PRの実行所要時間を計測し、当該実行所要時間(詳細にはその情報)を画像形成装置10に送信する(図3のステップB11参照)。   The terminal device 50 executes the process PR based on the received web page data, measures the time required for executing the process PR, and transmits the time required for execution (specifically, the information) to the image forming apparatus 10. (See step B11 in FIG. 3).

画像形成装置10は、受信した実行所要時間TMを保持する。具体的には、取得部13は、第1形式のプログラムPM1による実行所要時間である第1の所要時間TM1を取得し保持する(図4のステップS14)。   The image forming apparatus 10 holds the received required execution time TM. Specifically, the acquisition unit 13 acquires and holds the first required time TM1, which is the required time for execution by the program PM1 in the first format (step S14 in FIG. 4).

(2)また、処理PRが第2回目に実際に実行される際には、ステップS12からステップS15に進む。ステップS15においては、生成部17は、第2形式のプログラムPM2(たとえば、「Flash」形式のプログラム)で所定の処理PRを実行すべき旨が記述された第2のウエブページデータDT2を生成する。詳細には、複数の形式のプログラムに対応して予め準備された複数のデータ(記述データ)の中から、第2の形式のプログラムに対応するデータが選択され、選択されたデータに基づいて第2のウエブページデータDT2が生成される。そして、通信制御部11は、第2のウエブページデータDT2を端末装置50のウエブブラウザBWに向けて送信する(図3も参照)。   (2) When the process PR is actually executed for the second time, the process proceeds from step S12 to step S15. In step S15, the generation unit 17 generates the second web page data DT2 in which it is described that the predetermined process PR should be executed by the second format program PM2 (for example, the “Flash” format program). . Specifically, data corresponding to the program in the second format is selected from a plurality of data (description data) prepared in advance corresponding to the programs in a plurality of formats, and the data based on the selected data is selected. 2 web page data DT2 is generated. Then, the communication control unit 11 transmits the second web page data DT2 to the web browser BW of the terminal device 50 (see also FIG. 3).

端末装置50は、受信したウエブページデータに基づいて、処理PRを実行するとともに、処理PRの実行所要時間を計測し、当該実行所要時間(詳細にはその情報)を画像形成装置10に送信する(図3のステップB12参照)。   The terminal device 50 executes the process PR based on the received web page data, measures the time required for executing the process PR, and transmits the time required for execution (specifically, the information) to the image forming apparatus 10. (See step B12 in FIG. 3).

画像形成装置10は、受信した実行所要時間TMを保持する。具体的には、取得部13は、第2形式のプログラムPM2による実行所要時間である第2の所要時間TM2を取得し保持する(図4のステップS16)。   The image forming apparatus 10 holds the received required execution time TM. Specifically, the acquisition unit 13 acquires and holds the second required time TM2, which is the required time for execution by the program PM2 in the second format (step S16 in FIG. 4).

(3)その後、処理PRが第3回目以降に実際に実行される際には、ステップS12からステップS17に進む。ステップS17においては、決定部15は、第1の所要時間TM1と第2の所要時間TM2とに基づいて「最適プログラム形式」を決定する。具体的には、決定部15は、2つの所要時間TM1,TM2のうち小さい方に対応する形式(比較的高速な形式)を、「最適プログラム形式」として決定する。そして、生成部17は、最適プログラム形式で所定の処理PRを実行すべき旨が記述された第3のウエブページデータDT3を生成する。ここでは、第3のウエブページデータDT3は、第1のウエブページデータDT1および第2のウエブページデータDT2のいずれか一方と同一である。   (3) Thereafter, when the process PR is actually executed after the third time, the process proceeds from step S12 to step S17. In step S17, the determination unit 15 determines the “optimum program format” based on the first required time TM1 and the second required time TM2. Specifically, the determination unit 15 determines the format (relatively high-speed format) corresponding to the smaller one of the two required times TM1 and TM2 as the “optimum program format”. Then, the generation unit 17 generates the third web page data DT3 in which it is described that the predetermined process PR should be executed in the optimum program format. Here, the third web page data DT3 is the same as one of the first web page data DT1 and the second web page data DT2.

たとえば、時間TM1が時間TM2よりも短い、すなわち、第1形式のプログラムPM1の処理速度が第2形式のプログラムPM2の処理速度よりも大きい(高速)、と判定されると、ステップS17からステップS18に進む。ステップS18では、生成部17は、第1のウエブページデータDT1と同一のデータを第3のウエブページデータとして生成する。その後、通信制御部11は、決定された第3のウエブページデータDT3(第1のウエブページデータDT1と同じデータ)を、ウエブブラウザBWからのページリクエストRQに応答して、端末装置50のウエブブラウザBWに向けて送信する。   For example, when it is determined that the time TM1 is shorter than the time TM2, that is, the processing speed of the first format program PM1 is higher (high speed) than the processing speed of the second format program PM2, step S17 to step S18. Proceed to In step S18, the generation unit 17 generates the same data as the first web page data DT1 as the third web page data. Thereafter, the communication control unit 11 sends the determined third web page data DT3 (the same data as the first web page data DT1) to the web request of the terminal device 50 in response to the page request RQ from the web browser BW. Send to browser BW.

逆に、時間TM2が時間TM1よりも短い、すなわち、第2形式のプログラムPM2の処理速度が第1形式のプログラムPM1の処理速度よりも大きい(高速)、と判定されると、ステップS17からステップS19に進む。ステップS19では、生成部17は、第2のウエブページデータDT2と同一のデータを第3のウエブページデータとして生成する。その後、通信制御部11は、決定された第3のウエブページデータDT3(第2のウエブページデータDT2と同じデータ)を、ウエブブラウザBWからのページリクエストRQに応答して、端末装置50のウエブブラウザBWに向けて送信する。   Conversely, when it is determined that the time TM2 is shorter than the time TM1, that is, the processing speed of the second format program PM2 is higher (high speed) than the processing speed of the first format program PM1, step S17 to step S17 are performed. Proceed to S19. In step S19, the generation unit 17 generates the same data as the second web page data DT2 as the third web page data. Thereafter, the communication control unit 11 sends the determined third web page data DT3 (the same data as the second web page data DT2) to the web page of the terminal device 50 in response to the page request RQ from the web browser BW. Send to browser BW.

端末装置50は、受信したウエブページデータに基づいて、処理PR等を実行する(図3のステップB13参照)。なお、処理PRが第3回目以降に行われる際には、処理PRに関する実行所要時間の計測動作を要しない。   The terminal device 50 executes processing PR and the like based on the received web page data (see step B13 in FIG. 3). In addition, when the process PR is performed after the third time, the operation for measuring the execution required time for the process PR is not required.

以上のような動作によれば、第3回目以降のウエブページアクセス時においては、複数の形式のプログラムの中から、端末装置50のウエブブラウザBWに応じた「最適プログラム形式」が、それ以前のアクセス時(第1回目および第2回目のアクセス時)における各実行所要時間TM1,TM2に基づいて決定される。そして、最適プログラム形式のプログラムを用いて所定の処理PRを実行するための記述が埋め込まれたウエブページデータDT3が生成され、当該ウエブページデータDT3がリクエスト元のウエブブラウザBWに向けて送信される。   According to the operation as described above, the “optimum program format” corresponding to the web browser BW of the terminal device 50 is selected from the programs in a plurality of formats at the time of the third and subsequent web page accesses. This is determined based on the execution required times TM1 and TM2 at the time of access (at the time of the first and second access). Then, the web page data DT3 in which the description for executing the predetermined process PR is embedded using the program of the optimum program format is generated, and the web page data DT3 is transmitted to the requesting web browser BW. .

したがって、リクエスト元装置50のウエブブラウザに適した形式(最適プログラム形式)のプログラムによって処理PRが実行されるので、端末装置50における処理PRが効率的に実行される。   Therefore, since the process PR is executed by a program in the format suitable for the web browser of the request source apparatus 50 (optimum program format), the process PR in the terminal apparatus 50 is efficiently executed.

また、「最適プログラム形式」は、処理PRの内容に依って異なることもある。そのため、上記のような動作を処理PRごとに実行することによって、最適プログラム形式が処理PRの内容(種類)ごとに決定されることが好ましい。詳細には、互いに異なる処理PRを伴う各ウエブページ(各URL)ごとに、最適プログラム形式が決定されることが好ましい。また、決定された「最適プログラム形式」は、データテーブルTL1において、各端末装置50(ブラウザBW)と各ページのURLとの組合せごとに記憶されることが好ましい。   The “optimum program format” may differ depending on the contents of the process PR. Therefore, it is preferable that the optimum program format is determined for each content (type) of the process PR by executing the above operation for each process PR. Specifically, it is preferable that the optimum program format is determined for each web page (each URL) accompanied by a different process PR. The determined “optimum program format” is preferably stored for each combination of the terminal device 50 (browser BW) and the URL of each page in the data table TL1.

ところで、近年、情報通信端末として、携帯式の情報通信端末が多用されるようになってきている。ただし、携帯式の情報通信端末の処理速度は、据え置き型の情報通信端末の処理速度よりも低速であることが多い。   By the way, in recent years, portable information communication terminals have been frequently used as information communication terminals. However, the processing speed of a portable information communication terminal is often slower than the processing speed of a stationary information communication terminal.

このような状況において、上記実施形態における端末装置50として携帯式の情報通信端末が用いられる場合には、当該端末装置50のブラウザBWに対する最適プログラム形式を用いて、端末装置50において処理PRが実行される。したがって、比較的処理能力が低い(比較的低速の)携帯式の情報通信端末においても、処理PRを効率的に実行し、処理の高速化を図ることが可能である。   In such a situation, when a portable information communication terminal is used as the terminal device 50 in the embodiment, the process PR is executed in the terminal device 50 using the optimum program format for the browser BW of the terminal device 50. Is done. Therefore, even in a portable information communication terminal having a relatively low processing capability (relatively low speed), it is possible to efficiently execute the processing PR and increase the processing speed.

<2.第2実施形態>
第2実施形態は、第1実施形態の変形例である。以下では、第1実施形態との相違点を中心に説明する。
<2. Second Embodiment>
The second embodiment is a modification of the first embodiment. Below, it demonstrates centering on difference with 1st Embodiment.

この第2実施形態においては、所定の処理PRが第i回目(値iは自然数)(たとえば1回目)に実際に実行される際に、通信制御部11は、第1形式のプログラムPM1で所定の処理PRを実行すべき旨が記述された第1のウエブページデータDT1を端末装置50のウエブブラウザBWに向けて送信する。また、取得部13は、第1形式のプログラムPM1による実行所要時間である第1の所要時間TM1を取得する。そして、決定部15は、第1の所要時間TM1が第1の基準時間TH1(たとえば100ms(ミリ秒))よりも小さい場合には、「第1形式」を最適プログラム形式として決定する。一方、第1の所要時間TM1が第1の基準時間TM1よりも大きい場合には、決定部15は、第1形式とは別の「第2形式」を最適プログラム形式として仮決定する。この「第2形式」のプログラムは、次回以降のアクセス時に利用される。決定部15は、第2の所要時間TM2(第2形式のプログラムPM2による実行所要時間)が第2の基準時間TM2よりも小さいことを条件として、「第2形式」を最適プログラム形式として確定する。   In the second embodiment, when the predetermined process PR is actually executed at the i-th time (value i is a natural number) (for example, the first time), the communication control unit 11 uses the first format program PM1 to execute the predetermined process PR. The first web page data DT1 describing that the process PR is to be executed is transmitted to the web browser BW of the terminal device 50. The acquiring unit 13 acquires a first required time TM1 that is a required time for execution by the program PM1 in the first format. Then, when the first required time TM1 is smaller than the first reference time TH1 (for example, 100 ms (milliseconds)), the determination unit 15 determines “first format” as the optimum program format. On the other hand, when the first required time TM1 is longer than the first reference time TM1, the determination unit 15 provisionally determines the “second format” different from the first format as the optimal program format. This “second format” program is used for the next and subsequent accesses. The determination unit 15 determines the “second format” as the optimum program format on condition that the second required time TM2 (time required for execution by the program PM2 in the second format) is smaller than the second reference time TM2. .

以下では、このような態様についてさらに詳細に説明する。   Below, such an aspect is demonstrated in detail.

図5は、第2実施形態に係る画像形成装置10の動作を示すフローチャートである。   FIG. 5 is a flowchart showing the operation of the image forming apparatus 10 according to the second embodiment.

図5に示すように、ステップS21,S22においては、特定の端末装置50のブラウザからのアクセスが何回目のものであるかに基づく分岐処理が行われる。当該アクセスが第1回目であると判定されると、ステップS21からステップS13に進む。当該アクセスが第2回目であると判定されると、ステップS22からステップS24に進む。また、当該アクセスが第3回目以降であると判定されると、ステップS22からステップS26に進む。   As shown in FIG. 5, in steps S <b> 21 and S <b> 22, a branching process is performed based on how many times the access from the browser of the specific terminal device 50 is. If it is determined that the access is the first time, the process proceeds from step S21 to step S13. If it is determined that the access is the second time, the process proceeds from step S22 to step S24. If it is determined that the access is from the third time onward, the process proceeds from step S22 to step S26.

(1)詳細には、通常モードにおいて処理PRが第1回目に実際に実行される際には、ステップS21からステップS13に進む。ステップS13においては、生成部17は、第1形式のプログラムPM1(たとえば、「Java」形式のプログラム)で所定の処理PRを実行すべき旨が記述された第1のウエブページデータDT1を生成する。そして、通信制御部11は、第1のウエブページデータDT1を端末装置50のウエブブラウザBWに向けて送信する。   (1) Specifically, when the process PR is actually executed for the first time in the normal mode, the process proceeds from step S21 to step S13. In step S <b> 13, the generation unit 17 generates first web page data DT <b> 1 in which it is described that a predetermined process PR should be executed by a first format program PM <b> 1 (for example, a “Java” format program). . Then, the communication control unit 11 transmits the first web page data DT1 toward the web browser BW of the terminal device 50.

端末装置50は、受信したウエブページデータに基づいて、処理PRを実行するとともに、処理PRの実行所要時間を計測し、当該実行所要時間(詳細にはその情報)を画像形成装置10に送信する。   The terminal device 50 executes the process PR based on the received web page data, measures the time required for executing the process PR, and transmits the time required for execution (specifically, the information) to the image forming apparatus 10. .

画像形成装置10は、受信した実行所要時間TMを保持する。具体的には、取得部13は、第1形式のプログラムPM1による実行所要時間である第1の所要時間TM1を取得し保持する(図5のステップS14)。   The image forming apparatus 10 holds the received required execution time TM. Specifically, the acquisition unit 13 acquires and holds the first required time TM1, which is the required time for execution by the program PM1 in the first format (step S14 in FIG. 5).

次のステップS23においては、第1の所要時間TM1と第1の基準時間TH1との比較処理が実行される。   In the next step S23, a comparison process between the first required time TM1 and the first reference time TH1 is executed.

第1の所要時間TM1が第1の基準時間TH1よりも小さい場合には、決定部15は、「第1形式」を最適プログラム形式として決定(確定)する。基準時間TH1は、処理PRの基準所要時間として予め定められた値(たとえば100ミリ秒)である。すなわち、2回目以降においても引き続き「第1形式」のプログラムを用いて処理PRを実行する旨が決定される。   When the first required time TM1 is smaller than the first reference time TH1, the determination unit 15 determines (determines) “first format” as the optimal program format. The reference time TH1 is a predetermined value (for example, 100 milliseconds) as the reference required time for the process PR. That is, it is determined that the process PR is continuously executed using the “first format” program after the second time.

一方、第1の所要時間TM1が第1の基準時間TM1よりも大きい場合には、決定部15は、「第1形式」を最適プログラム形式として決定(確定)しない。この場合には、決定部15は、「第2形式」を最適プログラム形式の候補として決定する。   On the other hand, when the first required time TM1 is longer than the first reference time TM1, the determination unit 15 does not determine (determine) the “first format” as the optimum program format. In this case, the determination unit 15 determines “second format” as a candidate for the optimum program format.

(2)また、通常モードにおいて処理PRが第2回目に実際に実行される際には、ステップS22からステップS24に進む。   (2) When the process PR is actually executed for the second time in the normal mode, the process proceeds from step S22 to step S24.

ステップS24においては、最適プログラム形式が決定(確定)されているか否か(詳細には、「第1形式」が最適プログラム形式として決定(確定)されているか否か)が判定される。   In step S24, it is determined whether or not the optimal program format has been determined (determined) (specifically, whether or not “first format” has been determined (determined) as the optimal program format).

「第1形式」が最適プログラム形式として確定されている場合には、ステップS27に進む。ステップS27においては、ステップS13と同じ処理が実行される。なお、所要時間TM1の再計測は行われない。   If the “first format” is determined as the optimum program format, the process proceeds to step S27. In step S27, the same process as step S13 is executed. The re-measurement of the required time TM1 is not performed.

「第1形式」が最適プログラム形式として確定されていない場合には、ステップS24からステップS15に進む。   If the “first format” is not determined as the optimum program format, the process proceeds from step S24 to step S15.

ステップS15においては、生成部17は、第2形式のプログラムPM2(たとえば、「Flash」形式のプログラム)で所定の処理PRを実行すべき旨が記述された第2のウエブページデータDT2を生成する。そして、通信制御部11は、第2のウエブページデータDT2を端末装置50のウエブブラウザBWに向けて送信する。   In step S15, the generation unit 17 generates the second web page data DT2 in which it is described that the predetermined process PR should be executed by the second format program PM2 (for example, the “Flash” format program). . Then, the communication control unit 11 transmits the second web page data DT2 toward the web browser BW of the terminal device 50.

端末装置50は、受信したウエブページデータに基づいて、処理PRを実行するとともに、処理PRの実行所要時間を計測し、当該実行所要時間(詳細にはその情報)を画像形成装置10に送信する。   The terminal device 50 executes the process PR based on the received web page data, measures the time required for executing the process PR, and transmits the time required for execution (specifically, the information) to the image forming apparatus 10. .

画像形成装置10は、受信した実行所要時間TMを保持する。具体的には、取得部13は、第2形式のプログラムPM2による実行所要時間である第2の所要時間TM2を取得し保持する(ステップS16)。   The image forming apparatus 10 holds the received required execution time TM. Specifically, the acquisition unit 13 acquires and holds a second required time TM2 that is a time required for execution by the program PM2 in the second format (step S16).

次のステップS25においては、第2の所要時間TM2と第2の基準時間TH2との比較処理が実行される。   In the next step S25, a comparison process between the second required time TM2 and the second reference time TH2 is executed.

第2の所要時間TM2が第2の基準時間TH2(たとえば100ミリ秒)よりも小さい場合には、決定部15は、最適プログラム形式の候補であった「第2形式」を最適プログラム形式として決定(確定)する。基準時間TH2は、処理PRの基準所要時間として予め定められた値であり、たとえば値TH1と同じ値である。すなわち、第2回目以降において「第2形式」を最適プログラム形式とする旨が決定される。   When the second required time TM2 is smaller than the second reference time TH2 (for example, 100 milliseconds), the determination unit 15 determines the “second format” that is a candidate for the optimal program format as the optimal program format. (Determine. The reference time TH2 is a value determined in advance as the reference required time for the process PR, and is, for example, the same value as the value TH1. That is, in the second and subsequent times, it is determined that the “second format” is the optimum program format.

一方、第2の所要時間TM2が第2の基準時間TM2よりも大きい場合には、決定部15は、「第2形式」をも最適プログラム形式として決定(確定)しない。   On the other hand, when the second required time TM2 is larger than the second reference time TM2, the determination unit 15 does not determine (determine) the “second format” as the optimum program format.

(3)さらに、通常モードにおいて処理PRが第3回目以降に実際に実行される際には、ステップS22からステップS26に進む。   (3) Furthermore, when the process PR is actually executed after the third time in the normal mode, the process proceeds from step S22 to step S26.

ステップS26においては、最適プログラム形式が決定(確定)されているか否か等が判定される。   In step S26, it is determined whether or not the optimum program format has been determined (confirmed).

「第1形式」が最適プログラム形式として確定されている場合には、ステップS26からステップS27に進む。ステップS27においては、ステップS13と同じ処理が実行される。なお、所要時間TM1の再計測は行われない。   If the “first format” is determined as the optimum program format, the process proceeds from step S26 to step S27. In step S27, the same process as step S13 is executed. The re-measurement of the required time TM1 is not performed.

「第2形式」が最適プログラム形式として確定されている場合には、ステップS26からステップS28に進む。ステップS28においては、ステップS15と同じ処理が実行される。なお、所要時間TM2の再計測は行われない。   When the “second format” is determined as the optimum program format, the process proceeds from step S26 to step S28. In step S28, the same process as step S15 is executed. The re-measurement of the required time TM2 is not performed.

最適プログラム形式が確定されていない場合には、ステップS26からステップS29に進む。   If the optimum program format has not been determined, the process proceeds from step S26 to step S29.

ステップS29においては、決定部15は、「第1形式」と「第2形式」との双方が当該ブラウザBWには適合しない旨を決定する。そして、エラー処理(ステップS29)が行われる。たとえば、「第1形式」と「第2形式」との双方が当該ブラウザBWには適合しない旨のメッセージを含むウエブデータページが作成されて送信される。また、この場合には、基準時間TH1,TH2の再設定要求等も併せて行われることが好ましい。   In step S29, the determination unit 15 determines that both the “first format” and the “second format” are not compatible with the browser BW. Then, error processing (step S29) is performed. For example, a web data page including a message indicating that both “first format” and “second format” are not compatible with the browser BW is created and transmitted. In this case, it is preferable that a request for resetting the reference times TH1 and TH2 is also made.

以上のような動作によれば、ウエブブラウザに応じた最適プログラム形式が、第i回目(値iは自然数)(ここでは第1回目)のアクセス時における実行所要時間TM1とその基準時間TH1との比較結果等に基づいて決定される。具体的には、第1の所要時間TM1が第1の基準時間TH1よりも小さい場合には、当該第1形式が最適プログラム形式として決定される。また、第1の所要時間TM1が第1の基準時間TM1よりも大きい場合には、第j回目のアクセス時(値jは自然数、且つ、j>i)(すなわち次回以降のアクセス時)において、第1形式とは別の第2形式のプログラムPM2による実行所要時間TM2が取得される。そして、第1の所要時間TM1が第1の基準時間TM1よりも大きく且つ第2の所要時間TM2が第2の基準時間TH2よりも小さい場合には、当該第2形式が最適プログラム形式として決定される。   According to the operation as described above, the optimum program format corresponding to the web browser is determined by the execution time TM1 and the reference time TH1 for the i-th access (value i is a natural number) (here, the first time). It is determined based on the comparison result or the like. Specifically, when the first required time TM1 is smaller than the first reference time TH1, the first format is determined as the optimum program format. Further, when the first required time TM1 is larger than the first reference time TM1, at the j-th access (value j is a natural number and j> i) (that is, at the subsequent access) The required execution time TM2 by the program PM2 in the second format different from the first format is acquired. When the first required time TM1 is larger than the first reference time TM1 and the second required time TM2 is smaller than the second reference time TH2, the second format is determined as the optimum program format. The

したがって、リクエスト元のウエブブラウザに適した形式(最適プログラム形式)のプログラムによって処理PRが実行されるので、端末装置50における処理PRが効率的に実行される。   Therefore, since the process PR is executed by a program in a format (optimal program format) suitable for the request-source web browser, the process PR in the terminal device 50 is efficiently executed.

<3.第3実施形態>
第3実施形態は、第1実施形態(および第2実施形態)の変形例である。以下では、第1実施形態との相違点を中心に説明する。
<3. Third Embodiment>
The third embodiment is a modification of the first embodiment (and the second embodiment). Below, it demonstrates centering on difference with 1st Embodiment.

上記第1実施形態においては、通常モードにおいて実際の処理PRが行われる際に、当該処理PRに関する実行所要時間が計測され、当該実行所要時間に基づいて最適プログラム形式が決定される態様が例示されている。   In the first embodiment, when the actual process PR is performed in the normal mode, the execution required time for the process PR is measured, and the optimum program format is determined based on the execution required time. ing.

この第3実施形態においては、通常モードにおいて実際の処理PRを実行する前において、テストモードにおけるテスト処理RTが実行され、当該テスト処理RTの結果に基づいて最適プログラム形式が決定される。そして、当該最適プログラム形式のプログラムを利用して、通常モードにおける実際の処理PRが実行される。   In the third embodiment, the test process RT in the test mode is executed before the actual process PR is executed in the normal mode, and the optimum program format is determined based on the result of the test process RT. Then, the actual process PR in the normal mode is executed using the program in the optimum program format.

図6は、第3実施形態に係る動作を示す図である。   FIG. 6 is a diagram illustrating an operation according to the third embodiment.

詳細には、実際の処理PRの実行(通常モードにおける処理PRの実行)に先立って、まず、テスト用のアクセス動作(テストモードにおける処理RTの実行)(図6の上側の破線矩形領域内)が実行される。たとえば、端末装置50のウエブブラウザBWから画像形成装置10内のテスト用のウエブページに対するアクセスが行われ、画像形成装置10のテストモードにおける処理RT等が実行される。   Specifically, prior to the execution of the actual process PR (execution of the process PR in the normal mode), first, the test access operation (execution of the process RT in the test mode) (within the dotted rectangular area on the upper side in FIG. 6) Is executed. For example, a test web page in the image forming apparatus 10 is accessed from the web browser BW of the terminal device 50, and processing RT in the test mode of the image forming apparatus 10 is executed.

このウエブページは、たとえば、テスト用のウエブページデータDT5(図7および図8参照)で構成される。図7は、テスト用のウエブページデータDT5の一例を示す図であり、図8は当該ウエブページデータDT5で利用されるFlash形式プログラムのソースコード(コンパイル前のデータ)を示す図である。   This web page is composed of, for example, test web page data DT5 (see FIGS. 7 and 8). FIG. 7 is a diagram showing an example of test web page data DT5, and FIG. 8 is a diagram showing source code (data before compiling) of a Flash format program used in the web page data DT5.

図7に示すように、ウエブページデータDT5においては、第1形式のプログラムPM1で第1のテスト処理RT1を実行すべき旨と第2形式のプログラムPM2で第2のテスト処理RT2を実行すべき旨とが記述されている。ここでは、第1のテスト処理RT1と第2のテスト処理RT2とは同一の処理である。   As shown in FIG. 7, in the web page data DT5, the first test process RT1 should be executed with the first format program PM1, and the second test process RT2 should be executed with the second format program PM2. The effect is described. Here, the first test process RT1 and the second test process RT2 are the same process.

より詳細には、ウエブページデータDT5の「body」部の冒頭行においては、「JavaScript」で記述された関数「inform_server1(execution1())」が呼び出されている。関数「execution1」は、図7の中央付近に記述されるように、テスト処理RT1の開始直前の時刻とテスト処理RT1の終了直後の時刻との差分値を返す関数、すなわちテスト処理RT1の実行所要時間TB1を計測して返す関数である。また、関数「inform_server1」は、引数(ここでは関数「execution1」の値=上記時間TB1)をサーバに通知する関数である。この関数「inform_server1」においては、「JavaScript」による処理が実行されることなども記載されている。なお、図7では、テスト処理RT1の詳細内容が省略されている。   More specifically, the function “inform_server1 (execution1 ())” described in “JavaScript” is called in the first line of the “body” portion of the web page data DT5. The function “execution1” is a function that returns a difference value between the time immediately before the start of the test process RT1 and the time immediately after the end of the test process RT1, as described in the vicinity of the center of FIG. It is a function that measures and returns time TB1. The function “inform_server1” is a function for notifying the server of an argument (here, the value of the function “execution1” = the time TB1). This function “inform_server1” also describes that processing by “JavaScript” is executed. In FIG. 7, the detailed contents of the test process RT1 are omitted.

このように、ウエブページデータDT5の「body」部には、第1形式のプログラムPM1(「JavaScript」によるプログラム)で第1のテスト処理RT1を実行すべき旨が記述されている。   Thus, in the “body” portion of the web page data DT5, it is described that the first test process RT1 should be executed with the program PM1 in the first format (program based on “JavaScript”).

また、ウエブページデータDT5の「body」部の冒頭行の次においては、「Flash」によるオブジェクトコード「flash_object.swf」が呼び出されている。上述のように図8は、フラッシュオブジェクト「flash_object.swf」のソースコードである。図8に示されるように、関数「execution2」は、テスト処理RT2の開始直前の時刻とテスト処理RT2の終了直後の時刻との差分値を返す関数、すなわちテスト処理RT2の実行所要時間TB2を計測して返す関数である。また、関数「inform_server2」は、引数(ここでは関数「execution2」の値=上記時間TB2)をサーバに通知する関数である。この関数「inform_server2」においては、「Flash」による処理が実行されることなども記載されている。なお、図8では、テスト処理RT2の詳細内容が省略されている。   Further, the object code “flash_object.swf” by “Flash” is called after the first line of the “body” portion of the web page data DT5. As described above, FIG. 8 shows the source code of the flash object “flash_object.swf”. As shown in FIG. 8, the function “execution2” measures a function that returns a difference value between the time immediately before the start of the test process RT2 and the time immediately after the end of the test process RT2, that is, the execution time TB2 of the test process RT2. And return the function. The function “inform_server2” is a function that notifies the server of an argument (here, the value of the function “execution2” = the time TB2). This function “inform_server2” also describes that processing by “Flash” is executed. In FIG. 8, the detailed contents of the test process RT2 are omitted.

このように、ウエブページデータDT5の「body」部には、第2形式のプログラムPM2(「Flash」によるプログラム)で第2のテスト処理RT2を実行すべき旨も記述されている。   As described above, the “body” portion of the web page data DT5 also describes that the second test process RT2 should be executed by the program PM2 of the second format (program by “Flash”).

そして、画像形成装置10の通信制御部11は、このテスト用ウエブページデータDT5をリクエスト元の端末装置50のウエブブラウザBWに向けて送信する(図6のステップS30参照)。   Then, the communication control unit 11 of the image forming apparatus 10 transmits the test web page data DT5 to the web browser BW of the requesting terminal device 50 (see step S30 in FIG. 6).

端末装置50は、受信したウエブページデータに基づいて、まず、テスト用処理RT1を実行するとともに、テスト用処理RT1の実行所要時間TB1を計測し、当該実行所要時間TB1を画像形成装置10に送信する(図6のステップB31参照)。実行所要時間TB1は、テスト用ウエブページデータDT5に従ってウエブブラウザBWで実行された第1形式のプログラムPM1によるテスト用処理RT1の実行所要時間であるとも表現される。   Based on the received web page data, the terminal device 50 first executes the test process RT1, measures the execution time TB1 of the test process RT1, and transmits the execution time TB1 to the image forming apparatus 10. (See step B31 in FIG. 6). The required execution time TB1 is also expressed as the required execution time of the test process RT1 by the program PM1 of the first format executed by the web browser BW according to the test web page data DT5.

そして、画像形成装置10の取得部13は、実行所要時間TB1を受信して取得する(ステップS31)。   Then, the acquisition unit 13 of the image forming apparatus 10 receives and acquires the required execution time TB1 (step S31).

つぎに、端末装置50は、受信したウエブページデータに基づいて、テスト用処理RT2を実行するとともに、テスト用処理RT2の実行所要時間TB2を計測し、当該実行所要時間TB2を画像形成装置10に送信する(図6のステップB32参照)。実行所要時間TB2は、テスト用ウエブページデータDT5に従ってウエブブラウザBWで実行された第2形式のプログラムPM2によるテスト用処理RT2の実行所要時間であるとも表現される。   Next, the terminal device 50 executes the test process RT2 based on the received web page data, measures the required execution time TB2 of the test process RT2, and sends the execution required time TB2 to the image forming apparatus 10. Transmit (see step B32 in FIG. 6). The required execution time TB2 is also expressed as the required execution time of the test process RT2 by the program PM2 of the second format executed by the web browser BW according to the test web page data DT5.

そして、画像形成装置10の取得部13は、実行所要時間TB2をも受信して取得する(ステップS32)。   Then, the acquisition unit 13 of the image forming apparatus 10 also receives and acquires the execution required time TB2 (step S32).

また、決定部15は、第1の所要時間TB1と第2の所要時間TB2とに基づいて最適プログラム形式を決定する(ステップS33)。   The determining unit 15 determines an optimal program format based on the first required time TB1 and the second required time TB2 (step S33).

たとえば、第1の所要時間TB1と第2の所要時間TB2とのうちの小さい方に対応する形式が「最適プログラム形式」であると判定される。   For example, it is determined that the format corresponding to the smaller one of the first required time TB1 and the second required time TB2 is the “optimum program format”.

その後、所定の処理PRが実際に実行される際には、ステップS33で決定された「最適プログラム形式のプログラム」が用いられる(ステップS40)。   Thereafter, when the predetermined process PR is actually executed, the “program in the optimum program format” determined in step S33 is used (step S40).

具体的には、端末装置50のウエブブラウザBWから画像形成装置10内の特定ページにアクセスされ、ウエブブラウザBWからのページリクエストRQが画像形成装置10により受信されると、生成部17は、「最適プログラム形式」で所定の処理PRを実行すべき旨が記述された特定のウエブページデータDT6を生成する。   Specifically, when a specific page in the image forming apparatus 10 is accessed from the web browser BW of the terminal device 50 and the page request RQ from the web browser BW is received by the image forming apparatus 10, the generating unit 17 Specific web page data DT6 describing that the predetermined process PR should be executed in the “optimum program format” is generated.

最適プログラム形式が第1形式であるとステップS33で決定されている場合には、このウエブページデータDT6は、第1形式のプログラムPM1により処理PRを実行する旨が記述されたデータとして生成される。一方、最適プログラム形式が第2形式であるとステップS33で決定されている場合には、このウエブページデータDT6は、第2形式のプログラムPM2により処理PRを実行する旨が記述されたデータとして生成される。   If it is determined in step S33 that the optimal program format is the first format, the web page data DT6 is generated as data describing that the process PR is to be executed by the program PM1 in the first format. . On the other hand, if it is determined in step S33 that the optimum program format is the second format, the web page data DT6 is generated as data describing that the process PR is executed by the program PM2 in the second format. Is done.

そして、通信制御部11は、ウエブブラウザBWからのページリクエストRQに応答して、このウエブページデータDT6を端末装置50のウエブブラウザBWに向けて送信する。   Then, in response to the page request RQ from the web browser BW, the communication control unit 11 transmits the web page data DT6 toward the web browser BW of the terminal device 50.

端末装置50は、受信したウエブページデータDT6に基づいて、処理PRを実行する。すなわち、最適プログラム形式のプログラムによって処理PRが実行される。   The terminal device 50 executes the process PR based on the received web page data DT6. That is, the process PR is executed by a program in the optimal program format.

以上のような動作によれば、ウエブブラウザに応じた最適プログラム形式が、テストモード時における実行所要時間TM1,TM2の計測結果に基づいて決定される。したがって、通常モード時においては、リクエスト元のウエブブラウザに適した形式(最適プログラム形式)のプログラムによって処理PRが実行されるので、端末装置50における処理PRが効率的に実行される。   According to the operation as described above, the optimum program format corresponding to the web browser is determined based on the measurement results of the execution required times TM1 and TM2 in the test mode. Therefore, in the normal mode, the process PR is executed by a program in a format (optimum program format) suitable for the request-source web browser, so that the process PR in the terminal device 50 is efficiently executed.

<4.その他>
以上、この発明の実施の形態について説明したが、この発明は上記説明した内容のものに限定されるものではない。
<4. Other>
Although the embodiments of the present invention have been described above, the present invention is not limited to the contents described above.

たとえば、上記第3実施形態においては、第1の所要時間TB1と第2の所要時間TB2とのうちの小さい方に対応する形式が「最適プログラム形式」として決定される場合が例示されているが、これに限定されない。   For example, in the third embodiment, the case where the format corresponding to the smaller one of the first required time TB1 and the second required time TB2 is determined as the “optimum program format” is exemplified. However, the present invention is not limited to this.

具体的には、第1の所要時間TB1と第1の基準時間TH10との比VR1を算出するとともに、第2の所要時間TB2と第2の基準時間TH20との比VR2を算出し、両値VR1,VR2の大小関係に基づいて、最適プログラム形式が決定されるようにしてもよい。第1の基準時間TH10は、第1のテスト処理RT1に関する所要時間の基準値であり、第2の基準時間TH20は、第2のテスト処理RT2に関する所要時間の基準値である。両テスト処理RT1,RT2が互いに同等の処理内容である場合には、基準時間TH10,TH20は同じ値に設定されればよい。また、テスト処理RT1の処理負荷が他方のテスト処理RT2の処理負荷よりも10倍程度大きい場合には、基準時間TH10は基準時間TH20の10倍程度の値に設定されればよい。   Specifically, the ratio VR1 between the first required time TB1 and the first reference time TH10 is calculated, and the ratio VR2 between the second required time TB2 and the second reference time TH20 is calculated. The optimal program format may be determined based on the magnitude relationship between VR1 and VR2. The first reference time TH10 is a reference value for the required time for the first test process RT1, and the second reference time TH20 is a reference value for the required time for the second test process RT2. When both test processes RT1 and RT2 have the same processing content, the reference times TH10 and TH20 may be set to the same value. When the processing load of the test process RT1 is about 10 times larger than the processing load of the other test process RT2, the reference time TH10 may be set to a value about 10 times the reference time TH20.

また、上記各実施形態等においては、端末装置50における処理PRの所要時間TM1,TM2が端末装置50側(詳細には処理時間計測部67)で算出される場合が例示されているがこれに限定されない。たとえば、第1および第2実施形態等において、端末装置50における処理PRの所要時間TM1,TM2が画像形成装置10側で算出されるようにしてもよい。より詳細には、画像形成装置10は、端末装置50への処理PRの実行開始指示の送信時刻を記憶するとともに、端末装置50からの処理完了通知の受信時刻とを記憶する。そして、画像形成装置10は、両時刻(実行開始指示の送信時刻、および処理完了通知の受信時刻)の差分を処理PRの実行所要時間として算出するようにしてもよい。   In each of the above embodiments, the case where the required times TM1 and TM2 of the processing PR in the terminal device 50 are calculated on the terminal device 50 side (specifically, the processing time measuring unit 67) is illustrated. It is not limited. For example, in the first and second embodiments, the required times TM1 and TM2 of the processing PR in the terminal device 50 may be calculated on the image forming apparatus 10 side. More specifically, the image forming apparatus 10 stores the transmission time of the execution start instruction for the processing PR to the terminal device 50 and the reception time of the processing completion notification from the terminal device 50. Then, the image forming apparatus 10 may calculate the difference between the two times (the transmission time of the execution start instruction and the reception time of the process completion notification) as the execution time of the process PR.

1 通信システム
10 画像形成装置(通信装置)
50 端末装置
BW ウエブブラウザ
DT ウエブページデータ
PR 各処理
RT テスト処理
DESCRIPTION OF SYMBOLS 1 Communication system 10 Image forming apparatus (communication apparatus)
50 Terminal device BW Web browser DT Web page data PR Each processing RT Test processing

Claims (10)

端末装置との間で通信が可能でありウエブサーバ機能を内蔵する通信装置であって、
端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得する取得手段と、
前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定する決定手段と、
所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成する生成手段と、
前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信する送信手段と、
を備えることを特徴とする通信装置。
A communication device capable of communicating with a terminal device and incorporating a web server function,
An acquisition means for acquiring each execution time required when processing is executed using each of a plurality of programs on a web browser installed in a terminal device;
A determining means for determining an optimum program format corresponding to the web browser from the plurality of formats based on each execution time;
Generating means for generating web page data in which a description for executing a predetermined process using the program of the optimum program format is embedded;
Transmitting means for transmitting the web page data in response to a page request from the web browser;
A communication apparatus comprising:
請求項1に記載の通信装置において、
前記複数の形式のプログラムは、それぞれ、ウエブページを記述するデータから呼出可能な形式のプログラムであることを特徴とする通信装置。
The communication device according to claim 1,
The plurality of types of programs are programs that can be called from data describing a web page, respectively.
請求項1または請求項2に記載の通信装置において、
前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、
前記所定の処理が第i回目(値iは自然数)に実行される際には、
前記送信手段は、前記第1形式のプログラムで前記所定の処理を実行すべき旨が記述された第1のウエブページデータを前記ウエブブラウザに向けて送信し、
前記取得手段は、前記第1形式のプログラムによる実行所要時間である第1の所要時間を取得し、
前記所定の処理が第j回目(値jは自然数)に実行される際には、
前記送信手段は、前記第2形式のプログラムで前記所定の処理を実行すべき旨が記述された第2のウエブページデータを前記ウエブブラウザに向けて送信し、
前記取得手段は、前記第2形式のプログラムによる実行所要時間である第2の所要時間を取得し、
前記所定の処理が第k回目(値kは自然数であり、k>i、且つ、k>j)に実行される際には、
前記決定手段は、前記第1の所要時間と前記第2の所要時間とに基づいて前記最適プログラム形式を決定し、
前記生成手段は、前記最適プログラム形式で前記所定の処理を実行すべき旨が記述された第3のウエブページデータを生成し、
前記送信手段は、前記ウエブブラウザからのページリクエストに応答して前記第3のウエブページデータを送信することを特徴とする通信装置。
The communication device according to claim 1 or 2,
The plurality of programs include a first program and a second program,
When the predetermined process is executed at the i-th time (value i is a natural number),
The transmission means transmits first web page data describing that the predetermined processing should be executed by the program in the first format to the web browser,
The acquisition means acquires a first required time that is an execution required time by the program of the first format,
When the predetermined process is executed at the jth time (value j is a natural number),
The transmission means transmits second web page data describing that the predetermined processing should be executed by the program in the second format to the web browser,
The acquisition means acquires a second required time that is an execution required time by the program of the second format,
When the predetermined process is executed at the k-th time (value k is a natural number, k> i and k> j),
The determining means determines the optimal program format based on the first required time and the second required time,
The generating means generates third web page data describing that the predetermined processing should be executed in the optimum program format;
The communication device transmits the third web page data in response to a page request from the web browser.
請求項1または請求項2に記載の通信装置において、
前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、
前記所定の処理が第i回目(値iは自然数)に実行される際には、
前記送信手段は、前記第1形式のプログラムで前記所定の処理を実行すべき旨が記述された第1のウエブページデータを前記ウエブブラウザに向けて送信し、
前記取得手段は、前記第1形式のプログラムによる実行所要時間である第1の所要時間を取得し、
前記決定手段は、
前記第1の所要時間が第1の基準時間よりも小さい場合には、前記第1形式を前記最適プログラム形式として決定し、
前記第1の所要時間が前記第1の基準時間よりも大きい場合には、前記第1形式とは異なる第2形式を前記最適プログラム形式の候補として決定することを特徴とする通信装置。
The communication device according to claim 1 or 2,
The plurality of programs include a first program and a second program,
When the predetermined process is executed at the i-th time (value i is a natural number),
The transmission means transmits first web page data describing that the predetermined processing should be executed by the program in the first format to the web browser,
The acquisition means acquires a first required time that is an execution required time by the program of the first format,
The determining means includes
If the first required time is less than the first reference time, the first format is determined as the optimum program format;
When the first required time is larger than the first reference time, a communication apparatus is characterized in that a second format different from the first format is determined as a candidate for the optimum program format.
請求項4に記載の通信装置において、
前記所定の処理が第j回目(値jは自然数、且つ、j>i)に実行される際において、
前記送信手段は、前記第2形式のプログラムで前記所定の処理を実行すべき旨が記述された第2のウエブページデータを前記ウエブブラウザに向けて送信し、
前記取得手段は、前記第2形式のプログラムによる実行所要時間である第2の所要時間を取得し、
前記決定手段は、前記第1の所要時間が前記第1の基準時間よりも大きく且つ前記第2の所要時間が第2の基準時間よりも小さいことを条件として前記第2形式を前記最適プログラム形式として確定することを特徴とする通信装置。
The communication device according to claim 4, wherein
When the predetermined process is executed at the j-th time (value j is a natural number and j> i),
The transmission means transmits second web page data describing that the predetermined processing should be executed by the program in the second format to the web browser,
The acquisition means acquires a second required time that is an execution required time by the program of the second format,
The determination means sets the second format as the optimum program format on the condition that the first required time is longer than the first reference time and the second required time is shorter than the second reference time. A communication apparatus characterized by being determined as
請求項1または請求項2に記載の通信装置において、
前記複数の形式のプログラムは、第1形式のプログラムと第2形式のプログラムとを含み、
前記所定の処理が実際に実行される前において、
前記送信手段は、前記第1形式のプログラムで第1のテスト処理を実行すべき旨と前記第2形式のプログラムで第2のテスト処理を実行すべき旨とが記述されたテスト用ウエブページデータを前記ウエブブラウザに向けて送信し、
前記取得手段は、
前記テスト用ウエブページデータに従って前記ウエブブラウザで実行された前記第1形式のプログラムによる実行所要時間である第1の所要時間と、
前記テスト用ウエブページデータに従って前記ウエブブラウザで実行された前記第2形式のプログラムによる実行所要時間である第2の所要時間と、
を取得し、
前記決定手段は、前記第1の所要時間と前記第2の所要時間とに基づいて前記最適プログラム形式を決定し、
前記所定の処理が実際に実行される際には、
前記生成手段は、前記最適プログラム形式で前記所定の処理を実行すべき旨が記述された特定のウエブページデータを生成し、
前記送信手段は、前記ウエブブラウザからのページリクエストに応答して前記特定のウエブページデータを送信することを特徴とする通信装置。
The communication device according to claim 1 or 2,
The plurality of programs include a first program and a second program,
Before the predetermined process is actually executed,
The transmission means includes test web page data describing that the first test program should be executed by the first format program and that the second test process should be executed by the second format program To the web browser,
The acquisition means includes
A first required time which is an execution required time by the program of the first format executed by the web browser according to the test web page data;
A second required time which is an execution required time by the program of the second format executed by the web browser according to the test web page data;
Get
The determining means determines the optimal program format based on the first required time and the second required time,
When the predetermined process is actually executed,
The generating means generates specific web page data describing that the predetermined processing should be executed in the optimum program format,
The communication device transmits the specific web page data in response to a page request from the web browser.
a)通信先装置である端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得するステップと、
b)前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定するステップと、
c)所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成するステップと、
d)前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信するステップと、
をサーバコンピュータに実行させるためのプログラム。
a) obtaining each execution time required when processing is executed using each of a plurality of programs on a web browser mounted on a terminal device which is a communication destination device;
b) determining an optimum program format corresponding to the web browser from the plurality of formats based on the respective execution times;
c) generating web page data in which a description for executing a predetermined process using the program of the optimum program format is embedded;
d) transmitting the web page data in response to a page request from the web browser;
For causing a server computer to execute
通信システムであって、
ウエブサーバ機能を内蔵する通信装置と、
前記通信装置との間で通信が可能な端末装置と、
を備え、
前記通信装置は、
前記端末装置に実装されたウエブブラウザ上で複数の形式のプログラムのそれぞれを用いて処理が実行される際の各実行所要時間を取得する取得手段と、
前記複数の形式のプログラムの中から、前記ウエブブラウザに応じた最適プログラム形式を、前記各実行所要時間に基づいて決定する決定手段と、
所定の処理を前記最適プログラム形式のプログラムを用いて実行するための記述が埋め込まれたウエブページデータを生成する生成手段と、
前記ウエブブラウザからのページリクエストに応答して前記ウエブページデータを送信する送信手段と、
を有することを特徴とする通信システム。
A communication system,
A communication device with a built-in web server function;
A terminal device capable of communicating with the communication device;
With
The communication device
Obtaining means for obtaining each execution required time when processing is executed using each of a plurality of types of programs on a web browser mounted on the terminal device;
A determining means for determining an optimum program format corresponding to the web browser from the plurality of formats based on each execution time;
Generating means for generating web page data in which a description for executing a predetermined process using the program of the optimum program format is embedded;
Transmitting means for transmitting the web page data in response to a page request from the web browser;
A communication system comprising:
請求項8に記載の通信システムにおいて、
前記通信装置は、画像形成装置であることを特徴とする通信システム。
The communication system according to claim 8,
The communication system is an image forming apparatus.
請求項8または請求項9に記載の通信システムにおいて、
前記端末装置は、携帯式端末装置であることを特徴とする通信システム。
The communication system according to claim 8 or 9,
The communication system, wherein the terminal device is a portable terminal device.
JP2011202823A 2011-09-16 2011-09-16 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM Expired - Fee Related JP5866908B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011202823A JP5866908B2 (en) 2011-09-16 2011-09-16 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011202823A JP5866908B2 (en) 2011-09-16 2011-09-16 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2013065155A JP2013065155A (en) 2013-04-11
JP5866908B2 true JP5866908B2 (en) 2016-02-24

Family

ID=48188595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011202823A Expired - Fee Related JP5866908B2 (en) 2011-09-16 2011-09-16 COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5866908B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2415066A (en) * 2004-06-09 2005-12-14 Symbian Software Ltd Selecting most suitable plug-in
JP2008276693A (en) * 2007-05-07 2008-11-13 Konica Minolta Business Technologies Inc Image forming device and program
JP2010250615A (en) * 2009-04-16 2010-11-04 Casio Computer Co Ltd Server device, client device, server-based computing system, and program

Also Published As

Publication number Publication date
JP2013065155A (en) 2013-04-11

Similar Documents

Publication Publication Date Title
US9092704B2 (en) Image forming system, image forming apparatus, and recording medium
JP2003167696A5 (en)
JP5701025B2 (en) Image processing apparatus, image processing system, control method for image processing apparatus, and program
JP5299386B2 (en) Print data generation program, terminal device, and control method of terminal device
JP2011135314A (en) Information processing system, method of controlling the same, information processing apparatus, information providing apparatus, image processing apparatus, and program
JP5041940B2 (en) Image forming system, network card, image forming apparatus, Web server processing program
JP4712639B2 (en) Network printing system, printing apparatus, print data generation apparatus, network printing method, printing method, print data generation method, and program
US20130132599A1 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium
JP5620674B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP4645833B2 (en) Image forming apparatus, image forming program, and image forming system
JP5838795B2 (en) Print data generation program, terminal device, and control method of terminal device
JP2014002631A (en) Image forming device, portable terminal, authentication system, and program
JP6095261B2 (en) Method and apparatus for using dynamic functions in client / server software interaction
JP5866908B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND PROGRAM
US8886712B2 (en) Communication device
US9311040B2 (en) System, control method for same, and image processing apparatus
JP2014049098A (en) Image forming apparatus, and control method and program of image forming apparatus
JP5800529B2 (en) Image processing apparatus, image forming apparatus control method, and program
JP2012029011A (en) Image processing device, control method of the same, and program
JP2011135135A (en) Image forming system and image forming apparatus
JP2007281802A (en) Simulation system, simulation apparatus, and control method and program of computer
JP2012080256A (en) Image processor, control method and program thereof
JP6341016B2 (en) Image forming system, image forming apparatus, and program
JP2010041401A (en) Relay device, communication relay method, its program, and relay system
US9535642B2 (en) Management system, image forming apparatus, information processing method, and storage medium

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130418

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150409

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150414

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151221

R150 Certificate of patent or registration of utility model

Ref document number: 5866908

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees