The present application claims priority to and incorporates by reference the entire contents of Japanese Patent Application No. 2015-055383 filed in Japan on Mar. 18, 2015, Japanese Patent Application No. 2015-058402 filed in Japan on Mar. 20, 2015 and Japanese Patent Application No. 2016-048497 filed in Japan on Mar. 11, 2016.
1. Field of the Invention
The present invention relates to an information processing apparatus, an information processing method, and an information processing system.
2. Description of the Related Art
Devices, such as multifunction peripherals, are known, which are able to be operated from browsers for browsing web pages. Such a device has an application programming interface (API) for controlling functions of a scanner, a printer, or the like, from a browser. Further, a technique for generating a Web page for operation, which is for operating a device, such as a scanner or a printer, by use of attribute information for each device, has been disclosed (see, for example, Japanese Patent Application Laid-open No. 2008-015695).
When plural setting conditions set on a Web application are in a conflicting relation with one another in terms of constraints at a device side, the set setting conditions may not be able to be executed at the device side. However, conventionally, measures in consideration of the setting conditions in the conflicting relation have not been taken, and it has been difficult to easily make a control program operating on a browser compatible with a new device.
It is an object of the present invention to at least partially solve the problems in the conventional technology.
An information processing apparatus has a browser that displays a screen on a display unit and includes a processor and a storage unit, a communication unit, first to third obtaining units, and a detecting unit. The storage unit stores therein first setting information prescribing therein setting conditions that are able to be set when the information processing apparatus executes processing and that are associated with setting values settable for each setting item; and conflict information indicating conflicting relations among the setting conditions that conflict when the information processing apparatus executes the processing. The communication unit accesses, via the browser, a Web application installed in an external apparatus, and obtains, from the external apparatus, a screen to be displayed on the display unit and one or more scripts. The first obtaining unit functions when the processor executes the obtained one or more scripts on the browser, and that obtains the first setting information stored in the storage unit. The second obtaining unit functions when the processor executes the obtained one or more scripts on the browser, and that obtains, from the Web application, second setting information prescribing therein the setting conditions set on the Web application that transmits a processing request to the information processing apparatus. The third obtaining unit functions when the processor executes the obtained one or more scripts on the browser, and that obtains the conflict information stored in the storage unit. The detecting unit functions when the processor executes the obtained one or more scripts on the browser, and that detects, based on the conflict information obtained by the third obtaining unit, setting conditions in a conflicting relation, from the setting conditions prescribed in the second setting information.
The above and other objects, features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.
Hereinafter, with reference to the appended drawings, embodiments of an information processing apparatus, an information processing method, an information processing program, and an information processing system, according to the present invention, will be described in detail. The present invention is not limited by these embodiments.
The server apparatus 20 and the information processing apparatus 30 are connected to each other via a network 12. The network 12 may be, for example: a network, such as the Internet connected to the public; or a local network in a firm or the like. The network 12 may be wired or wireless.
The server apparatus 20 is accessed from the information processing apparatus 30.
The server apparatus 20 has a network I/F 21, and a Web application 24. The network I/F 21 is an interface for implementing communication with another apparatus via the network 12.
The Web application 24 is accessed from the information processing apparatus 30, via a later described browser of the information processing apparatus 30. The Web application 24 includes an information providing unit 22, and an application processing unit 23.
The application processing unit 23 is accessed from the information processing apparatus 30, via the browser of a later described information processing unit 35 of the information processing apparatus 30. A user accesses the application processing unit 23 via the browser of the information processing apparatus 30, and sets, on the Web application 24, various setting conditions of processing executed by the information processing apparatus 30. The application processing unit 23 manages the set setting conditions. The Web application 24 transmits a processing request including the setting conditions set on the Web application 24, to the information processing apparatus 30. Details of the setting conditions will be described later.
The information providing unit 22 provides one or more scripts to the information processing apparatus 30 via the network 12. These scripts are provided to the information processing apparatus 30 from the server apparatus 20 when the information processing apparatus 30 obtains an operation program from the server apparatus 20 and executes the operation program. The operation program is a hypertext markup language (HTML) file described in HTML, and these scripts are embedded in the operation program. Further, in the operation program, information (for example, basic items, a frame to be used in display, and the like) is described, which is used in generation of a screen to be displayed from the server apparatus 20 on a display unit (a later described operation display unit 34) of the information processing apparatus 30. The screen is a user interface that displays thereon various types of information and images and receives operating instructions from the user.
The one or more scripts include, for example, plural scripts. These scripts are script programs to be executed on the browser of the information processing apparatus 30. These scripts are described, for example, in hypertext markup language (HTML).
The information processing apparatus 30 includes a processor. The information processing apparatus 30 has a network I/F 31, a device 36, the operation display unit 34, and the information processing unit 35. The network I/F 31 is an interface for transmitting and receiving information to and from another apparatus via the network 12.
The device 36 is a device that executes various types of processing. The device 36 has, for examples, at least one function of: a scanner; a printer; and a facsimile. In this embodiment, an example, where the device 36 is a printer 32, will be described.
The printer 32 prints out text, images, and the like, according to data, on sheets of paper or the like. The information processing apparatus 30 may have a configuration including another device 36.
The operation display unit 34 displays information to the user and receives input from the user. The operation display unit 34 is, for example, a touch panel. Further, the operation display unit 34 may have operation buttons, a mouse, a keyboard, or the like.
The information processing unit 35 has a browser 41 that displays a screen on the operation display unit 34. The information processing unit 35 accesses, via the browser 41, the Web application 24 installed in the server apparatus 20, and obtains the operation program from the server apparatus 20. Thereby, the information processing unit 35 obtains a screen to be displayed on the operation display unit 34 and the one or more scripts from the server apparatus 20. By executing each of the one or more scripts on the browser 41, the information processing unit 35 functions as a control program that controls the device 36.
In detail, the information processing unit 35 has the browser 41, and a program interface unit 42.
The program interface unit 42 is a software interface for controlling operation of the printer 32 from the browser 41. The program interface unit 42 controls the printer 32 according to various requests from the browser 41.
The program interface unit 42 includes a storage unit 42E, an authentication unit 42C, and an execution control unit 42D. The storage unit 42E includes a first management unit 42A, and a second management unit 42B.
The first management unit 42A stores therein first setting information. The first setting information is information prescribing therein setting conditions, which are able to be set when the information processing apparatus 30 executes processing, and which are associated with setting values that are able to be set for each setting item. That is, the first setting information is information prescribing therein setting conditions, which are able to be set when the device 36 executes processing.
The setting items included in the setting conditions prescribed in the first setting information 64 are information indicating functions that are able to be specified and changed by the user, among various functions installed in the device 36. The setting items are, for example, print color, print side, tray loaded with paper to be used in printing, number of copies, and the like. The setting items are not limited to these examples.
The setting values included in the setting conditions prescribed in the first setting information 64 are values corresponding to the respective setting items. The first setting information 64 prescribes therein, as “list of setting values”, which is the setting values included in the setting conditions, possible values of setting values that are able to be set in the device 36. For example, in the first setting information 64; as “list of setting values” corresponding to the setting item, “print color (printColor)”: “black and white”; “gray”; and “automatic setting”, are associated therewith.
Returning to
As illustrated in
A configuration may be adopted, in which plural types of devices 36 are connected to the information processing unit 35. The plural types of devices 36 are different from each other in at least one of: their models; and functions installed therein.
In this case, the first management unit 42A may prerecord and manage the first setting information 64 corresponding to each of the respective devices 36. Further, the second management unit 42B may prerecord and manage the conflict information 66 corresponding to each of the respective devices 36.
Returning to
Next, the browser 41 will be described.
The browser 41 includes a communication unit 51, a display control unit 52, a receiving unit 53, a first obtaining unit 55, a second obtaining unit 56, a third obtaining unit 57, a detecting unit 58, and an executing unit 59. Each of these functional units functions when the processor of the information processing apparatus 30 executes, on the browser 41, the scripts obtains from the server apparatus 20.
The communication unit 51 accesses, via the browser 41, the Web application 24 installed in the server apparatus 20, and obtains, from the server apparatus 20, a screen to be displayed on the operation display unit 34 and the one or more scripts.
In this embodiment, a case, where the one or more scripts include plural scripts, will be described. Specifically, in this embodiment, for example, a case, where the one or more scripts include a first script, a second script, a third script, and a control script, will be described.
That is, in this embodiment, the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, and the detecting unit 58 respectively function when different scripts (the first script, the second script, the third script, and the control scripts) are respectively executed on the browser 41 by the processor.
The receiving unit 53 receives an operating instruction by the user of the operation display unit 34.
The first obtaining unit 55 functions when the processor executes the first script on the browser 41, and obtains the first setting information 64 from the first management unit 42A.
In detail, the first obtaining unit 55 obtains the first setting information 64 from the first management unit 42A. In a case where the first management unit 42A manages the first setting information 64 corresponding to each of the plural types of devices 36, the first obtaining unit 55 obtains the first setting information 64 corresponding to the device 36 to be executed from the first management unit 42A. Information indicating the device 36 to be executed may be obtained from the server apparatus 20, or may be obtained from the operation display unit 34.
The second obtaining unit 56 functions when the processor executes the second script on the browser 41. The second obtaining unit 56 obtains second setting information from the Web application 24 of the server apparatus 20.
The second setting information is information prescribing therein setting conditions set on the Web application 24 that transmits a processing request to the information processing apparatus 30.
As described above, the setting items included in the setting conditions prescribed in the second setting information 62 are, for example, print color, print side, tray loaded with paper to be used in printing, number of copies, and the like. The setting items are not limited to these examples.
The setting values included in the setting conditions prescribed in the second setting information 62 are set, for example, by operating instructions from the user via the operation display unit 34 of the information processing apparatus 30. That is, by accessing the Web application 24 of the server apparatus 20 via the browser 41 from the information processing apparatus 30, the browser 41 of the information processing apparatus 30 displays the lists of setting values included in the setting conditions prescribed in the second setting information 62 on the operation display unit 34. The lists of setting values included in the setting conditions prescribed in the second setting information 62 are lists of selectable setting values. The user selects desired setting values from the lists of setting values. Thereby, in association with the respective setting items, the setting values selected by the user are recorded as initial setting values, in the second setting information 62. This registration processing for the second setting information 62 is executed by the application processing unit 23.
Hereinafter, a setting value that has been set in the second setting information 62 will be referred to as “initial setting value”. Therefore, the setting conditions prescribed in the second setting information 62 include initial setting values.
Returning to
In this embodiment, the third obtaining unit 57 obtains the conflict information 66 corresponding to the device 36 to be executed, from the second management unit 42B. The device 36 to be executed may be, for example, a device input by an operating instruction on the operation display unit 34 by the user.
The third obtaining unit 57 may obtain the conflict information 66 from the server apparatus 20. In this case, the server apparatus 20 may prestore the conflict information 66 per type of the devices 36 by associating the different pieces of conflict information 66 respectively with the types of devices 36. The third obtaining unit 57 may then obtain the piece of conflict information 66 corresponding to the device 36 to be executed, from the server apparatus 20.
The detecting unit 58 functions when the processor executes the control script on the browser 41. The detecting unit 58 detects, based on the conflict information 66 obtained by the third obtaining unit 57, any setting conditions that are in a conflicting relation, from the setting conditions prescribed in the second setting information 62.
In detail, the detecting unit 58 first reads the setting items included in the setting conditions prescribed in the second setting information 62. The detecting unit 58 then identifies any setting item included in the first setting information 64, from the read setting items. That is, the detecting unit 58 identifies any setting item prescribed in the first setting information 64 corresponding to the device 36, from the setting items that have been set on the Web application 24 (application processing unit 23).
The detecting unit 58 determines whether or not any other setting condition having a conflicting relation with the setting condition, which is in the second setting information 62, and which includes the identified setting item and the setting value corresponding to the setting item, is recorded in the conflict information 66. If it is recorded therein, the detecting unit 58 detects the setting condition that is in the conflicting relation.
The detecting unit 58 may carry out the detection of setting conditions in a conflicting relation, when the first obtaining unit 55, the second obtaining unit 56, and the third obtaining unit 57 respectively obtain the first setting information 64, the second setting information 62, and the conflict information 66.
Further, the detecting unit 58 may detect setting conditions in a conflicting relation, after the first obtaining unit 55, the second obtaining unit 56, and the third obtaining unit 57 have respectively obtained the first setting information 64, the second setting information 62, and the conflict information 66 and a change in a setting condition made by the user has been received.
In this case, when the receiving unit 53 receives the change in the setting condition by the user, the detecting unit 58 may detect a setting condition in a conflicting relation with the setting condition, for which the change has been received, from the setting conditions prescribed in the second setting information 62, based on the conflict information 66 obtained by the third obtaining unit 57.
Further, if any setting conditions in a conflicting relation are detected, the detecting unit 58 preferably changes a setting value included in a setting condition that is in the conflicting relation so as to resolve the conflicting relation between the setting conditions.
For example, it is assumed that the second setting information 62 includes a conflicting relation, which is prescribed in the conflict information 66, and which is between: a setting condition of the setting item, “print side (printSide)”, and the setting value, “magazine binding”, corresponding to the setting item; and a setting condition of the setting item, “tray loaded with paper to be used in printing (paperTray)”, and the setting value, “tray 2”, corresponding to the setting item.
In this case, the detecting unit 58 detects the setting conditions in the conflicting relation. The detecting unit 58 then changes a setting value included in at least one setting condition of the plural setting conditions in the conflicting relation so as to resolve the conflicting relation between the setting conditions.
Specifically, the detecting unit 58 changes, for example, the setting value, “tray 2” of one of the setting conditions in the conflicting relation to a setting value, “tray 1”, that is not in the conflicting relation.
Detection processing by the detecting unit 58 is executed by updating of management information.
The management information is information recording therein: whether or not each of the setting items included in the setting conditions prescribed in the second setting information 62 has been prescribed in the first setting information 64; whether or not the list of setting values for each of those setting items is usable in the device 36; and the like.
The management information is updated by the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, and the detecting unit 58.
The setting items prescribed in the management information 68 are the same as the setting items included in the setting conditions prescribed in the second setting information 62.
The setting values prescribed in the management information 68 include finalized setting values, and initial setting values. The initial setting values are the same as the initial setting values included in the setting conditions prescribed in the second setting information 62. The finalized setting values are setting values that have been changed by the processing of resolving the conflicting relations by the detecting unit 58, and are setting values to be included in job data to be transmitted to the device 36.
“Usability in device” prescribed in the management information 68 indicates whether or not the corresponding setting item is usable in the device 36 to be executed.
“Usability of each listed setting value” prescribed in the management information 68 indicates whether or not each of the setting values listed in the corresponding “list of setting values” prescribed in the second setting information 62 (see
“Constraint information” prescribed in the management information 68 is information indicating constraints, such as the maximum numbers of characters of the setting values, the maximum values of the setting values, and the minimum values of the setting values, these setting values having been recorded in “list of setting values” prescribed in the first setting information 64 (see
Details of update processing of the management information 68 will be described later.
Returning to
For example, the display control unit 52 generates a screen to be displayed on the operation display unit 34, by: generating a frame of the screen, items to be displayed, and the like, in accordance with a description of the HTML of the operation program obtained from the server apparatus 20 (information to be used in generation of the screen (for example, basic items, a frame to be used in display, and the like)); and further embedding the setting item and the setting value corresponding to the setting item, for each of the setting conditions that have been set. The display control unit 52 then displays the generated screen on the operation display unit 34.
Further, near the display area of each setting item, the setting values, which are prescribed in the second setting information 62 and correspond to the setting item, are displayed. Of these setting values, setting values not prescribed in the first setting information 64 provided by the device 36 are displayed to be unselectable as being unusable. In the example illustrated in
Further, of the setting values corresponding to each setting item, any setting values that have been finalized by the detecting unit 58 are highlight displayed. In the example illustrated in
The display control unit 52 generates the screen 70 based on the management information 68 and displays the screen 70 on the operation display unit 34.
Further, if any setting conditions in a conflicting relation are detected by the detecting unit 58, the display control unit 52 preferably displays, on the operation display unit 34, information indicating the setting conditions in the conflicting relation.
Further, the display control unit 52 preferably displays the setting values of the setting conditions in the conflicting relation in a mode indicating the setting conditions in the conflicting relation (for example, in a color different from the other areas). In the example illustrated in
Further, if the conflicting relation between the setting conditions has been resolved by the detecting unit 58, the display control unit 52 may display, on the operation display unit 34, a setting condition that has been changed to resolve the conflicting relation between the setting conditions.
Returning to
In this embodiment, the executing unit 59 transmits an execution request for print processing, the execution request including job data, via the program interface unit 42, to the printer 32.
The information processing unit 35 of the information processing apparatus 30 includes: the processor, such as a CPU 111; a memory 112, such as a RAM and a ROM; a storage device 113, such as an HDD; and a device I/F 114, which is an interface to the operation display unit 34. In the information processing unit 35, the processor, such as the CPU 111, loads and executes an operating system and a browser prestored in the storage device 113 on the memory 112.
The processor, such as the CPU 111, downloads the first script, the second script, the third script, and the control script from the server apparatus 20 via the network 12, and loads and executes these scripts on the memory 112. The processor, such as the CPU 111, is able to cause the information processing unit 35 to function as the communication unit 51, the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, the detecting unit 58, the executing unit 59, the display control unit 52, and the receiving unit 53, by executing these scripts.
Next, a routine of information processing executed by the information processing unit 35 of this embodiment will be described.
First, the user activates the browser 41 of the information processing unit 35 by operating the operation display unit 34 (Step S100). By operating the operation display unit 34, the user then inputs a uniform resource identifier (URI) indicating where the operation program is stored, and instructs download of the operation program.
The communication unit 51 obtains the operation program from the server apparatus 20 (Step S102).
Next, the processor of the information processing unit 35 executes each script embedded in the operation program obtained in Step S102 on the browser 41 (Step S104) (details thereof described later). This routine is then ended.
Next, a routine of processing of Step S104 in
First, the processor executes the second script on the browser 41. The second obtaining unit 56, which functions upon the execution of the second script, obtains the second setting information 62 (see
Next, the second obtaining unit 56 records each of the setting items prescribed in the second setting information 62 obtained in Step S200 in the management information 68 (see
At Step S202, the second obtaining unit 56 records a list of setting values corresponding to a setting item prescribed in the second setting information 62 in the column, “usability of each listed setting value”, correspondingly (Step S202).
Next, the processor executes the first script embedded in the operation program obtained in Step S102 (see
Next, the first obtaining unit 55 executes registration processing for each of all of the setting items prescribed in the second setting information 62 (see
By the processing in Step S206, in the management information 68 (see
Further, by the processing of Step S206, information is recorded, the information indicating usability in the device 36 of each of the setting values recorded in the column, “usability of each listed setting value”, the setting values corresponding to the setting items with “usable” being recorded in the column, “usability in device”, in the management information 68 (see
Next, the processor executes the third script embedded in the operation program obtained in Step S102 (see
Next, the processor executes the control script embedded in the operation program obtained in Step S102 (see
Next, the display control unit 52 executes display processing of generating a screen and displaying the screen on the operation display unit 34 (Step S212) (details thereof described later).
Next, the receiving unit 53 determines whether or not a change instruction for a setting value by the user has been received from the operation display unit 34 (Step S214). If a positive determination is made at Step S214 (Step S214: Yes), the routine is returned to Step S210. If a negative determination is made at Step S214 (Step S214: No), the routine is advanced to Step S216.
At Step S216, the receiving unit 53 determines whether or not the receiving unit 53 has received, from the operation display unit 34, an execution instruction for printing (Step S216). For example, the user makes an instruction by operating on a display area of “Start Printing” on the screen 70 (or the screen 71, or the screen 72 (see
If a negative determination is made at Step S216 (Step S216: No), this routine is ended. On the contrary, if a positive determination is made at Step S216 (Step S216: Yes), the routine is advanced to Step S218.
At Step S218, the executing unit 59 transmits the execution request to the printer 32 via the program interface unit 42 (Step S218). The execution request includes the job data 69 (see
Next, registration processing of Step S206 in
First, the first obtaining unit 55 repeatedly executes the processing of Step S300 to Step S322 for each of all of the setting items included in the second setting information 62 (see
First, the first obtaining unit 55 determines whether or not any setting item included in the second setting information 62 is included in the first setting information 64 obtained in Step S204 (see
If any setting item is included, a positive determination is made (Step S300: Yes), and the routine is advanced to Step S302.
That is, by the positive determination in Step S300 (Step S300: Yes), the first obtaining unit 55 identifies any setting item included in the first setting information 64, from the setting items included in the second setting information 62 (Step S302).
Next, the first obtaining unit 55 records “usable” in a column of “usability in device” of the management information 68 (see
For example, the setting item, “print color (printColor)” (see
Next, the first obtaining unit 55 records each of the setting values, which are recorded in the column, “list of setting values”, corresponding to the setting item to be processed, in the second setting information 62 (see
The first obtaining unit 55 then determines whether or not any “list of setting values” corresponding to the setting item to be processed has been recorded in the first setting information 64 (see
For example, it is assumed that the setting item to be processed is “print color (printColor)”. In the second setting information 62 (see
If a positive determination is made at Step S306 (Step S306: Yes), the routine is advanced to Step S308. At Step S308, of the setting values recorded in the column, “usability of each listed setting value”, corresponding to the setting item to be processed, in the management information 68 (see
Next, of the setting values recorded in the column, “usability of each listed setting value”, corresponding to the setting item to be processed, in the management information 68 (see
The routine is then advanced to later described Step S316.
For example, of the respective setting values, “black and while”, “gray”, and “color”, recorded in the column, “usability of each listed setting value”, corresponding to the setting item, “print color (printColor)”, in the management information 68, the first obtaining unit 55 records “usable”, for the setting values, “black and while” and “gray”, recorded in the column, “list of setting values”, corresponding to that setting item, “print color (printColor)”, of the first setting information 64 (see
If a negative determination is made at above described Step S306 (Step S306: No), the routine is advanced to Step S312.
For example, it is assumed that the setting item to be processed is “print side (printSide)”. In the second setting information 62 (see
At Step S312, the first obtaining unit 55 determines whether or not “list of setting values” corresponding to the setting item to be processed has been recorded in the first setting information 64 (see
If a negative determination is made at Step S312 (Step S312: No), the routine is advanced to later described Step S316. On the contrary, if a positive determination is made at Step S312 (Step S312: Yes), the routine is advanced to Step S314.
At Step S314, in the column, “usability of each listed setting value” corresponding to the setting item to be processed, in the management information 68 (see
Therefore, for example, the setting values, “automatic setting”, “tray 1”, and “tray 2”, recorded in the first setting information 64 are recorded in the management information 68 (see
At Step S316, the first obtaining unit 55 records, in the management information 68, the initial setting value corresponding to the setting item to be processed, which has been recorded in the second setting information 62 (Step S316).
For example, if the setting item to be processed is the setting item, “print color (printColor)”, the first obtaining unit 55 records the initial setting value, “gray”, corresponding to the setting item, “print color (printColor)”, in the second setting information 62, correspondingly with that setting item in the management information 68.
Next, the first obtaining unit 55 records any information that has not been recorded yet in the management information 68, from the information that has been recorded in the second setting information 62 (Step S318). This routine is then ended.
On the contrary, if a negative determination is made at above described Step S300 (Step S300: No), the routine is advanced to Step S320. At Step S320, the first obtaining unit 55 records “unusable” in the column, “usability in device”, correspondingly with the identified setting item to be processed, in the management information 68 (see
Next, detection processing of Step S210 in
The detecting unit 58 repeatedly executes the processing of Step S400 to Step S412 for each of all of the setting items prescribed in the first setting information 64 corresponding to the device 63, of the setting items prescribed in the second setting information 62. That is, the detecting unit 58 repeatedly executes the processing of Step S400 to Step S412 for each of all of the setting items, with the column, “usability in device”, being “usable”, in the management information 68.
That is, the setting item to be processed in the routine of
Upon execution after returning to the detection processing of Step S210 by the positive determination in Step S214 of
That is, if the receiving unit 53 receives a change of a setting value, the detecting unit 58 may execute the routine illustrated in
First, the detecting unit 58 determines whether or not the initial setting value corresponding to the setting item to be processed in the management information 68 (see
If the constraint is satisfied (Step S400: Yes), the routine is advanced to Step S402. At Step S402, the detecting unit 58 records the initial setting value corresponding to the setting item to be processed in the management information 68 as a finalized setting value (Step S402).
For example, if “gray” has been recorded in the column, “initial setting value”, corresponding to the setting item to be processed, “print color (printColor)”, in the management information 68, the detecting unit 58 records “gray” in the column, “finalized setting value”, correspondingly to that setting item. The routine is then advanced to Step S408.
On the contrary, if the constraint is not satisfied (Step S400: No), the detecting unit 58 displays error information on the operation display unit 34 (Step S404). The error information is information indicating that the setting value of the setting item does not satisfy the constraint.
Next, the detecting unit 58 changes the initial setting value corresponding to the setting item to be processed to a value satisfying the constraint indicated in the corresponding constraint information, and records the changed value, as a finalized setting value (Step S406). The detecting unit 58 preferably records, as the changed value, a value that satisfies the constraint indicated in the corresponding constraint information and that does not have any conflicting relation indicated in the conflict information 66. The routine is then advanced to Step S408.
At Step S408, the detecting unit 58 determines whether or not the setting condition including the setting item to be processed has a conflicting relation with any other setting condition (Step S408).
In detail, the detecting unit 58 determines whether or not any other setting condition having a conflicting relation with the setting condition, which is in the management information 68 and which includes the setting item to be processed and the finalized setting value corresponding to the setting item, has been recorded in the conflict information 66. If it has been recorded in the conflict information 66, the detecting unit 58 detects the setting conditions that are in the conflicting relation (that is, detects that there is a conflict).
If there are no setting conditions in a conflicting relation, a negative determination is made at Step S408 (Step S408: No), and this routine is ended. If any setting conditions in a conflicting relation are detected, a positive determination is made at Step S408 (Step S408: Yes), and the routine is advanced to Step S410.
Next, the detecting unit 58 records, in the management information 68, in association with the setting item to be processed, information indicating that the setting item to be processed is in a conflicting state (Step S410). Next, the detecting unit 58 changes the finalized setting value corresponding to the setting item to be processed, in the management information 68, to a value resolving the conflicting relation between the setting conditions (Step S412). The detecting unit 58 may change the finalized setting value corresponding to the setting item included in the other setting condition in the conflicting relation to a value resolving the conflicting relation. Further, the detecting unit 58 may change both of these setting values to values resolving the conflicting relation. This routine is then ended.
Next, display processing of Step S212 in
The display control unit 52 repeatedly executes the processing of Step S500 to Step S510 for each of all of the setting items prescribed in the first setting information 64, of the setting items prescribed in the second setting information 62. That is, the display control unit 52 repeatedly executes the processing of Step S500 to Step S510 for each of all of the setting items having “usable” in the column, “usability in device”, in the management information 68.
In other words, the setting item to be processed in the routine of
First, the display control unit 52 determines whether or not a list of setting values (list) have been recorded in the column, “usability of each listed setting value”, correspondingly with the setting item to be processed, in the management information 68 (Step S500).
For example, a list of setting values, such as “black and white”, “gray”, and “color”, has been recorded in the column, “usability of each listed setting value”, correspondingly with the setting item to be processed, “print color (printColor)”, in the management information 68. In this case, the operation display unit 34 makes a positive determination at Step S500 (Step S500: Yes).
On the contrary, in the column, “usability of each listed setting value”, no list of setting values has been recorded correspondingly with the setting item to be processed, “number of copies (copiesRange)”, in the management information 68. In this case, the display control unit 52 makes a negative determination at Step S500 (Step S500: No).
If a negative determination is made at Step S500 (Step S500: No), the routine is advanced to later described Step S508.
If a positive determination is made at Step S500 (Step S500: Yes), the display control unit 52 repeatedly executes the processing of Step S502 to Step S506 for each of all of the setting values included in the list of setting values determined in Step S500 as having been recorded.
First, the display control unit 52 determines whether or not “usable” has been recorded in association with the setting value to be processed (Step S502). In detail, the display control unit 52 determines whether or not “usable” is associated with the setting value to be processed, which has been recorded in the column, “usability of each listed setting value”, correspondingly to the setting item to be processed, in the management information 68.
For example, “usable” is recorded in association with the setting value, “black and white”, which has been recorded in the column, “usability of each listed setting value”, correspondingly with the setting item to be processed, “print color (printColor)”. In this case, the display control unit 52 makes a positive determination at Step S502 (Step S502: Yes).
If a positive determination is made at Step S502 (Step S502: Yes), the routine is advanced to Step S504. At Step S504, the display control unit 52 identifies the setting value to be processed as a display target to be selectably displayed (Step S504).
If a negative determination is made at Step S502 (Step S502: No), the routine is advanced to Step S506. At Step S506, the display control unit 52 identifies the setting value to be processed as a display target to be unselectably displayed (Step S506).
When the repeated processing of Step S502 to Step S506 is ended, the routine is advanced to Step S508.
At Step S508, the display control unit 52 determines whether or not information indicating that the setting item to be processed is in a conflicting relation has been recorded for the setting item to be processed (Step S508). If a negative determination is made at Step S508 (Step S508: No), this repeated processing is ended. If a positive determination is made at Step S508 (Step S508: Yes), the routine is advanced to Step S510.
At Step S510, the display control unit 52 gives information indicating the conflicting relation, to the setting item to be processed in the management information 68 (Step S510). The display control unit 52 may give, to the setting item to be processed in the management information 68, information indicating that the setting value has been changed in order to resolve the conflicting relation.
This repeated processing is then ended.
Next, the display control unit 52 generates, based on the management information 68, a screen (Step S512).
In detail, the display control unit 52 identifies, from the setting items recorded in the management information 68, any setting item having “usable” recorded in the column, “usability in device”, and the corresponding list of setting values. The display control unit 52: generates a frame of the screen and items to be displayed, in accordance with the HTML description of the operation program obtained in Step S102 (see
Further, the display control unit 52 displays the list of setting values corresponding to each setting item recorded in the management information 68 on the screen 70.
Of the lists of these setting values, the display control unit 52 unselectably displays, as being unusable, any setting values identified in the above described Step S506 as display targets to be unselectably displayed. In the example illustrated in
Further, the display control unit 52 selectably displays, as being usable, the setting values identified in the above described Step S504 as display targets to be selectably displayed. In the example illustrated in
Further, the display control unit 52 highlight displays the finalized setting values, of the lists of setting values that have been recorded in the management information 68. The finalized setting values may be read from the management information 68. In the example illustrated in
If a piece of information indicating a conflicting relation, or a piece of information indicating that a setting value has been changed in order to resolve the conflicting relation, has been associated with a setting item, the display control unit 52 generates a screen further embedded with that piece of information. For example, the display control unit 52 generates the screen 71 including the information 71A indicating setting conditions in a conflicting relation (see
The detecting unit 58 may execute the processing of changing a setting value included in setting conditions in a conflicting relation so as to resolve the conflicting relation (see Step S412 in
Next, the display control unit 52 displays the generated screen on the operation display unit 34 (Step S514). This routine is then ended.
As described above, the information processing apparatus 30 of this embodiment has the browser 41 that displays a screen on the operation display unit 34. Further, the information processing apparatus 30 includes the processor, the storage unit 42E, the communication unit 51, the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, and the detecting unit 58. The storage unit 42E stores therein the first setting information 64 prescribing therein setting conditions, which are able to be set when the information processing apparatus 30 executes processing, and which are associated with setting values settable for each setting item; and the conflict information 66 indicating conflicting relations among setting conditions that conflict when the information processing apparatus 30 executes the processing. The communication unit 51 accesses, via the browser 41, the Web application 24 installed in the server apparatus 20, and obtains, from the server apparatus 20, a screen to be displayed on the operation display unit 34 and one or more scripts. The first obtaining unit 55 functions when the processor executes the obtained one or more scripts on the browser 41; and obtains the first setting information 64 stored in the storage unit 42E. The second obtaining unit 56 functions when the processor executes the obtained one or more scripts on the browser 41; and obtains, from the Web application 24, the second setting information 62 prescribing therein setting conditions set on the Web application 24 that transmits a processing request to the information processing apparatus 30. The third obtaining unit 57 functions when the processor executes the obtained one or more scripts on the browser 41; and obtains the conflict information 66 stored in the storage unit 42E. The detecting unit 58 functions when the processor executes the obtained one or more scripts on the browser 41; and detects, based on the conflict information 66 obtained by the third obtaining unit 57, any setting conditions in a conflicting relation, from the setting conditions prescribed in the second setting information 62.
As described, in the information processing apparatus 30 of this embodiment, a conflicting relation between conflicting setting conditions is detected when the information processing apparatus 30 executes processing, on the browser 41. Therefore, the information processing apparatus 30 is able to easily make the control program operating on the browser compatible with a new device having conflicting setting conditions.
Therefore, the information processing apparatus 30 of this embodiment is able to easily make the control program operating on the browser compatible with a new device having conflicting setting conditions.
Further, when a change of a setting condition by a user is received, the detecting unit 58 is able to detect, based on the conflict information 66 obtained by the third obtaining unit 57, any setting condition in a conflicting relation with the setting condition, for which the change has been received, from the setting conditions prescribed in the second setting information 62.
Further, when the detecting unit 58 detects any setting conditions in a conflicting relation, the detecting unit 58 is able to change a setting value included in a setting condition that is in the conflicting relation so as to resolve the conflicting relation of the setting conditions.
Further, the information processing unit 35 may include the display control unit 52. The display control unit 52 functions when the processor executes the one or more scripts obtained by the communication unit 51 on the browser 41; and displays information indicating setting conditions in a conflicting relation on the operation display unit 34, if the setting conditions in the conflicting relation are detected.
Further, the display control unit 52 may display, on the operation display unit 34, a setting condition that has been changed to cancel the setting condition in a conflicting relation.
Further, the one or more scripts include plural scripts, and the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, and the detecting unit 58 respectively function when different scripts are respectively executed by the processor on the browser 41.
Further, an information processing method of this embodiment is an information processing method executed by the information processing apparatus 30 including the information processing unit 35 having the processor that executes the browser 41. The information processing apparatus 30 includes the processor and the storage unit 42E. The storage unit 42E stores therein the first setting information 64 prescribing therein setting conditions, which are able to be set when the information processing apparatus 30 executes processing, and which are associated with setting values settable for each setting item; and the conflict information 66 indicating conflicting relations among setting conditions that conflict when the information processing apparatus 30 executes the processing.
The information processing method of this embodiment includes accessing, via the browser 41, the Web application 24 installed in the server apparatus 20 to obtain, from the server apparatus 20, a screen to be displayed on the operation display unit 34 and one or more scripts; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain the first setting information 64 stored in the storage unit 42E; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain, from the Web application 24, the second setting information 62 prescribing therein setting conditions set on the Web application 24 that transmits a processing request to the information processing apparatus 30; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain the conflict information 66 stored in the storage unit 42E; and functioning when the processor executes the obtained one or more scripts on the browser 41 to detect, based on the conflict information 66 obtained by the third obtaining unit 57, any setting conditions in a conflicting relation, from the setting conditions prescribed in the second setting information 62.
Further, an information processing program of this embodiment is an information processing program to be executed by a computer including the information processing unit 35 having the processor that executes the browser 41. The computer includes the processor and the storage unit 42E. The storage unit 42E stores therein the first setting information 64 prescribing therein setting conditions, which are able to be set when the information processing apparatus 30 executes processing, and which are associated with setting values settable for each setting item; and the conflict information 66 indicating conflicting relations among setting conditions that conflict when the information processing apparatus 30 executes the processing.
The information processing program of this embodiment includes accessing, via the browser 41, the Web application 24 installed in the server apparatus 20 to obtain, from the server apparatus 20, a screen to be displayed on the operation display unit 34 and one or more scripts; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain the first setting information 64 stored in the storage unit 42E; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain, from the Web application 24, the second setting information 62 prescribing therein setting conditions set on the Web application 24 that transmits a processing request to the information processing apparatus 30; functioning when the processor executes the obtained one or more scripts on the browser 41 to obtain the conflict information 66 stored in the storage unit 42E; and functioning when the processor executes the obtained one or more scripts on the browser 41 to detect, based on the conflict information 66 obtained by the third obtaining unit 57, any setting conditions in a conflicting relation, from the setting conditions prescribed in the second setting information 62.
The information processing system 10 of this embodiment includes the server apparatus 20, and the information processing apparatus 30. The information processing apparatus 30 is connected to the server apparatus 20 via the network 12, and has the browser 41 that displays a screen on the operation display unit 34.
The information processing apparatus 30 has the browser 41 that displays a screen on the operation display unit 34. Further, the information processing apparatus 30 includes the processor, the storage unit 42E, the communication unit 51, the first obtaining unit 55, the second obtaining unit 56, the third obtaining unit 57, and the detecting unit 58. The storage unit 42E stores therein the first setting information 64 prescribing therein setting conditions, which are able to be set when the information processing apparatus 30 executes processing, and which are associated with setting values settable for each setting item; and the conflict information 66 indicating conflicting relations among the setting conditions that conflict when the information processing apparatus 30 executes the processing. The communication unit 51 accesses, via the browser 41, the Web application 24 installed in the server apparatus 20, and obtains, from the server apparatus 20, a screen to be displayed on the operation display unit 34 and one or more scripts. The first obtaining unit 55 functions when the processor executes the obtained one or more scripts on the browser 41; and obtains the first setting information 64 stored in the storage unit 42E. The second obtaining unit 56: functions when the processor executes the obtained one or more scripts on the browser 41; and obtains, from the Web application 24, the second setting information 62 prescribing therein setting conditions set on the Web application 24 that transmits a processing request to the information processing apparatus 30. The third obtaining unit 57 functions when the processor executes the obtained one or more scripts on the browser 41; and obtains the conflict information 66 stored in the storage unit 42E. The detecting unit 58 functions when the processor executes the obtained one or more scripts on the browser 41; and detects, based on the conflict information 66 obtained by the third obtaining unit 57, any setting conditions in a conflicting relation, from the setting conditions prescribed in the second setting information 62.
In the above described embodiment, a case where the device 36 is the printer 32, is described as an example. However, the device 36 is not limited to the printer 32. For example, the device 36 may include at least one function of: a projecting function; a video recording function; and an image displaying function.
The device 36 including a projecting function is, for example, a projector. If the device 36 is a projector, the setting items and setting values prescribed in each of the first setting information 64 (see
Specifically, in the first setting information 64 (see
The device 36 including a video recording function is, for example, a video recording device. If the device 36 is a video recording device, the setting items and setting values prescribed in each of the first setting information 64 (see
Specifically, in the first setting information 64 (see
Further, the device 36 including an image displaying function is, for example, a television. If the device 36 is a television, the setting items and setting values prescribed in each of the first setting information 64 (see
Specifically, in the first setting information 64 (see
Similarly to the above described embodiment, the information processing apparatus 30 may detect any conflicting relation of setting conditions that conflict when the information processing apparatus 30 executes processing, on the browser 41. Therefore, even when the device 36 is a device other than the printer 32, the information processing apparatus 30 achieves effects similar to those of the above described embodiment.
The server apparatus 200 and the information processing apparatus 300 are connected to each other via a network 120. The network 120 may be, for example, a network, such as the Internet connected to the public, or a local network in a firm or the like. Further, the network 120 may be wired or wireless.
The server apparatus 200 is accessed from the information processing apparatus 300. Via the network 120, the server apparatus 200 transmits information to the information processing apparatus 300 and receives information from the information processing apparatus 300.
The server apparatus 200 and the information processing apparatus 300 may be arranged in the same network (for example, a local area network), or arranged in separate networks.
The server apparatus 200 has a network I/F 210, and a Web application 230. The network I/F 210 is an interface for transmitting and receiving information to and from another apparatus via the network 120.
The Web application 230 is accessed from the information processing apparatus 300, via a later described first browser 410 of the information processing apparatus 300. The Web application 230 includes an information providing unit 220. The information providing unit 220 provides one or more scripts to the information processing apparatus 300 via the network 120.
These scripts are provided to the information processing apparatus 300 from the server apparatus 200, by the information processing apparatus 300 obtaining an operation program from the server apparatus 200 and executing the operation program. The operation program is a hypertext markup language (HTML) file described in HTML, and these scripts are embedded in the operation program. Further, in the operation program, information (for example, basic items, a frame to be used in display, and the like) is described, which is used in generation of a screen to be displayed from the server apparatus 200 on a display unit (a later described operation display unit 340) of the information processing apparatus 300. The screen is a user interface that displays thereon various types of information and images and receives operating instructions from a user.
In this embodiment, the one or more scripts include plural scripts. These scripts are script programs to be executed on a browser of the information processing apparatus 300. These scripts are described, for example, in hypertext markup language (HTML).
The one or more scripts are script programs to be executed on the first browser 410 of the information processing apparatus 300. The one or more scripts are script programs describing specific processing in a second browser (details thereof described later).
The second browser is a browser that displays a screen specific to a device. That is, the second browser is a browser dedicated to the device. The device is, for example, a device including at least one of: an image generating function (printer function); a scanner function; a facsimile function; a projecting function of a projector or the like; a video recording function; an image displaying function (television); and the like.
The first browser 410 is a browser other than the second browser and is a known general purpose browser. Therefore, the first browser 410 includes various functions not provided in the second browser. In this embodiment, the information processing apparatus 300 has the first browser 410 (details thereof described later).
In this embodiment, the information processing apparatus 300 functions as an emulator of the device.
For the information processing apparatus 300 of this embodiment, complete emulation of all of functions usable in the second browser is not aimed. For example, for the information processing apparatus 300 of this embodiment, emulation of some exceptional operation with respect to operation according to states of the device and operation being executed in the device is not aimed.
Further, for the information processing apparatus 300 of this embodiment, differences between support functions of respective types of the first browser 410, which is a general purpose browser, are not considered.
The information processing apparatus 300 includes a processor. The information processing apparatus 300 has a network I/F 310, the operation display unit 340, and an information processing unit 350. The network I/F 310 is an interface for transmitting and receiving information to and from another apparatus via the network 120.
The operation display unit 340 displays information to the user and receives input from the user. The operation display unit 340 is, for example, a touch panel. Further, the operation display unit 340 may have operation buttons, a mouse, a keyboard, or the like.
A virtual processing unit 430 is a program that virtually executes various types of processing that the device to be emulated executes. The virtual processing unit 430 executes at least operation specific to the device. The virtual processing unit 430 is controlled from the first browser 410 via a program interface unit 420.
The virtual processing unit 430 includes a virtual device management unit 430A and a virtual job management unit 430B.
The virtual job management unit 430B repeatedly causes transition of only a state of processing being executed in the device, according to elapsed time. For example, the virtual job management unit 430B is a program that sequentially causes transition of only states of various types, such as converting print data to a data format printable in the device, printing the converted data on a recording medium, and completion of the printing, according to elapsed time.
That is, the virtual job management unit 430B is a program that virtually changes, in sequence, according to elapsed time, only the state of the processing being executed in the device, without executing data conversion processing, print processing, and the like actually executed by the device.
The completion of printing has, for example, types, such as normal completion, occurrence of a non-recoverable error, and occurrence of a recoverable error. These types of the completion of printing are able to be switched over as appropriate by, for example, an instruction made by the user operating on the operation display unit 340.
The virtual device management unit 430A is a program that causes transition of the state of the device by an instruction made by the user operating on the operation display unit 340. The states of the device are, for example, “state where processing is executable”, “state where processing is being executed”, “state where processing has stopped”, and “state where processing is inexecutable”.
The state where processing is executable is a state where processing is able to be started when an execution request for the processing is received. The state where processing is being executed is a state where processing is being executed in the device. The state where processing has stopped is a state where processing has stopped due to an error, such as a paper jam. The state where processing is inexecutable is a state where processing is not able to be started due to an error, such as a toner not being loaded.
For example, when “state where processing is executable” is instructed by an instruction made by the user operating the operation display unit 340, the virtual device management unit 430A causes transition of the state of the device to “state where processing is executable”. That is, the virtual device management unit 430A is a program that causes virtual transition of only the state of the device by an instruction made by the user operating on the operation display unit 340, without executing the actual processing executed by the device.
The program interface unit 420 is a software interface for controlling operation of the virtual processing unit 430 from the first browser 410. The program interface unit 420 controls the virtual processing unit 430 according to various requests from the first browser 410.
In this embodiment, the program interface unit 420 transmits a request signal to the virtual processing unit 430, according to transmission of a request signal from the first browser 410. Further, the program interface unit 420 performs monitoring of the virtual processing unit 430 and transmits a result of the monitoring to the first browser 410, according to a request from the first browser 410.
As described above, the first browser 410 is a browser other than the second browser, and is a known general purpose browser. The processor of the information processing apparatus 300 accesses, via the first browser 410, the Web application 230 installed in the server apparatus 200, and obtains the operation program from the server apparatus 200. Thereby, the information processing unit 350 obtains a screen to be displayed on the operation display unit 340 and one or more scripts, from the server apparatus 200. The information processing unit 350 then causes each functional unit in the first browser 410 to function, by executing each of the one or more scripts on the first browser 410.
Specifically, the first browser 410 includes an obtaining unit 510, a script executing unit 550, a display control unit 520, and a receiving unit 530. These functional units function, by the scripts being executed on the first browser 410, the scripts obtained by the processor of the information processing apparatus 300 from the server apparatus 200.
The obtaining unit 510 accesses the Web application 230 installed in the server apparatus 200 via the first browser 410, and obtains the operation program (including the scripts).
The display control unit 520 functions when the processor executes the operation program on the first browser 410. For example, the display control unit 520 generates a screen, according to a description of HTML of the operation program obtained from the server apparatus 200 (for example, basic items, a frame to be used in display, and the like). The display control unit 520 then displays the generated screen on the operation display unit 340. This screen is a user interface, which displays various images, and receives input from the user.
The receiving unit 530 receives an instruction made by the user operating on the operation display unit 340.
The script executing unit 550 functions when the processor executes the one or more scripts obtained by the obtaining unit 510 on the first browser 410, and performs monitoring of the device (that is, the virtual processing unit 430) and signal transmission to the device (that is, the virtual processing unit 430).
The one or more scripts obtained from the server apparatus 200 are, as described above, script programs describing specific processing executed on the second browser for displaying a screen specific to the device. Further, the one or more scripts are script programs describing various types of processing for performing the monitoring of the device and the signal transmission to the device.
The state outputting script is a script program that transmits state information of the device obtained from the device. The state information of the device includes information specific to the second browser, and account information authenticated in the device. The information specific to the second browser is, for example, a screen size of a display screen of the second browser.
When the processor executes the state outputting script on the first browser 410, the script executing unit 550 obtains the state information of the device from the virtual processing unit 430 via the program interface unit 420, and transmits (returns) the obtained state information to the first browser 410.
Therefore, in the first browser 410, when certain state information is obtained from the device and operation according to the obtained state information is emulated, by the state outputting script being executed on the first browser 410, operation specific to the second browser is able to be emulated on the first browser 410.
The request transmitting script is a script program that transmits a request signal to the device. The request signal is a signal for avoiding stoppage of operation by the device and causing the device to continue the operation. The request signal is, for example, a request signal requesting the device to not shift to an idle state, a request signal requesting a refusal to shift to the idle state to be cancelled, a request signal invalidating a “back button” of the browser before execution of processing in the device, a request signal validating the “back button” after the execution of processing is completed in the device, or the like.
When the processor executes the request transmitting script on the first browser 410, the script executing unit 550 transmits a request signal to the virtual processing unit 430 via the program interface unit 420.
Therefore, in the first browser 410, when the device receives a certain signal and operation of the device to continue processing without stopping is to be emulated, by the request transmitting script being executed on the first browser 410, operation specific to the second browser is able to be emulated on the first browser 410.
The device state monitoring script is a script program for monitoring states of the device. As described above, the states of the device are, for example, “state where processing is executable”, “state where processing is being executed”, “state where processing has stopped”, “state where processing is inexecutable”, and the like.
When the processor executes the device state monitoring script on the first browser 410; via the program interface unit 420, the script executing unit 550 performs monitoring of the state of the device through the virtual processing unit 430 and notifies the first browser 410 of a state of the device when the state is changed.
Therefore, in the first browser 410, in a case where operation of monitoring the state of the device is to be emulated, when the device state monitoring script is executed on the first browser 410, operation specific to the second browser is able to be emulated on the first browser 410.
The processing state monitoring script is a script program for monitoring states of processing being executed in the device. As described above, the states of processing are, for example, converting print data to a data format printable by the device, printing the converted print data on a recording medium, completion of the printing (normal completion, occurrence of a non-recoverable error, and occurrence of a recoverable error), and the like.
When the processor executes the processing state monitoring script on the first browser 410; via the program interface unit 420, the script executing unit 550 performs monitoring of the state of the processing being executed in the device by the virtual processing unit 430 and notifies the first browser 410 of a state of the processing when the state is changed.
Therefore, in the first browser 410, in a case where operation of monitoring the states of the processing by the device is emulated, when the processing state monitoring script is executed on the first browser 410, operation specific to the second browser is able to be emulated on the first browser 410.
The information processing unit 350 of the information processing apparatus 300 includes the processor, such as a CPU 1110, a memory 1120, such as a RAM and a ROM, a storage device 1130, such as an HDD, and a device I/F 1140, which is an interface to the operation display unit 340. In the information processing unit 350, the processor, such as the CPU 1110, loads and executes an operating system and the first browser 410 prestored in the storage device 1130 on the memory 1120.
The processor, such as the CPU 1110, downloads the operation program (including the one or more scripts) from the server apparatus 200 via the network 120, and loads and executes the operation program on the memory 1120. Such an operation program (including one or more scripts) has a module configuration including a display control module, a receiving module, and a script processing module, and when the processor, such as the CPU 1110, executes these modules, the information processing unit 350 is able to be caused to function as the obtaining unit 510, the script executing unit 550, the display control unit 520, and the receiving unit 530.
First, a user activates the first browser 410 by operating the operation display unit 340 (Step S1000). By operating the operation display unit 340, the user then inputs a uniform resource identifier (URI) indicating where the operation program including the one or more scripts is stored, and instructs download of the operation program. The obtaining unit 510 then obtains, from the server apparatus 200, the operation program including the one or more (plural, in this embodiment) scripts (Step S1020).
Next, the script executing unit 550 executes each of the scripts embedded in the operation program obtained in Step S1020 on the first browser 410 (Step S1040) (details thereof described later). This routine is then ended.
Next, a routine of processing of Step S1040 in
In this embodiment, a case, where the script executing unit 550 executes each of the respective scripts included in the obtained plural scripts, which are the state outputting script, the request transmitting script, the device state monitoring script, and the processing state monitoring script, in this order, will be described. However, the order in which the script executing unit 550 executes these scripts is not limited to this order.
Further, the script executing unit 550 may execute at least one script of the respective scripts obtained from the server apparatus 200 (state outputting script, request transmitting script, device state monitoring script, and processing state monitoring script), and the embodiment is not limited to the mode where all of the scripts are executed.
First, the processor executes the state outputting script on the first browser 410. Thereby, the script executing unit 550 functions, and obtains state information of the device from the virtual processing unit 430 via the program interface unit 420 (Step S2000). The display control unit 520 displays the state information obtained in Step S2000 on the operation display unit 340 (Step S2020). For example, if the state information of the device includes account information, the display control unit 520 displays the account information authenticated by the device on the operation display unit 340. Further, for example, if the state information of the device includes a browser screen size used in the second browser, the display control unit 520 changes a screen size of a display screen of the first browser 410 to that browser screen size.
Next, the processor executes the request transmitting script on the first browser 410. Thereby, the script executing unit 550 functions, and transmits a request signal to the virtual processing unit 430 via the program interface unit 420 (Step S2040).
For example, the script executing unit 550 transmits a request signal requesting the device to not shift to an idle state, or a request signal requesting a refusal to shift to the idle state to be cancelled, to the virtual processing unit 430 via the program interface unit 420.
Transition of the virtual processing unit 430 that has received the request signal to a state according to the request signal is then caused.
Next, the processor executes the device state monitoring script on the first browser 410. Thereby, the script executing unit 550 functions, and performs monitoring of the state of the device through the virtual processing unit 430, via the program interface unit 420 (Step S2060). Details of processing of Step S2060 will be described later.
Next, when the processor executes the operation program, a determination of whether the device is in the state, where processing is executable by the virtual processing unit 430, is made (Step S2080). For example, by determining whether or not the state of the virtual processing unit 430 indicates “state where processing is executable”, the determination of Step S2080 is made.
If a negative determination is made in Step S2080 (Step S2080: No), the routine is returned to above described Step S2060. If a positive determination is made in Step S2080 (Step S2080: Yes), the routine is advanced to Step S2100.
At Step S2100, when the processor executes the operation program, the display control unit 520 receives an execution instruction for processing, from the operation display unit 340. The user inputs the execution instruction for processing (for example, a print job) by operating the operation display unit 340. When the display control unit 520 receives the execution instruction, the display control unit 520 transmits the execution request for the processing to the virtual processing unit 430 via the program interface unit 420 (Step S2100).
Next, the processor executes the processing state monitoring script on the first browser 410. Thereby, the script executing unit 550 functions, and performs monitoring of the state of the processing of the device by the virtual processing unit 430 (Step S2120). Details of processing of Step S2120 will be described later.
Next, the script executing unit 550 determines which of types of print completion: occurrence of a non-recoverable error; normal completion; and occurrence of a recoverable error, the state of processing of the virtual processing unit 430 corresponds to (Step S2140).
The script executing unit 550 determines which of the types of print completion: “occurrence of a non-recoverable error”; “normal completion”; and “occurrence of a recoverable error”, the state of the processing received from the virtual processing unit 430 via the program interface unit 420 indicates.
If the state of the processing received via the program interface unit 420 from the virtual processing unit 430 indicates the print completion of “occurrence of a non-recoverable error”, the routine is advanced to Step S2160. At Step S2160, the script executing unit 550 notifies the first browser 410 of “occurrence of a non-recoverable error” (Step S2160).
When the first browser 410 receives the notification, the display control unit 520 displays information indicating “occurrence of a non-recoverable error” on the operation display unit 340 (Step S2170). The script executing unit 550 then ends the monitoring of the state of the processing being executed by the virtual processing unit 430 (Step S2180). This routine is then ended.
At Step S2140, if the script executing unit 550 determines that the state of the processing received via the program interface unit 420 from the virtual processing unit 430 indicates the print completion, “normal completion”, the routine is advanced to Step S2200. At Step S2200, the script executing unit 550 notifies the first browser 410 of “completion of processing” (Step S2200).
When the first browser 410 receives the notification, the display control unit 520 displays information indicating “completion of processing” on the operation display unit 340 (Step S2210). The routine is then advanced to Step S2180.
On the contrary, at Step S2140, if the script executing unit 550 determines that the state of the processing received via the program interface unit 420 from the virtual processing unit 430 indicates the print completion, “occurrence of a recoverable error”, the routine is advanced to Step S2220. At Step S2220, the script executing unit 550 notifies the first browser 410 of the occurrence of a recoverable error and a content of the error (Step S2220).
When the first browser 410 receives the notification, the display control unit 520 displays the occurrence of an error and the content of the error, on the operation display unit 340 (Step S2240). The user refers to the error content displayed on the operation display unit 340 and performs operation to resolve the error. For example, the user operates the operation display unit 340 and changes the content of the print completion of the virtual job management unit 430B to a content indicating “normal completion”. The routine is then returned to above described Step S2120.
Next, a routine of processing of Step S2060 in
First, the script executing unit 550 transmits a request for monitoring of the state of the device, to the program interface unit 420 (Step S3020).
The program interface unit 420, which has received the request for monitoring of the state of the device, obtains the state of the device from the virtual processing unit 430 and transmits the obtained state to the first browser 410. The script executing unit 550 of the first browser 410 obtains the state of the device from the program interface unit 420 (Step S3040).
The script executing unit 550 determines whether or not the state of the device stored in an internal memory is different from the state of the device obtained in Step S3040 (Step S3060).
If the state of the device stored in the internal memory coincides with the state of the device obtained in Step S3040 (Step S3060: No), the routine is advanced to Step S3120.
On the contrary, if the state of the device stored in the internal memory is different from the state of the device obtained in Step S3040 (Step S3060: Yes), the routine is advanced to Step S3080. At Step S3080, the script executing unit 550 notifies the first browser 410 of the state of the device obtained in Step S3040 (Step S3080). The script executing unit 550 stores the state of the device obtained in Step S3040 by overwriting in the internal memory (Step S3100). The routine is then advanced to Step S3120.
At Step S3120, the script executing unit 550 determines whether or not a request to stop the monitoring has been received from the first browser 410 (Step S3120). If a negative determination is made in Step S3120 (Step S3120: No), the routine is returned to above described Step S3020. On the contrary, if a positive determination is made at Step S3120 (Step S3120: Yes), this routine is ended.
The script executing unit 550 may repeatedly execute the processing of Step S3020 to Step S3100 at fixed intervals (for example, every one second, or the like) until a positive determination is made at Step S3120 (Step S3120: Yes).
Thus, the first browser 410 enables monitoring of states of the virtual processing unit 430 (that is, the device) by polling at fixed intervals.
Next, a routine of processing of Step S2120 in
First, the script executing unit 550 transmits a request for monitoring of the state of processing being executed in the device, to the program interface unit 420 (Step S4020).
The program interface unit 420, which has received the request for monitoring of the state of processing being executed in the device, obtains the state of the processing being executed in the device, from the virtual processing unit 430, and transmits the obtained state to the first browser 410. The script executing unit 550 obtains, on the first browser 410, the state of the processing being executed in the device, from the program interface unit 420 (Step S4040).
The script executing unit 550 then determines whether or not the state of processing being executed in the device, the state having been stored in the internal memory, is different from the state of processing being executed in the device obtained in Step S4040 (Step S4060).
If the state of processing being executed in the device, the state having been stored in the internal memory, is not different from the state of processing being executed in the device obtained in Step S4040 (Step S4060: No), the routine is advanced to Step S4120.
On the contrary, if the state of processing being executed in the device, the state having been stored in the internal memory, is different from the state of processing being executed in the device obtained in Step S4040 (Step S4060: Yes), the routine is advanced to Step S4080. At Step S4080, the script executing unit 550 notifies the first browser 410 of the state of processing being executed in the device, obtained in Step S4040 (Step S4080). The script executing unit 550 then stores the state of processing being executed in the device, obtained in Step S4040, by overwriting in the internal memory (Step S4100). The routine is then advanced to Step S4120.
At Step S4120, the script executing unit 550 determines whether or not a request to stop the monitoring has been received from the first browser 410 (Step S4120). If a negative determination is made at Step S4120 (Step S4120: No), the routine is returned to above described Step S4020. On the contrary, if a positive determination is made at Step S4120 (Step S4120: Yes), this routine is ended.
The script executing unit 550 may repeatedly execute the processing of Step S4020 to Step S4100 at fixed intervals (for example, every one second, or the like) until a positive determination is made at Step S4120 (Step S4120: Yes).
Thus, the first browser 410 enables monitoring of states of processing being executed in the virtual processing unit 430 (that is, the device) by polling at fixed intervals.
As described above, the information processing apparatus 300 of this embodiment is the information processing apparatus 300 having the first browser 410 that displays a screen on the operation display unit 340 (display unit). The information processing apparatus 300 includes the processor, the obtaining unit 510, and the receiving unit 530. The obtaining unit 510 accesses the Web application 230 installed in the server apparatus 200 (external apparatus) via the first browser 410, and obtains one or more scripts describing specific processing executed on the second browser for displaying a screen specific to the device. The script executing unit 550 functions when the processor executes the obtained one or more scripts on the first browser 410, and performs monitoring of the device and signal transmission to the device.
Conventionally, there has been a need to develop a control program by use of a browser for displaying a screen specific to a device. Therefore, it has been difficult to develop a control program for controlling a device, by use of a general purpose browser other than a browser for displaying a screen specific to the device.
In contrast, the information processing apparatus 300 according to this embodiment obtains one or more scripts describing processing specific to the second browser, and executes the one or more scripts on the first browser 410 of the information processing apparatus 300.
As described above, the information processing apparatus 300 of this embodiment is able to perform emulation of a device by executing one or more scripts on the first browser 410. In other words, the information processing apparatus 300 including the processor that executes the first browser 410, which is a general purpose browser different from the second browser, is able to be caused to function as an emulator of a device.
Therefore, with the information processing apparatus 300 of this embodiment, a control program for controlling a device is able to be developed, by use of a browser other than a browser for displaying a screen specific to the device.
Further, the one or more scripts are script programs describing specific processing executed on the second browser. Therefore, with the information processing apparatus 300, the processing specific to the second browser for displaying a screen specific to the device, such as monitoring of the device and signal transmission to the device, is able to be developed by use of the first browser 410. Therefore, in addition to the above described effects, the information processing apparatus 300 of this embodiment enables reduction of the number of manhours for development of a control program and reduction of cost of the development.
The one or more scripts include at least one of the state outputting script, the request transmitting script, the device state monitoring script, and the processing state monitoring script.
The state outputting script outputs state information of a device obtained from the device. The request transmitting script transmits a request signal to the device. The device state monitoring script monitors states of the device. The processing state monitoring script performs monitoring of states of processing being executed in the device.
Further, the information processing apparatus 300 includes the virtual processing unit 430 and the program interface unit 420. The virtual processing unit 430 executes at least operation specific to the device. The program interface unit 420 controls the virtual processing unit 430 according to a request from the first browser 410.
In this embodiment, a mode has been described, where the information processing unit 350 has a configuration including the virtual processing unit 430, and the program interface unit 420 controls the virtual processing unit 430. However, to the information processing unit 350, a device including at least one of an image generating function (printer function), a scanner function, a facsimile function, and the like may be connected to be able to transfer signals to and from the device, and the device may be controlled by the program interface unit 420.
According to the present invention, a control program operating on a browser is able to be easily made compatible with a new device having conflicting setting conditions.
Although the invention has been described with respect to specific embodiments for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
Number | Date | Country | Kind |
---|---|---|---|
2015-055383 | Mar 2015 | JP | national |
2015-058402 | Mar 2015 | JP | national |
2016-048497 | Mar 2016 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7328224 | Kawamoto | Feb 2008 | B2 |
7847968 | Abiko | Dec 2010 | B2 |
8065507 | Asano | Nov 2011 | B2 |
8451496 | Ohashi | May 2013 | B2 |
8813021 | Ogami | Aug 2014 | B1 |
8817281 | Natori | Aug 2014 | B2 |
9213508 | Sueshige | Dec 2015 | B2 |
9609152 | Suwabe | Mar 2017 | B2 |
20070081180 | Abiko | Apr 2007 | A1 |
20080144087 | Mitsui | Jun 2008 | A1 |
20080235789 | Erwin | Sep 2008 | A1 |
20090251713 | Funane | Oct 2009 | A1 |
20090271696 | Bailor | Oct 2009 | A1 |
20110032569 | Ohashi | Feb 2011 | A1 |
20110134475 | Ooba | Jun 2011 | A1 |
20110239060 | Okada | Sep 2011 | A1 |
20120110433 | Pan | May 2012 | A1 |
20120120437 | Nanaumi | May 2012 | A1 |
20120194844 | Natori | Aug 2012 | A1 |
20130263046 | Takahashi | Oct 2013 | A1 |
20140198343 | Cho | Jul 2014 | A1 |
20150002888 | Tsujimoto | Jan 2015 | A1 |
20150268948 | Plate | Sep 2015 | A1 |
20150281500 | Mori | Oct 2015 | A1 |
20150309848 | Sundstrom | Oct 2015 | A1 |
20150370650 | Tajima | Dec 2015 | A1 |
Number | Date | Country |
---|---|---|
2005-267088 | Sep 2005 | JP |
2007-102725 | Apr 2007 | JP |
2008-015695 | Jan 2008 | JP |
2009-015798 | Jan 2009 | JP |
2010-191543 | Sep 2010 | JP |
2010-218314 | Sep 2010 | JP |
2011-039628 | Feb 2011 | JP |
2012-160009 | Aug 2012 | JP |
2015-201167 | Nov 2015 | JP |
Entry |
---|
Japanese Office Action dated Jul. 2, 2019 for corresponding Japanese Application No. 2016048497. |
Number | Date | Country | |
---|---|---|---|
20160277608 A1 | Sep 2016 | US |