Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of controlling print speed printing speed, to realize according to host side original data processing being become the speed of dot array data, controls the print speed printing speed of printing equipment in real time.
A kind of method of controlling print speed printing speed receives the dot array data that generates after the host side processing initial data and is stored in the memory cell, and read dot array data printing from described memory cell, wherein:
Monitor the data volume in the described memory cell, when the data volume in the described memory cell is changed to predefined adjusted value, print speed printing speed is adjusted into the pairing print speed printing speed of this adjusted value, described adjusted value is big more, and corresponding print speed printing speed is big more.
Further, when the data volume in the described memory cell reaches maximum, described print speed printing speed is adjusted into the maximum that printing equipment can reach.
When the data volume in the described Buffer Pool is zero, stop printing.
Preferable, when described data volume in memory cell is changed to predefined adjusted value, print speed printing speed is adjusted into the pairing print speed printing speed of this adjusted value, specifically comprise:
Data volume in described memory cell by zero growth rate to a half of described memory cell capacity, with described print speed printing speed by zero adjustment be described printing equipment half of the maximal rate that can reach;
When the data volume in the described memory cell rose to the heap(ed) capacity of described memory cell by half of described memory cell capacity, half of the maximal rate that described print speed printing speed can be reached by described printing equipment was adjusted into the maximal rate that described printing equipment can reach;
Data volume in described memory cell is reduced to a half of described memory cell capacity by the heap(ed) capacity of described memory cell, and the maximal rate that described print speed printing speed can be reached by described printing equipment is adjusted into half of maximal rate that described printing equipment can reach;
When the data volume in the described memory cell was reduced to zero by half of described memory cell capacity, half of the maximal rate that described print speed printing speed can be reached by described printing equipment was adjusted into zero.
Better, when described data volume in memory cell is changed to predefined adjusted value, print speed printing speed is adjusted into the pairing print speed printing speed of this adjusted value, specifically comprise:
When the data volume in the memory cell is changed to predefined adjusted value, the flag bit of described adjusted value correspondence is labeled as effectively, it is invalid simultaneously other flag bit to be labeled as;
Described print speed printing speed is adjusted into the pairing print speed printing speed of described effective flag bit.
Further, data quantity stored and does not change in setting-up time greater than zero in described memory cell, and described print speed printing speed is when being zero, and adjusting described print speed printing speed is the maximum that described printing equipment can reach.
Perhaps, data quantity stored is greater than zero in described memory cell, and do not change in setting-up time, and described print speed printing speed is when being zero, adjust described print speed printing speed in the adjusted value greater than described data volume, near the pairing print speed printing speed of the adjusted value of this data volume.
A kind of device of controlling print speed printing speed comprises:
Memory cell is used to store as yet the not dot array data of printing, and described dot array data is to generate and send after host side is handled initial data;
Printing element is used for reading dot array data printing from described memory cell;
Monitoring means is used for monitoring the data volume of described memory cell, and when the data volume in the described memory cell is changed to predefined adjusted value, sends the print speed printing speed adjustment order that comprises this adjusted value;
The print speed printing speed adjustment unit, be used for after the print speed printing speed adjustment order that receives described monitoring means transmission, the print speed printing speed of described printing element is adjusted into the pairing print speed printing speed of adjusted value in the described print speed printing speed adjustment order, and described adjusted value is big more, and corresponding print speed printing speed is big more.
Further, also comprise:
The printing state memory cell is used for by the flag bit corresponding with each adjusted value the situation of data volume in the mark current memory cell;
Described monitoring means specifically is used for, monitor the data volume in the described memory cell, and when the data volume in the described memory cell is changed to predefined adjusted value, will in the described printing state memory cell flag bit that should adjusted value be labeled as effectively, it is invalid that other flag bit is labeled as;
Described print speed printing speed adjustment unit specifically is used for, read the flag bit state in the described printing state memory cell, described print speed printing speed is adjusted into the pairing print speed printing speed in effective marker position in the described printing state memory cell, and described adjusted value is big more, and corresponding print speed printing speed is big more.
Preferable, described monitoring means also is used for:
Data quantity stored is greater than zero in described memory cell, and in setting-up time, do not change, and corresponding print speed printing speed is zero a flag bit when being the effective marker position, be effective with the mark position of corresponding maximum adjusted value in the described printing state memory cell, is invalid with other mark position.
The embodiment of the invention provides a kind of method and apparatus of controlling print speed printing speed, in printing equipment, increase the Buffer Pool of a storage from the dot array data of host side reception, it is memory cell, and the speed of regulating the printing equipment printing according to the data volume in the Buffer Pool, thereby realize original data processing being become the speed of dot array data according to host side, control the speed of printing equipment printing in real time, the printing efficiency of having avoided too fast error in data that causes of print speed printing speed and print speed printing speed to cause excessively slowly is not high.
The specific embodiment
The embodiment of the invention provides a kind of method and apparatus of controlling print speed printing speed, in printing equipment, increased the certain memory space of size as memory cell, it is Buffer Pool, the dot array data that receives is stored in the Buffer Pool, and the print speed printing speed of regulating printing equipment according to data quantity stored in the Buffer Pool, data quantity stored more for a long time in Buffer Pool, print speed printing speed is very fast, thereby raising printing efficiency, data quantity stored more after a little while in Buffer Pool, that then print speed printing speed is adjusted is slower, thereby avoids the too fast error in data that causes of print speed printing speed.
The method of the control print speed printing speed that the embodiment of the invention provides comprises: receive host side and handle the dot array data that generates after the initial data, the dot array data that receives is stored in the Buffer Pool, and reads dot array data printing from Buffer Pool; When the data volume in the Buffer Pool is changed to predefined adjusted value, print speed printing speed is adjusted into the pairing print speed printing speed of this adjusted value.
Generally when setting the print speed printing speed of adjusted value and correspondence, the data volume in the Buffer Pool is big more, and promptly adjusted value is big more, and corresponding print speed printing speed is big more with regard to relative set.
Because when printing, can constantly consume the dot array data in the Buffer Pool, if print speed printing speed is less than the speed of host side deal with data, dot array data in the Buffer Pool will increase, when increasing to the time greater than next adjusted value of current adjusted value, print speed printing speed is adjusted into the pairing speed of next adjusted value, has promptly increased print speed printing speed, thereby has improved printing efficiency; If print speed printing speed is greater than the speed of host side deal with data, dot array data in the Buffer Pool will reduce, when next adjusted value of being reduced to less than current adjusted value, print speed printing speed then is adjusted into the speed of next adjusted value correspondence, promptly reduce print speed printing speed, thereby avoided the too fast error in data that causes of print speed printing speed.
Further, when setting adjusted value, generally need be according to the size of set Buffer Pool, determine the quantity of adjusted value,, then several adjusted values need be set more in the appropriate location of Buffer Pool if the Buffer Pool capacity is bigger, if the Buffer Pool capacity is less, several adjusted values are set less then.If the adjusted value that is provided with is too much, overmatter, it is too frequent to make that print speed printing speed changes, if the adjusted value of equipment is very few, the effect that improves printing efficiency then is not very obvious.
For example, if Buffer Pool is smaller, three adjusted values can only be set: promptly data volume be half position of Buffer Pool capacity, when heap(ed) capacity, data volume that data volume reaches Buffer Pool are zero, and the data volume that is defined in the Buffer Pool reaches Buffer Pool capacity one half, with print speed printing speed be adjusted into printing equipment half of the maximal rate that can reach, when the data volume in Buffer Pool reaches the heap(ed) capacity of Buffer Pool, with print speed printing speed be adjusted into printing equipment the maximal rate that can reach, when the data volume in Buffer Pool is zero, stop printing.
Concrete embodiment comprises as shown in Figure 1:
Step S101, printing equipment are in the printing halted state;
Step S102, printing equipment receive the dot array data that host side is handled well, and are stored in the Buffer Pool;
Whether step S103, monitoring Buffer Pool reach half-full, if, continue execution in step S104, if not, printing equipment continues to keep the halted state of step S101;
Step S104, printing equipment are with half print speed printing speed printing of the prestissimo that can reach;
Whether the data volume in step S105, the monitoring Buffer Pool reaches the heap(ed) capacity of Buffer Pool or is changed to 0, if Buffer Pool is full, continue execution in step S106, if Buffer Pool is empty, execution in step S101 then, if both not full, be not changed to sky yet, printing equipment continues the print speed printing speed among the maintenance step S104;
Step S106, printing equipment print with the prestissimo that can reach, and execution in step S107;
Whether step S107, monitoring Buffer Pool reach half-full, if, execution in step S104, if not, printing equipment continues to keep the maximum print speed of step S106.
Usually, after printing equipment is adjusted into print speed printing speed the pairing numerical value of certain adjusted value,, thereby improve the efficient of judging as long as whether the data volume in the monitoring Buffer Pool is changed to two adjusted values adjacent with this adjusted value.
If when the peaked adjusted value of corresponding print speed printing speed is arranged on Buffer Pool and has expired, promptly when Buffer Pool is filled, again the speed of printing equipment is adjusted into its maximal rate that can arrive greatly, when at this moment reaching maximum with regard to the print speed printing speed that needs the assurance printing equipment, the printshop consumes the speed of the speed of dot array data greater than host side transmission dot array data, with further raising printing efficiency, the situation that reduces queuing takes place.
Further, in order to prevent that Buffer Pool completely is difficult to continue to receive the dot matrix data conditions and occurs, the peaked adjusted value of corresponding print speed printing speed can be arranged on Buffer Pool near full position, for example can be in Buffer Pool data volume be 4/5 o'clock of Buffer Pool capacity, with the print speed printing speed of printing equipment be adjusted to its maximum that can reach.
Further, can a flag bit be set for each set adjusted value correspondence, make adjusted value, flag bit and print speed printing speed three corresponding one by one, when the data volume in the Buffer Pool is changed to an adjusted value, the flag bit of this adjusted value correspondence is labeled as effectively, it is invalid simultaneously other flag bit to be labeled as, when carrying out the speed adjustment, as long as the print speed printing speed of printing equipment is adjusted into the pairing print speed printing speed of effective flag bit, has promptly realized print speed printing speed is adjusted into the print speed printing speed of this adjusted value correspondence.
Less for preventing to need the data volume of printing, the situation that does not reach the minimum adjusted value that makes the printing equipment startup occurs, a time threshold can be set again, in Buffer Pool, there is dot array data to exist, and the data volume in the Buffer Pool does not all have to change in the time threshold of setting, and when printing equipment is in halted state, the print speed printing speed of printing equipment is adjusted into proper speed, because host side disposes data, so can be so that printing equipment prints with the fastest speed, print speed printing speed can certainly be adjusted into the minimum speed in the speed of service, be in the predefined adjusted value, near the pairing print speed printing speed of the adjusted value of the data volume in the Buffer Pool greater than data volume in the Buffer Pool.Like this, less when the data volume of needs printings, when not reaching the minimum adjusted value of the startup printing equipment that sets, also can print.
For example, if the adjusted value that is provided with is respectively data volume in the Buffer Pool and accounts for 0,1/4,1/2,3/4,9/10 o'clock of Buffer Pool, adjust the print speed printing speed of printing equipment, when the dot array data that will print have only the Buffer Pool capacity 1/5 the time, because number to be printed less than 1/4, even, still do not reach the adjusted value that makes printing equipment begin to print of 1/4 this minimum so all dot array datas have all been put into Buffer Pool.At this moment, if there is not the setting-up time adjusted value, data volume in can only Buffer Pool reaches at 1/4 o'clock and can start, the words that do not increase other data just can not be printed the dot array data that this accounts for Buffer Pool 1/5, if the time adjusted value is set at 5 seconds, after so this dot array data of 1/5 being ploughed under Buffer Pool, after 5 seconds, promptly having satisfied the data volume in the Buffer Pool and be 1/5 state kept for 5 seconds constant, the print speed printing speed of correspondence had realized printing when printing equipment just directly was adjusted into data volume with print speed printing speed and is Buffer Pool capacity 1/4.
The embodiment of the invention also provides a kind of device of controlling print speed printing speed, as shown in Figure 2, comprises in the device: memory cell 201, printing element 202, monitoring means 203 and print speed printing speed adjustment unit 204, wherein:
Memory cell 201 is used to store as yet the not dot array data of printing, and host side sends to printing equipment after original data processing is become dot array data, and printing equipment receives this dot array data and be stored in memory cell 201 medium to be printed;
Printing element 202 is used for reading dot array data printing from memory cell 201, and promptly data are handled and imaging;
Monitoring means 203 is used for the data volume of monitoring memory cell 201, and when the data volume in the memory cell 201 is changed to predefined adjusted value, sends the print speed printing speed adjustment order that comprises this adjusted value;
Print speed printing speed adjustment unit 204, be used for after the print speed printing speed adjustment order that receives monitoring means 203 transmissions, the print speed printing speed of described printing element 202 is adjusted into the pairing print speed printing speed of adjusted value in the print speed printing speed adjustment order, and adjusted value is big more, and corresponding print speed printing speed is big more.
Further, can also come the current printing state of mark by flag bit is set, at this moment, as shown in Figure 3, also comprise in the device: printing state memory cell 205 is used for by the flag bit corresponding with each adjusted value the situation of data volume in the mark current memory cell;
Monitoring means 203 specifically is used for, data volume in the monitoring memory cell 201, and when the data volume in the memory cell is changed to predefined adjusted value, will in the printing state memory cell 205 flag bit that should adjusted value be labeled as effectively, it is invalid that other flag bit is labeled as;
Print speed printing speed adjustment unit 204 specifically is used for, read the flag bit state in the printing state memory cell 205, print speed printing speed is adjusted into the pairing print speed printing speed in effective marker position in the printing state memory cell 205, and adjusted value is big more, and corresponding print speed printing speed is big more.
Further, data quantity stored is greater than zero in memory cell 201, and in setting-up time, do not change, and corresponding print speed printing speed is that zero flag bit is when being the effective marker position, the non-vanishing flag bit of print speed printing speed of a predefined correspondence in the printing state memory cell 205 is labeled as effectively, so that printing equipment begins printing.At this moment, because host side disposes data,, be invalid with other mark position so can be effectively with the mark position of the maximum adjusted value of correspondence, make printing equipment with the data in the speed printing memory cell 201 of maximum, thereby improve printing efficiency.
The embodiment of the invention provides a kind of method and apparatus of controlling print speed printing speed, in printing equipment, increase the Buffer Pool of a storage from the dot array data of host side reception, it is memory cell, and the speed of regulating the printing equipment printing according to the data volume in the Buffer Pool, thereby realize original data processing being become the speed of dot array data according to host side, control the speed of printing equipment printing in real time, the printing efficiency of having avoided too fast error in data that causes of print speed printing speed and print speed printing speed to cause excessively slowly is not high.
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.