CN102799399B - Network printing method and the network printer - Google Patents

Network printing method and the network printer Download PDF

Info

Publication number
CN102799399B
CN102799399B CN201210227405.XA CN201210227405A CN102799399B CN 102799399 B CN102799399 B CN 102799399B CN 201210227405 A CN201210227405 A CN 201210227405A CN 102799399 B CN102799399 B CN 102799399B
Authority
CN
China
Prior art keywords
print out
out task
priority value
nominal
priority
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
CN201210227405.XA
Other languages
Chinese (zh)
Other versions
CN102799399A (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.)
Poly Polytron Technologies Inc
Original Assignee
Qingdao Hisense Media Network Technology 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201210227405.XA priority Critical patent/CN102799399B/en
Publication of CN102799399A publication Critical patent/CN102799399A/en
Application granted granted Critical
Publication of CN102799399B publication Critical patent/CN102799399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a kind of network printing method and the network printer.Described network printing method comprises: receive the print out task carrying precedence information that each computing machine sends, print successively after storage according to reception order; According to the print out task amount that the time cycle statistics pre-set stores, when the print out task amount stored exceedes the threshold value pre-set, calculate the nominal priority value of the print out task stored; Send printing control information to each computing machine, carry nominal priority value information, send to make each computing machine of reception printing control information the print out task being not less than nominal priority value to the network printer.Application the application, can improve the printing effect of the high print out task of requirement of real-time.

Description

