CN109783036A - Method of printing, system, device and computer readable storage medium - Google Patents

Method of printing, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109783036A
CN109783036A CN201711118622.4A CN201711118622A CN109783036A CN 109783036 A CN109783036 A CN 109783036A CN 201711118622 A CN201711118622 A CN 201711118622A CN 109783036 A CN109783036 A CN 109783036A
Authority
CN
China
Prior art keywords
printer
virtual
terminal
printing
title
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.)
Pending
Application number
CN201711118622.4A
Other languages
Chinese (zh)
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201711118622.4A priority Critical patent/CN109783036A/en
Publication of CN109783036A publication Critical patent/CN109783036A/en
Pending legal-status Critical Current

Links

Abstract

This disclosure relates to which a kind of Method of printing, system, device and computer readable storage medium, are related to field of cloud computer technology.This method comprises: adding virtual printer at the terminal, the title of virtual printer is consistent with the title of practical printer, and practical printer and terminal pass through network connection;The mapping relations of virtual printer and virtual desktop are established, and the title of virtual printer is sent to cloud server;The driver corresponding with the title of virtual printer that load cloud server is sent;The mimeograph documents formed in virtual desktop are handled according to driver, processed mimeograph documents are exported and are printed to practical printer.The technical solution of the disclosure can realize virtual desktop printing by cloud server under WAN environment.

Description

Method of printing, system, device and computer readable storage medium
Technical field
This disclosure relates to field of cloud computer technology, in particular to a kind of Method of printing, print system, printing equipment and calculating Machine readable storage medium storing program for executing.
Background technique
Printer is one of most common peripheral hardware application of computer.With the rise of desktop virtualization, various applications are gradually It migrates from computer to virtual desktop.Virtual desktop is different from the printing framework of computer, solves printer in virtual desktop ring Compatibility under border is of great significance to good user experience of the virtual desktop promoted under cloud environment under scene of handling official business.
The relevant technologies have USB (Universal Serial Bus, universal serial bus) redirecting technique.The technology is in void USB virtual unit is created under the dummy general serial bus of quasi- desktop, it is dynamic that plug of USB device etc. is simulated in virtual desktop Make, and serve as the transmission trunking of application program and physical device, forwards the usb data packet received.USB redirecting technique essence Upper is exactly the USB data line of virtual desktop, is responsible for connection virtual desktop and printer.
Summary of the invention
Inventor's discovery of the disclosure is above-mentioned, and there are the following problems in the related technology: only support USB interface printer, and USB communications protocol can not work normally under height delay, unstable WAN (Wide Area Network, wide area network) environment, Cause the relevant technologies that can not adapt to WAN environment;It is high to cloud demanding terminal, it is difficult to support the printing of the virtual desktop under cloud environment.
Therefore.At least one problem in regarding to the issue above, the present disclosure proposes a kind of printing technique scheme, Neng Goushi It answers WAN environment and the virtual desktop under cloud environment is supported to print.
According to some embodiments of the present disclosure, a kind of Method of printing is provided, comprising: add virtual printing at the terminal Machine, the title of the virtual printer is consistent with the title of practical printer, and the practical printer and the terminal pass through net Network connection;The mapping relations of the virtual printer and virtual desktop are established, and the title of the virtual printer is sent to Cloud server;Load the driver corresponding with the title of the virtual printer that the cloud server is sent;According to The driver forms mimeograph documents in the virtual desktop, and the mimeograph documents are exported and are carried out to the practical printer Printing.
Optionally, the virtual desktop is connect with the terminal by remote desktop display protocol, and the virtual desktop is logical The terminal is crossed to connect with the cloud server.
Optionally, the cloud server is stored with general print driver library.
Optionally, mimeograph documents are handled by the driver, processed mimeograph documents pass through the end CUPS (Common UNIX Printing System, general UNIX print system) on end is exported to the practical printer It is printed.
Optionally, data render is carried out to the mimeograph documents by the driver and forms print data;Pass through void The print data is transferred to the terminal by quasi- printer;By the CUPS in the terminal by the print data export to The practical printer is printed.
According to other embodiments of the disclosure, a kind of print system is provided, comprising: terminal, for adding virtual printing Machine, the title of the virtual printer is consistent with the title of practical printer, establishes the virtual printer and virtual desktop Mapping relations, and the title of the virtual printer is sent to cloud server, load that the cloud server sends with The corresponding driver of the title of the virtual printer forms printing text in the virtual desktop according to the driver Part exports the mimeograph documents to practical printer;Cloud server, for according to the title of the virtual printer to institute It states terminal and sends the corresponding driver;Practical printer, for printing the mimeograph documents, the practical printer with The terminal passes through network connection.
Optionally, the virtual desktop is connect with the terminal by remote desktop display protocol, and the virtual desktop is logical The terminal is crossed to connect with the cloud server.
Optionally, the cloud server is stored with general print driver library.
Optionally, the terminal will be exported by the mimeograph documents of driver processing to the reality by CUPS Printer is printed.
Optionally, print data is exported by CUPS and is printed to the practical printer by the terminal, described to beat According to being to be formed after the driver carries out data render to the mimeograph documents, the print data passes through described virtual printing Printer is transferred to the terminal.
According to the other embodiment of the disclosure, a kind of printing equipment is provided, comprising: execute in any of the above-described a embodiment The module of the Method of printing.
According to the still other embodiments of the disclosure, a kind of printing equipment is provided, comprising: memory;And it is coupled to described The processor of memory, the processor is configured to executing above-mentioned based on the instruction being stored in the memory device Method of printing described in one embodiment.
According to the still other embodiments of the disclosure, a kind of computer readable storage medium is provided, computer is stored thereon with Program, the program realize any of the above-described Method of printing as described in the examples when being executed by processor.
In the above-described embodiments, addition and practical printer virtual printer of the same name at the terminal, and pass through cloud Server loads corresponding driver.To reduce demanding terminal by the centralized management of printed driver, realize Virtual desktop printing under WAN environment.
Detailed description of the invention
The attached drawing for constituting part of specification describes embodiment of the disclosure, and together with the description for solving Release the principle of the disclosure.
The disclosure can be more clearly understood according to following detailed description referring to attached drawing, in which:
Fig. 1 shows the flow chart of some embodiments of the Method of printing of the disclosure.
Fig. 2 shows the schematic diagrames of some embodiments of the Method of printing of the disclosure.
Fig. 3 shows the block diagram of some embodiments of the print system of the disclosure.
Fig. 4 shows the block diagram of other embodiments of the printing equipment of the disclosure.
Specific embodiment
The various exemplary embodiments of the disclosure are described in detail now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally Scope of disclosure.
Simultaneously, it should be appreciated that for ease of description, the size of various pieces shown in attached drawing is not according to reality Proportionate relationship draw.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the disclosure And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
Fig. 1 shows the flow chart of some embodiments of the Method of printing of the disclosure.
As shown in Figure 1, this method comprises: step 110, adds virtual printer at the terminal;Step 120, it will virtually beat The title of print machine issues cloud server;Step 130, printed driver is loaded by cloud server;Step 140, shape At mimeograph documents and it is sent to practical printer.
In step 110, the title of the virtual printer added at the terminal is consistent with the title of practical printer.It is practical Printer can be connect by network with terminal.
In the step 120, the mapping relations of virtual printer and virtual desktop are established, and the title of virtual printer is sent out Give cloud server.In one embodiment, virtual desktop is connect with terminal by remote desktop display protocol, virtual desktop It is connect by terminal with cloud server.Application program needed for user is run in virtual desktop, therefore virtual printer As peripheral hardware, it is necessary to which establishing mapping relations with virtual desktop by terminal could interact with application program, for example, printing is empty File in quasi- desktop.
In step 130, the driver corresponding with the title of virtual printer that load cloud server is sent.Example Such as, since virtual printer is identical as practical printer name, cloud server can be in general print driver library In find and the matched driver of practical printer and issue terminal.After terminal for accessing virtual desktop, table can be passed through Face broker program will create printer according to the title of virtual printer, and load corresponding printed driver.
In step 140, mimeograph documents are formed in virtual desktop, mimeograph documents is handled according to driver, it will Treated, and mimeograph documents export is printed to practical printer.
In one embodiment, the application program in virtual desktop generates mimeograph documents by common graphic interface, such as Mimeograph documents can be EMF or XPS formatted file.Then mimeograph documents are sent to Print Spooler (printing background process Service), decided whether that print driver is called to render mimeograph documents according to relevant configuration.
Data render can be carried out to mimeograph documents by driver and form print data (RAW data).RAW data are The data that printer can be handled directly, such as PCL (Printer Command Language, printer control language) printing The RAW data of machine are PCL order datas, and the RAW data of postscript printer are PostScript data.Finally by void RAW data are transferred to terminal by quasi- printer, then are exported RAW data by the CUPS in terminal and beaten to practical printer Print.Printer manufacturer can be overcome to support a variety of printers caused by deficiency to map Linux platform using CUPS output data Technology and the problem of deposit.
Different printed drivers can be managed collectively by cloud server in this way.It need not be at the terminal Different printed drivers is installed, it is only necessary to which printer name, which is mapped to virtual desktop, can load corresponding driving journey Sequence.To simplify the installation procedure of printer under virtual desktop environment, improve work efficiency.
The technical solution of the disclosure is further described below by the connection schematic diagram in Fig. 2.
Fig. 2 shows the schematic diagrames of some embodiments of the Method of printing of the disclosure.
As shown in Fig. 2, terminal 21,22 and 23 passes through LAN (Local Area Network, local area network) or WAN and cloud Server 20 is held to connect.Virtual desktop 212,222 and 232 is connected with terminal 21,22 and 23 respectively by remote desktop display protocol It connects.Each virtual desktop is connect by corresponding terminal with cloud server, can guarantee to support virtual table under WAN environment in this way Face printing.Virtual printer 211,221 and 231, and virtual printer 211,221 and are respectively set in terminal 21,22 and 23 231 is identical as practical 24 title of printer.Practical printer 24 can be to be multiple, and the virtual printer being arranged in each terminal can be with It is arranged to identical as any one title in these practical printers.
For example, terminal 21 is wanted to pass through practical printer 24 mimeograph documents on virtual desktop 212.Firstly, it is necessary to establish The mapping relations of virtual printer 211 and virtual desktop 212, to be interacted with the print routine in virtual desktop 212.So Afterwards, terminal 21 is sent to cloud server 20, cloud by network by the title of virtual printer 211, the i.e. title of printer 24 End server 20 is sent to after finding the driver being consistent with the title of printer 24 in general print driver library 25 Terminal 21.Finally, terminal 21 forms mimeograph documents in virtual desktop 212, and load driver program to mimeograph documents at Practical printer 24 is sent to after reason to be printed.
In above-described embodiment, at the terminal addition with practical printer virtual printer of the same name, and pass through cloud clothes Business device loads corresponding driver.It is real to reduce the requirement to terminal by the centralized management of printed driver The virtual desktop printing under WAN environment is showed.
Fig. 3 shows the block diagram of some embodiments of the print system of the disclosure.
As shown in figure 3, print system 3 includes terminal 31, cloud server 32 and practical printer 33.
Terminal 31 adds virtual printer.The title of virtual printer is consistent with the title of practical printer.It establishes virtual The mapping relations of printer and virtual desktop, and the title of virtual printer is sent to cloud server 32.Virtual desktop with Terminal 31 is connected by remote desktop display protocol, and is connect by terminal 31 with cloud server 32.
The driver corresponding with the title of virtual printer that load cloud server 32 is sent.According to driver pair It is handled in the mimeograph documents that virtual desktop is formed, it will treated that mimeograph documents export is beaten to practical printer 33 Print.Terminal 31 can will be exported by the mimeograph documents of driver processing by CUPS and be printed to practical printer 33. It is printed for example, terminal 31 is exported print data by CUPS to practical printer 33, print data is driver pair Mimeograph documents are formed after carrying out data render, and print data is transferred to terminal 31 by virtual printer 33.
Cloud server 32 sends corresponding driver to terminal 31 according to the title of virtual printer.Cloud server 42 are stored with general print driver library.
Practical printer 33 is for printing mimeograph documents.Practical printer 33 passes through network connection with terminal 31.
In above-described embodiment, at the terminal addition with practical printer virtual printer of the same name, and pass through cloud clothes Business device loads corresponding driver.It is real to reduce the requirement to terminal by the centralized management of printed driver The virtual desktop printing under WAN environment is showed.
Fig. 4 shows the block diagram of other embodiments of the printing equipment of the disclosure.
As shown in figure 4, the device 4 of the embodiment includes memory 41 and is coupled to the processor 42 of the memory 41, Processor 42 is configured as executing the printing in the disclosure in any some embodiments based on the instruction being stored in memory 41 Method.
Memory 41 is such as may include system storage, fixed non-volatile memory medium.System storage is for example It is stored with operating system, application program, Boot loader (Boot Loader), database and other programs etc..
Those skilled in the art should be understood that embodiment of the disclosure can provide as method, system or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more, Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of calculation machine program product.
So far, it is described in detail according to the Method of printing of the disclosure, system, device and computer-readable storage medium Matter.In order to avoid covering the design of the disclosure, some details known in the field are not described.Those skilled in the art according to Above description, completely it can be appreciated how implementing technical solution disclosed herein.
Disclosed method and system may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combination realize disclosed method and system.The said sequence of the step of for the method Merely to be illustrated, the step of disclosed method, is not limited to sequence described in detail above, special unless otherwise It does not mentionlet alone bright.In addition, in some embodiments, also the disclosure can be embodied as to record program in the recording medium, these programs Including for realizing according to the machine readable instructions of disclosed method.Thus, the disclosure also covers storage for executing basis The recording medium of the program of disclosed method.
Although being described in detail by some specific embodiments of the example to the disclosure, the skill of this field Art personnel it should be understood that above example merely to be illustrated, rather than in order to limit the scope of the present disclosure.The skill of this field Art personnel are it should be understood that can modify to above embodiments in the case where not departing from the scope of the present disclosure and spirit.This public affairs The range opened is defined by the following claims.

Claims (13)

1. a kind of Method of printing, comprising:
Virtual printer is added at the terminal, and the title of the virtual printer is consistent with the title of practical printer, the reality Border printer and the terminal pass through network connection;
The mapping relations of the virtual printer and virtual desktop are established, and the title of the virtual printer is sent to cloud Server;
Load the driver corresponding with the title of the virtual printer that the cloud server is sent;
The mimeograph documents formed in the virtual desktop are handled according to the driver, by processed mimeograph documents It exports and is printed to the practical printer.
2. Method of printing according to claim 1, wherein
The virtual desktop is connect with the terminal by remote desktop display protocol,
The virtual desktop is connect by the terminal with the cloud server.
3. Method of printing according to claim 1, wherein
The cloud server is stored with general print driver library.
4. Method of printing according to claim 1-3, wherein exporting processed mimeograph documents to the reality Border printer carries out printing
Mimeograph documents are handled by the driver, processed mimeograph documents pass through general in the terminal UNIX print system CUPS is exported to be printed to the practical printer.
5. Method of printing according to claim 4, wherein exporting processed mimeograph documents to the practical printer Carrying out printing includes:
Data render is carried out to the mimeograph documents by the driver and forms print data;
The print data is transferred to the terminal by virtual printer;
The print data is exported by the CUPS in the terminal and is printed to the practical printer.
6. a kind of print system, comprising:
Terminal, for adding virtual printer, the title of the virtual printer is consistent with the title of practical printer, establishes institute The mapping relations of virtual printer and virtual desktop are stated, and the title of the virtual printer is sent to cloud server, are added The driver corresponding with the title of the virtual printer that the cloud server is sent is carried, according to the driver pair Handled in the mimeograph documents that the virtual desktop is formed, will treated mimeograph documents export to the practical printer into Row printing;
Cloud server, for sending the corresponding driver to the terminal according to the title of the virtual printer;
Practical printer, for printing the mimeograph documents, the practical printer and the terminal pass through network connection.
7. print system according to claim 6, wherein
The virtual desktop is connect with the terminal by remote desktop display protocol,
The virtual desktop is connect by the terminal with the cloud server.
8. print system according to claim 6, wherein
The cloud server is stored with general print driver library.
9. according to the described in any item print systems of claim 6-8, wherein
The terminal will be exported by the mimeograph documents of driver processing to institute by general UNIX print system CUPS Practical printer is stated to be printed.
10. print system according to claim 9, wherein
Print data is exported by CUPS and is printed to the practical printer by the terminal, and the print data is described Driver is formed after carrying out data render to the mimeograph documents, and the print data is transferred to by the virtual printer The terminal.
11. a kind of printing equipment, comprising:
Execute the module of Method of printing according to any one of claims 1 to 5.
12. a kind of printing equipment, comprising:
Memory;
And it is coupled to the processor of the memory, the processor is configured to based on being stored in the memory device Instruction, execute Method of printing according to any one of claims 1 to 5.
13. a kind of computer readable storage medium, is stored thereon with computer program, realized such as when which is executed by processor Method of printing of any of claims 1-5.
CN201711118622.4A 2017-11-14 2017-11-14 Method of printing, system, device and computer readable storage medium Pending CN109783036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711118622.4A CN109783036A (en) 2017-11-14 2017-11-14 Method of printing, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711118622.4A CN109783036A (en) 2017-11-14 2017-11-14 Method of printing, system, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109783036A true CN109783036A (en) 2019-05-21

Family

ID=66494017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711118622.4A Pending CN109783036A (en) 2017-11-14 2017-11-14 Method of printing, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109783036A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021109909A1 (en) * 2019-12-02 2021-06-10 中兴通讯股份有限公司 Printer use method, computer device, cloud desktop printing system, and storage medium
CN113377303A (en) * 2021-06-16 2021-09-10 苏州博瑞凯德信息技术有限公司 Printing method, printing device, client and server
CN113934379A (en) * 2020-06-29 2022-01-14 中国电信股份有限公司 Network printing method, medium and device based on desktop virtualization technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676858A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 Network print system and transmission method thereof
CN104394290A (en) * 2014-10-27 2015-03-04 深圳市京华科讯科技有限公司 Printer mapping method and system based on desktop virtualization technology
CN106557288A (en) * 2016-11-15 2017-04-05 华为技术有限公司 A kind of method and device for obtaining print data
CN106878419A (en) * 2017-02-17 2017-06-20 福建升腾资讯有限公司 A kind of efficient Method of printing of desktop cloud based on tunnel and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101676858A (en) * 2008-09-19 2010-03-24 英业达股份有限公司 Network print system and transmission method thereof
CN104394290A (en) * 2014-10-27 2015-03-04 深圳市京华科讯科技有限公司 Printer mapping method and system based on desktop virtualization technology
CN106557288A (en) * 2016-11-15 2017-04-05 华为技术有限公司 A kind of method and device for obtaining print data
CN106878419A (en) * 2017-02-17 2017-06-20 福建升腾资讯有限公司 A kind of efficient Method of printing of desktop cloud based on tunnel and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021109909A1 (en) * 2019-12-02 2021-06-10 中兴通讯股份有限公司 Printer use method, computer device, cloud desktop printing system, and storage medium
CN113934379A (en) * 2020-06-29 2022-01-14 中国电信股份有限公司 Network printing method, medium and device based on desktop virtualization technology
CN113934379B (en) * 2020-06-29 2024-01-02 天翼云科技有限公司 Network printing method, medium and device based on desktop virtualization technology
CN113377303A (en) * 2021-06-16 2021-09-10 苏州博瑞凯德信息技术有限公司 Printing method, printing device, client and server

Similar Documents

Publication Publication Date Title
CN102567074B (en) USB (universal serial bus) device redirecting method facing virtual machines
US8650273B2 (en) Virtual serial concentrator for virtual machine out-of-band management
CN107977176A (en) Method of printing, device and equipment
US9063793B2 (en) Virtual server and virtual machine management method for supporting zero client by providing host interfaces from classified resource pools through emulation or direct connection modes
US10171294B2 (en) Information processing device and system design support method
CN107515776A (en) The uninterrupted upgrade method of business, node to be upgraded and readable storage medium storing program for executing
CN104636076B (en) A kind of distributed block device drives method and system for cloud storage
EP2879053A1 (en) Virtual machine memory data migration method, related apparatus, and cluster system
CN106557288B (en) Method and device for acquiring printing data
CN114546594A (en) Container access to graphics processing unit resources
CN109783036A (en) Method of printing, system, device and computer readable storage medium
CN104468587B (en) Virtual machine single-point logging method and system under a kind of cloud computing environment
CN104239122A (en) VM (virtual machine) migration method and device
CN109241015A (en) Method for data to be written in distributed memory system
CN104394290B (en) Printer mapping method based on desktop virtual technology and system
RU2580079C2 (en) Application activation framework
CN109828848A (en) Platform services cloud server and its multi-user operation method
CN112256414A (en) Method and system for connecting multiple computing storage engines
WO2018236691A1 (en) Systems and methods for running software applications on distributed application frameworks
WO2021008185A1 (en) Data transmission method and apparatus, and server
CN109343974A (en) The inter-process communication methods and device of virtual desktop based on container
CN108845946B (en) Terminal, debugging system and terminal debugging method
CN103092676A (en) Analog input output method, device and system of virtual machine cluster
CN109683917A (en) For the method for being deployed in application server, equipment and medium will to be applied
CN104751057B (en) A kind of method and device for enhancing computer system security

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521