Image printing method, apparatus, equipment and media based on data transmission verification

By simultaneously verifying the received file data and creating a print job based on the data volume, and generating print instructions, the problem of inaccurate identification of error nodes in inkjet printing is solved, thus improving printing efficiency.

CN115686386BActive Publication Date: 2025-10-28SHENZHEN HOSONSOFT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110832836.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2025-10-28
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

In the inkjet printing process, there are multiple processing nodes, which makes it difficult to accurately and promptly determine the location of the error node when a printing error occurs, resulting in low printing efficiency.

Method used

When receiving the file data of the document to be printed, a verification is performed simultaneously, and a print job is created based on the amount of file data. A print instruction is generated based on the file data verification result, and the printing device is controlled to execute the corresponding print job, including printing or not printing the job.

Benefits of technology

It reduces the error rate of printed documents during the printing stage and improves printing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115686386B_ABST
    Figure CN115686386B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of industrial inkjet printing technology and solves the technical problem in existing technologies where, due to the presence of multiple processing nodes during the printing process, the location of printing errors cannot be accurately and quickly determined, leading to low printing efficiency. This invention provides an image printing method, apparatus, device, and medium based on data transmission verification. The method includes: synchronously verifying received file data; establishing a print job after the amount of received file data reaches a certain level; generating a print instruction after all file data has been verified; and executing the print job according to the print instruction. This invention also provides an apparatus, device, and storage medium for performing the above method. By synchronously verifying received file data, this invention reduces printing errors caused by mismatched or incomplete file data during actual printing, thereby improving printing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial inkjet printing technology, and in particular to an image printing method, apparatus, device, and medium based on data transmission verification. Background Technology

[0002] Inkjet printing technology is the process by which printing control software controls the printer to spray ink based on PRN data that the printer can recognize, forming patterns or text on the printing medium to obtain a printed image.

[0003] Because inkjet printing involves multiple processing nodes, it is often impossible to accurately and promptly identify the location of the erroneous node when a printing error occurs. This can cause significant trouble for maintenance and lead to low printing efficiency. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide an image printing method, apparatus, device and medium based on data transmission verification, to solve the technical problem in the prior art that, due to the existence of multiple processing nodes in the printing process, the location of the error node cannot be accurately and quickly determined when a printing error occurs, resulting in low printing efficiency.

[0005] The technical solution adopted in this invention is:

[0006] This invention provides an image printing method based on data transmission verification, the method comprising:

[0007] S1: Receive the file data of the document to be printed;

[0008] S2: Determine the amount of data in the received file data. When the amount of data reaches the file data amount threshold, establish a print job for the file to be printed.

[0009] S3: Verify the received file data and obtain a print command that matches the verification result;

[0010] S4: Execute the printing task according to the printing instructions.

[0011] Preferably, S2 includes:

[0012] S21: Get the current printing stage of the print job;

[0013] S22: If the current printing stage is the start stage or the end stage, the file data currently being transmitted is split into multiple file sub-data during the transmission process based on the file data volume threshold, resulting in multiple PRN data packets;

[0014] S23: If the current printing stage is a stable stage, when the amount of the received current file data reaches the file data amount threshold, a corresponding PRN task is established and transmission continues to obtain a PRN data packet;

[0015] S24: Repeat steps S21 to S23 to create print jobs corresponding to each PRN data packet received continuously, thereby forming the print job of the document to be printed.

[0016] Preferably, S3 includes:

[0017] S301: Obtain the target file format and file tag of the file data that are recognizable by the printing device;

[0018] S302: Based on the file format information in the file tag and the target file format, verify the consistency of the file type of the file to be printed, and obtain the consistency verification result of the file type of the file to be printed;

[0019] S303: Generate the print command based on the consistency verification result.

[0020] Preferably, if the file type of the document to be printed is a target file format recognizable by the printing device, step S3 further includes:

[0021] S311: Generate a new verification tag for the received file data in the same manner as the file tag corresponding to the generated file data;

[0022] S312: Based on the file tag and the verification tag, verify the integrity of the file data of the file to be printed, and obtain the integrity verification result of the file data;

[0023] S313: Generate the print instruction based on the integrity verification result.

[0024] Preferably, the file data verification of the printed file includes at least one of the following: missing file, corrupted file, and file virus.

[0025] Preferably, S3 includes:

[0026] S321: Establish a verification tag group for the verification tags of each of the file data that have been verified;

[0027] S322: Compare the verification tag of the newly received and verified file data with the verification tags in the verification tag group to verify the duplication of the file data of the file to be printed, and obtain the duplication verification result of the current file data;

[0028] S323: Generate the print instruction based on the repeatability check result.

[0029] Preferably, the method further includes the following step before S1:

[0030] S11: At the document processing terminal to be printed, a broadcast signal is transmitted according to the broadcast protocol;

[0031] S12: Send the receiving address of the file data receiving end to the address corresponding to the received broadcast signal;

[0032] S13: Send the file data to the corresponding file data receiving end according to the receiving address.

[0033] The present invention also provides a printing apparatus, comprising:

[0034] Data receiving module: Used to receive file data of the document to be printed;

[0035] Data processing module: used to determine the amount of data in the received file data, and when the amount of data reaches the file data amount threshold, to create a print job for the file to be printed;

[0036] Data verification module: used to verify the received file data and obtain a print command that matches the verification result;

[0037] Data printing module: used to execute the printing task according to the printing instructions.

[0038] The present invention also provides a printing apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions, when executed by the processor, implement the method described in any of the preceding embodiments.

[0039] The present invention also provides a storage medium having stored thereon computer program instructions that, when executed by a processor, implement the method described in any of the preceding claims.

[0040] In summary, the beneficial effects of the present invention are as follows:

[0041] This invention provides an image printing method, apparatus, device, and medium based on data transmission verification. Upon receiving file data of a document to be printed, the method synchronously verifies the received file data, simultaneously creates a print job based on the amount of received file data, generates a corresponding print instruction based on the file data verification result, and executes the print job created based on the file data matching the print instruction. The print instruction includes options to print the print job or not to print it. This invention can verify the file type and integrity of the document to be printed, reducing the error rate during the printing stage and improving printing efficiency. Attached Figure Description

[0042] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, and these are all within the protection scope of the present invention.

[0043] Figure 1 This is a flowchart illustrating the image printing method based on data transmission verification in Embodiment 1 of the present invention;

[0044] Figure 1-1 This is a schematic diagram of the image printing method based on data transmission verification in Embodiment 1 of the present invention;

[0045] Figure 2 This is a schematic diagram of the process for creating a print job in Embodiment 1 of the present invention;

[0046] Figure 3 This is a schematic diagram of the file type consistency verification process in Embodiment 1 of the present invention;

[0047] Figure 4 This is a schematic diagram of the file data integrity verification process in Embodiment 1 of the present invention;

[0048] Figure 5 This is a flowchart illustrating the file data duplication verification process in Embodiment 1 of the present invention;

[0049] Figure 6 This is a schematic diagram of the file data sending and receiving process in Embodiment 1 of the present invention;

[0050] Figure 7 This is a schematic diagram of the printing device in Embodiment 2 of the present invention;

[0051] Figure 8 This is a schematic diagram of the printing device in Embodiment 3 of the present invention. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. Where there is no conflict, the various features of this invention and its embodiments can be combined with each other, all of which are within the scope of protection of this invention.

[0053] Example 1

[0054] like Figure 1 As shown, the image printing method based on data transmission verification provided in Embodiment 1 of the present invention includes:

[0055] S1: Receive the file data of the document to be printed;

[0056] Specifically, the file data is PRN data that the printer can print after processing by the RIP software; the PRN data is file data in PRN format that the printer can print. Taking an image file as an example, the RIP software performs image halftone processing on the image to be printed, converting the graphic file into PRN data that the printer can recognize. When processing a file to be printed, the RIP software includes multiple processing steps to obtain multiple PRN data packets. The total data volume of all PRN data packets is equal to the file data volume of the file to be printed, which can realize simultaneous processing, verification, and printing, reducing the waiting time of each process. The file data includes the file type and specific file content of the file to be printed. This invention uses PRN format data as an example, but other formats of data can also be implemented according to the method of this invention. This invention does not limit these, and all variations in these file data formats are within the scope of protection of this invention.

[0057] Please see Figure 1-1 In a local area network printing system, there are at least one RIP software, one print control software, and at least one printer. Each RIP software performs network processing on the document to be printed, generates corresponding PRN data, and transmits the PRN data to the print control software. The print control software assigns the corresponding printer to each PRN data for printing according to the actual printing situation. The actual printing situation includes print requests from the RIP end or feedback information from the printer terminal.

[0058] S2: Determine the amount of received file data. When the amount of data reaches a file data amount threshold, establish a print job for the file to be printed. Specifically, the file to be printed is rasterized by RIP (Routing Information Protocol, software or hardware card in a typesetting system that interprets PostScript encoding as a bitmap image) software to obtain the PRN data that the printer can print, and send it to the print control software. The print control software starts receiving file data. Only when the amount of received file data reaches a certain value will a print job corresponding to the file to be printed be established. For example, if the PRN data received by the print control software is equal to the data of 1 Pass printing, a print job is established for the PRN data corresponding to this 1 Pass. Furthermore, in order to ensure print quality, the PRN data of a complete print job is divided into multiple PRN sub-data. A print job is divided into a start stage, a stable stage, and an end stage. The amount of PRN sub-data in the start stage and the end stage is less than the amount of PRN sub-data in the stable stage. This can improve the print quality of the print equipment's adaptive stage in the start stage, and at the same time, it can avoid large-area image abnormalities caused by excessively long closing data in the end stage, thus ensuring the quality of the printed image.

[0059] S3: Verify the received file data and obtain a print command that matches the verification result;

[0060] Specifically, when the print control software starts receiving file data, it simultaneously begins to verify the received file data to see if its file type is one that the printer can print. If the file type meets the printing requirements, the received file data is then verified for integrity using the same encryption method. Specifically, the file is encrypted at the sending end to obtain a first verification code; at the receiving end, the received file is encrypted using the same encryption method, and a second verification code is obtained after reception. If the first and second verification codes are the same, the received file data is complete, and a valid print command is generated; otherwise, an invalid print command is generated, and the file data needs to be resent.

[0061] S4: Execute the printing task according to the printing instructions.

[0062] Specifically, the printing instructions include those for valid files with normal data and those for invalid files with abnormal data.

[0063] Preferably, in step S3, the file data verification of the printed file includes checking for missing files, corrupted files, and files infected with viruses.

[0064] Specifically, abnormal file data includes situations where the file type to be printed is not a type that the printer can print, as well as situations where the file data itself is missing, corrupted, or contains viruses.

[0065] The image printing method based on data transmission verification in Embodiment 1 of this invention performs synchronous verification of the received file data when it is received. Simultaneously, a print job is created based on the amount of received file data, and a corresponding print instruction is generated based on the file data verification result. The print job, created based on the file data matching the print instruction, is then executed. The print instruction includes options to print the print job or not to print it. This invention can verify the file type and integrity of the file to be printed, reducing the error rate during the printing stage and improving printing efficiency.

[0066] In one embodiment, S2 includes:

[0067] S21: Get the current printing stage of the print job;

[0068] Specifically, a complete print job involves a large amount of data. If the receiving end only starts printing after receiving all the data, it will inevitably require a lot of data transmission time and have a low fault tolerance rate, which is not conducive to improving printing efficiency and quality. This application divides the printing stage of a print job into a start stage, a stable stage, and an end stage. The start stage can be regarded as the adaptive stage of the printing device to the current print job, that is, the stage of continuously optimizing the output image quality. The stable stage is the stage where the quality of the current print job is in a small fluctuation stage and meets the quality requirements. The end stage is the stage where the current print job is coming to an end. The final stage is the stage where image abnormalities are likely to occur, such as ink accumulation, image overlap, and other problems.

[0069] S22: If the current printing stage is the start stage or the end stage, the file data currently being transmitted is split into multiple file sub-data during the transmission process based on the file data volume threshold, resulting in multiple PRN data packets;

[0070] Specifically, the file data threshold is generally a percentage of the current file data volume, such as 5%, 10%, 20%, etc. If the current printing stage is the start or end stage, during the current file data transmission process, when the received data volume reaches the file data threshold, a PRN task is established, and the PRN task is directly converted into a PRN data packet to obtain a printable PRN data packet. Then, the remaining data volume of the current file data continues to be received, and the above steps are repeated until the current stage ends, resulting in multiple PRN data packets. If the remaining data volume of the current file data is less than the data volume threshold, blank data is filled in or it is directly used as a PRN data packet. This can prevent a large area of ​​abnormal image region from appearing during the adaptive process or the end process due to the large data volume of a single PRN data packet, thus ensuring image quality.

