# Patent

## Title
Method, computer, and system for an operating system independent device driver

## Abstract

A method for driving a device that enables using a device without using a conventional device driver that is dependent on the operating system of the computer. The method has a binary data conversion step which receives a mark-up language document written in a mark-up language and converts the mark-up language document to binary data composed of commands and data that can be processed by the device. The method also includes a binary data output step in which the converted binary data is output to the device.

## Background
RELATED APPLICATIONS
Japanese patent application No.(s) 2006-028021 is hereby incorporated by reference in its entirety.
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to a device driver processing method, a computer, and a processing system.
2. Description of the Related Art
Printers, scanners, and other types of devices are commonly used with a computer. Device drivers for controlling each type of device must be installed to use each device. The device driver is generally installed on the computer to which the device is connected. See, for example, Japanese Unexamined Patent Appl. Pub. JP-A-2002-251347.
Such device drivers are typically specific to the operating system of the computer on which the device driver is installed. The user must install the device driver that matches the computer operating system. However, in addition to being difficult and confusing for users that are not familiar with computers, installing software also requires knowing the type and version of the operating system in order to ensure that the matching device driver is installed. This can be a burden for the user. Replacing one computer with another computer also requires reinstalling the device driver on the new computer, which requires repeating the same troublesome installation process. The device manufacturer must also provide multiple versions of the same device driver in order to enable using their products on different computer systems.
SUMMARY OF THE INVENTION
The present invention provides a system and method that enables using a device without using a device driver that is specific to the operating system of the computer.
A first aspect of the invention is a device driver processing method that is executed by a computer. The computer has a mark-up language parsing unit for interpreting a mark-up language document written in a mark-up language. The computer has a port control unit for controlling a communication port used for communicating with a device. The mark-up language parsing unit executes a binary data conversion step for converting the mark-up language document to binary data including process commands and data that can be processed by the device. The port control unit executes a binary data output step for outputting the converted binary data to the device.
A computer according to another aspect of the invention has a mark-up language parsing unit for interpreting a mark-up language document written in a mark-up language; and a port control unit for controlling a communication port used for communicating with a device. The mark-up language parsing unit has a conversion unit for converting a mark-up language document to binary data including process commands and data that can be processed by the device. The port control unit has an output unit for outputting the converted binary data to the device.
The computer receives a mark-up language document from an application. The computer converts the mark-up language document to binary data containing the process commands and data in a form that can be processed by the device, and outputs the binary data to the device. Devices can thus be used without needing to install a specific device driver, such as a printer driver, which is a specialized program conventionally required to control each device and can be difficult to install.
The mark-up language parsing unit can be an XML (eXtensible Markup Language) parser, for example, an XML parser is built into most web browser applications available today. The invention can therefore be used on any computer on which a common web browser application is installed. Even users that are not particularly familiar with computers can therefore easily install device drivers without being aware of the computer operating system.
The computer that executes the device driver processing method of the invention does not need to be directly connected to the device.
In a network system according to another aspect of the invention having a device, a computer connected to the device, and a server connected to the computer over a network. A mark-up language document produced by an application on the computer is sent to the server. The server converts the mark-up language document to binary data and returns the converted binary data to the computer. The computer outputs the binary data to the device. In this arrangement the server functions as the computer that executes the device driver processing method of the invention.
In another aspect of the invention the computer is built into the device, and the device converts the mark-up language document to binary data.
The device driver processing method of the invention can thus be rendered in various ways according to the operating environment of the device.
In this device driver processing method the computer has a storage unit for storing at least one set of information selected from a group including: output format information relating to the format of documents output to the device, model-dependent information that is specific to each device model and defines rules for converting the mark-up language document to processing commands and data that can be processed by the device, and port information relating to the communication port. The binary data conversion step includes a first conversion step for converting the input mark-up language document based on the output format information to a mark-up language document that conforms to the output format information. The binary data conversion step also includes a second conversion step for converting the converted mark-up language document to the binary data based on the model-dependent information. The binary data conversion step also includes a binary data output step that outputs the binary data to the device based on the port information.
The input mark-up language document is thus first converted to another mark-up language document that conforms to the output format information (stylesheet). The resulting mark-up language document is then converted to binary data containing the commands and data that can be processed by the device based on the model-dependent data. By converting the documents in steps errors that might occur during the conversion process can be more easily identified and resolved, thus improving data management and maintenance. In addition, the user can edit the output stylesheet as needed so that the input mark-up language document is output to the device in the format desired by the user.
Preferably, the output format information, model-dependent information, and port information are stored in separate storage units.
Data that is used for different purposes can thus be managed and used separately. More specifically, while the output format information may be edited by the user, the model-dependent information is supplied by the device manufacturer. The port information relates to the communication port to which the device is connected, and is unrelated to the output format stylesheet and model-dependent information. By thus separately managing these different types of information, the data can be updated more easily and maintained more efficiently.
In a further aspect of the invention, the port control unit further executes an event data acquisition step for getting event data that is composed of device output commands and is based on events that occurred within the device. The mark-up language parsing unit executes an event data conversion step for converting the acquired event data into a mark-up language document and outputting the mark-up language document.
By thus getting event data that is output by the device as statements describing errors and other events that occurred with the device, and converting the event data to a mark-up language document, which is a simple text file, the computer can easily know what errors occurred with the device and the operating status of the device, for example. By displaying the converted mark-up language document in a readable format, the event data can also be used for remotely managing the device.
Yet further preferably, the mark-up language document is written in XML, and the output format information and model-dependent information are written in XSL (eXtensible Stylesheet Language).
The device driver processing method of the invention can thus be implemented by using an XML document as the input data and writing the output format information (style sheet) and the model-dependent data in XSL.
Yet further preferably, the device is a printer. The invention can thus be applied to a printer, a device that typically has numerous configuration settings and requires a device driver that can be difficult to install, as the device controlled by the device driver processing method of the invention.
Another aspect of the invention is a system having the computer connected to a server over a network. The server has a model selection unit for generating model-dependent data that is information specific to each device, based on the device information sent by the computer. The server also has a port configuration unit for generating port information containing communication parameters for the communication port connecting the device to the computer. In addition, the server has a storage unit for storing model-dependent data for each device. The computer has a storage unit for storing the model-dependent data and port information sent from the server.
The computer acquires only the information specific to the device from the server based on the device information. The device information is entered using an input device disposed to the server. The user can easily generate the device-specific information on the server and send the device-specific information to the computer.
Further preferably, the computer is connected to the device, and the computer sends the device information from the device to the server. The device-specific information can thus be generated automatically and stored in the computer without user intervention.
Other objects and attainments together with a fuller understanding of the invention will become apparent and appreciated by referring to the following description and claims taken in conjunction with the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a schematic block diagram of a network system;
FIG. 2 is a function block diagram of the network system;
FIG. 3A shows an example of the model selection window;
FIG. 3B shows an example of the port configuration window;
FIG. 4 is a flow chart of the process for converting an XML document to binary data;
FIG. 5 shows an example of the input data;
FIG. 6 describes an example of the input data after conversion;
FIG. 7 shows an example of the printer output;
FIG. 8 shows an example of the output stylesheet;
FIG. 9 shows an example of the model-dependent data;
FIG. 10 shows an example of the port configuration data; and
FIG. 11A and FIG. 11B describe the event data.



DESCRIPTION OF THE PREFERRED EMBODIMENTS
A preferred embodiment of a device driver processing method, a computer and a processing system according to the present invention is described below with reference to the accompanying figures. The device driver processing method of the invention enables a computer to function as a device driver by, for example, first acquiring a document written in a mark-up language that is output by an application program, converting this mark-up language document to binary data including data or control commands that can be processed by a device, and then controlling the output of the converted binary data to the device. The device driver processing method of the invention in the embodiment described below may be used on a network system including a server, a computer, and a printer.
FIG. 1 is a schematic block diagram of the network system 1 (referred to below as simply a “system”) according to an aspect of the invention. As shown in FIG. 1, this system 1 includes a computer (“PC” below) 10 on which is installed a device driver with the processing method of the invention, a printer 50 that is connected to the PC 10 as a device, and a server 60 that is connected to the PC 10 over a network such as the Internet or an intranet and supplies data to the PC 10. The PC 10 and printer 50 are connected by a communication cable.
The PC 10 may be a typical personal computer having one or more input devices 11, a display 12, a storage device 13, a communication interface 14, an input/output (I/O) interface 15, an internal bus 16, a CPU 17, ROM 18, and RAM 19. The PC 10 in an embodiment of the invention may be a POS terminal that is installed in a retail store, for example, and generates transaction data for printing sales receipts. The input devices 11 may include a mouse, a keyboard, a barcode reader, and a card reader. The PC 10 may acquire sales information from data that is input using the keyboard, the barcode reader, or the card reader, for example, and may present the product names and price information on the display 12. As shown in the figure, the communication interface 14 has a port driver 22 (port control unit) for controlling the communication port used for communication with the printer 50.
The storage device 13 may store a POS application 20 for running the transaction process and generating transaction data, and an XML parser 21, which is a general purpose program for interpreting XML documents. This XML parser 21 converts XML documents output from the POS application 20 to the commands and data that can be processed by the printer 50. More specifically, the CPU 17 executes the transaction processes by running the POS application 20, and controls the device driver process of the printer 50 by means of the XML parser 21.
The printer 50 operates as a receipt printer and includes a data communication unit 51 for data communication with the PC 10 through the communication interface 14, a transportation unit 52 for conveying receipt paper that is stored in a roll, a printing unit 53 for printing on the receipt paper synchronized to receipt paper transportation, a paper cutter unit 54 for cutting the printed portion of the receipt paper, a drive unit 55 for driving the other parts of the printer, and a control unit 56 that is connected to the other parts of the printer to control overall printer 50 operation.
The server 60 is arranged similarly to the PC 10 and may include an input device 61, a display 62, a storage device 63, a communication interface 64, an I/O interface 65, an internal bus 66, a CPU 67, ROM 68, and RAM 69. A model selection program 70 for specifying the model of printer 50 that is connected to the PC 10, and a port configuration program 71 for configuring the communication port for communication with the printer 50, are stored in the storage device 63 of the server 60. A model-dependent information database 72 for storing the model-dependent data 101 (described below with reference to FIG. 9) that is provided to the PC 10 is also stored in the storage device 63 of the server 60. The server 60 compiles and sends the model-dependent data 101 and port data 102 to the PC 10 by means of the model selection program 70 and port configuration program 71. The PC 10 thus receives and stores the model-dependent data 101 and port data 102. More specifically, the server 60 provides to the PC 10 the model-dependent data 101 for the device model specified by the model selection program 70 and the port data 102 (described further below with reference to FIG. 10) configured by the port configuration program 71.
The functional arrangement of the system 1 according to an embodiment of the invention is described next.
FIG. 2 is a function block diagram of the system 1. As shown in the figure, the server 60 has the model selection program 70 and the port configuration program 71 noted above, and supplies the model-dependent data 101 for the device model specified by the model selection program 70 and the port data 102 configured by the port configuration program 71 to the PC 10.
The PC 10 has a model-dependent data reception unit 30, a port data reception unit 31, a storage unit 32, an XML document input unit 33, a first conversion unit 34, a second conversion unit 35, a binary data output unit 36, an event data acquisition unit 37, and an event data conversion unit 38.
The model-dependent data reception unit 30 controls storing the model-dependent data 101 sent from the server 60 in the storage unit 32.
The port data reception unit 31 similarly controls storing the port data 102 sent from the server 60 in the storage unit 32.
The model-dependent data reception unit 30 and port data reception unit 31 are rendered by the communication interface 14 shown in FIG. 1.
The storage unit 32 is rendered by the storage device 13 shown in FIG. 1, and stores the output stylesheet 100, the model-dependent data 101, and the port data 102 in separate databases. The output stylesheet 100, the model-dependent data 101, and the port data 102 are described in further detail below.
The XML document input unit 33 outputs an XML document (XML document A in FIG. 2) received from the POS application 20 to the first conversion unit 34.
The first conversion unit 34 then converts this XML document (XML document A) based on the output stylesheet 100 in the storage unit 32 to an XML document (XML document B) that conforms to the output stylesheet 100.
The second conversion unit 35 converts the XML document (XML document B) conforming to the output stylesheet 100 to process commands or data strings that can be processed by the printer 50 based on the model-dependent data 101 in the storage unit 32, and then converts these process commands and data strings to binary data.
The binary data output unit 36 opens the communication port to the printer 50 based on the port data 102 in the storage unit 32, and outputs the converted binary data to the printer 50.
The event data acquisition unit 37 gets the event data (including data and status information that can vary according to errors and specific events such as the cover opening) output as commands from the printer 50.
The binary data output unit 36 and event data acquisition unit 37 are rendered by the port driver 22 (included in the communication interface 14) incorporated in the PC 10 as shown in FIG. 1.
The event data conversion unit 38 converts the acquired event data to an XML document (XML document C) and outputs the XML document to the POS application 20, for example. The XML document input unit 33, first conversion unit 34, second conversion unit 35, and event data conversion unit 38 are rendered by the XML parser 21 running on the PC 10 as shown in FIG. 1.
The output stylesheet 100, model-dependent data 101, and port data 102 are described in further detail below.
The output stylesheet 100 (see FIG. 8) defines the output format of XML documents output to the printer 50, and includes general configuration data such as the font and print layout. This information can be customized by the user so that the user can print XML documents in the desired printing format.
The model-dependent data 101 (see FIG. 9) defines the conversion rules for converting the XML document output from the POS application 20 to commands and data that can be processed by the printer 50, and more specifically includes initialization rules for initializing the printer 50, conversion rules for character attributes (such as the double height size, double width size, and underlining), and information about printer control commands such as paper feed and paper cutter commands, for example. This information is dependent upon the specifications and settings of the particular printer 50, and will therefore also differ according to the model of the printer 50. The model-dependent data 101 also includes information defining the conversion rules for converting the event data (binary data) acquired by the event data acquisition unit 37 to an XML document.
This embodiment of the invention uses an XML document as the input data as described above, and uses the XSL for the output stylesheet 100 and model-dependent data 101 (see FIG. 8 and FIG. 9). Settings related to the communication port used to communicate with the printer 50 are defined in the port data 102 (see FIG. 10), and include the port type and data transfer rate (an example of settings for a serial connection are shown in FIG. 10).
The processes whereby the PC 10 configures the device driver for the printer 50 are described next, starting with the process whereby the PC 10 gets the model-dependent data 101 and port data 102 from the server 60.
FIG. 3A shows an example of the model selection window D1 displayed by the server 60 for setting the model-dependent data 101. FIG. 3B shows an example of the port configuration window D2 displayed by the server 60 for setting the port data 102.
As shown in FIG. 3A, the model of printer 50 that is connected to the PC 10 is selected by the user from the model selection window D1 using a keyboard, mouse, touch screen panel, or other input device not shown. After the printer 50 is selected and the download command is asserted, the model-dependent data 101 for the selected model is generated by the model selection program 70 and then downloaded from the server 60 to the PC 10.
More specifically, the model selection program 70 of the server 60 reads the model-dependent data 101 for the model selected in the model selection window D1 from the model-dependent data database 72 and sends the model-dependent data 101 to the PC 10. The “Show Details” control shown in FIG. 3A is linked to a screen for displaying items in the model-dependent data 101, and this screen can be used by the user to confirm and edit the settings of the model-dependent data 101.
As shown in FIG. 3B, the user configures the port data 102 by setting the communication port parameters (including the type of port, the data transfer rate, bit length, and stop bit) of the printer 50 in the port configuration window D2. When the port data 102 download command is then asserted, port data 102 conforming to the parameter settings in the port configuration window D2 is generated by the port configuration program 71 and then downloaded from the server 60 to the PC 10. More specifically, the port configuration program 71 of the server 60 generates the port data 102 to reflect the settings in the port configuration window D2 and then sends the port data 102 to the PC 10.
To get the model-dependent data 101 the user manually accesses the server 60, selects the model and communication port settings, and then downloads the information to the PC 10 in this example, but the PC 10 could execute this process automatically (internally). More specifically, when the printer 50 is connected to the PC 10 or initialized, the PC 10 gets the model and port data from the printer 50 and sends the data to the server 60. The server 60 then runs the model selection program 70 and port configuration program 71 to generate and return the model-dependent data 101 and port data 102 based on the received information to the PC 10.
A process whereby the PC 10 outputs an XML document output from the POS application 20 to the printer 50 by referencing the output stylesheet 100, model-dependent data 101, and port data 102 is described next with reference to FIG. 4.
The following description assumes that the output stylesheet 100 is already stored in the PC 10 at the beginning of this process, but the output stylesheet 100 can obviously be downloaded from the server 60 in the same way as the model-dependent data 101 and port data 102.
FIG. 4 is a flow chart of the XML document conversion process that is executed by the PC 10. As shown in the figure the XML document input unit 33 inputs the XML document A output from the POS application 20 as the input data to the first conversion unit 34 (S01). The first conversion unit 34 then converts the input XML document A according to the output stylesheet 100 to an XML document B conforming to the output stylesheet 100 (S02).
The second conversion unit 35 then converts the XML document B conforming to the output stylesheet 100 to the commands and data strings that can be processed by the printer 50 based on the model-dependent data 101 (S03), and then converts these commands and data strings to binary data (S04). The binary data output unit 36 then references the port data 102 to output the converted binary data to the printer 50 (S05).
This process is further described below with reference to FIG. 5 to FIG. 10.
FIG. 5 shows an example of the XML document A used as the input data. The input data includes product name information such as “radish,” “strawberries,” and “peaches” and price information such as 150, 500, and 200 for each product.
FIG. 8 shows an example of the output stylesheet 100 written in XSL.
The first conversion unit 34 converts the XML document A shown in FIG. 5 based on the output stylesheet 100 shown in FIG. 8 to an XML document B conforming to the output stylesheet 100.
FIG. 6 shows the XML document B converted from the XML document A shown in FIG. 5 based on the output stylesheet 100 shown in FIG. 8.
As shown particularly by the shaded parts in FIG. 6, the name of each product is underlined in this XML document B as specified by the output stylesheet 100 shown in FIG. 8.
The second conversion unit 35 then converts the XML document B shown in FIG. 6 based on the model-dependent data 101 shown in FIG. 9 to the commands and data strings that can be processed by the printer 50, and then converts these commands and data strings to binary data.
The binary data output unit 36 then references the port data 102 shown in FIG. 10 to communicate with the printer 50 and output the converted binary data to the printer 50. An example of the output printed by the printer 50 based on this binary data is shown in FIG. 7. As shown in the figure, each product name and price is output and the product name is underlined based on the XML document A received as the input data (FIG. 5) and the output stylesheet 100 shown in FIG. 8.
The process whereby the event information (including data and status information that can vary according to errors and specific events such as the cover opening) is output as commands from the printer 50 are acquired, converted to an XML document, and output is described next. As described above, this process is executed by the event data acquisition unit 37 and event data conversion unit 38 (see FIG. 2). The event data acquisition unit 37 gets the event data (binary data) output from the printer 50, and the event data conversion unit 38 converts the event data to an XML document by referring to the model-dependent data 101 and outputs the XML document to the POS application 20.
FIG. 11A and FIG. 11B show an example of the tag definitions used in the XML document converted from the event data. FIG. 11A shows an example in which all event data content is contained between <event> tags (shaded in the figure). As shown in FIG. 11B, the attributes describing an event include the <name> of the printer, the <source> where the event occurred, and a <description> of the event. The content of each attribute follows the attribute tag.
By outputting this XML document to the POS application 20, the POS application 20 can know the operating status of the printer 50 (has an error occurred or not) and selected status information (such as whether the cover is open or closed, and whether paper is loaded), and can manage the printer 50 remotely. Furthermore, as a result of the POS application 20 sending the XML document to the server 60, the server 60 (central processing terminal) can manage printers 50 installed in multiple stores, for example, and the printers 50 can be maintained more efficiently.
The event data acquisition unit 37 is rendered by the port driver 22 of the PC 10, and the port driver 22 functions to control and monitor the communication port for communicating with the printer 50. The event data acquisition unit 37 can therefore also be arranged to get event data for the communication port of the printer 50 (such as information reporting failure to open the port). This enables the POS application 20 to remotely manage both the printer 50 and communication between the PC 10 and printer 50, and enables centralized control by the server 60 (central processing terminal).
As described above, when a printer or other peripheral device is used, the device driver processing method of the invention enables using the device by simply installing an XML parser 21 and port driver 22 to the computer and storing an output stylesheet 100, model-dependent data 101, and port data 102.
The XML parser 21 is part of a typical web browser application, and by using a PC that has an installed web browser, the user does not need to install any special software in order to use a device. As a result, a conventional device driver that is a dedicated software program for controlling a device does not need to be installed to match the operating system of the computer. Casual computer users can therefore easily use a printer (a device) without knowing anything about the computer environment, including the type and version of the operating system. The job of replacing a computer that requires installing new device drivers can also be simplified.
The job of the manufacturer that provides the device is also made easier because it is not necessary to provide a conventional device driver such as a printer driver that is dependent on the computer operating system. More particularly, a conventional printer driver must be programmed according to operating system of the computer on which the printer driver will be installed, but the invention makes this programming unnecessary and therefore greatly reduces development costs.
Furthermore, when firmware for controlling a printer 50 is installed on the printer 50, the firmware settings and reference values can be stored in the model-dependent data 101, and the firmware can get and process the required information by referencing the model-dependent data 101. The firmware can therefore be updated by simply updating the model-dependent data 101.
Changes in the output format, the model of printer 50, and communication port settings can also be handled by simply changing the output stylesheet 100, the model-dependent data 101, and the port data 102. More specifically, the invention eliminates the need of the prior art to change the device driver program. Furthermore, if any of the information needs changing, the user can change the output format, change the printer 50 model, and change the communication port settings in real time.
Furthermore, model-dependent data 101 for a plurality of different devices can be stored on the PC 10. In this case the user can choose the types of devices to use to read the model-dependent data 101 for the selected device as needed. If multiple devices are connected to the PC 10, each of the devices can be used by simply storing the model-dependent data 101 for each device on the PC 10.
The PC 10 is described above as the computer that executes the method of the invention in a system 1 that includes a server 60, a PC 10, and a printer 50, but the computer that executes the method of the invention is not limited to the PC 10. The computer may be a computing device that comprises a processing unit and a communication port. The server 60 could be the computer that executes the method of the invention. In this case the XML parser 21 and port driver 22 are installed to the server 60, the server 60 receives the XML documents from the PC 10, converts the XML documents to binary data, and outputs the binary data through the PC 10 to the printer 50.
If the POS application 20 runs on the server 60 instead of the PC 10, the converted binary data can be output directly to the printer 50 instead of through the PC 10.
If the server 60 is the computer that implements the invention, the server 60 gets model information relating to the model of each device, and reads the model-dependent data 101 for the acquired device models. The model information can be acquired by manually entering the data using an input device 61 of the server 60, or the server 60 can access each device to automatically (internally) read the device information. The port data 102 can also be set using the input device 61 of the server 60.
Furthermore, by incorporating the XML parser 21 in the printer 50 and storing the output stylesheet 100, model-dependent data 101, and port data 102 in memory in the printer 50, the printer 50 can be used as the computer that implements the invention.
In this case the XML document output from the POS application 20 is input to the printer 50, the printer 50 internally converts the received (input) XML document to binary data, and outputs the binary data to a buffer, for example.
The invention can thus be implemented using a variety of different hardware configurations, and the device driver processing method of the invention can be executed in various ways according to the operating environment of the printer 50.
A printer 50 is used by way of example as a device in this embodiment of the invention, but the invention is not limited to printers 50 and can be applied to other devices such as scanner, displays, and data readers.
The output stylesheet 100, model-dependent data 101, and port data 102 is stored for each device type (such as printer or scanner), and this data is used selectively according to the type of device to which the data is output.
Furthermore, the invention is described using an XML document by way of example as the input data, but the invention is not limited to XML documents and can use documents written in other mark-up languages, including HTML (HyperText Markup Language) and SGML (Standard Generalized Markup Language), as the input data.
Furthermore, a POS application 20 is used by way of example as the application that outputs the input data (XML document), but the type of application that can be used is not limited to any particular type.
The invention is also not limited to a system 1 as described above, and the hardware arrangement and process steps can be varied in many ways without departing from the scope of the accompanying claims.
In accordance with further aspects of the invention, any of the above-described methods or steps thereof may be embodied in a program of instructions (e.g., software) which may be stored on a computer readable medium, or conveyed to, a computer or other processor-controlled device for execution. Alternatively, any of the methods or steps thereof may be implemented using functionally equivalent hardware (e.g., application specific integrated circuit (ASIC), digital signal processing circuitry, etc.) or a combination of software and hardware.
Although the present invention has been described in connection with the preferred embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications will be apparent to those skilled in the art. Such changes and modifications are to be understood as included within the scope of the present invention as defined by the appended claims, unless they depart therefrom.

## Claims

1. A device processing method for execution by a computer, the method comprising:
providing said computer with a mark-up language parsing unit interpreting a mark-up language documents written in a mark-up language, a port control unit controlling a communication port communicating with an external device separate from the computer, a storage unit storing a stylesheet having output format information relating to formatting of documents sent to the external device, and model-dependent information that is specific the external device model and defines rules for converting between mark-up language documents and non-markup language control commands and data strings that can be processed by the external device;
avoiding access to a device driver of the external device by:
retrieving, using the port control unit, non-markup language event data from the external device that is indicative of events that occurred with the external device;
converting, using the mark-up language parsing unit, the retrieved non-markup event data to an equivalent mark-up language document;
receiving a first mark-up language document;
converting, using the mark-up language parsing unit, the received first mark-up language document to a converted second mark-up language document according to the stylesheet such that the converted second mark-up language document conforms to the output format information;
converting, using the mark-up language parsing unit, the converted second mark-up language document to a non-mark-up language document based on the model-dependent information that includes conversion rules, the non-mark-up language document including data strings and supported control commands specific to the external device, and then converting the non-mark-up language document to binary data, said binary data including control commands and data strings that can be processed by the external device; and
outputting, using the port control unit, the converted binary data to the external device.

2. The device processing method described in claim 1, wherein said stylesheet is user-defined, and the model-dependent information is manufacturer-defined.

3. The device processing method described in claim 2, further comprising:
accessing a server remote from said computer and external device, and retrieving from said server said model-dependent information, and also retrieving port-communications information, wherein the port control unit outputs the converted binary data to the external device in accordance to the port-communications information, and wherein the output format information, model-dependent information, and port information are stored in separate storage units.

4. The driver processing method described in claim 1, wherein said non-markup language event data is binary data.

5. The driver processing method described in claim 1, wherein the external device is a printer and the device driver is a printer driver.

6. A non-transitory computer readable medium containing instructions for performing the method described in claim 1.

7. The drive processing method described in claim 1, wherein said computer comprising a mark-up language parsing unit is a point-of-sale terminal.

8. The device processing method described in claim 7, wherein said point-of-sale terminal includes a web-browser.

9. The device processing method described in claim 7, wherein said device is a sales receipt printer.

10. A computer for executing a device processing method, the computer comprising:
a port control unit for controlling a communication port communicating with the external device, the port control unit including an output unit outputting binary data to the external device and an input unit retrieving binary data from the external device;
a storage unit storing output format information relating to the formatting of documents sent to an external device, and model-dependent information that is specific to the external device and defines rules for converting between a mark-up language document and non-markup language control commands and data strings that can be processed by the external device; and
a mark-up language parsing unit retrieving, in the absence of a device driver for the external device and using the port control unit, non-markup language event data from the external device that is indicative of events that occurred with the external device, and converting the retrieved non-markup event data to an equivalent mark-up language document;
said mark-up language parsing unit further interpreting, in the absence of said device driver for the external device, a first mark-up language document written in a mark-up language, the mark-up language parsing unit including a conversion unit (i) converting the first mark-up language document to a second mark-up language document based on, and such that the converted second mark-up language document conforms to, the output format information, (ii) converting the converted second mark-up language document to a non-mark-up language document based on the model-dependent information that includes conversion rules, the non-mark-up language document including control commands and data strings specific to control the external device, and (iii) converting the non-markup language document to binary data including control commands and data strings supported for processing by the external device;
wherein the port control unit outputs the converted binary data to the external device.

11. A system, comprising:
the computer described in claim 10; and
a server, the server and the computer communicating over a network, the server comprising:
a model selection unit for generating model-dependent data for the external device based on external device information sent by the computer, all of the model-dependent data together representing the model-dependent information;
a port configuration unit for generating port information containing communication parameters for the communication port connecting the device to the computer, and
a storage unit for storing the model-dependent data for each device;
wherein the server sends the model-dependent information and port information to said computer.

12. The system described in claim 11, further comprising an input device, in communication with the server, for entering the external device information.

13. The system described in claim 11, wherein the computer is connected to the external device, and the computer gets and sends the external device information from the external device to the server.

14. A method for execution by a computer for controlling a periphery device, the method comprising:
avoiding access to a periphery device driver by:
accessing a network server remote from said computer and said periphery device, receiving from said network server model-dependent data and data-transmission information, said model-dependent data pertaining to said periphery device and said data-transmission information specifying data-transmission specifications for said periphery device;
retrieving non-markup language event data from the periphery device that is indicative of events that occurred with the periphery device;
converting the retrieved non-markup event data to an equivalent mark-up language document;
receiving a first mark-up language document;
accessing a user-defined stylesheet defining output formatting information;
converting the first mark-up language document to a second mark-up language document according to the output formatting information of the stylesheet;
converting the converted second mark-up language document to a non-mark-up language document based on the model-dependent information, the non-mark-up language document including data strings and control commands supported by said periphery device as defined by the model-dependent information;
converting the non-mark-up language document to binary data including data strings and control commands processible by the periphery device; and
outputting the binary data to the periphery device according to the data-transmission information.

15. The method of claim 14, wherein said model-dependent data is manufacturer-provided data.