Printing method and equipment of intelligent self-adaptive dot matrix paper, medium and program product

Through deep learning model prediction and automatic code laying, the problems of complex and low efficiency of dot paper printing in the existing technology are solved, and the intelligent and automated printing process is realized, efficiency and user experience are improved, and the security of confidential content is ensured.

CN119668531AInactive Publication Date: 2025-03-21BEIJING TOGETHER EDUCATION TECH DEV CO LTD

Patent Information

Application Number
CN202411664836.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the dot matrix paper printing process is complicated, low efficiency, and relies on specific software and equipment, resulting in low printing efficiency.

Method used

The deep learning model predicts the matching code laying scheme, automatically lays the code and adjusts the format to realize an intelligent and automated printing process.

Benefits of technology

It improves the efficiency and accuracy of dot-matrix paper printing, reduces manual intervention, improves user experience, and ensures the information security of confidential content without affecting the normal printing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668531A_ABST
    Figure CN119668531A_ABST
Patent Text Reader

Abstract

The invention provides a printing method and equipment of intelligent self-adaptive dot matrix paper, a medium and a program product, and relates to the technical field of machine learning. The method comprises the steps of receiving printing task information of a user side, predicting to-be-printed content and determining a matched code laying scheme by utilizing a deep learning model trained based on various printing contents and code laying conditions, laying codes on the to-be-printed content according to the scheme, adjusting a code laying result to be in a set format, and printing the to-be-printed content according to the code laying result. According to the method, the printing instruction is sent to the printer in combination with the printing task information, and finally, after the feedback instruction that the printer completes dot matrix paper printing is received, the instruction is forwarded to the user side, the whole process from task receiving to printing completion and feedback is achieved, and the printing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a printing method, device, medium and program product for intelligent adaptive dot paper. Background Art

[0002] In modern office and business environments, the demand for dot paper printing is growing. Dot paper is often used to record data, draw charts, etc. Its unique dot structure facilitates subsequent data processing and identification. Whether it is file management within a school or bill printing in the business field, there are high requirements for the accuracy, efficiency and compatibility of dot paper printing with business processes.

[0003] At present, the methods of dot matrix content in the industry are basically the same. Use the coding tool to code the content you want to print, then generate a PDF file, copy the file to the computer, open it with professional PDF software such as Adobe Reader, then make print settings, and finally print and detect the code points.

[0004] However, the coding process in the prior art is complicated and requires human intervention. The coding time is long, and the PDF file is too large to download easily and takes a long time. It must be opened with professional PDF software provided by Adobe, such as Adobe Reader. This software has high requirements for the machine, and some school computers are too old to be installed, which also consumes unnecessary time. Therefore, the printing efficiency of the existing printing mode is low. Summary of the invention

[0005] The present application provides a printing method, device, medium and program product for intelligent adaptive dot paper, which are used to improve the intelligence level of dot paper printing and improve the printing efficiency of dot paper.

[0006] In the first aspect, the present application provides a method for printing intelligent adaptive dot paper, which is applied to a printing box, and the method includes: receiving printing task information sent by a user terminal; predicting the content to be printed through a pre-built deep learning model, and determining a coding scheme that matches the content to be printed, wherein the deep learning model is trained in advance based on multiple different printing contents and corresponding coding situations; coding the content to be printed according to the coding scheme to obtain a coding result; after adjusting the coding result to a set format, issuing a printing instruction to a communication-connected printer according to the coding result and the printing task information; after receiving a printing completion feedback instruction that the printer has completed printing the corresponding dot paper, sending the printing completion feedback instruction to the user terminal.

[0007] By adopting the above technical solution, after receiving the user's printing task information, the deep learning model is used to predict the coding scheme. This model is trained based on a large amount of data and can accurately match the content to be printed. After coding the content and adjusting the format, the printer is instructed to send instructions, and after printing is completed, feedback is given to the user. This realizes the intelligence and automation of the printing process, reduces the tediousness of manual selection of coding schemes, improves printing efficiency and accuracy, and users can be informed of the printing completion status in a timely manner, which improves the user experience and makes the entire printing process smoother and more efficient.

[0008] In combination with some embodiments of the first aspect, in some embodiments, after the step of predicting the content to be printed by a pre-built deep learning model and determining a coding scheme that matches the content to be printed, it also includes: if it is determined that the content to be printed is confidential content, the coding scheme is updated according to the confidential content to obtain a new coding scheme, and the new coding scheme includes encryption code point information, and the encryption code point information is used to enable a matching smart pen to decode the encryption code point information.

[0009] By adopting the above technical solution, sensitive information is encrypted during the printing process of dot-pin paper, and only the matching smart pen can decode it. This method adds a layer of security protection for confidential content without affecting the normal printing process. It uses the coding solution determined by the deep learning model as the basis, and performs special processing for confidentiality requirements, effectively preventing the leakage of confidential content during the printing process and ensuring information security.

[0010] In combination with some embodiments of the first aspect, in some embodiments, after the coding result is adjusted to a set format, after the step of issuing a printing instruction to a communicationally connected printer according to the coding result and the printing task information, it also includes: after receiving the printing failure information sent by the printer, sending the printing failure information to the user terminal.

[0011] By adopting the above technical solution, the printer forwards the printing fault information to the user end. This link allows users to know the printing problem in the first time, avoiding users waiting for a long time without knowing the reason. In the printing process, the timely transmission of printing fault information is the key to ensuring user experience. Users can take corresponding measures in time according to the fault information, such as modifying the printing content or waiting for the problem to be solved, instead of waiting blindly, which improves the transparency and availability of the entire printing system.

[0012] In combination with some embodiments of the first aspect, in some embodiments, after receiving the printing fault information sent by the printer, after the step of sending the printing fault information to the user terminal, it also includes: sending a detection signal to all printers in the preset network at a set time interval through the network protocol to determine the available printers; when receiving the printing fault of the current printer, querying the printing status of the available printer; after determining the printer priority according to the printing status, determining a backup printer according to the printer priority; and sending the print instruction to the backup printer.

[0013] By adopting the above technical solution, it is ensured to a certain extent that the printing task will not be interrupted due to a printer failure. In a complex printing environment, printer failure is inevitable. This mechanism of automatically switching to a backup printer improves the continuity and stability of the printing task, reduces the delay caused by printer failure, and improves the reliability of the printing system.

[0014] In combination with some embodiments of the first aspect, in some embodiments, after receiving a signal that the current printer has a printing failure, after the step of querying the printing status of the available printer, it also includes: sending a print failure reason request instruction to the current printer; after receiving the failure reason information fed back by the current printer, sending the failure reason information to the management end.

[0015] By adopting the above technical solution, the management end can collect fault data, and by analyzing the data, potential problems of the printer can be discovered.

[0016] In combination with some embodiments of the first aspect, in some embodiments, after the coding result is adjusted to a set format, after the step of issuing a print instruction to a communicationally connected printer according to the coding result and the print task information, it also includes: receiving the progress of the print task executed by the printer according to the print instruction; and sending the print task progress to the user terminal for display.

[0017] By adopting the above technical solution, users can understand the progress of printing in real time, and they are no longer in a blind waiting state during the printing process. In the printing process, users' understanding of the printing progress helps them to arrange subsequent work reasonably, improves the interactivity between users and the printing system, enhances the user experience, and makes the printing process more transparent and controllable.

[0018] In combination with some embodiments of the first aspect, in some embodiments, after the coding result is adjusted to a set format, after the step of issuing a printing instruction to a communicationally connected printer according to the coding result and the printing task information, it also includes: according to the printing importance of the printing instruction, the printing instruction with high importance is sent to the printer for printing in priority.

[0019] By adopting the above technical solution, it is ensured that important documents can be printed in time. In a multi-task printing environment, reasonable priority arrangement can avoid delaying the printing of important documents due to the accumulation of a large number of ordinary printing tasks. This mechanism optimizes the printing order, makes more reasonable use of printing resources, improves the response speed to important printing tasks, and ensures the smooth development of key businesses.

[0020] In a second aspect, the present application provides a printing box, which includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the printing box to execute the method described in the first aspect and any possible implementation of the first aspect.

[0021] In a third aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a printing box, causes the printing box to execute the method described in the first aspect and any possible implementation manner of the first aspect.

[0022] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on a printing box, the printing box executes the method described in the first aspect and any possible implementation manner of the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The system adopts the technical means of receiving user-side printing tasks, using deep learning models to predict and match the coding scheme, automatically adjusting the format of the coding, printing and feedback on the completion status. Therefore, it effectively solves the problem of low printing efficiency caused by the cumbersome manual selection of coding schemes in the existing technology, and thus realizes the technical effect of improving printing efficiency by intelligent automation of the printing process.

[0024] 2. Since the technical means of updating the coding scheme and adding the encryption code point information when determining the confidential content is adopted, the problem of easy leakage of confidential content in the printing process in the prior art is effectively solved, thereby achieving the technical effect of ensuring the security of confidential content information without affecting the normal printing process.

