CN104503716A - Method and system for printing code picture - Google Patents

Method and system for printing code picture Download PDF

Info

Publication number
CN104503716A
CN104503716A CN201410843955.3A CN201410843955A CN104503716A CN 104503716 A CN104503716 A CN 104503716A CN 201410843955 A CN201410843955 A CN 201410843955A CN 104503716 A CN104503716 A CN 104503716A
Authority
CN
China
Prior art keywords
task
code
client
server
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.)
Granted
Application number
CN201410843955.3A
Other languages
Chinese (zh)
Other versions
CN104503716B (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 invention provides a method and a system for printing a code picture. The system for printing the code picture comprises a client and a server, wherein the client is configured with a data exchange module, and the data exchange module comprises a network communication module, a task total number obtaining module, a task total number receiving module, a task detailed information obtaining module, a task detailed information receiving module, a printing parameter sending module, a code picture obtaining module and a code picture receiving module. The system for printing the code picture has the advantages that (1) the data exchange module is developed and maintained by the server, the participation of a printing client in the debugging process is not needed, and the development and debugging cycle is shortened; (2) the data exchange module has the universality, and does not need to be adjusted aiming at different printing clients, and the duplicability is good; (3) when the server has the change of services or needs to make limitation on printing enterprises, the involving of the printing enterprises is not needed, and only the server needs to embed the updated data exchange module into the printing client.

Description

A kind of code figure printing process and system
Technical field
The invention belongs to a yard figure printing technology, be specifically related to a kind of code figure printing process and system.
Background technology
Code figure, such as, Quick Response Code figure, one-dimension code figure etc., be widely used in all trades and professions of modern society, e.g., product false proof/trace to the source, advertisement pushing, commodity transaction, E-business applications, vehicle management, information transmission etc.
For the widespread use demand of satisfied code figure, code figure is printed and belongs to basis and the technology of key.In prior art, there is the printing enterprise of One's name is legion, the printing client of Ge Jia printing enterprise installation self, it mainly comprises two kinds to the mode that code figure prints:
The first, transmitted by USB flash disk: generate the code figure needing printing at server, then, the code figure that manually need print is stored into USB flash disk; Again USB flash disk is carried into printing enterprise, by artificial, code figure in USB flash disk is imported printing client, finally, printing client is printed code figure; The subject matter that this kind of mode exists is: due to the medium transmitted using USB flash disk as code figure, and code map file is usually comparatively large, and therefore, on the one hand, code figure transmission speed is slow, on the other hand, high to USB flash disk storage capacity requirement, therefore, has the problem that printing efficiency is low.
The second, directly pass through Internet Transmission: generate the code figure needing printing at server, then, confer between server with printing client and communicate and data processing agreement, after reaching an agreement, all debug at server and printing client, make to set up communication port between server and printing client; Finally, the code figure of generation is transferred to printing client by communication port by server.The subject matter that this kind of mode exists is: (1) is in data exchange process, because network service and data processing are all very complicated, so the development difficulty of server and printing client is all very large, in addition, because the technology of server and printing client is asynchronous, therefore, there is the problem of debug difficulties and debugging cycle length; (2) because existing printing client does not have communication protocol debugging capability, therefore, the work difficulty of printing client has been increased the weight of; (3) because server needs to establish a communications link with multiple printing client, and the communication of each printing client and server and data processing agreement all not identical, therefore, also increased the weight of the development and maintenance cost of server.(4), when there is the changes such as business when server or need to do some restrictions to printing enterprise, need printing enterprise to get involved exploitation, affect the cooperation of both sides.
Summary of the invention
For the defect that prior art exists, the invention provides a kind of code figure printing process and system, can effectively solve the problem.
The technical solution used in the present invention is as follows:
The invention provides a kind of code figure printing process, comprise the following steps:
S1, server configures and safeguards corresponding data exchange module unique with each client, and described data exchange module is issued to client, and described client embeds corresponding data exchange module;
S2, startup of server data processing threads, waits for that each client is connected by described data exchange module;
S3, server loading tasks file; Wherein, described assignment file comprises the Task Details of task total amount, every bar task; Described task total amount refers to the number of tasks that needs perform; Described in every bar, Task Details comprises: task ID, the code figure total quantity of planning printing and the code figure quantity of having printed;
S4, client carries out this locality configuration, and by calling the network communication module in described data exchange module, thus foundation is connected with the communication chief of server;
S5, described client sends task total amount to described data exchange module and obtains request; Wherein, described task total amount obtains the total quantity that request refers to executable task;
S6, described data exchange module obtains request to described task total amount and encapsulates, and obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S7, described server, after the described task total amount of reception obtains request, reads described assignment file, obtains the task ID of described task total amount and every bar task; Then, task notifications message is sent to described data exchange module; Wherein, described task notifications message carries the task ID of described task total amount and every bar task;
S8, after described data exchange module receives described task notifications message, described task notifications message is resolved, obtain the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
S9, described client, after the task ID receiving described task total amount and every bar task, based on the selection strategy of setting, selects the current appointed task ID that need perform, then, the acquisition request message to the Task Details of appointed task ID is sent to described data exchange module;
S10, the acquisition request message of described data exchange module to the Task Details of described appointed task ID encapsulates, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S11, described server, after the acquisition request receiving described Task Details, obtains the Task Details of described appointed task ID, and sends task notifications message to described data exchange module; Wherein, described task notifications message carries described Task Details;
S12, described data exchange module receives described task notifications message, and resolves described task notifications message, obtains the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
S13, described client, after the Task Details receiving described appointed task ID, is configured local printing parameter, and the described printing parameter configured is transferred to described data exchange module;
S14, described printing parameter encapsulates by described data exchange module, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
S15, described server receives described printing parameter; Then, described server reads the code figure total quantity of code figure quantity and the plan printing of having printed in described Task Details, and the code figure total quantity of note plan printing is n, and the code figure quantity of having printed is m; Wherein, n, m are natural number, n >=m;
Described server judges whether m is 0, if, show that described server is for perform described appointed task ID first, also non-generated code figure, then: described server obtains n the code value identical with the quantity of the described code figure total quantity n planning to print, then, described printing parameter is carried out synthetic operation with each described code value respectively, generate n code figure, and described n code figure is temporarily stored in internal memory, wait for the request of described client; If not, show that described server had synthesized n code figure, and described client has printed m code figure, also there is n-m the code figure do not printed in described internal memory, then described server waits for the further request of described client;
S16, described client sends this code figure quantity needing printing to described data exchange module; If this code figure quantity needed is x; Wherein, x is natural number, and, x≤n-m;
S17, described data exchange module needs the code figure quantity x of printing to encapsulate to described this, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
S18, described server, after the code figure quantity x receiving this needs printing described, reads internal memory, selects x code figure, and mark described x code figure in internal memory, be labeled as printing state in the n-m never printed a code figure;
Then, described server sends to described data exchange module the notification message that code figure issues; Wherein, described notification message carries described x code figure;
S19, described data exchange module resolves described notification message, obtains described x code figure, and described x code figure is sent to described client;
S20, after described client receives described x code figure, prints described x code figure;
S21, returns S15, and circulation performs S16-S20, until described client is completed for printing n-m code figure, then print job completes.
Preferably, described printing parameter comprises: print one or more in channel information, code figure dimension information, code figure resolution information and code diagram shape information.
Preferably, in S3, described task ID is task number; Or described task ID is client's name information of this print job.
Preferably, in S4, described client carries out this locality configuration, specifically refers to: the ip address and the port that arrange server in client.
Preferably, in S9, the selection strategy of described setting is: sort to the priority of each bar task ID; The highest task ID of priority is selected to be the task that this printing needs to perform.
Preferably, the priority of described task ID is specially: the rise time of task, its priority was higher the latest; Or the importance degree of task delegation side is higher, then the priority of corresponding task is higher.
Preferably, also comprise: in the process of described this subtask of client executing R1, when described client receives the notification message of urgent another task R2 of execution, described client suspends the R1 that executes the task, and then execute the task R2; After described client executing finishes the work R2, then recover to continue the R1 that executes the task.
Preferably, also comprise: in the process of described this subtask of client executing R1, when described client receive stop executing the task the notification message of R1 time, described client cancels task R1.
Preferably, also comprise: after described client terminates task R1 execution, described task R1 deletes completely by described server from described assignment file, meanwhile, upgrades the described task total amount stored in described assignment file; After described server receives new task R5, the details of described new task R5 import in described assignment file by described server, meanwhile, upgrade the described task total amount stored in described assignment file.
The present invention also provides a kind of code figure print system, comprises client and server;
Described client configuration has data exchange module;
Described data exchange module comprises:
Network communication module, connects for the communication chief realized between described client and described server;
Task total amount acquisition module, the task total amount sent for receiving described client obtains request; Obtain request to described task total amount to encapsulate, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task total amount receiver module, for receiving the task notifications message that described server returns, described task notifications message being resolved, obtaining the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
Task Details acquisition module, for receiving the acquisition request message of the Task Details to appointed task ID that client sends; The acquisition request message of the Task Details of described appointed task ID is encapsulated, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task Details receiver module, for receiving the task notifications message that described server returns, and described task notifications message being resolved, obtaining the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
Printing parameter sending module, for encapsulating the printing parameter of client this locality configuration, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
Code figure acquisition module, the code figure quantity x of printing is needed to encapsulate for this described client setting, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
Code figure receiver module, the notification message that the code figure issued for receiving described server reads, and resolve described notification message, obtain described x code figure, and described x code figure is sent to described client.
Code figure provided by the invention printing process and system, have the following advantages:
(1) data exchange module is also responsible for maintenance by Server development, by data exchange module, realizes the communication between printing client and server and data processing, therefore, do not need printing client to participate in debug process, decrease exploitation debugging cycle, greatly reduce development difficulty;
(2) data exchange module has versatility, to different printing client, does not substantially need adjustment, has good replicability;
(3) if when server exists the changes such as business or needs to do some restrictions to printing enterprise, printing enterprise does not need to get involved, the data exchange module of renewal is embedded into printing client by server.
Accompanying drawing explanation
Fig. 1 is the structural representation of code figure print system provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
The invention provides a kind of code figure printing process, comprise the following steps:
S1, server configures and safeguards corresponding data exchange module unique with each client, and described data exchange module is issued to client, and described client embeds corresponding data exchange module;
S2, startup of server data processing threads, waits for that each client is connected by described data exchange module;
S3, server loading tasks file; Wherein, described assignment file comprises the Task Details of task total amount, every bar task; Described task total amount refers to the number of tasks that needs perform; Described in every bar, Task Details comprises: task ID, the code figure total quantity of planning printing and the code figure quantity of having printed;
Herein, task ID is task number; Or described task ID is client's name information of this print job.
Such as, the task total amount that assignment file comprises is 3, is respectively task 1, task 2 and task 3; Wherein, the Task Details of task 1 is: manufacturer 1 entrusts printing 200 Quick Response Code figure; The Task Details of task 2 is: manufacturer 2 entrusts printing 100 Quick Response Code figure; The Task Details of task 3 is: manufacturer 3 entrusts printing 300 Quick Response Code figure.
S4, client carries out this locality configuration, such as, arranges ip address and the port of server in client, and by calling the network communication module in described data exchange module, thus foundation is connected with the communication chief of server;
S5, described client sends task total amount to described data exchange module and obtains request; Wherein, described task total amount obtains the total quantity that request refers to executable task;
S6, described data exchange module obtains request to described task total amount and encapsulates, and obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S7, described server, after the described task total amount of reception obtains request, reads described assignment file, obtains the task ID of described task total amount and every bar task; Then, task notifications message is sent to described data exchange module; Wherein, described task notifications message carries the task ID of described task total amount and every bar task;
S8, after described data exchange module receives described task notifications message, described task notifications message is resolved, obtain the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
S9, described client, after the task ID receiving described task total amount and every bar task, based on the selection strategy of setting, selects the current appointed task ID that need perform, then, the acquisition request message to the Task Details of appointed task ID is sent to described data exchange module;
In this step, the selection strategy of described setting includes but not limited to: sort to the priority of each bar task ID; The highest task ID of priority is selected to be the task that this printing needs to perform.Wherein, the priority of task ID is specially: the rise time of task, its priority was higher the latest; Or the importance degree of task delegation side is higher, then the priority of corresponding task is higher.
Such as, current task total amount is 3, and show that client has three tasks not yet to process, then client need select the current task that will perform, such as, and the 3rd article of task.It is emphasized that client is when performing certain task, flexibly according to demand, can suspend current performing of task, and perform other tasks herein; Or, according to notification message, cancel certain task.Such as, after manufacturer 3 entrusts printing 300 Quick Response Code figure, when this task not yet performs, entrust if manufacturer 3 cancels, then client also can cancel this task.
S10, the acquisition request message of described data exchange module to the Task Details of described appointed task ID encapsulates, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S11, described server, after the acquisition request receiving described Task Details, obtains the Task Details of described appointed task ID, and sends task notifications message to described data exchange module; Wherein, described task notifications message carries described Task Details;
S12, described data exchange module receives described task notifications message, and resolves described task notifications message, obtains the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
S13, described client, after the Task Details receiving described appointed task ID, is configured local printing parameter, and the described printing parameter configured is transferred to described data exchange module;
Wherein, printing parameter comprises: print one or more in channel information, code figure dimension information, code figure resolution information and code diagram shape information.
S14, described printing parameter encapsulates by described data exchange module, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
S15, described server receives described printing parameter; Then, described server reads the code figure total quantity of code figure quantity and the plan printing of having printed in described Task Details, and the code figure total quantity of note plan printing is n, and the code figure quantity of having printed is m; Wherein, n, m are natural number, n >=m;
Described server judges whether m is 0, if, show that described server is for perform described appointed task ID first, also non-generated code figure, then: described server obtains n the code value identical with the quantity of the described code figure total quantity n planning to print, then, described printing parameter is carried out synthetic operation with each described code value respectively, generate n code figure, and described n code figure is temporarily stored in internal memory, wait for the request of described client; If not, show that described server had synthesized n code figure, and described client has printed m code figure, also there is n-m the code figure do not printed in described internal memory, then described server waits for the further request of described client;
Such as, for task 3, manufacturer 3 entrusts printing 300 Quick Response Code code figure.When server receives the printing request of client to task 3 first, disposable generation 300 Quick Response Code code figure, and 300 Quick Response Code code figure are stored in internal memory, time initial, each Quick Response Code code figure is all labeled as non-printing state; Then, as the code figure of 50 in client-requested print job 3,1-50 code figure is handed down to client by server, meanwhile, 1-50 code figure in internal memory is labeled as printing state; As 50 code figure in client again requested printing task 3,51-100 code figure is handed down to client by server, meanwhile, 51-100 code figure in internal memory is labeled as printing state; The rest may be inferred, until when 300 code figure are all handed down to client, show to terminate the execution of task 3, task 3 deleted from assignment file.
S16, described client sends this code figure quantity needing printing to described data exchange module; If this code figure quantity needed is x; Wherein, x is natural number, and, x≤n-m;
S17, described data exchange module needs the code figure quantity x of printing to encapsulate to described this, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
S18, described server, after the code figure quantity x receiving this needs printing described, reads internal memory, selects x code figure, and mark described x code figure in internal memory, be labeled as printing state in the n-m never printed a code figure;
Then, described server sends to described data exchange module the notification message that code figure issues; Wherein, described notification message carries described x code figure;
S19, described data exchange module resolves described notification message, obtains described x code figure, and described x code figure is sent to described client;
S20, after described client receives described x code figure, prints described x code figure;
S21, returns S15, and circulation performs S16-S20, until described client is completed for printing n-m code figure, then print job completes.
Also comprise: in the process of described this subtask of client executing R1, when described client receives the notification message of urgent another task R2 of execution, described client suspends the R1 that executes the task, and then execute the task R2; After described client executing finishes the work R2, then recover to continue the R1 that executes the task.
Also comprise: in the process of described this subtask of client executing R1, when described client receive stop executing the task the notification message of R1 time, described client cancels task R1.
Also comprise: after described client terminates task R1 execution, described task R1 deletes completely by described server from described assignment file, meanwhile, upgrades the described task total amount stored in described assignment file; After described server receives new task R5, the details of described new task R5 import in described assignment file by described server, meanwhile, upgrade the described task total amount stored in described assignment file.
As shown in Figure 1, the present invention also provides a kind of code figure print system, comprises client and server;
Described client configuration has data exchange module;
Described data exchange module comprises:
Network communication module, connects for the communication chief realized between described client and described server;
Task total amount acquisition module, the task total amount sent for receiving described client obtains request; Obtain request to described task total amount to encapsulate, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task total amount receiver module, for receiving the task notifications message that described server returns, described task notifications message being resolved, obtaining the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
Task Details acquisition module, for receiving the acquisition request message of the Task Details to appointed task ID that client sends; The acquisition request message of the Task Details of described appointed task ID is encapsulated, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task Details receiver module, for receiving the task notifications message that described server returns, and described task notifications message being resolved, obtaining the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
Printing parameter sending module, for encapsulating the printing parameter of client this locality configuration, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
Code figure acquisition module, the code figure quantity x of printing is needed to encapsulate for this described client setting, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
Code figure receiver module, the notification message that the code figure issued for receiving described server reads, and resolve described notification message, obtain described x code figure, and described x code figure is sent to described client.
Code figure provided by the invention printing process and system, have the following advantages:
(1) data exchange module is also responsible for maintenance by Server development, by data exchange module, realizes the communication between printing client and server and data processing, therefore, do not need printing client to participate in debug process, decrease exploitation debugging cycle, greatly reduce development difficulty;
(2) data exchange module has versatility, to different printing client, does not substantially need adjustment, has good replicability;
(3) if when server exists the changes such as business or needs to do some restrictions to printing enterprise, printing enterprise does not need to get involved, the data exchange module of renewal is embedded into printing client by server.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.

Claims (10)

1. a code figure printing process, is characterized in that, comprises the following steps:
S1, server configures and safeguards corresponding data exchange module unique with each client, and described data exchange module is issued to client, and described client embeds corresponding data exchange module;
S2, startup of server data processing threads, waits for that each client is connected by described data exchange module;
S3, server loading tasks file; Wherein, described assignment file comprises the Task Details of task total amount, every bar task; Described task total amount refers to the number of tasks that needs perform; Described in every bar, Task Details comprises: task ID, the code figure total quantity of planning printing and the code figure quantity of having printed;
S4, client carries out this locality configuration, and by calling the network communication module in described data exchange module, thus foundation is connected with the communication chief of server;
S5, described client sends task total amount to described data exchange module and obtains request; Wherein, described task total amount obtains the total quantity that request refers to executable task;
S6, described data exchange module obtains request to described task total amount and encapsulates, and obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S7, described server, after the described task total amount of reception obtains request, reads described assignment file, obtains the task ID of described task total amount and every bar task; Then, task notifications message is sent to described data exchange module; Wherein, described task notifications message carries the task ID of described task total amount and every bar task;
S8, after described data exchange module receives described task notifications message, described task notifications message is resolved, obtain the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
S9, described client, after the task ID receiving described task total amount and every bar task, based on the selection strategy of setting, selects the current appointed task ID that need perform, then, the acquisition request message to the Task Details of appointed task ID is sent to described data exchange module;
S10, the acquisition request message of described data exchange module to the Task Details of described appointed task ID encapsulates, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
S11, described server, after the acquisition request receiving described Task Details, obtains the Task Details of described appointed task ID, and sends task notifications message to described data exchange module; Wherein, described task notifications message carries described Task Details;
S12, described data exchange module receives described task notifications message, and resolves described task notifications message, obtains the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
S13, described client, after the Task Details receiving described appointed task ID, is configured local printing parameter, and the described printing parameter configured is transferred to described data exchange module;
S14, described printing parameter encapsulates by described data exchange module, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
S15, described server receives described printing parameter; Then, described server reads the code figure total quantity of code figure quantity and the plan printing of having printed in described Task Details, and the code figure total quantity of note plan printing is n, and the code figure quantity of having printed is m; Wherein, n, m are natural number, n >=m;
Described server judges whether m is 0, if, show that described server is for perform described appointed task ID first, also non-generated code figure, then: described server obtains n the code value identical with the quantity of the described code figure total quantity n planning to print, then, described printing parameter is carried out synthetic operation with each described code value respectively, generate n code figure, and described n code figure is temporarily stored in internal memory, wait for the request of described client; If not, show that described server had synthesized n code figure, and described client has printed m code figure, also there is n-m the code figure do not printed in described internal memory, then described server waits for the further request of described client;
S16, described client sends this code figure quantity needing printing to described data exchange module; If this code figure quantity needed is x; Wherein, x is natural number, and, x≤n-m;
S17, described data exchange module needs the code figure quantity x of printing to encapsulate to described this, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
S18, described server, after the code figure quantity x receiving this needs printing described, reads internal memory, selects x code figure, and mark described x code figure in internal memory, be labeled as printing state in the n-m never printed a code figure;
Then, described server sends to described data exchange module the notification message that code figure issues; Wherein, described notification message carries described x code figure;
S19, described data exchange module resolves described notification message, obtains described x code figure, and described x code figure is sent to described client;
S20, after described client receives described x code figure, prints described x code figure;
S21, returns S15, and circulation performs S16-S20, until described client is completed for printing n-m code figure, then print job completes.
2. according to claim 1 yard of figure printing process, is characterized in that, described printing parameter comprises: print one or more in channel information, code figure dimension information, code figure resolution information and code diagram shape information.
3. according to claim 1 yard of figure printing process, is characterized in that, in S3, described task ID is task number; Or described task ID is client's name information of this print job.
4. according to claim 1 yard of figure printing process, is characterized in that, in S4, described client carries out this locality configuration, specifically refers to: the ip address and the port that arrange server in client.
5. according to claim 1 yard of figure printing process, is characterized in that, in S9, the selection strategy of described setting is: sort to the priority of each bar task ID; The highest task ID of priority is selected to be the task that this printing needs to perform.
6. according to claim 5 yard of figure printing process, is characterized in that, the priority of described task ID is specially: the rise time of task, its priority was higher the latest; Or the importance degree of task delegation side is higher, then the priority of corresponding task is higher.
7. according to claim 5 yard of figure printing process, it is characterized in that, also comprise: in the process of described this subtask of client executing R1, when described client receives the notification message of urgent another task R2 of execution, described client suspends the R1 that executes the task, and then execute the task R2; After described client executing finishes the work R2, then recover to continue the R1 that executes the task.
8. according to claim 5 yard of figure printing process, is characterized in that, also comprise: in the process of described this subtask of client executing R1, when described client receive stop executing the task the notification message of R1 time, described client cancels task R1.
9. according to claim 1 yard of figure printing process, it is characterized in that, also comprise: after described client terminates task R1 execution, described task R1 deletes completely by described server from described assignment file, meanwhile, the described task total amount stored in described assignment file is upgraded; After described server receives new task R5, the details of described new task R5 import in described assignment file by described server, meanwhile, upgrade the described task total amount stored in described assignment file.
10. a code figure print system, is characterized in that, comprises client and server;
Described client configuration has data exchange module;
Described data exchange module comprises:
Network communication module, connects for the communication chief realized between described client and described server;
Task total amount acquisition module, the task total amount sent for receiving described client obtains request; Obtain request to described task total amount to encapsulate, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task total amount receiver module, for receiving the task notifications message that described server returns, described task notifications message being resolved, obtaining the task ID of described task total amount and every bar task, then, the task ID of described task total amount and every bar task is sent to described client;
Task Details acquisition module, for receiving the acquisition request message of the Task Details to appointed task ID that client sends; The acquisition request message of the Task Details of described appointed task ID is encapsulated, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the acquisition request after encapsulation is sent to described server;
Task Details receiver module, for receiving the task notifications message that described server returns, and described task notifications message being resolved, obtaining the Task Details of described appointed task ID, then, the Task Details of described appointed task ID is sent to described client;
Printing parameter sending module, for encapsulating the printing parameter of client this locality configuration, obtains the data layout meeting communication protocol between described data exchange module and described server, then, the printing parameter after encapsulation is sent to described server;
Code figure acquisition module, the code figure quantity x of printing is needed to encapsulate for this described client setting, obtain the data layout meeting communication protocol between described data exchange module and described server, then, the code figure quantity x after encapsulation is sent to described server;
Code figure receiver module, the notification message that the code figure issued for receiving described server reads, and resolve described notification message, obtain described x code figure, and described x code figure is sent to described 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 true CN104503716A (en) 2015-04-08
CN104503716B 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)

