JP2018181375A - Information processing apparatus, method for controlling the same, and program - Google Patents

Information processing apparatus, method for controlling the same, and program Download PDF

Info

Publication number
JP2018181375A
JP2018181375A JP2018141585A JP2018141585A JP2018181375A JP 2018181375 A JP2018181375 A JP 2018181375A JP 2018141585 A JP2018141585 A JP 2018141585A JP 2018141585 A JP2018141585 A JP 2018141585A JP 2018181375 A JP2018181375 A JP 2018181375A
Authority
JP
Japan
Prior art keywords
screen
web browser
key
processing apparatus
information processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2018141585A
Other languages
Japanese (ja)
Inventor
康輔 中島
Kosuke Nakajima
康輔 中島
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2018141585A priority Critical patent/JP2018181375A/en
Publication of JP2018181375A publication Critical patent/JP2018181375A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Input From Keyboards Or The Like (AREA)
  • Facsimiles In General (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism that achieves, in a web application, the same operability as that of a native application that can use both a hardware key and a software key.SOLUTION: The present information processing apparatus acquires, from a server, information on a screen of a web application, the screen information including a script in which a plurality of types of processing are defined, displays the screen on an operation unit according to the acquired screen information, executes the script included in the acquired screen information, registers control of a predetermined hardware key provided in the operation unit, and when the predetermined hardware key is depressed while a screen of an application provided by the server according to the screen information is displayed on the operation unit, executes the registered control. The control of the predetermined hardware key is registered in association with a software key included in the screen displayed on the operation unit.SELECTED DRAWING: Figure 8

Description

本発明は、サーバとネットワークを介して接続され、サーバにより提供される操作画面を表示するブラウザを備える情報処理装置、その制御方法、及びプログラムに関するものである。   The present invention relates to an information processing apparatus including a browser connected to a server via a network and displaying an operation screen provided by the server, a control method thereof, and a program.

PCなどの情報処理装置がネットワーク上のWebサーバに接続され、Webサーバにより提供される操作画面を、情報処理装置が備えるWebブラウザ上に表示することが知られている。この場合、まず情報処理装置のWebブラウザが、Webサーバに対して操作画面を要求(リクエスト)する。そして、Webサーバ上のWebアプリケーションが情報処理装置からの要求に応えて、Webブラウザに操作画面を表示させるためのHTMLデータを情報処理装置に応答(レスポンス)する。情報処理装置のWebブラウザは、受信したHTMLデータを解析し、HTMLデータの記述に基づいた操作画面を表示する。更に、Webブラウザに表示された操作画面を介してユーザが指示を入力すると、入力された指示をWebブラウザがWebサーバに対して通知する。そして、この通知を受けたWebサーバ上のWebアプリケーションは、入力された指示に従って処理を実行する。   It is known that an information processing apparatus such as a PC is connected to a web server on a network, and an operation screen provided by the web server is displayed on a web browser provided in the information processing apparatus. In this case, first, the web browser of the information processing apparatus requests (requests) an operation screen from the web server. Then, in response to a request from the information processing apparatus, the web application on the web server responds to the information processing apparatus with HTML data for displaying the operation screen on the web browser. The web browser of the information processing apparatus analyzes the received HTML data and displays an operation screen based on the description of the HTML data. Furthermore, when the user inputs an instruction via the operation screen displayed on the web browser, the web browser notifies the web server of the input instruction. Then, the web application on the web server that has received the notification executes processing in accordance with the input instruction.

最近ではスキャナやプリンタを備えたMFP(Multi Function Peripheral)の中にも、上述したようなWebブラウザを備えているものがある。例えば、特許文献1には、MFPが備える各機能を利用するための操作画面を、Webサーバが提供することが提案されている。即ち、MFPのユーザは、Webブラウザ上に表示された操作画面を介して、MFPに対する指示を入力する。そして、入力された指示は、MFPのWebブラウザによってWebサーバに通知される。通知を受けたWebサーバは、ユーザから入力された指示の内容に従って、MFPに対して各種処理の実行を依頼する。そして、この依頼を受けたMFPは、依頼された処理を実行する。これにより、MFPを操作するための全メニューデータをMFP内で保持しておく必要がなくなり、またメニューデータの変更もWebサーバ上で容易に行うことができるようになる。   Recently, among MFPs (Multi Function Peripherals) equipped with a scanner and a printer, some MFPs are equipped with the above-described web browser. For example, Patent Document 1 proposes that a Web server provides an operation screen for using each function provided in the MFP. That is, the user of the MFP inputs an instruction to the MFP via the operation screen displayed on the web browser. Then, the input instruction is notified to the web server by the web browser of the MFP. The Web server that has received the notification requests the MFP to execute various processes in accordance with the content of the instruction input from the user. Then, the MFP that has received the request executes the requested processing. As a result, it is not necessary to hold all menu data for operating the MFP in the MFP, and the menu data can be easily changed on the Web server.

また、特許文献2には、MFPに搭載されたハードウェアキー(スタートキー)の入力をWebブラウザ上に表示された操作画面より受け付けて、MFPに対する読み込みや出力などの処理を実現している。これにより、Webアプリケーションであっても通常のMFPと同じ操作性を提供することが可能になる。   In Patent Document 2, input of a hardware key (start key) installed in the MFP is received from an operation screen displayed on the Web browser, and processing such as reading and output to the MFP is realized. This makes it possible to provide the same operability as a normal MFP, even for a Web application.

特開2006−127503号公報Unexamined-Japanese-Patent No. 2006-127503 特開2011−130123号公報JP 2011-130123 A

しかしながら、上記従来技術には以下に記載する問題がある。例えば上記特許文献2の技術を採用したとしても、Webアプリケーションは、MFPに予め組み込まれているアプリケーション(以下では、ネイティブアプリケーションと称する。)で使用可能なハードウェアキー(スタートキー)とソフトウェアキーの関連付けを制御できない。そのため、Webアプリケーションの操作画面の中に複数のソフトウェアキーが含まれる場合、ユーザに対して通常のネイティブアプリケーションと同じ操作性を提供することが困難であった。   However, the above prior art has the problems described below. For example, even if the technology of Patent Document 2 is adopted, the Web application is a hardware key (start key) and a software key that can be used by an application (hereinafter referred to as a native application) incorporated in advance in the MFP. Unable to control the association. Therefore, when a plurality of software keys are included in the operation screen of the Web application, it has been difficult to provide the user with the same operability as a normal native application.

本発明は、上述の問題に鑑みて行われたものであり、Webアプリケーションにおいて、ハードウェアキーとソフトウェアキーとの両方を使用可能なネイティブアプリケーションと同様の操作性を実現する仕組みを提供することを目的とする。   The present invention has been made in view of the above problems, and provides a mechanism for realizing the same operability as a native application which can use both a hardware key and a software key in a Web application. To aim.

本発明は、サーバが提供するアプリケーションを実行する情報処理装置であって、前記アプリケーションの画面情報であって、ハードウェアキーの発光部を点灯する関数を呼び出す処理が定義されたスクリプトを含む前記画面情報を、前記サーバから取得する第1取得手段と、前記第1取得手段によって取得した前記画面情報に従って操作部に画面を表示する表示制御手段と、前記第1取得手段によって取得した前記画面情報に含まれる前記スクリプトに定義された関数を呼び出すことにより、前記ハードウェアキーの発光部を点灯させる実行手段を有し、前記実行手段は、さらに、前記ハードウェアキーが押下されると、前記ハードウェアキーに対応した処理を行うことを特徴とする。   The present invention is an information processing apparatus for executing an application provided by a server, wherein the screen information of the application includes a script having a process of calling a function for lighting a light emitting unit of a hardware key. In the first acquisition means for acquiring information from the server, a display control means for displaying a screen on the operation unit according to the screen information acquired by the first acquisition means, and the screen information acquired by the first acquisition means The hardware key includes an execution unit that lights up the light emitting unit of the hardware key by calling a function defined in the script, and the execution unit further includes the hardware when the hardware key is pressed. It is characterized in that processing corresponding to the key is performed.

本発明は、Webアプリケーションにおいて、ハードウェアキーとソフトウェアキーとの両方を使用可能なネイティブアプリケーションと同様の操作性を実現する仕組みを提供できる。   The present invention can provide a mechanism for realizing the same operability in a Web application as a native application that can use both a hardware key and a software key.

MFP101とサーバ102とを含む情報処理システムの全体構成を示す図。FIG. 1 shows an overall configuration of an information processing system including an MFP 101 and a server 102. MFP101のハードウェア構成を示すブロック図。FIG. 2 is a block diagram showing the hardware configuration of the MFP 101. 操作部219の外観構成を示す図である。FIG. 6 is a diagram showing an appearance configuration of an operation unit 219. サーバ102のハードウェア構成を示すブロック図。FIG. 2 is a block diagram showing a hardware configuration of a server 102. MFP101のソフトウェア構成を示すブロック図。FIG. 2 is a block diagram showing the software configuration of the MFP 101. サーバ102のソフトウェア構成を示すブロック図。FIG. 2 is a block diagram showing a software configuration of the server 102. MFP101の操作部219に表示される画面の遷移を示す図。FIG. 6 shows transition of screens displayed on the operation unit 219 of the MFP 101. 情報処理システムで実行される処理のシーケンスを示す図。The figure which shows the sequence of the process performed with an information processing system. スキャン設定画面701のHTMLデータの一例を示す図。FIG. 6 is a view showing an example of HTML data of a scan setting screen 701. スキャン要求メッセージの一例を示す図。The figure which shows an example of a scan request message. SOAP要求メッセージの一例を示す図。The figure which shows an example of a SOAP request message. Webブラウザ500が実行するスキャン準備完了処理の手順を示すフローチャート。6 is a flowchart illustrating a procedure of scan preparation completion processing executed by the web browser 500. Webブラウザ500がスタートキー303の入力を受け付けたときに実行する処理の手順を示すフローチャート。5 is a flowchart showing a procedure of processing executed when the web browser 500 receives an input of the start key 303. Webブラウザ500がWebブラウザ500とその他の画面間で画面遷移したときに実行する処理の手順を示すフローチャート。5 is a flowchart showing a procedure of processing executed when the web browser 500 makes a screen transition between the web browser 500 and another screen. 第2の実施形態に係るMFP101のソフトウェア構成を示すブロック図。FIG. 8 is a block diagram showing the software configuration of the MFP 101 according to the second embodiment. 第2の実施形態に係る情報処理システムで実行される処理のシーケンスを示す図。The figure which shows the sequence of the process performed with the information processing system which concerns on 2nd Embodiment. 第2の実施形態に係るスキャン設定画面701のHTMLデータの一例を示す図。A figure showing an example of HTML data of scan setting screen 701 concerning a 2nd embodiment.

以下、本発明を実施するための形態について図面を用いて説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものでなく、また実施形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following embodiments do not limit the invention according to the claims, and all combinations of the features described in the embodiments are not necessarily essential to the solution means of the invention.

<第1の実施形態>
<情報処理システムの構成>
以下では、図1乃至図14を参照して、本発明の第1の実施形態について説明する。まず、図1を参照して、情報処理システムの全体構成について説明する。図1に示すように、LAN110には、MFP101と、サーバ102とが互いに通信可能に接続されている。なお、本実施形態では、情報処理システムに上記2つの装置が含まれることを前提として説明するが、本発明はこれに限定されず、複数の他のMFPや、複数の他のサーバを含んでもよい。MFP101は、Webブラウザ機能を有し、サーバ102が提供するWebアプリケーションを実行する。即ち、MFP101のWebブラウザは、サーバ102から提供される画面情報に従ってMFP101の操作部にWebアプリケーションの画面を表示する。なお、本実施形態では、情報処理装置として、MFP101を一例として説明する。本発明に適用可能な情報処理装置として、他の画像形成装置や、画像読取装置等が適用されてもよい。
First Embodiment
<Configuration of Information Processing System>
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. 1 to 14. First, the overall configuration of the information processing system will be described with reference to FIG. As shown in FIG. 1, an MFP 101 and a server 102 are communicably connected to each other on the LAN 110. Although the present embodiment will be described on the premise that the above-described two devices are included in the information processing system, the present invention is not limited to this, and may include a plurality of other MFPs and a plurality of other servers. Good. The MFP 101 has a web browser function, and executes a web application provided by the server 102. That is, the web browser of the MFP 101 displays the screen of the web application on the operation unit of the MFP 101 in accordance with the screen information provided by the server 102. In the present embodiment, the MFP 101 will be described as an example of the information processing apparatus. Other image forming apparatuses, image reading apparatuses, etc. may be applied as an information processing apparatus applicable to the present invention.

ここで、Webアプリケーションとは、サーバ102が提供するアプリケーションを示す。一方、MFP101が予めインストールしているアプリケーションをネイティブアプリケーションと称する。本実施形態では、Webアプリケーションの操作性を、できるだけネイティブアプリケーションの操作性に近づけるための仕組みを提案する。   Here, the web application indicates an application provided by the server 102. On the other hand, an application installed in advance by the MFP 101 is referred to as a native application. In this embodiment, a mechanism is proposed to make the operability of the Web application as close as possible to that of the native application.

<MFPのハードウェア構成>
次に、図2を参照して、MFP101のハードウェア構成について説明する。MFP101は、制御部210、操作部219、プリンタ220、及びスキャナ221を備える。また、制御部210は、CPU211、ROM212、RAM213、HDD214、操作部I/F215、プリンタI/F216、スキャナI/F217、及びネットワークI/F218を備える。制御部210は、MFP101全体の動作を制御する。
<Hardware Configuration of MFP>
Next, the hardware configuration of the MFP 101 will be described with reference to FIG. The MFP 101 includes a control unit 210, an operation unit 219, a printer 220, and a scanner 221. The control unit 210 also includes a CPU 211, a ROM 212, a RAM 213, an HDD 214, an operation unit I / F 215, a printer I / F 216, a scanner I / F 217, and a network I / F 218. Control unit 210 controls the overall operation of MFP 101.

CPU211は、ROM212に記憶された制御プログラムを読み出して読取制御や送信制御などの各種制御を行う。RAM213は、CPU211の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD214は、画像データや各種プログラムを記憶する。操作部I/F215は、操作部219と制御部210とを接続する。操作部219には、タッチパネル機能を有する液晶表示部やハードウェアキーなどが備えられている。また、MFP101には後述するWebブラウザ機能が備えられており、MFP101のWebブラウザは、サーバ102から受信したHTMLデータを解析し、受信したHTMLデータの記述に基づく操作画面を操作部219の液晶表示部に表示する。   The CPU 211 reads the control program stored in the ROM 212 and performs various controls such as read control and transmission control. The RAM 213 is used as a main memory of the CPU 211 and a temporary storage area such as a work area. The HDD 214 stores image data and various programs. The operation unit I / F 215 connects the operation unit 219 and the control unit 210. The operation unit 219 includes a liquid crystal display unit having a touch panel function, a hardware key, and the like. In addition, the MFP 101 is provided with a Web browser function described later, and the Web browser of the MFP 101 analyzes the HTML data received from the server 102, and displays the operation screen based on the description of the received HTML data on the liquid crystal display of the operation unit 219 Display in the department.

プリンタI/F216は、プリンタ220と制御部210とを接続する。プリンタ220で印刷すべき画像データはプリンタI/F216を介して制御部210から転送され、プリンタ220において記録媒体上に印刷される。スキャナI/F217は、スキャナ221と制御部210とを接続する。スキャナ221は、原稿上の画像を読み取って画像データを生成し、スキャナI/F217を介して制御部210に入力する。ネットワークI/F218は、制御部210(MFP101)をLAN110に接続する。ネットワークI/F218は、LAN110上の外部装置(例えば、サーバ102)に画像データや情報を送信したり、LAN110上の外部装置から各種情報を受信したりする。   The printer I / F 216 connects the printer 220 and the control unit 210. Image data to be printed by the printer 220 is transferred from the control unit 210 via the printer I / F 216 and printed by the printer 220 on a recording medium. The scanner I / F 217 connects the scanner 221 and the control unit 210. The scanner 221 reads an image on a document to generate image data, and inputs the image data to the control unit 210 via the scanner I / F 217. A network I / F 218 connects the control unit 210 (MFP 101) to the LAN 110. The network I / F 218 transmits image data and information to an external apparatus (for example, the server 102) on the LAN 110, and receives various information from the external apparatus on the LAN 110.

<操作部の構成>
次に、図3を参照して、操作部219の構成について説明する。図3に示すように、操作部219は、LCD上にタッチパネルシート302が貼られている液晶表示部301を有する。この液晶表示部301には、後述するネイティブ機能モジュールやWebブラウザが表示する操作画面及びソフトウェアキーが表示されるとともに、表示されているキーが押されると、押された位置を示す位置情報をCPU211に伝える。
<Configuration of Operation Unit>
Next, the configuration of the operation unit 219 will be described with reference to FIG. As shown in FIG. 3, the operation unit 219 includes a liquid crystal display unit 301 in which a touch panel sheet 302 is attached on an LCD. The liquid crystal display unit 301 displays a native function module to be described later, an operation screen displayed by a web browser, and a software key, and when the displayed key is pressed, position information indicating the pressed position is displayed on the CPU 211 Tell.

また、操作部219には、スタートキー303、ストップキー304、リセットキー305、ガイドキー306、トップメニューキー307、及び数値キー308の各種ハードウェアキーが設けられている。スタートキー303は、画像処理装置の処理の開始を指示するためのキーであり、スタートキー303の中央部には、LED表示部309が設けられている。LED表示部309は、LED点灯状態によってスタートキー303が使用可能な状態にあるか否かを表す。ストップキー304は、稼働中の動作を止めるためのキーである。リセットキー305は設定を初期化するときに用いられるキーである。ガイドキー306は、MFP101の使用方法を表示するためのキーである。トップメニューキー307はMFP101の機能を選択させるためのトップメニュー画面を表示するためのキーである。数値キー308は数値を入力するためのキーである。本実施形態に係るMFP101では、Webアプリケーションにおいても、上記ハードウェアキーを使用することを可能とする。   The operation unit 219 is also provided with various hardware keys such as a start key 303, a stop key 304, a reset key 305, a guide key 306, a top menu key 307, and a numerical key 308. The start key 303 is a key for instructing the start of processing of the image processing apparatus, and an LED display unit 309 is provided at the center of the start key 303. The LED display unit 309 indicates whether the start key 303 is in a usable state depending on the LED lighting state. The stop key 304 is a key for stopping the operation in operation. A reset key 305 is a key used to initialize settings. The guide key 306 is a key for displaying how to use the MFP 101. A top menu key 307 is a key for displaying a top menu screen for selecting a function of the MFP 101. A numeric key 308 is a key for inputting a numeric value. The MFP 101 according to the present embodiment makes it possible to use the hardware key even in a Web application.

<サーバのハードウェア構成>
次に、図4を参照して、サーバ102のハードウェア構成について説明する。サーバ102は、制御部410を備える。制御部410は、CPU411、ROM412、RAM413、HDD414、及びネットワークI/F415を備える。制御部410は、サーバ102全体の動作を制御する。
<Hardware configuration of server>
Next, the hardware configuration of the server 102 will be described with reference to FIG. The server 102 includes a control unit 410. The control unit 410 includes a CPU 411, a ROM 412, a RAM 413, an HDD 414, and a network I / F 415. The control unit 410 controls the overall operation of the server 102.

CPU411は、ROM412に記憶された制御プログラムを読み出して各種制御処理を実行する。RAM413は、CPU411の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD414は、画像データや各種プログラムを記憶する。ネットワークI/F415は、制御部410(サーバ102)をLAN110に接続する。ネットワークI/F415は、LAN110上の他の装置との間で各種情報を送受信する。   The CPU 411 reads the control program stored in the ROM 412 and executes various control processes. The RAM 413 is used as a main memory of the CPU 411 and a temporary storage area such as a work area. The HDD 414 stores image data and various programs. A network I / F 415 connects the control unit 410 (server 102) to the LAN 110. A network I / F 415 transmits and receives various information to and from other devices on the LAN 110.

<MFPのソフトウェア構成>
次に、図5を参照して、MFP101のソフトウェア構成について説明する。図5に示す各機能部は、MFP101が有しているCPU211が制御プログラムを実行することにより実現される。MFP101は、Webブラウザ500、HTTPサーバ510、デバイス制御部520、及びジョブ制御部530を含む。
<Software Configuration of MFP>
Next, the software configuration of the MFP 101 will be described with reference to FIG. Each functional unit illustrated in FIG. 5 is realized by the CPU 211 of the MFP 101 executing a control program. The MFP 101 includes a web browser 500, an HTTP server 510, a device control unit 520, and a job control unit 530.

Webブラウザ500は、サーバ102に対して、HTTPのプロトコルに従ってリクエスト(以下、HTTPリクエスト)を送信するとともに、そのリクエストに対するレスポンス(以下、HTTPレスポンス)を受信する。そして、受信したHTTPレスポンスを解析して、操作画面を表示したり、受信したレスポンスに含まれるJavaScript(登録商標)(スクリプト)を処理したりする。スクリプトには、処理を実行するための複数の命令が含まれる。Webブラウザ500は、JavaScriptを処理することにより、操作画面を書き換えたり、操作部219の各種ハードウェアキーからの入力を受け付けたり、デバイス制御部520へLED表示部309の点灯又は消灯を指示したりすることができる。なお、
HTTPサーバ510は、Webブラウザ500からのHTTPリクエストを受信して、指定されたWebサービスへHTTPリクエストを割り当てる。HTTPサーバ510が公開するWebサービスには、ジョブ制御部530がある。
The web browser 500 transmits a request (hereinafter, HTTP request) to the server 102 according to the HTTP protocol, and receives a response (hereinafter, HTTP response) to the request. Then, the received HTTP response is analyzed to display an operation screen, or JavaScript (registered trademark) (script) included in the received response is processed. The script contains a plurality of instructions for executing the process. The Web browser 500 processes the JavaScript to rewrite the operation screen, receive input from various hardware keys of the operation unit 219, or instructs the device control unit 520 to turn on or off the LED display unit 309. can do. Note that
The HTTP server 510 receives the HTTP request from the web browser 500, and assigns the HTTP request to the designated web service. A job control unit 530 is included in the Web service published by the HTTP server 510.

デバイス制御部520は、MFP101の各種デバイスを制御する。例えば、デバイス制御部520は、操作部I/F215を介して操作部219のLED表示部309の点灯及び消灯を制御する。デバイス制御部520は、Webブラウザ500からLED表示部309の点灯又は消灯指示を受け付けると、LED表示部309の点灯又は消灯する。なお、Webブラウザ500は、LED表示部309を点灯しているときはスタートキー303を使用可能に制御し、消灯しているときはスタートキー303を使用不可に制御する。   A device control unit 520 controls various devices of the MFP 101. For example, the device control unit 520 controls lighting and extinguishing of the LED display unit 309 of the operation unit 219 via the operation unit I / F 215. Upon receiving an instruction to turn on or turn off the LED display unit 309 from the web browser 500, the device control unit 520 turns on or off the LED display unit 309. The Web browser 500 controls the start key 303 to be usable when the LED display unit 309 is on, and controls the start key 303 to be unusable when the LED display unit 309 is off.

ジョブ制御部530は、スキャナ221による読取処理、プリンタ220による印刷処理、ネットワークI/F218を介した送信処理を含むジョブを実行する。ジョブ制御部530は、後述するWebアプリケーション610からSOAPリクエストを受信すると、SOAPリクエストを解釈してジョブを実行する。そして、ジョブ制御部530は、ジョブ実行結果を含むSOAPレスポンスをWebアプリケーション610へ送信する。また、ジョブ制御部530は、ユーザからのジョブ制御操作を受け付けるための操作画面を操作部219へ表示する。なお、本実施形態では、MFP101で実行されるジョブの一例として、原稿を読み取ってファイルを生成し、サーバ102にファイルを送信するジョブについて説明するが、他にもプリンタ220による印刷処理などを実行するジョブにも適用することができる。   The job control unit 530 executes a job including a reading process by the scanner 221, a printing process by the printer 220, and a transmission process via the network I / F 218. When the job control unit 530 receives a SOAP request from the Web application 610 described later, the job control unit 530 interprets the SOAP request and executes the job. Then, the job control unit 530 transmits a SOAP response including the job execution result to the Web application 610. Also, the job control unit 530 displays an operation screen for receiving a job control operation from the user on the operation unit 219. In the present embodiment, a job for reading a document, generating a file, and transmitting a file to the server 102 will be described as an example of a job executed by the MFP 101. However, print processing by the printer 220 is also performed. Can also be applied to

<サーバのソフトウェア構成>
次に、図6を参照して、サーバ102のソフトウェア構成について説明する。図6に示す各機能部は、サーバ102が有しているCPU411が制御プログラムを実行することにより実現される。サーバ102は、HTTPサーバ600、Webアプリケーション610、及びデータベース620を含む。
<Server software configuration>
Next, the software configuration of the server 102 will be described with reference to FIG. Each functional unit shown in FIG. 6 is realized by the CPU 411 of the server 102 executing a control program. The server 102 includes an HTTP server 600, a web application 610, and a database 620.

HTTPサーバ600は、Webブラウザ500からのHTTPリクエストを受信すると、URLで指定されたWebアプリケーション610へ、そのHTTPリクエストを割り当てる。Webアプリケーション610は、Webブラウザ500からのHTTPリクエストに応じて、Webブラウザ500で表示すべきHTMLデータを生成する。そして、Webアプリケーション610は、生成したHTMLデータをHTTPレスポンスとしてWebブラウザ500へ送信する。また、Webアプリケーション610は、ジョブ制御部530から送信されるファイルアップロード要求を処理して、要求されたデータをデータベース620に登録する。   When the HTTP server 600 receives the HTTP request from the web browser 500, it assigns the HTTP request to the web application 610 specified by the URL. The web application 610 generates HTML data to be displayed on the web browser 500 in response to the HTTP request from the web browser 500. Then, the web application 610 transmits the generated HTML data to the web browser 500 as an HTTP response. Further, the web application 610 processes the file upload request transmitted from the job control unit 530 and registers the requested data in the database 620.

<画面遷移>
次に、図7を参照して、本情報処理システムにおいて、MFP101のWebブラウザ500がスキャン処理を開始する際の画面遷移の一例について説明する。図7に含まれる画面の内、原稿読込画面703を除く各画面は、Webブラウザ500が、Webアプリケーション610が応答するHTMLデータを処理した結果、操作部219へ表示する画面である。一方、原稿読込画面703は、ジョブ制御部530が、ジョブ制御操作を受け付けるために操作部219へ表示する画面である。つまり、原稿読込画面703は、ネイティブアプリケーションが提供する画面であり、原稿読込画面703以外の画面は、Webアプリケーションが提供する画面である。
<Screen transition>
Next, an example of screen transition when the web browser 500 of the MFP 101 starts scan processing in the information processing system will be described with reference to FIG. 7. Among the screens included in FIG. 7, the screens other than the document reading screen 703 are screens displayed by the web browser 500 on the operation unit 219 as a result of processing the HTML data to which the web application 610 responds. On the other hand, the document reading screen 703 is a screen displayed by the job control unit 530 on the operation unit 219 in order to receive a job control operation. That is, the document reading screen 703 is a screen provided by the native application, and the screens other than the document reading screen 703 are screens provided by the Web application.

メニュー画面700は、MFP101の機能を利用するに当たりどの機能を選択するかを選択する画面である。この画面において機能を選択すると、選択した機能に対応した画面に遷移する。例えば、Webブラウザ500は、表示制御手段として機能し、スキャン機能を選択するためのスキャンボタンが押下されると、続いてスキャン設定画面701を操作部219へ表示する。   The menu screen 700 is a screen for selecting which function to select when using the function of the MFP 101. When a function is selected on this screen, the screen changes to a screen corresponding to the selected function. For example, the web browser 500 functions as a display control unit, and when the scan button for selecting a scan function is pressed, subsequently, the scan setting screen 701 is displayed on the operation unit 219.

スキャン設定画面701は、スキャン設定を入力するための画面である。スキャン設定画面701は、読み込みカラーを選択するためのラジオボタン、画像ファイルのフォーマットを選択するためのラジオボタン、スキャン開始を指示するためのスキャン開始ボタン及びメニュー画面700へ戻るためのキャンセルボタンを含む。読み込みカラーを選択するためのラジオボタンには、“カラー”、“グレースケール”、及び“白黒”の選択肢が含まれる。また、画像ファイルのフォーマットを選択するためのラジオボタンには、“PDF”、及び“XPS”の選択肢が含まれる。スキャン設定画面701において、スキャン開始ボタンは選択不可状態になっている。選択不可状態の場合は、図7に示すように、グレーアウトで表示される。その後、Webブラウザ500は、読み込みカラー及びフォーマットが選択されると、スキャン開始画面702を操作部219へ表示する。一方、Webブラウザ500は、キャンセルボタンが押下されると、メニュー画面700を操作部219へ表示する。   The scan setting screen 701 is a screen for inputting a scan setting. The scan setting screen 701 includes a radio button for selecting a reading color, a radio button for selecting a format of an image file, a scan start button for instructing start of scanning, and a cancel button for returning to the menu screen 700. . Radio buttons for selecting a reading color include "color", "gray scale" and "black and white" options. Also, radio buttons for selecting the format of the image file include options of “PDF” and “XPS”. In the scan setting screen 701, the scan start button is in a non-selectable state. In the case of the non-selection state, as shown in FIG. 7, it is displayed in gray. Thereafter, when the reading color and the format are selected, the Web browser 500 displays the scan start screen 702 on the operation unit 219. On the other hand, when the cancel button is pressed, the web browser 500 displays the menu screen 700 on the operation unit 219.

スキャン開始画面702は、スキャンの開始を指示するための画面である。スキャン開始画面702は、スキャン設定画面701と同様に、読み込みカラーを選択するためのラジオボタン、画像ファイルのフォーマットを選択するためのラジオボタン、スキャン開始を指示するためのスキャン開始ボタン及びメニュー画面700へ戻るためのキャンセルボタンを含む。スキャン開始画面702において、スキャン開始ボタンは選択可能状態になっている。スキャン開始ボタンが押下されると、ジョブ制御部530が原稿読込画面703を操作部219へ表示する。一方、キャンセルボタンが押下されると、Webブラウザ500はメニュー画面700を操作部219へ表示する。   The scan start screen 702 is a screen for instructing to start a scan. Like the scan setting screen 701, the scan start screen 702 includes a radio button for selecting a reading color, a radio button for selecting a format of an image file, a scan start button for instructing a scan start, and a menu screen 700. Includes a cancel button to go back to In the scan start screen 702, the scan start button is in a selectable state. When the scan start button is pressed, the job control unit 530 displays the document reading screen 703 on the operation unit 219. On the other hand, when the cancel button is pressed, the web browser 500 displays the menu screen 700 on the operation unit 219.

原稿読込画面703は、原稿読取操作を指示するための画面である。原稿読込画面703は、読込終了ボタン及び中止ボタンを含む。読込終了ボタン又は中止ボタンが押下されると、ジョブ制御部530は、Webブラウザ500の操作画面を操作部219へ表示する。この結果、Webブラウザ500は処理中画面704を操作部219へ表示する。   A document reading screen 703 is a screen for instructing a document reading operation. The document reading screen 703 includes a reading end button and a cancel button. When the read end button or the cancel button is pressed, the job control unit 530 displays an operation screen of the web browser 500 on the operation unit 219. As a result, the web browser 500 displays the in-process screen 704 on the operation unit 219.

処理中画面704は、ジョブ処理中を表す画面である。ジョブ制御部530がスキャン画像のWebアプリケーション610への送信を完了すると、Webブラウザ500は送信完了画面705を操作部219へ表示する。一方、ジョブ制御部530がスキャン処理を中止すると、Webブラウザ500は処理中止画面706を表示する。   The processing-in-progress screen 704 is a screen that represents job processing in progress. When the job control unit 530 completes transmission of the scan image to the web application 610, the web browser 500 displays a transmission completion screen 705 on the operation unit 219. On the other hand, when the job control unit 530 cancels the scan process, the Web browser 500 displays a process cancel screen 706.

送信完了画面705は、スキャン画像をWebアプリケーション610へ送信完了したことを表す画面である。送信完了画面705は、スキャン設定画面701へ遷移するための戻るボタンを含む。Webブラウザ500は、戻るボタンが押下されると、スキャン設定画面701を表示する。処理中止画面706は、スキャン処理を中止したことを表す画面である。処理中画面704は、スキャン設定画面701へ遷移するための戻るボタンを含む。Webブラウザ500は、戻るボタンが押下されると、スキャン設定画面701を操作部219へ表示する。   The transmission completion screen 705 is a screen indicating that transmission of the scan image to the Web application 610 is completed. The transmission completion screen 705 includes a back button for transitioning to the scan setting screen 701. When the back button is pressed, the web browser 500 displays a scan setting screen 701. The processing stop screen 706 is a screen indicating that the scan processing has been stopped. The processing-in-progress screen 704 includes a back button for transitioning to the scan setting screen 701. When the back button is pressed, the web browser 500 displays the scan setting screen 701 on the operation unit 219.

<処理シーケンス>
次に、図8を参照して、情報処理システムにより実行される処理シーケンスについて説明する。図8に示す処理シーケンスは、Webブラウザ500にメニュー画面700のURLが入力されてページを開くよう指示されると、S801の処理を開始する。なお、以下で説明する処理は、MFP101のCPU211、又は、サーバ102のCPU411が、ROM212、412から制御プログラムをRAM213、413に読み出して実行することによって実現される。具体的には、CPU211は、Webブラウザ500、HTTPサーバ510、デバイス制御部520、及びジョブ制御部530の処理を制御する。一方、CPU411は、Webアプリケーション610、及びHTTPサーバ600の処理を制御する。
<Processing sequence>
Next, a processing sequence executed by the information processing system will be described with reference to FIG. In the processing sequence illustrated in FIG. 8, when the URL of the menu screen 700 is input to the web browser 500 and an instruction is given to open the page, the processing of step S801 is started. The processing described below is realized by the CPU 211 of the MFP 101 or the CPU 411 of the server 102 reading out the control program from the ROM 212 or 412 to the RAM 213 or 413 and executing it. Specifically, the CPU 211 controls the processing of the web browser 500, the HTTP server 510, the device control unit 520, and the job control unit 530. On the other hand, the CPU 411 controls the processing of the web application 610 and the HTTP server 600.

S801において、Webブラウザ500は、入力されたURLに従って、メニュー画面700の取得を要求するHTTPリクエストをHTTPサーバ600へ送信する。続いて、S802において、HTTPサーバ600は、Webアプリケーション610へメニュー画面700の画面情報の取得を要求する。S803において、Webアプリケーション610は、HTTPサーバ600へメニュー画面700の画面情報を送信することによって応答する。S804において、HTTPサーバ600は、受信したメニュー画面700の画面情報を送信するためのHTTPレスポンスをWebブラウザ500へ送信する。   In step S801, the web browser 500 transmits an HTTP request for acquiring the menu screen 700 to the HTTP server 600 according to the input URL. Subsequently, in step S802, the HTTP server 600 requests the Web application 610 to acquire screen information of the menu screen 700. In step S 803, the web application 610 responds by transmitting the screen information of the menu screen 700 to the HTTP server 600. In S804, the HTTP server 600 transmits, to the Web browser 500, an HTTP response for transmitting screen information of the received menu screen 700.

Webブラウザ500は、受信したメニュー画面HTMLを解釈してメニュー画面700を表示する。Webブラウザ500は、メニュー画面700に含まれるスキャンボタンが押下されるとS805に処理を進める。S805において、Webブラウザ500は、スキャン設定画面701の取得を要求するHTTPリクエストをHTTPサーバ600へ送信する。S806において、HTTPサーバ600は、Webアプリケーション610へスキャン設定画面701の画面情報の取得を要求する。ステップ807において、Webアプリケーション610は、HTTPサーバ600へスキャン設定画面701の画面情報を送信することによって応答する。S808において、HTTPサーバ600は、スキャン設定画面701の画面情報を送信するためのHTTPレスポンスをWebブラウザ500へ送信する。   The web browser 500 interprets the received menu screen HTML and displays the menu screen 700. When the scan button included in the menu screen 700 is pressed, the web browser 500 advances the process to step S805. In step S805, the web browser 500 transmits an HTTP request requesting acquisition of the scan setting screen 701 to the HTTP server 600. In step S806, the HTTP server 600 requests the Web application 610 to acquire screen information of the scan setting screen 701. In step 807, the Web application 610 responds by transmitting the screen information of the scan setting screen 701 to the HTTP server 600. In step S808, the HTTP server 600 transmits, to the web browser 500, an HTTP response for transmitting screen information of the scan setting screen 701.

図9は、Webアプリケーション610が送信するスキャン設定画面701の画面情報を示すHTMLデータ(以下、スキャン設定画面HTML900と称する。)の一例を示す。スキャン設定画面HTML900は、head部にデバイス制御JavaScript(スクリプト)910、及びスキャン設定確認部920を含み、body部にスキャン設定フォーム930を含む。   FIG. 9 illustrates an example of HTML data (hereinafter, referred to as a scan setting screen HTML 900) indicating screen information of the scan setting screen 701 transmitted by the Web application 610. The scan setting screen HTML 900 includes a device control JavaScript (script) 910 and a scan setting confirmation unit 920 in the head portion, and a scan setting form 930 in the body portion.

デバイス制御JavaScript910には、スキャン準備完了を指示するメソッドである“Scan.ready”関数が定義されている。このような関数には、処理を実行するための命令が定義されている。具体的には、Webブラウザ500は、“Scan.ready”関数を呼び出すと、スタートキー303の入力を受け付けて、更にデバイス制御部520へLED表示部309の点灯を指示する。“Scan.ready”関数の内部処理の詳細については、図12乃至図14に記載のフローチャートを用いて後述する。また、デバイス制御JavaScript910は外部ファイル参照されている。したがって、Webブラウザ500は、スキャン設定画面HTML900を受信すると、デバイス制御JavaScript910をHTTPサーバ600より取得する。   In the device control JavaScript 910, a “Scan.ready” function is defined, which is a method for instructing scan preparation completion. In such functions, instructions for executing processing are defined. Specifically, when the web browser 500 calls the “Scan. Ready” function, the web browser 500 receives an input of the start key 303, and instructs the device control unit 520 to turn on the LED display unit 309. Details of the internal processing of the “Scan. Ready” function will be described later using the flowcharts shown in FIG. 12 to FIG. Also, the device control JavaScript 910 is referred to as an external file. Therefore, when the web browser 500 receives the scan setting screen HTML 900, the web browser 500 acquires the device control JavaScript 910 from the HTTP server 600.

スキャン設定確認部920には、スキャン設定画面701において読み込みカラー及びフォーマットが選択されている場合に、Webブラウザ500がスキャン開始画面702を表示してLEDを点灯するための処理が記述されている。具体的には、読み込みカラー又はフォーマットが選択されると、Webブラウザ500は“selectColor”関数又は“selectFormat”関数を呼び出す。更にWebブラウザ500は“selectColor”関数又は“selectFormat”関数から“enable”関数を呼び出す。“enable”関数では、読み込みカラー及びフォーマットの両方が設定されている場合、Webブラウザ500がスキャン設定画面701のメッセージを“スキャンできます”に設定し、かつスキャン開始ボタンの“disabled”属性を“false”に設定する。この結果、スキャン設定画面701はスキャン開始画面702へ変更される。更に、Webブラウザ500は、“Scan.ready”関数を呼び出す。“Scan.ready”関数の第1引数“start”はスタートキー303と関連付けるボタンIDを表し、第2引数“true”はLED表示部309を点灯することを表す。Webブラウザ500は、“Scan.ready”関数を処理した結果、スタートキー303の入力を受け付けるとスタートボタンを押下するように関連付け、かつLED表示部309を点灯するようデバイス制御部520へ指示する。   The scan setting confirmation unit 920 describes a process for the web browser 500 to display the scan start screen 702 and light the LED when the reading color and the format are selected on the scan setting screen 701. Specifically, when the reading color or format is selected, the web browser 500 calls the "selectColor" function or the "selectFormat" function. Furthermore, the web browser 500 calls the "enable" function from the "selectColor" function or the "selectFormat" function. In the “enable” function, if both the reading color and the format are set, the Web browser 500 sets the message on the scan setting screen 701 to “scan”, and the “disabled” attribute of the scan start button is “ Set to false. As a result, the scan setting screen 701 is changed to the scan start screen 702. Furthermore, the web browser 500 calls the "Scan. Ready" function. The first argument "start" of the "Scan. Ready" function represents a button ID associated with the start key 303, and the second argument "true" represents that the LED display unit 309 is turned on. As a result of processing the “Scan. Ready” function, the web browser 500 associates the press of the start button 303 with the start button 303 and instructs the device control unit 520 to light the LED display unit 309.

スキャン設定フォーム930には、読み込みカラー及びフォーマットを選択してWebアプリケーション610へスキャン開始を要求するためのフォームが記述されている。具体的には、読み込みカラーを選択するためのラジオボタン“color”、フォーマットを選択するためのラジオボタン“format”、スキャン開始を指示するsubmitボタン“start”及びキャンセルを指示するsubmitボタン“cancel”が記述されている。Webブラウザ500は、ラジオボタン“color”が選択されると、スキャン設定確認部920で定義されている“selectColor”関数を呼び出す。また、Webブラウザ500は、ラジオボタン“format”が選択されると、スキャン設定確認部920で定義されている“selectFormat”関数を呼び出す。そしてWebブラウザ500は、submitボタン“start”又は“cancel”が押下されると、ラジオボタン及びsubmitボタンの値をWebアプリケーション610へ送信する。   The scan setting form 930 describes a form for selecting a reading color and format and requesting the Web application 610 to start scanning. Specifically, a radio button "color" for selecting a reading color, a radio button "format" for selecting a format, a submit button "start" instructing start of scanning, and a submit button "cancel" instructing cancellation Is described. When the radio button "color" is selected, the web browser 500 calls the "selectColor" function defined by the scan setting confirmation unit 920. In addition, when the radio button “format” is selected, the web browser 500 calls the “selectFormat” function defined by the scan setting confirmation unit 920. When the submit button “start” or “cancel” is pressed, the web browser 500 transmits the values of the radio button and the submit button to the web application 610.

図8のフローチャートの説明に戻る。S809において、Webブラウザ500は、デバイス制御JavaScript910の取得を要求するHTTPリクエストをHTTPサーバ600へ送信する。S810において、HTTPサーバ600は、デバイス制御JavaScript910の取得をWebアプリケーション610へ要求する。S811において、Webアプリケーション610は、デバイス制御JavaScript910をHTTPサーバ600へ送信することによって応答する。S812において、HTTPサーバ510は、デバイス制御JavaScript910を含むHTTPレスポンスをWebブラウザ500へ送信する。   It returns to description of the flowchart of FIG. In step S809, the web browser 500 transmits an HTTP request for acquiring the device control JavaScript 910 to the HTTP server 600. In S810, the HTTP server 600 requests the Web application 610 to acquire the device control JavaScript 910. In S811, the web application 610 responds by sending a device control JavaScript 910 to the HTTP server 600. In step S812, the HTTP server 510 transmits an HTTP response including the device control JavaScript 910 to the web browser 500.

Webブラウザ500は、スキャン設定画面701のカラー読み込み設定及びフォーマット設定が選択されると、S813の処理を実行する。S813において、Webブラウザ500は、スキャン設定確認部920に記述されたJavaScriptを処理して、スキャン開始画面702を操作部219に表示する。S814において、Webブラウザ500は、デバイス制御JavaScript910に定義された“Scan.ready”関数を処理した結果、デバイス制御部520へLED表示部309の点灯を指示する。デバイス制御部520は、スタートキー303のLED表示部309を点灯させる。   When the color reading setting and the format setting of the scan setting screen 701 are selected, the web browser 500 executes the processing of S813. In step S813, the web browser 500 processes the JavaScript described in the scan setting confirmation unit 920, and displays the scan start screen 702 on the operation unit 219. In step S 814, the web browser 500 instructs the device control unit 520 to turn on the LED display unit 309 as a result of processing the “Scan.ready” function defined in the device control JavaScript 910. The device control unit 520 turns on the LED display unit 309 of the start key 303.

その後、Webブラウザ500は、スタートキー303の入力を受け付けると、S815の処理を実行する。S815において、Webブラウザ500は、スキャン開始画面702のスキャン設定フォーム930のsubmitボタン“start”が押下されたものとしてフォームをsubmitする。さらに、S816において、Webブラウザ500は、スキャン設定フォーム930をsubmitした結果、スキャン開始を要求するHTTPリクエストをHTTPサーバ600へ送信する。図10は、スキャン開始を要求するHTTPリクエストの一例を示す。図10の場合、読み込みカラーに“fullcolor”、生成する画像ファイルのフォーマットに“pdf”を指定してスキャンを開始することを表している。   Thereafter, when the web browser 500 receives the input of the start key 303, the processing of step S815 is executed. In step S815, the web browser 500 submits the form on the assumption that the submit button “start” of the scan setting form 930 of the scan start screen 702 is pressed. Furthermore, in step S816, the web browser 500 transmits an HTTP request requesting start of scanning to the HTTP server 600 as a result of submitting the scan setting form 930. FIG. 10 shows an example of an HTTP request for requesting a scan start. In the case of FIG. 10, it indicates that the scanning is started by designating “fullcolor” as the reading color and “pdf” as the format of the image file to be generated.

次に、S817において、HTTPサーバ600は、Webアプリケーション610へスキャン開始を要求する。S818において、Webアプリケーション610は、スキャン開始を要求するSOAPリクエストをMFP101のHTTPサーバ510へ送信する。図11は、S818でWebアプリケーション610が送信するSOAPリクエストの一例を示す。具体的には、原稿をスキャンしPDFファイルに変換後、Webアプリケーション610へ送信することを指示している。スキャン設定には解像度300×300及びフルカラーを指定し、文書設定にはPDFフォーマットを指定し、送信設定にはホスト名“xxx.yyy.zzz”及びパス名“upload/test”を指定している。   Next, in step S817, the HTTP server 600 requests the web application 610 to start scanning. In step S 818, the web application 610 transmits a SOAP request requesting scan start to the HTTP server 510 of the MFP 101. FIG. 11 illustrates an example of the SOAP request transmitted by the Web application 610 in S818. Specifically, the document is scanned, converted into a PDF file, and instructed to be sent to the Web application 610. Specify 300 × 300 resolution and full color for scan setting, specify PDF format for document setting, and specify host name “xxx.yyy.zzz” and path name “upload / test” for transmission setting .

次に、S819において、HTTPサーバ510は、ジョブ制御部530へスキャンジョブの生成を要求する。ジョブ制御部530は、SOAPリクエストを解釈すると、スキャンジョブを生成する。S820において、ジョブ制御部530は、原稿読込画面703を操作部219へ表示する。S821において、ジョブ制御部530は、HTTPサーバ600へジョブ生成成功を表すSOAPレスポンスを送信することにより応答する。S822において、HTTPサーバ510は、ジョブ生成成功を表すSOAPレスポンスをWebアプリケーション610へ送信する。   Next, in step S819, the HTTP server 510 requests the job control unit 530 to generate a scan job. When the job control unit 530 interprets the SOAP request, the job control unit 530 generates a scan job. In step S820, the job control unit 530 displays the document reading screen 703 on the operation unit 219. In step S <b> 821, the job control unit 530 responds by transmitting a SOAP response indicating success in job generation to the HTTP server 600. In step S822, the HTTP server 510 transmits a SOAP response representing success in job generation to the web application 610.

S823において、Webアプリケーション610は、HTTPサーバ600へ処理中画面704の画面情報を送信する。続いて、S824において、HTTPサーバ600は、処理中画面704の画面情報を含むHTTPレスポンスをWebブラウザ500へ送信する。このとき、S820の処理によって操作部219には原稿読込画面703が表示されており、処理中画面704は表示されていない。   In step S823, the web application 610 transmits the screen information of the processing-in-progress screen 704 to the HTTP server 600. Subsequently, in step S824, the HTTP server 600 transmits, to the web browser 500, an HTTP response including the screen information of the in-process screen 704. At this time, the document reading screen 703 is displayed on the operation unit 219 by the process of S820, and the in-process screen 704 is not displayed.

ジョブ制御部530は、原稿読込画面703の読込終了ボタンが押下されると原稿の読み込みを終了し、S825の処理を実行する。S825において、ジョブ制御部530がLED表示部309に消灯を指示する。さらに、S826において、ジョブ制御部530は、Webブラウザ500を操作部219に表示する。この結果、操作部219には、S824で取得した情報に基づいて処理中画面704が表示される。   When the reading end button of the document reading screen 703 is pressed, the job control unit 530 ends reading of the document, and executes the processing of S825. In step S825, the job control unit 530 instructs the LED display unit 309 to turn off. Further, in step S826, the job control unit 530 causes the web browser 500 to be displayed on the operation unit 219. As a result, the in-process screen 704 is displayed on the operation unit 219 based on the information acquired in S824.

S827において、Webブラウザ500は、ジョブ結果を取得するためのHTTPリクエストをHTTPサーバ600へ送信する。具体的には、処理中画面HTMLには、Webアプリケーション610へHTTPリクエストを繰り返し送信する処理がJavaScriptで記述されている。Webブラウザ500は、JavaScriptを処理することによって、ジョブ完了応答を受信するまで繰り返しジョブ結果取得要求を送信する。   In step S827, the web browser 500 transmits an HTTP request for acquiring a job result to the HTTP server 600. Specifically, in the in-process screen HTML, a process of repeatedly transmitting an HTTP request to the Web application 610 is described in JavaScript. The web browser 500 repeatedly transmits a job result acquisition request until it receives a job completion response by processing JavaScript.

S828において、HTTPサーバ600は、ジョブ結果の取得をWebアプリケーション610へ要求する。S829において、Webアプリケーション610は、ジョブがまだ完了していなければ、ジョブ処理中をHTTPサーバ600へ応答する。S830において、HTTPサーバ600は、ジョブ処理中を示すHTTPレスポンスをWebブラウザ500へ送信する。Webブラウザ500は、S827の処理を、ジョブ完了応答を受信するまで繰り返し実行する。したがって、S830では、処理中を示す応答を受信しているため、その後も定期的にS827の処理を繰り返し実行する。   In step S828, the HTTP server 600 requests the Web application 610 to acquire a job result. In step S829, if the job is not yet completed, the web application 610 responds to the HTTP server 600 during job processing. In step S830, the HTTP server 600 transmits, to the web browser 500, an HTTP response indicating that job processing is in progress. The web browser 500 repeatedly executes the process of S827 until a job completion response is received. Therefore, in S830, since the response indicating that the process is in progress is received, the process of S827 is periodically repeated thereafter.

ジョブ制御部530は、原稿の読み込みを終了して画像ファイルを生成すると、S831の処理を開始する。S831において、ジョブ制御部530は、画像ファイルを含むHTTPリクエストをHTTPサーバ600へ送信する。S832において、HTTPサーバ600は、スキャン画像をWebアプリケーション610へ送信する。S833において、Webアプリケーション610は、スキャン画像送信成功をHTTPサーバ600へ送信することによって応答する。S834において、HTTPサーバ600は、スキャン画像送信成功を示すHTTPレスポンスをジョブ制御部530へ送信する。   When the reading of the original is completed and the image file is generated, the job control unit 530 starts the process of S831. In step S 831, the job control unit 530 transmits an HTTP request including an image file to the HTTP server 600. In step S832, the HTTP server 600 transmits the scan image to the web application 610. In S833, the web application 610 responds by transmitting a scan image transmission success to the HTTP server 600. In step S834, the HTTP server 600 transmits, to the job control unit 530, an HTTP response indicating success in scanning image transmission.

また、ジョブ制御部530は、スキャン画像を送信すると、S835の処理を実行する。S835において、ジョブ制御部530は、ジョブ完了を通知するためのHTTPリクエストをHTTPサーバ600へ送信する。S836において、HTTPサーバ600は、ジョブ完了をWebアプリケーション610へ通知する。S837において、Webアプリケーション610は、ジョブ完了通知成功をHTTPサーバ600へ送信することによって応答する。S838において、HTTPサーバ600は、ジョブ完了通知成功を応答するためのHTTPレスポンスをジョブ制御部530へ送信する。   In addition, when transmitting the scan image, the job control unit 530 executes the processing of S 835. In step S 835, the job control unit 530 transmits an HTTP request for notifying of job completion to the HTTP server 600. In step S836, the HTTP server 600 notifies the web application 610 of job completion. In S837, the web application 610 responds by transmitting a job completion notification success to the HTTP server 600. In step S838, the HTTP server 600 transmits, to the job control unit 530, an HTTP response for responding to the job completion notification success.

S839乃至S842の処理は、S827からS830の処理と同様に、Webブラウザ500が処理中画面HTMLに記述されたJavaScriptを処理することによって実行される。S839において、Webブラウザ500は、ジョブ結果を取得するためのHTTPリクエストをHTTPサーバ600へ送信する。S840において、HTTPサーバ600は、ジョブ結果の取得をWebアプリケーション610へ要求する。S841において、Webアプリケーション610は、HTTPサーバ600へジョブ完了を送信することによって応答する。S842において、HTTPサーバ600は、Webブラウザ500へジョブ完了を応答するHTTPレスポンスを送信する。   The processes of S839 to S842 are executed by the Web browser 500 processing JavaScript described in the in-process screen HTML, similarly to the processes of S827 to S830. In step S839, the web browser 500 transmits an HTTP request for acquiring a job result to the HTTP server 600. In S 840, the HTTP server 600 requests the Web application 610 to acquire a job result. In S 841, the web application 610 responds by sending a job completion to the HTTP server 600. In step S842, the HTTP server 600 transmits, to the web browser 500, an HTTP response for responding to job completion.

Webブラウザ500は、ジョブ完了を受信すると、S843の処理を実行する。S843において、Webブラウザ500は、処理中画面HTMLに記述されたJavaScriptを処理することによって、送信完了画面705を表示する。   When the web browser 500 receives the job completion, it executes the processing of S843. In step S843, the web browser 500 displays the transmission completion screen 705 by processing the JavaScript described in the in-process screen HTML.

<処理手順>
続いて、図12乃至図14に示すフローチャートを参照して、本実施形態におけるWebブラウザ500の処理手順について説明する。以下で説明する処理は、CPU211がROM212に記憶された制御プログラムをRAM213に読み出して実行することにより実現される。図12は、Webブラウザ500がスキャン準備完了を指示する“Scan.ready”関数を実行する処理手順を示す。具体的には、スキャン開始画面702において読み込みカラー及びフォーマットが指定されると、S1201の処理を開始する。
<Processing procedure>
Subsequently, the processing procedure of the web browser 500 in the present embodiment will be described with reference to the flowcharts illustrated in FIGS. 12 to 14. The processing described below is realized by the CPU 211 reading out the control program stored in the ROM 212 to the RAM 213 and executing it. FIG. 12 shows a processing procedure in which the web browser 500 executes a “Scan.ready” function that instructs scan preparation completion. Specifically, when the reading color and the format are designated on the scan start screen 702, the processing of S1201 is started.

S1201において、Webブラウザ500は、LED表示部309を点灯するか否かを判定する。具体的には、“Scan.ready”関数の第2引数で“true”が指定されていればLED表示部309を点灯すると判定し、“false”が指定されていればLED表示部309を消灯すると判定する。LED表示部309を点灯すると判定した場合はS1202の処理へ進み、消灯すると判定した場合S1212の処理へ進む。   In step S1201, the web browser 500 determines whether to turn on the LED display unit 309. Specifically, if "true" is specified in the second argument of the "Scan. Ready" function, it is determined that the LED display unit 309 is turned on, and if "false" is specified, the LED display unit 309 is turned off. It will be determined. If it is determined that the LED display unit 309 is to be turned on, the process proceeds to the process of S1202, and if it is determined that the light is off, the process proceeds to the process of S1212.

S1202において、Webブラウザ500は、スキャン設定画面701の中から指定されたボタンを探索する。具体的には、“Scan.ready”関数の第1引数で指定された“start”をID属性に持つ要素、即ち、スタートボタンを探索する。続いて、S1203において、Webブラウザ500は、スタートボタンにclickイベントリスナを登録する。この結果、Webブラウザ500は、スキャン設定画面701においてスタートボタンが押下されると、clickイベントを発行し、スタートボタンへ通知する。そして、Webブラウザ500は、登録されたリスナ処理を実行する。clickイベントリスナの処理の内容については図13を用いて後述する。その後、Webブラウザ500は、S1204の処理へ進む。   In step S1202, the web browser 500 searches for a designated button from the scan setting screen 701. Specifically, an element having an ID attribute “start” specified by the first argument of the “Scan. Ready” function, ie, a start button is searched. Subsequently, in step S1203, the web browser 500 registers the click event listener in the start button. As a result, when the start button is pressed on the scan setting screen 701, the web browser 500 issues a click event and notifies the start button. Then, the web browser 500 executes the registered listener process. The contents of the process of the click event listener will be described later with reference to FIG. Thereafter, the web browser 500 proceeds to the process of S1204.

S1204において、Webブラウザ500は、スタートボタンにkeyイベントリスナを登録する。この結果、Webブラウザ500は、スタートキー303の入力を受け付けると、keyイベントを発行しスタートボタンへ通知する。そして、Webブラウザ500は登録されたリスナ処理を実行する。keyイベントリスナの処理の内容については図13を用いて後述する。その後、Webブラウザ500は、S1205の処理へ進む。   In step S1204, the web browser 500 registers a key event listener in the start button. As a result, when the Web browser 500 receives the input of the start key 303, it issues a key event and notifies the start button. Then, the web browser 500 executes the registered listener process. The contents of the processing of the key event listener will be described later with reference to FIG. Thereafter, the web browser 500 proceeds to the process of S1205.

S1205において、Webブラウザ500は、ウィンドウにfocusイベントリスナを登録する。この結果、Webブラウザ500は、Webブラウザ500が操作部219へ表示されると、focusイベントを発行しウィンドウへ通知する。そして、Webブラウザ500は登録されたリスナ処理を実行する。focusイベントリスナの処理の内容については図14を用いて後述する。その後、Webブラウザ500は、S1206の処理へ進む。   In step S1205, the web browser 500 registers a focus event listener in the window. As a result, when the web browser 500 is displayed on the operation unit 219, the web browser 500 issues a focus event to notify the window. Then, the web browser 500 executes the registered listener process. The contents of the process of the focus event listener will be described later with reference to FIG. Thereafter, the web browser 500 proceeds to the process of S1206.

S1206において、Webブラウザ500は、ウィンドウにblurイベントリスナを登録する。Webブラウザ500は、Webブラウザ500以外の画面が操作部219へ表示されると、blurイベントを発行しウィンドウへ通知する。そして、Webブラウザ500は登録されたリスナ処理を実行する。blurイベントリスナの処理の内容については図14を用いて後述する。その後、Webブラウザ500は、S1207の処理へ進む。   In step S1206, the web browser 500 registers a blur event listener in the window. When a screen other than the web browser 500 is displayed on the operation unit 219, the web browser 500 issues a blur event to notify the window. Then, the web browser 500 executes the registered listener process. The contents of the processing of the blur event listener will be described later with reference to FIG. Thereafter, the web browser 500 proceeds to the process of S1207.

S1207において、Webブラウザ500は、ウィンドウにunloadイベントリスナを登録する。Webブラウザ500は、異なるURLのページを開くときやページを更新するときにドキュメントをアンロードする。Webブラウザ500は、ドキュメントをアンロードするときに、unloadイベントを発行しウィンドウへ通知する。そして、Webブラウザ500は登録されたリスナ処理を実行する。unloadイベントリスナの処理の内容については図13を用いて後述する。その後、Webブラウザ500は、S1208の処理へ進む。   In step S1207, the web browser 500 registers an unload event listener in the window. The web browser 500 unloads a document when opening a page of a different URL or updating a page. When the web browser 500 unloads a document, it issues an unload event to notify the window. Then, the web browser 500 executes the registered listener process. The contents of the process of the unload event listener will be described later with reference to FIG. Thereafter, the web browser 500 proceeds to the process of S1208.

S1208において、Webブラウザ500は、デバイス制御部520にLED表示部309の点灯を指示し、処理をS1209に進める。一方、S1201で消灯と判定した場合、S1212において、Webブラウザ500は、デバイス制御部520にLED表示部309の消灯を指示し、処理をS1209に進める。   In step S1208, the web browser 500 instructs the device control unit 520 to turn on the LED display unit 309, and the process advances to step S1209. On the other hand, if it is determined that the light is turned off in S1201, the web browser 500 instructs the device control unit 520 to turn off the LED display unit 309 in S1212, and advances the process to S1209.

S1209において、Webブラウザ500は、RAM213又はHDD214に、LED表示部309の点灯状態を記憶する。具体的には、S1208でLED表示部309を点灯した場合は、LEDを点灯していることを記憶する。一方、S1209でLED表示部309を消灯した場合は、LEDを消灯していることを記憶する。Webブラウザ500は、S1209の処理を終了するとスキャン準備完了処理を終了する。   In step S1209, the web browser 500 stores the lighting state of the LED display unit 309 in the RAM 213 or the HDD 214. Specifically, when the LED display unit 309 is turned on in S1208, the fact that the LED is turned on is stored. On the other hand, when the LED display unit 309 is turned off in S1209, the fact that the LED is turned off is stored. When the web browser 500 ends the process of S1209, the web browser 500 ends the scan preparation completion process.

次に、図13及び図14のフローチャート1300乃至1320及び1400乃至1410を参照して、Webブラウザ500の処理手順について説明する。各フローチャートは、S1203乃至S1207で登録した処理を示す。以下で説明する処理は、CPU211がROM212に記憶された制御プログラムをRAM213に読み出して実行することにより実現される。まず、フローチャート1300を参照して、Webブラウザ500がスタートキー303の入力を受け付けたときの処理手順について説明する。Webブラウザ500は、keyイベントが通知されると、S1301の処理を開始する。   Next, the processing procedure of the web browser 500 will be described with reference to flowcharts 1300 to 1320 and 1400 to 1410 of FIGS. 13 and 14. Each flowchart shows the process registered in S1203 to S1207. The processing described below is realized by the CPU 211 reading out the control program stored in the ROM 212 to the RAM 213 and executing it. First, a processing procedure when the web browser 500 receives an input of the start key 303 will be described with reference to the flowchart 1300. When the key event is notified, the web browser 500 starts the process of S1301.

S1301において、Webブラウザ500は、キーコードがスタートキーか否かを判定する。キーコードがスタートキーであればS1302の処理へ進み、スタートキー以外のハードウェアキーであれば、処理を終了する。S1302において、Webブラウザ500は、スタートキーに関連付けられたスタートボタンにclickイベントを発行して、処理を終了する。このように、スタートキーの入力を受け付けると、JavaScriptの記述によって予め指定されたボタン(ソフトウェアキー)を押下したことと同様の処理を実行することができる。つまり、本実施形態によれば、スクリプトによって、所定のハードウェアキーが押下された場合の処理として、Webアプリケーションが提供するWebブラウザ500の画面に表示されたソフトウェアキーに関連付けられた処理が登録される。例えば、本実施形態では、スタートキー303は、スキャン開始画面702のスキャンボタンに関連付けられる。このように制御することで、本実施形態に係る情報処理装置は、ネイティブアプリケーションと同等の操作性をWebアプリケーションで実現する。   In step S1301, the web browser 500 determines whether the key code is the start key. If the key code is the start key, the process proceeds to the process of S1302, and if the key code is a hardware key other than the start key, the process ends. In step S1302, the web browser 500 issues a click event to the start button associated with the start key, and ends the processing. As described above, when the input of the start key is accepted, it is possible to execute the same processing as pressing the button (software key) designated in advance by the description of JavaScript. That is, according to the present embodiment, a process associated with the software key displayed on the screen of the web browser 500 provided by the web application is registered by the script as the process when the predetermined hardware key is pressed. Ru. For example, in the present embodiment, the start key 303 is associated with the scan button on the scan start screen 702. By performing control in this manner, the information processing apparatus according to the present embodiment realizes operability equivalent to that of a native application with a Web application.

次に、フローチャート1310を参照して、Webブラウザ500における、スタートボタンが押下されたときの処理手順について説明する。Webブラウザ500は、スタートボタンへclickイベントが通知されると、S1303の処理を開始する。   Next, with reference to the flowchart 1310, the processing procedure when the start button is pressed in the web browser 500 will be described. When the click event is notified to the start button, the web browser 500 starts the process of S1303.

S1303において、Webブラウザ500は、スタートボタンが押下されたことを記憶して、処理を終了する。具体的には、スキャン開始画面702でスタートキーが入力されたりスタートボタンが押下されたりした場合は、Webブラウザ500はS1303の処理を実行する。一方、スキャン開始画面702でキャンセルボタンが押下された場合は、Webブラウザ500は処理を終了する。   In step S1303, the web browser 500 stores that the start button has been pressed, and ends the processing. Specifically, when the start key is input or the start button is pressed on the scan start screen 702, the web browser 500 executes the processing of S1303. On the other hand, when the cancel button is pressed on the scan start screen 702, the web browser 500 ends the processing.

次に、フローチャート1320を参照して、Webブラウザ500がドキュメントをアンロードする(スキャン開始画面702を閉じる)ときの処理手順について説明する。Webブラウザ500は、ウィンドウへunloadイベントが通知されると、S1304の処理を開始する。   Next, with reference to the flowchart 1320, a processing procedure when the web browser 500 unloads a document (closes the scan start screen 702) will be described. The web browser 500 starts the process of S1304 when the window is notified of the unload event.

S1304において、Webブラウザ500は、スタートボタンが押下されたか否かを判定する。具体的には、S1303の処理が実行されている場合は、スタートボタンが押下されたと判定し、処理をS1306に進める。一方、S1303の処理が実行されていない場合は、スタートボタンが押下されていないと判定し、処理をS1305に進める。S1305において、Webブラウザ500は、デバイス制御部520にLED表示部309の消灯を指示する。例えば、スキャン開始画面702のキャンセルボタンが押下されて処理中画面704へ遷移する場合、LED表示部309が消灯し、処理をS1306へ進める。   In step S1304, the web browser 500 determines whether the start button has been pressed. Specifically, when the process of S1303 is executed, it is determined that the start button is pressed, and the process proceeds to S1306. On the other hand, when the process of S1303 is not executed, it is determined that the start button is not pressed, and the process proceeds to S1305. In step S1305, the web browser 500 instructs the device control unit 520 to turn off the LED display unit 309. For example, when the cancel button on the scan start screen 702 is pressed to transit to the processing in progress screen 704, the LED display unit 309 is turned off, and the process proceeds to step S1306.

S1306において、Webブラウザ500は、S1203乃至S1207で登録したイベントリスナを解除して処理を終了する。このように、Webブラウザ500は、スタートキー303が入力されたりスタートボタンが押下されたりした場合は、LED表示部309を点灯したまま別ページへ遷移する。一方、Webブラウザ500は、キャンセルボタンが押下されたり、URL入力欄にURLが入力されたり、更新が指示されたりした場合は、LED表示部309を消灯して別ページへ遷移する。点灯したLED表示部309は、原稿読込画面703で読込終了ボタン又は中止ボタンが押下されると、ジョブ制御部530が消灯する。   In step S1306, the web browser 500 cancels the event listener registered in steps S1203 to S1207 and ends the process. As described above, when the start key 303 is input or the start button is pressed, the web browser 500 transitions to another page while the LED display unit 309 is lit. On the other hand, when the cancel button is pressed, the URL is input in the URL input field, or the update is instructed, the Web browser 500 turns off the LED display unit 309 and shifts to another page. When the reading end button or the cancel button is pressed on the document reading screen 703, the job control unit 530 turns off the lighted LED display unit 309.

次に、フローチャート1400を参照して、操作部219へWebブラウザ500以外の画面を表示したときのWebブラウザ500の処理手順について説明する。具体的には、操作部219へWebブラウザ500が表示されているときに、ガイドキー306やトップメニューキー307が押下されて、操作部219へガイド画面やトップメニュー画面を表示されたときのWebブラウザ500の処理手順を示す。Webブラウザ500は、操作部219にWebブラウザ500以外の画面が表示されると、blurイベントを発行してウィンドウへ通知する。Webブラウザ500は、ウィンドウへblurイベントが通知されると、S1401の処理を開始する。   Next, the processing procedure of the web browser 500 when a screen other than the web browser 500 is displayed on the operation unit 219 will be described with reference to the flowchart 1400. Specifically, when the web browser 500 is displayed on the operation unit 219, the web browser 500 when the guide key 306 or the top menu key 307 is pressed and the guide screen or the top menu screen is displayed on the operation unit 219. Shows the processing procedure of When the screen other than the web browser 500 is displayed on the operation unit 219, the web browser 500 issues a blur event to notify the window. When the blur event is notified to the window, the web browser 500 starts the processing of S1401.

S1401において、Webブラウザ500は、LED点灯状態を取得する。LED点灯状態は上記S1209においてRAM213又はHDD214に記憶されている。Webブラウザ500は、S1401の処理を終了するとS1402の処理へ進む。S1402において、Webブラウザ500は、LED表示部309が点灯しているか否かを判定する。具体的には、S1401において取得したLED点灯状態が点灯を示せば、LED表示部309は点灯していると判定する。一方、LED点灯状態が消灯を示すか、又は、情報が記憶されていない場合は、LED表示部309が消灯していると判定する。Webブラウザ500は、LED表示部309が点灯していると判定した場合、S1403の処理へ進み、LED表示部309が消灯していると判定した場合は処理を終了する。   In S1401, the web browser 500 acquires the LED lighting state. The LED lighting state is stored in the RAM 213 or the HDD 214 in S1209. When the process of S1401 ends, the web browser 500 proceeds to the process of S1402. In S1402, the web browser 500 determines whether the LED display unit 309 is on. Specifically, if the LED lighting state acquired in S1401 indicates lighting, it is determined that the LED display unit 309 is lighting. On the other hand, it is determined that the LED display unit 309 is turned off if the LED lighting state indicates that the light is turned off, or if the information is not stored. If the web browser 500 determines that the LED display unit 309 is on, the processing proceeds to step S1403. If the web browser 500 determines that the LED display unit 309 is off, the processing ends.

S1403において、Webブラウザ500は、LED表示部309の消灯をデバイス制御部520へ指示し、処理を終了する。このように、Webブラウザ500がスキャン開始画面702を表示してLED表示部309が点灯している状態で、ガイド画面やトップメニューへ遷移すると、Webブラウザはスタートキー303のLED表示部309を消灯する。このように、本実施形態によれば、Webブラウザ500の画面が操作部219においてアクティブ画面でない場合、即ち、他の画面が上面に表示されている場合は、スタートキー303による処理の実行開始指示を受け付けないように制御する。   In step S1403, the web browser 500 instructs the device control unit 520 to turn off the LED display unit 309, and ends the processing. As described above, when the web browser 500 displays the scan start screen 702 and the LED display unit 309 is lit, the web browser turns off the LED display unit 309 of the start key 303 when transitioning to the guide screen or the top menu. . As described above, according to the present embodiment, when the screen of the web browser 500 is not the active screen in the operation unit 219, that is, when another screen is displayed on the upper surface, an instruction to start execution of processing by the start key 303 is given. Control not to accept

次に、フローチャート1410を参照して、操作部219へWebブラウザ500を表示したときのWebブラウザの処理手順について説明する。具体的には、操作部219にガイド画面が表示されているときにガイドキー306が押下されて、操作部219へWebブラウザ500が再表示されたときのWebブラウザ500の処理手順を示す。Webブラウザ500は、操作部219にWebブラウザ500が表示されると、focusイベントを発行してウィンドウへ通知する。Webブラウザ500は、ウィンドウへイベントがfocus通知されると、S1404の処理を開始する。   Next, the processing procedure of the web browser when the web browser 500 is displayed on the operation unit 219 will be described with reference to the flowchart 1410. Specifically, the processing procedure of the web browser 500 when the guide key 306 is pressed while the guide screen is displayed on the operation unit 219 and the web browser 500 is redisplayed on the operation unit 219 is shown. When the web browser 500 is displayed on the operation unit 219, the web browser 500 issues a focus event to notify the window. The web browser 500 starts the process of S1404 when the event is notified of focus to the window.

S1404において、Webブラウザ500は、LED点灯状態を取得する。LED点灯状態は上記S1209においてRAM213又はHDD214に記憶されている。続いて、S1405において、Webブラウザ500は、LED表示部309は点灯すべきか否かを判定する。具体的には、S1404において取得したLED点灯状態が点灯を示せば、LED表示部309が既に点灯しているため点灯する必要なしと判定する。一方、LED点灯状態が消灯を示すか、又は、記憶されていない場合は、LED表示部309が点灯していないため点灯すべきと判定する。   In S1404, the web browser 500 acquires the LED lighting state. The LED lighting state is stored in the RAM 213 or the HDD 214 in S1209. Subsequently, in step S1405, the web browser 500 determines whether the LED display unit 309 should be lit. Specifically, if the LED lighting state acquired in S1404 indicates lighting, it is determined that the LED display unit 309 is already on, and therefore, it is not necessary to light the LED display unit 309. On the other hand, when the LED lighting state indicates extinguishing or is not stored, it is determined that the LED display unit 309 should be lit since it is not lit.

Webブラウザ500は、LED表示部309を点灯すべきと判定した場合、S1406の処理へ進む。一方、LED表示部309を点灯する必要なしと判定した場合、処理を終了する。S1406において、Webブラウザ500は、LED表示部309の点灯をデバイス制御部520へ指示し、処理を終了する。このように、Webブラウザ500がガイド画面を表示している状態でスキャン開始画面702へ遷移すると、即ち、再びスキャン開始画面702が最上面に表示されると、Webブラウザ500はLED表示部309を再点灯する。   If the web browser 500 determines that the LED display unit 309 should be turned on, the process proceeds to the process of S1406. On the other hand, when it is determined that it is not necessary to turn on the LED display unit 309, the process ends. In step S1406, the web browser 500 instructs the device control unit 520 to turn on the LED display unit 309, and the processing ends. As described above, when the web browser 500 transits to the scan start screen 702 while displaying the guide screen, that is, when the scan start screen 702 is displayed on the top surface again, the web browser 500 displays the LED display unit 309. It lights up again.

このように本発明によれば、Webブラウザ500がJavaScriptの記述に従ってハードウェアキーやLEDを制御することによって、通常のMFP機能と同等の操作性でジョブ制御を実施することができる。   As described above, according to the present invention, job control can be performed with the same operability as a normal MFP function by the web browser 500 controlling the hardware key and the LED according to the description of JavaScript.

<第2の実施形態>
以下では、図15乃至図17を参照して、本発明に係る第2の実施形態について説明する。上記第1の実施形態との差異は、Webブラウザ500がスキャン設定画面HTML900に記述されたJavaScriptを処理することによってジョブ制御を実現する点である。なお、以下では、第1の実施形態との差異について主に説明する。
Second Embodiment
The second embodiment according to the present invention will be described below with reference to FIGS. The difference from the first embodiment is that the web browser 500 implements job control by processing JavaScript described in the scan setting screen HTML 900. In the following, differences from the first embodiment will be mainly described.

<MFPのソフトウェア構成>
まず、図15を参照して、本実施形態におけるMFP101のソフトウェア構成について説明する。第1の実施形態におけるMFP101のソフトウェア構成との差異は、MFP101がHTTPサーバ510を備えていない点である。第2の実施形態では、Webブラウザ500がデバイス制御部520及びジョブ制御部530を直接制御する構成である。デバイス制御部520及びジョブ制御部530は、HTTPサーバ510より割り当てられたHTTPリクエストを受信してHTTPレスポンスを応答することはしない。
<Software Configuration of MFP>
First, the software configuration of the MFP 101 according to the present embodiment will be described with reference to FIG. The difference from the software configuration of the MFP 101 in the first embodiment is that the MFP 101 does not include the HTTP server 510. In the second embodiment, the web browser 500 directly controls the device control unit 520 and the job control unit 530. The device control unit 520 and the job control unit 530 do not receive an HTTP request allocated from the HTTP server 510 and respond an HTTP response.

<処理シーケンス>
次に、図16を参照して、本実施形態における情報処理システムにおいて実行される処理シーケンスをについて説明する。第1の実施形態との差異は、S1601に示す処理である。図8に示したように、第1の実施形態のS818乃至S822では、Webアプリケーション610が、HTTPサーバ510へSOAPリクエストを送信することによって、ジョブ制御部530へスキャンジョブ生成を要求した。
<Processing sequence>
Next, with reference to FIG. 16, the processing sequence executed in the information processing system in the present embodiment will be described. The difference from the first embodiment is the process shown in S1601. As shown in FIG. 8, in steps S 818 to S 822 in the first embodiment, the web application 610 requests the job control unit 530 to generate a scan job by transmitting a SOAP request to the HTTP server 510.

一方、本実施形態では、S1601において、Webブラウザ500が、スキャン設定画面HTML1700に記述されたJavaScriptを処理することによって、ジョブ制御部530へスキャンジョブ生成を要求する。   On the other hand, in the present embodiment, in step S1601, the web browser 500 requests the job control unit 530 to generate a scan job by processing JavaScript described in the scan setting screen HTML 1700.

<スキャン設定画面HTML>
次に、図17を参照して、本実施形態におけるスキャン設定画面HTML1700の一例について説明する。第1の実施形態との差異は、デバイス・ジョブ制御JavaScript1710及びスキャンジョブ実行部1730である。
<Scan setting screen HTML>
Next, an example of a scan setting screen HTML 1700 according to the present embodiment will be described with reference to FIG. The difference from the first embodiment is the device / job control JavaScript 1710 and the scan job execution unit 1730.

第1の実施形態のデバイス制御JavaScript910には、デバイス制御部520へLED表示部309の点灯及び消灯を指示するためのスクリプトが定義されていた。一方、本実施形態のデバイス・ジョブ制御JavaScript1710には、デバイス制御部520へLED表示部309の点灯及び消灯を指示するスクリプトに加えて、ジョブ制御部530へジョブ実行を指示するためのスクリプトが定義されている。さらに、スキャンジョブ実行部1730には、スキャン設定フォーム1740に設定された読み込みカラー及び生成フォーマットをスキャン設定として、ジョブ制御部530へジョブ生成を要求するJavaScriptが記述されている。   In the device control JavaScript 910 of the first embodiment, a script for instructing the device control unit 520 to turn on and off the LED display unit 309 is defined. On the other hand, in the device / job control JavaScript 1710 of the present embodiment, a script for instructing the job control unit 530 to execute a job is defined in addition to the script instructing the device control unit 520 to turn on and off the LED display unit 309. It is done. Furthermore, in the scan job execution unit 1730, JavaScript is described, which requests the job control unit 530 to generate a job, with the read color and generation format set in the scan setting form 1740 as scan settings.

<その他の実施例>
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
<Other Embodiments>
The present invention is also realized by executing the following processing. That is, software (program) for realizing the functions of the above-described embodiment is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU or the like) of the system or apparatus reads the program. It is a process to execute.

101:MFP、102:サーバ、210:制御部、219:操作部、220:プリンタ、221:スキャナ   101: MFP, 102: server, 210: control unit, 219: operation unit, 220: printer, 221: scanner

Claims (10)

サーバが提供するアプリケーションを実行する情報処理装置であって、
前記アプリケーションの画面情報であって、ハードウェアキーの発光部を点灯する関数を呼び出す処理が定義されたスクリプトを含む前記画面情報を、前記サーバから取得する第1取得手段と、
前記第1取得手段によって取得した前記画面情報に従って操作部に画面を表示する表示制御手段と、
前記第1取得手段によって取得した前記画面情報に含まれる前記スクリプトに定義された関数を呼び出すことにより、前記ハードウェアキーの発光部を点灯させる実行手段を有し、
前記実行手段は、さらに、前記ハードウェアキーが押下されると、前記ハードウェアキーに対応した処理を行うことを特徴とする情報処理装置。
An information processing apparatus that executes an application provided by a server, and
A first acquisition unit for acquiring from the server the screen information including screen information of the application, the script having a process of calling a function for lighting a light emitting unit of a hardware key defined;
A display control unit that displays a screen on an operation unit according to the screen information acquired by the first acquisition unit;
It has execution means for lighting the light emitting unit of the hardware key by calling a function defined in the script included in the screen information acquired by the first acquisition means,
7. The information processing apparatus according to claim 1, wherein the execution unit further performs processing corresponding to the hardware key when the hardware key is pressed.
前記実行手段は、前記画面情報に従った画面が前記操作部に表示されなくなったら、前記ハードウェアキーの発光部を消灯させることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the execution unit turns off the light emitting unit of the hardware key when the screen according to the screen information is not displayed on the operation unit. Webブラウザが、前記画面情報に従った画面を前記操作部に表示し、前記ハードウェアキーの発光部を点灯する処理が定義されたスクリプトの実行を行うことを特徴とする請求項1又は請求項2に記載の情報処理装置。   The Web browser displays a screen according to the screen information on the operation unit, and executes a script having a process of lighting a light emitting unit of the hardware key defined. The information processing apparatus according to 2. 前記画面情報は、スキャン設定に関する画面であって、
前記実行手段は、前記スキャン設定に関する画面において、スキャン設定がされると、前記ハードウェアキーの発光部を点灯する関数を呼び出すことにより、前記ハードウェアキーの発光部を点灯させることを特徴とする請求項1乃至3の何れか1項に記載の情報処理装置。
The screen information is a screen related to scan setting, and
When the scan setting is performed on the screen related to the scan setting, the execution unit lights the light emitting unit of the hardware key by calling a function to light the light emitting unit of the hardware key. The information processing apparatus according to any one of claims 1 to 3.
前記ハードウェアキーとは、スタートキーであり、
前記アプリケーションは、前記スタートキーが押下されると、該アプリケーションを介して提供する前記情報処理装置の処理を開始させることを特徴とする請求項1乃至4の何れか1項に記載の情報処理装置。
The hardware key is a start key,
The information processing apparatus according to any one of claims 1 to 4, wherein the application starts processing of the information processing apparatus provided via the application when the start key is pressed. .
前記ハードウェアキーが押下された際に、関連付けられたソフトウェアキーが押下されたときと同じ情報を前記サーバに通知することを特徴とする請求項1乃至5の何れか1項に記載の情報処理装置。   The information processing according to any one of claims 1 to 5, wherein when the hardware key is pressed, the same information as when the associated software key is pressed is notified to the server. apparatus. 前記ハードウェアキーが押下された際に、関連付けられたソフトウェアキーが押下されたときと同じ情報を、前記アプリケーションを介して提供する前記情報処理装置の処理を実行する手段に通知することを特徴とする請求項1乃至5の何れか1項に記載の情報処理装置。   When the hardware key is pressed, the same information as when the associated software key is pressed is notified to the means for executing the processing of the information processing apparatus provided via the application. The information processing apparatus according to any one of claims 1 to 5. 前記情報処理装置は、画像形成装置であることを特徴とする請求項1乃至7の何れか1項に記載の情報処理装置。   The information processing apparatus according to any one of claims 1 to 7, wherein the information processing apparatus is an image forming apparatus. サーバが提供するアプリケーションを実行する情報処理装置の制御方法であって、
第1取得手段が、前記アプリケーションの画面情報であって、ハードウェアキーの発光部を点灯する関数を呼び出す処理が定義されたスクリプトを含む前記画面情報を、前記サーバから取得する第1取得工程と、
表示制御手段が、前記第1取得工程において取得した前記画面情報に従って操作部に画面を表示する表示制御工程と、
実行手段が、前記第1取得工程において取得した前記画面情報に含まれる前記スクリプトに定義された関数を呼び出すことにより、前記ハードウェアキーの発光部を点灯させる実行工程を有し、
前記実行工程では、さらに、前記ハードウェアキーが押下されると、前記ハードウェアキーに対応した処理を行うことを特徴とする情報処理装置の制御方法。
A control method of an information processing apparatus executing an application provided by a server,
A first acquisition step of acquiring, from the server, the screen information including a script which is screen information of the application and in which processing for calling a function to light a light emitting unit of a hardware key is defined; ,
A display control step of displaying a screen on the operation unit according to the screen information acquired in the first acquisition step;
The execution unit has an execution step of lighting a light emitting unit of the hardware key by calling a function defined in the script included in the screen information acquired in the first acquisition step.
In the execution step, further, when the hardware key is pressed, a process corresponding to the hardware key is performed.
請求項9に記載された情報処理装置の制御方法における各工程を、コンピュータに実行させるためのプログラム。   The program for making a computer perform each process in the control method of the information processing apparatus described in Claim 9.
JP2018141585A 2018-07-27 2018-07-27 Information processing apparatus, method for controlling the same, and program Pending JP2018181375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018141585A JP2018181375A (en) 2018-07-27 2018-07-27 Information processing apparatus, method for controlling the same, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018141585A JP2018181375A (en) 2018-07-27 2018-07-27 Information processing apparatus, method for controlling the same, and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017116071A Division JP6383463B2 (en) 2017-06-13 2017-06-13 Information processing apparatus, control method thereof, and program

Publications (1)

Publication Number Publication Date
JP2018181375A true JP2018181375A (en) 2018-11-15

Family

ID=64276889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018141585A Pending JP2018181375A (en) 2018-07-27 2018-07-27 Information processing apparatus, method for controlling the same, and program

Country Status (1)

Country Link
JP (1) JP2018181375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020185717A (en) * 2019-05-14 2020-11-19 キヤノン株式会社 Printer, printing control method and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006020272A (en) * 2004-05-31 2006-01-19 Sharp Corp Portable communication terminal
US20060262349A1 (en) * 2005-05-20 2006-11-23 Shohhei Moroi Image handling apparatus, image processing system, image process controlling method, and image process controlling program product
JP2006352845A (en) * 2005-05-20 2006-12-28 Ricoh Co Ltd Image handling apparatus, image processing system, image processing control method, and image processing control program program
JP2009296409A (en) * 2008-06-06 2009-12-17 Sharp Corp Image processing apparatus
US20100053676A1 (en) * 2008-08-29 2010-03-04 Konica Minolta Business Technologies, Inc. Image processing device and server
JP2011130123A (en) * 2009-12-16 2011-06-30 Canon Inc Image processing apparatus
EP2369833A1 (en) * 2010-03-26 2011-09-28 Murata Machinery, Ltd. Multi functional peripheral

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006020272A (en) * 2004-05-31 2006-01-19 Sharp Corp Portable communication terminal
US20060262349A1 (en) * 2005-05-20 2006-11-23 Shohhei Moroi Image handling apparatus, image processing system, image process controlling method, and image process controlling program product
JP2006352845A (en) * 2005-05-20 2006-12-28 Ricoh Co Ltd Image handling apparatus, image processing system, image processing control method, and image processing control program program
JP2009296409A (en) * 2008-06-06 2009-12-17 Sharp Corp Image processing apparatus
US20100053676A1 (en) * 2008-08-29 2010-03-04 Konica Minolta Business Technologies, Inc. Image processing device and server
JP2010057009A (en) * 2008-08-29 2010-03-11 Konica Minolta Business Technologies Inc Image processing device, and server
JP2011130123A (en) * 2009-12-16 2011-06-30 Canon Inc Image processing apparatus
EP2369833A1 (en) * 2010-03-26 2011-09-28 Murata Machinery, Ltd. Multi functional peripheral
JP2011211261A (en) * 2010-03-26 2011-10-20 Murata Machinery Ltd Multifunctional peripheral

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020185717A (en) * 2019-05-14 2020-11-19 キヤノン株式会社 Printer, printing control method and program
JP7309443B2 (en) 2019-05-14 2023-07-18 キヤノン株式会社 PRINTING DEVICE, CONTROL METHOD AND PROGRAM