[0025] 3. Due to the technical means of arranging printing priorities according to the importance of printing instructions, the problem of important documents being delayed in printing due to the accumulation of ordinary tasks during multi-task printing in the prior art is effectively solved, thereby achieving the technical effect of optimizing the printing order, rationally utilizing printing resources, improving the response speed to important tasks and ensuring the development of key businesses. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of an application process of the printing method of the intelligent adaptive dot paper in the embodiment of the present application; Figure 2 A schematic flow chart of a method for printing intelligent adaptive dot paper in an embodiment of the present application; Figure 3 is another flow chart of the method for printing intelligent adaptive dot paper in an embodiment of the present application; Figure 4 It is a schematic diagram of the structure of a physical device of a printing box in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0029] In the context of the growing demand for digital office and information recording, dot paper printing still plays an important role in many fields. However, the traditional dot paper printing method has many limitations, such as complex coding process, low efficiency, high dependence on specific software and equipment, etc. The present invention aims to provide an innovative intelligent adaptive dot paper printing method, which can realize the intelligence, efficiency and security of the printing process by introducing advanced technical means and taking the printing box as the core execution body.

[0030] For ease of understanding, the overall framework of the method of this embodiment is described below. A long connection encrypted by TLS is established between the cloud system where the print box is located and the print box. The TLS (Transport Layer Security) encryption protocol ensures the confidentiality, integrity and authenticity of the data during transmission, and prevents the data from being stolen, tampered with or forged. This encrypted long connection provides a safe and reliable communication basis for subsequent operations such as print task management and data interaction, ensuring that various information can be transmitted between the cloud system and the print box in a timely and accurate manner. In addition, in order to cope with print tasks from different business scenarios, the system designs and implements a set of efficient task management mechanisms, which adopts a combination of FIFO (First-In-First-Out) queues and Round Robin polling algorithms. The FIFO queue ensures that print tasks are queued in the order of submission, ensures fairness, and avoids unreasonable situations such as task queue jumping. The RoundRobin polling algorithm is used to reasonably allocate tasks among multiple idle printers. When a print task enters the queue, the system will assign the task to each idle printer in turn according to the idle status of the printer, so that each printer can evenly undertake the printing task, thereby maximizing the use of idle printer resources. Most of the traditional coding methods in the industry use cloud coding, which has many limitations. It can usually only run in a Windows server environment, which is extremely inconvenient for some users or scenarios using other operating systems (such as Linux). Moreover, even in the environment of Intel architecture high-end cloud server (8c 32g), its single-process coding speed can only reach 1s / A3 double-sided at the fastest, and there is limited room for performance improvement. This application has comprehensively optimized the coding algorithm, and improved the coding efficiency by improving the algorithm logic and adjusting the calculation process. Secondly, the transcompilation work was carried out to enable the coding program to run on the Linux system, broadening the compatibility of the system. At the same time, some dependent parsing packages were replaced, reducing the dependence on specific software or libraries, reducing costs and potential compatibility issues. In addition, unnecessary means such as printing coding were streamlined to further optimize the coding process. Through these comprehensive measures, we successfully implemented the coding program on the Linux system and ARM processor architecture, and achieved the same coding speed as the traditional high-end cloud server in a lower hardware configuration (4c 8g). This not only reduced hardware costs, but also improved the flexibility and scalability of the system, providing users in different hardware environments with efficient coding solutions.

[0031] See also Figure 1 , which is a schematic diagram of an application process of the printing method of intelligent adaptive dot paper in an embodiment of the present application.

[0032] Figure 1 In the teaching management platform, teachers create coding tasks according to teaching needs, such as printing test papers with specific code point information for a certain exam. The teacher sets relevant parameters on the platform, such as test paper content, number of copies, coding requirements and printing format, and then clicks the button to issue the task. The platform transmits the task information to the specified printing box in PDF format through the network. The printing box performs local coding according to the corresponding coding scheme generated, and prints the printer connected to the PDF parsing driver. After the printer receives the printing instruction, it starts to execute the printing task. During the printing process, the printing box monitors the status of the printer in real time. When the printer completes the printing task, it sends a printing completion feedback signal to the printing box. After receiving the signal, the printing box will check the printing results to ensure that all pages have been printed correctly and the code point information is complete and recognizable. If the check passes, the printing box confirms that the printing task has been successfully completed and is ready to send a printing reminder to the teacher; if the check finds problems (such as blurred printing of some pages, missing code points, etc.), the printing box will mark the printing as failed and enter the failure processing process, detect the failure cause in detail and try to take corresponding measures to deal with it.

[0033] The following is a description of the process of the method provided by this implementation. Figure 2 , is a flow chart of a method for printing intelligent adaptive dot paper in an embodiment of the present application.

[0034] S201, receiving printing task information sent by the user terminal; The print box is equipped with a variety of communication interfaces, including but not limited to Ethernet interfaces, Wi-Fi modules, and Bluetooth interfaces, etc., to ensure wide compatibility with different types of user-end devices (such as computers, mobile phones, and other devices). In terms of network communication protocols, it supports the common TCP / IP protocol family, which is used to stably receive print task information sent from the user end through the local area network or the Internet. Once the print task information data packet is received, the built-in parser of the print box is immediately started. The parser can recognize task information in multiple formats, such as common print task description languages ​​and customized print task formats. It accurately extracts key information from the data packet, such as the name of the document to be printed, the format (such as PDF, DOC, JPEG, etc.), page range, number of copies, print quality requirements (such as resolution), and special printing instructions (such as double-sided printing, scaling, etc.).

[0035] In some scenarios with high requirements for information security and resource management, the print box can integrate a user authentication mechanism. When receiving print task information, the user can first be asked to provide identity credentials, such as user name and password, digital certificate or biometric information, which can be set according to actual needs. The print box verifies the user's identity by comparing it with a local or remote user database. At the same time, the permission management system is queried based on the user's identity information to determine whether the user has the authority to perform the current print task. For example, in an enterprise office environment, only employees in a specific department have the right to print confidential documents, and ordinary employees are restricted from accessing certain printing resources. If the user's identity authentication fails or the authority is insufficient, the print box will refuse to receive the print task and return the corresponding error prompt information to the user.

[0036] S202, predicting the content to be printed by using a pre-built deep learning model, and determining a coding scheme that matches the content to be printed, wherein the deep learning model is trained in advance based on a plurality of different printing contents and corresponding coding situations; A hybrid deep learning model can be used in advance, combining the advantages of convolutional neural networks (CNNs) and recurrent neural networks (RNNs). CNNs are used to extract image features from the content to be printed, such as the shape, color, texture, and other features of elements such as charts and pictures in documents, as well as visual features such as fonts and font sizes of text. RNNs are used to process text sequence information and capture the semantic relationship and logical structure between texts. Collect a large number of printed content samples of different types and fields, including academic papers, business reports, artworks, technical drawings, etc., and the corresponding high-quality paving schemes as training data. Preprocess these data, including normalization, cropping, enhancement (such as rotation, flipping, brightness adjustment, etc.) of images, and word segmentation, stem extraction, vectorization, etc. of text, to improve the generalization ability and learning effect of the model. Use the stochastic gradient descent optimization algorithm combined with the back propagation algorithm to train the model. During the training process, the cross entropy loss function is used to measure the difference between the paving scheme predicted by the model and the actual paving scheme, and the loss function is minimized by adjusting the weight and bias parameters of the model. For example, during the training process, the model learned the association between the font and size characteristics of different chapter titles in academic papers and specific coding methods, as well as the layout and code point distribution patterns of charts and graphs in business reports. After a large number of iterative training, the model can accurately predict the appropriate coding scheme based on the input characteristics of the content to be printed.

[0037] After receiving the content to be printed, the printing box first performs the corresponding feature extraction operation according to the format of the content. For content in image format (such as JPEG, PNG, etc.), the convolution layer and pooling layer of the CNN model are used to extract the local and global features of the image and generate a feature map. For content in text format (such as TXT, DOC, etc.), the text is converted into a vector representation through word embedding technology, and then input into the RNN model to extract the semantic features of the text.

[0038] The extracted feature vectors are then combined and input into the trained deep learning model for prediction. The model performs complex calculations and reasoning in its internal neural network layer based on the input features, and finally outputs the coding scheme that best matches the content to be printed by comparing the input features with the pattern matching in the training data. The coding scheme includes the type of code points (such as binary code points, grayscale code points, etc.), the distribution density of code points (such as the number of code points per page, the distribution area of ​​code points on the page, etc.), the relative position relationship between code points and content elements (such as alignment with text, the way to surround charts, etc.), and the embedding method of encoding information (such as page number, document ID, timestamp, etc.).

[0039] Taking a business presentation containing complex charts and a large amount of text descriptions as an example, after analyzing the image features of the charts and the semantic features of the text, the model may determine a coding scheme that densely distributes code points around the chart to accurately record the chart information, while sparsely distributing code points in the line spacing of the text paragraph to assist in the recognition of text content.

[0040] S203, coding the content to be printed according to the coding scheme to obtain a coding result; According to the determined code laying scheme, the printing box uses the built-in code point generation algorithm to generate the corresponding code point pattern. For binary code points, the information to be embedded (such as page number, document ID, etc.) is converted into a binary sequence through specific encoding rules, and then these binary bits are mapped to the pixel or character position of the content to be printed according to the code point distribution density and position relationship to form a code point pattern. For grayscale code points, a more complex encoding method is used to represent information by using the grayscale value change of pixels, which increases the information storage capacity and anti-interference ability.

[0041] When embedding code points, the size and transparency of the code points need to be precisely controlled to ensure accurate information encoding without affecting the readability of the original printed content. For example, for text content, the size of the code points can be set to a certain percentage (such as 1 / 10) smaller than the text font size, and the transparency is set to a lower level (such as 10%-20%), so that the code points do not visually interfere with the reading of the text, but can be accurately detected when scanning or recognizing.

[0042] The print box embeds the generated code point pattern into the content to be printed according to the code point distribution position and method specified in the coding scheme. For image content, the code points are added by directly modifying the pixel value at the pixel level of the image. For text content, code points are represented by inserting special characters or symbols during the text typesetting process. These special characters will appear as tiny patterns when printed, but they are not easy to detect at a normal reading distance. When processing multi-page documents, each page is coded independently, and it is ensured that the code point information of each page accurately corresponds to the relevant information such as the page number and the overall structure of the document. After the coding operation, the entire content to be printed is converted into a dot paper format with hidden code point information to form the final coding result. The print box stores the result in the local cache, ready for subsequent format adjustments and printing instructions.

[0043] S204, after adjusting the coding result to the set format, issuing a printing instruction to the communication connected printer according to the coding result and the printing task information; The Print Box has a built-in powerful format compatibility analysis module, which can automatically identify the current format of the coding result and compare it with the format supported by the target printer. When a format mismatch is found, the format conversion engine is started. The format conversion engine converts the coding result from the original format to a format that can be directly processed by the target printer based on advanced image processing and document conversion algorithms. For example, if the original coding result is a custom encrypted dot matrix format, the conversion engine will convert it into a standard PDF format to ensure that the printer can parse and print it correctly. The instruction generation module in the Print Box generates detailed printing instructions according to the instruction set specifications of the target printer based on the adjusted coding result and printing task information. These instructions include basic operations to control the printer, such as paper feeding, print head movement, inkjet or laser printing actions, etc., as well as special instructions related to code point printing, such as the printing order of code points, color depth control (if applicable), etc. The instruction generation module will also generate a corresponding number of repeated printing instruction sequences based on the number of copies required in the printing task. The Print Box sends the generated printing instructions to the printer using the corresponding communication protocol through the communication connection established with the printer.

[0044] In some embodiments, if it is in a complex office network environment, there may be multiple printers connected to the print box. The print box monitors the working status of each printer in real time, including the current printing task volume, the number of remaining papers, the remaining ink cartridges or toner cartridges, the network connection status of the printer, and historical failure rates and other multi-dimensional information. When a new print task is received, the intelligent resource allocation algorithm of the print box comprehensively evaluates the load and availability of each printer based on the above monitoring information, and selects the most suitable printer to perform the print task. For example, if one printer is currently processing a large number of simple text printing tasks, and the paper and ink cartridges are sufficient, and the network connection is stable, while another printer has just completed a large color image printing task, the ink cartridges are low and the paper needs to be replaced, the print box will give priority to allocating new print tasks to the former to achieve efficient utilization of printing resources and load balancing.

[0045] In addition, the Print Box can also intelligently distribute different types of printing tasks according to the performance characteristics of the printer (such as printing speed, resolution support range, etc.). For example, for high-precision image printing tasks, priority is given to printers with high-resolution printing capabilities; for large amounts of black and white text printing tasks, they are assigned to black and white printers with faster printing speeds, further improving overall printing efficiency and quality.

[0046] In some embodiments, during the execution of the print instruction, the printer sends the current print task progress data to the print box at a predetermined time interval. The progress data includes key information such as the number of pages printed, the total number of pages, the completion percentage of the current print page, and the printing speed. The print box receives these progress data by monitoring the corresponding communication port, and the print box uses the corresponding communication technology to push the print task progress to the user end. In an environment where multiple users share the print box and printer, the print box needs to effectively manage and distinguish the progress of multiple print tasks of different users, ensuring that each user can only view the progress of the print task submitted by himself, while avoiding confusion and conflict of progress information. To this end, when sending and storing progress information, the print box will associate the corresponding user ID and task ID, and filter and display it according to the user identity when it is displayed on the user end. In this way, users can grasp the execution of the print task in real time, arrange working time reasonably, reduce the time waste caused by waiting for the printing to be completed, and also improve the transparency and user experience of the entire printing system.

[0047] In some embodiments, when submitting a print task, the user can mark the importance of the print instruction through a specific field or option in the print task information. For example, on the user interface of the print management software, options such as "high priority", "medium priority" and "low priority" are provided for the user to choose. The user marks the document according to factors such as the urgency and importance of the document. For example, an urgent contract document can be marked as a high priority, a daily work report can be marked as a medium priority, and personal reference materials can be marked as a low priority. When receiving the print task information, the print box parses and extracts the priority mark set by the user, and associates it with the print instruction for subsequent priority sorting and processing. At the same time, the print box can also provide default priority rules. For example, print tasks from specific departments (such as finance, senior management, etc.) have a higher priority by default, or print tasks submitted within a specific time period (such as an approaching meeting, project deadline, etc.) automatically increase the priority to meet the printing needs in different scenarios. The print box maintains multiple priority queues internally, corresponding to print instructions of different importance. When a new print instruction is received, it is inserted into the corresponding queue according to its priority. Tasks in the high-priority queue are always processed before tasks in the medium-priority and low-priority queues. The Print Box monitors the status of each priority queue in real time, including queue length, task waiting time and other information. When the printer is idle, it first checks whether there are pending tasks in the high-priority queue. If so, the task is immediately taken out of the high-priority queue and sent to the printer for printing; if the high-priority queue is empty, the medium-priority queue and the low-priority queue are checked in turn, and tasks are selected for processing according to the same principle. This can more intelligently allocate printing resources, ensure timely printing of important documents, improve overall printing efficiency, and provide a good user experience and management flexibility to adapt to complex and changing office printing environments.

[0048] S205: After receiving a print completion feedback instruction indicating that the printer has completed printing the corresponding dot paper, the print completion feedback instruction is sent to the user terminal.

[0049] The print box continuously monitors the feedback information sent by the printer through the communication connection. Once the print completion feedback instruction is detected, it immediately identifies and extracts key information, such as the unique identifier of the print task, the device number of the printer, the print completion time, etc. In the process of receiving the feedback instruction, the print box can detect errors and conduct preliminary analysis of the printing process. By comparing with the original print instruction sent to the printer, check whether there are printing errors, such as paper jams that cause some pages to not be printed, and ink or toner running out that causes print quality problems. If an abnormality is found, the print box can try to communicate further with the printer to obtain detailed error codes or error description information so that appropriate corrective measures can be taken. The print box uses the corresponding adaptation technology to send the print completion feedback instruction to the user end according to the type of user end device and the communication mode. Provide user feedback interaction function. After receiving the print completion feedback instruction, the user end can send a confirmation message or feedback to the print box. For example, the user can confirm the receipt of the printed document, or report print quality problems (such as blurred handwriting, color deviation, etc.). After receiving the user feedback, the print box records the relevant information and handles it accordingly. If it is a print quality problem, PrintBox can feedback the problem to the administrator and suggest the user to reprint or take other remedial measures. In addition, PrintBox can also provide users with personalized printing suggestions and optimization solutions based on the user's historical printing behavior and feedback information. For example, if the user often prints a specific type of document and has high requirements for print quality, PrintBox can automatically adjust the parameter settings (such as resolution, color mode, etc.) of subsequent similar printing tasks to improve user satisfaction.

[0050] After combining the above embodiments, the method provided by this embodiment is further described in more detail below. Figure 3 , is another flow chart of the printing method of the intelligent adaptive dot paper in the embodiment of the present application.

[0051] S301, after receiving the printing failure information sent by the printer, sending the printing failure information to the user terminal; The print box is equipped with a reliable communication interface to receive fault information sent by the printer. When the printer fails, it will encapsulate the fault information into a data packet according to the pre-agreed format and protocol and send it to the print box. The communication module of the print box monitors the data packets from the printer in real time. Once the data is received, it first performs protocol parsing to determine whether the type of the data packet is printing fault information. For example, by checking a specific field or identifier in the data packet, it is determined that it is fault-related information. For the data packet identified as printing fault information, the print box further extracts the detailed content. The fault information may include an error code, an error description, a timestamp of the fault, the device identification of the printer, etc. According to the type and connection method of the user-side device, the print box uses the corresponding communication technology to send the fault information to the user-side. In addition to informing the user of the type of paper jam fault, the print box can also attach a brief operating instruction in the message, such as "Please carefully open the front cover of the printer, gently remove the jammed paper, then close the front cover and try to print again." Such information can guide users to take the right measures at the first time and reduce the time wasted waiting for technical support.

[0052] S302, sending a detection signal to all printers in a preset network at a set time interval through a network protocol to determine available printers; The Print Box is pre-configured with the IP addresses or device identification information of all printers in the preset network, which are stored in the local configuration file or database. After determining that the current printer has failed, it sends a detection signal in the set area to traverse this list and send a detection request to each printer in turn to ensure that all target printers in the network are fully detected. After receiving the detection signal, the printer returns the corresponding response data packet according to the protocol specification. The Print Box listens to the response from the printer. For custom protocols, the Print Box parses specific fields in the response data packet to determine the printer's status information (such as whether it is working normally, whether it is idle, etc.). If no response is received from the printer within the timeout period, the Print Box marks the printer as possibly offline or unavailable. The Print Box updates the locally stored printer status information in real time based on the detection results. For available printers, record their online time, current working status (idle, busy, etc.) and other related information (such as the remaining number of papers, ink cartridge or toner cartridge status, etc., if the printer supports providing such information).

[0053] S303, after receiving the message that the current printer has a printing failure, querying the printing status of the available printer; When the Print Box receives the printing failure information of the current printer and completes the notification to the user, it immediately starts the query process for the printing status of the available printers. The task scheduling mechanism inside the Print Box adds the query task to the work queue to ensure that the query operation is executed in the predetermined order and priority. At the same time, the information of the currently faulty printer is recorded for subsequent fault handling and analysis.

[0054] During the query process, the print box can suspend sending further print instructions to the faulty printer to avoid wasting system resources or backlog of print tasks due to the faulty printer continuously occupying print tasks. However, for tasks already in the queue of the faulty printer, they are processed accordingly according to the user's settings (such as whether to allow tasks to be automatically transferred to other printers). The print box determines the range of available printers to be queried, that is, the set of printers previously determined to be available through detection signals in addition to the currently faulty printer. The relevant identification and connection information of these available printers are extracted from the locally stored printer status information database to prepare for subsequent status query operations.

[0055] The print box requests various status information from the printer, such as whether the printer is printing, the length of the print task queue, the number of remaining papers, the remaining ink or toner cartridges, the printer error status code, etc. The printer returns a corresponding response message based on the request, which contains the requested status information. The print box parses these response messages and extracts key status data. In order to improve the query efficiency, especially when there are multiple available printers in the network, the print box uses multi-threading technology to query the status of multiple printers at the same time. Each thread is responsible for communicating with a printer and obtaining status information. The threads are independent of each other and execute concurrently. This can greatly shorten the total time to query the status of all available printers, allowing the print box to make decisions faster and select the appropriate backup printer.

[0056] S304, sending a print failure reason request instruction to the current printer; The print box constructs a request instruction specifically for obtaining the reason for printing failure based on the communication protocol pre-agreed with the printer. The instruction contains a specific command code or operator to clearly instruct the printer to return detailed information about the reason for failure. The print box sends the print failure reason request instruction to the printer that is currently faulty. At the same time, it sets an appropriate timeout period and retransmission mechanism. If no response is received from the printer within the specified time, the print box will automatically retransmit the request instruction to improve the success rate of instruction sending.

[0057] S305, after receiving the failure reason information fed back by the current printer, sending the failure reason information to the management end; The Print Box continuously monitors the printer's response to the print failure reason request command. Once the response data packet is received, it is first parsed according to the communication protocol to extract the failure reason information contained therein, and then the failure reason information is sent to the management end. The Print Box can choose to store it locally as part of the historical failure data.

[0058] S306, after determining the printer priority according to the printing status, determining a backup printer according to the printer priority; PrintBox establishes a printer priority evaluation model that comprehensively considers multiple factors. These factors include the current working status of the printer (idle, busy, paused, etc.), the number of remaining papers, the remaining ink or toner cartridges, the historical failure rate, the printing speed, the resolution support, the compatibility with the current printing task (such as whether it supports specific paper types, color modes, etc.), and the stability of the network connection. Each factor is assigned a different weight value according to its importance to the printing task, and the comprehensive priority score of each printer is obtained through weighted calculation. The status and related parameters of the printer are dynamically changing, so PrintBox monitors these changes in real time and updates the priority evaluation results of the printer in a timely manner. In addition, PrintBox can also adaptively adjust the weight values ​​in the priority evaluation model based on user feedback and the execution of historical printing tasks. If it is found that the impact of certain factors on the printing task in actual application is different from the expected, PrintBox can automatically optimize the weight distribution to make the priority evaluation results more in line with actual needs. According to the calculated printer priority score, PrintBox sorts all available printers in descending order. Then, the printer with the highest priority is selected as the backup printer from the sorted printer list. If there are multiple printers with the same highest priority, the print box can determine the final backup printer by random selection or according to pre-set rules.

[0059] S307: Send the print instruction to the standby printer.

[0060] Before sending a print instruction to the backup printer, the print box adjusts and adapts the instruction according to the specific characteristics of the backup printer, including the printer's resolution support, color mode, paper size support, printing speed, etc. The print box sends the adjusted and adapted print instruction to the backup printer. After receiving the print instruction, the backup printer returns a command reception confirmation signal to the print box. After receiving the confirmation signal, the print box enters the instruction execution monitoring stage, waiting for the backup printer to complete the print task and return the print completion feedback information. If the confirmation signal is not received within the specified time or an error signal is received, the print box will handle it according to the pre-set error handling strategy. For example, resending the instruction, checking whether the communication connection is normal, trying to wake up the backup printer, etc.

[0061] In the embodiment of the present application, a series of technical means are adopted to promptly send the received printing fault information of the printer to the user end, actively detect the printer status in the network, deeply query the status of available printers, obtain and feedback the current printer failure reason to the management end, comprehensively evaluate and determine the printer priority and switch to the backup printer, and send printing instructions to the backup printer adapter. Therefore, it effectively solves the problems of printing task interruption caused by printer failure, users cannot know the fault situation in time, the management end has difficulty in grasping the details of the printer failure, and unreasonable backup printer selection affects printing efficiency. The technical effect of improving the reliability of the printing system, enhancing the user experience, assisting management decisions, optimizing the allocation of printing resources and ensuring the smooth execution of printing tasks is achieved.

[0062] The following describes the printing box in the embodiment of the present invention from the perspective of hardware processing. Figure 4 , is a schematic diagram of the structure of a physical device for printing a box in an embodiment of the present application.

[0063] It should be noted that Figure 4 The structure of the printing box shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0064] like Figure 4 As shown, the printing box includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. In the RAM 403, various programs and data required for system operation are also stored. The CPU 401, the ROM 402 and the RAM 403 are connected to each other through the bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.

[0065] The following components are connected to the I / O interface 405: an input section 406 including an audio input device, a button switch, etc.; an output section 407 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.

[0066] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the present invention are performed.

[0067] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0068] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.

[0069] Specifically, the printing box of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the printing method of the intelligent adaptive dot paper provided in the above embodiment is implemented.

[0070] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the printing box described in the above embodiment; or may exist independently without being assembled into the printing box. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the printing box, the printing box implements the printing method of the intelligent adaptive dot paper provided in the above embodiment.

[0071] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 application.

[0072] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0073] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A method for printing intelligent adaptive dot paper, applied to printing boxes, characterized in that: The method comprises: Receive printing task information sent by the user; Predict the content to be printed by using a pre-built deep learning model, and determine a coding scheme that matches the content to be printed, wherein the deep learning model is trained in advance based on a plurality of different printing contents and corresponding coding situations; Coding the content to be printed according to the coding scheme to obtain a coding result; After adjusting the coding result to a set format, issuing a printing instruction to a communication-connected printer according to the coding result and the printing task information; After receiving the print completion feedback instruction indicating that the printer has completed printing the corresponding dot paper, the print completion feedback instruction is sent to the user terminal.

2. The method according to claim 1, characterized in that: After predicting the content to be printed by using the pre-built deep learning model and determining a coding scheme matching the content to be printed, the method further includes: If it is determined that the content to be printed is confidential content, the coding scheme is updated according to the confidential content to obtain a new coding scheme, wherein the new coding scheme includes encryption code point information, and the encryption code point information is used to enable a matching smart pen to decode the encryption code point information.

3. The method according to claim 1, characterized in that: After adjusting the coding result to a set format, after the step of issuing a printing instruction to a communication-connected printer according to the coding result and the printing task information, the method further includes: After receiving the printing failure information sent by the printer, the printing failure information is sent to the user terminal.

4. The method according to claim 3, characterized in that After receiving the printing fault information sent by the printer, after the step of sending the printing fault information to the user terminal, the method further includes: Sending a detection signal to all printers in a preset network at a set time interval through a network protocol to determine available printers; After receiving a message that the current printer has a printing failure, querying the printing status of the available printer; After determining the printer priority according to the printing status, determining a backup printer according to the printer priority; The printing instruction is sent to the standby printer.

5. The method according to claim 4, characterized in that After receiving the information that the current printer has a printing failure, after the step of querying the printing status of the available printer, the method further includes: Sending a print failure reason request instruction to the current printer; After receiving the failure reason information fed back by the current printer, the failure reason information is sent to the management end.

6. The method according to claim 1, characterized in that After adjusting the coding result to a set format, after the step of issuing a printing instruction to a communication-connected printer according to the coding result and the printing task information, the method further includes: receiving a print task progress executed by the printer according to the print instruction; The printing task progress is sent to the user terminal for display.

7. The method according to claim 1, characterized in that After adjusting the coding result to a set format, after the step of issuing a printing instruction to a communication-connected printer according to the coding result and the printing task information, the method further includes: According to the printing importance of the printing instructions, the printing instructions with higher importance are sent to the printer for printing.

8. A printing box, characterized in that: The printing box comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions to make the printing box execute the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on the printing box, the printing box is caused to execute the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on a printing box, the printing box is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dynamic-two-dimension-code generation method used for digitalization of paper-based voucher

    CN103903037A

  • Character encoding identification method and device

    CN108197087A

  • Homework arrangement and correction method and system, server

    CN112534464A

  • Lattice structure unit performance prediction method and device based on machine learning

    CN115859806A

  • Screen invisible watermark coding and decoding system and method

    CN116630131A

Cited By

  • ARD printing task processing method and system based on cloud scheduling and storage medium

    CN120848827A

  • Cloud-based scheduling of ard print job processing method, system, and storage medium

    CN120848827B