CN103927138B - Print system and its Method of printing and printer - Google Patents

Print system and its Method of printing and printer Download PDF

Info

Publication number
CN103927138B
CN103927138B CN201310009283.1A CN201310009283A CN103927138B CN 103927138 B CN103927138 B CN 103927138B CN 201310009283 A CN201310009283 A CN 201310009283A CN 103927138 B CN103927138 B CN 103927138B
Authority
CN
China
Prior art keywords
print
equipment
printer
logic interfacing
printing
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
CN201310009283.1A
Other languages
Chinese (zh)
Other versions
CN103927138A (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.)
Shandong New Beiyang Information Technology Co Ltd
Original Assignee
Shandong New Beiyang Information 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 Shandong New Beiyang Information Technology Co Ltd filed Critical Shandong New Beiyang Information Technology Co Ltd
Priority to CN201310009283.1A priority Critical patent/CN103927138B/en
Priority to PCT/CN2014/070411 priority patent/WO2014108086A1/en
Publication of CN103927138A publication Critical patent/CN103927138A/en
Application granted granted Critical
Publication of CN103927138B publication Critical patent/CN103927138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1207Improving or facilitating administration, e.g. print management resulting in the user being informed about print result after a job submission
    • 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/1229Printer resources management or printer maintenance, e.g. device status, power levels
    • 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/1259Print job monitoring, e.g. job status
    • 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/1284Local printer device

Abstract

The invention discloses a kind of print system and its Method of printing and printer.The print system includes print request equipment(10)And printer(20), print request equipment(10)Including the first equipment(17)With the second equipment(18), printer(20)With the first logic interfacing(25)With the second logic interfacing(26), print request equipment(10)On operation print system is installed(102)And monitoring programme(103), operation print system(102)For by the first equipment(17)With the first logic interfacing(25)To printer(20)Send print data, monitoring programme(103)For by the second equipment(18)With the second logic interfacing(26)Monitoring printer(20)State.By the present invention, solve the problems, such as that the inquiry printer modes of the print system in correlation technique are limited by operating system, print system of the invention can not be limited by operating system, user is inquired about the state of printer as needed.

Description

Print system and its Method of printing and printer
Technical field
The present invention relates to print field, in particular to a kind of print system and its Method of printing and printer.
Background technology
A print request equipment is generally comprised in print system(Such as personal computer)With a printer, the two leads to Communications cable connection is crossed, print request equipment sends print data by the communications cable to printer, and printer completes printing number According to printing.At present, print system typically completes the printing of print data by two ways, and one kind is in print request equipment Upper installation vertical application, such as the application program that certain industry or a certain customer demand are developed, by proprietary application journey Sequence directly to printer send can by printer recognize print command and print data, printer receive print command and The printing of print data is performed after print data;Another kind is to install general purpose application program in print request equipment(It is such as micro- The office softwares for editing of soft company), meanwhile, the printer provided by printer manufacturer is installed in print request equipment and is driven Dynamic program, printed driver is called after application program generation graph data, and including printed driver generation can quilt Work data is sent to printer by the print command of printer identification and the work data of print data, print request equipment, Printer performs work data printing after receiving work data.
In order to ensure being normally carried out for print job, user is in printing it should be understood that the state of printer, such as, print Whether machine lacks whether paper, printhead are abnormal, and the quantity of operation that has printed of printer etc..For in print request equipment The upper print system for installing vertical application, can increase corresponding query function when vertical application is developed, and print When, from vertical application to printer send querying command, and receive printer return printer state, while in journey The state of sequence interface display printer, such as, the state of current printer is shown by pop-up dialogue box to user;For beating The print system of general purpose application program and printed driver is installed, the shape if necessary to obtain printer in print request equipment State, then it is inseparable with the operating system that print request equipment is installed, such as, for windows operating systems(Do not include embedding Enter formula operating system), the print management system offer language supervision of operating system(Language Monitor)Component and port Supervision(Port Monitor)Component, by language supervise component and port supervision component fulfil assignment data transmission and printer State acquisition, Fig. 1 is a kind of composition schematic diagram of print system under windows operating systems in the prior art, in this dozen Under print system, port supervision 500 ' controls the port with the physical connection of printer 20 ' of PC10 ', when print system is printed, port Supervision 500 ' sends to printer work data, and receives the data returned by printer, and the parsing of language supervision 400 ' is by beating The data that print machine is returned, the data returned by printer determine the state of printer, and operating system 300 ' shows on PC10 ' The state of printer.
But, for some special operating systems, such as Unix/Linux operating systems, when print request equipment is used When general purpose application program and printed driver are printed, due to the print management system Insufficient privilege of operating system, behaviour Making system can not provide the component that data can be read from printer, and the shape of printer can not be shown in print request equipment State, now, user cannot inquire about the state of printer by print system.
The problem that printer modes are limited by operating system is inquired about for the print system in correlation technique, at present not yet Propose effective solution.
The content of the invention
It is a primary object of the present invention to provide a kind of print system and its Method of printing and printer, to solve related skill The problem that print system inquiry printer modes in art are limited by operating system.
To achieve these goals, according to an aspect of the invention, there is provided a kind of print system.The print system bag Print request equipment and printer are included, print request equipment includes the first equipment and the second equipment, and printer has the first logic Interface and the second logic interfacing, are provided with operation print system and monitoring programme in print request equipment, operation print system is used In sending print data to printer by the first equipment and the first logic interfacing, monitoring programme is used for by the second equipment and the The state of two logic interfacing monitoring printers, wherein, the first equipment and the second equipment are to be respectively mounted in print request equipment First device driver and two equipment of the second device driver generation, the first logic interfacing and the second logic interfacing are Two logic interfacings that the Same Physical interface of printer is configured to.
Further, the port of the first equipment is in open mode when operation print system sends print data to pass through The first logical channel that first equipment and the first logic interfacing are set up between print request equipment and printer, the first logical channel For sending print data.The port of the second equipment is in print print data in open mode with by the second equipment and the The second logical channel that two logic interfacings are set up between print request equipment and printer, monitoring programme is used to pass through the second logic The state of channel monitoring printer.
Further, operation print system is additionally operable to after print data is sent, and judges the buffering of print request equipment Whether there is the print data not sent in area, when there is the print data not sent in judging buffering area, continue to send Print data, and when in judging buffering area without the print data not sent, close the port of the first equipment.
Further, whether monitoring programme is additionally operable to judge the number of print pages of printer equal to the first preset value, and When judging that the number of print pages of printer is equal to the first preset value, output asks whether the prompt message for continuing to print.
Further, monitoring programme is additionally operable to after output asks whether the prompt message for continuing printing, and judgement is connect The order of the user input for receiving, in the order that the continuation for receiving user input is printed, control printer continues to print surplus Remaining print data, when the order of cancellation printing of user input is received, does not send out in the buffering area for deleting print request equipment The remaining print data sent, and close the port of the second equipment.
Further, the first logic interfacing and the second logic interfacing be configured to by the same USB interface of printer two Individual logic interfacing.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of Method of printing of print system.Should Print system includes print request equipment and printer, and print request equipment includes the first equipment and the second equipment, prints equipment There are the first logic interfacing and the second logic interfacing, operation print system and monitoring programme are installed in print request equipment, wherein, First equipment and the second equipment are that the first device driver and the second device drives journey are respectively mounted in print request equipment Sequence generation two equipment, the first logic interfacing and the second logic interfacing be configured to by the Same Physical interface of printer two Individual logic interfacing, the Method of printing includes:Operation print system is sent by the first equipment and the first logic interfacing to printer Print data;And monitoring programme is by the second equipment and the state of the second logic interfacing monitoring printer.
Further, operation print system sends print data bag by the first equipment and the first logic interfacing to printer Include:When print data is sent, opening the port of the first equipment please to set up printing by the first equipment and the first logic interfacing The first logical channel between equipment and printer is sought, and print data is sent by the first logical channel.Monitoring programme passes through The state of the second equipment and the second logic interfacing monitoring printer includes:In print print data, the end of the second equipment is opened Second logical channel of the mouth to be set up between print request equipment and printer by the second equipment and the second logic interfacing, and lead to Cross the state of the second logical channel monitoring printer.
Further, operation print system sends print data also by the first equipment and the first logic interfacing to printer Including:After print data is sent by the first logical channel, judge whether also have not in the buffering area of print request equipment The print data of transmission;When also having the print data not sent in the buffering area for judging print request equipment, continue to send Print data;And when in the buffering area for judging print request equipment without the print data not sent, close the first equipment Port.
Further, monitoring programme is also included by the state of the second equipment and the second logic interfacing monitoring printer:Sentence Whether the number of print pages of disconnected printer is equal to the first preset value;First is equal in the number of print pages for judging printer to preset During value, output asks whether the prompt message for continuing to print.
Further, after output asks whether the prompt message for continuing printing, the method also includes:Judgement is received The order of the user input for arriving;In the order that the continuation for receiving user input is printed, control printer continues to print remaining Print data;When the order of cancellation printing of user input is received, do not sent in the buffering area for deleting print request equipment Remaining print data, and close the second equipment port.
Further, the first logic interfacing and the second logic interfacing be configured to by the same USB interface of printer two Individual logic interfacing.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of printer.The printer be for The printer of print system of the invention.
By the present invention, due to the Same Physical interface of printer is configured into two independent logic interfacings, and use Independent logic interfacing performs operation printing and monitoring printing respectively, solves the print system inquiry printer in correlation technique The problem that state is limited by operating system, and then can not be limited by operating system, allow users to as needed Inquire about the state of printer.
Brief description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate, for explaining the present invention, not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of composition schematic diagram of print system under windows operating systems in the prior art;
Fig. 2 is the electric composition schematic diagram of print system according to a first embodiment of the present invention;
Fig. 3 is the program composition schematic diagram of print system according to a first embodiment of the present invention;
Fig. 4 is the flow chart of Method of printing according to a first embodiment of the present invention;
Fig. 5 is the flow chart of Method of printing according to a second embodiment of the present invention;And
Fig. 6 is the schematic diagram of the dialog box of monitoring programme ejection in Method of printing according to a second embodiment of the present invention.
Specific embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 2 is the electric composition schematic diagram of print system according to a first embodiment of the present invention, as shown in Fig. 2 printing system System 1 includes print request equipment 10 and printer 20.Wherein, print request equipment 10 is used to send to print to printer 20 to ask Ask, printer 20 is used to perform operation printing after the print request for receiving the transmission of print request equipment 10, and print request sets It is connected with each other by USB cable for 10 and printer 20.
Print request equipment 10 includes host device 11, input equipment 12 and display device 13, wherein, host device 11 is wrapped CPU14, memory module 15 and USB controller 16 are included, wherein, CPU14 is used to perform the overall operation control of print request equipment 10 Work processed;Memory module 15 is used to store operating system, application program, the printer driver in print request equipment 10 The data generated in program etc., and operating system, application program, printed driver running;USB controller 16 is used In performing, voltage transformation is processed and impedance conversion process is so that ancillary equipment can be communicated by USB interface with CPU14.
Input equipment 12 is connected with host device 11, the operational order for receiving user, and by the operational order of user Host device 11 is sent to, input equipment 12 can be keyboard or mouse.
Display device 13 is connected with host device 11, for showing in the running of print request equipment 10 the need for show Data, display device 13 can be CRT(CRT is the abbreviation of Cathode Ray Tube)Display or LCD(LCD is The abbreviation of Liquid Crystal Display)Display.
Printer 20 includes CPU21, memory cell 22, print unit 23 and USB interface 24, wherein, CPU21 is used to control Other each module execution work are made, memory cell 22 is used in the control program and control program running for store printer 20 The data of generation, print unit 23 is used to perform the printing function of operation, and USB interface 24 is used to perform printer 20 and printing please Seek the data transfer between equipment 10.
It should be noted that the USB interface 24 of printer 20 has multiple end points, on printer 20 after electricity, printer 20 By configuring the interface descriptor of USB interface 24, a USB interface for physics 24 can be configured to multiple logic interfacings, and Interface descriptor is transferred to print request equipment 10 by USB interface 24 and USB cable, print request equipment 10 obtains USB The interface descriptor of interface 24, installs a corresponding USB printings class and sets to each logic interfacing in print request equipment 10 Standby driver, so as to each logic interfacing of correspondence generates an equipment for installation in print request equipment 10, each installation Equipment take independent USB pipe respectively, completed between print request equipment 10 and printer 20 by independent USB pipe Data transfer, wherein, independent USB pipe includes an output channel and an input channel, output channel and input pipe Road corresponds to an end points of the USB interface 24 of printer 20 respectively, and output channel is used to transmit from print request equipment 10 to beating The control command that print machine 20 sends, input channel is made for transfer printing machine 20 to the control command of print request equipment 10 Response.
As shown in Fig. 2 in print system 1, printer 20 by configuring the interface descriptor of USB interface 24, by one The USB interface 24 of physics is configured to the first logic interfacing 25 and the second logic interfacing 26, at the end of print request equipment 10, installs and divides Not with the first logic interfacing 25 and the corresponding USB printings kind equipment driver of the second logic interfacing 26, so that correspondence first is patrolled Collect interface 25 and generate the first equipment 17, correspondence the second logic interfacing 26 generates the second equipment 18, wherein, the first equipment 17 is by defeated Go out pipeline 31 and input channel 32 to carry out data transmission with printer 20, the second equipment 18 passes through output channel 33 and input channel 34 carry out data transmission with printer 20.Therefore, in print system 1, between print request equipment 10 and printer 20 not only Can be carried out data transmission by the USB pipe of the first equipment 17, but also can be carried out by the USB pipe of the second equipment 18 Data transfer.
Fig. 3 is the program composition schematic diagram of print system according to a first embodiment of the present invention, as shown in figure 3, printing system System 1 includes the first device driver 100, the second device driver 101, operation print system at the end of print request equipment 10 102 and monitoring programme 103, print system 1 includes printer control program 200 at the end of printer 20.
At the end of print request equipment 10, the first device driver 100, the second device driver 101 are located to print and ask Generation first sets after asking the bottom of the procedure system of equipment 10, print request equipment 10 to install the first device driver 100 Standby 17, for alloing print request equipment 10 to carry out data transmission by the USB pipe of the first equipment 17 with printer 20, beat Print request equipment 10 generates the second equipment 18 after installing the second device driver 101, for making print request equipment 10 and beating Print machine 20 can be carried out data transmission by the USB pipe of the second equipment 18.
Operation print system 102, for the management and transmission of fulfil assignment establishment and work data, wherein, operation printing System 102 includes printed driver 104, application program 105 and print processor 106.
When printed driver 104 is installed, the port that port is the first equipment 17 is installed in selection, so that printer driver Program 104 is carried out data transmission by the USB pipe of the first equipment 17 with printer 20.Printed driver 104 and application Program 105, for the establishment for fulfiling assignment, wherein, application program 105 is received user and is set by the input of print request equipment 10 The operational order of standby 12 input, generates graph data, when application program 105 receives the order for starting printing, application program 105 call printed driver 104, and printed driver 105 and application program 105 create a print job jointly, The graph data that application program 105 is generated is converted into printed driver 104 the operation number for being ultimately routed to printer 20 According to work data includes print command and the print data that can be recognized by printer 20;Print processor 106, for operation is A part for the print management system of system, for carry out work data management and to printer 20 send work data, than Such as, print processor 106 provides work data storage in the memory module 15 of the host device 11 of print request equipment 10 In buffering area, and the work data in buffering area is sent to printer 20 successively.Because printed driver 104 is being installed During select the port that the port installed is the first equipment 17, therefore, when print job, print processor 106 is by the The USB pipe of one equipment 17 sends work data to printer 20.
Monitoring programme 103, for the state of monitoring printer 20, and by graphic user interface(Graphical User Interface, abbreviation GUI)The state of printer is shown on the display device 13 of print request equipment 10.Monitoring programme 103 The port communication that acquiescence passes through the second equipment 18, so that USB pipe and printer 20 that monitoring programme 103 passes through the second equipment 18 Carry out data transmission, wherein, monitoring programme 103 sends control command by the output channel of the second equipment 18 to printer 20, And the state of printer is read from printer 20 by the input channel of the second equipment 18.
At the end of printer 20 of print system 1, printer control program 200 is performed by CPU21, for controlling printer work Make, such as, the control printer 20 of printer control program 200 carries out data transmission with print request equipment 10, controls printer 20 perform operation printing etc..
In embodiments of the present invention, print system includes print request equipment 10 and printer 20, print request equipment 10 Including the first equipment 17 and the second equipment 18, printer 20 has the first logic interfacing 25 and the second logic interfacing 26, and printing please Ask and operation print system 102 and monitoring programme 103 are installed in equipment 10, operation print system 102 is used to pass through the first equipment 17 and first logic interfacing 25 to printer 20 send print data, monitoring programme 103 be used for pass through the second equipment 18 and second The state of the monitoring printer 20 of logic interfacing 26.Connect due to the Same Physical interface of printer is configured into two independent logics Mouthful, and operation printing and monitoring printing are performed using independent logic interfacing respectively, thus, using the printing of the embodiment of the present invention System, can not be limited by operating system, allow users to inquire about as needed the state of printer.
Correspondingly, the embodiment of the present invention additionally provides a kind of Method of printing of print system, the printing in the Method of printing The print system that system is provided by the embodiment of the present invention, in the Method of printing, operation print system 102 passes through the first equipment 17 and first logic interfacing 25 to printer 20 send print data, monitoring programme 103 pass through the second equipment 18 and the second logic The state of the monitoring printer 20 of interface 26.
Fig. 4 is the flow chart of Method of printing according to a first embodiment of the present invention, wherein, operation print system is performed and included The workflow of following steps:
Step S301, creates operation, generates work data
When user wishes the operation that printing one has been editted, user is being answered by the input equipment of print request equipment With the order that initiating task is printed is input into program, adjusted after the order that the initiating task that application program receives user input is printed With printed driver, printed driver and application program create operation jointly, create printer during operation The graph data that application program is generated is converted into work data by driver, the work data storage that print processor will be generated In the buffering area that the memory module of the main frame by print request equipment is provided, wherein, work data by printer by that can be known Other print command and print data are constituted.
Step S302, opens the port of the first equipment
Print processor open the first equipment port, by the USB pipe of the first equipment set up print request equipment with Communication connection between printer.
Step S303, sends work data
, be sent to for work data beat successively by print processor read job data from the buffering area of print request equipment Print machine.
Step S304, closes the port of the first equipment
After work data is all sent to printer, print processor closes the port of the first equipment.
Monitoring programme performs the workflow for comprising the steps of:
Step S311, opens the port of the second equipment
When monitoring programme starts, the port of the second equipment is opened, print request is set up by the USB pipe of the second equipment and is set The standby communication connection between printer.
Step S312, inquires about the state of printer
When operation print system sends work data to printer, when printer performs work data printing, monitoring programme Inquire about printer state, wherein, inquire about printer state can be monitoring programme read by printer actively be sent to beat The data, or monitoring programme of the state of the expression printer of print request equipment send at interval of Preset Time to printer Status inquiry command, then reads the data of the state of the expression printer returned by printer.
Step S313, when the state of printer meets to impose a condition, by GUI display reminding information
When the state that monitoring programme detects printer meets to impose a condition, by GUI display reminding information to user Reminded, wherein, can be in monitoring main interface display reminding information, it is also possible to eject right by GUI display reminding information Words frame display reminding information.
Step S314, closes the port of the second equipment
When monitoring programme is exited, the port of the second equipment is closed.
In the control method of the present embodiment, the operation print system and monitoring programme of print request equipment pass through first respectively The USB pipe and printer of the USB pipe of equipment and the second equipment are communicated, by operation print system and monitoring programme Coordinate, make print system during operation printing is carried out, user can in real time obtain the state of printer.By this implementation The control method of example, efficiently solves under Unix/Linux operating systems due to being printed caused by print management system Insufficient privilege Request equipment can not read and show the problem of the state of printer.
Fig. 5 is the flow chart of Method of printing according to a second embodiment of the present invention, wherein, operation print system is performed and included The workflow of following steps:
Step S401 ~ step S403, with step S301 ~ step S303.
Whether step S404, judges there be the work data not sent in buffering area
Whether the print processor of operation print system judges also have not to printer in the buffering area of print request equipment The work data of transmission, if it has, continuing executing with step S403, otherwise, performs step S405.
Step S405, closes the port of the first equipment
With step S304.
Monitoring programme performs the workflow for comprising the steps of:
Step S411 ~ step S412, with step S311 ~ step S312
Step S413, judges whether number of print pages is equal to the first preset value
The data of the state of the expression printer read in monitoring programme analytical procedure S412, wherein, printer is used The state of one or more byte representation printers, and the particular state of printer is represented by different bits, such as, beat Print machine represents whether printer lacks using 4 states of byte representation printer, the value of first bit of first character section Paper, the value of the 4th second bit of byte represents whether the operation number of pages that printer has been printed is equal to the first preset value Deng, monitoring programme reads corresponding bit, judges whether the operation number of pages that printer has been printed is equal to the first preset value, if It is to perform step S414, otherwise, continues executing with step S412.
It should be noted that in the control method of the present embodiment, printer receives the work sent by operation print system Industry data are simultaneously printed, in print procedure, the operation number of pages that printer record has been printed, and inquire about printing in monitoring programme The operation number of pages for having printed that is recorded is returned to monitoring programme during the state of machine, when the operation number of pages of printer printer reaches During to the first preset value, printer pause printing waits the state of monitoring programme inquiry printer and inquires printer The response made after state.
Step S414, pop-up dialogue box asks whether to continue to print
When monitoring programme monitors the number of pages that printer printed is equal to the first preset value, monitoring programme ejection dialogue Frame, points out the number of pages for having printed to reach the first preset value, asks the user whether to need to continue to print.Fig. 6 is illustrated when the The dialog box ejected by monitoring programme when one preset value is page 10, as shown in fig. 6, monitoring programme provides behaviour in prompted dialog frame Make option, continue to print for user's selection or selection does not continue printing.
Step S415, judges whether user is input into the order for continuing to print
Monitoring programme waits the select command of user input, after user input select command, judges the life of user input Whether order is the order for continuing to print, if it is, step S416 is performed, otherwise, when the order of user input is not continue printing Order, that is, when cancelling the order of printing, perform step S417.
Step S416, the order for continuing to print is sent to printer
When user input continues the order for printing, monitoring programme sends the order for continuing to print to printer, so as to beat Print machine can continue to print remaining work data.
It should be noted that after printer receives the order of continuation printing of monitoring programme transmission, the work that will have been printed Industry number of pages is reset, and restarting prints to print remaining work data, and the operation page for having printed is recorded in print procedure Number.So, after work data of the printer per print setting number of pages, monitoring programme can pop-up dialogue box ask the user whether after Continuous printing.
Step S417, API Function deletes the work data in the buffering area of print request equipment
When user input cancels the order of printing, monitor call deletes the api function of operation, deletes print request Remaining work data in the buffering area of equipment.
Step S418, closes the port of the second equipment
When monitoring programme is exited, the port of the second equipment is closed.
In the control method of the present embodiment, operating system sends work data, printer print job data to printer During record the operation number of pages for having printed, and the operation number of pages is returned into monitoring programme, monitoring programme passes through the number of pages Job management is carried out, printing can be immediately cancelled when user needs not continue to print remaining work data, so as to keep away Exempt from paper waste, improve the flexibility of user's operation.
The print system and operation Method of printing provided by the present invention, a printer is pacified in print request equipment end It is the first equipment and the second equipment to fill, the operation print system and monitoring programme of print request equipment respectively by the first equipment and The USB pipe and printer of the second equipment carry out data transmission, the general purpose application program and printer driver of operation print system Program creation operation simultaneously generates work data, the state of monitoring programme monitoring printer, is driven by general purpose application program, printer The cooperation of dynamic program, monitoring programme, makes print system during operation printing is carried out, and user can in real time obtain printer State.Compared with prior art, the print system and operation Method of printing that the present invention is provided efficiently solve Unix/Linux Under operating system due to caused by print management system Insufficient privilege print request equipment can not read and show the shape of printer The problem of state.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (11)

1. a kind of print system, it is characterised in that including print request equipment (10) and printer (20), the print request sets Standby (10) include the first equipment (17) and the second equipment (18), and the printer (20) is with the first logic interfacing (25) and second Logic interfacing (26), is provided with operation print system (102) and monitoring programme (103), institute on the print request equipment (10) State operation print system (102) for by first equipment (17) and first logic interfacing (25) to the printer (20) print data is sent, the monitoring programme (103) is for by second equipment (18) and second logic interfacing (26) state of the printer (20) is monitored, wherein, first equipment (17) and second equipment (18) they are described Be respectively mounted in print request equipment (10) the first device driver (100) and the second device driver (101) generation Two equipment, first logic interfacing (25) and second logic interfacing (26) are the Same Physical of the printer (20) Two logic interfacings that interface is configured to;
Wherein, the operation print system (102) is additionally operable to after the print data is sent, and judges that the print request sets Whether there is the print data not sent in the buffering area of standby (10), also have the printing not sent in the buffering area is judged During data, continue to send the print data, and when in judging the buffering area without the print data not sent, close The port of first equipment (17).
2. print system according to claim 1, it is characterised in that
The port of first equipment (17) is in open shape when the operation print system (102) sends the print data State sets up the print request equipment (10) and described with by first equipment (17) and first logic interfacing (25) The first logical channel between printer (20), first logical channel is used to send the print data,
The port of second equipment (18) is when the print data is printed in open mode with by second equipment (18) and second logic interfacing (26) set up between the print request equipment (10) and the printer (20) second Logical channel, the monitoring programme (103) is for the state by second logical channel monitoring printer (20).
3. print system according to claim 2, it is characterised in that
The monitoring programme (103) is additionally operable to judge whether the number of print pages of the printer (20) is equal to the first preset value, And when the number of print pages for judging the printer (20) is equal to first preset value, output asks whether to continue to print Prompt message.
4. print system according to claim 3, it is characterised in that
The monitoring programme (103) is additionally operable to after output asks whether the prompt message for continuing printing, judges received User input order, in the order that the continuation for receiving user input is printed, control the printer (20) to continue to beat The remaining print data of print, when the order of cancellation printing of user input is received, deletes the print request equipment (10) The remaining print data not sent in buffering area, and close the port of second equipment (18).
5. print system according to any one of claim 1 to 4, it is characterised in that first logic interfacing (25) Two logic interfacings being configured to by the same USB interface of the printer (20) with second logic interfacing (26).
6. a kind of Method of printing of print system, the print system includes print request equipment (10) and printer (20), institute Stating print request equipment (10) includes the first equipment (17) and the second equipment (18), and the printer (20) connects with the first logic Mouth (25) and the second logic interfacing (26), are provided with operation print system (102) and monitoring on the print request equipment (10) Program (103), wherein, first equipment (17) and second equipment (18) they are to divide on the print request equipment (10) Two equipment of the first device driver (100) and the second device driver (101) generation, first logic are not installed Be configured to by the Same Physical interface of the printer (20) two patrol for interface (25) and second logic interfacing (26) Interface is collected, methods described includes:
The operation print system (102) is by first equipment (17) and first logic interfacing (25) to the printing Machine (20) sends print data;And
The monitoring programme (103) monitors the printer by second equipment (18) and second logic interfacing (26) (20) state;
Wherein, the operation print system (102) by first equipment (17) and first logic interfacing (25) to institute Stating printer (20) transmission print data also includes:
After the print data is sent by first logical channel, the buffering of the print request equipment (10) is judged Whether there is the print data not sent in area;
When also having the print data not sent in the buffering area for judging the print request equipment (10), continue to send described Print data;And
When in the buffering area for judging the print request equipment (10) without the print data not sent, close described first and set The port of standby (17).
7. Method of printing according to claim 6, it is characterised in that
The operation print system (102) is by first equipment (17) and first logic interfacing (25) to the printing Machine (20) sends print data to be included:
When the print data is sent, the port of first equipment (17) is opened with by first equipment (17) and institute The first logical channel that the first logic interfacing (25) is set up between the print request equipment (10) and the printer (20) is stated, And the print data is sent by first logical channel,
The monitoring programme (103) monitors the printer by second equipment (18) and second logic interfacing (26) (20) state includes:
When the print data is printed, the port of second equipment (18) is opened with by second equipment (18) and institute State second logic that the second logic interfacing (26) is set up between the print request equipment (10) and the printer (20) Passage, and the state of the printer (20) is monitored by second logical channel.
8. Method of printing according to claim 6, it is characterised in that the monitoring programme (103) sets by described second The state that standby (18) and second logic interfacing (26) monitor the printer (20) also includes:
Judge whether the number of print pages of the printer (20) is equal to the first preset value;
When the number of print pages for judging the printer (20) is equal to first preset value, output asks whether to continue to beat The prompt message of print.
9. Method of printing according to claim 8, it is characterised in that the prompt message for continuing to print is asked whether in output Afterwards, methods described also includes:
Judge the order of received user input;
In the order that the continuation for receiving user input is printed, the printer (20) is controlled to continue to print remaining printing number According to;
When the order of cancellation printing of user input is received, do not sent out in the buffering area for deleting the print request equipment (10) The remaining print data sent, and close the port of second equipment (18).
10. the Method of printing according to any one of claim 6 to 9, it is characterised in that first logic interfacing (25) Two logic interfacings being configured to by the same USB interface of the printer (20) with second logic interfacing (26).
11. a kind of printers, it is characterised in that the printer is for the printing system any one of claim 1 to 5 The printer of system.
CN201310009283.1A 2013-01-10 2013-01-10 Print system and its Method of printing and printer Active CN103927138B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310009283.1A CN103927138B (en) 2013-01-10 2013-01-10 Print system and its Method of printing and printer
PCT/CN2014/070411 WO2014108086A1 (en) 2013-01-10 2014-01-09 Printing system, printing method therefor, and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310009283.1A CN103927138B (en) 2013-01-10 2013-01-10 Print system and its Method of printing and printer

Publications (2)

Publication Number Publication Date
CN103927138A CN103927138A (en) 2014-07-16
CN103927138B true CN103927138B (en) 2017-06-06

Family

ID=51145373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310009283.1A Active CN103927138B (en) 2013-01-10 2013-01-10 Print system and its Method of printing and printer

Country Status (2)

Country Link
CN (1) CN103927138B (en)
WO (1) WO2014108086A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794404A (en) * 2015-04-03 2015-07-22 深圳冀东之星科技开发有限公司 Information secure printing monitoring method with intelligent consumable material and system thereof
CN104794403A (en) * 2015-04-03 2015-07-22 深圳冀东之星科技开发有限公司 Secure information monitoring and printing method and system
CN106294179B (en) * 2016-08-22 2018-01-19 上海亿账通互联网科技有限公司 Analog detection method and server in process of application development
CN106547499B (en) * 2016-11-04 2019-05-28 南京富士通电子信息科技股份有限公司 A method of control printer modes return
CN109710198B (en) * 2018-12-29 2020-12-25 森大(深圳)技术有限公司 Printing method, device and equipment for local dynamic variable image

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313548A (en) * 2000-03-13 2001-09-19 日本电气株式会社 Printing system and method
CN1469259A (en) * 2002-06-10 2004-01-21 精工爱普生株式会社 POS system, network system, printing data generating method of POS system and sale and advertising information management in network system
CN1702695A (en) * 2004-04-08 2005-11-30 精工爱普生株式会社 Printing system, POS system, connection device, and control method and control program for printing system
CN101221401A (en) * 2005-01-14 2008-07-16 佳能株式会社 Printing system and job processing method
CN101242395A (en) * 2008-02-19 2008-08-13 深圳华为通信技术有限公司 A data transmission method and USB interface
CN101407135A (en) * 2008-10-17 2009-04-15 北大方正集团有限公司 Digital printing equipment and data transmission method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100315666A1 (en) * 2009-06-11 2010-12-16 Yitzhak Lazer High speed page transmission

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313548A (en) * 2000-03-13 2001-09-19 日本电气株式会社 Printing system and method
CN1469259A (en) * 2002-06-10 2004-01-21 精工爱普生株式会社 POS system, network system, printing data generating method of POS system and sale and advertising information management in network system
CN1702695A (en) * 2004-04-08 2005-11-30 精工爱普生株式会社 Printing system, POS system, connection device, and control method and control program for printing system
CN101221401A (en) * 2005-01-14 2008-07-16 佳能株式会社 Printing system and job processing method
CN101242395A (en) * 2008-02-19 2008-08-13 深圳华为通信技术有限公司 A data transmission method and USB interface
CN101407135A (en) * 2008-10-17 2009-04-15 北大方正集团有限公司 Digital printing equipment and data transmission method thereof