[0071] S23: If the current printing stage is a stable stage, when the amount of the received current file data reaches the file data amount threshold, a corresponding PRN task is established and transmission continues to obtain a PRN data packet;

[0072] Specifically, if the current printing stage is a stable stage, when the amount of data received from the current file reaches the data volume threshold, a corresponding PRN task is established. After the PRN task is established, the remaining amount of data from the current file continues to be received on that PRN task until the data from the current file is completely received, and a PRN data packet is generated. This can reduce the frequency of receiving data packets in the stable stage and ensure that most areas of the image belong to the same printing environment.

[0073] S24: Repeat steps S21 to S23 to create print jobs corresponding to each PRN data packet received continuously, thereby forming the print job of the document to be printed.

[0074] Specifically, after each PRN task is converted into a PRN data packet, the control software creates a print job for that PRN data packet. Once all the file data of the file to be printed has been converted into the corresponding PRN data packets, the print jobs corresponding to all the PRN data packets together form the print job for that file.

[0075] In one embodiment, such as Figure 3 As shown, S3 includes:

[0076] S301: Obtain the target file format and file tag of the file data that are recognizable by the printing device;

[0077] Specifically, it obtains the file format of the target file that the printer can print. The printer can only print PRN and PRT files. JPG and BMP files need to be processed by the Ritu software to generate PRN files before they can be recognized by the printer. It cannot directly recognize JPG, BMP, PDF or DOC files. It also obtains the file tags of the file data, which include the file type information and file size information of the file to be printed.

[0078] S302: Based on the file format information in the file label and the target file format, verify the consistency of the file type of the file to be printed, and obtain the consistency verification result of the file type of the file to be printed;

[0079] Specifically, the print control software determines whether the file to be printed is a file type that the printer can recognize based on the file type information in the file label, such as whether the file is a PRN file, a PRT file, or an image file in JPG or BMP format that can be converted to a PRN file.

[0080] S303: Generate the print command based on the consistency verification result.

[0081] Specifically, if the file format of the document to be printed is one that the printer can recognize, such as a PRN file, PRT file, or an image file in JPG or BMP format that can be converted to a PRN file, a print command is generated to execute the print job. Based on this print command, the printer is controlled to print according to the received PRN data. If the file format of the document to be printed is not one that the printer can recognize, such as a PDF or DOC document file, a print command is generated not to execute the print job. Based on this print command, the created print job can be deleted or marked to prevent the printer from printing the job and causing printing errors.

[0082] In one embodiment, such as Figure 4 As shown, if the file type of the document to be printed is a target file format that the printing device can recognize, further step S3 includes:

[0083] S311: Generate a new verification tag for the received file data in the same manner as the file tag corresponding to the generated file data;

[0084] Specifically, after performing image screening on the file to be printed, the RITX software obtains file data, i.e., PRN data. At the same time, a file tag is generated based on the file data, which can be understood as encrypting the file data. After receiving and verifying the file data, the print control software generates a new tag in the same way as generating the file tag. This can be understood as the print control software generating a new tag in the same encryption method when decoding the file data. This new tag is called the verification tag.

[0085] S312: Based on the file tag and the verification tag, verify the integrity of the file data of the file to be printed, and obtain the integrity verification result of the file data;

[0086] Specifically, since the verification tag and the file tag are generated in the same way, the verification tag and the file tag are compared. If the verification tag and the file tag are the same, it means that the file data after verification is the same as the file data obtained after the file to be printed is screened, that is, there is no file corruption, missing and / or virus; otherwise, the file data after verification is incomplete.

[0087] S313: Generate the print instruction based on the integrity verification result.

[0088] Specifically, if the verification result indicates that the file data is complete, a print command is generated to indicate that the print job can be printed. Based on this print command, the printer is controlled to print according to the received PRN data. If the verification result indicates that the file data is incomplete, a print command is generated to indicate that the print job cannot be printed. Based on this print command, the established print job can be deleted or marked to prevent the printer from printing the print job and causing printing errors.

[0089] In one embodiment, such as Figure 5 As shown, an image printing method based on data transmission verification is provided;

[0090] S3 includes verifying the duplication of file data in the document to be printed.

[0091] S321: Generate verification tags for each of the verified file data to obtain a verification tag group;

[0092] Specifically, the print control software generates a verification tag after verifying the file data of each file to be printed, and combines the verification tags of all the files to be printed that have completed verification into a verification tag group.

[0093] S322: Compare the verification tag of the newly received and verified file data with the verification tags in the verification tag group to verify the duplication of the file data of the file to be printed, and obtain the duplication verification result of the current file data;

[0094] Specifically, each time the print control software generates a new check tag, it needs to compare the new check tag with the check tags in the check tag group. If there is no check tag in the check tag group that matches the new check tag, the new check tag is added to the check tag group to complete the duplicate check of the file data, and the result is that the file data is not duplicated. If there is already a check tag in the check tag group that matches the new check tag, the new check tag is not added to the check tag group, and the result is that the file data is duplicated.

[0095] S323: Generate the print instruction based on the repeatability check result.

[0096] Specifically, if the verification result indicates that the file data is not duplicate data, then a print command is generated indicating that the print job can be printed. Based on this print command, the printer is controlled to print according to the received PRN data. If the verification result indicates that the file data is duplicate data, then a print command is generated indicating that the print job cannot be printed. Based on this print command, the established print job can be deleted or marked to prevent the printer from printing the print job and causing printing errors.

[0097] It should be noted that: the repeatability check includes the check of the PRN data corresponding to the entire file to be printed, as well as the check of each PRN data packet of the file to be printed sent by the RIP software to the print control software each time; this invention mainly targets the check of each PRN data packet of the file to be printed.

[0098] In one embodiment, such as Figure 6 As shown, an image printing method based on data transmission verification is provided;

[0099] It also includes, before S1;

[0100] S11: At the document processing terminal to be printed, broadcast according to the broadcast protocol;

[0101] Specifically, after completing the halftone processing of the image of the document to be printed, the Ritu software broadcasts it to the local area network (LAN) or wide area network (WAN) through a predetermined protocol, searching for print control software within the LAN or WAN.

[0102] S12: Send the receiving address of the file data receiving end to the address corresponding to the received broadcast;

[0103] Specifically, after receiving the broadcast, the print control software responds and sends its address information, specifically its IP address and port, to the Ritu software according to a predetermined protocol.

[0104] S13: Send the file data to the receiving address according to the receiving address.

[0105] Specifically, after receiving the address information from the print control software, the Ritu software sends file data to that address, thus initiating the file data transfer.

[0106] It should be noted that the network includes multiple Ritu software programs and multiple print control software programs. The information fed back to the Ritu software by the print control software includes the print control software's address information, i.e., IP address, and the current working status of the printer corresponding to the print control software, i.e., the number of print jobs, the printer's working time, and the next downtime.

[0107] The image printing method based on data transmission verification in Embodiment 1 of this invention performs synchronous verification of the received file data when it is received. Simultaneously, a print job is created based on the amount of received file data, and a corresponding print instruction is generated based on the file data verification result. The print job, created based on the file data matching the print instruction, is then executed. The print instruction includes options to print the print job or not to print it. This invention can verify the file type and integrity of the file to be printed, reducing the error rate during the printing stage and improving printing efficiency.

[0108] Example 2

[0109] The present invention also provides a printing apparatus, such as Figure 7 Shown, including:

[0110] Data receiving module: Used to receive file data of the document to be printed;

[0111] Data processing module: used to determine the amount of data in the received file data, and when the amount of data reaches the file data amount threshold, to create a print job for the file to be printed;

[0112] Data verification module: used to verify the received file data and obtain a print command that matches the verification result;

[0113] Data printing module: used to execute the printing task according to the printing instructions.

[0114] The printing device of this invention, upon receiving file data of a document to be printed, simultaneously verifies the received file data, establishes a print job for the document to be printed based on the amount of received file data, generates a corresponding print instruction based on the file data verification result, and executes the print job established based on the file data matching the print instruction. The print instruction includes printing the print job or not printing the print job. This invention can verify the file type and integrity of the document to be printed, reduce the error rate of the printed document during the printing stage, and improve printing efficiency.

[0115] In one embodiment, its data processing module includes:

[0116] Printing Stage Unit: Obtains the current printing stage of the print job;

[0117] Adaptive Unit: If the current printing stage is the start stage or the end stage, the file data currently being transmitted is split into multiple file sub-data during the transmission process based on the file data volume threshold, resulting in multiple PRN data packets;

[0118] Stabilization Unit: If the current printing stage is a stable stage, when the amount of received current file data reaches the file data amount threshold, a corresponding PRN task is established and transmission continues to obtain a PRN data packet;

[0119] Repeating Unit: Repeat the above steps to create print jobs corresponding to each continuously received PRN data packet, thereby forming the print job of the document to be printed.

[0120] In one embodiment, its data verification module includes:

[0121] Label unit: A file label containing the target file format and file data that the printing device can recognize;

[0122] Tag verification unit: Based on the file format information in the file tag and the target file format, the unit verifies the consistency of the file type of the file to be printed, and obtains the consistency verification result of the file type of the file to be printed.

[0123] Label instruction unit: Generates the printing instruction based on the consistency verification result.

[0124] In one embodiment, if the file type of the document to be printed is a target file format recognizable by the printing device, its data verification module includes:

[0125] Tag generation unit: Generates new verification tags for the received file data in the same manner as generating the file tags corresponding to the file data;

[0126] Data verification unit: Based on the file tag and the verification tag, it verifies the integrity of the file data of the file to be printed, and obtains the integrity verification result of the file data;

[0127] Data instruction unit: Generates the print instruction based on the integrity verification result.

[0128] In one embodiment, its data verification module includes:

[0129] Tag Reference Unit: Establishes a verification tag group for the verification tags of each of the document data that has been verified;

[0130] Tag duplication unit: compares the verification tag of the newly received and verified file data with the verification tags in the verification tag group to verify the duplication of the file data to be printed, and obtains the duplication verification result of the current file data;

[0131] Repeat instruction unit: Generates the print instruction based on the repeatability check result.

[0132] In one embodiment, a printing device is provided;

[0133] In addition to its data receiving module, it also includes;

[0134] Broadcast unit: At the end of the document to be printed, broadcasts according to the broadcast protocol;

[0135] Address unit: Sends the receiving address of the file data receiving end to the address corresponding to the received broadcast;

[0136] Data transmission unit: Sends the file data to the receiving address according to the receiving address.

[0137] The printing device of Embodiment 2 of the present invention, upon receiving file data of a document to be printed, simultaneously verifies the received file data, establishes a print job for the document to be printed based on the amount of received file data, generates a corresponding print instruction based on the file data verification result, and executes the print job established based on the file data matching the print instruction. The print instruction includes printing the print job or not printing the print job. The present invention can verify the file type and integrity of the document to be printed, reduce the error rate of the printed document during the printing stage, and improve printing efficiency.

[0138] Example 3

[0139] Embodiment 3 of the present invention discloses a printing device, such as... Figure 8 As shown, it includes at least one processor, at least one memory, and computer program instructions stored in the memory.

[0140] Specifically, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.

[0141] The memory may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include removable or non-removable (or fixed) media. Where appropriate, the memory may be internal or external to a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0142] The processor reads and executes computer program instructions stored in memory to implement any of the image printing methods based on data transmission verification in Embodiment 1 above.

[0143] In one example, the printing device may also include a communication interface and a bus. The processor, memory, and communication interface are connected via the bus and communicate with each other.

[0144] The communication interface is mainly used to enable communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0145] A bus, including hardware, software, or both, couples components of a printing device together. For example, and not limitingly, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, a bus may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0146] Example 4

[0147] Furthermore, in conjunction with the image printing method based on data transmission verification in Embodiment 1 above, this embodiment of the invention can be implemented using a computer-readable storage medium. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any one of the image printing methods based on data transmission verification in Embodiment 1 above.

[0148] In summary, the image printing method, apparatus, device, and medium based on data transmission verification provided by the embodiments of the present invention.

[0149] This invention verifies the received file data simultaneously upon receipt, creates a print job based on the amount of received file data, and generates corresponding print instructions based on the verification results. The print job, created based on the file data matching the print instructions, is then executed. Print instructions can include either printing the job or not printing it. This invention can verify the file type and integrity of the file to be printed, reducing the error rate during the printing stage and improving printing efficiency.

[0150] It should be understood that the present invention is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted. In the above embodiments, several specific steps are described and illustrated as examples. However, the method of the present invention is not limited to the specific steps described and illustrated. Those skilled in the art may make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present invention.

[0151] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the required tasks. The programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An image printing method based on data transmission verification, characterized in that, The method includes: S1: Receive the file data of the document to be printed; S2: Determine the amount of data in the received file data. When the amount of data reaches the file data amount threshold, establish a print job for the file to be printed. S3: Verify the received file data and obtain a print command that matches the verification result; S4: Execute the printing task according to the printing instruction. Specifically, S2 includes: S21: Get the current printing stage of the print job; S22: If the current printing stage is the start stage or the end stage, the file data currently being transmitted is split into multiple file sub-data during the transmission process based on the file data volume threshold, resulting in multiple PRN data packets; S23: If the current printing stage is a stable stage, when the amount of the received current file data reaches the file data amount threshold, a corresponding PRN task is established and transmission continues to obtain a PRN data packet; S24: Repeat steps S21 to S23 to create print jobs corresponding to each PRN data packet received continuously, thereby forming the print job of the document to be printed.

2. The image printing method based on data transmission verification according to claim 1, characterized in that, S3 includes: S301: Obtain the target file format and file tag of the file data that are recognizable by the printing device; S302: Based on the file format information in the file tag and the target file format, verify the consistency of the file type of the file to be printed, and obtain the consistency verification result of the file type of the file to be printed; S303: Generate the print command based on the consistency verification result.

3. The image printing method based on data transmission verification according to claim 2, characterized in that, If the file type of the document to be printed is a target file format recognizable by the printing device, further step S3 includes: S311: Generate a new verification tag for the received file data in the same manner as the file tag corresponding to the generated file data; S312: Based on the file tag and the verification tag, verify the integrity of the file data of the file to be printed, and obtain the integrity verification result of the file data; S313: Generate the print instruction based on the integrity verification result.

4. The image printing method based on data transmission verification according to claim 3, characterized in that, The file data verification of the printed document includes at least one of the following: missing file, corrupted file, and file virus.

5. The image printing method based on data transmission verification according to any one of claims 1 to 4, characterized in that, S3 includes: S321: Establish a verification tag group for the verification tags of each of the file data that have been verified; S322: Compare the verification tag of the newly received and verified file data with the verification tags in the verification tag group to verify the duplication of the file data of the file to be printed, and obtain the duplication verification result of the current file data; S323: Generate the print instruction based on the repeatability check result.

6. The image printing method based on data transmission verification according to claim 5, characterized in that, It also includes, before S1; S11: At the document processing terminal to be printed, a broadcast signal is transmitted according to the broadcast protocol; S12: Send the receiving address of the file data receiving end to the address corresponding to the received broadcast signal; S13: Send the file data to the corresponding file data receiving end according to the receiving address.

7. A printing apparatus, characterized in that, include: Data receiving module: Used to receive file data of the document to be printed; Data processing module: used to determine the amount of data in the received file data. When the amount of data reaches the file data amount threshold, a print job for the file to be printed is established. Specifically, it is used to: obtain the current printing stage of the print job; if the current printing stage is the start stage or the end stage, split the file data currently being transmitted into multiple file sub-data during the transmission process based on the file data amount threshold to obtain multiple PRN data packets. If the current printing stage is a stable stage, when the amount of data received in the current file reaches the file data amount threshold, a corresponding PRN task is established and transmission continues to obtain a PRN data packet; the preceding steps are repeated to establish each printing task corresponding to each PRN data packet for each continuously received PRN data packet, thereby forming the printing task of the file to be printed; Data verification module: used to verify the received file data and obtain a print command that matches the verification result; Data printing module: used to execute the printing task according to the printing instructions.

8. A printing device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method as described in any one of claims 1-6.

9. A medium having computer program instructions stored thereon, characterized in that, The method as described in any one of claims 1-6 is implemented when the computer program instructions are executed by the processor.

Citation Information

Patent Citations

  • To-be-printed file format conversion method and device, equipment and storage medium

    CN110221792A

  • Printer control method and device and printer

    CN110244918A

  • Printing method and device and electronic equipment

    CN112650456A

  • File printing method and device, electronic equipment and storage medium

    CN113110808A