Similar Documents

Publication Publication Date Title
RU2611962C2 (en) Image processing apparatus, image processing method, web server, control method for same, and storage medium
JP5591040B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP4890605B2 (en) MFP, MFP control system, program and recording medium
JP6560573B2 (en) Information processing apparatus, control method therefor, and program
JP4987950B2 (en) MFP, program and recording medium
JP5436187B2 (en) Image processing apparatus, control method therefor, and program
JP6090511B1 (en) Terminal device and program
JP2016057697A (en) Information processing system, information processor, control method thereof, and program
US20110161823A1 (en) Information processing system controlling image processing apparatus to display screen information, control method therefor, external control apparatus, information provision apparatus, image processing apparatus, and storage medium storing program
JP5669562B2 (en) Image processing apparatus, server apparatus, control method thereof, and program
US20120268768A1 (en) Information processing apparatus, information processing system, control method therefor, and storage medium
JP4737215B2 (en) Information processing apparatus, image reading apparatus, and program
US8879079B2 (en) Information processing apparatus that displays web page, method of controlling information processing apparatus, and storage medium
JP5524723B2 (en) Image reading system, server device, image reading device, image reading method, control method, and program
US20110279845A1 (en) Information processing apparatus, and control method and storage medium therefor
JP2016081113A (en) Image processing device, control method thereof, and computer program
JP6383463B2 (en) Information processing apparatus, control method thereof, and program
JP7240246B2 (en) IMAGE FORMING APPARATUS, CONTROL METHOD AND IMAGE FORMING SYSTEM THEREOF, AND PROGRAM
JP2018181375A (en) Information processing apparatus, method for controlling the same, and program
JP2015001865A (en) Image forming system, image forming apparatus, remote operation device and program
JP2017201500A (en) Information processing device and program
JP2013105357A (en) Server device, information processing device, control method of server device and program
JP2015158719A (en) Image forming system, image forming apparatus, remote control device, and program
JP4840389B2 (en) Information processing apparatus, image reading apparatus, and program
JP2019057796A (en) Image processing apparatus and method for controlling the same, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180727

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190409

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190606

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20191129