The present invention relates to a data conversion system for print data, and relates more particularly to a data conversion system that can easily produce data having a high degree of usability.
POS (point of sales) systems are widely used in retail stores today. A POS system usually has a POS terminal for payment processing at the point of sale where products are sold, and produces a receipt from a receipt printer in response to a command from the POS terminal during the payment process. Information of the payment process (transaction data) executed at each POS terminal is also sent to a POS server connected through a network, and is used for business performance management, store management, and marketing, for example.
The functions of the POS system are usually rendered by a POS application (program) installed on the POS terminal or POS server, and modifying the POS application is necessary to add functionality or improve functions after the system is deployed.
PTL 1 describes adding a function for adding and printing advertising and sales promotion information to receipts without needing to change the POS application.
[PTL 1] JP-A-2006-318158
However, modifying the POS application is usually difficult for someone other than the person (company) that installed the POS system, and presents problems such as needing to stop operation of the POS system. Development of technology for adding functionality and improving functions using data in the print commands (print data) output from the POS terminal, that is, the POS application, is therefore desirable.
While the method described in PTL 1 is useful, greater use of the print data is also desirable.
An object of the invention is therefore to provide a data conversion system for print data, and more particularly provide a data conversion system that can easily produce data having a high degree of usability.
To achieve the foregoing object, one aspect of the invention is a data conversion system including a host device that transmits print data; a printer that receives and transmits the print data sent by the host device; and a server that infers attribute information of a print object contained in the print data based on the transmitted print data and a predefined rule, and generates data with an attribute having data of the inferred attribute information added to the print object.
Because the printer in a data conversion system according to the invention sends print data sent from a POS terminal or other host device to a server different from the POS system or existing system, and the server produces data with an attribute based on the print data, secondary use of information acquired by an existing system can be enabled without modifying the existing application.
Further preferably in another aspect of the invention, the server stores the data with an attribute referable to the print data.
Yet further preferably in another aspect of the invention, the host device is a POS terminal device; the printer acquires customer identification information, adds the acquired customer identification information, and transmits the print data; and the server stores the data with an attribute with the added customer identification information.
With this aspect of the invention the data with an attribute can be usedto identify a customer, makingpossible abroad range of secondary uses of the transaction information. [0014]
Yet further preferably in another aspect of the invention, the data with an attribute is expressed in an XML format.
Because the data with an attribute is stored as a common XML file in this aspect of the invention, secondary use is easy.
Yet further preferably in another aspect of the invention, the server generates and preferably stores output image data of a printout printed based on the print data.
Because image data of the printout based on the print data is also generated in this aspect of the invention, the usability of the print data is increased.
To achieve the foregoing object, another aspect of the invention is a data conversion device including: a reception unit that receives print data; a data conversion unit that infers attribute information of a print object contained in the print data based on the received print data and a predefined rule, and generates data with an attribute having data of the inferred attribute information added to the print object; and a storage unit that stores the generated data with an attribute referable to the print data.
To achieve the foregoing object, yet another aspect of the invention is a data conversion method, including: receiving print data sent from a host device by a printer; transmitting the received print data from the printer to a server; and the server receiving the print data transmitted from the printer, inferring attribute information of a print object contained in the print data based on the received print data and a predefined rule, and generating data with an attribute having data of the inferred attribute information added to the print object.
Other objectives and features of the invention will become clear from the embodiment of the invention described below.
An embodiment of the present invention is described below with reference to the accompanying figures. However, the following embodiment does not limit the technical scope of the invention. Note that identical or similar elements are identified by the same reference numerals or reference symbols in the figures.
As shown in
The printer 2 has a functional configuration such as shown in
The control unit 21 includes a print control unit 23 and a data transmission unit 24. The print control unit 23 is the part that controls the printing operation, interprets print data sent from the POS terminal 1, and causes the print unit 22 to execute the printing process. The print control unit 23 is the part equivalent to the controller of a typical printer, and includes a CPU, memory, and ASIC, for example.
The data transmission unit 24 is the part that executes a process of sending print data the print control unit 23 received through the Internet 4 to the data conversion server 3. The specific content of the process is described further below. The data transmission unit 24 comprises a program containing the process steps, a CPU that executes processes according to the program, and memory, for example.
Note that the data transmission unit 24 may be integrated to the same board as the print control unit 23, or it may be configured on a separate board than the print control unit 23 inside the printer 2. Further alternatively, the data transmission unit 24 may be configured as an externally connected control device.
The printer 2 also has a card reader 25 as a means of acquiring customer identification information (customer ID). A configuration having a reader/writer for near-field communication (NFC) in addition or alternatively to the card reader 25 is also conceivable.
Next, the print unit 22 is the part that executes the printing process on media according to commands from the print control unit 23, and prints and outputs receipts.
Note that the configuration shown in
Next, the data conversion server 3 is embodied by a common server computer, and while not shown in the figure has a CPU, RAM, ROM, hard disk drive, display device, input device, and communication interface. As shown in
The data reception unit 31 is the part that receives and stores print data sent from the printer 2 in the transaction information storage unit 33.
The conversion process unit 32 is the part that infers the content of the transaction information (attribute information) contained in the received print data, and based on the inference converts the print data to tagged data, which is in this embodiment of the invention is an XML (Extensible Markup Language) file. The conversion process unit 32 also generates an image of the print data after being printing as image data (a JPEG file in this embodiment of the invention). In this example, an output image of the receipt is generated as an image file. Note that the specific content of this process is described further below. The conversion process unit 32 also comprises a program containing the process steps, a CPU that executes processes according to the program, and memory, for example.
The transaction information storage unit 33 is a part that stores data related to the data conversion process, and stores print data received from the printer 2, the tagged data and image data generated by the conversion process unit 32, and rule data (pattern data) used when the conversion process unit 32 executes the conversion process. Note that the transaction information storage unit 33 may be a hard disk drive, for example.
Specific steps in the process executed by the data conversion system 100 in the embodiment of the invention thus comprised are described below.
When a product sale or other transaction process is executed by the POS terminal 1, print data for a receipt is first sent from the POS terminal 1 to the printer 2 to produce a receipt to be given to the customer. The transmittedprint data is received by the print control unit 23 of the printer 2 (step S1 in
Note that character data, normal commands, and real-time commands are included in the print data. The character data is data expressing the characters to be printed on the receipt, and is converted to image data for printing. The normal commands are control commands for the printing operation executed by the print unit 22 when printing, and include commands instructing executing print operations and line feed operations, and commands instructing parameter settings such as the line feed distance, for example. While character data and normal commands are sequentially read from the receive buffer and interpreted in the main process after being received, real-time commands are commands that are interpreted and executed simultaneously to being received in the receive buffer. Examples of real-time commands include commands enabling and disabling panel switches on the printer 2, commands instructing selecting the paper detector, which is the print medium, and commands instructing real-time transmission of printer 2 status information. The real-time commands are read and discarded in the main printing process.
When such print data is stored in the receive buffer, the data transmission unit 24 stores one set of data, that is, the print data for one receipt, as a file (step S2 in
Next, the data transmission unit 24 gets the customer identification information (customer ID) read by the card reader 25 (step S3 in
The data transmission unit 24 then adds the acquired customer ID information to the saved print data file, and sends the file with the added information to the data conversion server 3 (step S4 in
Note that the print control unit 23 and print unit 22 execute a printing process based on the print data received by the printer 2 parallel to this transmission process, and a receipt is produced.
Next, the print data transmitted through the Internet 4 is received by the data reception unit 31 of the data conversion server 3 (step S5 in
The conversion process unit 32 then references the rule data (pattern data) stored in the transaction information storage unit 33, extracts the print objects and infers the attribute information from the received and stored print data, and generates a tagged file (XML file) (steps S6 and S7 in
The rule data (pattern data) is data identifying rules for inferring the content of print objects contained in the print data, and examples of such rules when the print data is for a receipt include: if the print object is the first print object (character data or image data) in the print data, and the print position is center aligned, the print object expresses a logo such as the store name (rule 1); if there are print objects expressing numbers before or after two print objects representing hyphens, the print object is a telephone number; and if there are print objects for a number, characters, and a number on one line, the print object is information for one sold product (rule 2).
If the print pattern (the layout of the print objects) is fixed by the printout, that information can be stored as rule data (pattern data).
In the processes of steps S6 and S7, the conversion process unit 32 first reads the print data stored in the transaction information storage unit 33 sequentially in specific units (such as one line of data). Next, it interprets the read data. This interpreting process is executed in the same way as the print control unit 23 of the printer 2 interprets commands executed in the printing process. As a result, content indicating what types of print objects are printed where in what format can be acquired.
In the example of a receipt shown in
Next, the conversion process unit 32 references the rule data stored in the transaction information storage unit 33, infers the content of the print objects contained in the print data, and extracts the attribute information.
In the example of a receipt shown in
The conversion process unit 32 then adds data for the inferred attribute information to the data of the extracted print objects, and generates the data as a file with tags (XML file).
In the example of a receipt shown in
All print data stored in the transaction information storage unit 33 is thus sequentially processed in the same way as described above, and an XML file containing the print objects included in the print data and attribute information therefor is generated.
If a printing pattern (the content and layout of print objects) is stored as rule data, after identifying the printing pattern of the print data, the printing pattern is referenced to infer the content (attribute information) of the print objects from the order or layout of the extracted print objects. Identifying the printing pattern can be done by previously defining features of the print data for each printing pattern, and comparing the received and stored print data with these features.
Once the XML file is generated, the conversion process unit 32 generates an image file for the received and stored print data (step S8 in
The data conversion server 3 then executes a process of storing the generated tag file (XML file) and image file (JPEG file) in the data conversion server 3 (step S9 in
The process of converting print data sent from the POS terminal 1 thus ends.
Because transaction information contained in print data for receipts is stored in a common format as described above, an environment enabling secondary use of the information for various applications can be constructed. For example, the image file can be used to provide the customer with an electronic receipt, advertising to customers related to sold products, adding information and images related to sold products to receipts, and a wide range of other applications.
Note that a data conversion server 3 separate from the printer 2 executes the conversion process after print data transmission in the foregoing embodiment, but the control unit 21 of the printer 2 may execute the conversion process and provide the generated tag file (XML file) and image file (JPEG file) from the printer 2 to a site or device that uses the files.
As described above, in the data conversion system 100 according to this embodiment, because the printer 2 passes print data sent from the POS terminal 1 to a data conversion server 3 that is not in the POS system, and the data conversion server 3 generates tag data from the print data, transaction information acquired by the POS system can be applied in secondary uses without modifying the POS application. [ 0062]
Because data conversion to a format that adds content of the print objects contained in the printout (receipt) as attribute information is applied and the data is stored to enable identifying and referencing transactions and customers, the information can be used for a broad range of secondary applications.
Furthermore, because the system can be configured by replacing or upgrading the receipt printer without changing the existing POS system used in a store, it can be introduced relatively easily and the down time of the POS system can be suppressed.
Furthermore, because the tag data is stored as a common XML file, secondary use thereof is simple.
Yet further, because image data for receipts is also generated, it can be used for electronic receipts, for example.
Furthermore, because a customer ID is added to the generated data, it can also be used for sales promotion activities targeting a specific customer.
Note that the invention is not limited to POS systems, and can also be used in a package distribution system that prints labels.
The scope of the present invention is not limited to the foregoing embodiment, and includes the invention and equivalents thereof described in the accompanying claims.
As described above, the invention is useful in a POS system having a printer that prints receipts, and can be applied to servers and data conversion devices used in a POS system.
Number | Date | Country | Kind |
---|---|---|---|
2012-286813 | Dec 2012 | JP | national |
Priority is claimed under 35 U.S.C. §119 to Japanese Application No. 2012-286813 filed on Dec. 28, 2012 and under 35 U.S.C. §365 to PCT/JP2013/007438 filed on Dec. 18, 2013.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2013/007438 | 12/18/2013 | WO | 00 |