An inkjet printing data verification method and device, electronic equipment and storage medium
By introducing a two-way verification mechanism between the printhead driver board and the inkjet printing system motherboard, the problem of data errors during long-distance transmission in the inkjet printing system is solved, ensuring the accuracy and quality of printed data and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-03-17
AI Technical Summary
In inkjet printing systems, printing data is susceptible to electromagnetic interference during long-distance transmission, leading to data transmission errors and affecting print quality and user experience.
A two-way verification mechanism is introduced between the printhead driver board and the inkjet printing system motherboard. By generating and comparing verification data, the accuracy of data transmission is ensured, and printing data is sent only when the verification data is consistent.
This improves the accuracy of print data received by the printhead, avoids inkjet printing operations based on erroneous data, and enhances the user experience, reliability, and print quality of the inkjet printing system.
Smart Images

Figure CN121290949B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of inkjet printing technology, and more specifically, to an inkjet printing data verification method, apparatus, electronic device, and storage medium. Background Technology
[0002] In an inkjet printing system, the mainboard sends printing data to the printhead driver board. The printhead driver board then converts the printing data into printing data and sends it to the printhead, driving the printhead to eject ink droplets. Ensuring the accuracy of the printing data from the mainboard to the printhead driver board is crucial for guaranteeing the final printing effect and quality.
[0003] However, in practical applications, the transmission distance between the inkjet printing system motherboard and the printhead driver board is quite long, sometimes reaching tens of meters (in distributed inkjet printing systems sharing a single motherboard). Over such long distances, the printing data is highly susceptible to electromagnetic interference, leading to data transmission errors. Once errors occur during transmission, the accuracy of the printing data received by the printhead is directly affected, resulting in deviations in the final printing quality, such as blurry images, color distortion, and streaks. This severely impacts the print quality and user experience of the inkjet printing system. Therefore, effectively verifying the accuracy of inkjet printing data during long-distance transmission is a pressing issue in the field of inkjet printing technology.
[0004] There is currently no effective technical solution to the above problems. Summary of the Invention
[0005] The purpose of this application is to provide an inkjet printing data verification method, apparatus, electronic device, and storage medium, which can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operation based on incorrect printing data.
[0006] Firstly, this application provides an inkjet printing data verification method, applied in a printhead driver board. The inkjet printing data verification method includes the following steps:
[0007] S1. Upon receiving inkjet data from the inkjet printing system motherboard, generate print data based on the inkjet data;
[0008] S2. Send the printed data to the verification module to trigger the verification module to generate first verification data based on the printed data according to a preset algorithm and send the first verification data to the inkjet printing system motherboard, thereby triggering the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board; the first comparison result is the comparison result of the first verification data and the second verification data; the second verification data is generated by the inkjet printing system motherboard based on the printed data it sends according to a preset algorithm;
[0009] S3. When the first comparison result shows that the first verification data and the second verification data are the same, the print data is sent to the print head.
[0010] This application provides an inkjet printing data verification method that verifies the accuracy of inkjet data transmission by introducing a two-way verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application means that subsequent inkjet printing operations will only continue when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operations based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system.
[0011] Optionally, the steps of the verification module generating first verification data based on the printed data according to a preset algorithm and sending the first verification data to the inkjet printing system motherboard include:
[0012] A1. Convert the printed data into parallel data;
[0013] A2. Perform block processing on parallel data;
[0014] A3. Perform parallel computation on the block-based parallel data based on a preset algorithm to obtain multiple check sub-data;
[0015] A4. Integrate all the verification sub-data to obtain the first verification data;
[0016] A5. Send the first verification data to the inkjet printing system motherboard.
[0017] Optionally, step A5 includes:
[0018] A51. Compress the first verification data;
[0019] A52. Send the compressed first verification data to the inkjet printing system motherboard.
[0020] Optionally, the inkjet print data verification method may also include the following steps:
[0021] S4. When the first comparison result shows that the first verification data and the second verification data are different, the inkjet printing system motherboard is triggered to resend the printing data and return to step S1.
[0022] Optionally, step S4 includes:
[0023] S41. When the first comparison result is that the first verification data and the second verification data are different, the inkjet printing system motherboard is triggered to send test data. The amount of test data is less than the amount of inkjet data.
[0024] S42. Upon receiving test data, the test data is sent to the verification module to trigger the verification module to generate third verification data based on the test data using a preset algorithm and to send the third verification data to the inkjet printing system motherboard. This triggers the inkjet printing system motherboard to compare the third verification data and the fourth verification data and to send the second comparison result to the printhead driver board. The second comparison result is the comparison result between the third verification data and the fourth verification data. The fourth verification data is generated by the inkjet printing system motherboard based on the test data it sends using a preset algorithm.
[0025] S43. When the second comparison result shows that the third verification data and the fourth verification data are the same, the inkjet printing system motherboard is triggered to resend the printing data and return to step S1.
[0026] S44. When the second comparison result shows that the third verification data and the fourth verification data are different, the inkjet printing system motherboard is triggered to resend the test data after a preset time and return to step S42.
[0027] Compared to directly retransmitting the entire print data, this technical solution introduces a test data verification mechanism, enabling the system to quickly verify the communication link status with lower resource consumption when verification fails. Only when the rapid verification result indicates that the communication link status is normal will the technical solution retransmit the print data. Therefore, this technical solution can effectively avoid excessive bandwidth consumption and excessive system processing burden caused by continuously retransmitting print data under continuous communication link abnormalities.
[0028] Optionally, the process of the inkjet printing system motherboard sending test data includes:
[0029] B1. Obtain the similarity between the first and second verification data, and obtain the current load of the inkjet printing system motherboard;
[0030] B2. Determine the test data generation strategy based on similarity and determine the amount of test data based on the current load. The amount of test data should be less than the amount of inkjet data.
[0031] B3. Generate test data based on the test data generation strategy and the amount of test data;
[0032] B4. Send the test data to the nozzle driver board.
[0033] This technical solution can avoid sending redundant or unnecessary test data and reduce the operating burden of the inkjet printing system motherboard by dynamically determining the test data generation strategy and test data volume based on the similarity between the first and second verification data and the current load of the inkjet printing system motherboard. This effectively improves the verification efficiency of the communication link status and thus effectively accelerates the retransmission of inkjet data and the recovery of printing tasks.
[0034] Optionally, step B2 includes:
[0035] B21. Query the mapping relationship between the preset data similarity and the test data generation strategy based on the similarity to obtain the test data generation strategy;
[0036] B22. Based on the current load, query the preset mapping relationship between the load and the test data volume to obtain the test data volume.
[0037] Secondly, this application also provides an inkjet printing data verification device, used in a printhead driver board, the inkjet printing data verification device comprising:
[0038] The data conversion module is used to generate print data based on the inkjet data received from the inkjet printing system motherboard.
[0039] The data verification module is used to send the printed data to the verification module, which triggers the verification module to generate first verification data based on the printed data according to a preset algorithm and send the first verification data to the inkjet printing system motherboard. This triggers the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board. The first comparison result is the comparison result of the first verification data and the second verification data. The second verification data is generated by the inkjet printing system motherboard based on the printed data it sends according to a preset algorithm.
[0040] The data sending module is used to send the print data to the print head when the first comparison result shows that the first verification data and the second verification data are the same.
[0041] This application provides an inkjet printing data verification device that verifies the accuracy of inkjet data transmission by introducing a two-way verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application means that subsequent inkjet printing operations will only continue when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operations based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system.
[0042] Thirdly, this application provides an electronic device including a processor and a memory, the memory storing computer-readable instructions, which, when executed by the processor, perform the steps of the method provided in the first aspect above.
[0043] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.
[0044] As can be seen from the above, the inkjet printing data verification method, apparatus, electronic device, and storage medium provided in this application verify the accuracy of inkjet printing data transmission by introducing a bidirectional verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board of this application will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application is equivalent to continuing the subsequent inkjet printing operation only when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operation based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system. Attached Figure Description
[0045] Figure 1 A flowchart of an inkjet printing data verification method provided in an embodiment of this application.
[0046] Figure 2 This is a schematic diagram of the connection relationship of the inkjet printing system provided in the embodiments of this application.
[0047] Figure 3 This is a schematic diagram of the structure of an inkjet printing data verification device provided in an embodiment of this application.
[0048] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0049] Reference numerals in the attached diagram: 1. Data conversion module; 2. Data verification module; 3. Data transmission module; 101. Processor; 102. Memory; 103. Communication bus. Detailed Implementation
[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0051] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0052] Firstly, such as Figure 1 and Figure 2 As shown, this application provides an inkjet printing data verification method, applied in a printhead driver board. The inkjet printing data verification method includes the following steps:
[0053] S1. Upon receiving inkjet data from the inkjet printing system motherboard, generate print data based on the inkjet data;
[0054] S2. Send the printed data to the verification module to trigger the verification module to generate first verification data based on the printed data according to a preset algorithm and send the first verification data to the inkjet printing system motherboard, thereby triggering the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board; the first comparison result is the comparison result of the first verification data and the second verification data; the second verification data is generated by the inkjet printing system motherboard based on the printed data it sends according to a preset algorithm;
[0055] S3. When the first comparison result shows that the first verification data and the second verification data are the same, the print data is sent to the print head.
[0056] The inkjet printing data verification method of this application is applied to the printhead driver board. This method verifies whether the printing data sent by the inkjet printing system motherboard is accurately transmitted to the printhead driver board. Specifically, the inkjet printing system motherboard in this embodiment is the core control unit of the inkjet printing system. The motherboard is responsible for processing image data and generating raw printing data. The printhead driver board in this embodiment is a key component connecting the inkjet printing system motherboard and the printhead. The printhead driver board is responsible for converting the received printing data into printing data that can drive the printhead. The verification module in this embodiment can be a functional unit within the printhead driver board, or it can be a functional unit independent of the inkjet printing system motherboard and the printhead driver board. The verification module is responsible for converting the received data into verification data using a preset algorithm. The preset algorithm in this embodiment refers to a series of mathematical or logical operation rules used to generate the verification data, such as Cyclic Redundancy Check (CRC), MD5 hash algorithm, etc. These algorithms can map data of arbitrary length to a fixed-length verification value. The verification data generated by the verification module is used for data integrity verification. It should be understood that, because the inkjet data may be affected by electromagnetic interference during the transmission of inkjet printing system motherboard to printhead driver board, this electromagnetic interference can cause data transmission errors. Therefore, the inkjet data sent by the inkjet printing system motherboard may differ from the inkjet data received by the printhead driver board.
[0057] The inkjet printing data verification method of this application is implemented in the following way: When receiving printing data from the inkjet printing system motherboard, the printhead driver board can perform operations such as format conversion and data parsing on the received printing data to make it conform to the working requirements of the printhead, thereby generating printing data based on the printing data. For example, the printhead driver board can convert the printing data sent by the inkjet printing system motherboard into bitmap data or grayscale data that the printhead can recognize. Subsequently, the printhead driver board sends the printing data to the verification module. After receiving the printing data, the verification module generates first verification data based on the printing data according to a preset algorithm. For example, the verification module uses the CRC algorithm to calculate the printing data to generate a fixed-length checksum as the first verification data. Alternatively, the verification module can use the MD5 hash algorithm to perform a hash operation on the printing data to generate a hash value as the first verification data. After generating the first verification data, the verification module can send the first verification data to the inkjet printing system motherboard via a cable. In this embodiment, the inkjet printing system motherboard generates second verification data based on the same preset algorithm when sending printing data. After receiving the first verification data sent by the printhead driver board, the inkjet printing system motherboard compares the first verification data with the second verification data. It should be understood that since the algorithm used by the inkjet printing system motherboard to generate the second verification data is the same as the algorithm used by the printhead driver board to generate the first verification data, and the print data is generated by the printhead driver board based on the print data it receives, if the print data is not affected by electromagnetic interference during transmission, the print data received by the printhead driver board is the same as the print data sent by the inkjet printing system motherboard. The print data generated by the printhead driver board is substantially the same as the print data sent by the inkjet printing system motherboard. Therefore, when there is no electromagnetic interference during transmission, the first verification data and the second verification data are the same. That is, this embodiment can analyze whether the transmission process of the print data is affected by electromagnetic interference by comparing the first verification data and the second verification data to analyze whether they are the same. When the first comparison result shows that the first verification data and the second verification data are the same, it indicates that no error occurred during the transmission of the inkjet printing data from the inkjet printing system motherboard to the printhead driver board (i.e., it was not affected by electromagnetic interference). Therefore, when the first comparison result shows that the first verification data and the second verification data are the same, this embodiment can be considered that the inkjet data received by the printhead driver board and the generated printing data are accurate. At this time, the printhead driver board will send the printing data to the printhead to drive the printhead to perform inkjet printing operation, thereby completing an accurate and high-quality printing task.
[0058] This application presents an inkjet printing data verification method designed to address the issue of printing quality deviations caused by errors in long-distance data transmission. By introducing a data verification mechanism into the printhead driver board, this application effectively verifies the integrity and accuracy of inkjet data transmission. Specifically, after receiving printing data from the inkjet printing system motherboard, the printhead driver board generates print data based on this data and sends it to the verification module. The verification module generates first verification data based on a preset algorithm and sends it back to the inkjet printing system motherboard. The inkjet printing system motherboard then compares the received first verification data with its own second verification data generated based on the original printing data and the preset algorithm. If the comparison results match, the data transmission is error-free, and the printhead driver board sends the print data to the printhead for printing. If the comparison results do not match, an appropriate error handling mechanism (such as requesting retransmission) can be implemented to ensure the accuracy of the print data. This application, through this two-way verification and feedback mechanism, effectively detects and avoids printing quality problems caused by data transmission errors, thereby effectively improving the reliability and printing quality of the inkjet printing system.
[0059] Therefore, the inkjet printing data verification method provided in this application verifies the accuracy of inkjet data transmission by introducing a two-way verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board of this application will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application means that subsequent inkjet printing operations will only continue when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operations based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system.
[0060] In some preferred embodiments, the steps of the verification module generating first verification data based on the printed data according to a preset algorithm and sending the first verification data to the inkjet printing system motherboard include:
[0061] A1. Convert the printed data into parallel data;
[0062] A2. Perform block processing on parallel data;
[0063] A3. Perform parallel computation on the block-based parallel data based on a preset algorithm to obtain multiple check sub-data;
[0064] A4. Integrate all the verification sub-data to obtain the first verification data;
[0065] A5. Send the first verification data to the inkjet printing system motherboard.
[0066] This embodiment converts printed data into parallel data by using a data conversion unit (such as an existing shift register) to transform the original serial printed data stream or data block into multiple data channels or data blocks that can be processed simultaneously. The purpose of this conversion is to lay the foundation for subsequent parallel processing, thereby improving data processing throughput and efficiency. The block processing of parallel data in this embodiment can be understood as dividing the converted parallel data into multiple independent data blocks according to a preset size or logical unit. For example, the parallel data can be divided into fixed-length data frames. The purpose of this block processing is to decompose large-scale data into small units suitable for parallel computing, facilitating parallel computation. This embodiment performs parallel verification processing on the block-based parallel data based on a preset algorithm to obtain multiple verification sub-data. This means that the verification module uses multiple independent verification units or processors to apply the same preset verification algorithm (such as cyclic redundancy check CRC, MD5, SHA, etc.) to simultaneously calculate verification data for different data blocks, generating a corresponding verification sub-data for each data block. This embodiment effectively shortens the verification data calculation process by performing parallel computation on the block-based parallel data. This embodiment integrates all the verification sub-data to obtain the first verification data. This means combining all independently generated verification sub-data according to preset rules (such as concatenation, XOR operation, or hash aggregation) into a unified verification data that represents the entire printed data. The purpose of integrating all the verification sub-data in this embodiment is to provide a holistic verification code so that the inkjet printing system motherboard can perform a one-time comparison. Sending the first verification data to the inkjet printing system motherboard in this embodiment means transmitting the first verification data to the inkjet printing system motherboard through a communication interface to trigger the inkjet printing system motherboard to compare the first verification data with its own generated second verification data.
[0067] This embodiment first converts the received print data into parallel data, and then further divides the parallel data into blocks, decomposing the large amount of data that would otherwise require serial processing into multiple independently processable blocks. Subsequently, based on a preset algorithm, this embodiment performs parallel computation on these block-based parallel data, simultaneously generating verification sub-data on multiple processing channels. This parallel processing method effectively improves the efficiency of verification data computation. Finally, this embodiment integrates all verification sub-data to obtain the first verification data, which is then sent to the inkjet printing system motherboard to ensure the integrity and representativeness of the first verification data. Therefore, the verification module of this embodiment can generate the first verification data with higher efficiency and faster speed, effectively shortening the waiting time for generating verification data. Furthermore, this embodiment effectively improves the throughput of verification data generation through the combination of block processing and parallel computation.
[0068] In some preferred embodiments, assume the printhead driver board receives print data containing millions of pixels. The verification module first converts this print data into a parallel data stream, for example, decomposing it into eight parallel data channels. Then, the data in each parallel data channel is further divided into fixed-size data blocks, for example, 1KB each. Next, eight independent verification processors simultaneously calculate verification data for the data blocks on these eight data channels using the CRC32 checksum algorithm, with each processor generating verification sub-data for its corresponding data block. Once the verification sub-data for all data blocks has been generated, these sub-data are collected and XORed, ultimately integrating them into a single first verification data. This first verification data is then sent to the inkjet printing system motherboard for comparison. In this way, the first verification data generation process, which could otherwise take a long time, is significantly shortened, and verification efficiency is significantly improved, ensuring that the inkjet printing system can quickly respond to and process a large number of print jobs.
[0069] In some preferred embodiments, step A5 includes:
[0070] A51. Compress the first verification data;
[0071] A52. Send the compressed first verification data to the inkjet printing system motherboard.
[0072] The compression of the first verification data in this embodiment refers to using one or more data compression algorithms to encode the original first verification data to reduce its data volume, thereby reducing the bandwidth and time required to transmit the first verification data to the inkjet printing system motherboard. Specifically, the compression processing in this embodiment is implemented using lossless compression algorithms such as LZ77, LZ78, Huffman coding, arithmetic coding, and RLE (Run-Length Encoding) to ensure that the integrity of the compressed and decompressed data is consistent with the original data. It should be understood that the compression processing of the first verification data is a prior art, and its working principle and workflow will not be discussed in detail here.
[0073] This embodiment effectively reduces the amount of data transmitted between the verification module and the inkjet printing system motherboard by compressing the first verification data before sending it. Therefore, when transmitting the first verification data between the verification module and the inkjet printing system motherboard, this embodiment can effectively reduce the demand for communication bandwidth and the load on the communication link, as well as effectively shorten the time required for data transmission. This allows the first verification data to reach the inkjet printing system motherboard for comparison more quickly, thereby effectively improving the response speed of the entire inkjet printing data verification process and effectively avoiding verification delays or system performance degradation caused by data transmission bottlenecks.
[0074] In some preferred embodiments, the inkjet printing data verification method further includes the step of:
[0075] S4. When the first comparison result shows that the first verification data and the second verification data are different, the inkjet printing system motherboard is triggered to resend the printing data and return to step S1.
[0076] When the first comparison result indicates that the first verification data and the second verification data are different, it means that the printing data is affected by electromagnetic interference during data transmission, causing the printing data received by the printhead driver board to be inconsistent with the original printing data sent by the inkjet printing system motherboard. In this case, to ensure the accuracy and integrity of the printing data, the printhead driver board will not send the currently potentially damaged printing data to the printhead. Instead, it will send a trigger signal or instruction to the inkjet printing system motherboard to trigger the motherboard to resend the original printing data. Since the electromagnetic interference affecting the printing data transmission usually does not last, that is, when the inkjet printing system motherboard resends the printing data, the electromagnetic interference affecting the printing data transmission may have disappeared. Therefore, this embodiment can correct potential data errors by retransmitting the printing data, thereby providing a correct data source for subsequent printing operations. After the inkjet printing system motherboard resends the printing data, the entire verification process will return to step S1, that is, the printhead driver board receives the printing data again and restarts the subsequent steps such as generating printing data and performing verification comparison.
[0077] This embodiment ensures that when errors occur in system data transmission, erroneous data will not be used for printing. Instead, it will attempt to obtain the correct data. This mechanism of retransmitting and re-verifying printing data makes the entire data transmission and verification process more robust. Therefore, this embodiment can effectively cope with various transmission interferences and errors, thereby effectively improving the accuracy of the final printed data, and thus effectively improving the user experience, as well as the reliability and print quality of the inkjet printing system.
[0078] In some preferred embodiments, step S4 includes:
[0079] S41. When the first comparison result is that the first verification data and the second verification data are different, the inkjet printing system motherboard is triggered to send test data. The amount of test data is less than the amount of inkjet data.
[0080] S42. Upon receiving test data, the test data is sent to the verification module to trigger the verification module to generate third verification data based on the test data using a preset algorithm and to send the third verification data to the inkjet printing system motherboard. This triggers the inkjet printing system motherboard to compare the third verification data and the fourth verification data and to send the second comparison result to the printhead driver board. The second comparison result is the comparison result between the third verification data and the fourth verification data. The fourth verification data is generated by the inkjet printing system motherboard based on the test data it sends using a preset algorithm.
[0081] S43. When the second comparison result shows that the third verification data and the fourth verification data are the same, the inkjet printing system motherboard is triggered to resend the printing data and return to step S1.
[0082] S44. When the second comparison result shows that the third verification data and the fourth verification data are different, the inkjet printing system motherboard is triggered to resend the test data after a preset time and return to step S42.
[0083] The test data in this embodiment is equivalent to a small amount of data used to diagnose the communication link or device status, and the amount of test data is smaller than the amount of original print data. When the printhead driver board receives the test data sent by the inkjet printing system motherboard, it forwards the test data to the verification module. The verification module calculates the received test data based on the same preset algorithm used to process the print data to generate third verification data. Subsequently, the third verification data is sent back to the inkjet printing system motherboard. After receiving the third verification data, the inkjet printing system motherboard compares it with the fourth verification data it generates based on the sent test data, and sends the comparison result (i.e., the second comparison result) to the printhead driver board. This process aims to quickly verify whether the system can transmit and verify data normally with low resource consumption. When the second comparison result indicates that the third verification data and the fourth verification data are consistent, it indicates that electromagnetic interference or other transient system errors have disappeared. In this case, the printhead driver board triggers the inkjet printing system motherboard to resend the complete print data and returns to step S1 to attempt to complete the normal inkjet printing process. If the second comparison result shows that the third and fourth verification data are inconsistent, it indicates that electromagnetic interference or other transient system errors still exist. To avoid infinitely looping rapid retries, the printhead driver board will trigger the inkjet printing system mainboard to resend the test data after a preset time period and return to step S42. The preset time period in this embodiment can be a fixed time interval or a time interval dynamically adjusted according to the error type or number of retries. The purpose of setting the preset time period in this embodiment is to give the system a certain recovery time and avoid increasing the system load due to frequent retries.
[0084] This embodiment effectively solves the problems of inefficiency and resource waste that may result from directly retransmitting complete print data by introducing an intermediate step for test data transmission and verification. Specifically, when the first verification fails, this embodiment does not immediately retransmit a large amount of print data, but first sends a small amount of test data for rapid diagnosis. Since the amount of test data is small, the transmission and verification process of test data is short and resource consumption is low. Therefore, this embodiment can quickly determine whether the communication link has returned to normal. If the test data verification is successful, it indicates that the system has the ability to accurately transmit print data. At this time, the print data is retransmitted to effectively improve the success rate of print data transmission. If the test data verification still fails, a retry mechanism after a preset time is introduced to avoid the system from making invalid and frequent retransmissions under the condition of continuous communication link abnormality, thereby effectively reducing the system load. Therefore, compared to the solution of directly retransmitting the entire print data, this embodiment introduces a test data verification mechanism, which enables the system to quickly verify the communication link status with low resource consumption when verification fails. Only when the quick verification result indicates that the communication link status is normal will this embodiment retransmit the print data. Therefore, this embodiment can effectively avoid excessive bandwidth consumption and excessive system processing burden caused by continuously retransmitting print data under continuous communication link abnormalities.
[0085] In some preferred embodiments, the process of the inkjet printing system motherboard sending test data includes:
[0086] B1. Obtain the similarity between the first and second verification data, and obtain the current load of the inkjet printing system motherboard;
[0087] B2. Determine the test data generation strategy based on similarity and determine the amount of test data based on the current load. The amount of test data should be less than the amount of inkjet data.
[0088] B3. Generate test data based on the test data generation strategy and the amount of test data;
[0089] B4. Send the test data to the nozzle driver board.
[0090] In this embodiment, the similarity between the first and second verification data refers to the degree of matching between the verification data generated by the verification module and the verification data generated by the inkjet printing system motherboard. This similarity can be obtained in various ways, such as by calculating the proportion of identical bits between the two verification data, comparing them using a hash function, or quantifying them through specific error detection codes (ECC). Obtaining the current load of the inkjet printing system motherboard refers to obtaining the resource usage of the inkjet printing system motherboard at the current moment. This resource usage can be CPU utilization, memory usage, network bandwidth usage, etc. This load information can be collected in real time through the monitoring module inside the inkjet printing system motherboard or the operating system interface. Step B2, determining the test data generation strategy based on similarity, refers to selecting different test data generation methods based on the similarity between the first and second verification data. For example, when the similarity is high, it indicates that the impact of electromagnetic interference is relatively minor. In this case, a local testing strategy can be adopted, that is, only generating a small amount of test data related to the error area. When the similarity is low, it indicates that the impact of electromagnetic interference is relatively severe. In this case, a comprehensive testing strategy can be adopted, that is, generating test data with a wider coverage. Step B2, determining the test data volume based on the current load, refers to dynamically adjusting the test data size according to the current load of the inkjet printing system motherboard. For example, when the current load indicates a high motherboard load, a smaller amount of test data can be generated to avoid further burdening the system; conversely, when the current load indicates a low motherboard load, a larger amount of test data can be generated for more detailed communication link status diagnosis. It is important to note that the test data volume is always smaller than the print data volume to ensure testing efficiency. In step B3, test data is generated based on the test data generation strategy and the test data volume. For example, if the strategy is "partial testing" and the data volume is "small," one or several small, potentially erroneous data blocks can be selected from the original print data as test data; if the strategy is "comprehensive testing" and the data volume is "medium," multiple scattered data blocks or a larger but not all data blocks can be selected from the original print data as test data. Step B4 sends the test data to the printhead driver board via the communication interface between the motherboard and the driver board (e.g., PCIe, USB, or a dedicated data bus).
[0091] This embodiment achieves intelligent test data generation by incorporating considerations of the similarity between the first and second verification data and the current load of the inkjet printing system motherboard. Specifically, when the initial verification fails, this embodiment no longer blindly sends preset test data. Instead, it infers the degree of electromagnetic interference by analyzing the similarity between the two verification data and selects the most suitable test data generation strategy based on this degree of electromagnetic interference. Simultaneously, it dynamically adjusts the size of the test data in conjunction with the current load of the inkjet printing system motherboard to avoid system performance degradation due to sending excessively large test data when system resources are strained. Therefore, this embodiment makes test data generation more targeted and adaptable, more efficiently assisting in fault diagnosis and avoiding unnecessary burden on the system. Thus, this embodiment can avoid sending redundant or unnecessary test data and reduce the operational burden on the inkjet printing system motherboard by dynamically determining the test data generation strategy and test data volume based on the similarity between the first and second verification data and the current load of the inkjet printing system motherboard. This effectively improves the verification efficiency of the communication link status and thus effectively accelerates the retransmission of inkjet data and the recovery of printing tasks.
[0092] In some preferred embodiments, step B2 includes:
[0093] B21. Query the mapping relationship between the preset data similarity and the test data generation strategy based on the similarity to obtain the test data generation strategy;
[0094] B22. Based on the current load, query the preset mapping relationship between the load and the test data volume to obtain the test data volume.
[0095] The preset mapping relationship between data similarity and test data generation strategy in this embodiment can be a lookup table, database, or predefined rule set stored inside the inkjet printing system motherboard. This mapping relationship associates different similarity values or similarity ranges with specific test data generation strategies. For example, when the similarity is low, a more comprehensive test data generation strategy may be needed for thorough error checking; when the similarity is high but differences still exist, a more refined local testing strategy may be used. This embodiment can quickly and accurately obtain the test data generation strategy matching the current similarity by querying this mapping relationship. Similarly, the preset mapping relationship between load and test data volume in this embodiment can also be a lookup table, database, or rule set. This mapping relationship associates different system load states with appropriate test data volumes. For example, when the system load is high, a smaller test data volume may be selected to avoid further burdening the system; when the system load is low, a larger test data volume can be used to improve the thoroughness of verification. This embodiment can dynamically adjust the test data volume according to the current system operating status by querying this mapping relationship to achieve a balance between verification efficiency and system performance.
[0096] As can be seen from the above, the inkjet printing data verification method provided in this application verifies the accuracy of inkjet data transmission by introducing a two-way verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board of this application will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application is equivalent to continuing the subsequent inkjet printing operation only when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operation based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system.
[0097] Secondly, such as Figure 3 As shown, this application also provides an inkjet printing data verification device, applied in a printhead driver board. The inkjet printing data verification device includes:
[0098] Data conversion module 1 is used to generate printing data based on the inkjet data received from the inkjet printing system motherboard;
[0099] Data verification module 2 is used to send printed data to the verification module to trigger the verification module to generate first verification data based on the printed data according to a preset algorithm and send the first verification data to the inkjet printing system motherboard, thereby triggering the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board; the first comparison result is the comparison result of the first verification data and the second verification data; the second verification data is generated by the inkjet printing system motherboard based on the printed data it sends according to a preset algorithm;
[0100] The data sending module 3 is used to send the printing data to the print head when the first comparison result shows that the first verification data and the second verification data are the same.
[0101] This application provides an inkjet printing data verification device, comprising a data conversion module 1, a data verification module 2, and a data transmission module 3. The data conversion module 1 is a module in the printhead driver board responsible for converting received inkjet data into printing data that can drive the printhead. This embodiment of the inkjet printing data verification device is used to perform the steps in the inkjet printing data verification method provided in the first aspect above. The principle of this embodiment of the inkjet printing data verification device is the same as that of the inkjet printing data verification method provided in the first aspect above, and will not be discussed in detail here. Preferably, the inkjet printing data verification device of this embodiment further includes a data retransmission module. This data retransmission module is used to trigger the inkjet printing system motherboard to retransmit the inkjet data and trigger the data conversion module 1 to run when the first comparison result shows that the first verification data and the second verification data are different.
[0102] Thirdly, please refer to Figure 4 , Figure 4This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device includes a processor 101 and a memory 102. The processor 101 and the memory 102 are interconnected and communicate with each other via a communication bus 103 and / or other forms of connection mechanisms (not shown). The memory 102 stores computer-readable instructions executable by the processor 101. When the electronic device is running, the processor 101 executes the computer-readable instructions to perform the method in any optional implementation of the above embodiments, thereby achieving the following function: Step S1: Upon receiving printing data from the inkjet printing system motherboard, generate... Step S2: Send the printed data to the verification module to trigger the verification module to generate first verification data based on the printed data according to the preset algorithm and send the first verification data to the inkjet printing system motherboard, thereby triggering the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board; the first comparison result is the comparison result of the first verification data and the second verification data; the second verification data is generated by the inkjet printing system motherboard based on the preset algorithm according to the printed data it sends; Step S3: When the first comparison result shows that the first verification data and the second verification data are the same, send the printed data to the printhead.
[0103] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it executes the method in any optional implementation of the above embodiments to achieve the following functions: Step S1: Upon receiving printing data from the inkjet printing system motherboard, generating printing data based on the printing data; Step S2: Sending the printing data to a verification module to trigger the verification module to generate first verification data based on the printing data according to a preset algorithm and send the first verification data to the inkjet printing system motherboard, thereby triggering the inkjet printing system motherboard to compare the first verification data and the second verification data and send the first comparison result to the printhead driver board; The first comparison result is the comparison result of the first verification data and the second verification data; The second verification data is generated by the inkjet printing system motherboard based on the printing data it sends according to a preset algorithm; Step S3: When the first comparison result shows that the first verification data and the second verification data are the same, sending the printing data to the printhead. The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0104] As can be seen from the above, the inkjet printing data verification method, apparatus, electronic device, and storage medium provided in this application verify the accuracy of inkjet printing data transmission by introducing a bidirectional verification mechanism between the printhead driver board and the inkjet printing system motherboard. Since the printhead driver board of this application will only send the printing data to the printhead when the first verification data and the second verification data are consistent, this application is equivalent to continuing the subsequent inkjet printing operation only when the inkjet data is accurately transmitted. Therefore, this application can effectively improve the accuracy of the printing data received by the printhead and effectively avoid the situation where the printhead performs inkjet printing operation based on incorrect printing data, thereby effectively improving the user experience and the reliability and printing quality of the inkjet printing system.
[0105] In the embodiments provided in this application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of the above units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another robot, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0106] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0107] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0108] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.
[0109] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for checking inkjet printing data, applied in a printhead driving board, characterized in that, The inkjet printing data verification method comprises the following steps: S1, when receiving the printing data from the mainboard of the inkjet printing system, generating printing data according to the printing data; S2, sending the printing data to the verification module to trigger the verification module to generate first verification data based on a preset algorithm according to the printing data and send the first verification data to the mainboard of the inkjet printing system, so that the mainboard of the inkjet printing system compares the first verification data with second verification data and sends the first comparison result to the head driving board; the first comparison result is the comparison result of the first verification data and the second verification data; the second verification data is generated by the mainboard of the inkjet printing system based on the preset algorithm according to the printing data sent by the mainboard; S3, when the first comparison result is the same as the first verification data and the second verification data, sending the printing data to the printing head; S4, when the first comparison result is different from the first verification data and the second verification data, triggering the mainboard of the inkjet printing system to resend the printing data, and returning to step S1; Step S4 comprises: S41, when the first comparison result is different from the first verification data and the second verification data, triggering the mainboard of the inkjet printing system to send test data, the data amount of the test data being less than the data amount of the printing data; S42, when receiving the test data, sending the test data to the verification module to trigger the verification module to generate third verification data based on the preset algorithm according to the test data and send the third verification data to the mainboard of the inkjet printing system, so that the mainboard of the inkjet printing system compares the third verification data with fourth verification data and sends the second comparison result to the head driving board; the second comparison result is the comparison result of the third verification data and the fourth verification data; the fourth verification data is generated by the mainboard of the inkjet printing system based on the preset algorithm according to the test data sent by the mainboard; S43, when the second comparison result is the same as the third verification data and the fourth verification data, triggering the mainboard of the inkjet printing system to resend the printing data, and returning to step S1; S44, when the second comparison result is different from the third verification data and the fourth verification data, triggering the mainboard of the inkjet printing system to resend the test data after a preset time, and returning to step S42.
2. The inkjet printing data verification method of claim 1, wherein The step that the verification module generates first verification data based on a preset algorithm according to the printing data and sends the first verification data to the mainboard of the inkjet printing system comprises: A1, converting the printing data into parallel data; A2, block processing the parallel data; A3, performing parallel calculation on the block-processed parallel data based on a preset algorithm to obtain a plurality of verification sub-data; A4, integrating all the verification sub-data to obtain the first verification data; A5, sending the first verification data to the mainboard of the inkjet printing system.
3. The inkjet printing data verification method of claim 2, wherein, Step A5 comprises: A51, compressing the first check data; A52, sending the compressed first check data to the inkjet printing system mainboard.
4. The inkjet printing data verification method of claim 1, wherein The process of the inkjet printing system mainboard sending test data includes: B1, obtaining the similarity of the first check data and the second check data, and obtaining the current load of the inkjet printing system mainboard; B2, determining a test data generation strategy according to the similarity, and determining a test data amount according to the current load, the test data amount being less than the data amount of the print data; B3, generating test data according to the test data generation strategy and the test data amount; B4, sending the test data to the ink head driving board.
5. The inkjet printing data verification method of claim 4, wherein, Step B2 includes: B21, querying a preset mapping relationship between data similarity and test data generation strategy according to the similarity to obtain a test data generation strategy; B22, querying a preset mapping relationship between load and test data amount according to the current load to obtain a test data amount.
6. An inkjet printing data verification device, applied in a printhead driving board, characterized in that, The inkjet printing data checking device is used to execute the steps in the inkjet printing data checking method according to any one of claims 1-5, and the inkjet printing data checking device includes: a data conversion module, configured to generate print data according to print data received from an inkjet printing system mainboard; a data checking module, configured to send the print data to a checking module to trigger the checking module to generate first check data according to the print data based on a preset algorithm and send the first check data to the inkjet printing system mainboard, so as to trigger the inkjet printing system mainboard to compare the first check data and second check data and send a first comparison result to the ink head driving board; the first comparison result is a comparison result of the first check data and the second check data; the second check data is generated by the inkjet printing system mainboard based on the preset algorithm according to the print data sent by the inkjet printing system mainboard; a data sending module, configured to send the print data to a print ink head when the first comparison result is that the first check data is the same as the second check data.
7. An electronic device, comprising: The computer program is executed by the processor to run the steps in the method according to any one of claims 1-5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to run the steps in the method according to any one of claims 1-5.
Citation Information
Patent Citations
Ink-jet head control panel of ink-jet printer and method for transmission of printable data
CN103885734A