The present invention relates to an information processing device and an information processing method for operating equipment.
Multifunction peripherals are known that can be operated through a browser program for browsing Web pages. Such multifunction peripherals include an application programming interface (API) for controlling functions as a scanner, a printer, or the like through the browser program. In such multifunction peripherals, the browser program can receive a state change in the scanner, the printer, and the like as an event.
However, the event notifying of the state change in the scanner and the like includes detailed information about the scanner, the printer, and the like. Accordingly, detailed knowledge about the scanner and the printer is required to develop the Web page for operating the scanner, the printer, and the like through the browser program, so that it has been difficult to develop the Web page.
In view of such a situation, there is a need to provide an information processing device and an information processing method by which an appropriate user interface corresponding to the state of the equipment can be created without detailed knowledge about the equipment.
The present invention is an information processing device that operates equipment. The information processing device includes: an operation display unit that displays information for a user and receives an input from the user; and an information processing unit including a processor that executes a browser program. The information processing unit includes: a communication unit that functions by the processor executing the browser program, and acquires an operation program and a conversion script that provide a user interface for operating the equipment through the operation display unit; a conversion script processing unit that functions by the processor executing the conversion script on the browser program, analyzes a state of the equipment, and issues an event corresponding to the state of the equipment; and a display control unit that functions by the processor executing the operation program on the browser program, and provides the user interface corresponding to the event through the operation display unit in response to issuance of the event.
According to an aspect of the invention, an appropriate user interface corresponding to the state of the equipment can be created without detailed knowledge about the equipment.
The following describes embodiments according to the present invention in detail with reference to the drawings. The invention is not limited to the embodiments.
The server device 20 and the image forming apparatus 30 are connected to each other via a network 12. As an example, the network 12 may be a publicly connected network such as the Internet or a local network such as an intra-company network. The network 12 may be a wired network or a wireless network.
The server device 20 is accessed from the image forming apparatus 30. The server device 20 transmits information to the image forming apparatus 30 and receives information from the image forming apparatus 30 via the network 12.
The server device 20 includes a network I/F 21 and an information providing unit 22. The network I/F 21 is an interface for transmitting/receiving information to/from other devices via the network 12. The information providing unit 22 provides an operation program and a conversion script to the server device 20 via the network 12.
The operation program and the conversion script are computer programs downloaded from a browser program to be executed on the browser program. In the embodiment, the operation program is an HTML file described using HyperText Markup Language (HTML). The conversion script is a script program executed on the browser program.
The image forming apparatus 30 includes a network I/F 31, a scanner 32, a printer 33, an operation display unit 34, and an information processing unit 35. The network I/F 31 is an interface for transmitting/receiving information to/from other devices via the network 12.
The printer 33 prints a character, an image, and the like corresponding to data on a sheet, for example. The scanner 32 reads the character, the image, and the like printed on the sheet, and converts them into data. The image forming apparatus 30 may be configured to include only one of the scanner 32 and the printer 33. Alternatively, the image forming apparatus 30 may be configured to include other equipment operated by an information processing device.
The operation display unit 34 displays information for a user and receives an input from the user. As an example, the operation display unit 34 is a touch panel. The operation display unit 34 may include an operation button, a mouse, a keyboard and/or the like.
The information processing unit 35 is an information processing device including a processor. The information processing unit 35 controls the scanner 32 and the printer 33 in response to an operation by the user on the operation display unit 34. The information processing unit 35 executes the browser program, and downloads the operation program (such as an HTML file) and the conversion script from the server device 20 on the browser program. The information processing unit 35 then executes the operation program and the conversion script on the browser program to provide the user interface for operating the scanner 32 and the printer 33.
More specifically, the information processing unit 35 includes a browser unit 41, a program interface unit 42, and a state notifying unit 43. The browser unit 41 functions by the processor executing the browser program.
The program interface unit 42 is a software interface for controlling operations of the scanner 32 and the printer 33 through the browser program. The program interface unit 42 causes the scanner 32 and the printer 33 to execute a job in response to a generation request for the job from the browser program. When the scanner 32 and the printer 33 execute the job, the program interface unit 42 transmits a job ID for identifying the job to a computer program.
The state notifying unit 43 acquires states of the scanner 32 and the printer 33 from the program interface unit 42. The state notifying unit 43 then generates state data representing the acquired state and notifies the browser program of the state data.
In the embodiment, the state notifying unit 43 acquires an execution state of the job by the scanner 32 or the printer 33 from the program interface unit 42. Subsequently, the state notifying unit 43 notifies the browser program of the state data including job information representing the execution state of the job.
The browser unit 41 includes a communication unit 51, a display control unit 52, an input unit 53, a receiving unit 54, and a conversion script processing unit 58.
The communication unit 51 functions by the processor executing the browser program. The communication unit 51 acquires the operation program (such as an HTML file) and the conversion script from the server device 20. The operation program and the conversion script are computer programs that provide the user interface for operating the scanner 32 and the printer 33 through the operation display unit 34.
The display control unit 52 functions by the processor executing the operation program on the browser program. The display control unit 52 controls display on the operation display unit 34. More specifically, the display control unit 52 causes the user interface to be displayed on the operation display unit 34.
The input unit 53 functions by the processor executing the browser program. The input unit 53 inputs an operation by the user on the operation display unit 34. The input unit 53 also inputs an operation on the user interface displayed on the operation display unit 34 when the processor executes the operation program (such as an HTML file) on the browser program.
The receiving unit 54 functions by the processor executing the browser program. The receiving unit 54 receives the state data notified from the state notifying unit 43.
The conversion script processing unit 58 functions by the processor executing the conversion script on the browser program. The conversion script processing unit 58 transmits the job generation request to the program interface unit 42 corresponding to an operation instruction from the user through the user interface. The conversion script processing unit 58 receives and stores the job ID from the program interface unit 42 in response to the job generation request transmitted to the program interface unit 42.
The conversion script processing unit 58 analyzes the state of the scanner 32 or the printer 33 based on the state data received by the receiving unit 54. The conversion script processing unit 58 then issues an event corresponding to the state of the scanner 32 or the printer 33.
In the embodiment, the conversion script processing unit 58 analyzes the execution state of the job by the scanner 32 or the printer 33 based on the state data including the job information, and issues the event corresponding to the execution state of the job. More specifically, the conversion script processing unit 58 stores the job information included in the state data for each job ID, and analyzes whether there is a change in the job information as compared with preceding job information stored for the same job ID, in response to the acquisition of the job information included in the state data. When there is a change in the job information, the conversion script processing unit 58 issues the event corresponding to the execution state of the job.
Subsequently, the display control unit 52 provides the user interface corresponding to the event via the operation display unit 34 in response to issuance of the event from the conversion script processing unit 58.
The information processing unit 35 of the image forming apparatus 30 includes a 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 serving as an interface with respect to the operation display unit 34. In the information processing unit 35, the processor such as the CPU 111 loads and executes, on the memory 112, the operating system and the browser program stored in advance in the storage device 113.
Subsequently, the processor such as the CPU 111 downloads the operation program and the conversion script from the server device 20 via the network 12, and loads and executes the operation program and the conversion script on the memory 112. Such an operation program and a conversion script have a module configuration including a display control module, an input module, and a script processing module. When the processor such as the CPU 111 executes these modules, the information processing unit 35 is enabled to function as the display control unit 52, the input unit 53, and the conversion script processing unit 58.
The communication unit 51 then transmits the acquisition request for the HTML file to the server device 20 at Step S13. Next, the server device 20 transmits a response including the HTML file to the communication unit 51 at Step S14. Subsequently, the communication unit 51 extracts the HTML file from the response and gives an analysis instruction for the extracted HTML file to the display control unit 52 at Step S15.
When receiving the analysis instruction, the display control unit 52 analyzes the HTML file. The HTML file includes a call request for the conversion script and the URI indicating the storage place of the conversion script. The display control unit 52 then gives the acquisition request for the conversion script to the communication unit 51 at Step S16. When the HTML file includes an image file, cascading style sheets (CSS), other scripts, and/or the like as a result of analysis, the display control unit 52 also gives the acquisition request for those to the communication unit 51.
The communication unit 51 then transmits the acquisition request for the conversion script to the server device 20 at Step S17. Next, the server device 20 transmits the response including the conversion script to the communication unit 51 at Step S18. Subsequently, the communication unit 51 transmits the response including the conversion script to the display control unit 52 at Step S19.
When receiving the response to the acquisition request for the conversion script, the display control unit 52 extracts the conversion script from the response. Subsequently, the display control unit 52 gives the analysis instruction for the extracted conversion script to the conversion script processing unit 58 at Step S20. When receiving the analysis instruction, the conversion script processing unit 58 analyzes the conversion script and is caused to be in a standby state for execution of the conversion script. Subsequently, after the analysis is finished, the conversion script processing unit 58 transmits the response to the display control unit 52 at Step S21.
The display control unit 52 then generates a screen including the user interface for controlling the scanner 32 and the printer 33 based on the analysis result of the HTML file at Step S22. Subsequently, the display control unit 52 displays the generated screen on the operation display unit 34 at Step S23.
Through the above processing, the information processing unit 35 can acquire the HTML file (operation program) and the conversion script from the server device 20. The information processing unit 35 can also display the screen for operating and controlling the scanner 32 and the printer 33 by the browser program.
The user operates the user interface displayed on the operation display unit 34 to give the operation instruction for the scanner 32 or the printer 33 to the operation display unit 34. For example, the user operates the user interface to give, to the operation display unit 34, an operation starting instruction for the scanner 32 or the printer 33 and setting information such as a resolution or a distinction between monochrome and color.
When receiving such an operation instruction, first, the operation display unit 34 gives the operation instruction to the input unit 53 of the browser unit 41 at Step S31. The input unit 53 then gives the operation instruction to the conversion script processing unit 58 at Step S32. When receiving the operation instruction, the conversion script processing unit 58 gives a generation instruction for a screen of when in operation to the display control unit 52 at Step S33.
Subsequently, when receiving the generation instruction for the screen, the display control unit 52 generates the screen of when in operation. The display control unit 52 then displays the generated screen on the operation display unit 34 at Step S34.
On the other hand, when receiving the operation instruction from the input unit 53, the conversion script processing unit 58 transmits a generation request for a job including processing content according to the operation instruction to the communication unit 51 at Step S35. Subsequently, the communication unit 51 transmits the job generation request to the program interface unit 42 at Step S36. In response to the reception of the job generation request, the program interface unit 42 causes the scanner 32 or the printer 33 to execute the job according to the operation instruction.
At Step S37, the program interface unit 42 then transmits the response to the communication unit 51 according to causing the scanner 32 or the printer 33 to execute the job. In this case, when the job is successfully generated, the program interface unit 42 causes the response to include the job ID for identifying the generated job and the job information representing the execution state of the current job. The communication unit 51 then extracts the job ID and the job information from the received response, and transmits the job ID and the job information to the conversion script processing unit 58 at Step S38. Subsequently, when receiving the job ID and the job information, the conversion script processing unit 58 stores the job ID and stores the job information in association with the job ID at Step S39.
Through the above processing, when receiving the operation instruction for the scanner 32 or the printer 33, the information processing unit 35 can display a user interface screen indicating in-operation. The information processing unit 35 can also cause the scanner 32 or the printer 33 to execute the job according to the operation instruction, and store the job ID for identifying the executed job and the job information representing the execution state of the job.
First, the conversion script processing unit 58 transmits the generation request for a job including processing content according to the operation instruction to the program interface unit 42 at Step S41. Next, the conversion script processing unit 58 receives a response to the job generation request at Step S42. Subsequently, the conversion script processing unit 58 analyzes content of the response to determine whether the job is successfully generated at Step S43. If the job is not successfully generated (No at Step S43), the conversion script processing unit 58 ends this procedure. If the job is successfully generated (Yes at Step S43), the conversion script processing unit 58 advances the process to Step S44.
At Step S44, the conversion script processing unit 58 acquires the job ID included in the response. For example, the conversion script processing unit 58 acquires the job ID as illustrated in
Subsequently, the conversion script processing unit 58 stores the job ID together with the job information representing the execution state of the job in association with the job ID at Step S45. For example, the conversion script processing unit 58 stores the job ID and the job information using a job list as illustrated in
For example, the conversion script processing unit 58 acquires the job information as illustrated in
For example, the conversion script processing unit 58 may acquire the job information as illustrated in
When the job ID and the job information are completely stored in the conversion script processing unit 58, the conversion script processing unit 58 ends this procedure.
First, at Step S51, the program interface unit 42 notifies the state notifying unit 43 of the state of the scanner 32 or the printer 33 executing the job. As an example, the program interface unit 42 notifies the state when requested from the state notifying unit 43 or at regular intervals.
The state notifying unit 43 acquires the execution state of the job by the scanner 32 or the printer 33 due to the notification from the program interface unit 42. Subsequently, at Step S52, the state notifying unit 43 notifies the receiving unit 54 of the browser program of the state data including the job information representing the execution state of the job by the scanner 32 or the printer 33.
At Step S53, when the state data is notified from the state notifying unit 43, the receiving unit 54 then gives an execution instruction for the conversion script to the conversion script processing unit 58. In this case, the receiving unit 54 causes the execution instruction to include the state data.
Subsequently, at Step S54, the conversion script processing unit 58 executes the conversion script to analyze the execution state of the job based on the job information included in the state data. At Step S55, the conversion script processing unit 58 then issues the event corresponding to the execution state of the job to the display control unit 52 based on the execution state of the job represented in the job information.
Next, at Step S56, the display control unit 52 generates a screen including the user interface corresponding to the issued event. At Step S57, the display control unit 52 displays the generated screen on the operation display unit 34.
Through the above processing, the information processing unit 35 can acquire the execution state of the job by the scanner 32 or the printer 33 from the program interface unit 42. The information processing unit 35 can also give the event corresponding to the execution state of the job by the scanner 32 or the printer 33 to the display control unit 52. The information processing unit 35 can display the user interface screen suitable for the execution state of the job based on the event corresponding to the execution state of the job.
First, at Step S61, the conversion script processing unit 58 receives the state data. Next, at Step S62, the conversion script processing unit 58 acquires the job ID from the state data.
Subsequently, at Step S63, the conversion script processing unit 58 searches a stored job list using the job ID to retrieve the job information associated with the job ID. At Step S64, the conversion script processing unit 58 then determines whether the job information is found. If the job information is not found (No at Step S64), this procedure is ended. If the job information is found (Yes at Step S64), the process proceeds to Step S65.
At Step S65, the conversion script processing unit 58 extracts the job information included in the received state data. At Step S66, the conversion script processing unit 58 then stores, in a column of preceding job information, the current job information stored in association with the job ID included in the state data. Subsequently, at Step S67, the conversion script processing unit 58 stores, in a column of current job information, the job information extracted from the received state data.
For example, as illustrated in
Subsequently, at Step S68, the conversion script processing unit 58 compares the current job information with the preceding job information to determine whether there is a change. That is, the conversion script processing unit 58 determines whether there is a change in the execution state of the job. If there is no change (No 30, at Step S68), the conversion script processing unit 58 ends this procedure. If there is a change (Yes at Step S68), the conversion script processing unit 58 advances the process to Step S69.
Subsequently, at Step S69, the conversion script processing unit 58 generates the event. That is, the conversion script processing unit 58 generates the event corresponding to the execution state of the job.
For example, the conversion script processing unit 58 issues an event of waiting for a user operation indicating that the job executed by the scanner 32 is waiting for a user operation as illustrated in
For example, the conversion script processing unit 58 issues an interruption event indicating that the job executed by the printer 33 is interrupted as illustrated in
In addition, for example, the conversion script processing unit 58 may issue a standby event indicating that equipment is in a standby state, a processing event indicating that the equipment is under processing, a cancellation event indicating that the job is canceled through a canceling operation by the user, a completion event indicating that the job is completed, an event of updating the number of reading faces indicating that the number of reading faces is updated, an event of updating the number of printing faces indicating that the number of printing faces is updated, and the like.
The conversion script processing unit 58 may issue two or more events at the same time. For example, when the execution state of the job by the scanner 32 is changed from the state under processing to the state of waiting for a user operation and the number of reading faces is changed from 2 to 3, the conversion script processing unit 58 may issue the event of waiting for a user operation and the event of updating the number of reading faces at the same time.
Subsequently, at Step S70, the conversion script processing unit 58 associates the generated event with the job ID. For example, as illustrated in
At Step S71, the conversion script processing unit 58 then issues the generated event to the display control unit 52. After issuing the event, the conversion script processing unit 58 ends this procedure.
First, at Step S81, the conversion script processing unit 58 determines whether the state is changed with reference to the job information. If the state is changed (Yes at Step S81), the event corresponding to the changed state is generated at Step S82. If the state is not changed (No at Step S81), and when the process at Step S82 is ended, the conversion script processing unit 58 advances the process to Step S83.
Next, at Step S83, the conversion script processing unit 58 determines whether the number of reading faces is changed with reference to the job information. If the number of reading faces is changed (Yes at Step S83), the event of updating the number of reading faces is generated at Step S84. If the number of reading faces is not changed (No at Step S83), and when the process at Step S84 is ended, the conversion script processing unit 58 advances the process to Step S85.
Subsequently, at Step S85, the conversion script processing unit 58 determines whether the number of transmitted destinations is changed with reference to the job information. If the number of transmitted destinations is changed (Yes at Step S85), the event of updating the number of transmitted destinations is generated at Step S86. If the number of transmitted destinations is not changed (No at Step S85), and when the process at Step S86 is ended, the conversion script processing unit 58 ends this procedure.
First, at Step S91, the conversion script processing unit 58 determines whether the state is changed with reference to the job information. If the state is changed (Yes at Step S91), the event corresponding to the changed state is generated at Step S92. If the state is not changed (No at Step S91), and when the process at Step S92 is ended, the conversion script processing unit 58 advances the process to Step S93.
Next, at Step S93, the conversion script processing unit 58 determines whether the file is already read with reference to the job information. If the file is already read (Yes at Step S93), an event indicating that the file is already read is generated at Step S94. If the file is not already read (No at Step S93), and when the process at Step S94 is ended, the conversion script processing unit 58 advances the process to Step S95.
Subsequently, at Step S95, the conversion script processing unit 58 determines whether the number of printing faces is changed with reference to the job information. If the number of printing faces is changed (Yes at Step S95), the event of updating the number of printing faces is generated at Step S96. If the number of printing faces is not changed (No at Step S95), and when the process at Step S96 is ended, the conversion script processing unit 58 ends this procedure.
As described above, the image forming system 10 according to the embodiment analyzes the execution state of the job by the scanner 32 or the printer 33 and issues the event corresponding to the execution state when the conversion script processing unit 58 executes the conversion script. When the display control unit 52 executes the HTML file (operation program), the user interface corresponding to the event is provided.
Accordingly, the image forming system 10 according to the embodiment can issue an appropriate event corresponding to the execution state of the job by the scanner 32 or the printer 33 by calling the conversion script created in advance as the HTML file. Accordingly, the image forming system 10 according to the embodiment can easily create the HTML file (operation program) for providing the user interface without detailed knowledge for understanding the state of the scanner 32 and the printer 33.
In the embodiment, the conversion script processing unit 58 may issue not only the event corresponding to the execution state of the job but also an event corresponding to the state of the scanner 32 and the printer 33 not executing the job. The state notifying unit 43 monitors the state of the scanner 32 and the printer 33. When the state of the scanner 32 and the printer 33 is changed, the state notifying unit 43 notifies the browser program of the state data indicating the changed state. In this case, the sequence illustrated in
The image forming system 10 according to the first modification includes the server device 20, the image forming apparatus 30, and an information processing device 60. The image forming apparatus 30 according to the first modification includes the network I/F 31, the scanner 32, the printer 33, and the information processing unit 35, and does not include the operation display unit 34. The information processing unit 35 includes the program interface unit 42, and does not include the browser unit 41 and the state notifying unit 43.
The information processing device 60 includes a network I/F 61, an information processing unit 62, and the operation display unit 34. The network I/F 61 has the same function and configuration as those of the network I/F 31. The information processing unit 62 includes the browser unit 41 and the state notifying unit 43. A hardware configuration of the information processing unit 62 is the same as that of the information processing unit 35.
In the first modification, the program interface unit 42 communicates with the browser unit 41 and the state notifying unit 43 via the network 12.
In the image forming system 10 according to the first modification of the first embodiment, the information processing device for operation can be separated from the image forming apparatus 30.
The server interface unit 71 is a software interface to access the information providing unit 22 from the browser program. In the information processing unit 35, the scanner 32 and the printer 33, the information processing device for operation, and the information providing unit 22 that stores the operation program and the conversion script are integrated with each other.
In the image forming apparatus 30 according to the second modification of the first embodiment, the operation program and the conversion script can be acquired without accessing the server device 20 via the network 12.
The image forming system 75 includes the server device 20 and the image forming apparatus 30. The information providing unit 22 of the server device 20 provides the operation program, a web script, a control script, and the conversion script to the image forming apparatus 30 via the network 12.
The web script and the control script are computer programs downloaded from the browser program to be executed on the browser program. In the embodiment, the web script and the control script are script programs executed on the browser program.
The information processing unit 35 executes the browser program and downloads the operation program (such as an HTML file), the web script, the control script, and the conversion script from the server device 20 on the browser program. The information processing unit 35 then executes the operation program, the web script, the control script, and the conversion script on the browser program to provide the user interface for operating the scanner 32 and the printer 33.
The browser unit 41 includes the communication unit 51, the display control unit 52, the input unit 53, the receiving unit 54, a web script processing unit 56, a control script processing unit 57, and the conversion script processing unit 58. The browser unit 41 is different from that in the first embodiment in that the browser unit 41 further includes the web script processing unit 56 and the control script processing unit 57.
The communication unit 51 acquires the operation program (such as an HTML file), the web script, the control script, and the conversion script from the server device 20. The operation program, the web script, the control script, and the conversion script are computer programs that provide the user interface for operating the scanner 32 and the printer 33 through the operation display unit 34.
The web script processing unit 56 functions by the processor executing the web script on the browser program. The web script is an application program described using a script language to be executed on the browser program. The web script processing unit 56 executes an operation described in the application program.
The control script processing unit 57 functions by the processor executing the control script on the browser program. The control script processing unit 57 gives the job generation request to the conversion script processing unit 58 corresponding to the operation instruction given by the web script processing unit 56. The control script processing unit 57 also issues the user interface information used for generating the user interface to the web script processing unit 56. As an example, when the event is issued, the control script processing unit 57 issues the user interface information corresponding to the event.
The conversion script processing unit 58 functions by the processor executing the conversion script on the browser program. In the embodiment, the conversion script processing unit 58 transmits the job generation request given by the control script processing unit 57 to the program interface unit 42 corresponding to the operation instruction from the user through the user interface. The conversion script processing unit 58 receives and stores the job ID from the program interface unit 42 corresponding to the job generation request transmitted to the program interface unit 42.
The conversion script processing unit 58 analyzes the state of the scanner 32 or the printer 33 based on the state data received by the receiving unit 54. The conversion script processing unit 58 then issues the event corresponding to the state of the scanner 32 or the printer 33 to the control script processing unit 57.
When the event is issued from the conversion script processing unit 58, the control script processing unit 57 issues the user interface information corresponding to the issued event. The web script processing unit 56 displays the user interface according to the user interface information issued from the control script processing unit 57. The display control unit 52 then provides the user interface via the operation display unit 34 corresponding to the control by the web script processing unit 56.
A hardware configuration of the image forming system 75 according to the second embodiment is the same as the hardware configuration illustrated in
In the information processing unit 35 of the image forming apparatus 30, the processor such as the CPU 111 downloads the operation program, the web script, the control script, and the conversion script from the server device 20 via the network 12, and loads and executes the operation program, the web script, the control script, and the conversion script on the memory 112. The operation program, the web script, the control script, and the conversion script have a module configuration including a display control module, an input module, a web script processing module, a control script processing module, and a conversion script processing module. When the processor such as the CPU 111 executes these modules, the information processing unit 35 is enabled to function as the display control unit 52, the input unit 53, the web script processing unit 56, the control script processing unit 57, and the conversion script processing unit 58.
The communication unit 51 then transmits the acquisition request for the HTML file to the server device 20 at Step S113. Next, the server device 20 transmits a response including the HTML file to the communication unit 51 at Step S114. Subsequently, the communication unit 51 extracts the HTML file from the response and gives the analysis instruction for the extracted HTML file to the display control unit 52 at Step S115.
When receiving the analysis instruction, the display control unit 52 analyzes the HTML file. The HTML file includes the call request for the web script, the control script, and the conversion script, and the URI indicating the storage place of each script. The display control unit 52 then gives the acquisition request for each script to the communication unit 51 at Step S116. When the HTML file includes an image file, CSS, other scripts, and the like as a result of analysis, the display control unit 52 also gives the acquisition request for those to the communication unit 51.
The communication unit 51 then transmits the acquisition request for each script to the server device 20 at Step S117. Next, the server device 20 transmits the response including the web script, the control script, the conversion script, and the like to the communication unit 51 at Step S118. Subsequently, the communication unit 51 transmits the response including each script to the display control unit 52 at Step S119.
When receiving the response to the acquisition request for each script, the display control unit 52 extracts the web script, the control script, and the conversion script from the response. Subsequently, the display control unit 52 gives the analysis instruction for the extracted web script to the web script processing unit 56 at Step S120. When receiving the analysis instruction, the web script processing unit 56 analyzes the web script and starts to execute the web script to start provision of an application on the browser program. Subsequently, after the analysis and the process for starting the provision is finished, the web script processing unit 56 transmits the response to the display control unit 52 at Step S121.
At Step S122, the display control unit 52 then gives the analysis instruction for the extracted control script to the control script processing unit 57. When receiving the analysis instruction, the control script processing unit 57 analyzes the control script and is caused to be in a standby state for execution of the control script. Subsequently, after the analysis is finished, the control script processing unit 57 transmits the response to the display control unit 52 at Step S123.
Subsequently, the display control unit 52 gives the analysis instruction for the extracted conversion script to the conversion script processing unit 58 at Step S124. When receiving the analysis instruction, the conversion script processing unit 58 analyzes the conversion script and is caused to be in a standby state for execution of the conversion script. Subsequently, after the analysis is finished, the conversion script processing unit 58 transmits the response to the display control unit 52 at Step S125.
The display control unit 52 then generates a screen including the user interface for controlling the scanner 32 and the printer 33 based on the analysis result of the HTML file at Step S126. Subsequently, the display control unit 52 displays the generated screen on the operation display unit 34 at Step S127.
Through the above processing, the information processing unit 35 can acquire the HTML file (operation program), the web script, the control script, and the conversion script from the server device 20. The information processing unit 35 can also display the screen for operating and controlling the scanner 32 and the printer 33 on the browser program.
The user operates the user interface displayed on the operation display unit 34 to give the operation instruction for the scanner 32 or the printer 33 to the operation display unit 34. For example, the user operates the user interface to give, to the operation display unit 34, an operation starting instruction for the scanner or the printer and setting information such as a resolution or a distinction between monochrome and color.
When receiving such an operation instruction, first, the operation display unit 34 gives the operation instruction to the input unit 53 of the browser unit 41 at Step S131. The input unit 53 then gives the operation instruction to the web script processing unit 56 at Step S132. When receiving the operation instruction, the web script processing unit 56 generates an operation condition of the setting information such as a resolution or a distinction between monochrome and color at Step S133. At Step S134, the web script processing unit 56 then gives the operation instruction to the control script processing unit 57.
Subsequently, when receiving the operation instruction, the control script processing unit 57 executes the control script to generate the user interface information at Step S135. At Step S136, the control script processing unit 57 then gives a display request including the generated user interface information to the web script processing unit 56. At Step S137, the web script processing unit 56 then generates the user interface screen according to the user interface information included in the received display request and gives the user interface screen to the display control unit 52.
Subsequently, when receiving the user interface screen, the display control unit 52 displays the received screen on the operation display unit 34 at Step S138.
In contrast, when receiving the operation instruction from the web script processing unit 56, the control script processing unit 57 executes the control script and gives the received operation instruction to the conversion script processing unit 58 at Step S139. When receiving the operation instruction from the control script processing unit 57, the conversion script processing unit 58 then transmits a generation request for a job including processing content according to the operation instruction to the communication unit 51 at Step S140. The processing performed by the conversion script processing unit 58 when the job is generated is the same as that in the first embodiment. Subsequently, the communication unit 51 transmits the job generation request to the program interface unit 42 at Step S141. In response to the reception of the job generation request, the program interface unit 42 causes the scanner 32 or the printer 33 to execute the job according to the operation instruction.
At Step S142, the program interface unit 42 then transmits the response to the communication unit 51 according to causing the scanner 32 or the printer 33 to execute the job. In this case, when the job is successfully generated, the program interface unit 42 causes the response to include the job ID for identifying the generated job and the job information representing the execution state of the current job. The communication unit 51 then extracts the job ID and the job information from the received response, and transmits the job ID and the job information to the conversion script processing unit 58 at Step S143. Subsequently, when receiving the job ID and the job information, the conversion script processing unit 58 stores the job ID together with the job information in association with the job ID at Step S144.
Through the above processing, when receiving the operation instruction for the scanner 32 or the printer 33, the information processing unit 35 can display a user interface screen indicating in-operation. The information processing unit 35 can also cause the scanner 32 or the printer 33 to execute the job according to the operation instruction, and store the job ID for identifying the executed job and the job information representing the execution state of the job.
First, at Step S151, the control script processing unit 57 receives the operation instruction. Next, at Step S152, the control script processing unit 57 generates the user interface information for generating the user interface screen indicating that the operation is being executed.
For example, when receiving the operation instruction to start scanning, the control script processing unit 57 generates the user interface information including a message of “scanning” and information representing that a canceling operation cannot be accepted as illustrated in
Subsequently, at Step S153, the control script processing unit 57 gives the display request for the user interface to the web script processing unit 56. In this case, the user interface information generated at Step S152 is caused to be included in the display request.
At Step S154, the control script processing unit 57 then gives the received operation instruction to the conversion script processing unit 58. Subsequently, the control script processing unit 57 ends this procedure.
First, at Step S171, the program interface unit 42 notifies the state notifying unit 43 of the state of the scanner 32 or the printer 33 executing the job. As an example, the program interface unit 42 notifies the state when requested from the state notifying unit 43 or at regular intervals.
The state notifying unit 43 acquires the execution state of the job by the scanner 32 or the printer 33 due to the notification from the program interface unit 42. Subsequently, at Step S172, the state notifying unit 43 notifies the receiving unit 54 of the browser program of the state data including the job information representing the execution state of the job by the scanner 32 or the printer 33.
At Step S173, when the state data is notified from the state notifying unit 43, the receiving unit 54 then gives the execution instruction for the conversion script to the conversion script processing unit 58. In this case, the receiving unit 54 causes the execution instruction to include the state data.
Subsequently, at Step S174, the conversion script processing unit 58 executes the conversion script to analyze the execution state of the job based on the job information included in the state data. At Step S175, the conversion script processing unit 58 then issues the event corresponding to the execution state of the job to the control script processing unit 57 based on the execution state of the job represented in the job information. The processing performed by the conversion script processing unit 58 when the event is issued is the same as that in the first embodiment.
Subsequently, at Step S176, the control script processing unit 57 executes the control script, analyzes the event, and generates the user interface information. At Step S177, the control script processing unit 57 then gives the display request including the generated user interface information to the web script processing unit 56. At Step S178, the web script processing unit 56 generates the user interface screen according to the user interface information included in the received display request and gives the user interface screen to the display control unit 52.
When receiving the user interface screen, the display control unit 52 then displays the received screen on the operation display unit 34 at Step S179.
Through the above processing, the information processing unit 35 can acquire the execution state of the job by the scanner 32 or the printer 33 from the program interface unit 42. The information processing unit 35 can also give the event corresponding to the execution state of the job by the scanner 32 or the printer 33 to the display control unit 52. The information processing unit 35 generates the user interface information for the event corresponding to the execution state of the job. The information processing unit 35 then generates the user interface screen according to the generated user interface information. Accordingly, the information processing unit 35 can easily generate and display the user interface screen suitable for the execution state of the job.
First, at Step S231, the control script processing unit 57 receives the event. Next, at Step S232, the control script processing unit 57 generates the user interface information used for generating the user interface corresponding to the event in response to issuance of the event. A detailed generation method will be further described with reference to
Subsequently, at Step S233, the control script processing unit 57 gives the display request for the user interface to the web script processing unit 56. In this case, the user interface information generated at Step S232 is caused to be included in the display request. The control script processing unit 57 then ends this procedure.
First, at Step S241, the control script processing unit 57 generates a message to be presented to the user in providing the user interface with reference to the event or the operation instruction. The control script processing unit 57 generates the message with reference to data created in advance corresponding to each event or each operation instruction.
At subsequent Steps S242 to S247, the control script processing unit 57 generates operation content that can be accepted from the user and a function to be executed when the operation is accepted depending on the user interface to be generated based on the event or the operation instruction.
Specifically, first, at Step S242, the control script processing unit 57 determines whether the user can perform the canceling operation through the user interface to be generated. If the user can perform the canceling operation (Yes at Step S242), the control script processing unit 57 generates a function to be executed when the canceling operation is accepted at Step S243. If the user cannot perform the canceling operation (No at Step S242), or when the process at Step S243 is ended, the control script processing unit 57 advances the process to Step S244.
At Step S244, the control script processing unit 57 determines whether the user can perform an ending operation through the user interface to be generated. If the user can perform the ending operation (Yes at Step S244), the control script processing unit 57 generates a function to be executed when the ending operation is accepted at Step S245. If the user cannot perform the ending operation (No at Step S244), or when the process at Step S245 is ended, the control script processing unit 57 advances the process to Step S246.
At Step S246, the control script processing unit 57 determines whether the user can perform a continuing operation through the user interface to be generated. If the user can perform the continuing operation (Yes at Step S246), the control script processing unit 57 generates a function to be executed when the continuing operation is accepted at Step S247. If the user cannot perform the continuing operation (No at Step S246), or when the process at Step S247 is ended, the control script processing unit 57 advances the process to Step S248.
Subsequently, at Step S248, the control script processing unit 57 creates the user interface information based on the information described above. The user interface information to be created includes the message to be presented to the user in providing the user interface, the operation content that can be accepted from the user, and the function to be executed when the operation is accepted. When the process at Step S248 is ended, the control script processing unit 57 ends this procedure.
For example, when waiting for an operation of setting an original by the user during a scanning operation by the scanner 32, the control script processing unit 57 generates the user interface information as illustrated in
As the user interface information, the control script processing unit 57 may further generate user interface information for generating the user interface to be provided when an error occurs, when a warning is given, when the process is normally finished, and the like.
As described above, when the conversion script processing unit 58 executes the conversion script, the image forming system 75 according to the embodiment analyzes the execution state of the job by the scanner 32 or the printer 33 and issues the event corresponding to the execution state. The control script processing unit 57 then generates the user interface information (such as a message and a function) required for generating the user interface corresponding to the event. Subsequently, the display control unit 52 executes the HTML file (operation program) to provide the user interface corresponding to the user interface information.
Accordingly, the image forming system 75 according to the embodiment can provide an appropriate user interface corresponding to the execution state of the job by the scanner 32 or the printer 33 by calling the control script and the conversion script created in advance as the HTML file. Accordingly, the image forming system 75 according to the embodiment can easily create the HTML file (operation program) and the like for providing the user interface without detailed knowledge for understanding the state of the scanner 32 and the printer 33.
In the embodiment, the conversion script processing unit 58 may issue not only the event corresponding to the execution state of the job but also an event corresponding to the state of the scanner 32 and the printer 33 not executing the job. The state notifying unit 43 monitors the state of the scanner 32 and the printer 33. When the state of the scanner 32 and the printer 33 is changed, the state notifying unit 43 notifies the browser program of the state data indicating the changed state. In this case, the sequence illustrated in
The server device 20 according to the first modification of the second embodiment further includes a message storage unit 59. The message storage unit 59 stores a plurality of messages to be included in the user interface information. The message storage unit 59 stores therein each message in association with identifying information (message ID). The messages included in the message storage unit 59 are downloaded together with the control script and the like by the information processing unit 35.
In the first modification of the second embodiment, the user interface information includes the message ID for identifying the message in the message storage unit 59 instead of the message. When receiving the user interface information, the web script processing unit 56 acquires the message based on the message ID and generates a screen.
In the image forming system 75 according to the first modification of the second embodiment, the control script and the message are separately stored, so that a developer and the like of the HTML file can change content of the message by rewriting the message in the message storage unit 59.
The image forming system 75 according to the second modification includes the server device 20, the image forming apparatus 30, and the information processing device 60. The image forming apparatus 30 according to the second modification includes the network I/F 31, the scanner 32, the printer 33, and the information processing unit 35, and does not include the operation display unit 34. The information processing unit 35 includes the program interface unit 42, and does not include the browser unit 41 and the state notifying unit 43.
The information processing device 60 includes the network I/F 61, the information processing unit 62, and the operation display unit 34. The network I/F 61 has the same function and configuration as those of the network I/F 31. The information processing unit 62 includes the browser unit 41 and the state notifying unit 43. A hardware configuration of the information processing unit 62 is the same as that of the information processing unit 35.
In the second modification of the second embodiment, the program interface unit 42 communicates with the browser unit 41 and the state notifying unit 43 via the network 12.
In the image forming system 75 according to the second modification of the second embodiment, the information processing device for operation can be separated from the image forming apparatus 30.
The server interface unit 71 is a software interface to access the information providing unit 22 from the browser program. In the information processing unit 35, the scanner 32 and the printer 33, the information processing device for operation, and the information providing unit 22 that stores the operation program, the web script, the control script, and the conversion script are integrated with each other.
In the image forming apparatus 30 according to the third modification of the second embodiment, the operation program, the web script, the control script, and the conversion script can be acquired without accessing the server device 20 via the network 12.
Next, the following describes an image forming system 80 according to a third embodiment. The image forming system 80 according to the third embodiment has substantially the same function and configuration as those of the image forming system 75 according to the second embodiment described above with reference to
The management script is a computer program downloaded from the browser program to be executed on the browser program. In the embodiment, the management script is a script program executed on the browser program.
The information processing unit 35 included in the image forming apparatus 30 executes the browser program and further downloads the operation program, the web script, the control script, the conversion script, and the management script from the server device 20 on the browser program. The information processing unit 35 then executes these computer programs (such as the management script) on the browser program to provide the user interface for operating the scanner 32 and the printer 33.
The browser unit 41 further includes a management script processing unit 81. The communication unit 51 acquires the management script and the like from the server device 20.
The management script processing unit 81 functions by the processor executing the management script on the browser program. The management script processing unit 81 manages the issuing order of the events issued from the conversion script processing unit 58. More specifically, when the event generated by the conversion script processing unit 58 is an event that needs to be issued earlier than an event that has been issued, the management script processing unit 81 discards the event generated by the conversion script processing unit 58.
For example, the management script processing unit 81 manages, for each job, a table associating a plurality of events to be issued for the job with respective order values indicating the issuing order of the events in the job. The management script processing unit 81 then compares the order value of the event generated by the conversion script processing unit 58 with the order value associated with the event that has been issued to determine whether the generated event is the event that needs to be issued earlier than the event that has been issued. Accordingly, when the generated event is the event that needs to be issued earlier than the event that has been issued, the management script processing unit 81 can discard the event.
In response to the acquisition request (S117) for the script from the image forming apparatus 30, the server device 20 transmits the response including the management script and the like to the communication unit 51 at Step S118. Subsequently, at Step S119, the communication unit 51 transmits the response including the management script and the like to the display control unit 52.
When receiving the response to the script acquisition request (S119), the display control unit 52 extracts the management script from the response. At Step S301, the display control unit 52 gives an analysis instruction for the extracted management script to the management script processing unit 81. When receiving the analysis instruction, the management script processing unit 81 analyzes the management script and is caused to be in a standby state for execution of the management script. Subsequently, after the analysis is finished, the management script processing unit 81 transmits the response to the display control unit 52 at Step S302.
By executing such a sequence, the information processing unit 35 can acquire the management script and the like from the server device 20 to be in the standby state for execution of the management script.
At Step S175, the conversion script processing unit 58 generates the event based on the execution state of the job represented in the job information, and issues the generated event to the management script processing unit 81.
Subsequently, at Step S311, the management script processing unit 81 executes the management script to analyze the event generated by the conversion script processing unit 58, and determines whether the generated event is an event that needs to be issued earlier than the event that has been issued for the same job. When the generated event is the event that needs to be issued earlier than the event that has been issued for the same job, the management script processing unit 81 discards the event and ends the sequence.
When the event generated by the conversion script processing unit 58 is not the event that needs to be issued earlier than the event that has been issued for the same job, the management script processing unit 81 then issues the event to the control script processing unit 57 at Step S312. By executing such a sequence, the information processing unit 35 can generate and display the user interface screen in a predetermined order.
In the third embodiment, at Step S181 to Step S190, the conversion script processing unit 58 performs the same processing as that at Step S61 to Step S70 in
After ending the processing at Step S190, the conversion script processing unit 58 issues the generated event to the management script processing unit 81. When receiving the event from the conversion script processing unit 58, the management script processing unit 81 performs processing at Step S321.
At Step S321, the management script processing unit 81 determines whether the order of the event is correct. That is, the management script processing unit 81 determines whether the generated event is the event that needs to be issued earlier than the event that has been issued for the same job. If the order of the generated event is not correct (No at Step S321), the management script processing unit 81 ends this procedure.
If the order of the generated event is correct (Yes at Step S321), the management script processing unit 81 advances the process to Step S322. Subsequently, at Step S322, the management script processing unit 81 issues the event generated by the conversion script processing unit 58 to the display control unit 52. After issuing the event, the management script processing unit 81 ends this procedure.
When a scanner job generation request is given to the scanner 32, the conversion script processing unit 58 issues the event in the order as illustrated in
Subsequently, the conversion script processing unit 58 issues a reading completion event for the second sheet (S334). When the user performs an operation for ending reading, the conversion script processing unit 58 issues a file generation start event (S335), and then issues a transmission start event (S336). At the end, the conversion script processing unit 58 issues a completion event (S337).
The conversion script processing unit 58 receives the state of the scanner 32 via the program interface unit 42 and the state notifying unit 43, and issues the event corresponding to the received state. Accordingly, even when the state of the scanner 32 is changed, information may not be immediately notified to the conversion script processing unit 58, pieces of information representing two continuous states may be notified at the same time, or the order of pieces of information representing two continuous states may be replaced with each other.
In this case, for example, the conversion script processing unit 58 cannot issue the event in the correct order as illustrated in
However, in the third embodiment, the information processing unit 35 includes the management script processing unit 81. The management script processing unit 81 determines whether the event generated by the conversion script processing unit 58 is the event that needs to be issued earlier than the event that has been issued. If the event generated by the conversion script processing unit 58 is the event that needs to be issued earlier than the event that has been issued, the management script processing unit 81 then discards the event. Due to this, the management script processing unit 81 can prevent the event from being issued in incorrect order.
The management table associates, for each job, a plurality of events to be issued for the job with the respective order values indicating the issuing order of the events in the job.
As an example of the order value, a small value is allocated to the event that needs to be issued earlier, and a large value is allocated to the event that needs to be issued later. For example, assuming that the order value of the event to be issued first is 1, the order value is allocated such that the order value of the event to be issued next is 2, and the order value of the event to be subsequently issued is 3. As the order value, a small value may be allocated to the event that needs to be issued later.
In addition, the same order value may be allocated to a plurality of events. Any of the events to which the same order value is allocated may be executed first.
When holding such a management table, the management script processing unit 81 stores the order value of the event that has been issued immediately before. The management script processing unit 81 then compares the order value of the current event generated by the conversion script processing unit 58 with the order value associated with the preceding issued event to determine whether the order value of the current event is equal to or larger than the order value of the preceding event.
If the order value of the current event is equal to or larger than the order value of the preceding event, the management script processing unit 81 issues the current event. If the order value of the latest event is smaller than the order value of the preceding event, the management script processing unit 81 discards the current event. Due to this, the management script processing unit 81 can determine whether the generated event is the event that needs to be issued earlier than the event that has been issued.
When the event generated by the conversion script processing unit 58 is discarded, the management script processing unit 81 may issue information representing that the generated event is not the latest event, and notify the control script processing unit 57 or the web script processing unit 56 of the information. Accordingly, a developer and the like of the HTML file may cause the user interface including more detailed information to be displayed or controlled based on the information representing that the generated event is not the latest event.
The embodiments described above are exemplary only, and do not intend to limit the scope of the invention. The embodiments may be implemented in other various modes.
As an aspect of the present invention, a computer program as follows may be provided. That is, provided is a computer program executed by an information processing device for operating equipment, in which: the information processing device includes an operation display unit that displays information for a user and receives an input from the user, and an information processing unit including a processor that executes a browser program; the computer program includes an operation program and a conversion script that provide a user interface for operating the equipment through the operation display unit; the conversion script is executed by the processor on the browser program to analyze a state of the equipment and issue an event corresponding to the state of the equipment; and the operation program is executed by the processor on the browser program to provide the user interface corresponding to the event from the operation display unit when the event is issued.
The computer program may include an operation program, a control script, and a conversion script that provide a user interface for operating the equipment through the operation display unit, in which: the conversion script is executed by the processor on the browser program to analyze the state of the equipment and issue an event corresponding to the state of the equipment; the control script is executed by the processor on the browser program to issue user interface information used for generating the user interface corresponding to the event when the event is issued; and the operation program is executed by the processor on the browser program to provide the user interface according to the user interface information through the operation display unit corresponding to the issue of the user interface information.
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.
Patent Literature 1: Japanese Patent Application Laid-open No. 2012-105071
Number | Date | Country | Kind |
---|---|---|---|
2013-262978 | Dec 2013 | JP | national |
2014-046666 | Mar 2014 | JP | national |
2014-071323 | Mar 2014 | JP | national |
2014-250178 | Dec 2014 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2014/083635 | 12/15/2014 | WO | 00 |