CN106557288A - A kind of method and device for obtaining print data - Google Patents
A kind of method and device for obtaining print data Download PDFInfo
- Publication number
- CN106557288A CN106557288A CN201611021378.5A CN201611021378A CN106557288A CN 106557288 A CN106557288 A CN 106557288A CN 201611021378 A CN201611021378 A CN 201611021378A CN 106557288 A CN106557288 A CN 106557288A
- Authority
- CN
- China
- Prior art keywords
- printer
- spooled
- request message
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1268—Job submission, e.g. submitting print job order or request not the print data itself
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1287—Remote printer device, e.g. being remote from client or server via internet
Abstract
The invention discloses a kind of method and device for obtaining print data, is related to printer technology field, to obtain print data in the case where the code of print system is not changed.The method includes:Print system sends target print data to spooled print module using IPP;Spooled print module receives target print data, and target print data is sent to printer service end using RDP.The printer service end that the method can be used in remote computer obtains print data.
Description
Technical field
The present invention relates to printer technology field, more particularly to a kind of method and device for obtaining print data.
Background technology
With the rise of cloud computing technology, traditional office mode (i.e. by the way of local computer is handled official business) is gradually
Substituted by telecommuting mode (by the way of being handled official business using remote computer).If remote computer is (also referred to as
Remote desktop or service end) peripheral hardware that needs using local computer (also referred to as local desktop or user side), generally require remote
Journey desktop protocol provides support.As a example by being set to printer in addition, as shown in figure 1, leading between local computer and remote computer
RDP connection is crossed, local computer is connected with printer.In desktop cloud scene, can include in local computer
Printer client, can include printer service end in remote computer, the application program in remote computer will be printed
To print system, after print data is handed down to printer service end by print system again, printer service end leads to data distributing
Cross RDP built-in printer tunnel and print data is sent to into printer client, printer client is again
Print data is issued to into printer, so that remote computer can be printed using the printer connected on local computer
Data, realize printer redirection.
When the operating system of remote computer is Windows operating system, print system is Splooer service systems,
Can cause printer service end that print data is obtained from print system by changing the code of print system.But when long-range
When the operating system of computer is (SuSE) Linux OS, print system is general print system (Common UNIX Printing
System, abbreviation CUPS).CUPS is a third party's component increased income, and the Backend that printer service end will be from CUPS is obtained
Take print data, it is necessary to change Backend codes, but the license of Backend (licence) is general public licence
(General Public License, abbreviation GPL), modification post code need to increase income.And for the behaviour of different linux versions
Make system, the version of CUPS is also inconsistent, cause amended Backend codes realize between the CUPS of each version
It is compatible.
The content of the invention
The embodiment provides a kind of method and device for obtaining print data, not change print system
Code in the case of obtain print data.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of first aspect, there is provided method of acquisition print data, is applied to remote computer, and remote computer includes
Print system, spooled print module and printer service end, the method include:Print system is using IPP to spooled print
Module sends target print data;Spooled print module receives target print data, and adopts RDP by target
Print data is sent to printer service end.
In prior art between print system and printer service end in the case where the code of print system is not changed, nothing
Method transmits print data, and the method that first aspect is provided increased spooled print module in remote computer, and spool is beaten
Impression block can realize information exchange with print system using IPP, while RDP and printer service can be adopted
Realize data interaction in end.Therefore, spooled print module can obtain print data from print system, and by print data to
Printer service end sends.In the case where the code of print system is not changed, you can printing number is got from print system
According to, it is possible to achieve the compatibility between the print system of each version.
In a kind of possible design, print system sends target print data, bag to spooled print module using IPP
Include:Print system adopts IPP by the objective network port in target print data is activation to remote computer;Spooled print mould
Block receives target print data, including:It is when spooled print module is listened to receives data on objective network port, false de-
Machine print module reads target print data on objective network port using IPP.
In a kind of possible design, target print data are sent to spooled print module using IPP in print system
Before, the method also includes:Spooled print module sends the first request message to print system, and the first request message includes using
In it is determined that the information of target print data, target print data are the data printed on destination virtual printer, destination virtual
Printer is located in remote computer;Print system determines target print data according to the first request message.
In a kind of possible design, the method also includes:Spooled print module obtains Printer Information list, prints
Attribute information of the machine information list comprising at least one local printer, local printer is the printing being connected with local computer
Machine;Spooled print module calls the API that print system is provided to create at least one virtual printing according to Printer Information list
Machine, virtual printer one local printer of correspondence, at least one virtual printer include destination virtual printer.
In a kind of possible design, before spooled print module sends the first request message to print system, should
Method also includes:Spooled print module sends the second request message to print system, and the second request message is used for request target
The printer task list of virtual printer;Print system returns response message to spooled print module, wraps in response message
Include the printer task list of destination virtual printer;Spooled print module determines the first request according to printer task list
The information for determining target print data that message includes.
In a kind of possible design, before spooled print module sends the second request message to print system, should
Method also includes:Spooled print module sends inquiry request message to print system, and inquiry request message is used to inquire about to be needed
The attribute information of the virtual printer of print data;Print system returns query response message, inquiry to spooled print module
Response message includes the attribute information of the virtual printer for needing print data;Spooled print module prints number as needed
According to the attribute information of virtual printer determine destination virtual printer.
In a kind of possible design, can include in Printer Information list for indicating the network-side of virtual printer
The information of mouth.
In a kind of possible design, before spooled print module sends the second request message to print system, should
Method also includes:Spooled print module obtains the state of destination virtual printer, and state includes busy or idle;Spool is beaten
Impression block sends the second request message to print system, including:When the state of destination virtual printer is idle, spool is beaten
Impression block sends the second request message to print system.
A kind of second aspect, there is provided device of acquisition print data, the device has realizes appointing for first aspect offer
Anticipate a kind of function of method.The function can be realized by hardware, it is also possible to performed corresponding software by hardware and realized.This is hard
Part or software include one or more modules corresponding with above-mentioned functions.
A kind of third aspect, there is provided device of acquisition print data, including:Processor, memorizer, bus and communication connect
Mouthful;Memorizer is used to store computer executed instructions, and processor is connected by bus with memorizer, and processor is by performing storage
The computer executed instructions of device storage, so that the device performs the side of any one acquisition print data that first aspect is provided
Method.
In addition, in second aspect or the third aspect technique effect brought by any one design can be found in first aspect
The technique effect brought by middle different designs mode, here is omitted.
Description of the drawings
Fig. 1 is a kind of configuration diagram for realizing printer redirection of the prior art;
Fig. 2 is a kind of composition schematic diagram of system of method application provided in an embodiment of the present invention;
Fig. 3 is the composition schematic diagram of another system of method application provided in an embodiment of the present invention;
Fig. 4 is the configuration diagram for realizing the method for providing of the invention provided in an embodiment of the present invention;
Fig. 5 is a kind of interaction diagrams of method for obtaining print data provided in an embodiment of the present invention;
Fig. 6 is the interaction diagrams of the method for another acquisition print data provided in an embodiment of the present invention;
Fig. 7 is a kind of composition schematic diagram of device for obtaining print data provided in an embodiment of the present invention;
Fig. 8 is the composition schematic diagram of the device of another acquisition print data provided in an embodiment of the present invention.
Specific embodiment
Method provided in an embodiment of the present invention can apply to remote virtual desktop system as shown in Figure 2 or Figure 3.As schemed
Shown in 2, remote virtual desktop system includes remote data center and local computer.Remote data center includes remote computation
Machine, remote computer are connected with local computer by RDP.Remote data center concentrated server resource and
Storage resource, when remote computer includes remote dummy computer, these server resources and storage resource pass through virtual machine
Monitor can fictionalize multiple remote dummy computers.Installation operation system on the remote computer, remote computer can be with
To be shown in the interface delivery of the desktop of remote computer to local computer by RDP, while can be by
Input-output equipment on local computer is mapped on remote computer.
The Organization Chart of another kind of remote virtual desktop system can with as shown in figure 3, the remote virtual desktop system include to
Few local computer, desktop management system and a resource pool, resource pool include at least one remote computer.
Desktop management system is used to manage remote computer and local computer.At least one can be included in remote computer
Individual application program.Local computer includes various input-output equipment, and input-output equipment can specifically include photographic head, show
Device, headset, key mouse and USB (universal serial bus) (Universal Serial Bus, abbreviation USB)/serial paralled interface peripheral hardware (for example, serial ports
Printer) etc..
Remote computer and local computer include different service modules.For example, USB/ serial paralled interfaces module, display mould
Block, audio-frequency module, multi-media module and key mouse module etc., server of the module in remote computer for respective service
End, is located locally client of the module in computer for respective service, and remote computer can be empty by RDP
Intend the function that channel service realizes respective service using the input-output equipment in local computer.
As shown in figure 4, Fig. 4 is shown for realizing the Organization Chart of method provided in an embodiment of the present invention, including long-range meter
Calculation machine and local computer.Remote computer includes application program, the print system that can be interacted with application program, Ke Yiyu
The spooled print module of print system interaction and the printer service end that can be interacted with spooled print module.It is local to count
Calculation machine includes the printer client that can be interacted with printer service end and the sheet that can be interacted with printer client
Ground printer.In embodiments of the present invention, it is believed that local printer is the part in local computer.
A kind of method for obtaining print data is embodiments provided, remote computer is applied to, referring to Fig. 4, far
Journey computer includes print system, spooled print module and printer service end.Remote computer can be remote physical meter
Calculation machine, or remote dummy computer.When the operating system of remote computer is (SuSE) Linux OS, the present invention is real
It can be CUPS to apply the print system in example;When the operating system of remote computer is Windows operating system, print system can
Think Splooer service systems.Print system can also be other kinds of system, no longer illustrate herein.
As shown in figure 5, the method for obtaining print data provided in an embodiment of the present invention includes:
501st, print system using Internet print agreement (Internet Printing Protocol, abbreviation IPP) to
Spooled print module sends target print data.
Wherein, target print data are the data printed on destination virtual printer, and destination virtual printer is located at remote
In journey computer.Remote computer includes at least one virtual printer, according at least one virtual printer with it is local
The printer that the attribute information of at least one local printer of computer connection is virtually obtained, a virtual printer correspondence one
Individual local printer.
It should be noted that for remote computer, remote computer may only recognize virtual printer, therefore,
In description of the invention, target print data are called the data printed on destination virtual printer, actually target print data
Printed on a local printer.
In embodiments of the present invention, print system and spooled print module are interacted using IPP, spooled print mould
Block and printer service end are interacted using RDP.
502nd, spooled print module receive target print data, and using RDP by target print data to
Printer service end sends.
Exemplary, RDP is specifically as follows:Huawei's desktop protocol (Huawei Desktop Protocol,
Abbreviation HDP), independent computing architecture (Independent Computing Architecture, abbreviation ICA) agreement etc..
Optionally, step 501 when implementing can be:Print system using IPP by target print data is activation extremely
Objective network port on remote computer;In this case, spooled print module receives target print data, including:Work as vacation
Off-line printing module is listened to when receiving data on objective network port, and spooled print module is using IPP in objective network
Target print data are read on port.
It should be noted that spooled print module can monitor objective network port in real time.
Objective network port can be the network port of the destination virtual printer on remote computer.One virtual printing
The network port of machine can be the default network port.After printer service termination receives print data, can be by remote
Target print data are sent by journey desktop protocol to the printer client in local computer, and printer client is again by target
Print data is sent on local printer corresponding with destination virtual printer and is printed.
Wherein, spooled print module and printer service end can be independent module, and spooled print module also may be used
To be built in printer service end.
In prior art between print system and printer service end in the case where the code of print system is not changed, nothing
Method transmits print data, and method provided in an embodiment of the present invention increased spooled print module in remote computer, false de-
Machine print module can realize information exchange with print system using IPP, while RDP and printer can be adopted
Service end realizes data interaction.Therefore, spooled print module can obtain print data from print system, and will print number
According to the transmission of printer service end.In the case where the code of print system is not changed, you can get from print system and beat
Printing evidence, it is possible to achieve the compatibility between the print system of each version.
Optionally, before step 501, said method also includes:Spooled print module sends first to print system
Request message;Print system determines target print data according to the first request message.
Wherein, the first request message includes that target print data are in target for determining the information of target print data
The data printed on virtual printer, destination virtual printer are located in remote computer.
It is exemplary, can include in the first request message the title of destination virtual printer, the offset address of data and
The information such as data volume.
It should be noted that multiple virtual printers can be included in remote computer.Exemplary, print system can be with
The title of the destination virtual printer included according to the first request message determines which virtual printer is target print data be
On data, determine target print data further according to the offset address and data volume of data.
Optionally, the method can also include:Spooled print module obtains Printer Information list, spooled print mould
Tuber calls the application programming interface (Application of print system offer according to Printer Information list
Programming Interface, abbreviation API) create at least one virtual printer.
Printer Information list includes the attribute information of at least one local printer, and local printer is and local computing
The printer of machine connection;One virtual printer one local printer of correspondence, at least one virtual printer include that target is empty
Intend printer.
Wherein, the attribute information of a printer at least includes printer name, the URL of printer
A kind of information in the information such as the driving model of (Uniform Resource Locator, abbreviation URL) and printer.
After the optional method is performed, user can be chosen when print data is needed when using remote computer
The virtual printer of print data.
Optionally, can include in Printer Information list for indicating the information of the network port of virtual printer.
It is exemplary, for indicating in URL that the information of the network port may be embodied in local printer.For example, one
The URL of local printer is Ipp14://localhost:During 28515/printers/PrinterName, the local printer
The network port of corresponding virtual printer can be 28515 ports.
In this case, after virtual printer is created, remote computer can determine that the network port of virtual printer.
Optionally, before spooled print module sends the first request message to print system, the method also includes:It is false
Off-line printing module sends the second request message to print system, and the second request message is used for beating for request target virtual printer
Print machine task list;Print system returns response message to spooled print module, and response message includes that destination virtual is printed
The printer task list of machine;Spooled print module determines the use that the first request message includes according to printer task list
In it is determined that the information of target print data.
Specifically, can include needing size for file name and each file for printing etc. in printer task list
Information.Spooled print module can determine the data volume that total needs are printed according to printer task list, according to total need
Data volume to be printed determines that print system needs the number of times and print system that send print data to need the number for sending every time
According to amount, so that it is determined that the information such as the offset address of print data that includes of each first request message and data volume.
It should be noted that print system can be managed to virtual printer, when an application program it is empty to one
When plan printer issues print out task, the print out task can be stored in the print queue of the virtual printer, print system
Print out task can be obtained from the print queue of the virtual printer, and generates print out task list.
Optionally, before spooled print module sends the second request message to print system, method also includes:It is false de-
Machine print module sends inquiry request message to print system, and inquiry request message needs the virtual of print data to beat for inquiry
The attribute information of print machine;Print system returns query response message to spooled print module, and query response message includes needing
Want the attribute information of the virtual printer of print data;The spooled print module virtual printer of print data as needed
Attribute information determines destination virtual printer.
Specifically, after application program issues print out task to print system, print system can be with spooled print
Module sets up IPP connections.Spooled print module can be by sending which virtual printer needs inquiry request message determines
Print data.Specifically, spooled print module can be according to the virtual printing for needing print data in query response message
The attribute information of machine determines destination virtual printer.Exemplary, if remote computer includes the void of entitled A, B, C and D
Intend printer, if the virtual printing that the attribute information of the virtual printer for needing print data in query response message includes
The entitled A of machine, then spooled print module determine the virtual printer that destination virtual printer is entitled A.
Optionally, before spooled print module sends the second request message to print system, method also includes:It is false de-
Machine print module obtains the state of destination virtual printer, and state includes busy or idle;In this case, spooled print module
The second request message is sent to print system, including:When the state of destination virtual printer is idle, spooled print module
The second request message is sent to print system.
It should be noted that when the state of destination virtual printer is idle, print system can just get printing
Data, therefore, when the state of destination virtual printer is idle, spooled print module just sends second to print system please
Seek message.
Specifically, spooled print module can also be by sending inquiry request message to print system, so as to get
The state of destination virtual printer.The inquiry of the attribute information and state of the virtual printer of print data is needed to ask for inquiry
Ask message be different message, or identical message.
Apply in method provided in an embodiment of the present invention below and in the remote computer for be provided with (SuSE) Linux OS be
Example is illustrative to method provided in an embodiment of the present invention, and in this case, print system is CUPS.As shown in fig. 6, should
Method includes:
601st, local printer reports the attribute information of local printer to the printer client in local computer.
The attribute information of local printer includes local printer title, the URL of local printer and local printer
Drive the information such as model.
602nd, the printer client in local computer obtains the attribute information of local printer, and to remote computer
In printer service end report Printer Information list.
Attribute information of the Printer Information list comprising at least one local printer.
603rd, printer service end obtains Printer Information list, and reports to spooled print module.
604th, spooled print module obtains Printer Information list, calls what CUPS was provided according to Printer Information list
API creates virtual printer.
Specifically, local printer one virtual printer of correspondence
After step 604, using the user of remote computer when print data is needed by choose print data
Virtual printer.
605th, CUPS receives the print out task that application program is issued.
606th, CUPS and spooled print module set up IPP connections.
The process for setting up IPP connections can be found in prior art.
It should be noted that after each print out task terminates, CUPS can disconnect IPP companies with spooled print module
Connect, IPP companies can be set up again when each CUPS receives the print out task that application program issues with spooled print module
Connect.Therefore, when spooled print module receive CUPS transmission set up IPP request after, illustrate now there is print out task, vacation
Off-line printing module execution step 607.
607th, spooled print module sends inquiry request message to CUPS.
It should be noted that due to spooled print module be not aware that user select be any platform virtual printer.Cause
This, which platform is spooled print module is virtually beaten for firstly the need of the virtual printer that print data is determined by inquiry request message
Print machine.
608th, CUPS receives inquiry request message, and inquiry needs the attribute information and shape of the virtual printer of print data
State.
The state of virtual printer includes busy or idle.
609th, CUPS returns query response message to spooled print module.
Query response message includes the attribute information and state of the virtual printer for needing print data, needs to print number
According to virtual printer attribute information can include the title of virtual printer, URL or drive in model one or more.
610th, spooled print module receives query response message, and the category of the virtual printer of print data as needed
Property information determines destination virtual printer.
611st, when the state of destination virtual printer is idle, spooled print module sends the second request to CUPS and disappears
Breath.
Second request message is used for the printer task list of request target virtual printer.
612nd, CUPS receives the second request message, and the printer of destination virtual printer is determined according to the second request message
Task list.
Specifically, can include needing size for file name and each file for printing etc. in printer task list
Information.
613rd, CUPS returns response message to spooled print module.
Response message includes the printer task list of destination virtual printer.
614th, spooled print module receives response message, and the printing of destination virtual printer is determined according to response message
Machine task list.
615th, spooled print module is determined for determining target according to the printer task list of destination virtual printer
The information of print data.
Target print data are the part or all of data in the data printed on destination virtual printer.
616th, spooled print module sends the first request message to CUPS.
First request message is included for determining the information of target print data.
617th, CUPS receives the first request message, and determines target print data according to the first request message.
618th, target print data are sent to spooled print module by CUPS using IPP.
619th, spooled print module receives the target print data that CUPS sends, and adopts RDP by target
Print data is sent to printer service end.
620th, printer service end receives target print data, and using RDP by target print data to beating
Print machine client sends.
621st, target print data are sent by printer client to local printer corresponding with destination virtual printer.
It should be noted that virtual printer one local printer of correspondence, as virtual printer is according to this
Ground printer is virtually obtained, and is existed as the virtual printer of corresponding relation with the driving model of local printer is.Cause
This, needs the data for printing to meet data layout on its corresponding local printer on a virtual printer, because
This, needs target print data are sent to local printer corresponding with destination virtual printer.
After step 621, CUPS can also pass through spooled print module, printer service end and printer client
The information for stopping printing is sent to local printer.CUPS can be disconnected and spooled print when it is determined that print out task is completed
IPP connections between module.
Wherein, printer client and local printer are may be located in local computer, printer service end, apply journey
Sequence, spooled print module and CUPS are may be located in remote computer.
The beneficial effect of the exemplary embodiment may refer to the beneficial effect based on the method described in Fig. 5, and here is not
Repeat again.
The above-mentioned main angle from interaction between modules is described to scheme provided in an embodiment of the present invention.Can
To be understood by, for realizing the device of said method to realize above-mentioned functions, it comprises execution each function it is corresponding
Hardware configuration and/or software module.Those skilled in the art should be readily appreciated that, with reference to the embodiments described herein
The unit and algorithm steps of each example of description, the present invention can come real with the combining form of hardware or hardware and computer software
It is existing.Certain function actually in the way of hardware or computer software drive hardware performing, depending on the specific of technical scheme
Using and design constraint.It is described that professional and technical personnel can use different methods to realization to each specific application
Function, but it is this realization it is not considered that beyond the scope of this invention.
Exemplary, Fig. 7 is shown for realizing a kind of possible knot of the device of the method for above-mentioned acquisition print data
Structure schematic diagram, the device 70 of the acquisition print data include:Print system 701, spooled print module 702 and printer service
End 703;
The print system 701, for being sent to the spooled print module 702 using Internet print protocol IP P
Target print data;
The spooled print module 702, for receiving the target print data, and adopts RDP by institute
State target print data to send to the printer service end 703.
Optionally, the spooled print module 702, is additionally operable to send the first request message to the print system 701,
First request message includes that for determining the information of the target print data target print data are empty in target
Intend the data printed on printer, the destination virtual printer is located in the remote computer;
The print system 701, is additionally operable to determine the target print data according to first request message.
Optionally, the spooled print module 702, is additionally operable to obtain Printer Information list, the Printer Information
Attribute information of the list comprising at least one local printer, the local printer is the printing being connected with local computer
Machine;
The spooled print module 702, is additionally operable to call the print system 701 according to the Printer Information list
Application programming interface API of offer creates at least one virtual printer, and a virtual printer corresponds to one and locally beats
Print machine, at least one virtual printer include the destination virtual printer.
Optionally, the spooled print module 702, is additionally operable to send the second request message to the print system 701,
Second request message is used for the printer task list for asking the destination virtual printer;
The print system 701, is additionally operable to return response message to the spooled print module 702, and the response disappears
Breath includes the printer task list of the destination virtual printer;
The spooled print module 702, is additionally operable to determine that first request disappears according to the printer task list
The information for determining the target print data that breath includes.
Optionally, the spooled print module 702, is additionally operable to send inquiry request message to the print system 701,
The inquiry request message needs the attribute information of the virtual printer of print data for inquiry;
The print system 701, is additionally operable to return query response message to the spooled print module 702, described to look into
Ask the attribute information of the virtual printer that response message includes needing print data;
The spooled print module 702, the attribute information for being additionally operable to the virtual printer of print data as needed are true
The fixed destination virtual printer.
Optionally, the spooled print module 702, is additionally operable to obtain the state of the destination virtual printer, described
State includes busy or idle;
The spooled print module 702, it is specifically for when the state of the destination virtual printer is idle, described
Spooled print module 702 sends the second request message to the print system 701.
Wherein, print system 701 can be the print system in Fig. 4, and spooled print module 702 can be in Fig. 4
Spooled print module, printer service end 703 can be the printer service end in Fig. 4.
Modules in the device 70 are used to perform said method, therefore, the beneficial effect of the device 70 may refer to
The beneficial effect of said method, will not be described here.
As shown in figure 8, illustrating for a kind of hardware configuration of the device 80 for obtaining print data provided in an embodiment of the present invention
Figure.Wherein, the device 80 includes processor 801, memorizer 802, bus 803 and communication interface 804.
Processor 801, memorizer 802 and communication interface 804 are connected by bus 803.Bus 803 can be external components
Interconnection standards (peripheral component interconnect, PCI) bus or EISA
(extended industry standard architecture, EISA) bus etc..It is total that the bus 803 can be divided into address
Line, data/address bus, controlling bus etc..For ease of representing, only represented with a thick line in Fig. 8, it is not intended that only one total
Line or a type of bus.
Memorizer 802 is used to store computer executed instructions, and processor 801 can pass through to perform the storage of memorizer 802
Computer executed instructions perform the corresponding action at above-mentioned print system, spooled print module and printer service end, with reality
Existing said method.The print data that communication interface 804 can be used for getting sends, and can be also used for obtaining printer
Information list.
Each device in the device 80 is used to perform said method, therefore, the beneficial effect of device 80 may refer to
The beneficial effect of method is stated, be will not be described here.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, for storing the device of above-mentioned acquisition print data
Computer software instructions used, which is included for performing the program designed by said method embodiment.Obtain print data
Device can obtain print data by performing the program for storing.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function
The division of module is illustrated, and in practical application, can distribute above-mentioned functions by different function moulds as desired
Block is completed, will the internal structure of device be divided into different functional modules, to complete all or part of work(described above
Energy.The specific work process of the device and module of foregoing description, may be referred to the corresponding process in preceding method embodiment, here
Repeat no more.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, which can be passed through
Its mode is realized.For example, device embodiment described above is only schematically, for example division of the module, only
Only a kind of division of logic function, can have other dividing mode when actually realizing, such as multiple module or components can be tied
Close or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, device or unit or logical
Letter connection.
In addition, each functional module in the application each embodiment can be integrated in a processing module, it is also possible to
It is that modules are individually physically present, it is also possible to which two or more modules are integrated in a module.Above-mentioned integrated mould
Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.
The above, above example only to illustrate the technical scheme of the application, rather than a limitation;Although with reference to front
State embodiment to be described in detail the application, it will be understood by those within the art that:Which still can be to front
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the application.
Claims (13)
1. a kind of method for obtaining print data, it is characterised in that be applied to remote computer, the remote computer includes beating
Print system, spooled print module and printer service end, methods described include:
The print system sends target print data to the spooled print module using Internet print protocol IP P;
The spooled print module receives the target print data, and adopts RDP by the target print number
According to printer service end transmission.
2. method according to claim 1, it is characterised in that beaten to the spool using IPP in the print system
Before impression block sends target print data, methods described also includes:
The spooled print module to the print system send the first request message, first request message include for
Determine the information of the target print data, the target print data are the data printed on destination virtual printer, institute
State destination virtual printer to be located in the remote computer;
The print system determines the target print data according to first request message.
3. method according to claim 2, it is characterised in that methods described also includes:
The spooled print module obtains Printer Information list, and the Printer Information list is locally beaten comprising at least one
The attribute information of print machine, the local printer are the printer being connected with local computer;
The spooled print module calls the application program that the print system is provided to compile according to the Printer Information list
Journey interface API at least one virtual printers of establishment, virtual printer one local printer of correspondence, described at least one
Virtual printer includes the destination virtual printer.
4. according to the method in claim 2 or 3, it is characterised in that print system to described in the spooled print module
Before system sends the first request message, methods described also includes:
The spooled print module sends the second request message to the print system, and second request message is used to ask
The printer task list of the destination virtual printer;
The print system returns response message to the spooled print module, and the response message includes that the target is empty
Intend the printer task list of printer;
According to the printer task list, the spooled print module determines that what first request message included is used for
Determine the information of the target print data.
5. method according to claim 4, it is characterised in that send out to the print system in the spooled print module
Before sending the second request message, methods described also includes:
The spooled print module sends inquiry request message to the print system, and the inquiry request message is used to inquire about
Need the attribute information of the virtual printer of print data;
The print system returns query response message to the spooled print module, and the query response message includes needing
Want the attribute information of the virtual printer of print data;
The attribute information of the spooled print module virtual printer of print data as needed determines the destination virtual
Printer.
6. the method according to claim 4 or 5, it is characterised in that print system to described in the spooled print module
Before system sends the second request message, methods described also includes:
The spooled print module obtains the state of the destination virtual printer, and the state includes busy or idle;
The spooled print module sends the second request message to the print system, including:When the destination virtual is printed
When the state of machine is idle, the spooled print module sends the second request message to the print system.
7. it is a kind of obtain print data device, it is characterised in that include:Print system, spooled print module and printer
Service end;
The print system, for sending target print number to the spooled print module using Internet print protocol IP P
According to;
The spooled print module, for receiving the target print data, and adopts RDP by the target
Print data is sent to the printer service end.
8. device according to claim 7, it is characterised in that
The spooled print module, is additionally operable to send the first request message, first request message to the print system
Including for determining the information of the target print data, the target print data are printed on destination virtual printer
Data, the destination virtual printer are located in the remote computer;
The print system, is additionally operable to determine the target print data according to first request message.
9. device according to claim 8, it is characterised in that
The spooled print module, is additionally operable to obtain Printer Information list, and the Printer Information list includes at least one
The attribute information of individual local printer, the local printer are the printer being connected with local computer;
The spooled print module, is additionally operable to the application of the print system offer is called according to the Printer Information list
Program Interfaces API creates at least one virtual printer, virtual printer one local printer of correspondence, it is described extremely
A few virtual printer includes the destination virtual printer.
10. device according to claim 8 or claim 9, it is characterised in that
The spooled print module, is additionally operable to send the second request message, second request message to the print system
For asking the printer task list of the destination virtual printer;
The print system, is additionally operable to return response message to the spooled print module, and the response message includes institute
State the printer task list of destination virtual printer;
The spooled print module, is additionally operable to determine that first request message includes according to the printer task list
The information for determining the target print data.
11. devices according to claim 10, it is characterised in that
The spooled print module, is additionally operable to send inquiry request message, the inquiry request message to the print system
The attribute information of the virtual printer of print data is needed for inquiry;
The print system, is additionally operable to return query response message, the query response message to the spooled print module
The attribute information of the virtual printer for including needing print data;
The spooled print module, the attribute information for being additionally operable to the virtual printer of print data as needed determine the mesh
Mark virtual printer.
12. devices according to claim 10 or 11, it is characterised in that
The spooled print module, is additionally operable to obtain the state of the destination virtual printer, the state include it is busy or
It is idle;
The spooled print module, specifically for when the destination virtual printer state for it is idle when, the spool
Print module sends the second request message to the print system.
13. a kind of devices for obtaining print data, it is characterised in that include:Processor, memorizer, bus and communication interface;
The memorizer is used to store computer executed instructions, and the processor is connected by the bus with the memorizer,
The computer executed instructions of the processor by the execution memory storage, so that described device performs right such as and wants
The method for seeking the acquisition print data in 1-6 described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611021378.5A CN106557288B (en) | 2016-11-15 | 2016-11-15 | Method and device for acquiring printing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611021378.5A CN106557288B (en) | 2016-11-15 | 2016-11-15 | Method and device for acquiring printing data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106557288A true CN106557288A (en) | 2017-04-05 |
CN106557288B CN106557288B (en) | 2020-04-14 |
Family
ID=58444374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611021378.5A Active CN106557288B (en) | 2016-11-15 | 2016-11-15 | Method and device for acquiring printing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557288B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783036A (en) * | 2017-11-14 | 2019-05-21 | 中国电信股份有限公司 | Method of printing, system, device and computer readable storage medium |
CN110865776A (en) * | 2019-09-30 | 2020-03-06 | 浙江口碑网络技术有限公司 | Bill printing method and device |
CN111240610A (en) * | 2020-01-08 | 2020-06-05 | 中孚安全技术有限公司 | Printing process management and control method, system, terminal and storage medium |
CN112313614A (en) * | 2019-05-30 | 2021-02-02 | 华为技术有限公司 | Method, device and system for printing file in virtual machine by using terminal equipment |
WO2021109909A1 (en) * | 2019-12-02 | 2021-06-10 | 中兴通讯股份有限公司 | Printer use method, computer device, cloud desktop printing system, and storage medium |
CN113900603A (en) * | 2021-12-10 | 2022-01-07 | 统信软件技术有限公司 | Analog printing method, computing device and storage medium |
CN114579065A (en) * | 2022-01-21 | 2022-06-03 | 福建升腾资讯有限公司 | Printer redirection method and system of cloud desktop |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575460A (en) * | 2001-08-22 | 2005-02-02 | 皮尔雷斯系统公司 | Output management system and method for enabling printing via wireless devices |
US20080137133A1 (en) * | 2005-01-31 | 2008-06-12 | Bernd Trappe | Method and System for Printing Via Application Servers and Corresponding Computer Program and Corresponding Computer-Readable Storage Medium |
US20080201485A1 (en) * | 2007-02-20 | 2008-08-21 | Microsoft Corporation | Printer user interface redirection over a terminal services session |
CN102436361A (en) * | 2010-11-19 | 2012-05-02 | 微软公司 | Branch office direct printing |
-
2016
- 2016-11-15 CN CN201611021378.5A patent/CN106557288B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575460A (en) * | 2001-08-22 | 2005-02-02 | 皮尔雷斯系统公司 | Output management system and method for enabling printing via wireless devices |
US20080137133A1 (en) * | 2005-01-31 | 2008-06-12 | Bernd Trappe | Method and System for Printing Via Application Servers and Corresponding Computer Program and Corresponding Computer-Readable Storage Medium |
US20080201485A1 (en) * | 2007-02-20 | 2008-08-21 | Microsoft Corporation | Printer user interface redirection over a terminal services session |
CN102436361A (en) * | 2010-11-19 | 2012-05-02 | 微软公司 | Branch office direct printing |
Non-Patent Citations (2)
Title |
---|
孔智鹏: "虚拟云桌面云接入关键系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
鲍豹: "云桌面打印映射关键技术", 《计算机应用系统》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783036A (en) * | 2017-11-14 | 2019-05-21 | 中国电信股份有限公司 | Method of printing, system, device and computer readable storage medium |
CN112313614A (en) * | 2019-05-30 | 2021-02-02 | 华为技术有限公司 | Method, device and system for printing file in virtual machine by using terminal equipment |
CN112313614B (en) * | 2019-05-30 | 2022-09-16 | 华为技术有限公司 | Method, device and system for printing file in virtual machine by using terminal equipment |
CN110865776A (en) * | 2019-09-30 | 2020-03-06 | 浙江口碑网络技术有限公司 | Bill printing method and device |
CN110865776B (en) * | 2019-09-30 | 2023-07-04 | 浙江口碑网络技术有限公司 | Bill printing method and device |
WO2021109909A1 (en) * | 2019-12-02 | 2021-06-10 | 中兴通讯股份有限公司 | Printer use method, computer device, cloud desktop printing system, and storage medium |
CN111240610A (en) * | 2020-01-08 | 2020-06-05 | 中孚安全技术有限公司 | Printing process management and control method, system, terminal and storage medium |
CN113900603A (en) * | 2021-12-10 | 2022-01-07 | 统信软件技术有限公司 | Analog printing method, computing device and storage medium |
CN113900603B (en) * | 2021-12-10 | 2022-04-01 | 统信软件技术有限公司 | Analog printing method, computing device and storage medium |
CN114579065A (en) * | 2022-01-21 | 2022-06-03 | 福建升腾资讯有限公司 | Printer redirection method and system of cloud desktop |
Also Published As
Publication number | Publication date |
---|---|
CN106557288B (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106557288A (en) | A kind of method and device for obtaining print data | |
US10698717B2 (en) | Accelerator virtualization method and apparatus, and centralized resource manager | |
WO2018205325A1 (en) | Method and system for use in constructing content delivery network platform on heterogeneous resources | |
EP3076296A1 (en) | Computer, control device and data processing method | |
CN106685679A (en) | Network service deployment method and device | |
CN107959582A (en) | A kind of management method and device of example of cutting into slices | |
CN109587281A (en) | Container configuration method and calculate node | |
CN101460925A (en) | Method and apparatus for processing remote shell commands | |
WO2022143714A1 (en) | Server system, and virtual machine creation method and apparatus | |
CN110380992A (en) | Message processing method, device and network flow acquire equipment | |
CN100530072C (en) | Remote printing method for multi-node intelligent network application service system | |
CN108667817A (en) | Message converting system and message forwarding method | |
CN105302502B (en) | Realize printing shared method, client, printer, platform and system | |
JPH09265440A (en) | Network communication sub-system for network connected digital computer system | |
WO2017166997A1 (en) | Inic-side exception handling method and device | |
WO2019233088A1 (en) | Inter-bmc file transmission method, device and apparatus, and storage medium | |
CN105786732A (en) | Data access method and apparatus | |
JP4516594B2 (en) | Message transmission control method, message transmission control device, and message transmission control program | |
CN107277163B (en) | Equipment remote mapping method and device | |
CN110389711A (en) | Endpoint device is helped to realize method, equipment and the computer program product of SR-IOV function | |
CN107491342A (en) | A kind of more virtual card application methods and system based on FPGA | |
CN114780228A (en) | Hybrid cloud resource creation method and system | |
CN107168909A (en) | Interconnecting device, telecommunication system, data transmission method and device | |
CN114124740A (en) | VNF instantiation method and device | |
CN114296916B (en) | Method, device and medium for improving RDMA release performance |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220216 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technology Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |