[go: up one dir, main page]

CN108509163A - Print control program and print control unit - Google Patents

Print control program and print control unit Download PDF

Info

Publication number
CN108509163A
CN108509163A CN201810178190.4A CN201810178190A CN108509163A CN 108509163 A CN108509163 A CN 108509163A CN 201810178190 A CN201810178190 A CN 201810178190A CN 108509163 A CN108509163 A CN 108509163A
Authority
CN
China
Prior art keywords
printer
terminal
target
proxy terminal
proxy
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.)
Granted
Application number
CN201810178190.4A
Other languages
Chinese (zh)
Other versions
CN108509163B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810178190.4A priority Critical patent/CN108509163B/en
Publication of CN108509163A publication Critical patent/CN108509163A/en
Application granted granted Critical
Publication of CN108509163B publication Critical patent/CN108509163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • 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/1236Connection management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application provides print control program and print control unit, the method includes:Inquire the printer that available proxy terminal and each proxy terminal are driven;Target printer is determined in the printer;The target proxy terminal for driving the target printer is determined in the proxy terminal;To the target proxy terminal transmission control instruction and data to be printed, wherein the control instruction is used to indicate target printer described in the target proxy final drive and prints the data to be printed.According to an embodiment of the invention, it realizes the printer being connect there is no direct communication with main control terminal by main control terminal control and executes printing, the communication link breached between terminal and printer limits so that printing is more flexible.

Description

Print control program and print control unit
Technical field
This application involves printing technique fields, in particular to print control program, print control unit and computer Readable storage medium storing program for executing.
Background technology
Current terminal control printer is printed, and the printer that there is communication connection with terminal can only be controlled, without It can control and the printer that direct communication is connect is not present with terminal.
Such as shown in Fig. 1, there is communication connection, terminal Y and printer C and printing in terminal X and printer A and printer B There is communication connection in machine D, then terminal X can drive printer A and printer B printings, but cannot control printer C and beat The D printings of print machine.
This may cause user's operation inconvenience, such as user in using terminal X, and printer A and printer B are apart from user Farther out, printer C and printer D are closer apart from user, however since user can only drive printer A and printing by terminal X Machine B printings, so mimeograph documents can only be taken from the printer of distance farther out.
Invention content
In view of this, the application provides print control program, print control unit and computer readable storage medium, with solution Certainly deficiency in the related technology.
According to a first aspect of the embodiments of the present invention, a kind of print control program is provided, including:
Inquire the printer that available proxy terminal and each proxy terminal are driven;
Target printer is determined in the printer;
The target proxy terminal for driving the target printer is determined in the proxy terminal;
To the target proxy terminal transmission control instruction and data to be printed, wherein the control instruction is used to indicate Target printer described in the target proxy final drive prints the data to be printed.
Optionally, the printer that the available proxy terminal of the inquiry and each proxy terminal are driven can wrap It includes:
Inquire available proxy terminal;
Inquire the printer that the proxy terminal is driven.
Optionally, the printer that the available proxy terminal of the inquiry and each proxy terminal are driven can wrap It includes:
Inquire in running order printer;
Inquire the proxy terminal for driving the printer;
Determine the available agent terminal in the proxy terminal.
Optionally, the available proxy terminal of the inquiry and the printer that each proxy terminal is driven include:
Available proxy terminal is found automatically in network according to preset protocol;
Determine the printer that the available proxy terminal is driven;
It, will according to the incidence relation for the printer that the available proxy terminal and the available proxy terminal are driven The mark for the printer that the mark of the available proxy terminal and the available proxy terminal are driven is stored in registration table.
Optionally, the target proxy terminal packet determined in the proxy terminal for driving the target printer It includes:
The target printer is inquired in the registration table;
It is determined in the registration table for driving the target proxy of the target printer whole according to the incidence relation End.
Optionally, the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate target printer described in the target proxy final drive and prints institute The printing type of data to be printed is stated, the compensating instruction is used to indicate target printer described in the target proxy final drive Reactive mode when printing the data to be printed is not completed.
According to a second aspect of the embodiments of the present invention, a kind of print control program is provided, including:
Receive the control instruction of main control terminal transmission and data to be printed;
The target printer for printing the data to be printed is determined according to the control instruction;
The target printer is driven to print the data to be printed according to the control instruction.
Optionally, the method further includes:
Before the control instruction and data to be printed for receiving main control terminal transmission, according to its into network of preset protocol Proxy terminal described in his terminal broadcast is available proxy terminal.
According to a third aspect of the embodiments of the present invention, a kind of print control unit is provided, including:
Enquiry module, the printer driven for inquiring available proxy terminal and each proxy terminal;
Printer determining module, for determining target printer in the printer;
Terminal deciding module, for determining the target proxy for driving the target printer in the proxy terminal Terminal;
Transmission module is used for the target proxy terminal transmission control instruction and data to be printed, wherein the control Instruction is used to indicate target printer described in the target proxy final drive and prints the data to be printed.
Optionally, the enquiry module includes:
It was found that submodule, for finding available proxy terminal automatically in network according to preset protocol;
Printer determination sub-module, the printer driven for determining the available proxy terminal;
Sub-module stored, the printing for being driven according to the available proxy terminal and the available proxy terminal The incidence relation of machine, the mark for the printer that the mark of the available proxy terminal and the available proxy terminal are driven Knowledge is stored in registration table.
Optionally, the terminal deciding module includes:
Submodule is inquired, for inquiring the target printer in the registration table;
Terminal determination sub-module, for being determined in the registration table for driving the target according to the incidence relation The target proxy terminal of printer.
Optionally, the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate target printer described in the target proxy final drive and prints institute The printing type of data to be printed is stated, the compensating instruction is used to indicate target printer described in the target proxy final drive Reactive mode when printing the data to be printed is not completed.
According to a fourth aspect of the embodiments of the present invention, a kind of print control unit is provided, including:
Receiving module, the control instruction for receiving main control terminal transmission and data to be printed;
Determining module, for determining the target printer for printing the data to be printed according to the control instruction;
Drive module, for driving the target printer to print the data to be printed according to the control instruction.
Optionally, described device is suitable for proxy terminal, and described device further includes:
Broadcast module, for the receiving module receive main control terminal transmission control instruction and data to be printed it Before, it is available proxy terminal to broadcast the proxy terminal according to other-end of the preset protocol into network.
According to a fifth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine program, the program execute the print control program described in any of the above-described embodiment when being executed by processor.
According to an embodiment of the invention, the printer that main control terminal is driven by inquiry proxy terminal and proxy terminal, Control instruction and data to be printed can be transmitted to proxy terminal, to which control agent terminal drives printing according to control instruction Machine print data is realized to execute there is no the printer that direct communication is connect with main control terminal by main control terminal control and be beaten Print breaches the communication link limitation between terminal and printer so that printing is more flexible.
Wherein, the control instruction that main control terminal is transmitted to proxy terminal may include that task scheduling instruction and/or compensation refer to It enables, can indicate that proxy terminal driving mark printer prints the printing type of data to be printed by task scheduling instruction, pass through Compensating instruction can indicate that proxy terminal driving printer does not complete reactive mode when printing data to be printed.
In addition, before control instruction and data to be printed that proxy terminal is transmitted in reception main control terminal, it can be according to pre- If it is available proxy terminal that other-end of the agreement into network, which broadcasts the proxy terminal, so that the master control in network Terminal determines which proxy terminal is available proxy terminal in time, and then transmits control instruction and to be printed to proxy terminal Data.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not It can the limitation present invention.
Description of the drawings
Fig. 1 shows the application scenarios schematic diagram of Method of printing in the related technology.
Fig. 2 is a kind of schematic flow diagram of the print control program shown according to an embodiment of the invention.
Fig. 3 is the application scenarios schematic diagram of the print control program shown according to an embodiment of the invention.
Fig. 4 is that the available proxy terminal of inquiry shown according to an embodiment of the invention and each proxy terminal are driven The schematic flow diagram of dynamic printer.
Fig. 5 be show according to an embodiment of the invention in the proxy terminal determine for driving the target print The schematic flow diagram of the target proxy terminal of machine.
Fig. 6 is a kind of schematic flow diagram of the print control program shown according to an embodiment of the invention.
Fig. 7 is the schematic flow diagram of another print control program shown according to an embodiment of the invention.
Fig. 8 is a kind of hardware architecture diagram of terminal where showing printing equipment according to an embodiment of the invention.
Fig. 9 is a kind of schematic block diagram of the print control unit shown according to an embodiment of the invention.
Figure 10 is a kind of schematic block diagram of the enquiry module shown according to an embodiment of the invention.
Figure 11 is a kind of schematic block diagram of the terminal deciding module shown according to an embodiment of the invention.
Figure 12 is a kind of schematic block diagram of the print control unit shown according to an embodiment of the invention.
Figure 13 is the schematic block diagram of another print control unit shown according to an embodiment of the invention.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application. It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the" Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 2 is a kind of schematic flow diagram of the print control program shown according to an embodiment of the invention.The present embodiment institute The method shown can be applied to terminal, mutually to be distinguished with the proxy terminal in subsequent embodiment, temporarily by side shown in the present embodiment The applicable terminal of method is known as main control terminal, wherein main control terminal can be personal computer, laptop, mobile phone, POS machine, The electronic equipments such as cash register.
As shown in Fig. 2, the print control program of this implementation may comprise steps of:
Step S11 inquires the printer that available proxy terminal and each proxy terminal are driven.
In one embodiment, inquiring printer that available proxy terminal and each proxy terminal are driven can be with Including:
Step S111 inquires available proxy terminal;
Step S112 inquires the printer that the proxy terminal is driven.
In one embodiment, available proxy terminal is inquired in the LAN that main control terminal can be where it, wherein It itself is available proxy terminal that proxy terminal can be broadcasted to other-end in a local network, and main control terminal is receiving agency Terminal broadcast its own be available proxy terminal when, you can determine the proxy terminal be available proxy terminal.
It should be noted that main control terminal and proxy terminal are not limited in a LAN, the above main control terminal exists It is an example that available proxy terminal is inquired in LAN where itself, and main control terminal can also inquire where itself Proxy terminal other than LAN.
And the communication mode of main control terminal and proxy terminal may include wired communication mode and communication, In, communication is such as can be bluetooth, infrared, WiFi, near-field communication (NFC).
In one embodiment, for available proxy terminal, the equipment that can be connected with inquiry proxy terminal, if connecting It includes printer to connect in equipment, then the printer that the as described proxy terminal is driven.
In one embodiment, inquiring printer that available proxy terminal and each proxy terminal are driven can be with Including:
Step S113 inquires in running order printer;
Step S114 determines the proxy terminal for driving the printer;
Step S115 determines the available agent terminal in the proxy terminal.
In one embodiment, main control terminal can also be inquired first and be beaten in addition to first inquiry proxy terminal in the manner described above Print machine.
Such as printer can by whether in running order information, and the proxy terminal for driving the printer Identity information be uploaded to server.Main control terminal can be communicated to obtain whether printer is in work shape with server The information of state, and then in running order printer can be determined according to the information.
Further, can be further with server communication after determining in running order printer, acquisition is used for Drive the identity information of the proxy terminal of in running order printer.And it is directed to the proxy terminal for getting identity information, It can determine in the broadcast message received whether comprising the proxy terminal to broadcast the message that its own is available proxy terminal, If including the message, you can determine that the proxy terminal is available proxy terminal.
Step S12 determines target printer in the printer.
In one embodiment, after inquiring printer, user can select wherein one or more to beat as needed Print machine is as target printer.
Step S13 determines the target proxy terminal for driving the target printer in the proxy terminal.
In one embodiment, after determining target printer, since there may be multiple terminals to drive target to beat Print machine, but multiple terminals might not all be available proxy terminal, namely might not to be all main control terminal can control Terminal, therefore the target proxy terminal for driving target printer can be determined in available proxy terminal, to ensure Main control terminal being capable of control targe proxy terminal driving target printer.
Step S14, to the target proxy terminal transmission control instruction and data to be printed, wherein the control instruction It is used to indicate target printer described in the target proxy final drive and prints the data to be printed.
In one embodiment, main control terminal, can by target proxy terminal transmission control instruction and data to be printed Target printer is driven to print data to be printed according to control instruction with control targe proxy terminal.
Fig. 3 is the application scenarios schematic diagram of the print control program shown according to an embodiment of the invention.
As shown in figure 3, the available proxy terminal that main control terminal Z is inquired is proxy terminal X and proxy terminal Y, agency Terminal X and printer A and printer B, which exists, to be communicated to connect, and proxy terminal Y and printer C and printer D, which exist, to be communicated to connect.
If it is determined that target printer be printer A, then for driving target generation of target printer in proxy terminal Reason terminal is proxy terminal X, and main control terminal Z can run print agent program, and print agent program can pass through self-built printing Agreement can drive printer A to proxy terminal X transmission control instructions and data to be printed, proxy terminal X according to control instruction Print data to be printed.
As it can be seen that the printer that main control terminal is driven by inquiry proxy terminal and proxy terminal, it can be to proxy terminal Control instruction and data to be printed are transmitted, it is real to which control agent terminal drives printer print data according to control instruction Showed the printer being connect there is no direct communication with main control terminal by main control terminal control and executed printing, breach terminal with Communication link limitation between printer so that printing is more flexible.
Such as main control terminal Z shown in Fig. 3 is personal computer, if user needs to print number by nearest printer According to, such as nearest printer is printer A, then control instruction can be transmitted by main control terminal Z-direction proxy terminal X and waited for Print data so that proxy terminal X drives printer A to print data to be printed according to control instruction, is convenient for user's quick obtaining Print the content removed.
Such as main control terminal Z shown in Fig. 3 is cash register, proxy terminal X and proxy terminal Y are also cash register, if user Client purchase meal, and the pick-up at proxy terminal X, then user can pass through main control terminal Z-direction generation are paid on main control terminal Z Manage terminal X transmission control instructions and data to be printed so that proxy terminal X drives printer A to print and waits beating according to control instruction Printing evidence, such as the payment bill of client is printed, without turning back after client's pick-up at main control terminal Z, acquisition branch is paid a bill It is single, be conducive to the buying experience for improving client.
In addition, the instruction type due to different printers may be different, for example, printer A shown in Fig. 3 instruction type Instruction type for TSPL, printer C is ESC/POS, and since main control terminal Z not directly drives printer A and printer C Printing, therefore the main control terminal Z-direction proxy terminal X control instructions transmitted and the control instruction transmitted to proxy terminal Y can be Identical type, without considering the instruction type of different printers.It ensure that system of the main control terminal to proxy terminal transmission instruction One changes, advantageously reduce main control terminal in order to control printer and generate the operation complexity of instruction.
Fig. 4 is that the available proxy terminal of inquiry shown according to an embodiment of the invention and each proxy terminal are driven The schematic flow diagram of dynamic printer.As shown in figure 4, on the basis of embodiment shown in Fig. 2, the available agency of inquiry is eventually End and the printer that each proxy terminal is driven include:
Step S116 has found available proxy terminal automatically according to preset protocol in network.
In one embodiment, preset protocol can be Bonjour agreements.
Step S117 determines the printer that the available proxy terminal is driven.
Step S118, according to the pass for the printer that the available proxy terminal and the available proxy terminal are driven The mark of connection relationship, the printer that the mark of the available proxy terminal and the available proxy terminal are driven stores In registration table.
In one embodiment, such as by arborescence indicate that available proxy terminal and available proxy terminal are driven Printer incidence relation, then can be using the mark of available proxy terminal as father node, by the available agency The mark for the printer that terminal is driven is stored in registration table as child node.
Fig. 5 be show according to an embodiment of the invention in the proxy terminal determine for driving the target print The schematic flow diagram of the target proxy terminal of machine.As shown in figure 5, on the basis of embodiment shown in Fig. 4, it is described in the agency It is determined in terminal for driving the target proxy terminal of the target printer to include:
Step S131 inquires the target printer in the registration table;
Step S132 determines mesh for driving the target printer according to the incidence relation in the registration table Mark proxy terminal.
In one embodiment, target printer can rapidly be inquired according to registration table, and then according to target print The incidence relation of the target proxy terminal of the driving target printer of machine, can rapidly inquire the mesh of driving target printer Mark proxy terminal.
In one embodiment, the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate target printer described in the target proxy final drive and prints institute The printing type of data to be printed is stated, such as target data is printed to several parts, which of printing target data data etc..Institute It states compensating instruction and is used to indicate the unfinished printing data to be printed of target printer described in the target proxy final drive When reactive mode, such as continue to print data to be printed not completing the when of printing data to be printed, or be given birth to by proxy terminal At transmission of feedback information to main control terminal.
Fig. 6 is a kind of schematic flow diagram of the print control program shown according to an embodiment of the invention.The present embodiment institute The method shown can be applied to terminal, mutually to be distinguished with the main control terminal in subsequent embodiment, temporarily by side shown in the present embodiment The applicable terminal of method is known as proxy terminal, wherein proxy terminal can be personal computer, laptop, mobile phone, POS machine, The electronic equipments such as cash register.
As shown in fig. 6, the print control program may comprise steps of:
Step S61 receives the control instruction of main control terminal transmission and data to be printed;
Step S62 determines the target printer for printing the data to be printed according to the control instruction;
Step S63 drives the target printer to print the data to be printed according to the control instruction.
In one embodiment, main control terminal can be the main control terminal that embodiment shown in Fig. 2 is applied, proxy terminal By the control instruction for receiving main control terminal transmission and data to be printed, target printer printing can be driven according to control instruction Data to be printed, to realize that there is no the printer execution that direct communication is connect to beat with main control terminal by main control terminal control Print breaches the communication link limitation between terminal and printer so that printing is more flexible.
Fig. 7 is the schematic flow diagram of another print control program shown according to an embodiment of the invention.Such as Fig. 7 institutes Show, on the basis of 6 illustrated embodiment, the method includes:
Step S64, before the control instruction and data to be printed for receiving main control terminal transmission, according to preset protocol to net It is available proxy terminal that other-end in network, which broadcasts the proxy terminal,.
In one embodiment, preset protocol can be Bonjour agreements.Institute is broadcasted by the other-end into network State proxy terminal be available proxy terminal, can make the main control terminal in network determine in time which proxy terminal be can Proxy terminal, and then transmit control instruction and data to be printed to proxy terminal.
Corresponding with the embodiment of aforementioned print control program, present invention also provides the embodiments of printing equipment.
The embodiment of the application printing equipment can be applied in terminal.Device embodiment can by software realization, It can be realized by way of hardware or software and hardware combining.For implemented in software, as the device on a logical meaning, It is to read corresponding computer program instructions in nonvolatile memory in memory by the processor of terminal where it to transport What row was formed.For hardware view, as shown in figure 8, for a kind of hardware structure diagram of terminal where the application printing equipment, remove Except processor shown in Fig. 8, memory, network interface and nonvolatile memory, printing in embodiment where device Generally according to the actual functional capability of the printing, it can also include other hardware, this is repeated no more.
Fig. 9 is a kind of schematic block diagram of the print control unit shown according to an embodiment of the invention.Shown in the present embodiment Method can be applied to terminal, mutually to be distinguished with the proxy terminal in subsequent embodiment, temporarily by method shown in the present embodiment Applicable terminal is known as main control terminal, wherein main control terminal can be personal computer, laptop, mobile phone, POS machine, receipts The electronic equipments such as silver-colored machine.
As shown in figure 9, the print control unit of the present embodiment may include:
Enquiry module 91, the printer driven for inquiring available proxy terminal and each proxy terminal;
Printer determining module 92, for determining target printer in the printer;
Terminal deciding module 93, for determining the target generation for driving the target printer in the proxy terminal Manage terminal;
Transmission module 94 is used for the target proxy terminal transmission control instruction and data to be printed, wherein the control System instruction is used to indicate target printer described in the target proxy final drive and prints the data to be printed.
Figure 10 is a kind of schematic block diagram of the enquiry module shown according to an embodiment of the invention.As shown in Figure 10, in Fig. 9 On the basis of illustrated embodiment, the enquiry module 91 includes:
It was found that submodule 911, for finding available proxy terminal automatically in network according to preset protocol;
Printer determination sub-module 912, the printer driven for determining the available proxy terminal;
Sub-module stored 913, for what is driven according to the available proxy terminal and the available proxy terminal The incidence relation of printer, the printer that the mark of the available proxy terminal and the available proxy terminal are driven Mark be stored in registration table.
Figure 11 is a kind of schematic block diagram of the terminal deciding module shown according to an embodiment of the invention.As shown in figure 11, On the basis of embodiment illustrated in fig. 10, the terminal deciding module 93 includes:
Submodule 931 is inquired, for inquiring the target printer in the registration table;
Terminal determination sub-module 932, it is described for driving for being determined in the registration table according to the incidence relation The target proxy terminal of target printer.
In one embodiment, the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate target printer described in the target proxy final drive and prints institute The printing type of data to be printed is stated, the compensating instruction is used to indicate target printer described in the target proxy final drive Reactive mode when printing the data to be printed is not completed.
Figure 12 is a kind of schematic block diagram of the print control unit shown according to an embodiment of the invention.Shown in the present embodiment Method can be applied to terminal, mutually to be distinguished with the proxy terminal in subsequent embodiment, temporarily by method shown in the present embodiment Applicable terminal is known as proxy terminal, wherein proxy terminal can be personal computer, laptop, mobile phone, POS machine, receipts The electronic equipments such as silver-colored machine.
As shown in figure 12, the print control unit includes:
Receiving module 121, the control instruction for receiving main control terminal transmission and data to be printed;
Determining module 122, for determining the target printer for printing the data to be printed according to the control instruction;
Drive module 123, for driving the target printer to print the data to be printed according to the control instruction.
Figure 13 is the schematic block diagram of another print control unit shown according to an embodiment of the invention.Suitable for agency Terminal, as shown in figure 13, on the basis of embodiment illustrated in fig. 12, described device further includes:
Broadcast module 124, for receiving the control instruction of main control terminal transmission and data to be printed in the receiving module Before, it is available proxy terminal that the other-end according to preset protocol into network, which broadcasts the proxy terminal,.
The embodiment of the present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program, the journey The print control program described in any embodiment in Fig. 2 to Fig. 5 is executed when sequence is executed by processor.
A kind of computer readable storage medium of the embodiment of the present invention, is stored thereon with computer program, which is located Reason device executes the print control program in Fig. 6 or embodiment illustrated in fig. 7 when executing.
The function of modules and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.

Claims (14)

1. a kind of print control program, which is characterized in that including:
Inquire the printer that available proxy terminal and each proxy terminal are driven;
Target printer is determined in the printer;
The target proxy terminal for driving the target printer is determined in the proxy terminal;
To the target proxy terminal transmission control instruction and data to be printed, wherein the control instruction is used to indicate described Target printer described in target proxy final drive prints the data to be printed.
2. according to the method described in claim 1, it is characterized in that, the available proxy terminal of the inquiry and each agency The printer that terminal is driven includes:
Available proxy terminal is found automatically in network according to preset protocol;
Determine the printer that the available proxy terminal is driven;
It, will be described according to the incidence relation for the printer that the available proxy terminal and the available proxy terminal are driven The mark for the printer that the mark of available proxy terminal and the available proxy terminal are driven is stored in registration table.
3. according to the method described in claim 2, it is characterized in that, described determining described for driving in the proxy terminal The target proxy terminal of target printer includes:
The target printer is inquired in the registration table;
Target proxy terminal for driving the target printer is determined in the registration table according to the incidence relation.
4. according to the method in any one of claims 1 to 3, which is characterized in that the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate described in target printer printing described in the target proxy final drive and waits for The printing type of print data, it is not complete that the compensating instruction is used to indicate target printer described in the target proxy final drive Reactive mode when at the printing data to be printed.
5. a kind of print control program, which is characterized in that including:
Receive the control instruction of main control terminal transmission and data to be printed;
The target printer for printing the data to be printed is determined according to the control instruction;
The target printer is driven to print the data to be printed according to the control instruction.
6. according to the method described in claim 5, it is characterized in that, being suitable for proxy terminal, the method further includes:
Before the control instruction and data to be printed for receiving main control terminal transmission, according to other ends of preset protocol into network It is available proxy terminal that the proxy terminal is broadcasted at end.
7. a kind of print control unit, which is characterized in that including:
Enquiry module, the printer driven for inquiring available proxy terminal and each proxy terminal;
Printer determining module, for determining target printer in the printer;
Terminal deciding module, for being determined in the proxy terminal for driving the target proxy of the target printer whole End;
Transmission module is used for the target proxy terminal transmission control instruction and data to be printed, wherein the control instruction It is used to indicate target printer described in the target proxy final drive and prints the data to be printed.
8. device according to claim 7, which is characterized in that the enquiry module includes:
It was found that submodule, for finding available proxy terminal automatically in network according to preset protocol;
Printer determination sub-module, the printer driven for determining the available proxy terminal;
Sub-module stored, printer for being driven according to the available proxy terminal and the available proxy terminal Incidence relation deposits the mark for the printer that the mark of the available proxy terminal and the available proxy terminal are driven It is stored in registration table.
9. device according to claim 8, which is characterized in that the terminal deciding module includes:
Submodule is inquired, for inquiring the target printer in the registration table;
Terminal determination sub-module, for being determined in the registration table for driving the target print according to the incidence relation The target proxy terminal of machine.
10. the device according to any one of claim 7 to 9, which is characterized in that the control instruction includes:
Task scheduling instructs and/or compensating instruction;
Wherein, the task scheduling instruction is used to indicate described in target printer printing described in the target proxy final drive and waits for The printing type of print data, it is not complete that the compensating instruction is used to indicate target printer described in the target proxy final drive Reactive mode when at the printing data to be printed.
11. a kind of print control unit, which is characterized in that including:
Receiving module, the control instruction for receiving main control terminal transmission and data to be printed;
Determining module, for determining the target printer for printing the data to be printed according to the control instruction;
Drive module, for driving the target printer to print the data to be printed according to the control instruction.
12. according to the devices described in claim 11, which is characterized in that be suitable for proxy terminal, described device further includes:
Broadcast module is used for before the receiving module receives control instruction and the data to be printed of main control terminal transmission, root It is available proxy terminal to broadcast the proxy terminal according to other-end of the preset protocol into network.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The print control program any one of Claims 1-4 is executed when execution.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The print control program described in claim 5 or 6 is executed when execution.
CN201810178190.4A 2018-03-05 2018-03-05 Printing control method and printing control device Active CN108509163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810178190.4A CN108509163B (en) 2018-03-05 2018-03-05 Printing control method and printing control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810178190.4A CN108509163B (en) 2018-03-05 2018-03-05 Printing control method and printing control device

Publications (2)

Publication Number Publication Date
CN108509163A true CN108509163A (en) 2018-09-07
CN108509163B CN108509163B (en) 2021-09-07

Family

ID=63377090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810178190.4A Active CN108509163B (en) 2018-03-05 2018-03-05 Printing control method and printing control device

Country Status (1)

Country Link
CN (1) CN108509163B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976684A (en) * 2019-02-28 2019-07-05 苏州博瑞凯德信息技术有限公司 A kind of adapter distribution print system, method and device
CN111638859A (en) * 2020-05-29 2020-09-08 北京字节跳动网络技术有限公司 Cloud printing method, device, system, equipment and storage medium
CN112445433A (en) * 2019-08-29 2021-03-05 钉钉控股(开曼)有限公司 File printing method, device, equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1657299A (en) * 2003-12-13 2005-08-24 三星电子株式会社 System and method for selecting printer via wireless communication network and printing data
CN102508624A (en) * 2011-10-26 2012-06-20 苏州工业园区鑫海胜电子有限公司 Transparent proxy printing method for local area network
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN104254844A (en) * 2012-06-26 2014-12-31 惠普发展公司,有限责任合伙企业 Exposing network printers to wi-fi clients
CN105988760A (en) * 2015-02-10 2016-10-05 上海品奇数码科技有限公司 Printing-based interactive display method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1657299A (en) * 2003-12-13 2005-08-24 三星电子株式会社 System and method for selecting printer via wireless communication network and printing data
CN102508624A (en) * 2011-10-26 2012-06-20 苏州工业园区鑫海胜电子有限公司 Transparent proxy printing method for local area network
CN104254844A (en) * 2012-06-26 2014-12-31 惠普发展公司,有限责任合伙企业 Exposing network printers to wi-fi clients
CN103179120A (en) * 2013-03-21 2013-06-26 天闻数媒科技(北京)有限公司 Method and system for realizing printing of mobile device
CN105988760A (en) * 2015-02-10 2016-10-05 上海品奇数码科技有限公司 Printing-based interactive display method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976684A (en) * 2019-02-28 2019-07-05 苏州博瑞凯德信息技术有限公司 A kind of adapter distribution print system, method and device
CN112445433A (en) * 2019-08-29 2021-03-05 钉钉控股(开曼)有限公司 File printing method, device, equipment and system
CN111638859A (en) * 2020-05-29 2020-09-08 北京字节跳动网络技术有限公司 Cloud printing method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN108509163B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN111209578A (en) Application service access method and device
US9069497B2 (en) Information processing apparatus having relay virtual printer and functional relay virtual printer
CN108509163A (en) Print control program and print control unit
US20060192997A1 (en) Print status monitor control for printing devices on network
CN110275682A (en) Cloud Method of printing, apparatus and system
CN104391664B (en) A kind of Self-service printing system for realizing printer and printing server cross-network segment communicating
JP2013037687A (en) Direct printing from mobile devices using near field communication (nfc) device
CN109815025A (en) Business model call method, device and storage medium
CN107608642A (en) A kind of cloud printing router, cloud print service platform Method of printing and system
CN110532077A (en) Task processing method, device and storage medium
CN110324227A (en) Data transmission method and vpn server in a kind of vpn server
JP6690207B2 (en) Relay device and control program
JP5986016B2 (en) Information processing apparatus and program
JP6776869B2 (en) server
EP1225776B1 (en) Mobile communication device and data communication method for exchanging data according to a protocol indicated in received instruction data
CN107678709A (en) A kind of user right method of discrimination and system based on printer sharing
CN110706000A (en) Anti-counterfeiting method, device and system for accessories and electronic equipment
CN109150844A (en) Determine the methods, devices and systems of digital certificate
CN103227772A (en) System for scalable processing of files in the cloud
JPH1055332A (en) Information processing system management apparatus, POS terminal system and automatic system construction method
JP4892469B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2005039335A (en) Image data recording apparatus, image data output system, control method of image data recording apparatus, program, and recording medium
CN109041038A (en) For controlling the method and system of electronic device and designated user's binding
CN104105094B (en) Ask authentication method, apparatus and system
JP2004341729A (en) Service provision device, data processor, information provision method, program and storage medium

Legal Events

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