Network printing method and the network printer
Technical field
The present invention relates to network printing technology, particularly relate to a kind of network printing method and the network printer.
Background technology
In modern enterprise office, normally multiple computing machine forms a LAN (Local Area Network), multiple computing machines in LAN (Local Area Network) share that use one is large-scale, the network printer at a high speed, print out task and data can be sent to network printer port by LAN (Local Area Network) by every platform computing machine, and the network printer performs printing successively according to the printer task sequencing received.
The network printing method of this printer sharing, can printer sharing resource, be reduced to the cost of every platform allocation of computer printer, but also there is obvious defect, such as, real time print business due to a lot of enterprise had within one day the obvious period concentrate feature, and the time point concentrated is not fixed very much, such as, today be afternoon 2-3 point very busy, tomorrow may be again the morning 10-11 point busy especially, thus, when print service is busy, the ticket printing task be not only closely related with real-time can be very many, and, the print out task that those and real-time relevance are not strong, as weekly return, month form, the print out task such as work attendance form, still can be sent to the network printer continuously by computing machine, network blockage and network printer buffer memory is caused to overflow, even cause network printer operational efficiency to decline even to crash, the business ticket printing task making requirement of real-time high can not be performed well timely, printing effect is low.
In order to solve the technical matters that the high print out task of above-mentioned requirement of real-time can not obtain performing in time well, prior art proposes a kind of network printing method of improvement, specifically, print out task, according to the demand of real-time, is carried out priority division, such as by computing machine, be divided into 5 priority, computing machine is when sending print out task, and the print out task that preferential transmission priority is high, the network printer prints according to the print out task order received.
From above-mentioned, existing network printing method, prioritization is carried out according to oneself current existing print out task respectively by each computing machine, but, because the number of computers be connected with the network printer is numerous, and each computing machine divides printing priority according to the real-time demand of self, thus, the priority of a print out task (being such as 3) may be caused, first computing machine is relatively the high print out task of priority (such as, in this computing machine, other print out task priority major part is 1 and 2), but for second computer, the lower print out task of priority may be belonged to (such as, in this computing machine, other print out task priority major part is 4 and 5), this print out task that will even if second computer caused to have very many high priorities, the print out task of the lower priority that also can only send with the first computing machine fights for network printer resource, the printing effect of the print out task making requirement of real-time high is still lower.
Summary of the invention
Embodiments of the invention provide a kind of network printing method, improve the printing effect of the high print out task of requirement of real-time.
Embodiments of the invention also provide a kind of network printer, improve the printing effect of the high print out task of requirement of real-time.
For achieving the above object, a kind of network printing method that the embodiment of the present invention provides, comprising:
Receive the print out task carrying precedence information that each computing machine sends, print successively according to reception order after storage;
According to the print out task amount that the time cycle statistics pre-set stores, when the print out task amount stored exceedes the threshold value pre-set, calculate the nominal priority value of the print out task stored;
Send the printing control information of carrying nominal priority value information to each computing machine, make each computing machine of reception printing control information send the print out task being not less than nominal priority value to the network printer.
The described nominal priority value calculating the print out task stored comprises:
Obtain the priority value of each print out task stored;
Calculate the priority value of each print out task and, be divided by with print out task number, obtain nominal priority value.
The described nominal priority value calculating the print out task stored comprises:
Pre-set the priority factors that each priority value is corresponding, the priority factors sum that each priority value is corresponding is 1;
Obtain the priority value of each print out task stored, calculate each priority value and the product of corresponding priority factors, then sue for peace, obtain nominal priority value summation;
Calculate the priority factors sum that the priority value of each print out task is corresponding, obtain nominal priority factors summation;
Calculate the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
The computing formula of described nominal priority value summation is:
Φ = Σ j = 1 m A j
In formula,
Φ is nominal priority value summation;
A jfor the priority value of print out task j
M is print out task number.
Described nominal priority factors summation computing formula is:
Ψ = Σ j = 1 m ξ j
In formula,
ψ is nominal priority factors summation;
ξ jfor the priority value A of print out task j jcorresponding priority factors.
Described after carrying the printing control information step of nominal priority value information to each computing machine transmission, with make each computing machine of reception printing control information to the network printer send be not less than the step of the print out task of nominal priority value before, comprise further:
Computing machine receives printing control information, judges whether current transmission is in idle condition:
If so, the print out task being not less than nominal priority value to network printer transmission is performed;
If not, judge whether the nominal priority value carried in the printing control information received is not less than in a printing control information the nominal priority value carried, if, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried, if not, continue the queue of traversal print out task, the nominal priority value information of carrying in the printing control information received according to upper sends, after being sent, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried.
Described computing machine sends to the network printer print out task being not less than nominal priority value and comprises:
Within the time cycle pre-set, computing machine judges one by one to the print out task in this side print out task queue, if the priority value of this print out task is not less than described nominal priority value, then send this print out task, otherwise, skip this print out task, proceed the judgement of next print out task.
Print successively according to reception order after described storage and comprise:
In advance a print out task queue is set in the memory block of the network printer, and by print out task that each computing machine received sends, according to the principle of first-in first-out, leave in this print out task queue temporarily, then, network printer order reads the print out task in print out task queue, and performs printing.
Described print out task amount comprise print out task number and/or, data volume, corresponding, the threshold value pre-set comprises number threshold value and data-quantity threshold.
Described print out task amount comprises print out task number and data volume, and the print out task amount of described storage exceedes the threshold value pre-set and comprises:
The print job data amount stored exceed the data-quantity threshold that pre-sets and, the print out task number of storage exceedes the number threshold value pre-set.
Comprise further:
When the print out task amount stored does not exceed the threshold value pre-set, continue to wait for that the next time cycle carries out adding up the flow process of the print out task amount stored.
Comprise further:
The time cycle pre-set then, if computing machine do not receive the network printer send printing control information, sequentially send the print out task in this side print out task queue.
A kind of network printer, this network printer comprises: print module, monitoring modular and sending module, wherein,
Print module, for receiving the print out task carrying precedence information that each computing machine sends, prints according to reception order after storage successively;
Monitoring modular, for monitoring according to the time cycle pre-set and adding up the print out task amount stored, when the print out task amount stored exceedes the threshold value pre-set, calculates the nominal priority value of the print out task stored;
Sending module, for sending printing control information to each computing machine, carries nominal priority value information, sends to make each computing machine of reception printing control information the print out task being not less than nominal priority value to print module.
Described monitoring modular comprises: print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit, wherein,
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for calculate the priority value of each print out task and, be divided by with print out task number, obtain nominal priority value.
Described monitoring modular comprises: priority factors setting unit, print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit, wherein,
Priority factors setting unit, for pre-setting priority factors corresponding to each priority value, the priority factors sum that each priority value is corresponding is 1;
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for obtaining the priority value of each print out task of storage, calculating each priority value and the product of corresponding priority factors, then suing for peace, obtain nominal priority value summation; Calculate the priority factors sum that the priority value of each print out task is corresponding, obtain nominal priority factors summation; Calculate the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
As seen from the above technical solution, a kind of network printing method that the embodiment of the present invention provides and the network printer, receive the print out task carrying precedence information that each computing machine sends, print successively after storage according to reception order; According to the print out task amount that the time cycle statistics pre-set stores, when the print out task amount stored exceedes the threshold value pre-set, calculate the nominal priority value of the print out task stored; Send printing control information to each computing machine, carry nominal priority value information, send to make each computing machine of reception printing control information the print out task being not less than nominal priority value to the network printer.Like this, the network printer is when the print out task amount stored exceedes the threshold value pre-set, calculate the nominal priority value of each print out task, computer for controlling sends the print out task being not less than nominal priority value, ensure that the printing effect of the print out task that requirement of real-time is high.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below.Apparently, the accompanying drawing in below describing is only some embodiments of the present invention, for those of ordinary skills, can also obtain other embodiment and accompanying drawing thereof according to these accompanying drawing illustrated embodiments.
Fig. 1 is the network printing method flow schematic diagram of the embodiment of the present invention.
Fig. 2 is the method flow schematic diagram that embodiment of the present invention network printing pusher side realizes network printing.
Fig. 3 is the method flow schematic diagram that embodiment of the present invention computer-side realizes network printing.
Fig. 4 is certain computing machine self print out task queue schematic diagram before receiving result of calculation.
Fig. 5 is print out task queue schematic diagram after embodiment of the present invention execution filtration transmit mechanism a period of time.
Fig. 6 is the network printer structural representation of the embodiment of the present invention.
Embodiment
Carry out clear, complete description below with reference to accompanying drawing to the technical scheme of various embodiments of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, other embodiments all that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belong to the scope that the present invention protects.
Existing network printing method, each computing machine is according to the demand of real-time, print out task is carried out priority division respectively, and the print out task that preferential transmission priority is high, the network printer prints according to the print out task order received, the print out task priority that different computing machine is sent may be different, thus cause print out task that some computing machine priority are high and the low print out task of other computing machine priority to fight for network printer resource, reduce the printing effect of the high print out task of requirement of real-time; Further, each computing machine sends print out task according to the priority, do not alleviate the data volume being sent to the network printer, still can cause the technical matters that network blockage and network printer buffer memory overflow, and then cause network printer operational efficiency to decline, thus have impact on the printing effect of the high print out task of requirement of real-time further.
In the embodiment of the present invention, consider between the network printer and computing machine, set up a kind of communication-cooperation mechanism, by the network printer, the print out task received is managed, when print out task is comparatively busy, printing control information is sent to each computing machine, carry precedence information, each computing machine, after receiving printing control information, only sends the print out task higher than printing control information medium priority information to the network printer.Like this, the print out task priority that each computing machine sends is close, and the print out task avoiding priority high and the low print out task of priority fight for network printer resource, ensure that the printing effect of the print out task that requirement of real-time is high simultaneously.
Fig. 1 is the network printing method flow schematic diagram of the embodiment of the present invention.See Fig. 1, this flow process comprises:
Step 101, receives the print out task carrying precedence information that each computing machine sends, prints successively after storage according to reception order;
In this step, print successively according to reception order after storage and comprise:
In advance a print out task queue is set in the memory block of the network printer, and by print out task that each computing machine received sends, according to the principle of first-in first-out, leave in this print out task queue temporarily, then, network printer order reads the print out task in print out task queue, and performs printing.
Unlike the prior art, each computing machine, when sending print out task, also carries the precedence information of this print out task, controls the print out task that computing machine sends for the network printer of the present invention is follow-up.
Be the print out task to be printed received due to what show in the print out task queue of the network printer, therefore, the number of the print out task accumulated in print out task queue or data volume, reflect the relative capacity of the current execution print out task of the network printer.
Step 102, the print out task amount stored according to the time cycle statistics pre-set, when the print out task amount stored exceedes the threshold value pre-set, calculates the nominal priority value of the print out task stored;
In this step, print out task amount comprise print out task number and/or, data volume, corresponding, the threshold value pre-set comprises number threshold value and data-quantity threshold.If print out task amount exceedes the threshold value pre-set, show that in the network printer, unenforced print out task is more, the print out task quantity needing computer for controlling to send, to avoid the buffer memory of network blockage and the queue of storage networking printer print out task to overflow.
If print out task amount only includes print out task number, then judge whether the print out task number stored exceedes the number threshold value pre-set, if so, trigger the nominal priority value performing and calculate the print out task stored;
If print out task amount only includes print job data amount, then judge whether the print job data amount stored exceedes the data-quantity threshold pre-set, if so, trigger the nominal priority value performing and calculate the print out task stored;
If print out task amount comprises print out task number and data volume, then exceed the data-quantity threshold that pre-sets in the print job data amount stored and, when the print out task number stored exceedes the number threshold value pre-set, trigger the nominal priority value performing and calculate the print out task stored, otherwise, do not deal with.
In the embodiment of the present invention, by arranging monitoring modular on the network printer, print out task number in print out task queue on the periodic monitor network printer and/or, data volume, when print out task number and/or, when data volume reaches the threshold value pre-set, start and calculate, to control the print out task that subsequent calculations machine sends printing the nominal priority of each print out task in task queue.
The nominal priority value calculating the print out task stored can be:
A01, obtains the priority value of each print out task stored;
A02, calculate the priority value of each print out task and, be divided by with print out task number, obtain nominal priority value.
In this step, if the priority value of print out task j is A j, then the computing formula of nominal priority value is:
Γ = Σ j = 1 m A j m
In formula,
Γ is nominal priority value;
M is print out task number.
Certainly, in practical application, other modes also can be adopted to calculate nominal priority value, and the nominal priority value namely calculating the print out task of storage also can be:
A11, pre-sets the priority factors that each priority value is corresponding, and the priority factors sum that each priority value is corresponding is 1;
In this step, such as, for the priority value being according to priority just sequentially 5,4,3,2,1, the priority factors that can arrange priority value 5 and 4 corresponding is respectively 0.3, the priority factors of priority value 3 correspondence is 0.2, and the priority factors that priority value 2 and 1 is corresponding is respectively 0.1.Certainly, other priority factors that each priority value is corresponding also can be set, as long as priority factors sum corresponding to each priority value is 1.
Priority factors corresponding for each priority value is normalized, by itself and be set to 1, be the convenience considering subsequent calculations.
In this step, setting priority value A icorresponding priority factors is ξ i, then:
Σ i = 1 k ξ i = 1
In formula, k is priority level number.
A12, obtains the priority value of each print out task stored, calculates each priority value and the product of corresponding priority factors, then sue for peace, obtain nominal priority value summation;
In this step, the computing formula of nominal priority value summation is:
Φ = Σ j = 1 m A j
In formula,
Φ is nominal priority value summation.
A13, calculates the priority factors sum that the priority value of each print out task is corresponding, obtains nominal priority factors summation;
In this step, nominal priority factors summation computing formula is:
ψ = Σ j = 1 m ξ j
In formula,
ψ is nominal priority factors summation;
ξ jfor the priority value A of print out task j jcorresponding priority factors.
A14, calculates the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
In this step, nominal priority value Γ computing formula is:
Γ = Φ Ψ
Preferably, the method also comprises:
When the print out task amount stored does not exceed the threshold value pre-set, continue to wait for that the next time cycle carries out adding up the flow process of the print out task amount stored.
In practical application, be not the situation of integer for the nominal priority value calculated, can carry out rounding process.
Step 103, sends printing control information to each computing machine, carries nominal priority value information, sends to make each computing machine of reception printing control information the print out task being not less than nominal priority value to the network printer.
In this step, the each computing machine be connected with the network printer in LAN (Local Area Network) is after receiving the printing control information that the network printer sends, within the ensuing time cycle, change the strategy sending print out task, start filtering transmissions mechanism, only send the print out task higher than nominal priority value to the network printer, and after sending the print out task higher than nominal priority value, no longer send the print out task that other do not send, to reduce the bandwidth resources of transfer printing task, avoid overflowing of network printer buffer memory.Namely the print out task that computing machine is not less than nominal priority value to network printer transmission comprises:
Within the time cycle pre-set, computing machine judges one by one to the print out task in this side print out task queue, if the priority value of this print out task is not less than described nominal priority value, then send this print out task, otherwise, skip this print out task, proceed the judgement of next print out task.That is, priority value is not less than to the print out task of nominal priority value, normally sends to the network printer, for the print out task of priority value lower than nominal priority value, skip and wouldn't send, and judge whether next print out task can normally send.
In practical application, computing machine, when receiving printing control information, may exist in upper a period of time, and the nominal priority value information of carrying in the printing control information received according to upper sends, the print out task do not sent in addition.Like this, printing control information is being sent to each computing machine, after carrying the step of nominal priority value information, with make each computing machine of reception printing control information to the network printer send be not less than the step of the print out task of nominal priority value before, comprise further:
Computing machine receives printing control information, judges whether current transmission is in idle condition:
If so, the print out task being not less than nominal priority value to network printer transmission is performed;
If not, judge whether the nominal priority value carried in the printing control information received is not less than in a printing control information the nominal priority value carried, if, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried, if not, continue the queue of traversal print out task, the nominal priority value information of carrying in the printing control information received according to upper sends, after being sent, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried.
In this step, if computing machine is within the time cycle pre-set, the print out task being not less than described nominal priority value in print out task queue is sent, then represents that current transmission is in idle condition.
When current transmission is not in idle condition, if current nominal priority value (the nominal priority value carried in the printing control information of current reception) is not less than a nominal priority value, show that network printing pusher side print out task amount is more, also need the print out task amount suitably reducing computer-side transmission, then computing machine stops sending according to a upper nominal priority value information, adopt more strict sending strategy, again start anew scanning and printing task queue, and send the print out task being not less than current nominal priority value to the network printer; And if current nominal priority value is less than a nominal priority value, show that network printing pusher side print out task amount is less, suitably can increase the print out task amount that computer-side sends, then computing machine is in order to ensure that the print out task of high priority preferentially sends, continue the remaining print out task queue of scanning, and send print out task according to a upper nominal priority value information, after being sent, again travel through print out task queue again, send the print out task being not less than current nominal priority value to the network printer.
Preferably, the method can further include:
The time cycle pre-set then, if computing machine do not receive the network printer send printing control information, sequentially send the print out task in this side print out task queue.
In this step, if computing machine the time cycle pre-set then, also do not receive the printing control information that the network printer sends, show in the print out task queue of the network printer, there is no too many print out task, unenforced print out task is less, then above-mentioned filtering type transmission print out task can be reverted to and send print out task in the normal order.
From above-mentioned, the network printing method of the embodiment of the present invention, by the print out task amount stored according to the time cycle statistics pre-set, when the print out task amount stored exceedes the threshold value pre-set, calculates the nominal priority value of the print out task stored; And sending nominal priority value information to each computing machine, computer for controlling sends the print out task being not less than the nominal priority value of reception to the network printer.Like this, computing machine is after sending the print out task higher than nominal priority value, no longer send the print out task that other do not send, effectively can reduce the bandwidth resources of transfer printing task, avoid and continue to send the network blockage that causes of print out task, decrease the spatial cache that the network printer carries out needed for buffer memory, simultaneously, print out task is sent according to the nominal priority value received by each computing machine, like this, if the print out task number of high priority is less in computing machine, the print out task number sent is also less, if and the print out task number of high priority is more in computing machine, the print out task number then sent is also more, avoid in each computing machine because the print out task number of different priorities is different, each computing machine is made to be sent to the print out task of the network printer by the priority of existing print out task, its priority may differ larger, the phenomenon that the print out task needs causing priority high and the low print out task of priority fight for network printer resource occurs, the priority of the print out task that the network printer is received is all higher, ensure that the printing effect of the print out task that requirement of real-time is high.
Below again from network printing pusher side and computer-side, the network printing method of the embodiment of the present invention is described in detail.
Fig. 2 is the method flow schematic diagram that embodiment of the present invention network printing pusher side realizes network printing.See Fig. 2, this flow process comprises:
Step 201, the print out task number in the queue of network printer periodic statistical print out task, compares with the threshold value preset;
In this step, regularly refer to the time cycle of setting, default threshold value is number threshold value.
In print out task queue, if print out task is printed, then automatically deleted from print out task queue by this print out task, thus, the print out task in print out task queue is all the print out task of untreated (printing).
Step 202, judges the threshold value whether print out task number reaches default, if so, performs step 203, otherwise, return and perform step 201;
This step for each computing machine of controlling to be connected with the network printer the need of the print out task number slowing down transmission.
Step 203, the network printer extracts the priority value of each print out task in print out task queue, calculates average priority value, sends it to computing machine.
In this step, adopt the method for average computation, using the average priority value that calculates as nominal priority value.
After average priority value is sent to each computing machine, return and perform step 201, so circulate, until the announcement information that the print out task receiving the transmission of each computing machine has been sent, terminate the flow process of this network printing.
Fig. 3 is the method flow schematic diagram that embodiment of the present invention computer-side realizes network printing.See Fig. 3, this flow process comprises:
Step 301, computing machine regularly judges whether the average priority value information receiving network printer transmission, if so, performs step 302, otherwise, perform step 303;
In this step, computing machine needs, according to the average priority value information received, to adjust current sending strategy.
Step 302, computing machine, according to the sequencing of print out task in print out task queue, sends print out task to the network printer one by one;
In this step, in computing machine, be provided with print out task queue, for the buffer memory print out task carrying out printing to the network printer to be sent.
Continue send print out task a period of time, the time cycle pre-set then, return perform step 301.
Step 303, computing machine reads the priority value of first bar print out task in print out task queue;
Step 304, judges that whether the priority value of this print out task is higher than average priority value, if so, performs step 305, otherwise, perform step 306;
In this step, the priority value of print out task is higher, shows that its priority level is higher, needs priority processing.
Step 305, sends first bar print out task to the network printer, after being sent, performs step 307;
Step 306, skips this first bar print out task, performs step 307;
Step 307, reads the priority value of next print out task, returns and performs step 304.
Lift a specific embodiment below, then the invention will be further described.
Embodiment:
Suppose that certain network printer is once monitored the print out task queue of self for every 5 minutes, the network printer at a time finds during printing task queue monitoring, print out task number to be printed is 76, higher than the threshold value 50 preset, so extract the priority value of each bar print out task in print out task queue, be averaged calculating, and obtaining average priority value result is 3, sends to each computing machine in LAN (Local Area Network) after this result of calculation being encapsulated.
Fig. 4 is certain computing machine self print out task queue schematic diagram before receiving result of calculation.As shown in Figure 4, the some time of this computing machine before receiving result of calculation is carved with a print out task and sends messaging list (print out task queue), comprising: reference number of a document hurdle (print out task numbering), file-level hurdle (print out task priority value), submission time hurdle, folio column and status bar.Such as, be the print out task of 401326167 for reference number of a document, file-level is 5, when submission time is 14 days 9 May in 2012 26 points, and number of pages is 12 pages, state is in transmission, in print out task queue, only have the state of a print out task in transmission, the state of all the other print out task is wait.Under normal circumstances, this computing machine is by the order according to print out task queue, each bar print out task is sent to the network printer one by one, namely sequence number be 401326167 Article 1 print out task be sent out away after, namely this print out task record disappears in print out task queue, then send next print out task, namely sequence number is the print out task of 401326168, and the new print out task produced then constantly sequentially is added on after print out task queue.
In the embodiment of the present invention, before the Article 1 print out task that to suppose in sequence number be 401326167 is sent to the network printer, computing machine have received the printing control information of carrying nominal precedence information that the network printer sends, wherein, name priority value (average priority value) is 3, then trigger computer starting and filter transmit mechanism, namely when order sends each print out task, first the nominal priority value that the priority value of this print out task and the network printer send is compared, for the print out task of the nominal priority value that priority value sends lower than the network printer, temporarily do not send, jump to next print out task to judge, priority value is not less than to the print out task of the nominal priority value that the network printer sends, at once send after having judged.
Fig. 5 is print out task queue schematic diagram after embodiment of the present invention execution filtration transmit mechanism a period of time.See Fig. 5, can find out, the priority value being two print out task of 401326167,401326168 due to reference number of a document is respectively 5 and 4, is not less than the nominal priority value 3 that the network printer sends, therefore sent one by one, thus disappeared in print out task queue; But for three print out task that reference number of a document is 401326169,401326170,401326171, because its priority value is respectively 1,2,2, lower than the nominal priority value 3 that the network printer sends, therefore all " skipped ", thus being temporarily retained in print out task queue, current file number is the print out task of 401326172, and its priority value is 3, be not less than the nominal priority value 3 that the network printer sends, be in state in transmission.
Because other computing machine be connected with the network printer also sends print out task according to above-mentioned filtration transmit mechanism, therefore, within the time cycle pre-set, the print out task of low priority value is all persisted in the print out task queue of each computing machine, and the print out task that the network printer receives, its priority value all more than 3, like this, when ensure that network printer print capacity relative deficiency, the ticket printing task that preferential printing priority is high.
In this case, suppose that the priority value of the print out task that the computing machine had produces during the time cycle of this setting is all lower than 3, then the print out task that this computing machine produces all cannot send; Suppose that the priority value of the print out task that the computing machine had produces during the time cycle of this setting is all not less than 3, then every bar print out task that this computing machine produces all can sequentially send.That is, network printing method of the present invention, in transmission print out task, breach relatively isolating between computing machine, make between each computing machine, by the network printer, dynamically can coordinate to use network printer resource, thus achieve the optimum efficiency that print out task plans as a whole printing over the entire network.
Suppose that the time cycle arranged is 5 minutes, then sent printing control information to each computing machine 5 minutes after (second 5 minutes) in last time, the number of print out task to print out task in row checked again by the network printer, if the number of print out task is still not less than predetermined threshold value, then again calculate the now print out task average priority value to print out task in row, obtaining average priority value is 4, these data are carried in printing control information, send to each computing machine, each computing machine continues to perform strobe utility; Continue perform strobe utility time, preferably, from print out task to row in first bar print out task priority value compare, with aforementioned unlike, compare with new average priority value 4, other is constant.
As can be seen from above-described embodiment, at first in 5 minutes, due to network printer print capacity relative deficiency, it is 3 that each computing machine temporarily only sends priority value, 4, the print out task of 5, but even so, after 5 minutes, network printing pusher side still have accumulated the print out task number exceeding threshold value, objectively also need the strobe utility standard improving computer-side further, and the network printer print out task now average priority value to each print out task in row also reflects and needs to improve strobe utility standard, thus, the average priority value sent to each computing machine is updated to 4, send average data again, after each computing machine receives new average priority value, in ensuing 5 minutes, namely second in 5 minutes, strobe utility standard is brought up to and has been not less than 4, only send the print out task that priority value is 4 and 5, that is, use network printing method of the present invention, the degree of network printer executive capability relative deficiency, determine the priority height that computing machine sends print out task, enable to carry out dynamic Adaptive matching, and control more accurate.
Suppose and spent 5 minutes (the 3rd 5 minutes), the number of print out task to print out task in row checked again by the network printer, if the total number of print out task is 16, lower than predetermined threshold value 50, then not execution priority value mean value calculation and transmission, each computing machine is after second 5 minute time limit arrives, if do not receive the printing control information that the network printer sends, so automatically revert to normal transmission, namely print out task to row in, print out task is sent successively according to putting in order, comprise those print out task temporarily skipped when original filtration sends.In the embodiment of the present invention, after computing machine receives printing control information at every turn, run time of continuing of strobe utility and the network printer and check that the monitoring periods of print out task to the number of print out task in arranging is consistent.
Compared with prior art, the present invention passes through monitoring network printer print out task to the print out task number in row, and then judges the relation between the current print capacity of the network printer and printing demand, and namely print capacity meets the degree of printing demand, due to network printer print out task to row in print out task from each computing machine, therefore, this print out task is to the average priority value of print out task in row, reflection be the comprehensive condition of all computer printout tasks in whole LAN system in the nearest time period, therefore, this parameter (average priority value) is sent to each computing machine, in each computing machine subsequent time period, the filter criteria of print out task transmission is controlled using it, what realize is a coordinated balance in whole LAN system between all computing machines, ensure be the network printer print capacity relative deficiency time, the print out task that whole LAN system medium priority is high can obtain printing the most timely, and can control accurately.
Fig. 6 is the network printer structural representation of the embodiment of the present invention.See Fig. 6, this network printer comprises: print module, monitoring modular and sending module, wherein,
Print module, for receiving the print out task carrying precedence information that each computing machine sends, prints according to reception order after storage successively;
Monitoring modular, for monitoring according to the time cycle pre-set and adding up the print out task amount stored, when the print out task amount stored exceedes the threshold value pre-set, calculates the nominal priority value of the print out task stored;
Sending module, for sending printing control information to each computing machine, carries nominal priority value information, sends to make each computing machine of reception printing control information the print out task being not less than nominal priority value to print module.
Wherein, monitoring modular can comprise: print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit (not shown), wherein,
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for calculate the priority value of each print out task and, be divided by with print out task number, obtain nominal priority value.
Certainly, in practical application, monitoring modular also can comprise: priority factors setting unit, print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit (not shown), wherein,
Priority factors setting unit, for pre-setting priority factors corresponding to each priority value, the priority factors sum that each priority value is corresponding is 1;
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for obtaining the priority value of each print out task of storage, calculating each priority value and the product of corresponding priority factors, then suing for peace, obtain nominal priority value summation; Calculate the priority factors sum that the priority value of each print out task is corresponding, obtain nominal priority factors summation; Calculate the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if belong within the scope of the claims in the present invention and equivalent technologies thereof to these amendments of the present invention and modification, then the present invention also comprises these change and modification.

Claims (14)

1. a network printing method, is characterized in that, comprising:
Receive the print out task carrying precedence information that each computing machine sends, print successively according to reception order after storage;
According to the print out task amount that the time cycle statistics pre-set stores, when the print out task amount stored exceedes the threshold value pre-set, calculate the nominal priority value of the print out task stored;
Send the printing control information of carrying nominal priority value information to each computing machine, make each computing machine of reception printing control information send the print out task being not less than nominal priority value to the network printer.
2. method according to claim 1, the nominal priority value of the print out task that described calculating stores comprises:
Obtain the priority value of each print out task stored;
Calculate the priority value of each print out task and, then with print out task number divided by obtaining nominal priority value.
3. method according to claim 1, the nominal priority value of the print out task that described calculating stores comprises:
Pre-set the priority factors that each priority value is corresponding, the priority factors sum that each priority value is corresponding is 1;
Obtain the priority value of each print out task stored, calculate each priority value and the product of corresponding priority factors, then sue for peace, obtain nominal priority value summation;
Calculate the priority factors sum that the priority value of each print out task is corresponding, obtain nominal priority factors summation;
Calculate the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
4. method according to claim 3, described nominal priority factors summation computing formula is:
Ψ = Σ j = 1 m ξ j
In formula,
Ψ is nominal priority factors summation;
ξ jfor the priority value A of print out task j jcorresponding priority factors.
5. method according to claim 1, described to after each computing machine sends and carries the printing control information of nominal priority value information, make each computing machine of reception printing control information to the network printer send be not less than the step of the print out task of nominal priority value before, comprise further:
Computing machine receives printing control information, judges whether current transmission is in idle condition:
If so, the print out task being not less than nominal priority value to network printer transmission is performed;
If not, judge whether the nominal priority value carried in the printing control information received is not less than in a printing control information the nominal priority value carried, if, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried, if not, continue the queue of traversal print out task, the nominal priority value information of carrying in the printing control information received according to upper sends, after being sent, again print out task queue is traveled through, perform and send to the network printer print out task being not less than in the printing control information of current reception the nominal priority value carried.
6. method according to claim 5, described computing machine sends to the network printer print out task being not less than nominal priority value and comprises:
Within the time cycle pre-set, computing machine judges one by one to the print out task in this side print out task queue, if the priority value of this print out task is not less than described nominal priority value, then send this print out task, otherwise, skip this print out task, proceed the judgement of next print out task.
7. method according to claim 1, prints successively according to reception order after described storage and comprises:
In advance a print out task queue is set in the memory block of the network printer, and by print out task that each computing machine received sends, according to the principle of first-in first-out, leave in this print out task queue temporarily, then, network printer order reads the print out task in print out task queue, and performs printing.
8. method according to claim 1, described print out task amount comprises print out task number and/or data volume, corresponding, and the threshold value pre-set comprises number threshold value and data-quantity threshold.
9. method according to claim 8, described print out task amount comprises print out task number and data volume, and the print out task amount of described storage exceedes the threshold value pre-set and comprises:
The print job data amount stored exceed the data-quantity threshold that pre-sets and, the print out task number of storage exceedes the number threshold value pre-set.
10. the method according to any one of claim 1 to 9, comprises further:
When the print out task amount stored does not exceed the threshold value pre-set, continue to wait for that the next time cycle carries out adding up the flow process of the print out task amount stored.
11. methods according to any one of claim 1 to 9, comprise further:
The time cycle pre-set then, if computing machine do not receive the network printer send printing control information, sequentially send the print out task in this side print out task queue.
12. 1 kinds of network printers, is characterized in that, this network printer comprises: print module, monitoring modular and sending module, wherein,
Print module, for receiving the print out task carrying precedence information that each computing machine sends, prints according to reception order after storage successively;
Monitoring modular, for monitoring according to the time cycle pre-set and adding up the print out task amount stored, when the print out task amount stored exceedes the threshold value pre-set, calculates the nominal priority value of the print out task stored;
Sending module, for sending printing control information to each computing machine, carries nominal priority value information, sends to make each computing machine of reception printing control information the print out task being not less than nominal priority value to print module.
13. network printers according to claim 12, is characterized in that, described monitoring modular comprises: print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit, wherein,
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for calculate the priority value of each print out task and, be divided by with print out task number, obtain nominal priority value.
14. network printers according to claim 12, is characterized in that, described monitoring modular comprises: priority factors setting unit, print out task amount statistic unit, judging unit, priority value acquiring unit and nominal priority value calculations unit, wherein,
Priority factors setting unit, for pre-setting priority factors corresponding to each priority value, the priority factors sum that each priority value is corresponding is 1;
Print out task amount statistic unit, for monitoring according to the time cycle pre-set and adding up the print out task amount stored;
Judging unit, when the print out task amount stored exceedes the threshold value pre-set, exports trigger message to priority value acquiring unit for judging;
Priority value acquiring unit, for obtaining the priority value of each print out task of storage, exports to nominal priority value calculations unit;
Name priority value calculations unit, for obtaining the priority value of each print out task of storage, calculating each priority value and the product of corresponding priority factors, then suing for peace, obtain nominal priority value summation; Calculate the priority factors sum that the priority value of each print out task is corresponding, obtain nominal priority factors summation; Calculate the ratio of nominal priority value summation and nominal priority factors summation, as nominal priority value.
CN201210227405.XA 2012-07-03 2012-07-03 Network printing method and the network printer Active CN102799399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210227405.XA CN102799399B (en) 2012-07-03 2012-07-03 Network printing method and the network printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210227405.XA CN102799399B (en) 2012-07-03 2012-07-03 Network printing method and the network printer

Publications (2)

Publication Number Publication Date
CN102799399A CN102799399A (en) 2012-11-28
CN102799399B true CN102799399B (en) 2016-03-16

Family

ID=47198516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210227405.XA Active CN102799399B (en) 2012-07-03 2012-07-03 Network printing method and the network printer

Country Status (1)

Country Link
CN (1) CN102799399B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6597343B2 (en) * 2016-01-29 2019-10-30 ブラザー工業株式会社 Driver program and set of driver program and printer
CN107632799A (en) * 2017-09-07 2018-01-26 中科富创(北京)科技有限公司 A kind of print processing method and system
CN108268224A (en) * 2018-01-30 2018-07-10 河南职业技术学院 Print control program, print control unit and terminal
CN108388409B (en) * 2018-02-07 2021-06-22 中国平安人寿保险股份有限公司 Print request processing method, apparatus, computer device and storage medium
CN108509160B (en) * 2018-02-13 2020-05-12 平安科技(深圳)有限公司 Post order printing method, electronic device and computer readable storage medium
CN108874325B (en) * 2018-05-24 2021-06-11 中国银行股份有限公司 Data printing method and system
CN117151903A (en) * 2023-10-31 2023-12-01 太平金融科技服务(上海)有限公司 Policy printing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593088A (en) * 2008-05-28 2009-12-02 鸿富锦精密工业(深圳)有限公司 Concentrating type print system and method
CN102455880A (en) * 2010-11-02 2012-05-16 鸿富锦精密工业(深圳)有限公司 Printer task management system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5415750B2 (en) * 2008-11-28 2014-02-12 キヤノン株式会社 Information processing apparatus, information processing method, program, and information processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593088A (en) * 2008-05-28 2009-12-02 鸿富锦精密工业(深圳)有限公司 Concentrating type print system and method
CN102455880A (en) * 2010-11-02 2012-05-16 鸿富锦精密工业(深圳)有限公司 Printer task management system and method

Also Published As

Publication number Publication date
CN102799399A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN102799399B (en) Network printing method and the network printer
US8120801B2 (en) Print job management system for managing disturbances in a plurality of print jobs
CN106250305B (en) Self-adaptive control method for data acquisition period of monitoring system in cloud computing environment
CN101257445B (en) Method for synchronous traffic shaping
CN107688496A (en) Task distribution formula processing method, device, storage medium and server
CN107391747A (en) Community management method, apparatus, system, storage medium and server
CN104735095A (en) Method and device for job scheduling of cloud computing platform
CN110266514A (en) Journal obtaining method, device, terminal and storage medium
CN103327072A (en) Cluster load balancing method and system
CN102664812A (en) Two-stage service system load forecast and balancing method integrating service forecast and real-time load
CN113312154B (en) Method, system, equipment and storage medium for scheduling satellite service resources
WO2016155996A1 (en) Production system and method for controlling same
CN113918341B (en) Equipment scheduling method, device, equipment and storage medium
CN110247815A (en) A kind of data transmission method, device, system and computer readable storage medium
CN114862373B (en) Block chain-based distributed business ledger management method and system
EP2996382B1 (en) Physical resource adjustment method, device and controller
CN101364107A (en) Dynamic dispatching method with prediction in complex large system environment
CN109639586A (en) A kind of data transmission method, apparatus and system
CN113537896A (en) Automatic intelligent wharf analysis system
JPS61196326A (en) Priority processing system
CN107885589B (en) Job scheduling method and device
CN112035262B (en) Method and device for dynamically managing and adjusting multiple hosts
CN106776031A (en) A kind of data transmission method for uplink and device
CN113992609A (en) Method and system for processing multilink service data disorder
CN114356515A (en) Scheduling method of data conversion task

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170118

Address after: 266100 Shandong Province, Qingdao city Laoshan District Songling Road No. 399

Patentee after: Poly Polytron Technologies Inc

Address before: 266061 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Patentee before: Hisense Media Networks Co., Ltd.