CN109669646B - Printing method, printing device, computer equipment and storage medium - Google Patents

Printing method, printing device, computer equipment and storage medium Download PDF

Info

Publication number
CN109669646B
CN109669646B CN201811383341.6A CN201811383341A CN109669646B CN 109669646 B CN109669646 B CN 109669646B CN 201811383341 A CN201811383341 A CN 201811383341A CN 109669646 B CN109669646 B CN 109669646B
Authority
CN
China
Prior art keywords
printing
printer
data
cloud server
terminal
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.)
Active
Application number
CN201811383341.6A
Other languages
Chinese (zh)
Other versions
CN109669646A (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.)
Shenzhen Qianhai Baidi Network Co ltd
Original Assignee
Shenzhen Qianhai Baidi Network 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 Shenzhen Qianhai Baidi Network Co ltd filed Critical Shenzhen Qianhai Baidi Network Co ltd
Priority to CN201811383341.6A priority Critical patent/CN109669646B/en
Publication of CN109669646A publication Critical patent/CN109669646A/en
Application granted granted Critical
Publication of CN109669646B publication Critical patent/CN109669646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1285Remote printer device, e.g. being remote from client or server

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application relates to a printing method, a printing device, a computer device and a storage medium. The method comprises the following steps: acquiring a printing task, wherein the printing task carries a printer identifier and first printing data; sending the print task to a cloud server, and storing the printer identifier and the first print data in the cloud server; the printer identifier is used for instructing the cloud server to send the notification information of the printing task to a corresponding network printer; the notification information is used for instructing the network printer to upload the printer type of the network printer to the cloud server, acquiring second printing data from the cloud server, and printing the second printing data; the second printing data is obtained by converting the first printing data by the cloud server according to the printer type. The printing of the first printing data can be realized without installing different printing drivers for different printers, and the printing efficiency is high.

Description

Printing method, printing device, computer equipment and storage medium
Technical Field
The present application relates to the field of printing technologies, and in particular, to a printing method, an apparatus, a computer device, and a storage medium.
Background
People often need to present the document contents in paper form in work, and the document contents need to be printed through a printing device for this purpose. In a traditional printing mode, a printing driver needs to be installed on a terminal and communicates with a printer of a type specified by the printing driver to complete a printing task.
However, the conventional printing method requires a specific printing driver to be installed and connected with a corresponding printer to print, which is complex to operate and low in printing efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a printing method, an apparatus, a computer device, and a storage medium capable of improving printing efficiency in response to the problem of low printing efficiency in the conventional printing method.
A method of printing, the method comprising:
acquiring a printing task, wherein the printing task carries a printer identifier and first printing data;
sending the print task to a cloud server, and storing the printer identifier and the first print data in the cloud server;
the printer identifier is used for instructing the cloud server to send the notification information of the printing task to a corresponding network printer; the notification information is used for instructing the network printer to upload the printer type of the network printer to the cloud server, acquiring second printing data from the cloud server, and printing the second printing data; the second printing data is obtained by converting the first printing data by the cloud server according to the printer type.
In one embodiment, the sending the print job to a cloud server and storing the printer identifier and the first print data in the cloud server includes:
generating bitmap data according to the first printing data;
and sending the print task carrying the printer identifier and the bitmap data to a cloud server, analyzing the bitmap data to generate picture data, and correspondingly storing the picture data and the printer identifier in the cloud server.
A method of printing, the method comprising:
receiving an uploaded printing task and storing the printing task, wherein the printing task carries a printer identifier and first printing data;
generating notification information according to the printing task, and sending the notification information to a network printer corresponding to the printer identifier;
receiving the printer type of the network printer uploaded by the network printer responding to the notification information;
converting the first printing data into corresponding second printing data according to the type of the printer;
and sending the second printing data to the network printer.
In one embodiment, the receiving an uploaded print job and storing the print job, where the print job carries a printer identifier and first print data, includes:
receiving the uploaded printer identification and bitmap data, wherein the bitmap data is generated according to the first printing data;
converting the bitmap data into picture data;
correspondingly storing the printer identification and the picture data;
the converting the first print data into corresponding second print data according to the printer type includes:
and converting the picture data into corresponding second printing data according to the printer type.
In one embodiment, the print job carries a terminal identifier;
the method further comprises the following steps:
merging the printing tasks with the same terminal identification and printer identification;
generating notification information carrying the same terminal identification according to the combined printing tasks;
and sending the notification information carrying the same terminal identifier to the network printer corresponding to the same printer identifier.
In one embodiment, the merging print jobs having the same terminal identifier and printer identifier includes:
and merging the print tasks with the same terminal identification and printer identification received within the preset time.
In one embodiment, the print job also carries a terminal location;
the method further comprises the following steps:
acquiring the position of a network printer corresponding to the printer identifier, and according to the distance between the position of the network printer and the position of the terminal;
and acquiring the receiving time of the printing tasks, and sequencing the printing tasks with the same printer identification according to the distance and the receiving time.
A printing apparatus, the apparatus comprising:
the request receiving module is used for receiving the uploaded printing tasks and storing the printing tasks, and the printing tasks carry printer identifications and first printing data;
the generating module is used for generating notification information according to the printing task;
the notification sending module is used for sending the notification information to the network printer corresponding to the printer identifier;
the type receiving module is used for receiving the printer type of the network printer, which is uploaded by the network printer in response to the notification information;
the conversion module is used for converting the first printing data into corresponding second printing data according to the printer type;
and the data sending module is used for sending the second printing data to the network printer.
A computer device comprising a memory storing a computer program and a processor implementing any of the above method steps when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out any of the above-mentioned method steps.
According to the printing method, the printing device, the computer equipment and the storage medium, the printer identification and the first printing data are uploaded to the cloud server for storage, then the cloud server sends the notification information to the corresponding network printer according to the printer identification, the network printer uploads the printer type of the cloud server according to the notification information, the cloud server converts the first printing data into the second printing data suitable for the network printer corresponding to the printer identification to print according to the printer type, the fact that different printing drivers are not required to be installed for different printers is achieved, printing of the first printing data can be achieved, and printing efficiency is high. Moreover, the terminal does not need to be directly connected with a network printer, and the data to be printed can be printed through the network printer, so that remote printing can be realized.
Drawings
FIG. 1 is a diagram of an application environment of a printing method in one embodiment;
FIG. 2 is a schematic flow chart of a printing method in one embodiment;
FIG. 3 is a schematic flow chart of a printing method in another embodiment;
FIG. 4 is a timing diagram of a printing method in one embodiment;
FIG. 5 is a block diagram showing the configuration of a printing apparatus according to an embodiment;
FIG. 6 is a block diagram showing the construction of a printing apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The printing method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The application environment includes a terminal 102, a cloud server 104, and a network printer. The terminal 102 communicates with the cloud server 104 through a network. The cloud server 104 communicates with the network printer via a network. The cloud print driver is installed on the terminal 102, a print task carrying a printer identifier and first print data is uploaded to the cloud server 104 through the cloud print driver, and the printer identifier and the first print data are stored in the cloud server 104. The cloud server 104 generates notification information, and sends the notification information to the network printer corresponding to the printer identifier, and the network printer uploads the printer type of the network printer to the cloud server 104. The cloud server 104 converts the first print data into corresponding second print data according to the printer type, and sends the second print data to the network printer for printing. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices, and the like. The cloud server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
FIG. 2 is a flow diagram of a printing method in one embodiment. As shown in fig. 2, a printing method, for example, applied to the terminal 102 in fig. 1, includes:
step 202, a print job is obtained, where the print job carries a printer identifier and first print data.
The print job refers to an initiated print request. The printer identification is a character string for uniquely identifying the printer. The character string may include one or more of numbers, letters, and characters. The printer identification may be a printer MAC (Media Access Control Address) Address. The first print data refers to original data to be printed. The original data can be word document, PDF document, picture or web page and other data.
Specifically, a cloud print driver is installed on the terminal. The terminal acquires a printer identifier input by a user on a word document, a PDF document, a picture or a webpage and the like by triggering a printing control to enter a printing configuration interface. The terminal acquires the input printer identification and sends the printer identification and the first printing data to the cloud server.
In addition, the terminal can also obtain printing parameters input by a user on the printing configuration interface, wherein the printing parameters comprise single-sided printing/double-sided printing, the number of pages printed on each version, the number of printed pages, the upper, lower, left and right margins of paper, the paper size (A3, A4 and the like), the paper arrangement (horizontal or vertical) and the like. The terminal also sends the printing parameters to the cloud server.
Step 204, sending the print task to a cloud server, and storing the printer identifier and the first print data in the cloud server; the printer identifier is used for instructing the cloud server to send the notification information of the printing task to a corresponding network printer; the notification information is used for instructing the network printer to upload the printer type of the network printer to the cloud server, acquiring second printing data from the cloud server, and printing the second printing data; the second print data is obtained by converting the first print data by the cloud server according to the printer type.
Wherein the printer type is used to characterize the type of print data that the printer can recognize. The printer types may include a HP printer, a Canon printer, an Epson printer, and the like. Different types of printers can recognize different types of print data. And the cloud server converts the first printing data into second printing data suitable for the network printer to print according to the printer type of the cloud server uploaded by the network printer.
According to the printing method, the printer identification and the first printing data are uploaded to the cloud server to be stored, then the cloud server sends the notification information to the corresponding network printer according to the printer identification, the network printer uploads the printer type of the cloud server according to the notification information, and the cloud server converts the first printing data into the second printing data suitable for the network printer corresponding to the printer identification according to the printer type, so that the first printing data can be printed without installing different printing drivers for different printers, and the printing efficiency is high. Moreover, the terminal does not need to be directly connected with a network printer, and the data to be printed can be printed through the network printer, so that remote printing can be realized.
In one embodiment, sending the print job to a cloud server and storing the printer identification and the first print data at the cloud server comprises: generating bitmap data according to the first printing data; and sending the print task carrying the printer identifier and the bitmap data to a cloud server, analyzing the bitmap data to generate picture data, and correspondingly storing the picture data and the printer identifier in the cloud server.
The cloud printing driver in the terminal analyzes the first printing data to generate bitmap data, and then sends the bitmap data and the printer identifier to the cloud server. And bitmap data is generated according to the first printing data, so that data transmission is facilitated.
The print job is transmitted in the form of a data packet including a header, a data length, a printer identifier, and bitmap data. The data length refers to the length of bitmap data.
In one embodiment, the printing method further includes: acquiring a terminal identifier, and adding the terminal identifier to a printing task; and sending the printing task to the cloud server, and storing the terminal identification, the printer identification and the first printing data in the cloud server. The terminal identification is used for uniquely identifying the terminal. The terminal identification may be a MAC address of the terminal, a terminal device number, or the like. And the terminal identification is added to the printing task uploading cloud server, so that tracking is convenient.
FIG. 3 is a flow chart of a printing method in another embodiment. As shown in fig. 3, a printing method, for example, applied to the cloud server in fig. 1, includes:
step 302, receiving the uploaded print job, and storing the print job, where the print job carries a printer identifier and first print data.
The printer identifier is a character string for uniquely identifying the network printer. The character string may include one or more of numbers, letters, and characters. The printer identification may be a printer MAC address. The first print data refers to original data to be printed. The original data can be word document, PDF document, picture or web page and other data.
Specifically, the cloud server receives the print task uploaded by the terminal, and stores the printer identifier in the print task and the first print data in a corresponding manner.
And step 304, generating notification information according to the print task, and sending the notification information to the network printer corresponding to the printer identifier.
Specifically, the notification information is for notifying the printer of acquiring the print job. And the cloud server generates notification information according to the printing task and sends the notification information to the network printer corresponding to the printer identifier.
Step 306, receiving the printer type of the network printer uploaded by the network printer response notification message.
Wherein the printer type is used to characterize the type of print data that the printer can recognize. The printer types may include a HP printer, a Canon printer, an Epson printer, and the like. Different types of printers can recognize different types of print data.
Specifically, the cloud server receives the printer type uploaded by the network printer response notification information.
Step 308, converting the first print data into corresponding second print data according to the printer type.
Specifically, the cloud server converts the first print data into corresponding second print data according to the printer type, and is suitable for the network printer corresponding to the printer identifier.
Step 310, sending the second print data to the network printer.
Specifically, the cloud server sends the second print data to the network printer for printing.
According to the printing method, the cloud server receives the printing task which is uploaded by the terminal and carries the printer identification and the first printing data, generates the notification information, sends the notification information to the network printer corresponding to the printer identification, receives the printer type uploaded by the network printer, converts the first printing data into the second printing data according to the printer type, and sends the second printing data to the network printer for printing, so that the first printing data can be printed without installing different printing drivers for different printers, and the printing efficiency is high. The terminal does not need to be directly connected with a network printer, and the data to be printed can be printed through the network printer, so that remote printing can be realized.
In one embodiment, the receiving the uploaded print job and storing the print job, the print job carrying a printer identifier and first print data, includes: receiving the uploaded printer identification and bitmap data, wherein the bitmap data is generated according to the first printing data; converting the bitmap data into picture data; and correspondingly storing the printer identification and the picture data.
The converting the first print data into corresponding second print data according to the printer type includes: and converting the picture data into corresponding second printing data according to the printer type.
Specifically, the cloud print driver on the terminal analyzes the first print data to generate bitmap data. And the cloud server receives the printer identification and the bitmap data uploaded by the terminal, converts the bitmap data into picture data, and correspondingly stores the printer identification and the picture data. The bitmap data are converted into the picture data, so that the storage is convenient, and the arrangement is not easy to change.
In one embodiment, the printing method further includes: and when the number of the received printing tasks corresponding to the printer identification reaches the preset number, sending notification information to the network printer corresponding to the printer identification. The preset number is set as required, and the frequency of sending the notification information to the network printer by the cloud server can be reduced by setting the preset number, so that the burden of the cloud server is reduced, and the network resources are saved.
In one embodiment, the printing method further includes: the printing task carries a terminal identification; merging the printing tasks with the same terminal identification and printer identification; generating notification information carrying the same terminal identification according to the combined printing tasks; and sending the notification information carrying the same terminal identifier to the network printer corresponding to the same printer identifier.
Specifically, the terminal identification is used to uniquely identify the terminal. The terminal identification may be a MAC address of the terminal, a terminal device number, or the like. And the cloud server merges the printing tasks with the same terminal identification and printer identification. For example, the terminal identification is 00-FF-AA-BA-CD-2C, the printer identification is 10000, and the printing task is ABC; the terminal is 00-FF-AA-BA-CD-2C, the printer identifier is 10000, and the printing task is BCD; the terminal is 00-FF-AA-BA-CD-2C, the printer identifier is 10000, and the printing task is CDE; the terminal is 00-1F-AA-BA-CD-5B, the printer identifier is 10000, and the printing task is EDF. And merging the printing tasks with the same terminal identification and printer identification, namely merging the printing tasks ABC, BCD and CDE. And then, the notification information carrying the same terminal identification is generated according to the combined printing tasks, so that the number of the notification information is saved, and the printing tasks of the same terminal identification are placed together for printing, thereby improving the printing efficiency.
In one embodiment, the cloud server receives the print tasks with the same printer identifier, acquires the receiving time of each print task, and stores the print tasks with the same printer identifier in a print queue according to the receiving time sequence; and acquiring the terminal identification corresponding to each printing task, and merging the other printing tasks with the same terminal identification to the printing task with the earliest receiving time in the printing tasks with the same terminal identification.
For example, the terminal identifier is 00-FF-AA-BA-CD-2C, the printer identifier is 10000, the printing task is ABC, and the receiving time is 2018, 11, 15, 10 hours, 10 minutes and 10 seconds; the terminal is 00-1F-AA-BA-CD-5B, the printer identifier is 10000, the printing task is EDF, and the receiving time is 2018, 11, 15, 10 hours, 10 minutes and 20 seconds; the terminal is 00-FF-AA-BA-CD-2C, the printer identifier is 10000, the printing task is BCD, and the receiving time is 2018, 11, 15, 10 hours, 10 minutes and 40 seconds; the terminal is 00-FF-AA-BA-CD-2C, the printer identifier is 10000, the printing task is CDE, and the receiving time is 2018, 11 months, 15 days, 10 hours, 11 minutes and 10 seconds. Print job BCD and print job CDE are merged at print job ABC.
By merging the printing tasks with the same terminal identification to the printing task with the earliest receiving time, the printing efficiency of the same terminal identification can be improved, and the problem that the printing tasks initiated by the same terminal identification are more consumed due to the operation time and are sequenced backwards in a printing queue to cause longer waiting time is avoided.
In one embodiment, the merging print jobs having the same terminal identification and printer identification includes: and merging the print tasks with the same terminal identification and printer identification received within the preset time.
Specifically, the preset time may be set as desired, such as 5 minutes, 10 minutes, and the like. The printing tasks with the same terminal identification and printer identification are combined by setting the time range, so that the printing tasks within too long time are prevented from being combined, and the printing efficiency of the printing tasks corresponding to other terminal identifications is reduced.
The cloud server receives the printing tasks with the same printer identification within the preset time, acquires the receiving time of each printing task, and stores the printing tasks with the same printer identification in a printing queue according to the receiving time sequence; and acquiring the terminal identification corresponding to each printing task, and merging the other printing tasks with the same terminal identification to the printing task with the earliest receiving time in the printing tasks with the same terminal identification. The printing tasks with the same terminal identification and printer identification are combined by setting the time range, so that the printing tasks within too long time are prevented from being combined, and the printing efficiency of the printing tasks corresponding to other terminal identifications is reduced.
In one embodiment, the print job also carries the terminal location. The printing method further includes: acquiring the position of the network printer corresponding to the printer identifier, and according to the distance between the position of the network printer and the terminal position; and acquiring the receiving time of the printing tasks, and sequencing the printing tasks with the same printer identification according to the distance and the receiving time.
Specifically, the terminal location refers to the geographic location where the terminal was located when the print job was initiated, such as Shenzhen Futian. The cloud server obtains the position of the network printer and the position of the terminal, calculates the distance between the network printer and the terminal, obtains the receiving time of the printing tasks, and sorts the printing tasks with the same printer identification according to the distance and the receiving time. And configuring a corresponding distance weight value for the distance, configuring a corresponding time weight value for the receiving time, acquiring the sum of the distance weight value and the time weight value, and sequencing the printing tasks with the same printer identification according to the descending or descending of the sum of the distance weight values. The larger the distance is, the larger the corresponding distance weight value is, the earlier the receiving time is, and the larger the corresponding time weight value is. Therefore, the printing tasks with large distance and early receiving time are sequenced at the top, and the printing efficiency of the printing tasks is improved.
FIG. 4 is a timing diagram of a printing method in one embodiment. As in fig. 4, the cloud server includes an access server, a file server, a conversion server, and a notification server. The printing method comprises the following steps:
step 402, the terminal acquires a print task, analyzes first print data in the print task through the cloud print driver, generates bitmap data, and uploads the print task carrying a printer identifier and the bitmap data to the access server.
Step 404, the access server parses the bitmap data to generate a picture, sends the printer identifier and the picture data to the file server, and stores the printer identifier and the picture data in the file server.
In step 406, the access server sends a print job notification to the conversion server.
Wherein, the access server can be a Netty server.
In step 408, the conversion server generates notification information of the printer acquisition task and sends the notification information to the notification server.
Wherein, the conversion server may be a Tomcat server.
In step 410, the notification server sends the notification information to the network printer corresponding to the printer identifier.
In step 412, the network printer uploads the printer type to the conversion server after receiving the notification message.
And step 414, the conversion server acquires the picture data of the corresponding printing task from the file server according to the printer type, converts the picture data into second printing data corresponding to the printer type, and sends the second printing data to the network printer.
In step 416, the network printer receives the second print data to print.
According to the printing method, the access server receives a printing task which is uploaded by the terminal and carries printer identification and bitmap data, the bitmap data are converted into picture data, the printer identification and the picture data are sent to the file server to be stored, the printing task is generated to be notified to the conversion server, the conversion server generates notification information to be notified to the notification server, the notification server sends the notification information to the network printer, the network printer uploads the printer type according to the notification information, the conversion server converts the picture data into second printing data according to the printer type, the second printing data are sent to the network printer to be printed, the effect that printing of the first printing data can be achieved without installing different printing drivers for different printers is achieved, and printing efficiency is high. The terminal does not need to be directly connected with a network printer, and the data to be printed can be printed through the network printer, so that remote printing can be realized. The picture data are stored through the file server, and the storage space is saved. The conversion server is used for converting the picture data, the conversion efficiency is improved, corresponding functions are completed through different server configurations, the burden of a single server is reduced, and the operation efficiency is improved.
It should be understood that, although the steps in the flowcharts of fig. 2 to 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
FIG. 5 is a block diagram showing the configuration of a printing apparatus according to an embodiment. As shown in fig. 5, a printing apparatus includes a request receiving module 502, a generating module 504, a notification transmitting module 506, a type receiving module 508, a converting module 510, and a data transmitting module 512.
The request receiving module 502 is configured to receive the uploaded print job, and store the print job, where the print job carries a printer identifier and first print data.
The generating module 504 is configured to generate notification information according to the print job.
The notification sending module 506 is configured to send the notification information to the network printer corresponding to the printer identifier.
The type receiving module 508 is used for receiving the printer type of the network printer in response to the notification information.
The conversion module 510 is configured to convert the first print data into corresponding second print data according to the printer type.
The data sending module 512 is configured to send the second print data to the network printer.
Above-mentioned printing device, cloud server receives the print task who carries printer identification and first print data that the terminal uploaded, generate notice information, send the network printer that corresponds for this printer identification, receive the printer type that this network printer uploaded, turn into the second print data with first print data according to the printer type, send the second print data to the network printer and print, realized not needing to install different print drive to different printers, can realize the printing of first print data, print efficiently. The terminal does not need to be directly connected with a network printer, and the data to be printed can be printed through the network printer, so that remote printing can be realized.
The request receiving module 502 is further configured to receive the uploaded printer identifier and bitmap data, where the bitmap data is generated according to the first print data.
In one embodiment, the printing apparatus further includes: the notification sending module 506 is further configured to send notification information to the network printer corresponding to the printer identifier when the number of received print jobs corresponding to the printer identifier reaches a preset number. The preset number is set as required, and the frequency of sending the notification information to the network printer by the cloud server can be reduced by setting the preset number, so that the burden of the cloud server is reduced, and the network resources are saved.
The printing device further comprises a storage module and a combining module.
The conversion module 510 is further configured to convert the bitmap data into picture data.
And the storage module is used for correspondingly storing the printer identification and the picture data.
The conversion module 510 is further configured to convert the picture data into corresponding second print data according to the printer type.
In one embodiment, the print job carries a terminal identification.
The merging module is used for merging the printing tasks with the same terminal identification and printer identification.
The generating module 504 is configured to generate notification information carrying the same terminal identifier according to the merged print job.
The notification sending module 506 is further configured to send the notification information carrying the same terminal identifier to the network printer corresponding to the same printer identifier.
In one embodiment, the merging module is further configured to merge print jobs having the same terminal identifier and printer identifier received within a preset time.
In one embodiment, the merging module is further configured to receive print jobs with the same printer identifier, obtain the receiving time of each print job, and store the print jobs with the same printer identifier in the print queue according to the receiving time sequence; and acquiring the terminal identification corresponding to each printing task, and merging the other printing tasks with the same terminal identification to the printing task with the earliest receiving time in the printing tasks with the same terminal identification.
In one embodiment, the print job also carries the terminal location. The printing device further comprises a distance calculation module and a sequencing module.
The distance calculation module is used for acquiring the position of the network printer corresponding to the printer identifier and calculating the distance between the position of the network printer and the position of the terminal;
and the sequencing module is used for acquiring the receiving time of the printing tasks and sequencing the printing tasks with the same printer identification according to the distance and the receiving time.
Fig. 6 is a block diagram showing the configuration of a printing apparatus in another embodiment. As shown in fig. 6, the printing apparatus includes a job acquisition module 602 and a job transmission module 604.
The job obtaining module 602 is configured to obtain a print job, where the print job carries a printer identifier and first print data.
The task sending module 604 is configured to send the print task to a cloud server, and store the printer identifier and the first print data in the cloud server.
The printer identifier is used for indicating the cloud server to send the notification information of the printing task to a corresponding network printer; the notification information is used for instructing the network printer to upload the printer type of the network printer to the cloud server, acquiring second printing data from the cloud server, and printing the second printing data; the second printing data is obtained by converting the first printing data by the cloud server according to the printer type.
The printing apparatus also includes a bitmap generation module. And the bitmap generation module is used for generating bitmap data according to the first printing data.
The task sending module 604 is further configured to send the print task carrying the printer identifier and the bitmap data to a cloud server, so that the cloud server analyzes the bitmap data to generate picture data, and correspondingly stores the picture data and the printer identifier in the cloud server.
In one embodiment, the printing apparatus further includes: the task sending module is further used for obtaining the terminal identification, adding the terminal identification to the printing task, sending the printing task to the cloud server, and storing the terminal identification, the printer identification and the first printing data in the cloud server. The terminal identification is used for uniquely identifying the terminal.
For specific limitations of the printing apparatus, reference may be made to the above limitations of the printing method, which are not described herein again. The respective modules in the above-described printing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a printing method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the printing method of fig. 2 described above when executing the computer program. The computer device may be a terminal.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the printing method of fig. 3 described above when executing the computer program. The computer device may be a cloud server.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the above-mentioned printing method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of printing, the method comprising:
acquiring a printing task, wherein the printing task carries a terminal position, a printer identifier and first printing data;
sending the printing task to a cloud server, and storing the terminal position, the printer identifier and the first printing data in the cloud server; the cloud server is used for acquiring the position of the network printer corresponding to the printer identifier, calculating the distance between the position of the network printer and the terminal position, acquiring the receiving time of the printing tasks, and sequencing the printing tasks with the same printer identifier according to the distance and the receiving time;
the printer identifier is used for instructing the cloud server to send the notification information of the printing task to a corresponding network printer; the notification information is used for instructing the network printer to upload the printer type of the network printer to the cloud server, acquiring second printing data from the cloud server, and printing the second printing data; the second printing data is obtained by converting the first printing data by the cloud server according to the printer type.
2. The method of claim 1, wherein sending the print job to a cloud server and storing the terminal location, printer identification, and first print data at the cloud server comprises:
generating bitmap data according to the first printing data;
and sending the print task carrying the terminal position, the printer identifier and the bitmap data to a cloud server, analyzing the bitmap data to generate picture data, and correspondingly storing the terminal position, the picture data and the printer identifier in the cloud server.
3. A method of printing, the method comprising:
receiving an uploaded printing task and storing the printing task, wherein the printing task carries a terminal position, a printer identifier and first printing data;
acquiring the position of the network printer corresponding to the printer identifier, and calculating the distance between the position of the network printer and the position of the terminal;
acquiring the receiving time of the printing tasks, and sequencing the printing tasks with the same printer identification according to the distance and the receiving time;
generating notification information according to the printing task, and sending the notification information to a network printer corresponding to the printer identifier;
receiving the printer type of the network printer uploaded by the network printer responding to the notification information;
converting the first printing data into corresponding second printing data according to the type of the printer;
and sending the second printing data to the network printer.
4. The method of claim 3, wherein receiving the uploaded print job and storing the print job comprises:
receiving the uploaded terminal position, printer identification and bitmap data, wherein the bitmap data are generated according to the first printing data;
converting the bitmap data into picture data;
correspondingly storing the terminal position, the printer identification and the picture data;
the converting the first print data into corresponding second print data according to the printer type includes:
and converting the picture data into corresponding second printing data according to the printer type.
5. The method of claim 3, wherein the print job carries a terminal identification;
the method further comprises the following steps:
merging the printing tasks with the same terminal identification and the same printer identification;
generating notification information carrying the same terminal identification according to the combined printing tasks;
and sending the notification information carrying the same terminal identifier to the network printer corresponding to the same printer identifier.
6. The method of claim 5, wherein merging print jobs having the same terminal identification and the same printer identification comprises:
and merging the print tasks with the same terminal identification and the same printer identification received within the preset time.
7. A printing apparatus, characterized in that the apparatus comprises:
the request receiving module is used for receiving the uploaded printing tasks and storing the printing tasks, wherein the printing tasks carry terminal positions, printer identifications and first printing data;
the distance calculation module is used for acquiring the position of the network printer corresponding to the printer identifier and calculating the distance between the position of the network printer and the position of the terminal;
the sequencing module is used for acquiring the receiving time of the printing tasks and sequencing the printing tasks with the same printer identification according to the distance and the receiving time;
the generating module is used for generating notification information according to the printing task;
the notification sending module is used for sending the notification information to the network printer corresponding to the printer identifier;
the type receiving module is used for receiving the printer type of the network printer, which is uploaded by the network printer in response to the notification information;
the conversion module is used for converting the first printing data into corresponding second printing data according to the printer type;
and the data sending module is used for sending the second printing data to the network printer.
8. The apparatus of claim 7, wherein the request receiving module is further configured to receive an uploaded terminal location, a printer identifier, and bitmap data, the bitmap data being generated according to the first print data;
the conversion module is also used for converting the bitmap data into picture data;
the device further comprises:
the storage module is used for correspondingly storing the terminal position, the printer identification and the picture data;
the conversion module is further used for converting the picture data into corresponding second printing data according to the printer type.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201811383341.6A 2018-11-20 2018-11-20 Printing method, printing device, computer equipment and storage medium Active CN109669646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811383341.6A CN109669646B (en) 2018-11-20 2018-11-20 Printing method, printing device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811383341.6A CN109669646B (en) 2018-11-20 2018-11-20 Printing method, printing device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109669646A CN109669646A (en) 2019-04-23
CN109669646B true CN109669646B (en) 2022-04-29

Family

ID=66142576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811383341.6A Active CN109669646B (en) 2018-11-20 2018-11-20 Printing method, printing device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109669646B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552611A (en) * 2020-04-17 2020-08-18 南阳柯丽尔科技有限公司 Printer state monitoring method and device, computer equipment and storage medium
CN113190190B (en) * 2021-05-25 2024-03-29 西安雷风电子科技有限公司 Printer setting modification method, device and system
CN113312014B (en) * 2021-06-04 2024-03-22 上海汉图科技有限公司 Printing method and device
CN113741831A (en) * 2021-09-07 2021-12-03 苏州博瑞凯德信息技术有限公司 Intelligent printing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367425A (en) * 2000-12-15 2002-09-04 佳能株式会社 Printing on internet
CN101807139A (en) * 2009-02-17 2010-08-18 鸿富锦精密工业(深圳)有限公司 Printing system and printing method thereof
CN104636092A (en) * 2014-12-30 2015-05-20 珠海赛纳打印科技股份有限公司 Image forming control system and method
CN106201377A (en) * 2016-07-05 2016-12-07 深圳市印点点科技有限公司 Multi-platform intelligent cloud print system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367425A (en) * 2000-12-15 2002-09-04 佳能株式会社 Printing on internet
CN101807139A (en) * 2009-02-17 2010-08-18 鸿富锦精密工业(深圳)有限公司 Printing system and printing method thereof
CN104636092A (en) * 2014-12-30 2015-05-20 珠海赛纳打印科技股份有限公司 Image forming control system and method
CN106201377A (en) * 2016-07-05 2016-12-07 深圳市印点点科技有限公司 Multi-platform intelligent cloud print system

Also Published As

Publication number Publication date
CN109669646A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN109669646B (en) Printing method, printing device, computer equipment and storage medium
US9116651B2 (en) Image processing apparatus, control method, and recording medium storing computer program for image processing
CN108491367B (en) Report document generation method and device, computer equipment and storage medium
US7538896B2 (en) Data processing device generating print jobs in PDL and BMI formats
CN109542366B (en) Printing method, device, equipment and storage medium based on browser
US9250846B2 (en) Print service providing apparatus that supplies conversion data and printing system including the same
US9560116B2 (en) Network device, system, method, and storage medium
US9639304B2 (en) Data supplying device and image processing system
US8472054B2 (en) Information distribution apparatus, information distribution method, and computer program for distributing a setting value of a program based on a condition
US8760699B2 (en) Printing system, printing control method for printing system, printing apparatus and server
CN103019630A (en) Printing system, printing apparatus, printing method
CN111242167B (en) Distributed image labeling method, device, computer equipment and storage medium
US20040184067A1 (en) Image forming system
CN115473969A (en) Method and device for scanning file, computer equipment and storage medium
US10521161B2 (en) Information processing device, communication system, and recording medium storing instructions
US10268429B2 (en) Device and method for managing printer based on time-related deletion condition
CN107038006B (en) Self-service printing method and device
US9557945B2 (en) Information processing system, print system, server apparatus, and method for controlling information processing system
US10514871B2 (en) Print management method and print management apparatus
CN111176587A (en) Remote printing method and system
US8279468B2 (en) Printing device and network printing system
US9436417B1 (en) Printing system capable of printing in any one of plural image forming apparatuses over network, image forming apparatus, and printing method
JP2013168803A (en) Information processing device, information processing method, and program
JP2019207461A (en) Information processing device, control method thereof, and program
US9146700B2 (en) Information processing system having image forming apparatus capable of controlling print data obtainment timing, control method therefor, and storage medium

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