CN111427521B - Electronic face sheet printing method, server, system and equipment - Google Patents
Electronic face sheet printing method, server, system and equipment Download PDFInfo
- Publication number
- CN111427521B CN111427521B CN202010202549.4A CN202010202549A CN111427521B CN 111427521 B CN111427521 B CN 111427521B CN 202010202549 A CN202010202549 A CN 202010202549A CN 111427521 B CN111427521 B CN 111427521B
- Authority
- CN
- China
- Prior art keywords
- printing
- client
- data message
- print job
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000002159 abnormal effect Effects 0.000 claims abstract description 20
- 230000001121 heart beat frequency Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 6
- 230000001815 facial effect Effects 0.000 claims description 2
- 230000007246 mechanism Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1293—Printer information exchange with computer
- G06F3/1295—Buffering means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1275—Print workflow management, e.g. defining or changing a workflow, cross publishing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The invention relates to an electronic face sheet printing method, a server, a system and equipment, and belongs to the technical field of printing. The method is based on the heartbeat of a client, and establishes long connection with the client; receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message; and receiving a print job pulling request based on the batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job. Based on the equipment heartbeat mechanism, a long connection is established between the client and the server, so that a printing instruction and a printing data packet are accurately transmitted, timeliness and accuracy of the printing instruction are guaranteed, and the abnormal situations that a packet is lost, instruction pushing delay and the like exist in remote equipment electronic surface single printing are solved.
Description
Technical Field
The invention belongs to the technical field of printing, and particularly relates to an electronic face sheet printing method, a server, a system and equipment.
Background
In the existing technical solutions of the industry, abnormal conditions such as packet loss, instruction pushing delay and the like exist, the rapid cloud printing is based on a device heartbeat mechanism, a printing instruction is accurately transmitted, a data packet is printed, and timeliness and accuracy of the printing instruction are guaranteed.
Along with the progress of science and technology, the development of the express industry is very popular. In the face of massive express items, people invent electronic face sheets for recording express company information and goods receiving and transmitting customer information. The electronic bill printing speed is high, the occupied area is small, the order matching is automatically completed when the order information applies for the express number, and the time for checking the express bill and the order information by a worker during traditional delivery is saved. Therefore, the electronic bill is huge for the enabling of the express industry. The electronic bill effectively saves labor cost for the express company, and based on the electronic bill, the company integrates various system capacities such as big data analysis, intelligent sorting, freight monitoring, intelligent scanning and the like, so that the overall operation efficiency of the express company is improved.
However, in the process of performing electronic face sheet printing, a server end of a developer generally initiates printing pushing, print data is transmitted to an application program interface and then is transmitted downwards, and due to the complexity and diversity of network environments, when a bottom layer protocol sends a data packet, a message is difficult to ensure that the pushing is 100% accurate, so that the condition of packet loss exists in the message, whether a printing end receives a printing instruction cannot be known definitely, and the printing accuracy is reduced.
Disclosure of Invention
In order to at least solve the problems in the prior art, the invention provides an electronic face sheet printing method, a server, a system and equipment, which have the characteristics of high printing accuracy, no packet loss phenomenon and the like.
The technical scheme provided by the invention is as follows:
in one aspect, an electronic face sheet printing method applied to the express industry comprises the following steps:
based on the heartbeat of a client, establishing long connection with the client, generating a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch code in a preset database;
receiving a print job request, and caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message;
and receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client terminal, and sending the unprinted data message to a printing terminal so that the printing terminal prints an electronic receipt of the unprinted job.
Optionally, based on the heartbeat of the client, establishing a long connection with the client, generating a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch code in a preset database, and further including:
detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
Optionally, after sending the unprinted data packet to the printing terminal, the method further includes:
updating a print job list;
and sending a printing state write-back to the client and/or the printing terminal.
Optionally, the method further comprises:
judging whether the preset database has faults or not;
if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the target printing terminal.
In yet another aspect, a server includes: the device comprises a generating module, a receiving module and a printing module;
the generating module is used for establishing long connection with the client based on the heartbeat of the client, generating batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch codes in a preset database;
the receiving module is used for receiving a print job request, caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message;
the printing module is used for receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client terminal, and sending the unprinted data message to the printing terminal so that the printing terminal prints an electronic receipt of the unprinted job.
In yet another aspect, an electronic facial sheet printing system includes: the server, the client, a preset database and the printing terminal; the client, the preset database and the printing terminal are respectively connected with the server;
the client is used for acquiring a print task and pushing a print task request to the server;
the server is used for establishing long connection with the client based on the heartbeat of the client, generating batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch codes in a preset database; receiving a print job request, and caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message; receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client terminal, and sending the unprinted data message to a printing terminal so that the printing terminal prints an electronic receipt of the unprinted job;
the preset database is used for caching the batch code and the printing data message;
the printing terminal is used for printing the electronic face sheets of the unprinted tasks.
Optionally, the server is further configured to determine whether the preset database fails; if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the target printing terminal.
Optionally, the server is further configured to update the print job list; and sending a printing state write-back to the client and/or the printing terminal.
Optionally, the server is further configured to:
detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
In yet another aspect, an electronic face sheet printing apparatus includes: a processor, and a memory coupled to the processor;
the memory is used for storing a computer program; the processor is configured to invoke the computer program to execute the electronic-surface-sheet printing method described in any one of the above.
The beneficial effects of the invention are as follows:
the embodiment of the invention provides an electronic face list printing method, a server, a system and equipment, wherein the method establishes long connection with a client based on the heartbeat of the client, generates batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caches the batch codes in a preset database; receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message; and receiving a print job pulling request based on the batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job. Based on the equipment heartbeat mechanism, a long connection is established between the client and the server, so that a printing instruction and a printing data packet are accurately transmitted, timeliness and accuracy of the printing instruction are guaranteed, and the abnormal situations that a packet is lost, instruction pushing delay and the like exist in remote equipment electronic surface single printing are solved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an electronic surface sheet printing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic surface sheet printing system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic surface sheet printing apparatus according to an embodiment of the present invention.
Reference numerals:
21-a generation module; 22-a receiving module; a 23-print module; 31-a server; 32-a client; 33-a preset database; 34-a print terminal; 41-a processor; 42-memory.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
Examples:
in order to solve the technical problems set forth in the present invention, an embodiment of the present invention provides an electronic face sheet printing method.
Fig. 1 is a schematic flow chart of an electronic surface sheet printing method provided by an embodiment of the present invention, please refer to fig. 1, and the electronic surface sheet printing method provided by the embodiment of the present invention may include the following steps:
s11, based on heartbeat of the client, establishing long connection with the client, generating a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to heartbeat frequency, and caching the batch code in a preset database.
Specifically, in the embodiment of the present invention, the server may establish a long connection with the client based on the heartbeat of the client, and the server may obtain the batch code according to a preset method, for example, in this embodiment, the preferred server generates the batch code according to a pseudo-random algorithm, or may generate the batch code according to other methods, which is not limited herein. Optionally, selecting the preset database as the Redis, and the server may cache the obtained lot code in the Redis. It should be noted that the preset database is selected as the dis only by way of example, and not by way of limitation.
In this embodiment, "heartbeat" does not refer to physiological heartbeat of a person or living being, and refers to that information is periodically sent between the main server and each device to determine the health condition of the device and determine whether the other party "survives". In this embodiment, the heartbeat period may be 1 second, and if no information is received for more than 1 second, it is determined that there is a possibility of packet loss, and early warning is sent. Long connection means that a plurality of data packets can be continuously transmitted over one connection, and if no data packet is transmitted during connection maintenance, both sides are required to transmit a link detection packet. Redis is an open-source log-type Key-Value database written and supported by ANSI C language and capable of being based on memory and being persistent.
In this embodiment, the heartbeat cycle request server obtains the lot code.
Optionally, based on the heartbeat of the client, establishing a long connection with the client, generating a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch code in a preset database, and further comprising: detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
Specifically, in order to ensure that the printed electronic bill is accurate and has no packet loss, the heartbeat time of the equipment can be recorded, the working state of the equipment can be detected, and if the working state is not online or other abnormal conditions, the abnormal warning information of the printing terminal is sent to the preset terminal.
S12, receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message.
Optionally, the printing data message includes: bill number, express information, etc. After the freight list number and the express information are acquired, an order can be acquired, and the order is added into a print task list.
Specifically, the client pushes a print job request to the server, the server receives the print job request, generates a batch code based on a pseudo-random algorithm according to the print job request, and acquires an order according to the batch code and express information carried in the print job request. For example, information such as a waybill number, a waybill transfer station, etc. may be obtained to obtain complete order information and add the order to the print job list.
Alternatively, in order to ensure accuracy of the information, the status of the printing apparatus may also be detected again before the lot code is acquired, for example, to see whether the printing apparatus is online or not, or the like.
For example, the user may input the express information, such as sender information, recipient information, etc., through the client, the client sends a print job request carrying the express information to the server, the server receives the print job request, and obtains the cached lot code in a preset database (preferably Redis), thereby obtaining the information of the bill number, the transfer station, etc., generating a complete order, and adding the order to the print job list to wait for printing.
S13, receiving a print job pulling request based on a batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job.
Specifically, the printing terminal or the client sends a print job pulling request to the server, the server receives the print job pulling request, pulls an unprinted job in a print job list according to the print job pulling request, and sends the unprinted job to the printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job.
For example, the client requests the server to acquire the print task in the preset database based on the batch code acquired based on the heartbeat frequency, receives the print data message acquired based on the batch code, informs the server that the print task is successfully acquired, and sends the unprinted data message to the printing terminal so that the printing terminal prints the electronic face sheet of the unprinted task.
For example, the user may send a print job pulling request to the server through the print terminal, i.e. the printer, or the client sends the unprinted job in the print job list to the print terminal after receiving the print job pulling request, thereby completing printing of the electronic face sheet of the unprinted job.
Optionally, after sending the unprinted job to the printing terminal, further comprising: updating a print job list; and sending the printing state write-back to the client and/or the printing terminal.
Specifically, to further ensure that no packet loss occurs, after the unprinted job is sent to the printing terminal, the print job list is updated, and the status of the printed job is updated to printed. After printing is finished, the printing state write-back can be sent to the client and/or the printing terminal, so that a user can know the printing state, and the printing is secondarily confirmed to have no packet loss phenomenon.
To ensure the accuracy of printing, further comprising: and deleting the batch code printed in the preset database.
Optionally, the method further comprises: judging whether a preset database fails or not; if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the target printing terminal.
For example, after the client and the server establish a long connection, whether the system is degraded or not can be judged, namely whether the redis has a fault or not is judged, if the redis has a fault, the availability of the heartbeat of the equipment is ensured, the print task is checked in the Map memory, and the print task is pushed to the target print terminal or the client.
The electronic face list printing method provided by the embodiment of the invention comprises the steps of establishing long connection with a client based on heartbeat of the client, generating batch codes based on a pseudo-random algorithm according to batch code acquisition requests sent by the client according to heartbeat frequency, and caching the batch codes in a preset database; receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message; and receiving a print job pulling request based on the batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job. Based on the equipment heartbeat mechanism, a long connection is established between the client and the server, so that a printing instruction and a printing data packet are accurately transmitted, timeliness and accuracy of the printing instruction are guaranteed, and the abnormal situations that a packet is lost, instruction pushing delay and the like exist in remote equipment electronic surface single printing are solved.
Examples:
based on a general inventive concept, the embodiment of the invention also provides a server.
Fig. 2 is a schematic structural diagram of a server according to an embodiment of the present invention.
Referring to fig. 2, a server provided in an embodiment of the present invention includes: a generating module 21, a receiving module 22 and a printing module 23;
the generating module 21 is configured to establish a long connection with the client based on the heartbeat of the client, generate a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and cache the batch code in a preset database;
the receiving module 22 is configured to receive a print job request, and buffer a print data message in a preset database according to the print job request, where the print job request carries the print data message;
the printing module 23 is configured to receive a print job pulling request based on a batch code, pull a print data packet in a preset database according to the print job pulling request, send the print data packet to the client terminal, and send an unprinted data packet to the printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job.
With respect to the above-described embodiments, the specific manner in which the various modules perform operations has been described in detail in connection with embodiments of the method, and will not be described in detail herein.
The server provided by the embodiment of the invention establishes long connection with a client based on the heartbeat of the client, generates batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caches the batch codes in a preset database; receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message; and receiving a print job pulling request based on the batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of the unprinted job. Based on the equipment heartbeat mechanism, a long connection is established between the client and the server, so that a printing instruction and a printing data packet are accurately transmitted, timeliness and accuracy of the printing instruction are guaranteed, and the abnormal situations that a packet is lost, instruction pushing delay and the like exist in remote equipment electronic surface single printing are solved.
Examples:
based on a general inventive concept, the embodiment of the invention also provides an electronic surface sheet printing system.
Fig. 3 is a schematic structural diagram of an electronic surface sheet printing system according to an embodiment of the present invention.
Referring to fig. 3, an electronic surface sheet printing system provided in an embodiment of the present invention includes: the server 31, the client 32, the preset database 33, and the print terminal 34 described in any of the above embodiments; the client, the preset database and the printing terminal are respectively connected with the server.
A client 32, configured to obtain a print job and push a print job request to a server;
the server 31 is configured to establish a long connection with the client based on the heartbeat of the client, generate a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and cache the batch code in a preset database; receiving a print job request, and caching the print data message in a preset database according to the print job request, wherein the print job request carries the print data message; receiving a print job pulling request based on a batch code, pulling a print data message in a preset database according to the print job pulling request, sending the print data message to a client terminal, and sending an unprinted data message to a printing terminal, so that the printing terminal prints an electronic receipt of an unprinted job;
a preset database 33 for caching batch codes and print data messages;
and the printing terminal 34 is used for printing the electronic menu of the unprinted task.
Optionally, the server 31 is further configured to determine whether the preset database fails; if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the target printing terminal.
Optionally, the server 31 is further configured to update a print job list; and sending the printing state write-back to the client and/or the printing terminal.
Optionally, the server 31 is further configured to: detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
The electronic face list printing system provided by the embodiment of the invention comprises the server, the client, the preset database and the printing terminal, and based on the equipment heartbeat mechanism, the long connection is established between the client and the server, so that the printing instruction and the printing data packet are accurately transmitted, the timeliness and the accuracy of the printing instruction are ensured, and the abnormal conditions that the package loss exists in the electronic face list printing of the remote equipment, the instruction pushing delay and the like are solved.
Examples:
based on one general inventive concept, the embodiment of the invention also provides electronic surface sheet printing equipment.
Fig. 4 is a schematic structural diagram of an electronic surface sheet printing apparatus according to an embodiment of the present invention.
Referring to fig. 4, an electronic surface sheet printing apparatus provided in an embodiment of the present invention may include: a processor 41 and a memory 42 connected to the processor 41;
the memory 42 is used for storing a computer program; the processor 41 is configured to invoke a computer program to execute the electronic-surface-sheet printing method described in any of the above embodiments.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.
Claims (10)
1. The electronic face sheet printing method is characterized by being applied to the express industry and comprising the following steps of:
based on the heartbeat of a client, establishing long connection with the client, generating a batch code based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch code in a preset database;
receiving a print job request, and caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message;
and receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client, and sending the unprinted data message to a printing terminal so that the printing terminal prints an electronic menu of the unprinted job.
2. The method according to claim 1, wherein the establishing a long connection with the client based on the client heartbeat, generating a lot code based on a pseudo-random algorithm according to a lot code acquisition request sent by the client according to a heartbeat frequency, and caching the lot code in a preset database, further comprises:
detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
3. The method of claim 1, further comprising, after transmitting the unprinted data message to a printing terminal:
updating a print job list;
and sending a printing state write-back to the client and/or the printing terminal.
4. The method as recited in claim 1, further comprising:
judging whether the preset database has faults or not;
if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the printing terminal.
5. A server, comprising: the device comprises a generating module, a receiving module and a printing module;
the generating module is used for establishing long connection with the client based on the heartbeat of the client, generating batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch codes in a preset database;
the receiving module is used for receiving a print job request, caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message;
the printing module is used for receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client, and sending the unprinted data message to a printing terminal so that the printing terminal prints an electronic receipt of an unprinted job.
6. An electronic facial sheet printing system, comprising: the server, client, preset database, and print terminal of claim 5; the client, the preset database and the printing terminal are respectively connected with the server;
the client is used for acquiring a print task and pushing a print task request to the server;
the server is used for establishing long connection with the client based on the heartbeat of the client, generating batch codes based on a pseudo-random algorithm according to a batch code acquisition request sent by the client according to the heartbeat frequency, and caching the batch codes in a preset database; receiving a print job request, and caching a print data message in the preset database according to the print job request, wherein the print job request carries the print data message; receiving a print job pulling request based on a batch code, pulling a print data message in the preset database according to the print job pulling request, sending the print data message to the client, and sending the unprinted data message to a printing terminal so that the printing terminal prints an electronic receipt of the unprinted job;
the preset database is used for caching the batch code and the printing data message;
the printing terminal is used for printing the electronic face sheets of the unprinted tasks.
7. The system of claim 6, wherein the server is further configured to determine whether the preset database is malfunctioning; if the printing terminal fails, the printing task is checked in the memory, and the printing task is sent to the printing terminal.
8. The system of claim 6, wherein the server is further configured to update a print job list; and sending a printing state write-back to the client and/or the printing terminal.
9. The system of claim 6, wherein the server is further configured to:
detecting the working state of the printing terminal, and if the working state of the printing terminal is abnormal, sending abnormal warning information of the printing terminal to a preset terminal.
10. An electronic face sheet printing apparatus, comprising: a processor, and a memory coupled to the processor;
the memory is used for storing a computer program; the processor is configured to invoke the computer program to execute the electronic-surface-sheet printing method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010202549.4A CN111427521B (en) | 2020-03-20 | 2020-03-20 | Electronic face sheet printing method, server, system and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010202549.4A CN111427521B (en) | 2020-03-20 | 2020-03-20 | Electronic face sheet printing method, server, system and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111427521A CN111427521A (en) | 2020-07-17 |
CN111427521B true CN111427521B (en) | 2024-04-09 |
Family
ID=71549746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010202549.4A Active CN111427521B (en) | 2020-03-20 | 2020-03-20 | Electronic face sheet printing method, server, system and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111427521B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111950242B (en) * | 2020-07-31 | 2024-09-13 | 上海中通吉网络技术有限公司 | Method, system, equipment and storage medium for generating centralized international logistics face sheets |
CN112181326A (en) * | 2020-09-29 | 2021-01-05 | 上海汉图科技有限公司 | Printing method, device and equipment |
CN112783454A (en) * | 2021-02-01 | 2021-05-11 | 江苏保旺达软件技术有限公司 | Virtual printing method, system, electronic equipment and storage medium |
CN113627863A (en) * | 2021-10-14 | 2021-11-09 | 深圳美云集网络科技有限责任公司 | E-commerce platform logistics aggregation method and system, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004334447A (en) * | 2003-05-06 | 2004-11-25 | Kyocera Mita Corp | Printed matter order receiving system through network |
US7692807B1 (en) * | 2004-04-01 | 2010-04-06 | Applied Discovery, Inc. | System and method for batch printing high-volume electronic documents from a network |
CN109918028A (en) * | 2019-01-28 | 2019-06-21 | 苏州凸现信息科技有限公司 | A kind of computer based remote printing method and its system |
-
2020
- 2020-03-20 CN CN202010202549.4A patent/CN111427521B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004334447A (en) * | 2003-05-06 | 2004-11-25 | Kyocera Mita Corp | Printed matter order receiving system through network |
US7692807B1 (en) * | 2004-04-01 | 2010-04-06 | Applied Discovery, Inc. | System and method for batch printing high-volume electronic documents from a network |
CN109918028A (en) * | 2019-01-28 | 2019-06-21 | 苏州凸现信息科技有限公司 | A kind of computer based remote printing method and its system |
Non-Patent Citations (1)
Title |
---|
张璘 ; 李明明 ; 冯陈伟 ; .基于Android的无线打印点餐系统.厦门理工学院学报.2016,(第05期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN111427521A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111427521B (en) | Electronic face sheet printing method, server, system and equipment | |
CN105357038B (en) | Monitor the method and system of cluster virtual machine | |
CN106777026B (en) | Method, device and system for supporting final consistency of micro-service architecture transaction | |
US9369521B2 (en) | Naming of distributed business transactions | |
CN106649632B (en) | Method of data synchronization and system | |
CN109660426B (en) | Monitoring method and system, computer readable medium and electronic device | |
CN105302676B (en) | Active and standby the mechanism data transmission method and device of a kind of distributed file system | |
US8266301B2 (en) | Deployment of asynchronous agentless agent functionality in clustered environments | |
CN110995851B (en) | Message processing method, device, storage medium and equipment | |
CN103678130A (en) | Automated performance test method and platform | |
CN115640110B (en) | Distributed cloud computing system scheduling method and device | |
US11271798B2 (en) | Automated network link repair | |
CN109299124B (en) | Method and apparatus for updating a model | |
CN109409948B (en) | Transaction abnormity detection method, device, equipment and computer readable storage medium | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
CN113590492B (en) | Information processing method, system, electronic device and computer readable storage medium | |
CN108880994B (en) | Method and device for retransmitting mails | |
CN110875832A (en) | Abnormal service monitoring method, device and system and computer readable storage medium | |
CN117370053A (en) | Information system service operation-oriented panoramic monitoring method and system | |
CN110300021B (en) | Method and computing device for computing data processing time of recording bulletin of substation | |
CN111367934A (en) | Data consistency checking method, device, server and medium | |
CN115545452B (en) | Operation and maintenance method, operation and maintenance system, equipment and storage medium | |
CN114598697B (en) | Method and device for transmitting file and computer readable storage medium | |
JP2007264921A (en) | Performance information extraction program and apparatus | |
CN118631827B (en) | Mirror image distribution method and device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |