[go: up one dir, main page]

CN107256134A - It is virtually method and apparatus, the POS terminal of computer printer by POS terminal - Google Patents

It is virtually method and apparatus, the POS terminal of computer printer by POS terminal Download PDF

Info

Publication number
CN107256134A
CN107256134A CN201710278727.XA CN201710278727A CN107256134A CN 107256134 A CN107256134 A CN 107256134A CN 201710278727 A CN201710278727 A CN 201710278727A CN 107256134 A CN107256134 A CN 107256134A
Authority
CN
China
Prior art keywords
data
printed
pos terminal
print
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710278727.XA
Other languages
Chinese (zh)
Other versions
CN107256134B (en
Inventor
李坚强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201710278727.XA priority Critical patent/CN107256134B/en
Priority to PCT/CN2017/102215 priority patent/WO2018196262A1/en
Publication of CN107256134A publication Critical patent/CN107256134A/en
Application granted granted Critical
Publication of CN107256134B publication Critical patent/CN107256134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1224Client or server resources management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/128Direct printing, e.g. sending document file, using memory stick, printing from a camera
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G5/00Receipt-giving machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

本发明涉及一种将POS终端虚拟为计算机打印机的方法和装置、POS终端。所述方法包括通过第一打印驱动接收打印指令,并根据所述打印指令获取第一待打印数据,所述第一打印驱动用于提供打印机类型为POS终端打印机;通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据;将所述第二待打印数据发送给POS终端的打印机,以使所述POS终端的打印机对所述第二待打印数据进行打印。提高了POS打印机的利用率。

The invention relates to a method and device for virtualizing a POS terminal as a computer printer and a POS terminal. The method includes receiving a printing instruction through a first printing driver, and obtaining first data to be printed according to the printing instruction, and the first printing driver is used to provide a printer type as a POS terminal printer; calling through the first printing driver The print server program converts the first data to be printed into the second data to be printed according to the POS terminal; and sends the second data to be printed to the printer of the POS terminal, so that the printer of the POS terminal can 2. Print the data to be printed. Improved utilization of POS printers.

Description

将POS终端虚拟为计算机打印机的方法和装置、POS终端Method and device for virtualizing POS terminal as computer printer, POS terminal

技术领域technical field

本发明涉及计算机应用领域,特别是涉及一种将POS终端虚拟为计算机打印机的方法和装置、POS终端。The invention relates to the field of computer applications, in particular to a method and device for virtualizing a POS terminal as a computer printer, and a POS terminal.

背景技术Background technique

目前POS已经被广泛应用于各种支付场合,成为主流电子支付渠道之一。At present, POS has been widely used in various payment occasions and has become one of the mainstream electronic payment channels.

目前POS终端的打印机的作用仅仅是交易过后打印出所需的消费凭证,对打印机来说属于设备空置,远没有达到打印机设备寿命规格中允许的打印量,使用率低。At present, the function of the POS terminal printer is only to print out the required consumption vouchers after the transaction. For the printer, the equipment is vacant. It is far from the print volume allowed in the printer equipment life specification, and the usage rate is low.

发明内容Contents of the invention

基于此,有必要针对POS打印机使用率低的问题,提供一种将POS设备虚拟为计算机打印机的方法和装置、POS终端,可以提高POS设备的使用率。Based on this, it is necessary to address the problem of low utilization rate of POS printers, and provide a method and device for virtualizing POS devices as computer printers, and a POS terminal, which can increase the utilization rate of POS devices.

一种将POS终端虚拟为计算机打印机的方法,包括以下步骤:A method for virtualizing a POS terminal as a computer printer, comprising the following steps:

通过第一打印驱动接收打印指令,并根据所述打印指令获取第一待打印数据,所述第一打印驱动用于提供打印机类型为POS终端打印机;Receiving a print instruction through a first print driver, and obtaining first data to be printed according to the print instruction, the first print driver being used to provide a printer type that is a POS terminal printer;

通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据;calling a print server program through the first print driver to convert the first data to be printed into second data to be printed conforming to the POS terminal;

将所述第二待打印数据发送给POS终端的打印机,以使所述POS终端的打印机对所述第二待打印数据进行打印。Sending the second data to be printed to a printer of the POS terminal, so that the printer of the POS terminal prints the second data to be printed.

在其中一个实施例中,所述方法还包括:In one embodiment, the method also includes:

将获取的第一待打印数据存储在指定文件目录路径下;storing the obtained first data to be printed in a specified file directory path;

通过所述第一打印驱动调用打印伺服程序从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。The first print driver invokes a print server program to read the first data to be printed from the specified file directory path, and convert the first data to be printed into second data to be printed conforming to the POS terminal.

在其中一个实施例中,所述通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据包括:In one of the embodiments, converting the first to-be-printed data into the second to-be-printed data conforming to the POS terminal by calling the print server program through the first print driver includes:

通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。Convert the first data to be printed into monochrome bitmap data by calling the print servo program through the first print driver, and convert the monochrome bitmap data into dot matrix data, the dot matrix data is the The second data to be printed conforms to the POS terminal.

在其中一个实施例中,所述将所述第二待打印数据发送给POS终端的打印机的步骤包括:In one of the embodiments, the step of sending the second data to be printed to the printer of the POS terminal includes:

将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。Sending the second data to be printed to the printing agent program of the POS terminal, and transmitting the second data to be printed to the printer of the POS terminal through the printing agent program.

一种将POS终端虚拟为计算机打印机的方法,包括:A method of virtualizing a POS terminal as a computer printer, comprising:

通过POS终端的打印代理程序接收打印伺服程序发送的符合POS终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的;Receive the second data to be printed according to the POS terminal sent by the printing agent program of the POS terminal, and send the second data to be printed to the printer of the POS terminal; wherein, the second data to be printed obtained by converting the first data to be printed acquired by the first print driver for the print servo program;

通过所述POS终端的打印机打印所述第二待打印数据。Printing the second data to be printed by the printer of the POS terminal.

在其中一个实施例中,所述通过POS终端的打印代理程序接收打印伺服程序发送的符合POS终端的待打印数据的步骤包括:In one of the embodiments, the step of receiving the data to be printed conforming to the POS terminal sent by the print server program through the print agent program of the POS terminal includes:

通过POS终端的打印代理程序接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。The dot matrix array data sent by the print server program is received by the print agent program of the POS terminal, and the dot matrix array data is converted into a monochrome bitmap by the print server program to convert the first data to be printed acquired by the first print driver After the data, the monochrome bitmap data is converted to the obtained one.

一种将POS终端虚拟为计算机打印机的装置,包括:A device for virtualizing a POS terminal as a computer printer, comprising:

打印驱动模块,用于提供打印机类型为POS终端打印机,接收打印指令,并根据所述打印指令获取第一待打印数据;A print driver module, configured to provide a printer whose type is a POS terminal printer, receive a print instruction, and obtain the first data to be printed according to the print instruction;

打印伺服程序模块,用于将所述第一待打印数据转换为符合POS终端的第二待打印数据,将所述第二待打印数据发送给POS终端的打印机,以使所述POS 终端的打印机对所述第二待打印数据进行打印。The print server program module is used to convert the first data to be printed into the second data to be printed in accordance with the POS terminal, and send the second data to be printed to the printer of the POS terminal, so that the printer of the POS terminal Print the second data to be printed.

在其中一个实施例中,所述打印驱动模块还用于将获取的第一待打印数据存储在指定文件目录路径下,以及调用所述打印伺服程序模块从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。In one of the embodiments, the print driver module is further configured to store the obtained first data to be printed in a specified file directory path, and call the print server program module to read the obtained data from the specified file directory path. The first data to be printed is converted into the second data to be printed according to the POS terminal.

在其中一个实施例中,所述打印驱动模块还用于调用所述打印伺服程序模块将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。In one of the embodiments, the print driver module is also used to call the print server program module to convert the first data to be printed into monochrome bitmap data, and convert the monochrome bitmap data into dot matrix Array data, the dot matrix array data is the second data to be printed conforming to the POS terminal.

在其中一个实施例中,所述打印伺服程序模块还用于将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。In one of the embodiments, the print server program module is also used to send the second data to be printed to the print agent program of the POS terminal, and transmit the second data to be printed to the A printer for the POS terminal.

一种POS终端,包括:A POS terminal, comprising:

打印代理程序模块,用于接收打印伺服程序发送的符合POS终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的;The print agent program module is used to receive the second data to be printed according to the POS terminal sent by the print server program, and send the second data to be printed to the printer of the POS terminal; wherein, the second data to be printed obtained by converting the first data to be printed acquired by the first print driver for the print servo program;

打印模块,用于打印所述第二待打印数据。A printing module, configured to print the second data to be printed.

在其中一个实施例中,所述打印代理程序还用于接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。In one of the embodiments, the print agent program is also used to receive the dot array data sent by the print server program, and the dot array data is the first waiting data obtained by the first print driver by the print server program. After the print data is converted into monochrome bitmap data, the monochrome bitmap data is then converted.

上述将POS终端虚拟为打印机的方法和装置、POS终端,通过第一打印驱动获取第一待打印数据,调用打印伺服程序将第一待打印数据转换为符合POS 终端的第二待打印数据,将第二待打印数据发送给POS终端的打印机进行打印,提高了POS打印机的使用率。The above-mentioned method and device for virtualizing a POS terminal as a printer, and the POS terminal obtain the first data to be printed through the first print driver, and call the print server program to convert the first data to be printed into the second data to be printed in accordance with the POS terminal. The second data to be printed is sent to the printer of the POS terminal for printing, which improves the utilization rate of the POS printer.

附图说明Description of drawings

图1为一个实施例中将POS终端虚拟为计算机打印机的方法的应用场景示意图;Fig. 1 is a schematic diagram of an application scenario of a method for virtualizing a POS terminal into a computer printer in one embodiment;

图2为一个实施例中将POS终端虚拟为计算机打印机的方法的流程图;Fig. 2 is a flow chart of the method for virtualizing the POS terminal as a computer printer in one embodiment;

图3为一个实施例中Windows操作系统的打印流程图;Fig. 3 is the printing flowchart of Windows operating system in an embodiment;

图4A为一个实施例中打印端口监视器的工作流程图;Fig. 4A is a working flow diagram of the print port monitor in one embodiment;

图4B为一个实施例中图形事例示意图;Fig. 4B is a schematic diagram of a graphic example in an embodiment;

图5为一个实施例中将POS终端虚拟为计算机打印机的方法的POS终端流程图;Fig. 5 is the POS terminal flowchart of the method for virtualizing the POS terminal as a computer printer in one embodiment;

图6为一个实施例中计算机110将打印数据传输给POS终端120打印的工作流程图;Fig. 6 is a working flow diagram of computer 110 transmitting print data to POS terminal 120 in one embodiment;

图7为一个实施例中POS终端虚拟为Windows打印机装置的结构框图;Fig. 7 is a structural block diagram of a virtual POS terminal being a Windows printer device in one embodiment;

图8为一个实施例中将POS终端虚拟为计算机打印机的装置的结构框图;Fig. 8 is a structural block diagram of a device for virtualizing a POS terminal as a computer printer in one embodiment;

图9为一个实施例中将POS端虚拟为计算机打印机装置的工作流程图。Fig. 9 is a workflow diagram of virtualizing the POS terminal as a computer printer device in one embodiment.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

图1为一个实施例中将POS终端虚拟为计算机打印机的方法的应用场景示意图。如图1所示,该应用场景包括计算机110和POS终端120。计算机110 与POS终端120可通过有线或无线通信方式进行数据通信。计算机110上可安装Windows操作系统、Linux操作系统等。有线方式可为串口、USB线缆、以太网等连接通信。无线通信方式可为WIFI等方式。计算机110可通过第一打印驱动接收打印指令,并根据所述打印指令获取第一待打印数据,所述第一打印驱动用于提供打印机类型为POS终端打印机,通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据,将所述第二待打印数据发送给POS终端的打印机,以使所述POS终端120的打印机对所述第二待打印数据进行打印。Fig. 1 is a schematic diagram of an application scenario of a method for virtualizing a POS terminal as a computer printer in an embodiment. As shown in FIG. 1 , the application scenario includes a computer 110 and a POS terminal 120 . The computer 110 and the POS terminal 120 can perform data communication through wired or wireless communication. Windows operating system, Linux operating system, etc. can be installed on the computer 110 . The wired way can be serial port, USB cable, Ethernet and other connection communication. The wireless communication method may be WIFI or the like. The computer 110 may receive a print instruction through a first print driver, and obtain the first data to be printed according to the print instruction. The first print driver is used to provide a printer type that is a POS terminal printer, and the print is invoked through the first print driver. The servo program converts the first data to be printed into the second data to be printed conforming to the POS terminal, and sends the second data to be printed to the printer of the POS terminal, so that the printer of the POS terminal 120 can 2. Print the data to be printed.

图2为一个实施例中将POS终端虚拟为计算机打印机的方法的流程图。如图2所示,一种将POS终端虚拟为计算机打印机的方法,以计算机角度描述,包括步骤202至步骤206。其中:Fig. 2 is a flowchart of a method for virtualizing a POS terminal as a computer printer in one embodiment. As shown in FIG. 2 , a method for virtualizing a POS terminal as a computer printer is described from a computer perspective, including steps 202 to 206 . in:

步骤202,通过第一打印驱动接收打印指令,并根据所述打印指令获取第一待打印数据,所述第一打印驱动用于提供打印机类型为POS终端打印机。In step 202, a printing instruction is received by a first printing driver, and first data to be printed is acquired according to the printing instruction, and the first printing driver is used to provide a printer type as a POS terminal printer.

具体地,计算机可通过安装的第一打印驱动接收用户触发的打印指令,并根据该打印指令获取第一待打印数据。该第一待打印数据可为word格式、PDF 格式数据、图片格式数据、TXT格式数据等。Specifically, the computer may receive a printing instruction triggered by a user through the installed first printing driver, and obtain the first data to be printed according to the printing instruction. The first data to be printed may be in word format, PDF format data, picture format data, TXT format data, etc.

步骤204,通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据。In step 204, the first print driver invokes a print server program to convert the first data to be printed into second data to be printed conforming to the POS terminal.

具体地,打印伺服程序是指用于将计算机中待打印数据转换为符合POS终端的待打印数据的应用程序。第一打印驱动通过函数调用打印伺服程序。Specifically, the print server program refers to an application program used to convert data to be printed in the computer into data to be printed conforming to the POS terminal. The first print driver invokes the print server program through a function.

步骤206,将所述第二待打印数据发送给POS终端的打印机,以使所述POS 终端的打印机对所述第二待打印数据进行打印。Step 206, sending the second data to be printed to a printer of the POS terminal, so that the printer of the POS terminal prints the second data to be printed.

具体地,计算机的打印伺服程序通过约定协议将第二待打印数据发送给 POS终端的打印机进行打印。该约定协议是指符合计算机和POS终端之间进行数据通信的协议。Specifically, the print server program of the computer sends the second data to be printed to the printer of the POS terminal through an agreed protocol for printing. The agreed protocol refers to a protocol that complies with the data communication between the computer and the POS terminal.

上述将POS终端虚拟为打印机的方法,通过第一打印驱动获取第一待打印数据,调用打印伺服程序将第一待打印数据转换为符合POS终端的第二待打印数据,将第二待打印数据发送给POS终端的打印机进行打印,提高了POS打印机的使用率。In the above method of virtualizing the POS terminal as a printer, the first print driver is used to obtain the first data to be printed, and the print server program is called to convert the first data to be printed into the second data to be printed that conforms to the POS terminal, and the second data to be printed is Send to the printer of the POS terminal for printing, which improves the utilization rate of the POS printer.

在一个实施例中,上述将POS终端虚拟为计算机打印机的方法还包括:将获取的第一待打印数据存储在指定文件目录路径下。In one embodiment, the method for virtualizing a POS terminal as a computer printer further includes: storing the obtained first data to be printed in a specified file directory path.

具体地,用户需要在调用第一打印驱动之前,配置系统相关参数,并指定一个文件目录路径,用于存储第一待打印数据。例如在Windows系统中,用户可以将路径设置为:HKEY_CURRENT_USER\SOFTWARE\ImagePrinter,用于存储第一待打印数据。此外,也可通过安装第一打印驱动来自动完成系统相关参数的配置。所述配置系统相关参数,请参照表1。Specifically, before invoking the first print driver, the user needs to configure system-related parameters and specify a file directory path for storing the first data to be printed. For example, in a Windows system, the user can set the path as: HKEY_CURRENT_USER\SOFTWARE\ImagePrinter, which is used to store the first data to be printed. In addition, the configuration of system-related parameters can also be automatically completed by installing the first print driver. For the parameters related to the configuration system, please refer to Table 1.

表1Table 1

在一个实施例中,上述将POS终端虚拟为计算机打印机的方法还包括:通过所述第一打印驱动调用打印伺服程序从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。In one embodiment, the method for virtualizing a POS terminal as a computer printer further includes: calling a print server program through the first print driver to read the first data to be printed from the specified file directory path, and The first data to be printed is converted into the second data to be printed conforming to the POS terminal.

具体地,第一打印驱动获取打印指令,然后将所述第一待打印数据转换为位图数据并将其存储在指定文件目录路径下。随后,第一打印驱动调用打印伺服程序获取所述指定文件目录路径中的位图数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。Specifically, the first print driver obtains the print instruction, and then converts the first data to be printed into bitmap data and stores it under the specified file directory path. Subsequently, the first print driver calls the print server program to obtain the bitmap data in the specified file directory path, and converts the first data to be printed into the second data to be printed conforming to the POS terminal.

图3为一个实施例中Windows操作系统的打印流程图。Windows打印驱动程序基于开源(GNU License)的ImagePrinter开发,属于Windows平台的虚拟打印机驱动类别,也就是说,ImagePriter是一种用于实现虚拟打印机驱动的开发工具,在打印流程中的作用即是一个端口监视器,并提供端口驱动程序的实现。端口驱动程序即为第一打印驱动。如图3所示,windows操作系统的打印流程包括:Fig. 3 is a printing flow chart of the Windows operating system in an embodiment. The Windows print driver is developed based on the open source (GNU License) ImagePrinter, which belongs to the category of virtual printer drivers on the Windows platform. port monitor, and provides port driver implementations. The port driver is the first print driver. As shown in Figure 3, the printing process of the windows operating system includes:

步骤302,启动打印应用程序。Step 302, start the printing application program.

具体地,打印应用程序创建一个设备上下文并在其上绘制一个对象,然后调用GDI(Graphics Device Interface图形设备接口)中相应的函数接口向此设备上下文相对应的打印机发出一个打印请求。创建一个设备上下文即配置一个设备运行环境。GDI即Windows提供的图形设备接口,它是Windows系统的一个核心部件,是Windows图形功能的心脏,它的主要功能是负责Windows系统与绘图程序之间的信息交换。所有的图形图像处理以及字体处理,颜色管理功能等都实现与GDI中。Specifically, the printing application program creates a device context and draws an object on it, and then calls the corresponding function interface in GDI (Graphics Device Interface) to send a print request to the printer corresponding to the device context. Creating a device context means configuring a device operating environment. GDI is the graphics device interface provided by Windows. It is a core component of the Windows system and the heart of the Windows graphics function. Its main function is to be responsible for the information exchange between the Windows system and the drawing program. All graphics and image processing, font processing, and color management functions are implemented in GDI.

步骤304,创建设备上下文。Step 304, create a device context.

具体地,GDI函数调用相应的打印机驱动程序来处理打印请求。Specifically, the GDI function calls the corresponding printer driver to process the printing request.

步骤306,图形设备接口GDI调用相应的打印机驱动程序。Step 306, the graphic device interface GDI invokes the corresponding printer driver.

具体地,打印驱动程序创建一个打印作业,并调用GDI函数通过打印接口 DLL(DLL为接口文件)和打印图形DLL将处理结果返回GDI。Specifically, the print driver creates a print job, and calls the GDI function to return the processing result to GDI through the print interface DLL (the DLL is an interface file) and the print graphics DLL.

步骤308,GDI函数来调用打印假脱机系统。Step 308, the GDI function calls the printing spooling system.

其中,Windows操作系统的打印假脱机技术主要是指当主机处理器给外部设备传送数据时,为了减少占用主机处理器的时间(因为端口的速度通常远低于处理器的速度)而采用的一种把辅助存储器(通常为硬盘)当作端口的缓冲存储器来使用,具体的发送工作由后台来处理的一种技术。Among them, the printing spooling technology of the Windows operating system mainly refers to the time taken by the host processor in order to reduce the time occupied by the host processor (because the speed of the port is usually much lower than the speed of the processor) when the host processor transmits data to the external device. A technology that uses the auxiliary storage (usually a hard disk) as the buffer memory of the port, and the specific sending work is handled by the background.

以上所述步骤,为打印机驱动开发Windows固有流程。即如果是在Windows 平台上开发打印机驱动程序,则需实现以上步骤。The steps described above develop the Windows native process for the printer driver. That is, if the printer driver is developed on the Windows platform, the above steps need to be implemented.

步骤310,打印假脱机系统调用语言监视器。语言监视器主要用于支持打印机的双向通讯,监视打印机的状态,获取并处理一些事件。Step 310, the printing spooling system calls the language monitor. The language monitor is mainly used to support the two-way communication of the printer, monitor the status of the printer, and obtain and process some events.

具体地,打印脱机调用打印请求处理器以便将打印作业发送到应用程序指定的打印机上。然后,打印请求处理器将打印作业发送到本地打印提供者,如果打印作业的类型是非直接打印,那么本地打印提供者就将打印作业以原始假脱机文件的格式存放在磁盘上,并且将后来的打印片段不断的附加到假脱机文件中,直到应用程序调用了EndDoc函数终止一个打印作业为止。以上步骤302 到步骤310可以重复多次,用来产生一个完整的假脱机文件。接下来本地打印提供者启动一个后台线程,打印主线程根据对打印假脱机子系统资源的监视情况,选定一个最佳的时刻触发假脱机文件的解析过程。此时,打印主线程将调用StartDocPort函数启动打印处理器中的一个线程来开始解析工作。打印机处理器线程调用ReadPrinter来激活本地打印提供者以便从磁盘读取所述生成的打印假脱机文件。同时,打印处理器还调用了WritePrinter函数来激活打印机作业的语言监视器以便将数据通过物理端口发送到相应的打印机上。Specifically, Print Offline calls the print request handler to send the print job to the printer specified by the application. The print request processor then sends the print job to the local print provider, which stores the print job on disk as a raw spool file if the print job is of type indirect The print fragments are continuously appended to the spool file until the application terminates a print job by calling the EndDoc function. The above steps 302 to 310 can be repeated multiple times to generate a complete spool file. Next, the local print provider starts a background thread, and the main print thread selects an optimal time to trigger the parsing process of the spool file according to the monitoring situation of the print spool subsystem resources. At this point, the main printing thread will call the StartDocPort function to start a thread in the printing processor to start parsing. The printer processor thread calls ReadPrinter to activate a local print provider to read the generated print spool file from disk. At the same time, the print processor also calls the WritePrinter function to activate the language monitor of the printer job so that the data can be sent to the corresponding printer through the physical port.

步骤312,语言监视器调用端口监视器。Step 312, the language monitor calls the port monitor.

具体地,打印语言监视器调用端口监视器的功能来给打印机发送数据。端口监视器控制打印机和物理端口之间的通讯。它的作用是向端口设备传送或者从端口设备接收数据(有些端口监视器仅有传送功能)。一般的,操作系统会提供端口监视器来支持一些类型的端口(LPT,COMN等)供打印机使用,这时就不需要开发人员提供自己的端口监视器。但是如果打印机的端口类型不在操作系统默认支持的端口类型列表中,则需要开发人员编写自己的打印端口监视器并随打印机驱动程序一起安装。其中,ImagePrinter在打印流程中的作用即是一个端口监视器,同时提供端口驱动程序的实现。Specifically, the print language monitor calls the function of the port monitor to send data to the printer. Port monitors control communications between printers and physical ports. Its function is to transmit data to or receive data from the port device (some port monitors only have the function of transmitting). Generally, the operating system will provide port monitors to support some types of ports (LPT, COMN, etc.) for printers, and developers do not need to provide their own port monitors. But if the port type of the printer is not in the list of port types supported by the operating system by default, the developer needs to write his own print port monitor and install it with the printer driver. Among them, the role of ImagePrinter in the printing process is a port monitor, while providing the realization of the port driver.

图4A为图3中打印端口监视器的工作流程图。在端口监视器中的实现中,通过配置WriteFile,实现了向特定文件目录路径下写入位图数据的功能。如图 4A所示,打印端口监视器的工作流程包括:FIG. 4A is a flow chart of the print port monitor in FIG. 3 . In the implementation of the port monitor, the function of writing bitmap data to a specific file directory path is realized by configuring WriteFile. As shown in Figure 4A, the workflow of the print port monitor includes:

步骤404,开启打印端口。Step 404, open the printing port.

具体地,打印假脱机402首先要调用端口监视器的OpenPort函数,该函数的主要功能是打开一个端口并返回一个标识该端口的句柄。在假脱机的后续调用中,该句柄将作为其他处理函数的输入参数使用。句柄即整个Windows编程的基础。一个句柄是指使用的一个唯一的整数值,即一个4字节(64位程序中为 8字节)长的数值,来标识应用程序中的不同对象和同类中的不同的实例,诸如,一个窗口,按钮,图标,滚动条,输出设备,控件或者文件等。Specifically, the print spooler 402 first calls the OpenPort function of the port monitor. The main function of this function is to open a port and return a handle identifying the port. In subsequent calls to the spool, this handle will be used as an input parameter to other processing functions. The handle is the basis of the entire Windows programming. A handle refers to a unique integer value used, that is, a 4-byte (8-byte in 64-bit program) long value, to identify different objects in the application and different instances of the same class, such as a Windows, buttons, icons, scroll bars, output devices, controls or files, etc.

步骤406,开始打印作业。Step 406, start printing job.

具体地,一个端口被打开之后,打印假脱机接着调用StartDocPort函数来开始一个打印作业。StartPort函数主要通过调用Windows API(Application ProgrammingInterface应用程序编程接口)提供的CreateFile函数来建立一条和内核端口驱动之间的数据链接。Specifically, after a port is opened, the print spooler then calls the StartDocPort function to start a print job. The StartPort function mainly establishes a data link with the kernel port driver by calling the CreateFile function provided by the Windows API (Application Programming Interface).

步骤408,判断向打印机读还是写数据。Step 408, judging whether to read or write data to the printer.

具体地,当数据链接建立之后,打印假脱机可以根据需要进行双向操作,一种是向打印机写数据,这种情况下打印假脱机先调用端口监视器的WritePort 函数然后会多次调用Windows API提供的WriteFile函数来向内核端口驱动发送数据。在所述第一打印驱动中,通过配置写入端口410,和调用WriteFile函数,来向指定的文件路径目录下写入位图数据。另外一种是向打印机读数据,此时打印假脱机先调用端口监视器的ReadPort函数然后再调用Windows API提供的ReadFile函数从内核端口驱动读取硬件信息。Specifically, when the data link is established, the print spool can perform two-way operations as required. One is to write data to the printer. In this case, the print spool first calls the WritePort function of the port monitor and then calls Windows multiple times. The WriteFile function provided by the API is used to send data to the kernel port driver. In the first print driver, by configuring the write port 410 and calling the WriteFile function, the bitmap data is written to the specified file path directory. The other is to read data to the printer. At this time, the print spooler first calls the ReadPort function of the port monitor and then calls the ReadFile function provided by the Windows API to read hardware information from the kernel port driver.

步骤412,传送数据。Step 412, transmit data.

具体地,向打印机写入数据之后,打印假脱机会调用GetPrinterDataFromPort 函数,该函数的主要作用是通过调用Windows API提供的DeviceloControl函数来最终实现打印驱动程序和内核端口驱动之间的数据传输。Specifically, after writing data to the printer, the print spooler calls the GetPrinterDataFromPort function. The main function of this function is to finally realize the data transmission between the print driver and the kernel port driver by calling the DeviceloControl function provided by the Windows API.

步骤414,完成打印流程。Step 414, complete the printing process.

具体地,以上操作完成之后,打印假脱机调用EndDocPort函数来结束一个打印作业。该函数的主要作用是释放CreateFile函数建立的数据链接和 StartDocPort函数中申请的所有系统资源。Specifically, after the above operations are completed, the print spooler calls the EndDocPort function to end a print job. The main function of this function is to release the data link established by the CreateFile function and all system resources requested by the StartDocPort function.

步骤416,判断打印队列中是否还有作业待打印。Step 416, judging whether there are still jobs to be printed in the print queue.

具体地,当按照上述过程完成了一个打印作业之后,打印假脱机查看和这个端口相连的打印队列中查看还有没有其他的文件需要打印。如果有,则程序返回到StartDocPort函数重复执行上述过程,如果没有,打印假脱机便关闭这个端口。Specifically, after a print job is completed according to the above process, the print spooler checks whether there are other files to be printed in the print queue connected to this port. If there is, the program returns to the StartDocPort function to repeat the above process, if not, the print spooler closes the port.

步骤418,关闭端口。Step 418, close the port.

具体地,端口监视器的ClosePort函数用来关闭端口。该函数的主要作用是在是放在OpenPort函数中申请的所有系统资源。Specifically, the ClosePort function of the port monitor is used to close the port. The main function of this function is to apply all system resources in the OpenPort function.

在一个实施例中,所述通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据包括:通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。In one embodiment, the converting the first data to be printed into the second data to be printed conforming to the POS terminal by calling the print server program through the first print driver includes: calling the print server program by the first print driver The program converts the first data to be printed into monochrome bitmap data, and converts the monochrome bitmap data into dot matrix array data, and the dot matrix array data is the second data to be printed conforming to the POS terminal .

具体地,通过所述第一打印驱动调用打印伺服程序后,打印伺服程序将在指定文件目录路径下获取第一待打印数据。同时判断第一待打印数据是否为单色位图数据,如果第一待打印数据为非单色位图数据,首先将位图数据转换为单色位图数据后,再将单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。其中,所述点阵数组数据包括首字符、各行图形的字节数和图形数据。其中:Specifically, after calling the print server program through the first print driver, the print server program will obtain the first data to be printed under the specified file directory path. At the same time, it is judged whether the first data to be printed is monochrome bitmap data, if the first data to be printed is non-monochrome bitmap data, first convert the bitmap data into monochrome bitmap data, and then convert the monochrome bitmap data converted into dot matrix array data, the dot matrix array data is the second data to be printed conforming to the POS terminal. Wherein, the dot matrix array data includes the first character, the byte number of each row of graphics and graphics data. in:

首字符[1Byte],用于表示图形的行数。The first character [1Byte] is used to indicate the number of lines of the graph.

第一行图形的字节数[2Byte,高字节在前]、第一行图形的图形数据[一行的宽度为384个点]。The number of bytes of the first line of graphics [2Byte, high byte first], the graphics data of the first line of graphics [the width of one line is 384 points].

第二行图形的字节数[2Byte,高字节在前]。依次类推。第三行,第四行等。The byte count of the second line of graphics [2Byte, high byte first]. And so on. Third row, fourth row, etc.

其中,1表示该位置上有数据(黑点),0表示该位置上无数据(白点),例如:Among them, 1 means that there is data (black dot) at this position, and 0 means that there is no data (white dot) at this position, for example:

如图4B所示,图形的像素为98*44像素As shown in Figure 4B, the pixel of the graphic is 98*44 pixels

转换后的数组为:The converted array is:

点阵数组的第一个字节0x2C即表示图像的行数(也就是高度)为44。即 0X2C为十六进制,转换为十进制为44,即44行。以此类推。The first byte 0x2C of the dot matrix array means that the number of rows (that is, the height) of the image is 44. That is, 0X2C is hexadecimal, converted to decimal is 44, that is, 44 lines. and so on.

在一个实施例中,所述将所述第二待打印数据发送给POS终端的打印机的步骤包括:将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。In one embodiment, the step of sending the second data to be printed to the printer of the POS terminal includes: sending the second data to be printed to the print agent program of the POS terminal, and through the print agent program and transmitting the second data to be printed to a printer of the POS terminal.

具体地,打印伺服程序将单色位图数据转换为点阵数组数据后,通过约定通讯协议发送给POS终端。约定通讯协议采用LRC(Longitudinal Redundancy Check纵向冗余校验)验证机制。在点阵数组数据从伺服程序传输到POS终端的打印代理程序后,首先会进行LRC验证,确保点阵数组数据的准确性与完整性,如果点阵数组数据有误,POS终端的打印代理程序将返回一个错误代码给打印伺服程序;打印伺服程序将重新发送点阵数组数据给POS终端的打印代理程序;最后打印代理程序将正确完整的数据传输给所述POS终端的打印机,完成打印任务。其中,所述约定通讯协议包括数据头、数据长度、数据内容、LRC验证、响应包、响应包数据头、响应包数据内容、LRC验证等。具体地,在发送数组数据时,先发送数据头,再发送数据内容,数据头格式的定义请参照表2。Specifically, after the print servo program converts the monochrome bitmap data into dot matrix data, the data is sent to the POS terminal through an agreed communication protocol. It is agreed that the communication protocol adopts the LRC (Longitudinal Redundancy Check) verification mechanism. After the dot array data is transmitted from the servo program to the print agent program of the POS terminal, LRC verification will be performed first to ensure the accuracy and integrity of the dot array data. If the dot array data is wrong, the print agent program of the POS terminal will An error code will be returned to the print server program; the print server program will resend the dot matrix array data to the print agent program of the POS terminal; finally the print agent program will transmit the correct and complete data to the printer of the POS terminal to complete the printing task. Wherein, the agreed communication protocol includes data header, data length, data content, LRC verification, response packet, response packet data header, response packet data content, LRC verification, and the like. Specifically, when sending array data, send the data header first, and then send the data content. Please refer to Table 2 for the definition of the data header format.

表2Table 2

其中,起始字符表示数据的开始标志,数据头信息包括:数据包的长度,设备类型信息,数据包的类型,以及命令的索引信息,用于传输数据的初始化。其中,数据内容格式定义请参照表3。Wherein, the start character represents the start flag of the data, and the data header information includes: the length of the data packet, the device type information, the type of the data packet, and the index information of the command, which are used for the initialization of the transmitted data. Among them, please refer to Table 3 for the definition of the data content format.

表3table 3

数据包长度为除开始字符以外的整个数据的长度,接收端接收时,首先接收数据包长度,然后再接收剩余数据。数据包类型和命令索引包含解析格式,计算格式,真正的数据内容,数据根式等信息。LRC为数据校验,为除起始字符外其他数据的异或值,保证了数据的准确性。数据内容的具体格式如下,若参数为整数,则使用4字节表示(高位在前)请参照表4。The data packet length is the length of the entire data except the start character. When receiving, the receiving end first receives the data packet length, and then receives the remaining data. The data packet type and command index contain information such as parsing format, calculation format, real data content, and data root format. LRC is the data check, which is the XOR value of other data except the start character, which ensures the accuracy of the data. The specific format of the data content is as follows. If the parameter is an integer, it will be expressed in 4 bytes (high bit first). Please refer to Table 4.

表4Table 4

参数1parameter 1 参数2parameter 2 参数2parameter 2 。。。. . . 参数n parameter n

在数据成功打印或者在数据传输过程完毕之后,POS终端将会返回信息给打印伺服程序,其返回响应包的定义请参照表5。After the data is successfully printed or the data transmission process is completed, the POS terminal will return information to the print server program. Please refer to Table 5 for the definition of the returned response packet.

表5table 5

其中起始字符表示数据的开始标志,数据头信息包括:数据包的长度,设备类型信息,数据包的类型,以及命令的索引信息,用于传输数据的初始化,数据内容格式定义请参照表6。The start character indicates the start flag of the data, and the data header information includes: the length of the data packet, the device type information, the type of the data packet, and the index information of the command, which is used for the initialization of the transmitted data. For the definition of the data content format, please refer to Table 6 .

表6Table 6

数据包各部分含义与上述的数据包含义相同,数据内容多出一个错误代码,若错误代码(ErrorCode)为LRC校验错误,或者响应包本身校验错误,则PC端重新发送上一个数据包。错误代码的定义如下:The meaning of each part of the data packet is the same as that of the data contained above, and there is an additional error code in the data content. If the error code (ErrorCode) is an LRC check error, or the response packet itself has a check error, the PC will resend the previous data packet. . The error codes are defined as follows:

上述将所述第二待打印数据发送给POS终端的打印机的步骤,通讯协议采用LRC验证机制,保证了点阵数组数据的完整性与正确性,使POS打印机可以精准的打印出用户所需要的数据。In the above-mentioned step of sending the second data to be printed to the printer of the POS terminal, the communication protocol adopts the LRC verification mechanism, which ensures the integrity and correctness of the dot matrix array data, so that the POS printer can accurately print out the data required by the user. data.

图5为另一个实施例中将POS终端虚拟为计算机打印机的POS端方法的流程图。如图5所示,将POS终端虚拟为计算机打印机的方法,以POS终端角度描述,包括步骤502和步骤504。其中:Fig. 5 is a flowchart of a POS terminal method for virtualizing a POS terminal as a computer printer in another embodiment. As shown in FIG. 5 , the method for virtualizing a POS terminal as a computer printer is described from the perspective of a POS terminal, including step 502 and step 504 . in:

步骤502,通过POS终端的打印代理程序接收打印伺服程序发送的符合POS 终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的。Step 502: Receive the second data to be printed according to the POS terminal sent by the print server program through the printing agent program of the POS terminal, and send the second data to be printed to the printer of the POS terminal; wherein, the second The to-be-printed data is obtained by converting the first to-be-printed data acquired by the first print driver by the printing servo program.

步骤504,通过所述POS终端的打印机打印所述第二待打印数据。Step 504, printing the second to-be-printed data through a printer of the POS terminal.

在一个实施例中,所述通过POS终端的打印代理程序接收打印伺服程序发送的符合POS终端的待打印数据的步骤包括:In one embodiment, the step of receiving the data to be printed conforming to the POS terminal sent by the print server program through the print agent program of the POS terminal includes:

通过POS终端的打印代理程序接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。The dot matrix array data sent by the print server program is received by the print agent program of the POS terminal, and the dot matrix array data is converted into a monochrome bitmap by the print server program to convert the first data to be printed acquired by the first print driver After the data, the monochrome bitmap data is converted to the obtained one.

通过以上步骤,完成了将打印数据转换为适合打印机打印的数据,并保证了数据的完整与正确性,成功地将POS打印机虚拟为计算机打印机,提高了POS 打印机的利用率。Through the above steps, the printing data is converted into data suitable for printing by the printer, and the integrity and correctness of the data are guaranteed. The POS printer is successfully virtualized as a computer printer, and the utilization rate of the POS printer is improved.

在一个实例中,所述通过POS终端的打印代理程序将所述第二待打印数据发送到POS终端打印机的步骤包括:In one example, the step of sending the second data to be printed to the POS terminal printer through the print proxy program of the POS terminal includes:

所述通过POS终端的打印代理程序接收到打印伺服程序发送的符合POS终端的待打印数据后,进行对第二待打印数据的校验,然后将正确完整的第二待打印数据发送到POS终端打印机进行打印。After the print agent program of the POS terminal receives the data to be printed sent by the print server program and conforms to the data to be printed by the POS terminal, it verifies the second data to be printed, and then sends the correct and complete second data to be printed to the POS terminal The printer prints.

具体地,POS终端的打印代理程序监控数据端口,当POS端打印代理程序监控到打印伺服程序发送来的点阵数组数据后,首先POS端打印代理程序会对点阵数组数据即第二待打印数据进行LRC验证,判断点阵数组数据是否正确和完整,如果正确,将所述第二待打印数据传送至POS端打印机,将第二待打印数据打印出来,然后向计算机端发送一个打印完成的返回值,并完成打印任务。如果第二待打印数据不正确或者不完整,POS端打印代理程序会向计算机端发送一个错误代码,计算机端打印伺服程序将会重新发送第二待打印数据到POS 端打印代理程序,直至第二待打印数据正确完整的传输到POS端打印机并完成打印任务。Specifically, the print agent program of the POS terminal monitors the data port. When the print agent program of the POS terminal monitors the dot array data sent by the print server program, the print agent program of the POS terminal firstly processes the dot array data, that is, the second data to be printed. The data is verified by LRC to determine whether the data of the dot matrix array is correct and complete. If it is correct, the second data to be printed is sent to the POS printer, the second data to be printed is printed, and then a printed message is sent to the computer. Return the value and complete the printing task. If the second data to be printed is incorrect or incomplete, the POS printing agent will send an error code to the computer, and the computer printing server will resend the second data to be printed to the POS printing agent until the second The data to be printed is correctly and completely transmitted to the POS printer and the printing task is completed.

上述从POS端描述的将POS终端虚拟为计算机打印机的方法,通过约定协议将第二待打印数据传送到POS端,并最终将数据打印出来的方式,保证了数据的准确性和完整性,使用户可以将正确的数据通过POS端打印机打印出来。The method described above from the POS terminal to virtualize the POS terminal as a computer printer transmits the second data to be printed to the POS terminal through an agreed protocol, and finally prints the data, which ensures the accuracy and integrity of the data, so that The user can print out the correct data through the POS printer.

图6为一个实施例中计算机110将打印数据传输给POS终端120打印的工作流程图。如图6所示,计算机110上安装有第一打印驱动和打印伺服程序。POS终端120上安装有打印代理程序和打印机。以计算机角度来描述,计算机 110将打印数据传输给POS终端120打印的过程包括:FIG. 6 is a flow chart of the computer 110 transmitting print data to the POS terminal 120 for printing in one embodiment. As shown in FIG. 6 , a first print driver and a print server program are installed on the computer 110 . A print agent program and a printer are installed on the POS terminal 120 . Described from the perspective of a computer, the process of the computer 110 transmitting the print data to the POS terminal 120 for printing includes:

步骤602,接收打印驱动选择指令,并获取第一打印驱动。Step 602, receiving a print driver selection instruction, and acquiring a first print driver.

具体地,打印驱动选择指令可为接收用户在打印界面选择POS终端打印机类型所产生的指令。根据该打印驱动选择指令获取第一打印驱动。第一打印驱动可为适用于POS终端打印机的驱动程序。Specifically, the print driver selection instruction may be an instruction generated by receiving a user selecting a POS terminal printer type on a printing interface. The first print driver is acquired according to the print driver selection instruction. The first print driver may be a driver suitable for POS terminal printers.

步骤604,第一打印驱动将第一待打印数据传送至指定文件目录路径下,并查找调用打印伺服程序。Step 604, the first print driver transmits the first data to be printed to the specified file directory path, and searches for and invokes the print server program.

具体地,第一打印驱动将第一待打印数据转换成位图数据,并将位图数据发送至指定的文件目录路径下,并调用打印伺服程序。Specifically, the first print driver converts the first to-be-printed data into bitmap data, sends the bitmap data to the specified file directory path, and invokes the print server program.

步骤606,所述打印伺服程序将第一待打印数据转换为点阵数组数据,点阵数组数据即为第二待打印数据,并将第二待打印数据发送至POS端的打印代理模块,所述打印端打印代理模块为POS端用来接收计算机端的程序。Step 606, the print server program converts the first data to be printed into dot array data, and the dot array data is the second data to be printed, and sends the second data to be printed to the print proxy module at the POS end, the The printing proxy module of the printing end is a program used by the POS end to receive the computer end.

具体地,计算机端打印伺服程序将获取指定文件目录路径下的第一待打印数据,然后判断第一待打印数据的位图数据是否为单色位图数据,然后将单色位图数据转换为点阵数组,点阵数组为所述第二待打印数据,然后将第二待打印数据通过约定协议发送至POS端的打印代理模块。根据所述POS终端打印代理程序通过监听通讯端口,获取所述已转换待打印数据,并调用POS打印机;根据所述POS打印机,打印所述待打印数据。Specifically, the computer-side print server program will obtain the first data to be printed under the specified file directory path, then judge whether the bitmap data of the first data to be printed is monochrome bitmap data, and then convert the monochrome bitmap data into A dot matrix array, the dot matrix array is the second data to be printed, and then the second data to be printed is sent to the printing agent module at the POS end through an agreed protocol. Obtaining the converted data to be printed by monitoring the communication port according to the POS terminal printing agent program, and calling the POS printer; printing the data to be printed according to the POS printer.

图7为一个实施例中将POS终端虚拟为计算机打印机的装置的结构框图。如图7所示,一种将POS终端虚拟为计算机打印机的装置,以计算机角度描述,包括打印驱动模块702和打印伺服程序模块704。其中:Fig. 7 is a structural block diagram of a device for virtualizing a POS terminal as a computer printer in an embodiment. As shown in FIG. 7 , a device that virtualizes a POS terminal as a computer printer, described from a computer perspective, includes a print driver module 702 and a print server program module 704 . in:

打印驱动模块702用于提供打印机类型为POS终端打印机,接收打印指令,并根据所述打印指令获取第一待打印数据。The print driver module 702 is configured to provide a printer whose type is a POS terminal printer, receive a print instruction, and acquire first data to be printed according to the print instruction.

打印伺服程序模块704用于将所述第一待打印数据转换为符合POS终端的第二待打印数据,将所述第二待打印数据发送给POS终端的打印机,以使所述 POS终端的打印机对所述第二待打印数据进行打印。The print server program module 704 is used to convert the first data to be printed into the second data to be printed conforming to the POS terminal, and send the second data to be printed to the printer of the POS terminal, so that the printer of the POS terminal Print the second data to be printed.

在一个实施例中,所述打印驱动模块还用于将获取的第一待打印数据存储在指定文件目录路径下,以及调用所述打印伺服程序模块从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。In one embodiment, the print driver module is further configured to store the obtained first data to be printed in a specified file directory path, and call the print server program module to read the data from the specified file directory path. The first data to be printed, and converting the first data to be printed into the second data to be printed conforming to the POS terminal.

在其中一个实施例中,所述打印驱动模块还用于调用所述打印伺服程序模块将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。In one of the embodiments, the print driver module is also used to call the print server program module to convert the first data to be printed into monochrome bitmap data, and convert the monochrome bitmap data into dot matrix Array data, the dot matrix array data is the second data to be printed conforming to the POS terminal.

在其中一个实施例中,所述打印伺服程序模块还用于将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。In one of the embodiments, the print server program module is also used to send the second data to be printed to the print agent program of the POS terminal, and transmit the second data to be printed to the A printer for the POS terminal.

图8为一个实施例中POS终端的内部结构框图。如图8所示,一种POS终端包括打印代理程序模块802和打印模块804。其中:Fig. 8 is a block diagram of the internal structure of the POS terminal in one embodiment. As shown in FIG. 8 , a POS terminal includes a printing agent program module 802 and a printing module 804 . in:

打印代理程序模块802用于接收打印伺服程序发送的符合POS终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的。The print agent program module 802 is used to receive the second data to be printed according to the POS terminal sent by the print server program, and send the second data to be printed to the printer of the POS terminal; wherein, the second data to be printed It is obtained by converting the first data to be printed acquired by the first printing driver for the printing servo program.

打印模块804用于打印所述第二待打印数据。The printing module 804 is used for printing the second data to be printed.

在一个实施例中,所述打印代理程序还用于接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。In one embodiment, the print agent program is further configured to receive the dot array data sent by the print server program, and the dot array data is the first to-be-printed data obtained by the print server program from the first print driver. After the data is converted into monochrome bitmap data, the monochrome bitmap data is converted.

请参阅图9,图9为一实施例中POS终端虚拟为计算机打印机系统的工作流程图,该系统可以包括:Please refer to Fig. 9, Fig. 9 is a work flow diagram of a system in which the POS terminal is virtualized as a computer printer in an embodiment, and the system may include:

打印驱动模块902,用于选择POS打印机打印驱动以及获取用户打印指令,将待打印数据传送至指定文件目录路径下,并查找调用打印伺服程序。The print driver module 902 is used to select the print driver of the POS printer and obtain the user's print instruction, transmit the data to be printed to the specified file directory path, and search for and call the print server program.

打印伺服程序模块904,用于获取待打印数据,并判断待打印数据是否为单色位图数据,如果不是单色位图数据,将其转换成单色位图数据后,将单色位图数据转换为点阵数组数据,并将数据通过约定协议发送到POS终端装置。The print servo program module 904 is used to obtain the data to be printed, and judge whether the data to be printed is monochrome bitmap data, if it is not monochrome bitmap data, after converting it into monochrome bitmap data, the monochrome bitmap The data is converted into dot matrix data, and the data is sent to the POS terminal device through the agreed protocol.

打印代理模块906,接收打印伺服程序模块传送过来的数据,并判断数据是否正确,完整。如果数据有误,将重新向计算机端打印伺服程序请求点阵数组数据,然后将点阵数组数据传送至打印模块。The print agent module 906 receives the data sent by the print server program module, and judges whether the data is correct and complete. If the data is wrong, it will re-request the dot matrix array data from the printing server program on the computer side, and then send the dot matrix array data to the printing module.

打印模块908,接收点阵数组数据,并将点阵数组数据打印出来,完成打印任务,并反馈打印结果。The printing module 908 receives the dot array data and prints out the dot array data, completes the printing task, and feeds back the printing result.

上述将POS设备虚拟为打印机的方法,通过与计算机端的打印流程融合,用户无需做额外的工作就可以利用POS打印机打印简单的文档。且计算机端与 POS机之间可以支持多种链接方式,并不局限于传统的并口线缆链接方式,计算机端可以使用串口、USB线缆、以太网、WiFi等方式链接POS打印机来打印文档,提高了POS打印机的利用率。The above method of virtualizing the POS device as a printer is integrated with the printing process on the computer side, and the user can use the POS printer to print simple documents without doing extra work. And between the computer end and the POS machine can support a variety of connection methods, not limited to the traditional parallel port cable connection method, the computer end can use serial ports, USB cables, Ethernet, WiFi, etc. to connect to the POS printer to print documents, Improved utilization of POS printers.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (12)

1.一种将POS终端虚拟为计算机打印机的方法,其特征在于,包括以下步骤:1. a kind of method that POS terminal is virtual as computer printer, it is characterized in that, may further comprise the steps: 通过第一打印驱动接收打印指令,并根据所述打印指令获取第一待打印数据,所述第一打印驱动用于提供打印机类型为POS终端打印机;Receiving a print instruction through a first print driver, and obtaining first data to be printed according to the print instruction, the first print driver being used to provide a printer type that is a POS terminal printer; 通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据;calling a print server program through the first print driver to convert the first data to be printed into second data to be printed conforming to the POS terminal; 将所述第二待打印数据发送给POS终端的打印机,以使所述POS终端的打印机对所述第二待打印数据进行打印。Sending the second data to be printed to a printer of the POS terminal, so that the printer of the POS terminal prints the second data to be printed. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 将获取的第一待打印数据存储在指定文件目录路径下;storing the obtained first data to be printed in a specified file directory path; 通过所述第一打印驱动调用打印伺服程序从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。The first print driver invokes a print server program to read the first data to be printed from the specified file directory path, and convert the first data to be printed into second data to be printed conforming to the POS terminal. 3.根据权利要求1所述的方法,其特征在于,所述通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换为符合POS终端的第二待打印数据包括:3. The method according to claim 1, wherein the converting the first data to be printed into the second data to be printed conforming to the POS terminal by calling the print server program through the first print driver comprises: 通过所述第一打印驱动调用打印伺服程序将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。Convert the first data to be printed into monochrome bitmap data by calling the print servo program through the first print driver, and convert the monochrome bitmap data into dot matrix data, the dot matrix data is the The second data to be printed conforms to the POS terminal. 4.根据权利要求1所述的方法,其特征在于,所述将所述第二待打印数据发送给POS终端的打印机的步骤包括:4. The method according to claim 1, wherein the step of sending the second data to be printed to the printer of the POS terminal comprises: 将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。Sending the second data to be printed to the printing agent program of the POS terminal, and transmitting the second data to be printed to the printer of the POS terminal through the printing agent program. 5.一种将POS终端虚拟为计算机打印机的方法,其特征在于,包括:5. A method for virtualizing a POS terminal as a computer printer, characterized in that, comprising: 通过POS终端的打印代理程序接收打印伺服程序发送的符合POS终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的;Receive the second data to be printed according to the POS terminal sent by the printing agent program of the POS terminal, and send the second data to be printed to the printer of the POS terminal; wherein, the second data to be printed obtained by converting the first data to be printed acquired by the first print driver for the print servo program; 通过所述POS终端的打印机打印所述第二待打印数据。Printing the second data to be printed by the printer of the POS terminal. 6.根据权利要求5所述的方法,其特征在于,所述通过POS终端的打印代理程序接收打印伺服程序发送的符合POS终端的待打印数据的步骤包括:6. The method according to claim 5, wherein the step of receiving the data to be printed conforming to the POS terminal sent by the print server program through the print agent program of the POS terminal comprises: 通过POS终端的打印代理程序接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。The dot matrix array data sent by the print server program is received by the print agent program of the POS terminal, and the dot matrix array data is converted into a monochrome bitmap by the print server program to convert the first data to be printed acquired by the first print driver After the data, the monochrome bitmap data is converted to the obtained one. 7.一种将POS终端虚拟为计算机打印机的装置,其特征在于,包括:7. A device for virtualizing a POS terminal as a computer printer, characterized in that it comprises: 打印驱动模块,用于提供打印机类型为POS终端打印机,接收打印指令,并根据所述打印指令获取第一待打印数据;A print driver module, configured to provide a printer whose type is a POS terminal printer, receive a print instruction, and obtain the first data to be printed according to the print instruction; 打印伺服程序模块,用于将所述第一待打印数据转换为符合POS终端的第二待打印数据,将所述第二待打印数据发送给POS终端的打印机,以使所述POS终端的打印机对所述第二待打印数据进行打印。Printing servo program module, used to convert the first data to be printed into the second data to be printed according to the POS terminal, and send the second data to be printed to the printer of the POS terminal, so that the printer of the POS terminal Print the second data to be printed. 8.根据权利要求7所述的装置,其特征在于,所述打印驱动模块还用于将获取的第一待打印数据存储在指定文件目录路径下,以及调用所述打印伺服程序模块从所述指定文件目录路径中读取所述第一待打印数据,并将所述第一待打印数据转换为符合POS终端的第二待打印数据。8. The device according to claim 7, wherein the print driver module is further configured to store the acquired first data to be printed in a specified file directory path, and call the print server program module from the The first data to be printed is read from the specified file directory path, and the first data to be printed is converted into the second data to be printed conforming to the POS terminal. 9.根据权利要求7所述的装置,其特征在于,所述打印驱动模块还用于调用所述打印伺服程序模块将所述第一待打印数据转换单色位图数据,以及将所述单色位图数据转换为点阵数组数据,所述点阵数组数据为所述符合POS终端的第二待打印数据。9. The device according to claim 7, wherein the print driver module is also used to call the print servo program module to convert the first data to be printed into monochrome bitmap data, and convert the monochrome bitmap data to The color bitmap data is converted into dot matrix data, and the dot matrix data is the second data to be printed conforming to the POS terminal. 10.根据权利要求7所述的装置,其特征在于,所述打印伺服程序模块还用于将所述第二待打印数据发送给POS终端的打印代理程序,并通过所述打印代理程序将所述第二待打印数据传输给所述POS终端的打印机。10. The device according to claim 7, wherein the print server program module is further configured to send the second data to be printed to a print agent program of the POS terminal, and send the printed data to the print agent program through the print agent program. The second data to be printed is transmitted to the printer of the POS terminal. 11.一种POS终端,其特征在于,包括:11. A POS terminal, characterized in that it comprises: 打印代理程序模块,用于接收打印伺服程序发送的符合POS终端的第二待打印数据,并将所述第二待打印数据发送给所述POS终端的打印机;其中,所述第二待打印数据为所述打印伺服程序将第一打印驱动获取的第一待打印数据转换得到的;The print agent program module is used to receive the second data to be printed according to the POS terminal sent by the print server program, and send the second data to be printed to the printer of the POS terminal; wherein, the second data to be printed obtained by converting the first data to be printed acquired by the first print driver for the print servo program; 打印模块,用于打印所述第二待打印数据。A printing module, configured to print the second data to be printed. 12.根据权利要求11所述的POS终端,其特征在于,所述打印代理程序还用于接收打印伺服程序发送的点阵数组数据,所述点阵数组数据为所述打印伺服程序将所述第一打印驱动获取的第一待打印数据转换为单色位图数据后,再将所述单色位图数据进行转换所得到的。12. The POS terminal according to claim 11, wherein the printing agent program is also used to receive the dot array data sent by the print server program, and the dot array data is the print server program that converts the obtained by converting the first data to be printed obtained by the first print driver into monochrome bitmap data, and then converting the monochrome bitmap data.
CN201710278727.XA 2017-04-25 2017-04-25 Method and device for virtualizing POS terminal as computer printer and POS terminal Active CN107256134B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710278727.XA CN107256134B (en) 2017-04-25 2017-04-25 Method and device for virtualizing POS terminal as computer printer and POS terminal
PCT/CN2017/102215 WO2018196262A1 (en) 2017-04-25 2017-09-19 Method for virtualizing pos terminal into computer printer, computer, pos terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710278727.XA CN107256134B (en) 2017-04-25 2017-04-25 Method and device for virtualizing POS terminal as computer printer and POS terminal

Publications (2)

Publication Number Publication Date
CN107256134A true CN107256134A (en) 2017-10-17
CN107256134B CN107256134B (en) 2020-01-21

Family

ID=60027229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710278727.XA Active CN107256134B (en) 2017-04-25 2017-04-25 Method and device for virtualizing POS terminal as computer printer and POS terminal

Country Status (2)

Country Link
CN (1) CN107256134B (en)
WO (1) WO2018196262A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388411A (en) * 2018-03-05 2018-08-10 菲尼克斯(南京)智能制造技术工程有限公司 Laser printing system, laser printing method and the conversion equipment for printer computer
CN109859414A (en) * 2018-12-21 2019-06-07 艾体威尔电子技术(北京)有限公司 A kind of method and system realizing POS machine Logo array modification and generating
CN110377246A (en) * 2019-07-19 2019-10-25 厦门顶尖电子有限公司 A kind of Method of printing and without character library printer
CN112035074A (en) * 2019-06-04 2020-12-04 中兴通讯股份有限公司 Printing implementation method, device and system and storage medium
CN112486429A (en) * 2020-11-26 2021-03-12 四川长虹电器股份有限公司 Method for automatically configuring printer by terminal
CN112925487A (en) * 2021-02-05 2021-06-08 北京互金新融科技有限公司 Printing method and device of target content, storage medium and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220012034A1 (en) * 2020-07-10 2022-01-13 Roll, Inc Driver software for reading outgoing data from a point of sale (pos) system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408836A (en) * 2007-10-09 2009-04-15 北京书生国际信息技术有限公司 Print implementing method
CN102053806A (en) * 2009-10-29 2011-05-11 精工爱普生株式会社 Printer driver, printer control method, and recording medium
CN104813271A (en) * 2012-12-28 2015-07-29 精工爱普生株式会社 Data conversion system, data conversion device, and data conversion method
WO2016129226A1 (en) * 2015-02-12 2016-08-18 セイコーエプソン株式会社 Printer driver and pos system
CN106408798A (en) * 2016-09-22 2017-02-15 上海寰果信息科技有限公司 Pos machine printing method and printing system
CN106445426A (en) * 2016-08-31 2017-02-22 深圳市华阳信通科技发展有限公司 Printing driver-based text data acquisition and printing control method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072711A (en) * 2005-09-06 2007-03-22 Seiko Epson Corp On-demand printing monitoring system, on-demand printing monitoring method, on-demand printing monitoring program, and on-demand printing apparatus
CN102999299A (en) * 2011-09-13 2013-03-27 北京路模思科技有限公司 System and method for monitoring print data in Windows print process
US9542676B2 (en) * 2014-11-13 2017-01-10 Seiko Epson Corporation Host device, printing system, and data processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408836A (en) * 2007-10-09 2009-04-15 北京书生国际信息技术有限公司 Print implementing method
CN102053806A (en) * 2009-10-29 2011-05-11 精工爱普生株式会社 Printer driver, printer control method, and recording medium
CN104813271A (en) * 2012-12-28 2015-07-29 精工爱普生株式会社 Data conversion system, data conversion device, and data conversion method
WO2016129226A1 (en) * 2015-02-12 2016-08-18 セイコーエプソン株式会社 Printer driver and pos system
CN106445426A (en) * 2016-08-31 2017-02-22 深圳市华阳信通科技发展有限公司 Printing driver-based text data acquisition and printing control method and system
CN106408798A (en) * 2016-09-22 2017-02-15 上海寰果信息科技有限公司 Pos machine printing method and printing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贺忠海: "《医学电子仪器设计》", 31 December 2014 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388411A (en) * 2018-03-05 2018-08-10 菲尼克斯(南京)智能制造技术工程有限公司 Laser printing system, laser printing method and the conversion equipment for printer computer
CN108388411B (en) * 2018-03-05 2021-05-18 菲尼克斯(南京)智能制造技术工程有限公司 Laser printing system, laser printing method and conversion device for printer computer
CN109859414A (en) * 2018-12-21 2019-06-07 艾体威尔电子技术(北京)有限公司 A kind of method and system realizing POS machine Logo array modification and generating
CN112035074A (en) * 2019-06-04 2020-12-04 中兴通讯股份有限公司 Printing implementation method, device and system and storage medium
WO2020244379A1 (en) * 2019-06-04 2020-12-10 中兴通讯股份有限公司 Printing implementation method, device, and system, and storage medium
CN110377246A (en) * 2019-07-19 2019-10-25 厦门顶尖电子有限公司 A kind of Method of printing and without character library printer
CN112486429A (en) * 2020-11-26 2021-03-12 四川长虹电器股份有限公司 Method for automatically configuring printer by terminal
CN112925487A (en) * 2021-02-05 2021-06-08 北京互金新融科技有限公司 Printing method and device of target content, storage medium and electronic device

Also Published As

Publication number Publication date
WO2018196262A1 (en) 2018-11-01
CN107256134B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN107256134B (en) Method and device for virtualizing POS terminal as computer printer and POS terminal
EP0864964B1 (en) Printer driver switching in windows operating systems
US8806013B2 (en) Methods and systems for sharing a printer
EP1830250B1 (en) Non-postscript printer description file generating tool
JP2002268847A (en) Printing system and method for customization of print job
US20190107984A1 (en) Information processing method and storage medium
KR100228793B1 (en) Data processing method for printer
JP5361358B2 (en) Information processing apparatus, control method therefor, and program
US8922823B2 (en) Information processing apparatus and storage medium with the function of adding a cover letter to a print job
US10380387B2 (en) Integrated smart card printing and encoding
CN114579065A (en) Printer redirection method and system of cloud desktop
US20180143793A1 (en) Information processing apparatus, information processing system, and information processing method
JP2000187571A (en) Printing based upon event
US9691010B2 (en) Information processing apparatus, distributed printing system, and method of controlling printing
JP6089542B2 (en) Print control apparatus, print control method, and program
JP2014119998A (en) Output processing system and output processing method
CN100409167C (en) Status Information Processor
US8643861B2 (en) Image processing apparatus, data processing method of image processing apparatus, and storage medium for performing multitask processing and single task processing while interpreting PDL data
US10194038B2 (en) Information processing apparatus, information processing method, and information processing system
US8429308B2 (en) System and method for migrating data from a storage device
JP2016021157A (en) Program allowing one usb-connected apparatus to have plurality of functions
CN114661253B (en) A printing system, device and method directly driven by Microsoft system
US8643885B2 (en) Printing control apparatus and non-transitory computer readable medium with setting authentication information in a devmode structure
JP6115253B2 (en) Print system, spool server, spool method, and program
US8762582B2 (en) Data processing apparatus capable of communicating with external device via a plurality of logical lines, data processing system, data processing device storing data processing program, and device driver

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant