CN104503716B - A kind of code figure printing process and system - Google Patents

A kind of code figure printing process and system Download PDF

Info

Publication number
CN104503716B
CN104503716B CN201410843955.3A CN201410843955A CN104503716B CN 104503716 B CN104503716 B CN 104503716B CN 201410843955 A CN201410843955 A CN 201410843955A CN 104503716 B CN104503716 B CN 104503716B
Authority
CN
China
Prior art keywords
task
code
server
client
data exchange
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
CN201410843955.3A
Other languages
Chinese (zh)
Other versions
CN104503716A (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 HUIYAN ZHIXING TECHNOLOGY Co Ltd
Original Assignee
BEIJING HUIYAN ZHIXING 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 HUIYAN ZHIXING TECHNOLOGY Co Ltd filed Critical BEIJING HUIYAN ZHIXING TECHNOLOGY Co Ltd
Priority to CN201410843955.3A priority Critical patent/CN104503716B/en
Publication of CN104503716A publication Critical patent/CN104503716A/en
Application granted granted Critical
Publication of CN104503716B publication Critical patent/CN104503716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention provides a kind of code figure printing process and system, and code figure print system includes client and server;Client is configured with data exchange module;Data exchange module includes network communication module, task total amount acquisition module, task total amount receiving module, Task Details acquisition module, Task Details receiving module, printing parameter sending module, code figure acquisition module and code figure receiving module.Advantage is as follows:(1) data exchange module is by Server development and is responsible for maintenance, it is not necessary to prints client and participates in debugging process, reduces exploitation debugging cycle;(2) data exchange module has versatility, to different printing client, need not adjust substantially, there is good replicability;(3) if server has the change such as business or needs to do printing enterprise some limitations, printing enterprise need not be intervened, and the data exchange module of renewal is embedded into printing client by server.

Description

A kind of code figure printing process and system
Technical field
The invention belongs to code figure printing technology, and in particular to a kind of code figure printing process and system.
Background technology
Code figure, for example, Quick Response Code figure, one-dimension code figure etc., are widely used to all trades and professions of modern society, e.g., product False proof/to trace to the source, advertisement pushing, commodity transaction, E-business applications, vehicle management, information transmission etc..
To meet the extensive use demand of code figure, printing is carried out to code figure and belongs to basis and crucial technology.Prior art In, there is large number of printing enterprise, the printing client of itself is installed by Ge Jia printing enterprises, and it is printed to code figure Mode mainly includes two kinds:
The first, is transmitted by USB flash disk:The code figure for needing to print is generated in server, then, manually by the code figure that need to be printed Store USB flash disk;USB flash disk is carried to printing enterprise again, by the code figure in USB flash disk manually is imported into printing client, finally, printing visitor Code figure is printed at family end;The subject matter that this kind of mode is present is:Due to the medium transmitted using USB flash disk as code figure, and code Map file is generally larger, therefore, on the one hand, code figure transmission speed is slow, on the other hand, high to USB flash disk storage capacity requirement, therefore, With printing efficiency it is low the problem of.
Second, directly pass through network transmission:The code figure for needing to print is generated in server, then, server and printing Communication and data processing agreement are conferred between client, after reaching an agreement, is debugged in server and printing client, Make to set up communication port between server and printing client;Finally, server transmits the code figure of generation by communication port To printing client.The subject matter that this kind of mode is present is:(1) in data exchange process, due to network service and data Processing is all very complicated, so server and the development difficulty of printing client are very big, further, since server and printing client The technology at end is asynchronous, therefore, with debugging is difficult and the problem of long debugging cycle;(2) due to existing printing client simultaneously Do not possess communication protocol debugging capability, therefore, aggravated to print the work difficulty of client;(3) because server needs and many Individual printing client sets up communication connection, and each printing client communication and data processing agreement with server not phase Together, therefore, the development and maintenance cost of server has also been aggravated.(4) when server has the change such as business or needs to print , it is necessary to which printing enterprise's intervention is developed when some limitations are done by brush enterprise, the cooperation of both sides is influenceed.
The content of the invention
The defect existed for prior art, the present invention provides a kind of code figure printing process and system, can effectively solve State problem.
The technical solution adopted by the present invention is as follows:
The present invention provides a kind of code figure printing process, comprises the following steps:
S1, server is configured and safeguarded and each client uniquely corresponding data exchange module, and the data are handed over Mold changing block is issued to client, and the client is embedded in corresponding data exchange module;
S2, startup of server data processing threads wait each client to be attached by the data exchange module;
S3, server loading tasks file;Wherein, the assignment file is detailed comprising task total amount, the task of every task Thin information;The task total amount refers to the number of tasks for needing to perform;Every the Task Details include:Task ID, plan print The code figure total quantity of brush and the code figure quantity printed;
S4, client is locally configured, by calling the network communication module in the data exchange module, so as to build It is vertical to be connected with the communication chief of server;
S5, the client sends task total amount to the data exchange module and obtains request;Wherein, the task total amount Obtain the total quantity that request refers to executable task;
S6, the data exchange module obtains request to the task total amount and is packaged, and obtains meeting the data friendship The data format of communication protocol between block and the server is changed the mold, then, the acquisition request after encapsulation the clothes are sent to Business device;
S7, the server reads the assignment file after the task total amount acquisition request is received, and obtains described The task ID of total amount of being engaged in and every task;Then, task notifications message is sent to the data exchange module;Wherein, it is described Task notifications message carries the task ID of the task total amount and every task;
S8, the data exchange module is received after the task notifications message, and the task notifications message is solved Analysis, obtains the task ID of the task total amount and every task, then, by the task total amount and the task of every task ID is sent to the client;
S9, the client is after the task ID of the task total amount and every task is received, the choosing based on setting Strategy is selected, selects the appointed task ID that need to currently perform, then, send and appoint to appointed task ID to the data exchange module The acquisition request message for details of being engaged in;
S10, the data exchange module is carried out to the acquisition request message of the Task Details of the appointed task ID Encapsulation, obtains meeting the data format of communication protocol between the data exchange module and the server, then, after encapsulation Acquisition request be sent to the server;
S11, the server obtains the appointed task ID after the acquisition for receiving the Task Details is asked Task Details, and to the data exchange module send task notifications message;Wherein, the task notifications message is carried There are the Task Details;
S12, the data exchange module receives the task notifications message, and the task notifications message is solved Analysis, obtains the Task Details of the appointed task ID, then, the Task Details of the appointed task ID is sent to The client;
S13, the client is entered after the Task Details of the appointed task ID are received to local printing parameter Row configuration, and the printing parameter configured is transferred to the data exchange module;
The printing parameter is packaged by S14, the data exchange module, obtain meeting the data exchange module with The data format of communication protocol between the server, then, the server is sent to by the printing parameter after encapsulation;
S15, the server receives the printing parameter;Then, the server reads the Task Details In the code figure quantity printed and the code figure total quantity of plan printing, the code figure total quantity of note plan printing is n, has been printed Code figure quantity is m;Wherein, n, m are natural number, n >=m;
The server judges whether m is 0, if it is, show the server to perform the appointed task ID first, Also non-generated code figure, then:The server obtains n code value of quantity identical with the code figure total quantity n of the plan printing, Then, the printing parameter is subjected to synthetic operation with each code value respectively, generates n code figure, and by the n code figure It is temporarily stored in internal memory, waits the request of the client;If not, show that the server had synthesized n code figure, also, The client, which has been printed, also has n-m unprinted code figures in m code figure, the internal memory, then the server waits institute State the further request of client;
S16, the client sends this code figure quantity for needing to print to the data exchange module;If this needs Code figure quantity be x;Wherein, x is natural number, also, x≤n-m;
S17, the data exchange module is packaged to this described code figure quantity x for needing to print, and obtains meeting institute The data format of communication protocol between data exchange module and the server is stated, then, the code figure quantity x after encapsulation is sent To the server;
S18, the server reads internal memory, never printed after the code figure quantity x that this described needs print is received N-m code figure in select x code figure, and the x code figure in internal memory is marked, labeled as printing state;
Then, the server sends the notification message that code figure is issued to the data exchange module;Wherein, it is described to notify Message carries the x code figure;
S19, the data exchange module parses the notification message, obtains the x code figure, and by the x code figure It is sent to the client;
S20, the client is received after the x code figure, prints the x code figure;
S21, returns to S15, and circulation performs S16-S20, and until the client is completed for printing n-m code figure, then printing is appointed Business is completed.
It is preferred that, the printing parameter includes:Print channel information, code figure dimension information, code figure resolution information and code One or more in diagram shape information.
It is preferred that, in S3, the task ID is task number;Or, the task ID is the commission of this print job Organization information.
It is preferred that, in S4, the client is locally configured, and is referred specifically to:In client, the ip addresses of server are set And port.
It is preferred that, in S9, the selection strategy set as:Priority to each bar task ID is ranked up;Selection is excellent The task that first level highest task ID needs to perform for this printing.
It is preferred that, the priority of the task ID is specially:The generation time of task, its priority was higher the latest;Or, The importance of task delegation side is higher, then the priority for corresponding to task is higher.
It is preferred that, in addition to:During this subtask of client executing R1, when the client is received tightly During anxious another task R2 of execution notification message, the client suspends execution task R1, then performs task R2;When described Client executing is completed after task R2, then recovers to continue executing with task R1.
It is preferred that, in addition to:During this subtask of client executing R1, stop when the client is received When only performing task R1 notification message, the client cancels task R1.
It is preferred that, in addition to:When the client to task R1 perform terminate after, the server by the task R1 from Deleted completely in the assignment file, meanwhile, update the task total amount stored in the assignment file;When the server Receive after new task R5, the server imports the details of the new task R5 in the assignment file, meanwhile, more The task total amount stored in the new assignment file.
The present invention also provides a kind of code figure print system, including client and server;
The client is configured with data exchange module;
The data exchange module includes:
Network communication module, for realizing that the communication chief between the client and the server connects;
Task total amount acquisition module, request is obtained for receiving the task total amount that the client is sent;To the task Total amount obtains request and is packaged, and obtains meeting the data lattice of communication protocol between the data exchange module and the server Formula, then, the server is sent to by the acquisition request after encapsulation;
Task total amount receiving module, for receiving the task notifications message that the server is returned, to the task notifications Message is parsed, and obtains the task ID of the task total amount and every task, then, by the task total amount and every The task ID of task is sent to the client;
Task Details acquisition module, for receiving the Task Details to appointed task ID that client is sent Obtain request message;The acquisition request message of the Task Details of the appointed task ID is packaged, obtains meeting institute The data format of communication protocol between data exchange module and the server is stated, then, the acquisition after encapsulation is asked to send To the server;
Task Details receiving module, for receiving the task notifications message that the server is returned, and to described Business notification message is parsed, and obtains the Task Details of the appointed task ID, then, by appointing for the appointed task ID Business details are sent to the client;
Printing parameter sending module, for being packaged the printing parameter that client is locally configured, obtains meeting described The data format of communication protocol between data exchange module and the server, then, the printing parameter after encapsulation is sent to The server;
Code figure acquisition module, this code figure quantity x for needing to print for the client to be set is packaged, and is obtained To the data format for meeting communication protocol between the data exchange module and the server, then, by the code figure after encapsulation Quantity x is sent to the server;
Code figure receiving module, for receiving the notification message that the code figure that the server is issued is read, and is parsed described logical Know message, obtain the x code figure, and the x code figure is sent to the client.
The printing process of code figure and system that the present invention is provided, with advantages below:
(1) data exchange module is by Server development and is responsible for maintenance, by data exchange module, realizes printing client Communication and data processing between server, therefore, there is no need to printing client and participate in debugging process, reduce exploitation debugging In the cycle, greatly reduce development difficulty;
(2) data exchange module has versatility, to different printing client, need not adjust substantially, there is multiple well Property processed;
(3) if server has the change such as business or needs to do printing enterprise some limitations, printing enterprise is not required to Intervene, the data exchange module of renewal is embedded into printing client by server.
Brief description of the drawings
The structural representation for the code figure print system that Fig. 1 provides for the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
The present invention provides a kind of code figure printing process, comprises the following steps:
S1, server is configured and safeguarded and each client uniquely corresponding data exchange module, and the data are handed over Mold changing block is issued to client, and the client is embedded in corresponding data exchange module;
S2, startup of server data processing threads wait each client to be attached by the data exchange module;
S3, server loading tasks file;Wherein, the assignment file is detailed comprising task total amount, the task of every task Thin information;The task total amount refers to the number of tasks for needing to perform;Every the Task Details include:Task ID, plan print The code figure total quantity of brush and the code figure quantity printed;
Herein, task ID is task number;Or, the task ID is believed for client's title of this print job Breath.
For example, the task total amount that assignment file is included is 3, respectively task 1, task 2 and task 3;Wherein, task 1 Task Details be:The commission 200 Quick Response Code figures of printing of manufacturer 1;The Task Details of task 2 are:The commission print of manufacturer 2 100 Quick Response Code figures of brush;The Task Details of task 3 are:The commission 300 Quick Response Code figures of printing of manufacturer 3.
S4, client is locally configured, for example, the ip addresses and port of server are set in client, by calling Network communication module in the data exchange module, is connected so as to set up with the communication chief of server;
S5, the client sends task total amount to the data exchange module and obtains request;Wherein, the task total amount Obtain the total quantity that request refers to executable task;
S6, the data exchange module obtains request to the task total amount and is packaged, and obtains meeting the data friendship The data format of communication protocol between block and the server is changed the mold, then, the acquisition request after encapsulation the clothes are sent to Business device;
S7, the server reads the assignment file after the task total amount acquisition request is received, and obtains described The task ID of total amount of being engaged in and every task;Then, task notifications message is sent to the data exchange module;Wherein, it is described Task notifications message carries the task ID of the task total amount and every task;
S8, the data exchange module is received after the task notifications message, and the task notifications message is solved Analysis, obtains the task ID of the task total amount and every task, then, by the task total amount and the task of every task ID is sent to the client;
S9, the client is after the task ID of the task total amount and every task is received, the choosing based on setting Strategy is selected, selects the appointed task ID that need to currently perform, then, send and appoint to appointed task ID to the data exchange module The acquisition request message for details of being engaged in;
In this step, the selection strategy of the setting includes but is not limited to:Priority to each bar task ID is ranked up; Task of selecting the task ID of highest priority to need to perform for this printing.Wherein, the priority of task ID is specially:Task The generation time the latest, its priority is higher;Or, the importance of task delegation side is higher, then the priority for corresponding to task is got over It is high.
For example, current task total amount is 3, show that client there are three tasks not yet to handle, then client need to select to work as Before being performed for task, for example, the 3rd article of task.Herein it is emphasized that client is when performing certain task, Ke Yiling It is living to suspend being currently executing for task according to demand, and perform other tasks;Or, according to notification message, cancel Certain task.For example, after the commission 300 Quick Response Code figures of printing of manufacturer 3, when this task has not carried out, if manufacturer 3 takes Disappear commission, then client can also cancel this task.
S10, the data exchange module is carried out to the acquisition request message of the Task Details of the appointed task ID Encapsulation, obtains meeting the data format of communication protocol between the data exchange module and the server, then, after encapsulation Acquisition request be sent to the server;
S11, the server obtains the appointed task ID after the acquisition for receiving the Task Details is asked Task Details, and to the data exchange module send task notifications message;Wherein, the task notifications message is carried There are the Task Details;
S12, the data exchange module receives the task notifications message, and the task notifications message is solved Analysis, obtains the Task Details of the appointed task ID, then, the Task Details of the appointed task ID is sent to The client;
S13, the client is entered after the Task Details of the appointed task ID are received to local printing parameter Row configuration, and the printing parameter configured is transferred to the data exchange module;
Wherein, printing parameter includes:Print channel information, code figure dimension information, code figure resolution information and code diagram shape One or more in information.
The printing parameter is packaged by S14, the data exchange module, obtain meeting the data exchange module with The data format of communication protocol between the server, then, the server is sent to by the printing parameter after encapsulation;
S15, the server receives the printing parameter;Then, the server reads the Task Details In the code figure quantity printed and the code figure total quantity of plan printing, the code figure total quantity of note plan printing is n, has been printed Code figure quantity is m;Wherein, n, m are natural number, n >=m;
The server judges whether m is 0, if it is, show the server to perform the appointed task ID first, Also non-generated code figure, then:The server obtains n code value of quantity identical with the code figure total quantity n of the plan printing, Then, the printing parameter is subjected to synthetic operation with each code value respectively, generates n code figure, and by the n code figure It is temporarily stored in internal memory, waits the request of the client;If not, show that the server had synthesized n code figure, also, The client, which has been printed, also has n-m unprinted code figures in m code figure, the internal memory, then the server waits institute State the further request of client;
For example, for task 3,300 Quick Response Code code figures of the commission printing of manufacturer 3.Server receives client pair first During the printing request of task 3, disposable 300 Quick Response Code code figures of generation, and by 300 Quick Response Code code figure storages into internal memory, When initial, each Quick Response Code code figure mark is printing state;Then, when 50 codes in client request print job 3 During figure, the 1-50 code figure is handed down to client by server, meanwhile, the 1-50 code icon in internal memory is designated as having printed State;When 50 code figures in client again requested printing task 3, the 51-100 code figure is handed down to client by server End, meanwhile, the 51-100 code icon in internal memory is designated as printing state;The rest may be inferred, until 300 code figures are issued During to client, show that the execution to task 3 terminates, task 3 is deleted from assignment file.
S16, the client sends this code figure quantity for needing to print to the data exchange module;If this needs Code figure quantity be x;Wherein, x is natural number, also, x≤n-m;
S17, the data exchange module is packaged to this described code figure quantity x for needing to print, and obtains meeting institute The data format of communication protocol between data exchange module and the server is stated, then, the code figure quantity x after encapsulation is sent To the server;
S18, the server reads internal memory, never printed after the code figure quantity x that this described needs print is received N-m code figure in select x code figure, and the x code figure in internal memory is marked, labeled as printing state;
Then, the server sends the notification message that code figure is issued to the data exchange module;Wherein, it is described to notify Message carries the x code figure;
S19, the data exchange module parses the notification message, obtains the x code figure, and by the x code figure It is sent to the client;
S20, the client is received after the x code figure, prints the x code figure;
S21, returns to S15, and circulation performs S16-S20, and until the client is completed for printing n-m code figure, then printing is appointed Business is completed.
Also include:During this subtask of client executing R1, when the client receives urgent execution During another task R2 notification message, the client suspends execution task R1, then performs task R2;When the client Perform after completion task R2, then recover to continue executing with task R1.
Also include:During this subtask of client executing R1, performed when the client receives stopping During task R1 notification message, the client cancels task R1.
Also include:After the client is performed to task R1 to be terminated, the server is by the task R1 from described Deleted completely in business file, meanwhile, update the task total amount stored in the assignment file;When the server is received After new task R5, the server imports the details of the new task R5 in the assignment file, meanwhile, update described The task total amount stored in assignment file.
As shown in figure 1, the present invention also provides a kind of code figure print system, including client and server;
The client is configured with data exchange module;
The data exchange module includes:
Network communication module, for realizing that the communication chief between the client and the server connects;
Task total amount acquisition module, request is obtained for receiving the task total amount that the client is sent;To the task Total amount obtains request and is packaged, and obtains meeting the data lattice of communication protocol between the data exchange module and the server Formula, then, the server is sent to by the acquisition request after encapsulation;
Task total amount receiving module, for receiving the task notifications message that the server is returned, to the task notifications Message is parsed, and obtains the task ID of the task total amount and every task, then, by the task total amount and every The task ID of task is sent to the client;
Task Details acquisition module, for receiving the Task Details to appointed task ID that client is sent Obtain request message;The acquisition request message of the Task Details of the appointed task ID is packaged, obtains meeting institute The data format of communication protocol between data exchange module and the server is stated, then, the acquisition after encapsulation is asked to send To the server;
Task Details receiving module, for receiving the task notifications message that the server is returned, and to described Business notification message is parsed, and obtains the Task Details of the appointed task ID, then, by appointing for the appointed task ID Business details are sent to the client;
Printing parameter sending module, for being packaged the printing parameter that client is locally configured, obtains meeting described The data format of communication protocol between data exchange module and the server, then, the printing parameter after encapsulation is sent to The server;
Code figure acquisition module, this code figure quantity x for needing to print for the client to be set is packaged, and is obtained To the data format for meeting communication protocol between the data exchange module and the server, then, by the code figure after encapsulation Quantity x is sent to the server;
Code figure receiving module, for receiving the notification message that the code figure that the server is issued is read, and is parsed described logical Know message, obtain the x code figure, and the x code figure is sent to the client.
The printing process of code figure and system that the present invention is provided, with advantages below:
(1) data exchange module is by Server development and is responsible for maintenance, by data exchange module, realizes printing client Communication and data processing between server, therefore, there is no need to printing client and participate in debugging process, reduce exploitation debugging In the cycle, greatly reduce development difficulty;
(2) data exchange module has versatility, to different printing client, need not adjust substantially, there is multiple well Property processed;
(3) if server has the change such as business or needs to do printing enterprise some limitations, printing enterprise is not required to Intervene, the data exchange module of renewal is embedded into printing client by server.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should Depending on protection scope of the present invention.

Claims (9)

1. a kind of yard figure printing process, it is characterised in that comprise the following steps:
S1, server configure and safeguard with the unique corresponding data exchange module of each client, and by the data exchange mould Block is issued to client, and the client is embedded in corresponding data exchange module;
S2, startup of server data processing threads wait each client to be attached by the data exchange module;
S3, server loading tasks file;Wherein, the assignment file is believed in detail comprising task total amount, the task of every task Breath;The task total amount refers to the number of tasks for needing to perform;Every the Task Details include:Task ID, plan are printed Code figure total quantity and the code figure quantity printed;
S4, client is locally configured, by calling the network communication module in the data exchange module, thus set up with Communication chief's connection of server;
S5, the client sends task total amount to the data exchange module and obtains request;Wherein, the task total amount is obtained Request refers to the total quantity of executable task;
S6, the data exchange module obtains request to the task total amount and is packaged, and obtains meeting the data exchange mould The data format of communication protocol between block and the server, then, the server is sent to by the acquisition request after encapsulation;
S7, the server reads the assignment file, obtains the task total after the task total amount acquisition request is received The task ID of amount and every task;Then, task notifications message is sent to the data exchange module;Wherein, the task Notification message carries the task ID of the task total amount and every task;
S8, the data exchange module is received after the task notifications message, and the task notifications message is parsed, obtained To the task total amount and the task ID of every task, then, the task ID of the task total amount and every task is sent out It is sent to the client;
S9, the client is after the task ID of the task total amount and every task is received, the selection plan based on setting Slightly, select the appointed task ID that need to currently perform, then, send detailed to appointed task ID task to the data exchange module The acquisition request message of thin information;In S9, the selection strategy set as:Priority to each bar task ID is ranked up; Task of selecting the task ID of highest priority to need to perform for this printing;
S10, the data exchange module is packaged to the acquisition request message of the Task Details of the appointed task ID, Obtain meeting the data format of communication protocol between the data exchange module and the server, then, by obtaining after encapsulation Request is taken to be sent to the server;
S11, the server obtains appointing for the appointed task ID after the acquisition for receiving the Task Details is asked Business details, and send task notifications message to the data exchange module;Wherein, the task notifications message is carried State Task Details;
S12, the data exchange module receives the task notifications message, and the task notifications message is parsed, and obtains To the Task Details of the appointed task ID, then, the Task Details of the appointed task ID are sent to described Client;
S13, the client is matched somebody with somebody after the Task Details of the appointed task ID are received to local printing parameter Put, and the printing parameter configured is transferred to the data exchange module;
The printing parameter is packaged by S14, the data exchange module, obtain meeting the data exchange module with it is described The data format of communication protocol between server, then, the server is sent to by the printing parameter after encapsulation;
S15, the server receives the printing parameter;Then, the server is read in the Task Details The code figure quantity of printing and the code figure total quantity of plan printing, the code figure total quantity of note plan printing is n, the code figure printed Quantity is m;Wherein, n, m are natural number, n >=m;
The server judges whether m is 0, if it is, showing the server to perform the appointed task ID first, also not Generated code figure, then:The server obtains n code value of quantity identical with the code figure total quantity n of the plan printing, so Afterwards, the printing parameter is subjected to synthetic operation with each code value respectively, generates n code figure, and the n code figure is temporary Exist in internal memory, wait the request of the client;If not, showing that the server had synthesized n code figure, also, institute State client and printed and also there are n-m unprinted code figures in m code figure, the internal memory, then the server waits described The further request of client;
S16, the client sends this code figure quantity for needing to print to the data exchange module;If this code needed Figure quantity is x;Wherein, x is natural number, also, x≤n-m;
S17, the data exchange module is packaged to this described code figure quantity x for needing to print, and obtains meeting the number According to the data format of communication protocol between Switching Module and the server, then, the code figure quantity x after encapsulation is sent to institute State server;
S18, the server reads internal memory, from unprinted n- after the code figure quantity x that this described needs print is received X code figure is selected in m code figure, and the x code figure in internal memory is marked, labeled as printing state;
Then, the server sends the notification message that code figure is issued to the data exchange module;Wherein, the notification message Carry the x code figure;
S19, the data exchange module parses the notification message, obtains the x code figure, and the x code figure is sent To the client;
S20, the client is received after the x code figure, prints the x code figure;
S21, returns to S15, and circulation performs S16-S20, and until the client is completed for printing n-m code figure, then print job is complete Into.
2. according to claim 1 yard of figure printing process, it is characterised in that the printing parameter includes:Print passage letter One or more in breath, code figure dimension information, code figure resolution information and code diagram shape information.
3. according to claim 1 yard of figure printing process, it is characterised in that in S3, the task ID is task number;Or Person, the task ID is client's name information of this print job.
4. according to claim 1 yard of figure printing process, it is characterised in that in S4, the client is locally configured, Refer specifically to:In client, the ip addresses and port of server are set.
5. according to claim 1 yard of figure printing process, it is characterised in that the priority of the task ID is specially:Appoint The generation time of business, its priority was higher the latest;Or, the importance of task delegation side is higher, then corresponds to the priority of task It is higher.
6. according to claim 1 yard of figure printing process, it is characterised in that also include:When the client executing this During task R1, when the client receives the notification message for promptly performing another task R2, the client Suspend execution task R1, then perform task R2;After the client executing completes task R2, then recover to continue executing with task R1。
7. according to claim 1 yard of figure printing process, it is characterised in that also include:When the client executing this During task R1, when the client receives the notification message for stopping execution task R1, the client, which is cancelled, to be held Row task R1.
8. according to claim 1 yard of figure printing process, it is characterised in that also include:When the client is to task R1 After execution terminates, the server deletes the task R1 completely from the assignment file, meanwhile, update the task text The task total amount stored in part;After the server receives new task R5, the server is by the new task R5 Details import in the assignment file, meanwhile, update the task total amount stored in the assignment file.
9. a kind of yard figure print system, it is characterised in that including client and server;
The client is configured with data exchange module;
The data exchange module includes:
Network communication module, for realizing that the communication chief between the client and the server connects;
Task total amount acquisition module, request is obtained for receiving the task total amount that the client is sent;To the task total amount Obtain request to be packaged, obtain meeting the data format of communication protocol between the data exchange module and the server, Then, the acquisition request after encapsulation is sent to the server;
Task total amount receiving module, for receiving the task notifications message that the server is returned, to the task notifications message Parsed, obtain the task ID of the task total amount and every task, then, by the task total amount and every task Task ID be sent to the client;
Task Details acquisition module, the acquisition of the Task Details to appointed task ID for receiving client transmission Request message;The acquisition request message of the Task Details of the appointed task ID is packaged, obtains meeting the number According to the data format of communication protocol between Switching Module and the server, then, the acquisition request after encapsulation is sent to institute State server;
Task Details receiving module, for receiving the task notifications message that the server is returned, and it is logical to the task Know that message is parsed, obtain the Task Details of the appointed task ID, it is then, the task of the appointed task ID is detailed Thin information is sent to the client;
Printing parameter sending module, for being packaged the printing parameter that client is locally configured, obtains meeting the data The data format of communication protocol between Switching Module and the server, then, the printing parameter after encapsulation is sent to described Server;
Code figure acquisition module, this code figure quantity x for needing to print for the client to be set is packaged, and is accorded with The data format of communication protocol between the data exchange module and the server is closed, then, by the code figure quantity x after encapsulation It is sent to the server;
Code figure receiving module, disappears for receiving the notification message that the code figure that the server is issued is read, and parsing the notice Breath, obtains x code figure, and the x code figure is sent into the client.
CN201410843955.3A 2014-12-30 2014-12-30 A kind of code figure printing process and system Active CN104503716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843955.3A CN104503716B (en) 2014-12-30 2014-12-30 A kind of code figure printing process and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843955.3A CN104503716B (en) 2014-12-30 2014-12-30 A kind of code figure printing process and system

Publications (2)

Publication Number Publication Date
CN104503716A CN104503716A (en) 2015-04-08
CN104503716B true CN104503716B (en) 2017-07-21

Family

ID=52945117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843955.3A Active CN104503716B (en) 2014-12-30 2014-12-30 A kind of code figure printing process and system

Country Status (1)

Country Link
CN (1) CN104503716B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557851A (en) * 2015-09-24 2017-04-05 上海合印包装服务有限公司 A kind of client management system for supporting manufacturing schedule to inquire about
CN110399245B (en) * 2019-07-26 2023-05-12 北京慧眼智行科技有限公司 Code pattern printing control method and device and electronic equipment
CN112286865A (en) * 2020-10-23 2021-01-29 江苏云坤信息科技有限公司 Data exchange method based on government affair field

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1278628A (en) * 1999-06-17 2001-01-03 杭州富通集团公司 Bar code management system for optical cable production
JP2006146478A (en) * 2004-11-18 2006-06-08 Hitachi Information Technology Co Ltd Print server device, print authentication system and print authentication device
CN101697205A (en) * 2009-10-29 2010-04-21 上海索广电子有限公司 Device and method for printing and comparing circulating label bar codes
CN104049921A (en) * 2014-06-04 2014-09-17 北京中科联众科技股份有限公司 Electronic document print management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785385B2 (en) * 2010-05-18 2017-10-10 Ricoh Company, Ltd. Mechanism for tracking printer resource objects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1278628A (en) * 1999-06-17 2001-01-03 杭州富通集团公司 Bar code management system for optical cable production
JP2006146478A (en) * 2004-11-18 2006-06-08 Hitachi Information Technology Co Ltd Print server device, print authentication system and print authentication device
CN101697205A (en) * 2009-10-29 2010-04-21 上海索广电子有限公司 Device and method for printing and comparing circulating label bar codes
CN104049921A (en) * 2014-06-04 2014-09-17 北京中科联众科技股份有限公司 Electronic document print management method

Also Published As

Publication number Publication date
CN104503716A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN107493310B (en) Cloud resource processing method and cloud management platform
CN106897810B (en) Business processing method and system, workflow engine and system and business system
CN102637214B (en) Method and system for synchronizing general data among database services
US20100223446A1 (en) Contextual tracing
CN104503716B (en) A kind of code figure printing process and system
CN109976667A (en) A kind of mirror image management method, apparatus and system
CN100556037C (en) Adopt affirmation mechanism to realize the method for alarm management under a kind of snmp protocol
CN106302074A (en) A kind of moving method virtualizing network function VNF and device
CN103118130A (en) Cluster management method and cluster management system for distributed service
CN102780613A (en) Method and device for communication of boards of distributed device
CN103188101A (en) Distributed type collection scheduling method and device
CN101477386B (en) Timer implementing method and apparatus
CN104317605A (en) Assembly operation method and device
CN107357681A (en) Zookeeper backup management systems and method based on salt
CN110109766A (en) Data request method, device, system, data forwarding device and storage medium
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN102752215A (en) Processing method for VDP (vertical data processing) request messages and edge switch
CN103914286B (en) Management method and manager for tab page in user interface
CN103701720A (en) Communication method with Socket server and online transaction management system
CN103399844A (en) Report generation method and generation device
CN106161082A (en) The method to set up of server UUID, system and baseboard management controller
WO2015184850A1 (en) Method, apparatus and system for collecting stale data
CN102902574A (en) Cooperative processing method and device of multiple information flow nodes
CN105516269A (en) Application configuration method and application configuration device
CN106534259B (en) Web data acquisition method, Web server and web data acquisition system based on Docker

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
PP01 Preservation of patent right

Effective date of registration: 20180709

Granted publication date: 20170721

PP01 Preservation of patent right
PD01 Discharge of preservation of patent

Date of cancellation: 20210709

Granted publication date: 20170721

PD01 Discharge of preservation of patent
PP01 Preservation of patent right

Effective date of registration: 20220930

Granted publication date: 20170721

PP01 Preservation of patent right