A collaborative printing processing method, printer and storage medium
Through the collaborative printing processing method, the first processing module is used to monitor and wake up the second processing module, and share the cache space to process the printing task, solving the problems of slow speed and high energy consumption of traditional printers, and achieving efficient and low-power printing Effects extend the printer life.
Patent Information
- Application Number
- CN202411084212.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Traditional printers are slow and inefficient when handling complex printing tasks, and cannot meet the needs of efficient and high-quality printing. At the same time, long-term energy consumption and loss affect service life.
The collaborative printing processing method is adopted, and the first processing module is monitored and the second processing module is awakened, and the shared cache space is used to perform printing task processing, reducing the burden on the main core and saving energy consumption.
While ensuring printing quality, it reduces the overall power consumption of the printer, extends the printer's service life, and improves printing processing speed and efficiency.
Smart Images

Figure CN118626031B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of printers, and in particular to a collaborative printing processing method, a printer and a storage medium. Background Art
[0002] With the continuous development of information technology, printers, as important output devices, play an increasingly important role in daily life and work. However, traditional printers often have problems such as slow processing speed and low efficiency when handling complex printing tasks, and cannot meet users' needs for efficient and high-quality printing. In order to improve the processing speed and efficiency of printers, integrated multi-core printing systems have appeared on the market, such as printers with SOC (System on a Chip) modules. The SOC module integrates multiple functional modules on a single chip, and can significantly improve the processing speed and performance of the printer by optimizing the hardware structure and algorithm. It is precisely because of the need to handle some high-power consumption tasks that long-term energy consumption is not conducive to the service life of the printer. Therefore, how to improve the service life of the printer has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In view of this, the main purpose of the present invention is to provide a collaborative printing processing method, a printer and a storage medium, aiming to save the energy consumption of the printer, reduce the burden on the main core of the printer, and increase the service life of the printer.
[0004] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0005] An embodiment of the present invention provides a collaborative printing processing method, which is applied to a printer, wherein the printer includes a first processing module, a second processing module and a printer module; the method includes:
[0006] The first processing module in the first state monitors a printing instruction;
[0007] After the first processing module monitors the printing instruction, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space; the power consumption of the second processing module in the second state is lower than the power consumption of the second processing module in the first state; the power consumption of the first processing module in the first state is lower than the power consumption of the second processing module in the first state; the second processing module enters the first state after being awakened; the first cache space is a shared cache space of the first processing module and the second processing module;
[0008] The second processing module that enters the first state reads the printing instruction from the first buffer space, and controls the printer module to execute the printing task corresponding to the printing instruction;
[0009] After waking up the second processing module, the first processing module starts monitoring the status of the second processing module and / or the printer module;
[0010] When an abnormality is detected in the second processing module or the printer module, a printing abnormality processing operation is performed.
[0011] In the above solution, the second processing module entering the first state reads the printing instruction from the first buffer space and controls the printer module to execute the printing task, including:
[0012] The second processing module entering the first state parses the print task corresponding to the print instruction to obtain print data;
[0013] Writing the print data into a second cache space, where the second cache space is a shared storage space between the first processing module and the second processing module;
[0014] The print data is split and distributed.
[0015] In the above solution, after the first processing module monitors the printing instruction, waking up the second processing module in the second state and storing the printing instruction in the first cache space includes:
[0016] After the first processing module monitors the printing instruction, determining the task amount of the printing task corresponding to the printing instruction;
[0017] If the task amount of the printing task corresponding to the printing instruction is greater than the task amount threshold, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0018] In the above scheme, the method further comprises:
[0019] If the task amount of the printing task corresponding to the printing instruction is less than or equal to the task amount threshold, the first processing module in the first state controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction.
[0020] In the above scheme, the method further comprises:
[0021] If the printing task amount corresponding to the printing instruction is less than or equal to the task amount threshold, determining the printing mode corresponding to the printing instruction;
[0022] If the printing mode corresponding to the printing instruction is a color printing mode, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0023] In the above solution, when the second processing module or the printer module is detected to be abnormal, the printing abnormality processing operation is performed, including:
[0024] When the engine monitoring program in the first processing module detects that the second processing module or the printer module is abnormal, the engine monitoring program in the first processing module feeds back an abnormal signal to the first printing driver in the first processing module;
[0025] The first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module according to the abnormal signal;
[0026] The second printing driver of the second processing module performs a printing exception processing operation based on the exception feedback signal.
[0027] In the above solution, the second printing driver of the second processing module performs a printing exception processing operation based on the abnormal feedback signal, including:
[0028] The second print driver of the second processing module determines the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal, and stores the first pointer information in a third cache space, wherein the third cache space is a shared storage space of the first processing module and the second processing module;
[0029] The first processing module reads the first pointer information from the third shared storage space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
[0030] In the above scheme, the method further comprises:
[0031] During the process in which the second printing driver of the second processing module performs the printing exception processing operation based on the exception feedback signal, the engine monitoring program in the first processing module continues to monitor the status of the second processing module or the printer module;
[0032] When the engine monitoring program of the first processing module detects abnormal recovery, determining the second pointer information of the second data packet being executed by the first processing module, and storing the second pointer information in a fourth cache space, wherein the fourth cache space is a shared storage space of the first processing module and the second processing module;
[0033] The second processing module reads the second pointer information from the fourth cache space, and continues to execute the printing task using the second printing driver according to the address of the second data packet indicated by the second pointer information.
[0034] To achieve the above object, an embodiment of the present invention further provides a printer, the printer comprising:
[0035] processor;
[0036] a memory for storing processor-executable instructions;
[0037] Wherein, the processor is used to execute the above-mentioned collaborative printing processing method.
[0038] To achieve the above objectives, an embodiment of the present invention further provides a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to enable the one or more processors to execute the collaborative printing processing method as described above.
[0039] The embodiment of the present invention provides a collaborative printing processing method and device, which first monitors the printing instruction only through the first processing module in the first state, and wakes up the second processing module in the second state after monitoring the printing instruction, and the awakened second processing module, that is, the second processing module in the first state, performs the printing process; and the first processing module continues to monitor the printing state, and performs the printing exception processing operation in time when an exception is monitored. In this way, through the collaborative printing processing method, and not limited to the printing process or the exception detection process, the energy consumption of the printer can be saved, the burden of the main core of the printer, that is, the second processing module, can be reduced, and the service life of the printer can be increased. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0041] Figure 1 Optional program architecture diagram for executing printing tasks for printers;
[0042] Figure 2 A schematic flow chart of a collaborative printing processing method provided in some embodiments of the present invention;
[0043] Figure 3 Another flowchart of the collaborative printing processing method provided by some embodiments of the present invention;
[0044] Figure 4 Another flowchart of the collaborative printing processing method provided by some embodiments of the present invention;
[0045] Figure 5 A schematic diagram of an interactive process of a collaborative printing processing method provided by some embodiments of the present invention;
[0046] Figure 6 A schematic diagram of the structure of a collaborative printing processing device provided in some embodiments of the present invention;
[0047] Figure 7 A schematic diagram of the hardware structure provided for some embodiments of the present invention. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0049] It should be noted that as a common office equipment, the working principle of a printer involves multiple links that work together to complete the printing task. Among them, the main working links of a common printer are:
[0050] Receiving print tasks: The printer first receives print tasks sent by computers or other devices through an interface (such as USB, Wi-Fi, Bluetooth, etc.). These tasks usually exist in the form of digital files, including text, images and other information.
[0051] Data processing and conversion: After receiving the print job, the printer will process the data and convert it into a format that the printer can understand. This process includes parsing the file, converting images or text into pixels, etc.
[0052] Print head control: The printer's print head is the key component that performs printing tasks. The controller sends instructions to the print head, telling it where to start printing, how to move, and when to spray ink or toner.
[0053] Paper feeding and positioning: Before printing begins, the printer will feed the paper into the printing area through the paper feeding mechanism. The position of the paper needs to be accurately aligned to ensure that the printed text or image can appear accurately on the paper.
[0054] Ink / Toner Ejection: The nozzles of the print head eject ink or toner at the appropriate location according to the instructions of the controller.
[0055] Image formation and curing: The ink or toner sprayed onto the paper will form text or images. For inkjet printers, the ink takes a certain amount of time to dry and solidify; while for laser printers, the toner needs to be heated by the fuser to be fixed on the paper.
[0056] Cleaning and maintenance: In order to maintain the quality of the printer, the printer needs to be cleaned and maintained regularly. For example, the print head needs to be cleaned regularly to prevent clogging, and the fuser also needs to be cleaned regularly to prevent residue from affecting the printing effect.
[0057] Output and Paper Pickup: After printing is completed, the paper will be sent out of the printer through the output mechanism. Users can directly take the printed paper away, or send it to other devices for subsequent processing (such as copying, binding, etc.).
[0058] In short, the working principle of a printer is a complex and delicate process involving the coordinated work of multiple links and components.
[0059] See also Figure 1 , Figure 1 Figure 1 An optional program architecture diagram for a printer to execute a print task; in some printers, the printer's processing module first inputs and outputs data through an input / output interface, such as USB or a network or UDi (Unified Display Interface). In some scenarios, the input interface receives a print task, and then uses a language interpreter such as PCL (Printer Command Language) or PCLXL (Printer Command Language Extra Large) to process the print task data and convert it into a command in a format that the printer can understand, thereby achieving printer control.
[0060] Specifically, the PCLXL language interpreter parses the web page through the PostscriptLevel3 interpreter, parses the PDF, or parses the image, etc. Thus, the web page, PDF or image presented on the computer is parsed into a command in a format that the printer can understand; further, the printer prints through the job management and printer control system. In addition, through the output interface, such as the UDi interface, the data such as the printer status can be displayed on the panel of the printer, for example, the printing completion status or printing failure information can be displayed on the printer panel.
[0061] In the embodiment of the present invention, the printer is composed of at least two processing modules that cooperate to complete the above printing work.
[0062] Figure 2 This is a flow chart of the collaborative printing processing method provided in an embodiment of the present invention. Figure 2 The embodiment of the present invention provides a collaborative printing processing method, which is applied to a printer, wherein the printer includes a first processing module, a second processing module and a printer module, and the method includes:
[0063] Step 201: the first processing module in the first state monitors a printing instruction;
[0064] Step 202: after the first processing module monitors the printing instruction, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space;
[0065] It should be noted that the power consumption of the second processing module in the first state is lower than the power consumption of the second processing module in the first state; the second processing module enters the first state after being awakened; the first cache space is a shared cache space of the first processing module and the second processing module;
[0066] Step 203: the second processing module that has entered the first state reads the printing instruction from the first buffer space, and controls the printer module to execute the printing task corresponding to the printing instruction.
[0067] It should be noted that the status of the processing module may include but is not limited to: normal working status, standby status, fault status and sleep status.
[0068] Under normal working conditions, the processing module of the printer can perform printing operations according to preset parameters and instructions, and the printed content is clear and accurate, and the printing speed is stable.
[0069] In a faulty state, the printer's processing module may have problems such as unclear printing, slow printing speed, and paper jam. At this time, timely inspection and repair are required to ensure that the printing module can return to normal working condition.
[0070] In standby mode, the processing module of the printer will not perform printing operations, but will remain connected to the computer or other devices to receive printing instructions at any time.
[0071] In sleep mode, the power consumption of the printer's processing module is reduced and the response speed is also slowed down.
[0072] It is understandable that the standby state is usually a power management mode, mainly used for power saving. In this mode, the power needs to be on all the time. If the power is cut off in the middle, the memory data before the standby state will not be saved. The standby state can be used to turn off the monitor, hard disk, fan and other devices, so that the entire system is in a low-energy state. When the processing module is reused, it will quickly exit the standby mode and accurately restore to the state when it enters the waiting state. The hibernation state is a state in which all the data in the memory is transferred to a hibernation file on the hard disk, and then the power is turned off or cut off. Like the normal shutdown, it will automatically restore all the work to the state when it was left completely and accurately. When it needs to be restored, the processing module will read the data from the hard disk and load it into the memory. It also takes some time, depending on the memory size and hard disk speed, usually about 1 minute, or even longer. However, the hibernation state can ensure the safe preservation of data, and it will not be lost even in the event of a power outage. In short, the standby state is more suitable for short-term suspension of use, while the hibernation state is more suitable for long-term non-use or when data security needs to be ensured.
[0073] In an embodiment of the present invention, the first state may be a normal working state, and the second state may be understood as a dormant state or a standby state. It should be understood that the power consumption of the second processing module in the normal working state is greater than the power consumption of the first processing module in the normal working state. Exemplarily, the first processing module may be understood as a small-core processor, and the second processing module may be understood as a large-core processor, which is the main processor for executing the above-mentioned printing work.
[0074] In the embodiment of the present invention, the second processing module also enters a normal working state after being awakened, and the second processing module in the normal working state reads the printing instruction from the first cache space and controls the printer module to execute the printing task corresponding to the printing instruction.
[0075] In addition, it should be noted that the shared cache space here is the shared memory of the first processing module and the second processing module.
[0076] Exemplarily, if the second state is the standby state, step 203, that is, the second processing module entering the first state reads the print instruction from the first cache space, includes:
[0077] The second processing module entering the first state directly reads the printing instruction from the first buffer space.
[0078] Exemplarily, if the second state is the dormant state, step 203, that is, the second processing module entering the first state reads the print instruction from the first cache space, includes:
[0079] The second processing module entering the first state first writes the printing instruction in the hard disk storage space into the first cache space, and then reads the printing instruction from the first cache space, so as to subsequently execute the printing instruction based on the first cache space.
[0080] In some embodiments, the printer is integrated with a SOC (System-on-Chip) module, which can integrate the entire system and all the contents of the embedded software on one chip, thereby assisting the printer to achieve more complex printing needs. It should be noted that the SOC (System on Chip) module refers to a system-level chip module that integrates the core control function of the printer, which is responsible for coordinating and managing the printer's printing tasks, data processing, communication interfaces, and interactive operations with users. It can receive instructions from users or computers, and control the printer's print head, paper transport mechanism and other hardware components through internal processing logic to achieve document printing output. In an embodiment of the present invention, the first processing module and the second processing module can be two processing modules integrated in the SOC module.
[0081] Exemplarily, the SOC module includes a CPU and an MCU (Microcontroller Unit) or a microprocessor module, and the CPU and the MCU communicate with each other and with a printing control ASIC (Application Specific Integrated Circuit) through a data bus. The CPU and the MCU collaborate to process printing tasks.
[0082] It should be added that the SOC can be connected to a user terminal to receive a print instruction carrying a print task sent by the user terminal. Here, the user terminal generally refers to a device directly operated by a user, such as a smart phone, a tablet computer, a computer, etc. Alternatively, the SOC can be connected to other printing devices to receive a print instruction carrying a print task sent by other printing devices.
[0083] The print instruction here is monitored by the first processing module in normal working state. For example, the first processing module in normal working state monitors the print request from the computer or other device connected by the printer through data, and the data connection here may include but is not limited to USB data connection, Bluetooth data connection, infrared data connection or Wi-Fi data connection.
[0084] It should be noted that a print task usually exists in the form of a data packet, which includes the content to be printed, the format and other related parameters. For example, it includes but is not limited to the printing of documents, the printing of images, the printing output in specific formats such as PDF, JPG, etc., black and white printing, color printing, or printing on paper of various sizes and materials. It is understandable that the printing task mainly depends on the specific needs of the user.
[0085] The embodiment of the present invention reduces the overall power consumption of the printer by having a first processing module with lower power consumption monitor the print instruction, and then after monitoring the print instruction, the print instruction is switched to a second processing module with higher power consumption through a shared cache space, i.e., the first cache space, to perform print processing of the print instruction. This can reduce the overall power consumption of the printer while ensuring the printing quality, save the energy consumption of the printer, and increase the life of the printer.
[0086] In some embodiments, the method may further include:
[0087] Step 204: After waking up the second processing module, the first processing module starts monitoring the status of the second processing module and / or the printer module;
[0088] Step 205: When an abnormality is detected in the second processing module or the printer module, a printing abnormality processing operation is executed.
[0089] It should be noted that the state of the second processing module may be a fault state, and the state of the printer module may also be a fault state. It is understandable that the method further includes:
[0090] When it is monitored that the state of the second processing module and / or the printer module is a fault state, it is determined that the second processing module or the printer module is abnormal.
[0091] Specifically, the state of the second processing module may include, but is not limited to, the state of the data parsing program of the second processing module. The data parsing program here is used to parse the print task corresponding to the print instruction into a format that the printer can understand. The data parsing program here can be used to implement the "data processing and conversion" work link of the above-mentioned printer. The state of the data parsing program can be a normal state or an abnormal state. It can be understood that the abnormality of the data parsing program may include, but is not limited to, data format error, data type mismatch, missing data or abnormal value, encoding or decoding error, file read and write abnormality, network connection abnormality, parsing logic error, resource limitation or timeout, etc.
[0092] Here, the printer module can be understood as an execution module that executes the data format that the printer can understand, for example, to implement including but not limited to a print head control module, a paper conveying module, an ink / toner injection module, and an image forming and curing module, etc. Exemplarily, the printer module may include a print control ASIC (Application Specific Integrated Circuit, dedicated integrated circuit), which is usually processed by the processing module and then executed by the print control ASIC. Exemplarily, the print module integrates the following: Figure 1 The print control system shown.
[0093] Specifically, the status of the printer module may include but is not limited to the status of the printer driver used to drive various hardware of the printer. The printer driver here can be used to implement at least one of the working links of the above-mentioned printer, such as "print head control", "paper conveying and positioning", "ink / toner injection" and "image formation and curing". The abnormalities of the printer driver may include but are not limited to:
[0094] Driver file corruption: Driver files may be corrupted due to various reasons, such as virus infection, disk failure, etc., causing the printer to not function properly.
[0095] Incompatible operating system: There may be compatibility issues between the printer driver and the operating system. This may be due to a version mismatch, or the driver not working after a system update. Different printers require different drivers, and some operating systems may not be compatible with certain drivers, especially in the case of older operating systems or newer printers.
[0096] Driver installation is incorrect: When the user installs the driver, if it is not installed correctly, the printer will not work properly. This usually happens when the user is not familiar with the installation program or does not follow the prompts.
[0097] Printer connection problem: If the printer connection is not normal, such as the connection cable is damaged, the interface is loose, etc., it may also cause the driver to not work properly. Printer connection failures include whether the connection cable is firmly connected, whether the USB port is damaged or blocked, and whether the printer is in normal working condition.
[0098] The print driver anomalies mentioned above are all system problems of the printer module.
[0099] In other embodiments, the status of the printer module may also include the status of various printer hardware, such as the status of ink / toner, the status of paper, etc. It is understandable that the printer hardware anomalies include but are not limited to: hardware failures such as paper jam, no paper, and no ink.
[0100] In some embodiments, the step 205, i.e., executing a printing exception processing operation when an exception is detected in the second processing module or the printer module, includes:
[0101] When an abnormality is detected in the second processing module or the printer module, an abnormality indication is sent to the second processing module, and the second processing module determines the printing failure according to the abnormality indication and feeds back the printing failure.
[0102] In this way, the embodiments of the present invention can not only reduce the overall power consumption of the printer while ensuring the printing quality, save the energy consumption of the printer, and increase the life of the printer, but also can timely detect and handle abnormalities based on the collaboration of multiple processing modules, thereby reducing the number of times the printer is used in an abnormal state and further increasing the service life of the printer.
[0103] In some embodiments, see Figure 3 , Figure 3 Another flowchart of the collaborative printing processing method provided by some embodiments of the present invention, step 203, i.e., the second processing module entering the first state reads the printing instruction from the first cache space and controls the printer module to execute the printing task, includes:
[0104] Step 2031: the second processing module in the first state parses the print task corresponding to the print instruction to obtain print data;
[0105] Step 2032: writing the print data into a second cache space, where the second cache space is a shared storage space between the first processing module and the second processing module;
[0106] Step 2033: Split the print data and distribute the print data.
[0107] The second cache space here may also be a shared memory space of the first processing module and the second processing module; the address of the second cache space here is different from the address of the first cache space, and the function is also different.
[0108] In the embodiment of the present invention, writing the print data into the second cache space, that is, putting it into the shared storage space, can facilitate the first processing module and the second processing module to collaboratively process the print data, thereby providing a favorable basis for the first processing module and the second processing module to collaboratively process the print data.
[0109] In some embodiments, the step 2033, i.e., splitting the print data and distributing the print data, includes: splitting the print data according to the splitting strategy, and distributing the print data to the first processing module and the second processing module for collaborative processing. Exemplarily, the distributing to the first processing module and the second processing module for collaborative processing may include: the first processing module and the second processing module reading the corresponding allocated print data from the second cache space for collaborative processing.
[0110] The above embodiments can improve the printing speed and detect printing anomalies in advance.
[0111] The splitting strategy includes but is not limited to splitting based on at least one of the data volume, data type, processing logic, etc. It is understandable that the number of distributions is positively correlated with the power consumption of the processing module in the first state; the required power consumption corresponding to the number type of distributions is positively correlated with the power consumption of the processing module in the first state, and the processing logic includes a processing priority, which is also positively correlated with the power consumption of the processing module in the first state.
[0112] Exemplarily, the larger the amount of data of the distributed print data is, the more it will be processed by the second processing module in the first state with greater power consumption. It should be added that the data types of the print data include but are not limited to text type and image type. It can be understood that the power consumption required for the image type is greater than the power consumption required for the text type. Exemplarily, when the data type of the distributed print data is image data, it will be processed by the second processing module in the first state with greater power consumption. Exemplarily, the higher the priority of the print data is, the more it will be processed by the second processing module in the first state with greater power consumption.
[0113] In this way, by splitting the print data and distributing it to two processing modules for collaborative processing, not only can the print processing speed be improved, but it can also provide a favorable basis for early perception of abnormalities.
[0114] In some embodiments, in order to determine the printing failure as quickly as possible, the method further includes:
[0115] After waking up the second processing module, the first processing module processes the print task corresponding to the received print instruction to obtain a first task and a second task, wherein the first task and the second task together constitute the print task, and the first processing module sends the second task to the second processing module;
[0116] The step 2031, i.e. the second processing module entering the first state parses the task corresponding to the printing instruction to obtain printing data, includes:
[0117] The second processing module entering the first state analyzes the second task to obtain second printing control information;
[0118] The method further comprises:
[0119] The first processing module analyzes the first task to obtain first printing control information;
[0120] The first processing module sends the first printing control information to the second processing module, the second processing module pre-processes the first printing control information to determine the first printing status information in the pre-printing process; the second processing module pre-processes the second printing control information to determine the second printing status information in the pre-printing process;
[0121] If the first printing status information or the second printing status information indicates an abnormality, the second processing module sends an abnormality indication to the first processing module, and after the first processing module receives the abnormality indication, it determines the printing failure according to the first printing status information and the second printing status information, and feeds back the printing failure.
[0122] In this way, by splitting the printing task and jointly processing it by the first processing module and the second processing module, printing anomalies can be known in advance, thereby reducing problems such as poor printing quality caused by anomalies in the formal printing process, providing a strong guarantee for improving printing quality.
[0123] It should be noted that the printing control information refers to a series of instructions and data used to guide the printer to perform printing operations after the printing task is parsed by the first processing module or the second processing module. The content contained in the information is mainly determined by the printing task, and specifically includes but is not limited to the following: page layout and format information, such as the page size, margins, paper orientation (horizontal or vertical) and other settings of the printed document. This information guides the printer how to arrange the position of the printed content on the paper; text and image data, such as the data of the text, image or other graphic elements to be printed, which are transmitted to the printer in a specific format and encoding method so that the printer can accurately restore the content of the original document; color and print quality settings, including the selection of print colors (such as black and white or color), print quality (such as resolution, print speed, etc.) settings, which ensure that the printer can output high-quality print results according to user requirements; number of copies and sorting, the control information also includes the number of copies specified by the user and the printing order (such as single-sided or double-sided printing, sorting method of multi-page documents, etc.); other special instructions, some complex printing tasks may contain special printing instructions, such as printing watermarks, headers and footers, background patterns, etc. In short, the print control information is generated by the print task, parsing the print task required by the user into language information that the printer can use to perform the print operation.
[0124] Taking a laser printer as an example, in some embodiments, print control information is transmitted to the corresponding printing components of the laser printer. For example, the print control information includes text containing parameters such as font and size, as well as the number of copies to be printed. The print control information is calculated by the second processing module to arrange the layout of the text on the photosensitive drum, determine the starting and ending positions of each character, and the required amount of toner. In this way, the second processing module transmits the printing control information to the photosensitive drum, and the photosensitive drum starts to preheat and reaches a temperature suitable for printing. At the same time, the rotation speed and position are adjusted according to the control signal to prepare for receiving the scanning of the laser beam; the second processing module transmits the printing control information to the laser head, and the laser beam scans the photosensitive drum according to the specified path and speed to form an electrostatic latent image corresponding to the text content; the second processing module transmits the printing control information to the toner cartridge, and the toner cartridge confirms the state and supply of the toner according to the font size and the printing content; the second processing module transmits the printing control information to the paper conveying mechanism, confirms the number of sheets of paper in the paper input tray, the paper size, etc., and feeds the paper from the input tray into the printer to prepare for receiving the printing content. At the same time, it ensures that after the first copy is printed, a new sheet of paper can be automatically fed in for printing the second copy. If the printing control information contains double-sided printing content, it is also confirmed whether the flipping function of the paper conveying mechanism is normal.
[0125] It should be noted that the printing status information includes but is not limited to consumables information, such as paper status, ink / toner status, etc.; printing progress; print quality; working status information of each module of the printer, such as printer ambient temperature, fuser preheating temperature, laser control unit, printer main motor and other information.
[0126] In some embodiments, the printing status information is usually displayed to the user through the display screen of the printer, the printer software interface on the computer, or the dedicated printer management software. For example, the printing status information includes the following: paper status information, which displays "paper is sufficient", indicating that the amount of paper in the paper input tray is sufficient to complete the current printing task; displays "paper is insufficient", indicating that the amount of paper in the paper input tray is insufficient to complete the current printing task and paper needs to be added; displays "paper is jammed", indicating that the printer encounters an obstacle during the paper feeding process and the paper cannot pass normally and the jam needs to be cleared.
[0127] Ink / toner information: If "Ink is sufficient", it means that the ink level in the ink tank is sufficient to complete the current printing task; if "Ink is insufficient", it means that the ink level in the ink tank is low and you need to prepare to replace the ink tank; if "Ink is exhausted", it means that the ink in the ink tank has been used up and you need to replace the ink tank immediately to continue printing.
[0128] Print quality information: If the print quality is normal, it means the printed document is clear and colorful, meeting the expected effect; if the print quality is poor, it means the printed document is blurry or has uneven colors, and you may need to adjust the print settings or replace the consumables.
[0129] Fault prompt, showing the fault code of specific hardware, means that a hardware component inside the printer (such as power supply, sensor, motor, etc.) has failed and needs to be repaired or replaced.
[0130] It should be noted that preprocessing can refer to the detection of normal hardware status when no printing control information is received, such as the print head, ink cartridge, paper conveying mechanism, etc.; it can also refer to the second control logic circuit including the second processing module, when receiving the first printing control information or the second printing control information, detecting the parameters corresponding to the printing control information, such as the number of papers and inkjet volume corresponding to the printing control information, to ensure their working status.
[0131] Here, pre-processing can also be pre-printing processing. Here, pre-printing processing generally refers to a series of preparations and settings before formal printing, including but not limited to document typesetting, format adjustment, font and size selection, and printing parameter settings. Through pre-printing processing, users can ensure that the printed documents meet the expected effects, avoid wasting paper and ink, and improve printing efficiency.
[0132] It should be noted that the main difference between pre-printing and printing is that pre-printing is a series of preparations and settings before formal printing, and mainly focuses on document processing and parameter settings before printing. Printing, on the other hand, refers to the process of using a printer to convert electronic files or data content into paper output, and mainly focuses on the actual output, that is, converting the processed documents into physical paper form through the printer.
[0133] In this embodiment, preprocessing is performed to evaluate the execution performance of the printing task (eg, printing speed, consumables usage), including etc. According to the evaluation result, the printing control information can be optimized to improve the printing efficiency or save the cost.
[0134] In the above embodiment, the first processing module and the second processing module cooperate to analyze the printing task, and determine the abnormal conditions of the printer in advance by preprocessing, especially the abnormal conditions of the hardware, so as to reduce the abnormalities in the formal printing process.
[0135] It should be noted that after step 205, the first processing module in the first state will be responsible for monitoring the anomalies of the second processing module and the printer module during the formal printing process, so that the second processing module does not need to allocate part of its power consumption for monitoring, and the second processing module can be utilized to the maximum extent, thereby effectively improving the printing speed and printing quality.
[0136] In some other embodiments, the step 202, i.e., after the first processing module monitors the printing instruction, waking up the second processing module in the second state and storing the printing instruction in the first cache space, includes:
[0137] After the first processing module monitors the printing instruction, determining the task amount of the printing task corresponding to the printing instruction;
[0138] If the task amount of the printing task corresponding to the printing instruction is greater than the task amount threshold, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0139] Exemplarily, the task volume threshold here is determined by the power consumption that can be provided by the first processing module in the first state. It can be understood that the power consumption that can be provided by the first processing module in the first state is positively correlated with the task volume threshold. Of course, in other embodiments, the task volume threshold can be set based on experience; in other embodiments, the task volume threshold can also be dynamically determined based on the usage time, memory status, etc. of the first processing module.
[0140] In some other embodiments, the method further comprises:
[0141] If the task amount of the printing task corresponding to the printing instruction is less than or equal to the task amount threshold, the first processing module in the first state controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction.
[0142] Exemplarily, the first processing module controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction, including:
[0143] The first processing module controls the printer module to execute the printing task corresponding to the printing instruction by using the first printing driver of the first processing module according to the printing instruction.
[0144] In the above embodiment, by comparing the task amount of the printing task, when the task amount is less than the task amount threshold, that is, the task amount is small, the first processing module directly performs the printing process, reducing the use of the second processing module, thereby saving the overall power consumption of the printer. In other words, in the above embodiment, by adding another wake-up condition, that is, the second processing module in the second state is awakened only when the printing task amount is greater than the task amount threshold, thereby further saving the overall power consumption of the printer.
[0145] In some embodiments, using the first print driver of the first processing module to control the printer module to execute a print task corresponding to the print instruction includes:
[0146] The first printing driver of the first processing module is used to call the second printing driver to control the printer module to execute the printing task corresponding to the printing instruction.
[0147] In some embodiments, the first printing driver of the first processing module does not directly control the printer module to execute the printing task corresponding to the printing instruction.
[0148] In some embodiments, the first print driver is a virtual print driver, the second print driver is a print driver of a printer, and the second print driver is connected to the printer module to control the printer module to execute a print task corresponding to a print instruction.
[0149] In some embodiments, the first print driver has the same package as the second print driver, but the first print driver only integrates a function or interface for calling the second print driver to control the printer module.
[0150] Exemplarily, the first printing driver calls the second printing driver, including the first printing driver calling relevant functions and / or interfaces of the printing control of the second printing driver.
[0151] It should be noted that the first print driver of the first processing module is a virtual driver. Its main function is to call the second print driver, that is, the real print driver, through the virtual driver of the first processing module to control the printer module to execute the printing task corresponding to the printing instruction when there is an abnormality in the second processing module.
[0152] In the above embodiment, the first processing module controls the printer module to execute the printing task corresponding to the printing instruction through the first printing driver of the first processing module, that is, by introducing a virtual driver, thereby providing a favorable basis for the first processing module and the second processing module to realize collaborative printing.
[0153] In some other embodiments, the method further comprises:
[0154] If the print task volume corresponding to the print instruction is less than or equal to the task volume threshold, determine the print mode corresponding to the print instruction;
[0155] If the printing mode corresponding to the printing instruction is the color printing mode, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0156] It is understandable that in color printing mode, the printer will use different colors of ink or toner to print documents, thereby generating documents containing multiple colors. The processing module of the printer not only needs to know where to spray ink, but also needs to know what color of ink to spray. Therefore, under the condition of the same number of printed pages, the power consumption of the processing module required by the color printing mode is greater than that of the processing module required by the black and white printing mode.
[0157] In the above embodiment, by comparing the task amount of the printing task and determining the printing mode, when the task amount is less than the task amount threshold but the printing mode is also the color printing mode, the second processing module is still awakened to perform printing processing by the second processing module, thereby ensuring the printing quality and printing speed. That is to say, in the above embodiment, by adding another awakening condition, even when the printing task amount is less than or equal to the task amount threshold but the printing mode is the color printing mode, the second processing module in the second state is still awakened, thereby ensuring the printing quality and printing speed.
[0158] In some embodiments, if the printing task amount corresponding to the printing instruction is less than or equal to the task amount threshold, determining the printing mode corresponding to the printing instruction;
[0159] If the printing mode corresponding to the printing instruction is the black-and-white mode, the first processing module in the first state controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction.
[0160] In the above embodiment, by comparing the task amount of the printing task, when the task amount is less than the task amount threshold and the printing mode is the black and white mode, the first processing module directly performs the printing process, reducing the use of the second processing module, thereby saving the overall power consumption of the printer. In other words, in the above embodiment, by adding another wake-up condition, that is, when the printing task amount is greater than the task amount threshold and the printing mode is the black and white printing mode, the second processing module in the second state is awakened, thereby ensuring the printing quality while further saving the overall power consumption of the printer.
[0161] In some embodiments, see Figure 4 , Figure 2 The step 205, i.e., executing a printing abnormality processing operation when an abnormality of the second processing module or the printer module is detected, includes:
[0162] Step 2051: when the engine monitoring program in the first processing module detects that the second processing module or the printer module is abnormal, the engine monitoring program in the first processing module feeds back an abnormal signal to the first printing driver in the first processing module;
[0163] Step 2052: the first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module according to the abnormal signal;
[0164] Step 2053: The second printing driver of the second processing module performs a printing exception processing operation based on the exception feedback signal.
[0165] Here, by introducing the engine monitoring program in the first processing module, the first processing module can monitor the second processing module or the printer module in executing the printing task corresponding to the printing instruction, so as to timely feedback the abnormality. In this embodiment, the first processing module will send the abnormality signal to the second printing driver of the second processing module, so as to timely suspend the operation of the second processing module and reduce the expansion of the abnormality.
[0166] In some embodiments, the step 2053, i.e. the second printing driver of the second processing module performs a printing exception processing operation based on the abnormal feedback signal, includes:
[0167] The second print driver of the second processing module determines the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal, and stores the first pointer information in a third cache space, wherein the third cache space is a shared storage space of the first processing module and the second processing module;
[0168] The first processing module reads the first pointer information from the third cache space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
[0169] It is understandable that the third cache space here may be hard disk space, so that there is enough space for storing intermediate data in the data processing process.
[0170] In some embodiments, the third cache space may also be a memory space. Since the memory space capacity is relatively small, in order not to affect the running speed, this embodiment stores the pointer information indicating the data storage address in the content space to reduce the memory space occupancy, improve system performance, and thus increase the printing speed.
[0171] In addition, when the second printing driver of the second processing module receives an abnormal feedback signal, the first pointer information of the first data packet currently being executed by the second processing module is determined, so that the storage address of the first data can be found through the first pointer information, and then the first processing module that has not encountered an abnormality continues to replace the second processing module to process the subsequent data. In this way, repeated data processing can be reduced, waiting for the abnormality of the second processing module can be reduced, and various processing resources can be fully utilized to improve the printing speed.
[0172] It can be understood that the second cache space includes the address of the first data packet.
[0173] Exemplarily, the first processing module reads the first pointer information from the third cache space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information, including:
[0174] The first processing module reads the first pointer information from the third cache space, and obtains the first data packet according to the address of the first data packet in the second cache space indicated by the first pointer information;
[0175] The first processing module reads the printing instruction from the first buffer space, and uses the first printing driver to call the function or interface of the second printing driver to continue to execute the printing task based on the first data packet.
[0176] It should be noted that the function or interface of the second print driver can directly control the printer module and has a communication protocol with the printer module. In this embodiment, when an abnormality occurs in the second processing module, the virtual driver, i.e., the second print driver, can still call the function or interface of the second print driver with a communication protocol with the printer module to continue to execute the printing task, thereby not affecting the printing speed.
[0177] In this way, by using the shared storage space, when an abnormality occurs in the second processing module, the virtual driver introduced in the first processing module can call the first printing driver, thereby temporarily replacing the second processing module to execute the printing task for the printing instructions stored in the shared space and the printing data corresponding to the printing instructions stored in the shared space.
[0178] In some other embodiments, the method further comprises:
[0179] During the process in which the second printing driver of the second processing module performs the printing exception processing operation based on the exception feedback signal, the engine monitoring program of the first processing module continues to monitor the status of the second processing module or the printing module;
[0180] When the engine monitoring program of the first processing module monitors the abnormal recovery, the second pointer information of the second data packet being executed by the first processing module is determined, and the second pointer information is stored in a fourth cache space, wherein the fourth cache space is a shared storage space of the first processing module and the second processing module;
[0181] Therefore, the second processing module reads the second pointer information from the fourth cache space, and continues to execute the printing task using the second printing driver according to the address of the second data packet indicated by the second pointer.
[0182] The fourth cache space here can be hard disk space.
[0183] In some embodiments, the fourth cache space may also be a memory space. In order not to affect the printing processing speed, the fourth cache space may be used to store the pointer information of the processed data packet, so that the corresponding data packet can be found according to the pointer information. And because the second processing module and the first processing module share the storage space, the second processing module can find the second data packet according to the second pointer information, so as to continue to execute the printing task using the second printing driver.
[0184] In some embodiments, the abnormal feedback signal can also be transmitted to the user interface or display screen of the printer through an appropriate communication interface, such as the output interface described above. In this way, the user or administrator can intuitively see the abnormal situation that has occurred and perform corresponding processing according to the abnormal feedback signal. After receiving the abnormal feedback, the user or administrator will troubleshoot or take other appropriate measures based on the information provided. When the abnormal feedback signal indicates a hardware abnormality, such as a lack of paper, the user or administrator can add paper to overcome the abnormality; and when the abnormal feedback signal indicates a system abnormality, the exception can be handled by starting the corresponding exception handling program.
[0185] In the above embodiment, after the abnormality of the second processing module is recovered, the subsequent printing task is still handed over to the second processing module with higher power consumption for printing processing, so that the printing speed can be improved while further ensuring the printing quality.
[0186] The embodiments of the present invention may be implemented as a single embodiment that can be separated from the above embodiments, or may be implemented as a combination of any one or more embodiments.
[0187] Specifically, see Figure 5 , Figure 5 A schematic diagram of an interactive flow of a system printing processing method provided by some embodiments of the present invention, such as Figure 5 As shown:
[0188] Step 51: parse the print task to obtain print data;
[0189] The PDL / PDLXL language interpreter analyzes the print task to obtain print data. It should be noted that the PDL / PDLXL language interpreter can be integrated in the first processing module or in the second processing module.
[0190] Step 52: extracting and rendering the printing data according to the data packets so that the printer can understand and execute the printing task;
[0191] The rendering task may split the print data into multiple data packets and render the print data so as to sequentially execute the print task for the second print driver according to the order of the data packets.
[0192] Step 53: Control the printer module to execute the printing task according to the printing data;
[0193] The second printing execution controls the printer module to execute the printing task according to the printing data.
[0194] Step 52 and step 53 here can be understood as step 203 described in the above embodiment, that is, the second processing module entering the first state reads the printing instruction from the first cache space and controls the printing module to execute the printing task corresponding to the printing instruction.
[0195] Step 54: Send an abnormal signal;
[0196] Here, the engine monitoring of the first processing module detects an abnormality in the second processing module or the printer module, and sends an abnormality signal to the first print driver of the first processing module; step 54 here can be understood as the above step 2051.
[0197] Step 55: Send an abnormal feedback signal;
[0198] Here, the first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module. Step 55 here can be understood as the above step 2052.
[0199] Step 56: The second print driver calls the function or interface of the first print driver;
[0200] Here, the second print driver, ie, the virtual driver, calls the function or interface of the first print driver so as to use the function or interface of the second print driver to control the printer module to execute the print task corresponding to the print instruction.
[0201] Step 57: storing the pointer information of the data packet currently being processed in the third cache space;
[0202] Among them, step 57 can be understood as the second print driver of the second processing module described in the above embodiment determining the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal.
[0203] Step 58: Find the data packet pointer information when the exception occurs from the third cache space, so as to determine the location of the data packet when the exception occurs;
[0204] Step 59: Using the function or interface of the second print driver, control the printer module to continue to execute the printing task according to the location of the data packet when the exception occurs.
[0205] Among them, step 58 and step 59 can be understood as the first processing module described in the above embodiment reading the first pointer information from the third cache space, and continuing to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
[0206] In the above embodiment, the second processing module and the printer module are monitored by utilizing the engine monitoring of the first processing module, and when an abnormality is detected, based on the shared storage space of the first processing module and the second processing module, i.e., the third cache space, when an abnormality occurs in the second processing module, the first processing module replaces the second processing module to continue to execute the printing task, so that the printing speed is not affected when an abnormality occurs, thereby improving the printing speed.
[0207] To achieve the above-mentioned purpose, the embodiment of the present invention further provides a collaborative printing processing device, which includes a first processing module, a second processing module and a printer module. Figure 6 , Figure 6 A schematic diagram of the structure of a collaborative printing processing device provided in some embodiments of the present invention, the device comprising:
[0208] A first monitoring module 61, configured for the first processing module in a first state to monitor a printing instruction;
[0209] The wake-up module 62 is used to wake up the second processing module in the second state and store the print instruction in the first cache space after the first processing module monitors the print instruction; the power consumption of the second processing module in the second state is lower than the power consumption of the second processing module in the first state; the power consumption of the first processing module in the first state is lower than the power consumption of the second processing module in the first state; the second processing module enters the first state after being woken up; the first cache space is a shared cache space of the first processing module and the second processing module;
[0210] A reading and control module 63, configured to cause the second processing module in the first state to read the printing instruction from the first buffer space and control the printer module to execute a printing task corresponding to the printing instruction;
[0211] A second monitoring module 64 is configured to enable the first processing module to start monitoring the status of the second processing module and / or the printer module after waking up the second processing module;
[0212] The execution module 65 is used to execute a printing exception processing operation when it is monitored that the second processing module or the printer module is abnormal.
[0213] In some embodiments, the reading and controlling module 63 may also be used to:
[0214] The second processing module entering the first state parses the print task corresponding to the print instruction to obtain print data;
[0215] Writing the print data into a second cache space, where the second cache space is a shared storage space between the first processing module and the second processing module;
[0216] The print data is split and distributed.
[0217] In some embodiments, the first wake-up module 62 may also be used to:
[0218] After the first processing module monitors the printing instruction, determining the task amount of the printing task corresponding to the printing instruction;
[0219] If the task amount of the printing task corresponding to the printing instruction is greater than the task amount threshold, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0220] In some embodiments, the apparatus further comprises:
[0221] The control module is used to control the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction if the task amount of the printing task corresponding to the printing instruction is less than or equal to the task amount threshold.
[0222] In some embodiments, the apparatus further comprises:
[0223] A determination module, configured to determine a printing mode corresponding to the printing instruction if the printing task amount corresponding to the printing instruction is less than or equal to the task amount threshold;
[0224] The third awakening module is configured to awaken the second processing module in the second state and store the printing instruction in the first cache space if the printing mode corresponding to the printing instruction is a color printing mode.
[0225] In some embodiments, the execution module 65 is further used to:
[0226] When the engine monitoring program in the first processing module detects that the second processing module or the printer module is abnormal, the engine monitoring program in the first processing module feeds back an abnormal signal to the first printing driver in the first processing module;
[0227] The first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module according to the abnormal signal;
[0228] The second printing driver of the second processing module performs a printing exception processing operation based on the exception feedback signal.
[0229] In some embodiments, the control module is further configured to:
[0230] The second print driver of the second processing module determines the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal, and stores the first pointer information in a third cache space, wherein the third cache space is a shared storage space of the first processing module and the second processing module;
[0231] The first processing module reads the first pointer information from the third cache space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
[0232] In some embodiments, the apparatus further comprises:
[0233] A third monitoring module, configured to enable the engine monitoring program in the first processing module to continue to monitor the state of the second processing module or the printer module during the process in which the second printing driver of the second processing module performs the printing exception processing operation based on the exception feedback signal;
[0234] a determination processing module, configured to determine, when the engine monitoring program of the first processing module detects abnormal recovery, second pointer information of a second data packet being executed by the first processing module, and store the second pointer information in a fourth cache space, wherein the fourth cache space is a shared storage space of the first processing module and the second processing module;
[0235] An execution processing module is used for the second processing module to read the second pointer information from the fourth cache space, and continue to execute the printing task using the second printing driver according to the address of the second data packet indicated by the second pointer information.
[0236] It should be noted here that the description of the above printing processing device is similar to the description of the above collaborative printing processing method, and the description of the beneficial effects of the same method is not repeated. For technical details not disclosed in the embodiment of the printing processing device of the present invention, please refer to the description of the embodiment of the collaborative printing processing method of the present invention.
[0237] like Figure 7 As shown, the printer includes a processor 71 and a memory 72 connected to the processor 71 via a communication bus; wherein the memory 72 is used to store a printing processing program; the processor 71 is used to execute the collaborative printing processing program to implement the steps of the collaborative printing processing method applied to the printer by any of the above schemes: the first processing module in the first state listens to the printing instruction;
[0238] After the first processing module monitors the printing instruction, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space; the power consumption of the second processing module in the second state is lower than the power consumption of the second processing module in the first state; the power consumption of the first processing module in the first state is lower than the power consumption of the second processing module in the first state; the second processing module enters the first state after being awakened; the first cache space is a shared cache space of the first processing module and the second processing module;
[0239] The second processing module that enters the first state reads the printing instruction from the first buffer space, and controls the printer module to execute the printing task corresponding to the printing instruction;
[0240] After waking up the second processing module, the first processing module starts monitoring the status of the second processing module and / or the printer module;
[0241] When an abnormality is detected in the second processing module or the printer module, a printing abnormality processing operation is performed.
[0242] Here, the processor 71 is used to execute the operation procedure of the second processing module entering the first state to read the printing instruction from the first cache space and control the printer module to execute the printing task, so as to achieve the following: the second processing module entering the first state parses the printing task corresponding to the printing instruction to obtain printing data;
[0243] Writing the print data into a second cache space, where the second cache space is a shared storage space between the first processing module and the second processing module;
[0244] The print data is split and distributed.
[0245] Here, the processor 71 is used to execute the operation program of waking up the second processing module in the second state and storing the printing instruction in the first cache space after the first processing module monitors the printing instruction, so as to achieve the following:
[0246] After the first processing module monitors the printing instruction, determining the task amount of the printing task corresponding to the printing instruction;
[0247] If the task amount of the printing task corresponding to the printing instruction is greater than the task amount threshold, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0248] Here, the processor 71 is used to execute the operation program of the collaborative printing process to achieve the following:
[0249] If the task amount of the printing task corresponding to the printing instruction is less than or equal to the task amount threshold, the first processing module in the first state controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction.
[0250] Here, the processor 71 is used to execute the operation program of the collaborative printing process to achieve the following:
[0251] If the printing task amount corresponding to the printing instruction is less than or equal to the task amount threshold, determining the printing mode corresponding to the printing instruction;
[0252] If the printing mode corresponding to the printing instruction is a color printing mode, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
[0253] Here, the processor 71 is used to execute the operation program of performing the printing exception processing operation when the second processing module or the printer module is detected to be abnormal, so as to achieve the following:
[0254] When the engine monitoring program in the first processing module detects that the second processing module or the printer module is abnormal, the engine monitoring program in the first processing module feeds back an abnormal signal to the first printing driver in the first processing module;
[0255] The first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module according to the abnormal signal;
[0256] The second printing driver of the second processing module performs a printing exception processing operation based on the exception feedback signal.
[0257] Here, the processor 71 is used to execute the operation procedure of the second printing driver of the second processing module to perform the printing exception processing operation based on the exception feedback signal, so as to achieve the following:
[0258] The second print driver of the second processing module determines the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal, and stores the first pointer information in a third cache space, wherein the third cache space is a shared storage space of the first processing module and the second processing module;
[0259] The first processing module reads the first pointer information from the third cache space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
[0260] Here, the processor 71 is used to execute the operation program of the collaborative printing process to achieve the following:
[0261] During the process in which the second printing driver of the second processing module performs the printing exception processing operation based on the exception feedback signal, the engine monitoring program in the first processing module continues to monitor the status of the second processing module or the printer module;
[0262] When the engine monitoring program of the first processing module detects abnormal recovery, determining the second pointer information of the second data packet being executed by the first processing module, and storing the second pointer information in a fourth cache space, wherein the fourth cache space is a shared storage space of the first processing module and the second processing module;
[0263] The second processing module reads the second pointer information from the fourth cache space, and continues to execute the printing task using the second printing driver according to the address of the second data packet indicated by the second pointer information.
[0264] Optionally, the processor 71 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Here, the program executed by the processor 71 may be stored in a memory 72 connected to the processor 71 via a communication bus, and the memory 72 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disk or read-only optical disk (CD-ROM); magnetic surface memory can be disk memory or tape memory. Volatile memory can be random access memory (RAM), which is used as an external cache.By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDR SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory). The memory 72 described in the embodiment of the present invention is intended to include but is not limited to these and any other suitable types of memory 72. The memory 72 in the embodiment of the present invention is used to store various types of data to support the operation of the processor 71. Examples of such data include: any computer program operated by the processor 71, such as an operating system and application programs; contact data; phone book data; messages; pictures; videos, etc. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks.
[0265] In some embodiments, the memory 72 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 72 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0266] The processor 71 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 71 or the instructions in the form of software. The above processor 71 may be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 72, and the processor 71 reads the information in the memory 72 and completes the steps of the above method in combination with its hardware.
[0267] In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0268] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0269] Another embodiment of the present invention provides a computer storage medium, which stores an executable program. When the executable program is executed by the processor 71, the steps of the operation method of the print processing applied to the endpoint device or server can be implemented. Figure 1 or Figure 2 or Figure 3 One or more of the methods shown.
[0270] In some embodiments, the computer storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0271] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.
[0272] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. A collaborative printing processing method, It is characterized in that Applied in a printer, the printer comprises a first processing module, a second processing module and a printer module; the method comprises: The first processing module in the first state monitors a printing instruction; After the first processing module monitors the printing instruction, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space; the power consumption of the second processing module in the second state is lower than the power consumption of the second processing module in the first state; the power consumption of the first processing module in the first state is lower than the power consumption of the second processing module in the first state; the second processing module enters the first state after being awakened; the first cache space is a shared cache space of the first processing module and the second processing module, the first state is a normal working state, and the second state is a dormant state or a standby state; after the first processing module monitors the printing instruction, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space, including: after the first processing module monitors the printing instruction, the task amount of the printing task corresponding to the printing instruction is determined; if the task amount of the printing task corresponding to the printing instruction is greater than the task amount threshold, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space, wherein the task amount threshold is dynamically determined by the power consumption, usage time and memory status that can be provided by the first processing module; The second processing module that enters the first state reads the printing instruction from the first buffer space, and controls the printer module to execute the printing task corresponding to the printing instruction; After waking up the second processing module, the first processing module starts monitoring the status of the second processing module and / or the printer module; When the second processing module or the printer module is detected to be abnormal, a printing abnormality processing operation is performed; The second processing module entering the first state reads the printing instruction from the first buffer space and controls the printer module to execute the printing task, including: The second processing module entering the first state parses the print task corresponding to the print instruction to obtain print data; Writing the print data into a second cache space, where the second cache space is a shared storage space between the first processing module and the second processing module; splitting the print data and distributing the print data; The method further includes: after waking up the second processing module, the first processing module processes the print task corresponding to the received print instruction to obtain a first task and a second task, wherein the first task and the second task together constitute the print task, and the first processing module sends the second printer task to the second processing module; The second processing module entering the first state parses the task corresponding to the printing instruction to obtain printing data, including: The second processing module entering the first state analyzes the second task to obtain second printing control information; The method further comprises: The first processing module analyzes the first task to obtain first printing control information; The first processing module sends the first printing control information to the second processing module, the second processing module pre-processes the first printing control information to determine first printing status information in the pre-printing process; the second processing module pre-processes the second printing control information to determine second printing status information in the pre-printing process; If the first printing status information or the second printing status information indicates an abnormality, the second processing module sends an abnormality indication to the first processing module, and after the first processing module receives the abnormality indication, it determines the printing failure according to the first printing status information and the second printing status information, and feeds back the printing failure.
2. The method according to claim 1, It is characterized in that The method further comprises: If the task amount of the printing task corresponding to the printing instruction is less than or equal to the task amount threshold, the first processing module in the first state controls the printer module to execute the printing task corresponding to the printing instruction according to the printing instruction.
3. The method according to claim 1, It is characterized in that The method further comprises: If the printing task amount corresponding to the printing instruction is less than or equal to the task amount threshold, determining the printing mode corresponding to the printing instruction; If the printing mode corresponding to the printing instruction is a color printing mode, the second processing module in the second state is awakened and the printing instruction is stored in the first cache space.
4. The method according to claim 1, It is characterized in that When the second processing module or the printer module is detected to be abnormal, the printing abnormality processing operation is performed, including: When the engine monitoring program in the first processing module detects that the second processing module or the printer module is abnormal, the engine monitoring program in the first processing module feeds back an abnormal signal to the first printing driver in the first processing module; The first printing driver of the first processing module sends an abnormal feedback signal to the second printing driver of the second processing module according to the abnormal signal; The second printing driver of the second processing module performs a printing exception processing operation based on the exception feedback signal.
5. The method according to claim 4, It is characterized in that The second printing driver of the second processing module performs a printing exception processing operation based on the abnormal feedback signal, including: The second print driver of the second processing module determines the first pointer information of the first data packet currently being executed by the second processing module based on the abnormal feedback signal, and stores the first pointer information in a third cache space, wherein the third cache space is a shared storage space of the first processing module and the second processing module; The first processing module reads the first pointer information from the third cache space, and continues to execute the printing task using the first printing driver according to the address of the first data packet indicated by the first pointer information.
6. The method according to claim 5, It is characterized in that The method further comprises: During the process in which the second printing driver of the second processing module performs the printing exception processing operation based on the exception feedback signal, the engine monitoring program in the first processing module continues to monitor the status of the second processing module or the printer module; When the engine monitoring program of the first processing module detects abnormal recovery, determining the second pointer information of the second data packet being executed by the first processing module, and storing the second pointer information in a fourth cache space, wherein the fourth cache space is a shared storage space of the first processing module and the second processing module; The second processing module reads the second pointer information from the fourth cache space, and continues to execute the printing task using the second printing driver according to the address of the second data packet indicated by the second pointer information.
7. A printer, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is used to execute the collaborative printing processing method as described in any one of claims 1 to 6.
8. A computer storage medium, It is characterized in that The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to enable the one or more processors to execute the collaborative printing processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Thermal transfer printing terminal, cloud server, user terminal and system
CN110989946A
Printing control system, printing control device, method of controlling printing, and printing control program
JP2006088590A
Printer and proxy server
US20130163016A1