Cited By (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
CN110399245A (en) * 2019-07-26 2019-11-01 北京慧眼智行科技有限公司 Code figure printing control method, device and electronic equipment
CN112286865A (en) * 2020-10-23 2021-01-29 江苏云坤信息科技有限公司 Data exchange method based on government affair field

Citations (5)

* 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
US20110286031A1 (en) * 2010-05-18 2011-11-24 Robert Frederic Jessen Mechanism for Tracking Printer Resource Objects
CN104049921A (en) * 2014-06-04 2014-09-17 北京中科联众科技股份有限公司 Electronic document print management method

Patent Citations (5)

* 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
US20110286031A1 (en) * 2010-05-18 2011-11-24 Robert Frederic Jessen Mechanism for Tracking Printer Resource Objects
CN104049921A (en) * 2014-06-04 2014-09-17 北京中科联众科技股份有限公司 Electronic document print management method

Cited By (4)

* 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
CN110399245A (en) * 2019-07-26 2019-11-01 北京慧眼智行科技有限公司 Code figure printing control method, device and electronic equipment
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

Also Published As

Publication number Publication date
CN104503716B (en) 2017-07-21

Similar Documents

Publication Publication Date Title
KR101882426B1 (en) Software updating method, system, and device
CN103209223A (en) Distributed application conversation information sharing method and system and application server
CN110138606B (en) Container network configuration method and system
RU2683630C2 (en) Method for update of nsd network service descriptor and device
CN101227379B (en) Method and system for implementation of data synchronization
CN110138876B (en) Task deployment method, device, equipment and platform
CN101360127A (en) File updating method and transmission system
CN103164244A (en) Firmware system long-distance updating methods based on unified extensible firmware interface
CN104506462A (en) MAC (Media Access Control) address management method and equipment in distributed switch
CN104125558A (en) Client-based service processing method, equipment and system
CN107479984A (en) Message based distributed space data processing system
CN101986614B (en) Logistics application-oriented universal industry service bus system and implement method thereof
CN104503716A (en) Method and system for printing code picture
CN110581893A (en) data transmission method and device, routing equipment, server and storage medium
CN107682460A (en) A kind of distributed storage trunked data communication method and system
CN108304270B (en) Communication method, device and computer readable storage medium
JP5517463B2 (en) Thin client system, management server and thin client terminal
CN103677975A (en) System and method for having access to internal objects of application systems
JP2006235831A (en) Condition management device, method, and program
CN106161082A (en) The method to set up of server UUID, system and baseboard management controller
CN105516269A (en) Application configuration method and application configuration device
CN108804197B (en) Dynamic componentization implementation method, device, equipment and storage medium
CN101526959A (en) Data storing method and device
CN107220129B (en) Communication method and system between software modules
CN103197950A (en) Plug-in virtual machine implementing method

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

Effective date of registration: 20180709

Granted publication date: 20170721

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210709

Granted publication date: 20170721

PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20220930

Granted publication date: 20170721