This application claims priority under 35 U.S.C. §119 to Japanese Application No. 2010-198643 filed on Sep. 6, 2010 which is hereby incorporated by reference in its entirety.
1. Technical Field
The present invention relates to a method of expanding the functions of an existing application using print data output from the application, and relates more particularly to a method of easily expanding application functionality without changing the existing application.
2. Related Art
Point-of-sale (POS) systems, which are a type of sales management system, are commonly used in supermarkets and other retail stores. The POS server and plural POS terminals (registers) of a POS system are connected over a network, and each operates and runs specific processes based on the applications installed in each device. A printer is normally connected to each POS terminal, and outputs receipts and coupons as instructed by the application. Systems that are architecturally similar to POS systems and output information in various forms are also deployed in businesses such as hospitals and shipping companies.
Adding new functions and replacing system components is often necessary in such systems as technology improves and business needs change, but because such systems are usually central to business operations, and are connected to other systems in complex ways, modifying the applications that are used is not easy.
To address this problem as it relates to output process functions, Japanese Unexamined Patent Appl. Pub. JP-A-H08-69427 teaches a device that performs a modem function in a personal computer that can eliminate the microprocessor and memory required in a conventional modem without needing to modify the existing application program.
Japanese Unexamined Patent Appl. Pub. JP-A-2006-338443 teaches a device that can access one communication port and cause a printer connected to another communication port to simultaneously print a duplicate copy without modifying the application program.
JP-A-H08-69427 and JP-A-2006-338443 only address limited output system functions such as the modem and a duplicate printing function, however, and do not address many other needs. In addition, because JP-A-2005-338443 operates at the operating system kernel level, constructing new functions (program development) is not generally easy and function is limited.
An object of at least one embodiment of the present invention is to provide a method of expanding the functions of an existing application using print data output from the application, and more particularly to provide a function expansion method that can easily provide a variety of additional functions without changing the existing application program.
A first aspect of at least one embodiment of the invention is a function expansion method for executing a process that expands application functionality, runs on a computer that operates according to an operating system on the operating system kernel layer, executes a specific process according to an application on an application layer, and has one or more communication ports, the function expansion method including: a data acquisition step in which the computer acquires print data output from the application to the communication port at the operating system kernel layer before the print data is received at the communication port; and a function expansion step in which the computer performs at the application layer a process expanding the function of print data acquired by the data acquisition step, and outputs the print data after processing to the communication port suited to the data.
In another aspect of at least one embodiment of the invention, the function expansion step includes a step of analyzing the acquired print data, and determining the content of the function expansion process and the communication port used for data output based on the result of the analysis.
Further preferably in another aspect of at least one embodiment of the invention, the function expansion step includes a step of executing a command conversion process when the commands expressed by the acquired print data and the commands of the device connected to the selected output communication port differ.
Further preferably in another aspect of at least one embodiment of the invention, the content of the function expansion process includes any of a group of operations including changing the print content of the print data, changing the output communication port, generating print data for a new printout, or acquiring information from the print data.
Another aspect of at least one embodiment of the invention is a function expansion device that executes a process that expands application functionality is rendered by a computer that operates according to an operating system on the operating system kernel layer, executes a specific process according to an application on an application layer, and has one or snore communication ports, the function expansion device including: a data acquisition unit that acquires print data output from the application to the communication port at the operating system kernel layer before the print data is received at the communication port; and a function expansion unit that performs at the application layer a process that expands the function of print data acquired toy the data acquisition unit, and outputs the print data after processing to the communication port suited to the data.
Another aspect of at least one embodiment of the invention is a computer-readable recording sodium that records a program that causes a computer to execute the step(c) of the function expansion method described above. The recording medium can be a tangible recording medium or a non-transitory recording medium.
Other objects and features together with a fuller understanding of the invention will become apparent and appreciated by referring to the following description and claims oaken in conjunction with the accompanying drawings.
Preferred embodiments of the present invent ion are described below with reference to the accompanying figures. The following embodiments do not, however, limit the scope of the invention as described in the following claims. Note, further, that identical or like parts are referenced by like reference numerals in the accompanying figures.
This embodiment of the invention describes a POS system such as used in a supermarket, and as shown in
A POS terminal 2 is installed at each register, and each POS terminal 2 is connected to a printer 3. The printer 3 outputs receipts and coupons based on print data output from the POS terminal 2. The POS terminal 2 is thus positioned as the host device of the printer 3.
As shown in
The POS terminal device 21 generates and outputs information printed on the receipts or coupons to the printer 3 based on information acquired by the keyboard 23, barcode reader 24, and card reader 25. The POS terminal device 21 is a computer including a CPU, RAM, ROM, and hard disk drive or other storage device not shown. A POS application 201 program described below and a program for function expansion processing axe stored in ROM, and processes are executed by the CPU operating according to these programs.
The functional configuration of the POS terminal 2 is shown in
The printer driver 202 is a printer driver for the printer 3A, and outputs the data output from the POS application 201 as print data based on the command system for the type of printer 3A (device) so that it can be received and printed by the printer 3A.
As shown in
The virtual port 203 receives the print data (referred to herein as the “source print data”) output from the POS application 201 or printer driver 202 at the OS kernel layer 230 where the operating system resides before the data is passed to the communication port 209. The virtual port 203 passes the acquired source print data to the port handler 204.
The port handler 204, data interpreter 205, data processor 206, command converter 207, and data storage unit 208 are the function expansion units that use the source print data, and POS application 201 functionality is expanded by the processes executed by these parts.
The port handler 204 passes the source print data received from the virtual port 203 to the data interpreter 205, and runs a process that receives print data output from the function expansion process (referred to here as the “processed print data”) and outputs the processed print data to the appropriate communication port 209A/B.
The data interpreter 205 analyses the source print data and determines the content of the function expansion process, and determines the communication port 209 to which the processed print data is output.
The data processor 206 processes the source print data according to the process content determined by the data interpreter 205.
The command converter 207 runs a process to convert commands when the command language used by the printer 3A/3B connected to the communication ports 209A/209B specified by the source print data differs from the command language of the printer 3 connected to the. communication ports 209A/209B to which the processed print data is output.
The data storage unit 208 stores data used by the data interpreter 205 and data processor 206. In this embodiment of the invention, logo data is stored, for example, and is need when adding a logo to source print data for a receipt that does not contain a logo. Note that the data storage unit 208 is a hard disk drive or other storage device.
Specific steps in the foregoing processes executed by the function expansion units are described below.
Note that the virtual port 203, port handler 204, data interpreter 205, data processor 306, and command converter 207 are rendered by respective programs that implement the processes executed by each unit, and a CPU and other hardware components that execute the processes according to the programs. The programs associated with these parts are function expansion programs according to the invention.
The POS terminal 2 also includes communication port 209A and communication port 209B on the physical device layer 240. Communication port 209A is connected to printers 3A and 3B. In this embodiment of the invention communication port 209A is a aerial communication COM port, and communication port 209B is a USB communication port for USB devices. The printers 3 may be different typos of printers, and in this embodiment of the invention printer 3A is a monochrome printer, and printer 3B is a color printer, for example. Note, further, that the POS terminal 2 has two communication ports 209A/209B and two printers 3A/3B are connected to the POS terminal 2 in this embodiment of the invention, but the number of communication ports and printers is not so limited, and there may be one or three or more of each.
The POS terminal 2 configured as described above runs a POS application function expansion process using the source print data, and specific steps in this process are described below.
As described above, the source print data is output directly from the POS application 201 or through the printer 3A driver 202 (step S1). The source print data is, for example, print data for a receipt to be output from printer 3A, communication port 209A is therefore specified as the communication port of the output device, and the source print data contains commands for printer 3A.
The output source print data is intercepted by the virtual port 203 before it ranches the. specified communication port (communication port 209A in this example) (step S2). This process is achieved by configuring the registry (priority settings) so that data output to any communication port 202 is first received by the virtual port 203. This configuration change is made when the OS boots up. The received source print data is then passed from the virtual port 203 to the port handler 204 on the application layer 220 (step S2).
The port handler 204 then passes the received source print data to the data interpreter 205 (step S3). The data interpreter 205 interprets the commands in the source print data, and analyses the data content (step S4). The content of the function, expansion process and which communication port 209 to address are determined based on the results of this analysis.
More specifically, the data interpreter 205 determines the type of printout produced by the source print data (such as a receipt, coupon, or journal), checks if specific data (text string or image) is contained in the source print data, or determines the content of specific data in the source print data, for example, and determines the content of predefined processes according to the results of these operations. The data interpreter 205 also determines the. communication port 209 corresponding to the printer 3 suited to output the processed print data obtained from these processes. The content of the function expansion process may include, for example, changing the content printed by the print data (such as adding or deleting data), changing the output printer 3, generating new output, or using information contained in the print data for other purposes, and specific content is predefined from among these operations. A more specific example of function expansions is described below.
The output device communication port selected by the data interpreter 205 is reported to the port handler 204, and content of the function expansion process (process content) is reported to the data processor 206. The data interpreter 205 also references data stored in the data storage unit 208 as needed by the process steps. For example, information linking analysis results to process content is stored in the data storage unit 208. Note that if the process content and output device arc fixed irrespective of the source print data, the data interpreter 205 is not required and the source print data is passed from the port handler 204 to the data processor 206.
Next, the data processor 206 processes the source print data (step S5). Mora specifically, the data processor 206 processes the print data according to the previously determined function expansion process content, and generates processed print data. A specific example of this process is described below. Data in the data storage unit 208 may also be referenced as needed in this process. When there are plural processes to perform, the data processor 206 may include plural processing units corresponding to the individual process content. In addition, if the data interpreter 205 determines that data processing is not needed, the data processor 206 does not perform a processing operation.
When command conversion is required for the processed print data generated by the data processor 206, the command converter 207 runs a command conversion process (step S6). As described above, because the print data is generated with commands that depend on the printer 3 to which the print data is sent, commands must he converted according to the addressed output device when the commands in the source print data differ from the commands of the output printer Identified as described above. Because the source print data is generated with commands for printer 3A in this embodiment of the invention, the command conversion process is executed when the output device is changed to printer 3B. The processed print data is then passed to the port handler 204. Note that when command conversion is not necessary, the print data cant from the data processor 206 is parsed to the port handler 204.
The port handler 204 then outputs the processed print data that wag received to the selected communication port (step S7). In this embodiment of the invention the port handler 204 outputs to communication port 209A and/or communication port 209B. Note that when a function expansion process is not executed, the source print data is output to the specified communication port (communication port 209A in this example).
The print data is then sent from the communication port to the connected printer 3, the printer 3 prints according to the received print data, and a receipt or other printout is output (step S8). For example, monochrome printing is output from printer 3A, and color printing in output from printer 3B.
The function expansion process of this POS terminal 2 is executed as described in general terms above, and is described with reference co a more specific example below.
An example of a process that changes the output content of the print data and is applied to the source print data reduces or omits line space between printed text strings in order to reduce paper consumption and conserve resources. This process determines the content of the process based on the type of printout identified by the data interpreter 205, and the data processor 206 then executes the process.
A store logo could also to added to receipts or coupons. In this case, too, the data interpreter 205 determines the process based on the type of printout identified, and the data processor 206 runs a process that reads logo imago data from the data storage unit 208 and adds the logo to the source print data.
Another example for a process Is changing all or part of monochrome source print data to color print data. In this case, the process content is determined based on the type of printout identified by the data interpreter 205, or detection of specific data for adding color. The data processor 206 then runs a process to change the selected part to color data. Because the output printer 3 is also changed in this case in this embodiment of the invention, the command converter 207 process also executes.
An example of a function expansion that primarily changes the output printer 3 is described next. Changing the output device of all printouts or some printouts in order to print on a new printer 3 with higher print quality may be desirable. If the print quality of printer 3B is higher in this embodiment of the invention, the source print data is changed to data for printing on the printer 3B, and the output address is changed to communication port 209B.
Plural printers 3 could also be driven to produce multiple copies of the same content. In this case the data processor 206 duplicates the source print data according to the output count, and the command converter 207 converts print commands according to the output device used for each copy. In this embodiment of the invention, the same printout is produced by both printer 3A and printer 3B. Another process may also be combined with the process that changes data content so that, for example, a color logo is added to the data output from printer 3B.
The output device can also be changed according to the print data content. For example, when order tickets are output In a restaurant and the different orders (dishes) are prepared at different cooking stations, the data interpreter 205 determines the cooking station where the order ticket should foe output from the content of the source print data, and selects the printer 3 installed at that station as the output device. If the source print data, contains orders that are prepared at different stations, the order tickets are separated by cocking station, and different order tickets are output from the printers 3 installed at the respective stations.
An example of creating a new printout is a process that produces a new coupon when the source print data is receipt data and a specific product is contained in the print data. For example, if data for a product for which a coupon should be leaned in detected in the source print data, the data interpreter 205 determines that the source print data should be printed directly by printer 3A for monochrome printing, and a coupon related to that product should be printed in color by printer 3B. Based on this decision, the data processor 206 reads coupon data stored in data storage unit 208 and generates print data for the coupon. The command converter 207 also operates as needed, and a receipt and a coupon are output.
Another example of function expansion may use information contained in the source print data for another purpose. For example, when the source print data is receipt data, information about the product(c) sold and time of sale, for example, could be collected and tabulated, said supplied to a system (application) that creates marketing plans. In this case the data processor 206 acquires and tabulates the information.
As described above, a POS terminal 2 according to this embodiment of the invention can expand the functions of a POS system of which a stain function is creating printout using print data output from the POS application 201. A POS terminal and POS system that do not have such a function expansion capability can be relatively easily improved to the POS terminal 2 described above and a POS system using the POS terminal 2.
More specifically, function expansion of an existing pos system is possible without modifying the existing POS application 201 by adding the function expansion program, the data stored in the data storage unit 208, and a new printer 3B as described above. This improvement (addition) can be done by installing a new printer 3B and printer driver software including the data and function expansion program described above. Note, further, that the function expansion program and data could be added without also installing a new printer.
The function expansion method of the invention as described above can thus be used to expand the functions of a POS system in many ways by means of a method that does not involve changing the POS application program. In addition, because the main function expansion process executes on the application layer of the computer, programs that perform a variety of processes can ha easily developed.
The POS server 1 is connected to plural POP terminals 2 in the embodiment described above, but the invention is not so limited and can be adapted to an environment in which one POS terminal and plural printers, for example, are deployed.
The foregoing embodiment of the invention describes a POS system by way of example, but the invention is not limited to POS systems and can be applied to other types of systems having a specific application including outputting printed materials from a printer, including systems used in hospitals and shipping companies, for example. The invention is particularly useful when the modification of an existing application program is difficult.
The POS application program and programs for function expansion processes are stored in ROM in the foregoing embodiment byway of example, but storing these programs is not limited to ROM devices, and any suitable tangible recording medium or non-transitory recording medium can be used such as RAM, a hard drive, optical disks, magneto-optical discs, flash memory or other storage media can be used. The programs can also be stored on separate storage media.
The scope of the invention is not limited to the foregoing embodiments, and includes the invention described in the accompanying claims and equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
2010-198643 | Sep 2010 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | 13955272 | Jul 2013 | US |
Child | 14470295 | US | |
Parent | 13225909 | Sep 2011 | US |
Child | 13955272 | US |