Also Published As

Publication number Publication date
CN103927138A (en) 2014-07-16
WO2014108086A1 (en) 2014-07-17

Similar Documents

Publication Publication Date Title
CN103927138B (en) Print system and its Method of printing and printer
CN1133946C (en) Network system, combination device, combination device control method and storage medium
US8228531B2 (en) Control method by printer utility and information processing apparatus
US6490052B1 (en) Printer controller
CN100386727C (en) Computer-readable program product, process and apparatus for installing device driver
CN102023831B (en) Printing system, printing apparatus, computer program, and storage medium
CN101644997A (en) Information processing apparatus and information processing method
CN106671609B (en) The device of the method and sequence number adjustment of sequence number adjustment
CN108509333A (en) Adjustment method and device
CN102236536A (en) Print control device, print control method and monitoring method
JPH03217894A (en) Method of controlling cursor movement and display
CN103543969A (en) Information processing method and information processing apparatus
CN102810052B (en) Image processing system, image formation system
CN101261570B (en) Driver system of image forming apparatuses and method of controlling the same
CN103995714B (en) Installation method of device drive program and equipment
JP3829530B2 (en) Computer apparatus, computer system, printer, method and computer-readable recording medium having printer monitoring function
CN108170289A (en) The driving method of keyboard is customized based on USB
CN100462948C (en) Computer peripheral device containing contents and method of outputting contents using the same
JP2008108089A (en) Data processing system, and task control method and its program
CN100445905C (en) System and method for the safe automatic detection of a field device communicating with current modulated signal
JP2001113792A (en) Medium storing maintenance guide program of printer, maintenance guide apparatus and method for printer
CN105700833B (en) Print control and information processing unit
JP2913489B2 (en) Printer device
CN103841288B (en) Image processing system
CN101300535A (en) Data processing device and method for the operation thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant