JP6883278B2 - Programs and information processing equipment - Google Patents

Programs and information processing equipment Download PDF

Info

Publication number
JP6883278B2
JP6883278B2 JP2017048212A JP2017048212A JP6883278B2 JP 6883278 B2 JP6883278 B2 JP 6883278B2 JP 2017048212 A JP2017048212 A JP 2017048212A JP 2017048212 A JP2017048212 A JP 2017048212A JP 6883278 B2 JP6883278 B2 JP 6883278B2
Authority
JP
Japan
Prior art keywords
external communication
communication device
information
address
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017048212A
Other languages
Japanese (ja)
Other versions
JP2018151912A (en
Inventor
竜彦 曽根
竜彦 曽根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2017048212A priority Critical patent/JP6883278B2/en
Publication of JP2018151912A publication Critical patent/JP2018151912A/en
Application granted granted Critical
Publication of JP6883278B2 publication Critical patent/JP6883278B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Description

本発明は,Webアプリケーション及びWebアプリケーションシステムに関する。さらに詳細には,ブラウザを実行する情報処理装置に接続された外部通信装置から識別情報を受信し、Webアプリケーションの実行を許可する技術に関するものである。 The present invention relates to a web application and a web application system. More specifically, the present invention relates to a technique for receiving identification information from an external communication device connected to an information processing device that executes a browser and permitting execution of a Web application.

PCなどの情報処理装置が備えるWebブラウザ上で、ネットワークを介して接続されたWebサーバから提供されるアプリケーションを実行するWebアプリケーションが知られている。特許文献1には、Webアプリケーションのユーザにアカウントを作成させ、Webアプリケーションの操作画面でアカウントを特定するために、ユーザ名とパスワードの入力を求め、そして、その画面を介して入力されたユーザ名とパスワードが、登録している情報と一致すると、Webアプリケーションの実行を許可する技術が開示されている。 A Web application that executes an application provided by a Web server connected via a network on a Web browser provided in an information processing device such as a PC is known. In Patent Document 1, a user of a Web application is made to create an account, a user name and a password are required to be input in order to identify the account on the operation screen of the Web application, and the user name entered through the screen is requested. When the password and the password match the registered information, a technique for permitting the execution of the Web application is disclosed.

特開2016−081345号公報Japanese Unexamined Patent Publication No. 2016-081345

しかしながら、上記した従来技術では、Webアプリケーションのユーザは、Webアプリケーションの提供者が提供するアカウントを予め作成し、Webアプリケーションを利用するために、そのアカウントでログインするという手間が必要である。更に、アカウントを持っていないユーザはそもそもWebアプリケーションを利用できないという問題があった。 However, in the above-mentioned conventional technique, the user of the Web application needs to create an account provided by the Web application provider in advance and log in with the account in order to use the Web application. Further, there is a problem that a user who does not have an account cannot use the Web application in the first place.

本発明は、上記の事情に鑑みてなされたものであり、その目的は、ユーザにアカウントを取得させることなく、Webアプリケーションの実行を好適に許可することができるWebアプリケーションシステムの提供である。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a Web application system capable of preferably permitting execution of a Web application without causing a user to acquire an account.

本明細書に開示されているWebアプリケーションシステムは、情報処理装置と通信する外部通信装置と、前記情報処理装置と通信するサーバと、前記サーバから受信したプログラムをWebブラウザ上で実行する前記情報処理装置と、を有するWebアプリケーションシステムであって、前記プログラムは、前記プログラムの機能を実行する機能スクリプトと、前記機能スクリプトの実行の認証を行う認証スクリプトと、から構成されており、前記外部通信装置は、前記情報処理装置と通信する第1通信部と、前記外部通信装置が所定の外部通信装置であるかを識別する識別情報を記憶する第1記憶部と、前記第1通信部を通じて、前記識別情報を前記情報処理装置に送信する第1送信処理を実行する第1制御部と、を備えており、前記サーバは、前記情報処理装置と通信する第2通信部と、前記プログラムを記憶する第2記憶部と、前記第2通信部を通じて、前記プログラムを前記情報処理装置に送信する第2送信処理を実行する第2制御部と、を備えており、前記情報処理装置は、第3通信部と、前記Webブラウザを記憶する第3記憶部と、第3制御部と、を備えており、前記第3制御部は、前記第3通信部を通じて、前記プログラムを前記サーバから受信する第1受信処理を実行し、前記第3制御部は、通信する前記外部通信装置を特定する特定処理と、前記第3通信部を通じて、前記特定処理により特定した前記外部通信装置に、前記識別情報を要求する要求処理と、前記要求処理により要求した前記識別情報を前記外部通信装置から受信した場合に、前記識別情報に基づいて、前記外部通信装置が前記所定の外部通信装置であるか否かを判断する第1判断処理と、前記第1判断処理にて前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記機能プログラムの実行を許可する実行許可処理と、を前記認証プログラムにより実行することを特徴とする。 The Web application system disclosed in the present specification includes an external communication device that communicates with the information processing device, a server that communicates with the information processing device, and the information processing that executes a program received from the server on a Web browser. A Web application system including a device, wherein the program is composed of a function script that executes the function of the program and an authentication script that authenticates the execution of the function script, and is composed of the external communication device. Through a first communication unit that communicates with the information processing device, a first storage unit that stores identification information that identifies whether the external communication device is a predetermined external communication device, and the first communication unit. A first control unit that executes a first transmission process for transmitting identification information to the information processing device is provided, and the server stores a second communication unit that communicates with the information processing device and the program. A second storage unit and a second control unit that executes a second transmission process for transmitting the program to the information processing device through the second communication unit are provided, and the information processing device has a third communication. A first unit that includes a unit, a third storage unit that stores the Web browser, and a third control unit, and the third control unit receives the program from the server through the third communication unit. The reception process is executed, and the third control unit requests the identification information from the specific process for specifying the external communication device to communicate with and the external communication device specified by the specific process through the third communication unit. When the request processing to be performed and the identification information requested by the request processing are received from the external communication device, it is determined whether or not the external communication device is the predetermined external communication device based on the identification information. The authentication program includes a first determination process to be performed, and an execution permission process for permitting execution of the functional program when the external communication device is determined to be the predetermined external communication device in the first determination process. It is characterized by executing by.

上記構成によれば、外部通信装置から識別情報を受信し且つ、識別情報により所定の外部通信装置であると判断した場合に、Webアプリケーションの機能を実行する機能スクリプトの実行を許可する。このため、ユーザにアカウントを取得させることなく、Webアプリケーションの実行を好適に許可することができる。 According to the above configuration, when the identification information is received from the external communication device and the identification information determines that the external communication device is a predetermined one, the execution of the function script that executes the function of the Web application is permitted. Therefore, it is possible to preferably allow the execution of the Web application without having the user acquire an account.

本明細書に開示されているプログラムは、制御部と、Webブラウザを記憶する記憶部と、サーバ及び外部通信装置と通信する通信部と、を備えた情報処理装置のWebブラウザ上で、前記サーバから取得し、前記制御部によって実行可能なプログラムであって、前記プログラムは、前記プログラムの機能を実行する機能スクリプトと、前記機能スクリプトの実行の認証を行う認証スクリプトと、から構成されており、前記制御部は、通信する前記外部通信装置を特定する特定処理と、前記通信部を通じて、前記識別情報を、前記特定処理により特定した前記外部通信装置に要求する第1要求処理と、前記第1要求処理により要求した前記識別情報を前記外部通信装置から受信した場合に、前記識別情報に基づいて、前記外部通信装置が前記所定の外部通信装置であるか否かを判断する第1判断処理と、前記第1判断処理にて、前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記機能スクリプトの実行を許可する実行許可処理と、を前記認証スクリプトにより、実行することを特徴とする。 The program disclosed in the present specification is the server on the Web browser of an information processing device including a control unit, a storage unit for storing a Web browser, and a communication unit for communicating with a server and an external communication device. It is a program that can be acquired from the control unit and can be executed by the control unit, and the program is composed of a function script that executes the function of the program and an authentication script that authenticates the execution of the function script. The control unit has a specific process for identifying the external communication device to communicate with, a first request process for requesting the identification information from the external communication device specified by the specific process through the communication unit, and the first request process. When the identification information requested by the request processing is received from the external communication device, the first determination process of determining whether or not the external communication device is the predetermined external communication device based on the identification information. When the external communication device is determined to be the predetermined external communication device in the first determination process, the execution permission process for permitting the execution of the function script is executed by the authentication script. It is characterized by.

第1実施形態のWebアプリケーションシステム10の概略図である。It is the schematic of the Web application system 10 of 1st Embodiment. (A)は複合機20のブロック図であり、(B)はPC100のブロック図であり、(C)はサーバ200のブロック図である。(A) is a block diagram of the multifunction device 20, (B) is a block diagram of the PC100, and (C) is a block diagram of the server 200. Webアプリケーションシステム10における、PC100がスクリプト208を取得する処理についてのフローチャートである。It is a flowchart about the process which PC 100 acquires the script 208 in the Web application system 10. 第1実施形態の認証処理の前半についてのフローチャートである。It is a flowchart about the first half of the authentication process of 1st Embodiment. 第1実施形態の認証処理の後半についてのフローチャートである。It is a flowchart about the latter half of the authentication process of 1st Embodiment. 第1実施形態のPC100の表示部106に表示される画面であって、(A)は認証報知画面60の一例であり、(C)は認証失敗画面64の一例であり、(D)は認証成功画面66の一例である。The screen displayed on the display unit 106 of the PC 100 of the first embodiment, (A) is an example of the authentication notification screen 60, (C) is an example of the authentication failure screen 64, and (D) is an authentication. This is an example of the success screen 66. (A)HTTPサーバ37のレスポンスであるHTMLファイル40の一例であり、(B)は所定の外部通信装置であるか否かを判断するために用いるフォーマット50の一例である。(A) is an example of the HTML file 40 which is the response of the HTTP server 37, and (B) is an example of the format 50 used for determining whether or not the device is a predetermined external communication device. 第2実施形態のWebアプリケーションシステム500の概略図である。It is the schematic of the Web application system 500 of 2nd Embodiment. (A)はプリンタ600のブロック図であり、(B)はPC650のブロック図であり、(C)はサーバ700のブロック図である。(A) is a block diagram of the printer 600, (B) is a block diagram of the PC 650, and (C) is a block diagram of the server 700. 第2実施形態の認証処理の前半についてのフローチャートである。It is a flowchart about the first half of the authentication process of 2nd Embodiment. 第2実施形態の認証処理の後半についてのフローチャートである。It is a flowchart about the latter half of the authentication process of 2nd Embodiment. 第2実施形態のPC650の表示部656に表示される画面であって、(A)はIPアドレス入力受付画面800の一例であり、(B)は認証成功画面804の一例である。The screen displayed on the display unit 656 of the PC 650 of the second embodiment, (A) is an example of the IP address input reception screen 800, and (B) is an example of the authentication success screen 804.

<第1実施形態>
以下、適宜図面を参照して本発明の実施形態について説明する。なお、以下に説明される実施形態は本発明の一例に過ぎず、本発明の要旨を変更しない範囲で、本発明の実施形態を適宜変更できることは言うまでもない。例えば、後述する各処理の実行順序は、本発明の要旨を変更しない範囲で、適宜変更することができる。
<First Embodiment>
Hereinafter, embodiments of the present invention will be described with reference to the drawings as appropriate. It goes without saying that the embodiments described below are merely examples of the present invention, and the embodiments of the present invention can be appropriately changed without changing the gist of the present invention. For example, the execution order of each process described later can be appropriately changed without changing the gist of the present invention.

図1を参照して、Webアプリケーションシステム10の概略について説明する。Webアプリケーションシステム10は、後述するサーバ200のWebアプリケーション207が提供するスクリプト208をPC100のユーザがWebブラウザ112上で実行するシステムである。Webアプリケーションシステム10を構成する、複合機20、PC100、サーバ200及びアクセスポイント80は、通信ネットワークを介して相互に通信可能に接続されている。ここで、複合機とは、印刷機能、スキャン機能、コピー機能を備える多機能周辺装置を表す。通信ネットワークの具体例は特に限定されないが、例えば、インターネット84、有線LAN(Local Area Networkの略)、無線LAN82、あるいはこれらの組み合わせであってもよい。PC100、複合機20は、アクセスポイント80が形成する無線LAN82に属している。アクセスポイント80は図示しないルータを通じて、インターネット84に接続されている。サーバ200は、インターネット84に接続されている。そして、PC100、複合機20は、アクセスポイント80からインターネット84を経由して、サーバ200と通信可能である。 The outline of the Web application system 10 will be described with reference to FIG. The Web application system 10 is a system in which a user of the PC 100 executes a script 208 provided by the Web application 207 of the server 200, which will be described later, on the Web browser 112. The multifunction device 20, the PC 100, the server 200, and the access point 80 that make up the Web application system 10 are connected to each other so as to be able to communicate with each other via a communication network. Here, the multifunction device represents a multifunctional peripheral device having a printing function, a scanning function, and a copying function. Specific examples of the communication network are not particularly limited, but may be, for example, the Internet 84, a wired LAN (abbreviation of Local Area Network), a wireless LAN 82, or a combination thereof. The PC 100 and the multifunction device 20 belong to the wireless LAN 82 formed by the access point 80. The access point 80 is connected to the Internet 84 through a router (not shown). The server 200 is connected to the Internet 84. Then, the PC 100 and the multifunction device 20 can communicate with the server 200 from the access point 80 via the Internet 84.

なお、本実施形態に係るWebアプリケーションシステム10では、1台の複合機(複合機20)での構成を例示しているが、これに限るものでなく、その台数は任意である。また、PC100と無線LAN82で接続される外部通信装置は、複合機20に限定されるものではなく、後述するようにHTTP(HyperText Transfer Protocolの略)サーバ37を備えた機器が1台以上あればよい。 In the Web application system 10 according to the present embodiment, the configuration of one multifunction device (multifunction device 20) is illustrated, but the configuration is not limited to this, and the number of the multifunction devices is arbitrary. Further, the external communication device connected to the PC 100 by the wireless LAN 82 is not limited to the multifunction device 20, and if there is one or more devices equipped with an HTTP (abbreviation of HyperText Transfer Protocol) server 37 as described later. Good.

PC100、複合機20には、無線LAN82に接続するために、ローカルIPアドレスとサブネットマスク、および、無線LAN82のSSID(Service Set IDntifierの略)が設定されている。IPアドレスは、通信に用いられる周知のビット列である。サブネットマスクは、4バイトのデータ列であるIPアドレスのうち、ネットワークアドレス部とホストアドレス部を識別するためのビット列であり、IPアドレスのうち上位何ビットがネットワークアドレスであるかを表す周知のビット列である。詳細は後述するが、PC100は、サブネットマスクを用いて、自身に設定されたローカルIPアドレスのうち、ネットワークアドレス部とホストアドレス部を識別する。ここで、ネットワークアドレス部は、ネットワークの管理単位となるサブネット(無線LAN82)を識別するためのアドレスである。ホストアドレス部は、ローカルIPアドレスのうちネットワークアドレス部以外の部分であり、ホスト(PC100、複合機20、アクセスポイント80)を定義する部分である。 In the PC 100 and the multifunction device 20, a local IP address, a subnet mask, and an SSID (abbreviation of Service Set ID finder) of the wireless LAN 82 are set in order to connect to the wireless LAN 82. The IP address is a well-known bit string used for communication. The subnet mask is a bit string for identifying the network address part and the host address part of the IP address which is a 4-byte data string, and is a well-known bit string indicating how many upper bits of the IP address are the network address. Is. Although the details will be described later, the PC 100 uses the subnet mask to identify the network address portion and the host address portion among the local IP addresses set in the PC 100. Here, the network address unit is an address for identifying a subnet (wireless LAN 82) that is a management unit of the network. The host address part is a part of the local IP address other than the network address part, and is a part that defines a host (PC100, multifunction device 20, access point 80).

[複合機20]
複合機20は、図2(A)に示されるように、CPU21、操作部23、表示部25、通信部27、印刷部29、読取部31、記憶部33を主に備えている。
[Multifunction device 20]
As shown in FIG. 2A, the multifunction device 20 mainly includes a CPU 21, an operation unit 23, a display unit 25, a communication unit 27, a printing unit 29, a reading unit 31, and a storage unit 33.

CPU21は、複合機20の全体動作を制御するものである。CPU21は、操作部から出力される各種情報及び通信部27を通じて通信装置から取得した各種情報等に基づいて、記憶部33に記憶された制御プログラム35を実行することにより、複合機20の制御を実行する。例えば、CPU21は、印刷部29や読取部31を制御して、印刷処理、スキャン処理などを実行する。 The CPU 21 controls the overall operation of the multifunction device 20. The CPU 21 controls the multifunction device 20 by executing the control program 35 stored in the storage unit 33 based on various information output from the operation unit and various information acquired from the communication device through the communication unit 27. Execute. For example, the CPU 21 controls the printing unit 29 and the reading unit 31 to execute printing processing, scanning processing, and the like.

操作部23は、ユーザにより操作される複数の操作ボタンを備え、ユーザの押下操作に応じた信号をCPU21へ送信する。ユーザは、操作部23を操作することによって所望の入力指示を出すことができる。 The operation unit 23 includes a plurality of operation buttons operated by the user, and transmits a signal corresponding to the user's pressing operation to the CPU 21. The user can issue a desired input instruction by operating the operation unit 23.

表示部25は、LCD等のディスプレイを備えている。表示部25は、CPU21からの指示に従って、各種の情報をディスプレイに表示する。 The display unit 25 includes a display such as an LCD. The display unit 25 displays various information on the display according to the instruction from the CPU 21.

通信部27は、無線LAN82、インターネット84などのネットワークに接続するためのインタフェースや、USBメモリなどの外部記憶装置と接続するためのインタフェースを含んでいる。 The communication unit 27 includes an interface for connecting to a network such as a wireless LAN 82 and an Internet 84, and an interface for connecting to an external storage device such as a USB memory.

印刷部29は、インクジェット方式やレーザー方式などの印刷方式を用いて印刷を実行する。読取部31は、CCDやCMOSなどの光電変換素子を用いて光学的に原稿を読み取ることによってカラー画像やグレー画像を表すスキャンデータを生成する。読取部31は、いわゆるフラットベッド式の原稿台、あるいはADF(Auto Document Feederの略)式の原稿台を備えている。 The printing unit 29 executes printing by using a printing method such as an inkjet method or a laser method. The reading unit 31 generates scan data representing a color image or a gray image by optically reading the original using a photoelectric conversion element such as a CCD or CMOS. The reading unit 31 includes a so-called flatbed type platen or an ADF (abbreviation of Auto Document Feeder) type platen.

記憶部33は、例えば、RAM、ROM、フラッシュメモリ、ハードディスクドライブ、CPU21が備えるバッファ、あるいはそれらの組み合わせによって構成されている。記憶部33は制御プログラム35、HTTPサーバ37を記憶している。制御プログラム35は、例えば、インターネットを介して接続されたサーバからダウンロードされる形態、あるいは、CD−ROMなどに記録された形態で提供されるものでもよい。HTTPサーバ37は、複合機20内に内蔵されたWebサーバ、すなわちEWS(Embedded Web Serverの略)である。通信部27とデータ通信可能な機器は、複合機20に割り当てられたローカルIPアドレスを用いることで、HTTPサーバ37にアクセスすることが可能である。HTTPサーバ37は、HTTPリクエストを受け付けると、このHTTPリクエストに含まれるURL(Uniform Resource Locatorの略)に基づいて、HTML(Hyper Text Markup Languageの略)ファイル40をHTTPレスポンスとして送信する。図7(A)に示す、HTMLファイル40は、JavaScript(登録商標)やHTML形式で書かれたテキストデータであり、例えば、開始タグ41と終了タグ42の間に、HTMLファイル40のタイトルとなる文字列43を記述するというように、タグの間に意味づけしたい文字列を記述する。HTMLファイル40には、HTMLファイルのタイトルを意味する文字列43の他に、複合機20の製造メーカのロゴを取得するURI44(Uniform Resource Identifierの略)や型番情報、装置情報の一例であるシリアルナンバー48を含んでいる。シリアルナンバーは製造メーカが製造した装置それぞれに固有に割り当てた情報である。HTTPサーバ37は、本来、複合機20のユーザがインターネット84などのネットワーク上で複合機20を管理するために備えられたものであるが、本実施形態では、HTTPサーバ37が送信するHTMLファイル40を、スクリプト207の実行許可を行うための認証情報として流用する。 The storage unit 33 is composed of, for example, a RAM, a ROM, a flash memory, a hard disk drive, a buffer included in the CPU 21, or a combination thereof. The storage unit 33 stores the control program 35 and the HTTP server 37. The control program 35 may be provided, for example, in the form of being downloaded from a server connected via the Internet, or in the form of being recorded on a CD-ROM or the like. The HTTP server 37 is a Web server built in the multifunction device 20, that is, EWS (an abbreviation for Embedded Web Server). A device capable of data communication with the communication unit 27 can access the HTTP server 37 by using the local IP address assigned to the multifunction device 20. When the HTTP server 37 receives the HTTP request, it transmits an HTML (abbreviation of Hyper Text Markup Language) file 40 as an HTTP response based on the URL (abbreviation of the Uniform Resource Locator) included in the HTTP request. The HTML file 40 shown in FIG. 7A is text data written in JavaScript (registered trademark) or HTML format, and is, for example, the title of the HTML file 40 between the start tag 41 and the end tag 42. Describe the character string to be meaningful between the tags, such as describing the character string 43. In the HTML file 40, in addition to the character string 43 meaning the title of the HTML file, the URI44 (abbreviation of the Uniform Resource Identifier) that acquires the logo of the manufacturer of the multifunction device 20, the model number information, and the serial that is an example of the device information. Includes number 48. The serial number is information uniquely assigned to each device manufactured by the manufacturer. The HTTP server 37 is originally provided for the user of the multifunction device 20 to manage the multifunction device 20 on a network such as the Internet 84, but in the present embodiment, the HTML file 40 transmitted by the HTTP server 37 is provided. Is diverted as the authentication information for permitting the execution of the script 207.

記憶部33に記憶されたプログラムは、CPU21によって実行される。しかしながら、本明細書では、CPU21を省略して各プログラムの動作を説明することがある。すなわち、以下の説明において、「プログラムAが処理Aを実行する」という趣旨の記述は、「CPU21がプログラムAに記述された処理Aを実行する」ことを指してもよい。 The program stored in the storage unit 33 is executed by the CPU 21. However, in the present specification, the operation of each program may be described by omitting the CPU 21. That is, in the following description, the description to the effect that "the program A executes the process A" may refer to "the CPU 21 executes the process A described in the program A".

複合機20を構成する各構成要素は、相互に接続されている。 The components constituting the multifunction device 20 are connected to each other.

[PC100]
PC100は、図2(B)に示されるように、CPU102、操作部104、表示部106、通信部108、記憶部110を主に備えている。
[PC100]
As shown in FIG. 2B, the PC 100 mainly includes a CPU 102, an operation unit 104, a display unit 106, a communication unit 108, and a storage unit 110.

CPU102は、PC100の全体動作を制御するものである。CPU21は、操作部から出力される各種情報及び通信部27を通じて外部通信装置から取得した各種情報等に基づいて、記憶部110に記憶された制御プログラム114を実行することにより、PC100の制御を実行する。 The CPU 102 controls the overall operation of the PC 100. The CPU 21 executes the control of the PC 100 by executing the control program 114 stored in the storage unit 110 based on various information output from the operation unit and various information acquired from the external communication device through the communication unit 27. To do.

操作部104は、ユーザにより操作されるマウスやキーボードを備え、ユーザの操作に応じた信号をCPU102へ送信する装置である。ユーザは、操作部104を操作することによって所望の入力指示を出すことができる。 The operation unit 104 is a device including a mouse and a keyboard operated by the user, and transmits a signal corresponding to the user's operation to the CPU 102. The user can issue a desired input instruction by operating the operation unit 104.

表示部106は、LCD等のディスプレイを備えた装置である。表示部106は、CPU102からの指示に従って、各種の情報をディスプレイに表示する。 The display unit 106 is a device including a display such as an LCD. The display unit 106 displays various information on the display according to the instruction from the CPU 102.

通信部108は、無線LAN82、インターネット84などのネットワークに接続するためのインタフェースや、USBメモリなどの外部記憶装置と接続するためのインタフェースを含んでいる。 The communication unit 108 includes an interface for connecting to a network such as a wireless LAN 82 and an Internet 84, and an interface for connecting to an external storage device such as a USB memory.

記憶部110は、例えば、RAM、ROM、フラッシュメモリ、ハードディスクドライブ、CPU102が備えるバッファ、あるいはそれらの組み合わせによって構成されている。記憶部110はWebブラウザ112、制御プログラム114を記憶している。このWebブラウザ112は、プラグインモジュールを有さない単機能ブラウザ(標準ブラウザ)であり、PC100(CPU102)は、該Webブラウザ112を使用して、ネットワーク(インターネット84)接続されたサーバ200にアクセスし、Webアプリケーション207によってスクリプト208を取得する。 The storage unit 110 is composed of, for example, a RAM, a ROM, a flash memory, a hard disk drive, a buffer included in the CPU 102, or a combination thereof. The storage unit 110 stores the Web browser 112 and the control program 114. The Web browser 112 is a single-function browser (standard browser) that does not have a plug-in module, and the PC 100 (CPU 102) uses the Web browser 112 to access the server 200 connected to the network (Internet 84). Then, the Web application 207 acquires the script 208.

PC100を構成する各構成要素は、相互に接続されており、PC100は、Webブラウザ112を使用して各機器と通信を行なう。 The components constituting the PC 100 are connected to each other, and the PC 100 communicates with each device by using the Web browser 112.

[サーバ200]
サーバ200は、CPU202、通信部204、記憶部206を主に備えている。
[Server 200]
The server 200 mainly includes a CPU 202, a communication unit 204, and a storage unit 206.

CPU202は、サーバ200の全体動作を制御するものである。CPU202は、通信部204を通じて通信装置から取得した各種情報等に基づいて、記憶部206に記憶されたWebアプリケーション207を実行することにより、複合機20の制御を実行する。 The CPU 202 controls the overall operation of the server 200. The CPU 202 controls the multifunction device 20 by executing the Web application 207 stored in the storage unit 206 based on various information acquired from the communication device through the communication unit 204.

通信部204は、インターネット84などのネットワークに接続するためのインタフェースや、USBメモリなどの外部記憶装置と接続するためのインタフェースを含んでいる。 The communication unit 204 includes an interface for connecting to a network such as the Internet 84 and an interface for connecting to an external storage device such as a USB memory.

記憶部206は、フラッシュメモリ、ハードディスクドライブなどが組み合わせされて構成されている。記憶部206はWebアプリケーション207、Webアプリケーション207、装置情報リスト216を記憶している。Webアプリケーション207は、「プリント」、「スキャン」、「はがき作成」の3つの機能を備えている。「プリント」及び「スキャン」機能は、PC100と通信可能に接続された複合機20に、プリント及びスキャンを実行させる機能であり、「はがき作成」機能は、はがきの通信面に印刷するための画像データを作成する機能である。Webアプリケーション207は、これら3つの機能を実行する機能スクリプト210と、機能スクリプト210の実行の認証を行う認証スクリプト212とから構成されたスクリプト208を含んでいる。ユーザは、PC100のWebブラウザ112上で、Webアプリケーション207によってアプリケーション208を取得すると、認証スクリプト212により、認証処理が実行される。認証に成功すると、機能スクリプト210の実行が許可され、機能スクリプト210を実行することができる。装置情報リスト216は、Webアプリケーション207の提供者が登録した、Webアプリケーション207の機能の実行を許可する外部通信装置の装置情報のリストである。 The storage unit 206 is configured by combining a flash memory, a hard disk drive, and the like. The storage unit 206 stores the Web application 207, the Web application 207, and the device information list 216. The Web application 207 has three functions of "printing", "scanning", and "postcard creation". The "print" and "scan" functions are functions that cause the multifunction device 20 that is communicably connected to the PC 100 to perform print and scan, and the "postcard creation" function is an image for printing on the communication surface of a postcard. It is a function to create data. The Web application 207 includes a script 208 composed of a function script 210 that executes these three functions and an authentication script 212 that authenticates the execution of the function script 210. When the user acquires the application 208 by the Web application 207 on the Web browser 112 of the PC 100, the authentication process is executed by the authentication script 212. If the authentication is successful, the function script 210 is allowed to be executed, and the function script 210 can be executed. The device information list 216 is a list of device information of the external communication device registered by the provider of the Web application 207 and permitting the execution of the function of the Web application 207.

サーバ200を構成する各構成要素は、相互に接続されている。 The components that make up the server 200 are connected to each other.

サーバ200とPC100との通信はHTTPに従って行われる。すなわち、サーバ200はPC100(Webブラウザ112)からHTTPリクエストを受け付け、このHTTPリクエストに含まれるURLに基づいて、情報を送信する。 Communication between the server 200 and the PC 100 is performed according to HTTP. That is, the server 200 receives the HTTP request from the PC 100 (Web browser 112) and transmits information based on the URL included in the HTTP request.

なお、記憶部33、記憶部110、記憶部206は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non−transitoryな媒体である。non−transitoryな媒体には、上記の例の他に、CD−ROM、DVD−ROM等の記録媒体も含まれる。また、non−transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non−transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。 The storage unit 33, the storage unit 110, and the storage unit 206 may be storage media that can be read by a computer. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, the non-transitory medium also includes a recording medium such as a CD-ROM or a DVD-ROM. The non-transitory medium is also a tangible medium. On the other hand, an electric signal that carries a program downloaded from a server on the Internet is a computer-readable signal medium, which is a kind of computer-readable medium, but is a storage that can be read by a non-transitory computer. Not included in the medium.

また、本明細書中の「データ」とは、コンピュータによって取り扱い可能なビット或いはビット列であり、各ビットが示す意味内容をコンピュータが考慮することなく取り扱えるものを指す。 Further, the "data" in the present specification is a bit or a bit string that can be handled by a computer, and refers to a bit or a bit string that can be handled without the computer considering the meaning and content indicated by each bit.

[Webアプリケーションシステム10の動作]
図3から図7を参照して、本実施形態に係るWebアプリケーションシステム10の動作を説明する。なお、本実施形態に係る複合機20及びPC100は、同一のユーザが所持しているものとする。
[Operation of Web application system 10]
The operation of the Web application system 10 according to the present embodiment will be described with reference to FIGS. 3 to 7. It is assumed that the multifunction device 20 and the PC 100 according to the present embodiment are owned by the same user.

図3において、PC100の制御プログラム114は、ユーザによるWebブラウザ112の操作に従って、通信部108を通じて、サーバ200にスクリプト208の取得要求を送信する(S100)。サーバ200のWebアプリケーション207は、通信部204を通じてPC100からスクリプト208の取得要求を受信すると(S110)、通信部204を通じてPC100にスクリプト208を送信する(S120)。PC100の制御プログラム114は、通信部108を通じてサーバ200からスクリプト208を受信すると(S130)、スクリプト208を実行する。具体的には、スクリプト208に含まれる認証スクリプト212に従って、機能スクリプト210の実行の認証を行う認証処理を開始する(S140)。図4、図5を参照して、認証処理の詳細を説明する。 In FIG. 3, the control program 114 of the PC 100 transmits a request for acquiring the script 208 to the server 200 through the communication unit 108 according to the operation of the Web browser 112 by the user (S100). When the Web application 207 of the server 200 receives the acquisition request of the script 208 from the PC 100 through the communication unit 204 (S110), the Web application 207 transmits the script 208 to the PC 100 through the communication unit 204 (S120). When the control program 114 of the PC 100 receives the script 208 from the server 200 through the communication unit 108 (S130), the control program 114 executes the script 208. Specifically, according to the authentication script 212 included in the script 208, the authentication process for authenticating the execution of the function script 210 is started (S140). The details of the authentication process will be described with reference to FIGS. 4 and 5.

S150において、認証スクリプト212は、図6(A)に示す、認証処理を行っていることをユーザに報知する認証処理報知画面60を、表示部106に表示する。ユーザが認証スクリプト212を実行する際に、認証が行われることを知らない場合がある。そのため、認証処理報知画面60を表示することで、ユーザは認証処理が行われていることを認知することができる。 In S150, the authentication script 212 displays the authentication process notification screen 60, which notifies the user that the authentication process is being performed, shown in FIG. 6A on the display unit 106. When the user executes the authentication script 212, he / she may not know that the authentication is performed. Therefore, by displaying the authentication processing notification screen 60, the user can recognize that the authentication processing is being performed.

S160において、認証スクリプト212は、PC100自身に設定されたローカルIPアドレスとサブネットマスクを取得する。 In S160, the authentication script 212 acquires the local IP address and subnet mask set in the PC100 itself.

S170において、認証スクリプト212は、サブネットマスクを取得できたか否かを判断する。否定判断する場合(S170:No)には、S175へ進む。S175において、認証スクリプト212は、サブネットマスクの値を「255.255.255.0」と決定する。これは、IPv4方式で割り振ったローカルIPアドレスでは、上位48ビットは、ネットワークアドレス部と定められているためである。そのため、S160のサブネットマスクの取得と、S170の処理は必須ではなく、S160でPC100のローカルIPアドレスのみを取得し、S175の処理でサブネットマスクの値を決定してもよい。 In S170, the authentication script 212 determines whether or not the subnet mask can be acquired. If a negative judgment is made (S170: No), the process proceeds to S175. In S175, the authentication script 212 determines the subnet mask value to be "255.255.255.0". This is because, in the local IP address allocated by the IPv4 method, the upper 48 bits are defined as the network address part. Therefore, the acquisition of the subnet mask of S160 and the processing of S170 are not indispensable, and only the local IP address of the PC100 may be acquired in S160 and the subnet mask value may be determined in the processing of S175.

一方で、S170において、認証スクリプト212は、肯定判断する場合(S170:Yes)及び、S175の処理の後には、S180へ進む。S180において、認証スクリプト212は、S160で取得した自身のIPアドレスからネットワークアドレス部を抽出する。この処理は、S160で取得、あるいはS175で決定したサブネットマスクと、S160で取得したIPアドレスとの論理演算を行うことで実行できる。このとき、サブネットマスクによって指定されているホストアドレス部のビット数を取得する。 On the other hand, in S170, the authentication script 212 proceeds to S180 when making an affirmative determination (S170: Yes) and after the processing of S175. In S180, the authentication script 212 extracts the network address part from its own IP address acquired in S160. This process can be executed by performing a logical operation between the subnet mask acquired in S160 or determined in S175 and the IP address acquired in S160. At this time, the number of bits of the host address part specified by the subnet mask is acquired.

S190において、認証スクリプト212は、ホストアドレス部を初期状態に設定する。初期状態では、ホストアドレス部を構成するビット列の全ビットを「0」に設定する。 In S190, the authentication script 212 sets the host address portion to the initial state. In the initial state, all the bits of the bit string constituting the host address part are set to "0".

S200において、認証スクリプト212は、ホストアドレス部とS180で抽出されたネットワークアドレス部とを合成して、仮IPアドレスを生成する。 In S200, the authentication script 212 synthesizes the host address part and the network address part extracted in S180 to generate a temporary IP address.

S210において、認証スクリプト212は、通信部108を通じて、S200で生成した仮IPアドレスに、HTTPリクエストを送信する。仮IPアドレスが、複合機20の有するローカルIPアドレスと一致する場合、このHTTPリクエストは、複合機20のHTTPサーバ37に送信され、S220からS230の処理が実行される。S220において、複合機20の制御プログラム35は、通信部27を通じてPC100からHTTPリクエストを受信し、S230において、通信部27を通じてPC100に、HTTPレスポンスとしてHTMLファイル40を送信する。 In S210, the authentication script 212 transmits an HTTP request to the temporary IP address generated in S200 through the communication unit 108. When the temporary IP address matches the local IP address of the multifunction device 20, this HTTP request is transmitted to the HTTP server 37 of the multifunction device 20, and the processes of S220 to S230 are executed. In S220, the control program 35 of the multifunction device 20 receives the HTTP request from the PC 100 through the communication unit 27, and in S230, transmits the HTML file 40 as an HTTP response to the PC 100 through the communication unit 27.

S240及びS250において、認証スクリプト212は、仮IPアドレスを用いたHTTP通信が成功したか否かを判断する。具体的には、S240において、認証スクリプト212は通信部108を通じてサーバ200から、HTTPレスポンスを受信したか否かを判断する。否定判断する場合(S24:No)には、HTTPリクエストを要求してから所定時間(例えば5秒)が経過したか否かを判断する(S250)。S250において、否定判断する場合(S250:No)は、S240へ戻り、HTTPレスポンスを受信する(S240:Yes)か、所定時間が経過する(S250:Yes)までS240及びS250を繰り返す。 In S240 and S250, the authentication script 212 determines whether or not the HTTP communication using the temporary IP address is successful. Specifically, in S240, the authentication script 212 determines whether or not the HTTP response has been received from the server 200 through the communication unit 108. When a negative determination is made (S24: No), it is determined whether or not a predetermined time (for example, 5 seconds) has elapsed since the request for the HTTP request (S250). In S250, when a negative determination is made (S250: No), the process returns to S240 and repeats S240 and S250 until the HTTP response is received (S240: Yes) or the predetermined time elapses (S250: Yes).

S240において肯定判断する場合(S240:Yes)には、S260へ進む。S260において、認証スクリプト212は、受信したHTTPレスポンスが、所定の外部通信装置から受信したHTTPレスポンスであるか否かを判断する。具体的には、認証スクリプト212は、S240で受信したHTMLファイル40(図7(A))からタグのみを抽出した文字列と、フォーマット50(図7(B))との文字列比較を行い、文字列が一致すれば、所定の外部通信装置であると判断する。フォーマット50は、所定の外部通信装置から受信するHTMLファイル40のタグのみを抽出した文字列である。所定の外部通信装置とは、予め決められた通信方式で通信した際に、予め決められたフォーマットに従ったデータをレスポンスする装置である。 If a positive judgment is made in S240 (S240: Yes), the process proceeds to S260. In S260, the authentication script 212 determines whether or not the received HTTP response is an HTTP response received from a predetermined external communication device. Specifically, the authentication script 212 compares the character string obtained by extracting only the tag from the HTML file 40 (FIG. 7 (A)) received in S240 with the character string of the format 50 (FIG. 7 (B)). , If the character strings match, it is determined that the device is a predetermined external communication device. The format 50 is a character string extracted from only the tags of the HTML file 40 received from a predetermined external communication device. A predetermined external communication device is a device that responds with data according to a predetermined format when communicating by a predetermined communication method.

S250において、肯定判断する場合(S250:Yes)及び、S260において、否定判断する場合(S260:No)には、S270へ進む。S270において、認証スクリプト212は、ホストアドレス部を構成するビット列の全ビットが「1」であるか否かを判断する。全ビットが「1」でない場合(S270:NO)には、まだホストアドレス部の全てのパターンについて通信を試行していない場合であると判断し、S280へ進む。S280において、認証スクリプト212は、ホストアドレス部のビット列を、インクリメントする。そしてS200へ戻る。 In the case of making an affirmative judgment in S250 (S250: Yes) and in the case of making a negative judgment in S260 (S260: No), the process proceeds to S270. In S270, the authentication script 212 determines whether or not all the bits of the bit string constituting the host address portion are "1". When all the bits are not "1" (S270: NO), it is determined that communication has not yet been tried for all the patterns of the host address part, and the process proceeds to S280. In S280, the authentication script 212 increments the bit string of the host address part. Then return to S200.

S270において、肯定判断する場合(S270:Yes)には、S360へ進む。S360において、認証スクリプト212は、図6の(C)に示す、認証に失敗したことを示す認証失敗画面64を表示部106に表示し、認証処理を終了する。 If a positive judgment is made in S270 (S270: Yes), the process proceeds to S360. In S360, the authentication script 212 displays the authentication failure screen 64 indicating that the authentication has failed, which is shown in FIG. 6C, on the display unit 106, and ends the authentication process.

一方、S260において、肯定判断する場合(S260:Yes)には、S370へ進む。 On the other hand, in the case of making an affirmative judgment in S260 (S260: Yes), the process proceeds to S370.

S370において、認証スクリプト212は、複合機20から受信したHTTPレスポンスであるHTMLファイル40を、通信部108を通じてサーバ200に送信する。 In S370, the authentication script 212 transmits the HTML file 40, which is the HTTP response received from the multifunction device 20, to the server 200 through the communication unit 108.

S380において、サーバ200のWebアプリケーション207は、通信部204を通じてPC100から、HTMLファイル40を受信する。 In S380, the Web application 207 of the server 200 receives the HTML file 40 from the PC 100 through the communication unit 204.

S390において、Webアプリケーション207は、HTMLファイル40から装置情報を抽出する。例えば、装置情報の一例である、シリアルナンバーを抽出する場合には、図7(A)に示す、「Serial.no」という文字列45を検索し、次の行のタグ46とタグ47で囲まれた文字列48をシリアルナンバーとして抽出する。なお、S260にて肯定判断(S260:Yes)する場合に、PC102の認証スクリプト212が、HTMLファイル40から装置情報を抽出する該処理を実行し、S370にて、抽出した装置情報を、通信部108を通じて、PC102からサーバ200へ送信してもよい。 In S390, the Web application 207 extracts device information from the HTML file 40. For example, when extracting the serial number, which is an example of device information, the character string 45 "Cerial.no" shown in FIG. 7A is searched, and the tag 46 and the tag 47 on the next line are enclosed. The character string 48 is extracted as a serial number. When a positive judgment (S260: Yes) is made in S260, the authentication script 212 of the PC 102 executes the process of extracting the device information from the HTML file 40, and the device information extracted in S370 is used as the communication unit. It may be transmitted from the PC 102 to the server 200 through 108.

S400において、Webアプリケーション207は、S390で抽出した装置情報が装置情報リスト216に登録されているか否かを判断する。具体的には、S390で抽出した装置情報と装置情報リスト216を照合し、一致する装置情報があるか否かを判断する。否定判断する場合(S400:No)には、通信部204を通じてPC100に、認証失敗情報を送信する(S410)。PC100の認証スクリプト212は、認証失敗情報を受信すると(S420)、図6(C)に示す、認証スクリプト212の認証に失敗したことを示す認証失敗画面64を表示部106に表示し(S430)、S290へ戻る。 In S400, the Web application 207 determines whether or not the device information extracted in S390 is registered in the device information list 216. Specifically, the device information extracted in S390 is collated with the device information list 216, and it is determined whether or not there is matching device information. When a negative determination is made (S400: No), authentication failure information is transmitted to the PC 100 through the communication unit 204 (S410). When the authentication script 212 of the PC 100 receives the authentication failure information (S420), the authentication failure screen 64 indicating that the authentication of the authentication script 212 has failed, which is shown in FIG. 6C, is displayed on the display unit 106 (S430). , Return to S290.

一方で、S400において、Webアプリケーション207が、肯定判断する場合(S400:Yes)には、S440へ進む。S440において、Webアプリケーション207は、通信部204を通じてPC100に、認証成功情報を送信する。 On the other hand, in S400, when the Web application 207 makes an affirmative judgment (S400: Yes), the process proceeds to S440. In S440, the Web application 207 transmits the authentication success information to the PC 100 through the communication unit 204.

PC100の認証スクリプト212は、S450において、通信部108を通じてサーバ200から、認証成功情報を受信する。 The authentication script 212 of the PC 100 receives the authentication success information from the server 200 through the communication unit 108 in S450.

S460において、認証スクリプト212は、機能スクリプト210の実行を許可し、図6(D)に示す、認証成功画面66を表示部106に表示し、認証処理を終了する。認証成功画面66には、認証スクリプト212の3つの機能を実行することができる機能ボタン67が配置され、ユーザは、機能ボタン67を操作部104のマウスでクリックすることで、機能スクリプト210を実行することができる。 In S460, the authentication script 212 permits the execution of the function script 210, displays the authentication success screen 66 shown in FIG. 6D on the display unit 106, and ends the authentication process. A function button 67 capable of executing the three functions of the authentication script 212 is arranged on the authentication success screen 66, and the user executes the function script 210 by clicking the function button 67 with the mouse of the operation unit 104. can do.

[本実施形態の作用効果]
上記の実施形態によれば、複合機20からHTMLファイル40を受信し(S240:Yes)且つ、HTMLファイル40により所定の外部通信装置であると判断した(S260:Yes)場合に、Webアプリケーション207の機能を実行する機能スクリプト210の実行を許可する(S460)。これにより、所定の外部通信装置を使用しているユーザに対して、アカウントを取得させることなく、Webアプリケーション207の実行を好適に許可することができる。
[Action and effect of this embodiment]
According to the above embodiment, when the HTML file 40 is received from the multifunction device 20 (S240: Yes) and the HTML file 40 determines that the HTML file 40 is a predetermined external communication device (S260: Yes), the Web application 207 The execution of the function script 210 that executes the function of (S460) is permitted. As a result, it is possible to preferably allow the user using the predetermined external communication device to execute the Web application 207 without acquiring an account.

また、上記の実施形態によれば、HTMLファイル40から抽出した装置情報が予めサーバ200内の装置情報リスト216に登録されている場合は(S400:Yes)、Webアプリケーションの208の機能を実行する機能スクリプト210の実行を許可する(S460)。そのため、Webアプリケーション207の提供者は、サーバ200に登録した外部通信装置を使用しているユーザに対して、Webアプリケーション207の実行を好適に許可することができる。 Further, according to the above embodiment, when the device information extracted from the HTML file 40 is registered in the device information list 216 in the server 200 in advance (S400: Yes), the 208 function of the Web application is executed. The execution of the function script 210 is permitted (S460). Therefore, the provider of the Web application 207 can preferably permit the user using the external communication device registered in the server 200 to execute the Web application 207.

また、上記の実施形態によれば、PC100のローカルIPアドレスを取得し(S160)、PC100のローカルIPアドレスからネットワーク部を抽出して(S180)、ホストアドレス部を生成し(S190)、それらを用いて仮IPアドレスを生成することで(S200)、通信する外部通信装置を特定するローカルIPアドレスを自動で生成している。これにより、複合機20を通信する外部通信装置として特定するローカルIPアドレスを、ユーザの手を煩わせることなく自動で取得できる。 Further, according to the above embodiment, the local IP address of the PC100 is acquired (S160), the network part is extracted from the local IP address of the PC100 (S180), the host address part is generated (S190), and they are generated. By generating a temporary IP address using (S200), a local IP address that specifies an external communication device to communicate with is automatically generated. As a result, the local IP address specified as the external communication device that communicates with the multifunction device 20 can be automatically acquired without bothering the user.

また、上記の実施形態によれば、装置情報を含んだHTMLファイル40を提供する機能を、複合機20が有する場合、所定の外部通信装置か否かを判断するための識別情報をレスポンスするための固有の機能を、複合機20に実装することなく、Webアプリケーション207の実行を好適に許可することができるため、開発コストを低減することができる。更に、HTMLファイル40から装置情報を抽出する処理をサーバ200で行う(S390)ことにより、PC100で実行する場合に比べて処理時間を短くすることができる。 Further, according to the above embodiment, when the multifunction device 20 has a function of providing the HTML file 40 including the device information, in order to respond with identification information for determining whether or not the multifunction device 20 is a predetermined external communication device. Since the execution of the Web application 207 can be preferably permitted without implementing the unique function of the above in the multifunction device 20, the development cost can be reduced. Further, by performing the process of extracting the device information from the HTML file 40 on the server 200 (S390), the processing time can be shortened as compared with the case of executing the device information on the PC 100.

<第2実施形態>
第2実施形態では、認証スクリプト712は、外部通信装置のローカルIPアドレスをユーザに入力させて取得し、Webアプリケーション707の実行の認証に成功した際に、通信した外部通信装置の能力に応じて、ユーザに実行を許可する機能スクリプト710を限定する形態である。なお、第2実施形態は、第1実施形態の複合機20がプリンタ600に置き換わった形態であり、第1実施形態と同様の構成であるものには、同じ番号を振り、説明を省略する。図8を参照して、Webアプリケーションシステム500の概略について説明する。第2実施形態のWebアプリケーションシステム500は、プリンタ600、PC650、サーバ700及びアクセスポイント80で構成されている。図9に示すように、プリンタ600は、CPU602、操作部604、表示部606、通信部608、印刷部610、記憶部612を主に備えており、第1実施形態の複合機20から読取部31を除いたものである。PC650は、CPU652、操作部654、表示部656、通信部658、記憶部660を主に備えており、第1実施形態のPC100と同様の構成である。サーバ700は、CPU702、通信部704、記憶部706を主に備え、第1実施形態のサーバ200と同様の構成をしており、記憶部706に記憶されている装置情報リスト710の装置情報それぞれに、製品の能力(例えば、印刷解像度、色数、スキャン解像度、スキャン機能やプリント機能といった各機能の有無)を示す能力情報を紐付けて記憶している。
<Second Embodiment>
In the second embodiment, the authentication script 712 causes the user to input and acquire the local IP address of the external communication device, and when the execution of the Web application 707 is successfully authenticated, the authentication script 712 responds to the ability of the external communication device to communicate. , Is a form that limits the function script 710 that allows the user to execute. In the second embodiment, the multifunction device 20 of the first embodiment is replaced with the printer 600, and the same numbers are assigned to those having the same configuration as that of the first embodiment, and the description thereof will be omitted. The outline of the Web application system 500 will be described with reference to FIG. The Web application system 500 of the second embodiment includes a printer 600, a PC 650, a server 700, and an access point 80. As shown in FIG. 9, the printer 600 mainly includes a CPU 602, an operation unit 604, a display unit 606, a communication unit 608, a printing unit 610, and a storage unit 612, and is a reading unit from the multifunction device 20 of the first embodiment. 31 is excluded. The PC 650 mainly includes a CPU 652, an operation unit 654, a display unit 656, a communication unit 658, and a storage unit 660, and has the same configuration as the PC 100 of the first embodiment. The server 700 mainly includes a CPU 702, a communication unit 704, and a storage unit 706, and has the same configuration as the server 200 of the first embodiment, and each device information in the device information list 710 stored in the storage unit 706 is provided. The ability information indicating the ability of the product (for example, print resolution, number of colors, scan resolution, presence / absence of each function such as scan function and print function) is stored in association with the ability information.

[Webアプリケーションシステム500の動作]
図10と図11を参照して、本実施形態に係るWebアプリケーションシステム500の動作を説明する。なお、図3に係る処理は第1実施形態と全て同一であるため、説明を省略する。また、図10、図11においても、第1実施形態と同様の処理は同じ番号を振り、説明を省略する。
[Operation of Web application system 500]
The operation of the Web application system 500 according to the present embodiment will be described with reference to FIGS. 10 and 11. Since all the processes according to FIG. 3 are the same as those in the first embodiment, the description thereof will be omitted. Further, also in FIGS. 10 and 11, the same processing as in the first embodiment is assigned the same number, and the description thereof will be omitted.

S900において、認証スクリプト712は、図12に示す、プリンタ650のIPアドレスの入力をユーザから受け付けるIPアドレス入力受付画面800を表示部656に表示する。ユーザはIPアドレス入力受付画面62のIPアドレスの入力領域802に、プリンタ650のIPアドレスを入力する。 In S900, the authentication script 712 displays the IP address input acceptance screen 800, which accepts the input of the IP address of the printer 650 from the user, shown in FIG. 12 on the display unit 656. The user inputs the IP address of the printer 650 into the IP address input area 802 of the IP address input reception screen 62.

S910において、認証スクリプト712は、通信部658を通じて、S900で受け付けたIPアドレスに、HTTPリクエストを送信する。所定時間以内にHTTPレスポンスを受信できなかった場合(S250:Yes)には、S360へ進み、認証失敗画面64を表示部656に表示した後に、S900へ戻る。 In S910, the authentication script 712 transmits an HTTP request to the IP address received in S900 through the communication unit 658. If the HTTP response cannot be received within the predetermined time (S250: Yes), the process proceeds to S360, the authentication failure screen 64 is displayed on the display unit 656, and then the process returns to S900.

一方で、HTTPレスポンスを受信できた場合(S240:Yes)には、S260へ進み、S400まで第1実施形態と同様の処理を行う。S400において、Webアプリケーション707が、肯定判断する場合(S400:Yes)には、S1000へ進む。S1000において、Webアプリケーション707は、通信部704を通じてPC650に、装置情報に紐づいて記憶されているプリンタ600の能力情報を送信する。 On the other hand, when the HTTP response can be received (S240: Yes), the process proceeds to S260 and the same processing as in the first embodiment is performed up to S400. If the Web application 707 makes an affirmative decision in S400 (S400: Yes), the process proceeds to S1000. In S1000, the Web application 707 transmits the capability information of the printer 600 stored in association with the device information to the PC 650 through the communication unit 704.

認証スクリプト712は、S1010において、通信部658を通じてサーバ200から、プリンタ600の能力情報を受信する。ここで、能力情報は、装置情報リストの中にS1010で抽出したシリアルナンバーと一致するものがあったことを示す認証成功情報の役割も兼ねている。 The authentication script 712 receives the capability information of the printer 600 from the server 200 through the communication unit 658 in S1010. Here, the capability information also serves as authentication success information indicating that there is a device information list that matches the serial number extracted in S1010.

認証スクリプト712は、S1010で能力情報を受信すると、S1020において、機能スクリプト710の実行の認証に成功したと判断し、能力情報に基づいて、プリンタ600が実行可能な機能スクリプト710を使用できる認証成功画面804(図12)を表示部656に表示する。本実施形態では、認証スクリプト712は、プリンタ600の能力情報から、Webアプリケーション707の提供する機能の中のスキャン機能を実行不可と判断し、プリンタ600が実行できる「プリント」、「はがき作成」に関する機能スクリプト710の実行を許可する。そして、認証スクリプト712は、プリンタ600が実行できる機能スクリプト710を実行することができる認証成功画面804を表示部656に表示し、認証処理を終了する。認証成功画面804には、プリンタ600が実行できないスキャンに関する機能スクリプト710を実行するためのボタンを除くWebアプリケーション707の機能を実行することができる機能ボタン810が配置されており、ユーザは、機能ボタン810を操作部654のマウスでクリックすることで、機能スクリプト710を実行することができる。 When the authentication script 712 receives the capability information in S1010, the authentication script 712 determines in S1020 that the execution of the function script 710 has been successfully authenticated, and based on the capability information, the printer 600 can use the function script 710 that can be executed. The screen 804 (FIG. 12) is displayed on the display unit 656. In the present embodiment, the authentication script 712 determines from the capability information of the printer 600 that the scanning function among the functions provided by the Web application 707 cannot be executed, and relates to "printing" and "postcard creation" that can be executed by the printer 600. Allows execution of function script 710. Then, the authentication script 712 displays the authentication success screen 804 capable of executing the function script 710 that can be executed by the printer 600 on the display unit 656, and ends the authentication process. On the authentication success screen 804, a function button 810 capable of executing a function of the Web application 707 excluding a button for executing a function script 710 related to scanning that the printer 600 cannot execute is arranged, and the user can use the function button. The function script 710 can be executed by clicking the 810 with the mouse of the operation unit 654.

[本実施形態の作用効果]
上記の実施形態によれば、通信する外部通信装置を特定するローカルIPアドレスをユーザに入力させる(S900)。従って、CPU102は、通信する外部通信装置を特定するローカルIPアドレスを短時間に特定することができる。
[Action and effect of this embodiment]
According to the above embodiment, the user is made to input a local IP address that identifies an external communication device to communicate with (S900). Therefore, the CPU 102 can specify the local IP address that identifies the external communication device to communicate with in a short time.

また、上記の実施形態によれば、プリンタ600が実行可能であるWebアプリケーション707の機能スクリプト210のみ、実行を許可する(S1020)。これにより、ユーザは、Webアプリケーション707を利用する際に、プリンタ600が実行できない機能を実行することがなくなるため、ユーザにとって好適にWebアプリケーションの実行を許可することができる。 Further, according to the above embodiment, execution is permitted only for the function script 210 of the Web application 707 that can be executed by the printer 600 (S1020). As a result, when the user uses the Web application 707, the printer 600 does not execute a function that cannot be executed, so that the user can preferably permit the execution of the Web application.

<変形例>
第1実施形態では、S260にて、HTMLファイル40とフォーマット50が一致し、且つS400にて、HTMLファイル40から抽出したシリアルナンバーが装置情報リストに登録されていた場合に、認証成功とし、機能スクリプト210の実行を許可する。しかしながら、S370からS420及びS440、S450の処理は必須ではなく、S260において、HTMLファイル40とフォーマット50が一致した場合には(S260:Yes)、認証成功として、S460の処理を実行し、HTMLファイル40とフォーマット50が一致しない場合には(S260:No)、認証失敗として、S430の処理を実行する形態でもよい。
<Modification example>
In the first embodiment, when the HTML file 40 and the format 50 match in S260 and the serial number extracted from the HTML file 40 is registered in the device information list in S400, the authentication is successful and the function is performed. Allow execution of script 210. However, the processing of S370 to S420, S440, and S450 is not indispensable, and if the HTML file 40 and the format 50 match in S260 (S260: Yes), the processing of S460 is executed as the authentication is successful, and the HTML file is executed. If the format 40 and the format 50 do not match (S260: No), it may be a form in which the process of S430 is executed as an authentication failure.

また、S260の処理で、通信する外部通信装置が、所定の外部通信装置であるか否かを判断する方法は、HTMLファイル40とフォーマット50を比較する方法に限られない。例えば、HTTPサーバ37に、所定の外部通信装置であることを示す、予め定められた値を返す固有の機能を実装し、S260において、定められた値が返ってきたか否かによって、所定の外部通信装置であるか否かを判断してもよい。 Further, the method of determining whether or not the external communication device to be communicated with in the process of S260 is a predetermined external communication device is not limited to the method of comparing the HTML file 40 and the format 50. For example, the HTTP server 37 is equipped with a unique function of returning a predetermined value indicating that it is a predetermined external communication device, and a predetermined external value is determined depending on whether or not a predetermined value is returned in S260. It may be determined whether or not it is a communication device.

また、装置情報リスト216をスクリプト208と共にサーバ200から取得し、S400の処理をPC100で行ってもよい。 Further, the device information list 216 may be acquired from the server 200 together with the script 208, and the processing of S400 may be performed by the PC 100.

また、S900において、S160からS180までの処理で取得したネットワークアドレス部をIPアドレス入力受付画面800で表示し、プリンタ600のホストアドレス部のみの入力を受け付けてもよい。 Further, in S900, the network address portion acquired in the processes from S160 to S180 may be displayed on the IP address input reception screen 800, and the input of only the host address portion of the printer 600 may be accepted.

また、S1020において、能力情報に基づいて、機能スクリプト210が提供する機能の中から、プリンタ600が実行可能である機能を判断しているが、この判断は、サーバ200で行ってもよい。 Further, in S1020, the function that the printer 600 can execute is determined from the functions provided by the function script 210 based on the capability information, but this determination may be performed by the server 200.

また、S1020の代わりに、あらかじめ装置情報リスト710の各シリアルナンバーに、機能スクリプト710が提供する各機能のいずれが実行可能であるか否かを示す情報を紐付けて記憶しておく方法でもよい。 Further, instead of S1020, a method may be used in which information indicating which of the functions provided by the function script 710 can be executed is associated with each serial number in the device information list 710 in advance and stored. ..

S230の処理は、第1送信処理の一例である。S120の処理は、第2送信処理の一例である。S130の処理は、第1受信処理の一例である。S200及びS900の処理は、特定処理の一例である。S210及びS910の処理は、要求処理の一例である。S260の処理は、第1判断処理の一例である。S460の処理は、実行許可処理の一例である。S380の処理は、第2受信処理の一例である。S400に処理は、第2判断処理の一例である。S410及びS440の処理は、第3送信処理の一例である。S370の処理は、第4送信処理の一例である。S420及びS450の処理は、第3受信処理の一例である。S160の処理は、取得処理の一例である。S180の処理は、ネットワーク抽出処理の一例である。S190の処理は、ホストアドレス生成処理の一例である。S200の処理は、IPアドレス生成処理の一例である。S900の処理は、受付処理の一例である。S390の処理は、第1抽出処理及び第2抽出処理の一例である。S1000の処理は、請求項7の第3送信処理の一例である。S1010の処理は、請求項7の第3受信処理の一例である。S1020の処理は、請求項7の実行許可処理の一例である。 The process of S230 is an example of the first transmission process. The process of S120 is an example of the second transmission process. The process of S130 is an example of the first reception process. The processes of S200 and S900 are examples of specific processes. The processing of S210 and S910 is an example of request processing. The process of S260 is an example of the first determination process. The process of S460 is an example of the execution permission process. The process of S380 is an example of the second reception process. The process in S400 is an example of the second determination process. The processing of S410 and S440 is an example of the third transmission processing. The process of S370 is an example of the fourth transmission process. The processing of S420 and S450 is an example of the third reception processing. The process of S160 is an example of the acquisition process. The process of S180 is an example of the network extraction process. The process of S190 is an example of the host address generation process. The process of S200 is an example of the IP address generation process. The processing of S900 is an example of reception processing. The process of S390 is an example of the first extraction process and the second extraction process. The process of S1000 is an example of the third transmission process of claim 7. The process of S1010 is an example of the third reception process of claim 7. The process of S1020 is an example of the execution permission process of claim 7.

PC100は情報処理装置の一例である。複合機20、プリンタ600は外部通信装置の一例である。スクリプトはプログラムの一例である。CPU21及び記憶部33は、第1制御部の一例である。CPU202及び記憶部206は、第2制御部の一例である。CPU102及び記憶部110は、第3制御部の一例である。HTMLファイル40は識別情報の一例である。 The PC 100 is an example of an information processing device. The multifunction device 20 and the printer 600 are examples of external communication devices. The script is an example of a program. The CPU 21 and the storage unit 33 are examples of the first control unit. The CPU 202 and the storage unit 206 are examples of the second control unit. The CPU 102 and the storage unit 110 are examples of the third control unit. The HTML file 40 is an example of identification information.

20 複合機
600 プリンタ
100、650 PC
200、700 サーバ
21、102、202、602、652、702 CPU
27、108、204、608、658、704 通信部
33、110、206、612、660、706 記憶部
20 Multifunction device 600 Printer 100, 650 PC
200, 700 server 21, 102, 202, 602, 652, 702 CPU
27, 108, 204, 608, 658, 704 Communication unit 33, 110, 206, 612, 660, 706 Storage unit

Claims (11)

情報処理装置と通信する外部通信装置と、前記情報処理装置と通信するサーバと、前記サーバから受信したプログラムをWebブラウザ上で実行する前記情報処理装置と、を有するWebアプリケーションシステムであって、
前記プログラムは、
前記プログラムの機能を実行する機能スクリプトと、
前記機能スクリプトの実行の認証を行う認証スクリプトと、
から構成されており、
前記外部通信装置は、
前記情報処理装置と通信する第1通信部と、
前記外部通信装置が所定の外部通信装置であるかを識別するための識別情報を記憶する第1記憶部と、
前記第1通信部を通じて、前記識別情報を前記情報処理装置に送信する第1送信処理を実行する第1制御部と、
を備えており、
前記サーバは、
前記情報処理装置と通信する第2通信部と、
前記プログラムを記憶する第2記憶部と、
前記第2通信部を通じて、前記プログラムを前記情報処理装置に送信する第2送信処理を実行する第2制御部と、
を備えており、
前記情報処理装置は、
第3通信部と、
前記Webブラウザを記憶する第3記憶部と、
第3制御部と、
を備えており、
前記第3制御部は、
前記第3通信部を通じて、前記プログラムを前記サーバから受信する第1受信処理を実行し、
前記第3制御部は、
通信する前記外部通信装置を特定する特定処理と、
前記第3通信部を通じて、前記特定処理により特定した前記外部通信装置に、前記識別情報を要求する要求処理と、
前記要求処理により要求した前記識別情報を前記外部通信装置から受信した場合に、前記識別情報に基づいて、前記外部通信装置が前記所定の外部通信装置であるか否かを判断する第1判断処理と、
前記第1判断処理にて前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記機能スクリプトの実行を許可する実行許可処理と、
を前記認証スクリプトにより実行するWebアプリケーションシステム。
A Web application system having an external communication device that communicates with an information processing device, a server that communicates with the information processing device, and the information processing device that executes a program received from the server on a Web browser.
The program
A function script that executes the function of the program and
An authentication script that authenticates the execution of the function script and
Consists of
The external communication device is
The first communication unit that communicates with the information processing device,
A first storage unit that stores identification information for identifying whether the external communication device is a predetermined external communication device, and
A first control unit that executes a first transmission process for transmitting the identification information to the information processing device through the first communication unit.
Is equipped with
The server
A second communication unit that communicates with the information processing device,
A second storage unit that stores the program and
A second control unit that executes a second transmission process for transmitting the program to the information processing device through the second communication unit.
Is equipped with
The information processing device
With the 3rd communication department
A third storage unit that stores the Web browser,
With the third control unit
Is equipped with
The third control unit
Through the third communication unit, the first reception process of receiving the program from the server is executed.
The third control unit
Specific processing for identifying the external communication device to communicate with, and
A request process for requesting the identification information from the external communication device specified by the specific process through the third communication unit, and a request process.
First determination process for determining whether or not the external communication device is the predetermined external communication device based on the identification information when the identification information requested by the request processing is received from the external communication device. When,
When the external communication device is determined to be the predetermined external communication device in the first determination process, the execution permission process for permitting the execution of the function script and the execution permission process.
Is a Web application system that executes the above authentication script.
前記識別情報は、前記外部通信装置それぞれに固有に割り当てられた装置情報を含んでおり、
前記第2記憶部は、
予め登録された識別情報のリストである装置情報リストを、更に記憶し、
前記第2制御部は、
前記第2通信部を通じて、前記識別情報を、前記情報処理装置から受信する第2受信処理と、
前記第2受信処理で受信した前記識別情報に含まれる装置情報が、前記装置情報リスト内に含まれるか否かを判断する第2判断処理と、
前記第2通信部を通じて、前記第2判断処理にて判断した判断結果を、前記情報処理装置に送信する第3送信処理と、
を更に実行し、
前記第3制御部は、
前記第1判断処理にて前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記第3通信部を通じて、前記識別情報を、前記サーバに送信する第4送信処理と、
前記第3通信部を通じて、前記判断結果を、前記サーバから受信する第3受信処理と、
を前記認証スクリプトにより、更に実行し、
前記実行許可処理において、前記第3受信処理にて受信した前記判断結果が、前記装置情報が前記装置情報リストに含まれることを示す場合に、前記機能スクリプトの実行を許可することを特徴とする請求項1記載のWebアプリケーションシステム。
The identification information includes device information uniquely assigned to each of the external communication devices.
The second storage unit is
The device information list, which is a list of identification information registered in advance, is further memorized.
The second control unit
A second reception process for receiving the identification information from the information processing device through the second communication unit, and
A second determination process for determining whether or not the device information included in the identification information received in the second reception process is included in the device information list, and a second determination process.
Through the second communication unit, a third transmission process of transmitting the determination result determined by the second determination process to the information processing apparatus, and
Further execute,
The third control unit
When the external communication device is determined to be the predetermined external communication device in the first determination process, the fourth transmission process of transmitting the identification information to the server through the third communication unit, and the fourth transmission process.
A third reception process for receiving the determination result from the server through the third communication unit, and
Is further executed by the above authentication script,
In the execution permission process, when the determination result received in the third reception process indicates that the device information is included in the device information list, the execution of the function script is permitted. The Web application system according to claim 1.
前記第3制御部は、
前記情報処理装置のIPアドレスを取得する取得処理と、
前記情報処理装置のIPアドレスから、ネットワークのアドレスを表す部分であるネットワークアドレス部を抽出するネットワークアドレス抽出処理と、
ホストアドレス部を生成するホストアドレス生成処理と、
前記ネットワークアドレス抽出処理で抽出した前記ネットワークアドレス部と、前記ホストアドレス生成処理で生成した前記ホストアドレス部とを用いて、前記外部通信装置のIPアドレスを生成するIPアドレス生成処理と、
を前記認証スクリプトにより、更に実行し、
前記特定処理は、前記IPアドレス生成処理で生成した前記外部通信装置のIPアドレスを用いて、通信する前記外部通信装置を特定することを特徴とする請求項1または2に記載のWebアプリケーションシステム。
The third control unit
The acquisition process for acquiring the IP address of the information processing device and
A network address extraction process that extracts a network address part, which is a part representing a network address, from the IP address of the information processing device.
Host address generation process to generate the host address part and
An IP address generation process for generating an IP address of the external communication device by using the network address part extracted by the network address extraction process and the host address part generated by the host address generation process.
Is further executed by the above authentication script,
The Web application system according to claim 1 or 2, wherein the identification process specifies the external communication device to communicate with by using the IP address of the external communication device generated in the IP address generation process.
前記第3制御部は、
前記外部通信装置のIPアドレスの入力を受け付ける受付処理と、
を前記認証スクリプトにより、更に実行し、
前記特定処理は、前記受付処理で受け付けた前記IPアドレスを用いて、通信する前記外部通信装置を特定することを特徴とする請求項1または2に記載のWebアプリケーションシステム。
The third control unit
The reception process that accepts the input of the IP address of the external communication device, and
Is further executed by the above authentication script,
The Web application system according to claim 1 or 2, wherein the specific process specifies the external communication device to communicate with by using the IP address received in the reception process.
前記識別情報は、HTML(HyperText Markup Languageの略)ファイルであり、
前記第2制御部は、
前記第2受信処理にて受信した前記HTMLファイルから前記装置情報を抽出する第1抽出処理と、
を実行することを特徴とする請求項2に記載のWebアプリケーションシステム。
The identification information is an HTML (abbreviation of HyperText Markup Language) file.
The second control unit
The first extraction process for extracting the device information from the HTML file received in the second reception process, and the first extraction process.
The Web application system according to claim 2, wherein the Web application system is executed.
前記識別情報は、HTML(HyperText Markup Languageの略)ファイルであり、
前記第1判断処理にて前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記HTMLファイルから前記装置情報を抽出する第2抽出処理と、
前記第4送信処理において、前記第2抽出処理にて抽出した装置情報を、前記サーバに送信し、
前記第2制御部は、
前記第2受信処理において、前記第2抽出処理にて抽出した装置情報を、前記情報処理装置から受信することを特徴とする請求項2に記載のWebアプリケーションシステム。
The identification information is an HTML (abbreviation of HyperText Markup Language) file.
A second extraction process for extracting the device information from the HTML file when the external communication device is determined to be the predetermined external communication device in the first determination process.
In the fourth transmission process, the device information extracted in the second extraction process is transmitted to the server.
The second control unit
The Web application system according to claim 2, wherein in the second reception process, the device information extracted by the second extraction process is received from the information processing device.
前記第2記憶部は、
前記装置情報リストにおける各識別情報に、前記外部通信装置の能力を示す能力情報を対応付けて、更に記憶し、
前記第2制御部は、
前記第3送信処理において、前記第2判断処理にて前記装置情報リスト内に前記識別情報が含まれると判断した場合に、前記識別情報に対応する前記能力情報を送信し、
前記第3制御部は、
前記第3受信処理において、前記識別情報に対応する前記能力情報を受信し、
前記実行許可処理において、前記第受信処理にて受信した前記能力情報に基づいて、前記外部通信装置が実行可能である機能スクリプトの実行を許可することを特徴とする請求項2記載のWebアプリケーションシステム。
The second storage unit is
Each identification information in the device information list is associated with the ability information indicating the ability of the external communication device, and further stored.
The second control unit
In the third transmission process, when it is determined in the second determination process that the identification information is included in the device information list, the capability information corresponding to the identification information is transmitted.
The third control unit
In the third reception process, the capability information corresponding to the identification information is received, and the capability information is received.
The Web application according to claim 2, wherein in the execution permission process, execution of a function script that can be executed by the external communication device is permitted based on the capability information received in the third reception process. system.
制御部と、
Webブラウザを記憶する記憶部と、
サーバ及び外部通信装置と通信する通信部と、
を備えた情報処理装置のWebブラウザ上で、前記サーバから取得し、前記制御部によって実行可能なプログラムであって、
前記プログラムは、
前記プログラムの機能を実行する機能スクリプトと、
前記機能スクリプトの実行の認証を行う認証スクリプトと、
から構成されており、
前記制御部は、
通信する前記外部通信装置を特定する特定処理と、
前記通信部を通じて、前記外部通信装置が所定の外部通信装置であるかを識別するための識別情報を、前記特定処理により特定した前記外部通信装置に要求する第1要求処理と、
前記第1要求処理により要求した前記識別情報を前記外部通信装置から受信した場合に、前記識別情報に基づいて、前記外部通信装置が前記所定の外部通信装置であるか否かを判断する第1判断処理と、
前記第1判断処理にて、前記外部通信装置が前記所定の外部通信装置であると判断した場合に、前記機能スクリプトの実行を許可する実行許可処理と、
を前記認証スクリプトにより、実行するプログラム。
Control unit and
A storage unit that stores the Web browser and
A communication unit that communicates with servers and external communication devices,
A program that can be acquired from the server and executed by the control unit on the Web browser of the information processing device provided with the above.
The program
A function script that executes the function of the program and
An authentication script that authenticates the execution of the function script and
Consists of
The control unit
Specific processing for identifying the external communication device to communicate with, and
A first request process for requesting the external communication device specified by the specific process for identification information for identifying whether the external communication device is a predetermined external communication device through the communication unit.
When the identification information requested by the first request processing is received from the external communication device, the first determination is made based on the identification information whether or not the external communication device is the predetermined external communication device. Judgment processing and
In the first determination process, when it is determined that the external communication device is the predetermined external communication device, the execution permission process for permitting the execution of the function script and the execution permission process.
A program that executes the above authentication script.
前記情報処理装置のIPアドレスを取得する取得処理と、
前記情報処理装置のIPアドレスから、ネットワークのアドレスを表す部分であるネットワークアドレス部を抽出するネットワークアドレス抽出処理と、
ホストアドレス部を生成するホストアドレス生成処理と、
前記ネットワークアドレス抽出処理で抽出した前記ネットワークアドレス部と、前記ホストアドレス生成処理で生成した前記ホストアドレス部とを用いて、前記外部通信装置のIPアドレスを生成するIPアドレス生成処理と、
を前記認証スクリプトは前記制御部に更に実行させ、
前記特定処理は、前記IPアドレス生成処理で生成した前記外部通信装置のIPアドレスを用いて、通信する前記外部通信装置を特定することを特徴とする請求項8に記載のプログラム。
The acquisition process for acquiring the IP address of the information processing device and
A network address extraction process that extracts a network address part, which is a part representing a network address, from the IP address of the information processing device.
Host address generation process to generate the host address part and
An IP address generation process for generating an IP address of the external communication device by using the network address part extracted by the network address extraction process and the host address part generated by the host address generation process.
The authentication script is further executed by the control unit.
The program according to claim 8, wherein the identification process specifies the external communication device to communicate with by using the IP address of the external communication device generated in the IP address generation process.
前記外部通信装置のIPアドレスの入力を受け付ける受付処理と、
を前記認証スクリプトは前記制御部に更に実行させ、
前記特定処理は、前記受付処理で受け付けた前記IPアドレスを用いて、通信する前記外部通信装置を特定することを特徴とする請求項8に記載のプログラム。
The reception process that accepts the input of the IP address of the external communication device, and
The authentication script is further executed by the control unit.
The program according to claim 8, wherein the specific process identifies the external communication device to communicate with by using the IP address received in the reception process.
前記要求処理において、HTMLファイルを要求し、
前記HTMLファイルから前記識別情報を抽出する第1抽出処理と、
を前記認証スクリプトは前記制御部に更に実行させることを特徴とする請求項8乃至10のいずれかに記載のプログラム。
In the request processing, the HTML file is requested and
The first extraction process for extracting the identification information from the HTML file, and
The program according to any one of claims 8 to 10, wherein the authentication script is further executed by the control unit.
JP2017048212A 2017-03-14 2017-03-14 Programs and information processing equipment Active JP6883278B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017048212A JP6883278B2 (en) 2017-03-14 2017-03-14 Programs and information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017048212A JP6883278B2 (en) 2017-03-14 2017-03-14 Programs and information processing equipment

Publications (2)

Publication Number Publication Date
JP2018151912A JP2018151912A (en) 2018-09-27
JP6883278B2 true JP6883278B2 (en) 2021-06-09

Family

ID=63681753

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017048212A Active JP6883278B2 (en) 2017-03-14 2017-03-14 Programs and information processing equipment

Country Status (1)

Country Link
JP (1) JP6883278B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7430432B1 (en) 2023-06-27 2024-02-13 株式会社サイエンスアーツ Information processing device, information processing method, and information processing program

Also Published As

Publication number Publication date
JP2018151912A (en) 2018-09-27

Similar Documents

Publication Publication Date Title
US10225416B2 (en) Server storing authentication information in association with device information in storage
JP6421643B2 (en) Image forming apparatus, server apparatus, and communication system
US10225254B2 (en) Server transmitting device information assigned to service identification information
JP6202048B2 (en) Image processing system, cloud server, image processing apparatus, and program
JP2016162043A (en) Image forming apparatus, server device, communication system, and program
US10136005B2 (en) Image processing apparatus and image processing system capable of generating scan data and metadata
JP6421644B2 (en) Image forming apparatus, server apparatus, and communication system
JP6451053B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP2017139013A (en) Printing system, information processing device and program
JP6883278B2 (en) Programs and information processing equipment
US9235794B2 (en) Information processing device, non-transitory computer readable medium, and information processing method
JP6339167B2 (en) Multifunction machine, scan service method, and scan service program
JP5448516B2 (en) Authentication system, authentication method, and information processing apparatus
JP6390158B2 (en) Information processing system, information processing method, and program
JP6743622B2 (en) Relay server and system
JP2017220705A (en) System and image forming apparatus
US20160088171A1 (en) Image processing apparatus and non-transitory computer readable medium
US8570578B2 (en) Image processing apparatus, uploading method, and non-transitory computer-readable recording medium encoded with uploading program for outputting a transmission complete signal as a dummy signal
JP2009053792A (en) Office equipment with print function, print log creation method, and program thereof
JP6693196B2 (en) program
JP6582741B2 (en) Relay device and communication system
JP7415705B2 (en) Image forming apparatus, image forming method, image forming program, and image forming system
JP6439318B2 (en) Information processing apparatus, image reading apparatus, and program
JP2019128885A (en) Information processing apparatus and method for controlling information processing apparatus
JP2019096254A (en) Print controller, control method for print controller, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210119

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210312

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210422

R150 Certificate of patent or registration of utility model

Ref document number: 6883278

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150