Method and equipment for linkage control of double stations of printer and storage medium
By obtaining the dual-station status data in real time, dynamically allocating printing tasks based on the load balancing algorithm, establishing communication links, synchronizing status information, and triggering task migration mechanisms, it solves the problem of easy step loss and brake loss in the dual-station control method, and achieves high-precision and high-stability printing effects.
Patent Information
- Application Number
- CN202510431872.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-25
AI Technical Summary
The existing dual-station control method is prone to step loss and brake loss, resulting in printing deviation and equipment collision, affecting stability and accuracy, and cannot meet the high-precision and high-stability printing needs.
By obtaining the dual-station status data in real time, dynamically allocating printing tasks based on the load balancing algorithm, establishing communication links, synchronizing status information, triggering task migration mechanisms, optimizing printing efficiency and quality stability, and adopting multi-source data acquisition and collaborative control strategies, including status monitoring, task scheduling, communication relay, fault recovery and energy consumption optimization.
It avoids step loss, improves the accuracy of printing positions, enhances the stability of equipment operation, optimizes printing efficiency, and meets users' needs for high precision and high stability.
Smart Images

Figure CN120371239A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of printer control, and more specifically, to a method, device, and storage medium for jointly controlling a dual-station printer. Background Art
[0002] In the field of printer technology, the existing dual-station control method mainly uses a single-chip microcomputer to independently control the movement of two platens. Although this control method has a simple design, convenient operation, and direct program logic, and can be implemented by one person programming, it has obvious defects. During actual operation, problems such as losing steps or being unable to brake often occur, which have a great negative impact on user experience and printing effect. Losing steps will cause inaccurate printing positions, resulting in deviations in the printed images or texts; being unable to brake may cause collisions between workstations, damage equipment, and also affect the continuity and stability of printing. At present, the market demand for high-precision and high-stability printers is increasing day by day, and the traditional control method has difficulty meeting these requirements. Therefore, there is an urgent need for a new control method to solve these problems.
[0003] The existing dual-station control method is prone to losing steps and brake out-of-control, resulting in printing deviations and equipment collisions, affecting stability and accuracy. Summary of the Invention
[0004] In order to overcome the problems in the existing technology that the dual-station control method is prone to losing steps and brake out-of-control, resulting in printing deviations and equipment collisions, affecting stability and accuracy, etc., the present invention discloses a method, device, and storage medium for jointly controlling a dual-station printer, which can effectively solve the above technical problems.
[0005] To solve the above technical problems, the technical solution of the present invention is as follows:
[0006] A method for jointly controlling a dual-station printer includes the following steps:
[0007] Real-time obtain dual-station status data, including print head temperature, remaining ink cartridge amount, paper feeding speed, and task queue length;
[0008] Based on a preset load balancing algorithm, dynamically allocate the printing tasks to the first station and the second station to generate an initial scheduling instruction;
[0009] According to the real-time operation parameters and task priorities of the dual stations, adjust the execution order and resource allocation ratio of the printing tasks;
[0010] Establish a communication link between the dual stations, synchronize the status information, and monitor the task execution progress;
[0011] When a failure or performance deviation occurs in any station, trigger a task migration mechanism to transfer the unfinished tasks to the other station for continued execution;
[0012] Adjust the collaborative parameters of the two workstations through closed-loop feedback to optimize the overall printing efficiency and quality stability.
[0013] Preferably, the implementation of the load balancing algorithm includes:
[0014] L i = α·T queue + β·T ink + γ·T temp
[0015] where α, β, and γ are weight coefficients and satisfy α + β + γ = 1;
[0016] T queue is the waiting time of the task queue, in seconds;
[0017] T ink is the percentage of the remaining ink cartridge, in percentage;
[0018] T temp is the deviation value of the print head temperature, in degrees Celsius;
[0019] Compare the difference in the comprehensive load index between the first workstation and the second workstation. When the difference exceeds the preset threshold, reallocate the task queue.
[0020] Preferably, the adjustment logic of the resource allocation ratio includes:
[0021] Analyze the attribute parameters of the print task, including paper type, print resolution, and color mode;
[0022] Match the best performance configuration of the workstation according to the task attributes, and preferentially allocate high-resolution tasks to the workstation with low-temperature control function;
[0023] Dynamically adjust the ink cartridge sharing ratio between the two workstations to ensure balanced supply of key color inks.
[0024] Preferably, the synchronization mechanism of the communication link includes:
[0025] Set the master-slave workstation mode, and the master workstation is responsible for summarizing status information and distributing instructions;
[0026] Exchange the operation status data packets of the two workstations at preset time intervals. The data packets include print progress codes, error codes, and resource occupancy rates;
[0027] When the detected packet loss rate exceeds the preset packet loss rate threshold, automatically switch to the redundant communication mode and enable dual-channel transmission at the same time.
[0028] Preferably, the specific implementation of the task migration mechanism is:
[0029] When any station fault is detected, immediately freeze the task queue of that station and generate breakpoint data;
[0030] Pack the breakpoint data and the unfinished tasks into a migration data packet and transmit it to the standby station through the shared storage area;
[0031] Reconstruct the printing environment at the standby station, including restoring the nozzle temperature curve and recalibrating the paper positioning reference.
[0032] Preferably, the method further includes print quality consistency control:
[0033] Set an image acquisition device at the output end of the dual stations to obtain the chromaticity value and edge sharpness of the printed sample in real time;
[0034] When the output quality difference between the dual stations exceeds the preset tolerance, automatically trigger the calibration program to adjust the ink droplet ejection timing and heating power distribution;
[0035] Generate quality compensation parameters and synchronously update them to the control parameter library of the dual stations.
[0036] Preferably, the method further includes an energy consumption optimization strategy:
[0037] Divide the energy consumption levels according to the urgency of the tasks, and adopt a phased power supply mode for non-urgent tasks;
[0038] During the idle period of the dual stations, start the device sleep program to maintain the lowest power consumption state;
[0039] When continuous printing tasks are detected, preheat the standby station to reduce the start-up delay.
[0040] An electronic device, comprising:
[0041] A status monitoring module, configured to collect the temperature, ink volume, and mechanical motion parameters of the dual stations;
[0042] A task scheduling engine, which executes the load distribution and migration logic of the above-mentioned method;
[0043] A communication relay module, which realizes data synchronization and instruction transfer between the dual stations;
[0044] A fault recovery unit, which includes a breakpoint continuous printing controller and a calibration compensation device;
[0045] A power management unit, which distributes the power supply of the dual stations as needed.
[0046] Preferably, the hardware implementation of the task scheduling engine includes:
[0047] Adopt a dual-core processor architecture to independently control the first station and the second station respectively;
[0048] The integrated FPGA chip realizes the priority sorting of real-time task queues;
[0049] Configure the non-volatile memory to store migration data packets and calibration parameters.
[0050] A computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the above-described method are implemented.
[0051] Compared with the prior art, the beneficial effects of the present invention are as follows: Through multi-source data acquisition and collaborative control strategy generation, the present invention can precisely control the movement of the double workstations, avoid the occurrence of missing steps, improve the accuracy of the printing position, and thus improve the quality of printed images or texts; The real-time status monitoring and adjustment mechanism can promptly detect and solve problems such as abnormal movement of the workstations, too high nozzle temperature, and insufficient ink volume, effectively prevent the situation of being unable to stop, enhance the stability of equipment operation, and extend the service life of the equipment; Considering factors such as the priority of printing tasks, nozzle temperature, and ink volume, optimize the movement sequence and speed of the double workstations, improve printing efficiency, and reduce printing time; The stable operation of the equipment and high-quality printing effect provide a better user experience for users and meet the users' requirements for high precision and high stability of the printer. Description of the Drawings
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only exemplary, and for those of ordinary skill in the art, without creative efforts, other implementation drawings can also be obtained based on the provided drawings.
[0053] Figure 1 It is a diagram of the double-workstation linkage control and collaborative optimization architecture;
[0054] Figure 2 It is a flowchart of the method of the present invention. Detailed Embodiments
[0055] The drawings are only for exemplary illustration and should not be construed as a limitation of this patent;
[0056] In order to better illustrate this embodiment, some components in the drawings will be omitted, enlarged, or reduced, and do not represent the actual size of the product;
[0057] For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0058] The following will further illustrate the technical solutions of the present invention in conjunction with the drawings and embodiments.
[0059] Embodiment
[0060] A method for linkage control of a printer with two workstations, comprising the following steps:
[0061] Obtain the status data of the two workstations in real time, including the print head temperature, the remaining amount of the ink cartridge, the paper feeding speed, and the length of the task queue;
[0062] Based on a preset load balancing algorithm, dynamically allocate the printing tasks to the first workstation and the second workstation to generate an initial scheduling instruction;
[0063] According to the real-time operation parameters and task priorities of the two workstations, adjust the execution order of the printing tasks and the resource allocation ratio;
[0064] Establish a communication link between the two workstations, synchronize the status information and monitor the task execution progress;
[0065] When a failure or performance deviation occurs in any workstation, trigger the task migration mechanism to transfer the unfinished tasks to the other workstation for continued execution;
[0066] Optimize the overall printing efficiency and quality stability by adjusting the collaborative parameters of the two workstations through closed-loop feedback.
[0067] The implementation of the load balancing algorithm includes:
[0068] L i = α·T queue + β·T ink + γ·T temp
[0069] Wherein, α, β, and γ are weight coefficients, and satisfy α + β + γ = 1;
[0070] T queue is the waiting time of the task queue, in seconds;
[0071] T ink is the percentage of the remaining amount of the ink cartridge, in percentage;
[0072] T temp is the temperature deviation value of the print head, in degrees Celsius;
[0073] Compare the difference in the comprehensive load index between the first workstation and the second workstation. When the difference exceeds the preset threshold, reallocate the task queue.
[0074] The adjustment logic of the resource allocation ratio includes:
[0075] Analyze the attribute parameters of the printing tasks, including paper type, print resolution, and color mode;
[0076] Match the best performance configuration of the workstations according to the task attributes, and preferentially allocate high-resolution tasks to the workstations with low-temperature control functions;
[0077] Dynamically adjust the cartridge sharing ratio between the two workstations to ensure balanced supply of inks for key colors.
[0078] The synchronization mechanism of the communication link includes:
[0079] Set the master-slave workstation mode, where the master workstation is responsible for summarizing status information and distributing instructions;
[0080] Exchange the operation status data packets of the two workstations at preset time intervals. The data packets include print progress codes, error codes, and resource occupancy rates;
[0081] When the detected data packet loss rate exceeds the preset loss rate threshold, automatically switch to the redundant communication mode and enable dual-channel transmission simultaneously.
[0082] The specific implementation of the task migration mechanism is as follows:
[0083] When a failure of any workstation is detected, immediately freeze the task queue of that workstation and generate breakpoint data;
[0084] Package the breakpoint data and unfinished tasks into migration data packets and transmit them to the standby workstation through the shared storage area;
[0085] Reconstruct the printing environment at the standby workstation, including restoring the nozzle temperature curve and recalibrating the paper positioning reference.
[0086] The method also includes print quality consistency control:
[0087] Set up image acquisition devices at the output ends of the two workstations to obtain the chromaticity values and edge sharpness of the printed samples in real time;
[0088] When the output quality difference between the two workstations exceeds the preset tolerance, automatically trigger the calibration program to adjust the ink droplet ejection timing and heating power distribution;
[0089] Generate quality compensation parameters and synchronously update them to the control parameter libraries of the two workstations.
[0090] The method also includes energy consumption optimization strategies:
[0091] Divide the energy consumption levels according to the urgency of the tasks. For non-urgent tasks, adopt the phased power supply mode;
[0092] When the two workstations are idle, start the device sleep program to maintain the lowest power consumption state;
[0093] When continuous printing tasks are detected, preheat the standby workstation to reduce the start-up delay.
[0094] An electronic device, comprising:
[0095] A status monitoring module for collecting the temperature, ink volume, and mechanical motion parameters of a two-station;
[0096] A task scheduling engine that executes the load distribution and migration logic of the above-described method;
[0097] A communication relay module that realizes data synchronization and instruction transfer between two stations;
[0098] A fault recovery unit, including a breakpoint continuous printing controller and a calibration compensation device;
[0099] A power management unit that distributes the power supply power of two stations as needed.
[0100] The hardware implementation of the task scheduling engine includes:
[0101] Adopting a dual-core processor architecture to independently control the first station and the second station respectively;
[0102] Integrating an FPGA chip to implement the priority sorting of real-time task queues;
[0103] Configuring a non-volatile memory to store migration data packets and calibration parameters.
[0104] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-described method are implemented.
[0105] In a specific implementation, please refer to Figure 1-2 , for the hardware device construction:
[0106] Near the print heads of the two stations of the printer, high-precision thermistor temperature sensors of model NTC10K-5% are respectively installed, which can measure the print head temperature. The sensors are fixed on the print head housing through thermal conduction glue to ensure close contact with the print head surface and capture temperature changes in real time.
[0107] An ultrasonic liquid level sensor of model US-100 is equipped at the ink cartridge. Using the ultrasonic reflection principle, it accurately measures the remaining amount of the ink cartridge, and the measurement error is controlled within ±2%. Data is collected once every 100 ms. The sensor is installed on the top of the ink cartridge and emits ultrasonic waves vertically downward to ensure measurement accuracy.
[0108] A Hall effect speed sensor of model A3144E is installed on the paper delivery track. By detecting the magnetic field changes triggered during the paper delivery process, speed information is obtained. The sensor is installed next to the paper delivery roller and maintains a fixed distance from the roller to ensure that the magnetic field changes can be accurately triggered when the paper passes by.
[0109] The task queue length data is obtained in real time through the task management system inside the printer. The task management system is based on the embedded Linux operating system and dynamically updates the task queue status through the message queue mechanism to ensure that the task allocation module can obtain the latest task information in a timely manner.
[0110] The data collected by each sensor is transmitted to the central processing unit of the status monitoring module through shielded twisted pair. Model: STM32F407VGT6. The use of shielded twisted pair can effectively reduce electromagnetic interference and ensure the accuracy of data transmission. The central processing unit uses a 32-bit ARM Cortex-M4 processor, which has powerful data processing capabilities.
[0111] An embedded development board based on the ARM Cortex-A57 dual-core processor, model: Raspberry Pi4 Model B, is selected as the core hardware of the task scheduling engine. One core (Core 0) is responsible for the control and task scheduling of the first workstation, including task allocation, execution order adjustment, and data interaction with the status monitoring module, etc.; the other core (Core 1) is responsible for the related tasks of the second workstation to achieve independent and efficient control of the two workstations and avoid task conflicts and resource competition.
[0112] An FPGA chip of the Xilinx Artix-7 series, model: XC7A35T, is integrated. Utilizing its logic resources and high-speed parallel processing capabilities, the priority sorting of the real-time task queue is realized. The FPGA chip is connected to the ARM processor through the PCIe interface, can quickly process a large number of task requests, sort according to the urgency and importance of the tasks, and ensure that high-priority tasks are processed in a timely manner.
[0113] A large-capacity non-volatile memory is configured for the task scheduling engine. The K9F1G08U0C NAND Flash storage chip is used. This memory is used to store migration data packets, calibration parameters, and historical data related to printing tasks, etc., to ensure that the data is not lost in the event of a power outage and provide data support for subsequent task scheduling and fault recovery.
[0114] A communication link based on industrial Ethernet is built between the two workstations. A POE (Power over Ethernet) industrial switch (model: TP-LINK TL-SG1008P) that supports the IEEE 802.3at standard is used as the communication relay device. This switch can provide stable power supply for network devices and ensure the efficiency and reliability of data transmission at the same time.
[0115] Install the WIZnet W5500 Ethernet controller chip on the control board of each workstation, which is responsible for data reception and transmission and network protocol processing. The W5500 chip of the main workstation is responsible for collecting the status information of the two workstations and distributing instructions to the W5500 chips of the slave workstations through a switch, realizing centralized control and management of the entire printing system. Set redundant backup lines for the communication link, and use two groups of independent industrial Ethernet cables to connect the main link and the standby link respectively. When the main link fails, the communication relay module can automatically switch to the standby link within 50 ms to ensure the continuity and stability of data transmission.
[0116] Integrate a break-point resume printing controller into the control system of the printer. Adopt a dedicated hardware circuit and software algorithm. The controller is based on FPGA to achieve high-speed data processing. It can freeze the task queue of the faulty workstation within 100 ms and generate break-point data containing key information such as task progress, printhead status, and remaining ink cartridge volume. The break-point data is stored in a non-volatile memory to ensure that the data is not lost in case of power failure.
[0117] The calibration and compensation device is responsible for reconstructing the printing environment at the standby workstation. By controlling the stepper motor and temperature sensor, it restores the printhead temperature curve to its stable working state before the fault, and at the same time uses a high-precision optical sensor to recalibrate the paper positioning reference to ensure that the printing task can be seamlessly connected at the standby workstation without affecting the printing quality. This device can automatically adjust parameters such as the temperature and pressure of the printhead to adapt to different printing tasks and paper types.
[0118] The intelligent power management unit uses PWM (Pulse Width Modulation) technology to precisely control the power supply of the two workstations. The PWM controller is based on the STM32F407VGT6 microcontroller and can dynamically adjust the power output according to task requirements to achieve energy conservation and consumption reduction.
[0119] The power management unit dynamically adjusts the power supply strategy according to the task urgency and equipment operating status. For non-urgent tasks, it reduces the heating power of the printhead to 70% during the printing process; during the idle period of the two workstations, it cuts off the power of some non-essential modules to make the equipment enter the sleep state and maintain the minimum power consumption of about 10 W; when detecting a continuous printing task, it pre-heats the standby workstation 4 minutes in advance, raises the printhead temperature to the appropriate working temperature (about 40°C) by controlling the heating element, reduces the start-up delay, and at the same time optimizes the overall energy consumption and improves the energy utilization efficiency of the equipment.
[0120] Software system implementation: After the printer is started, each sensor in the status monitoring module begins to collect data at the set sampling frequency. The temperature sensor, ink cartridge liquid level sensor, and paper feeding speed sensor collect data at frequencies of 50ms, 100ms, and 80ms respectively, and the task management system updates the task queue length information in real time.
[0121] Perform median filtering on the temperature data. Select the data of 11 consecutive sampling points, remove the maximum and minimum values, and take the median as the final temperature value. For example, the continuously collected temperature data is [35.2, 35.5, 35.3, 35.4, 35.6, 35.7, 35.8, 35.9, 36.0, 36.1, 36.2]. After median filtering, the final temperature value is 35.7°C.
[0122] Perform moving average filtering on the remaining ink cartridge amount and paper feeding speed data. Take the average of the data of the nearest 5 sampling points. For example, the remaining ink cartridge amount data is [85, 87, 86, 88, 87]. After moving average filtering, the final value is 86.6%.
[0123] The preprocessed data is transmitted to the task scheduling engine at a rate of 1Mbps through the SPI (Serial Peripheral Interface) bus. The SPI bus adopts the master-slave mode, with the status monitoring module as the slave device and the task scheduling engine as the master device to ensure the fast transmission of data.
[0124] The task scheduling engine dynamically allocates print tasks according to the preset load balancing algorithm. Set the weight coefficients as α = 0.4, β = 0.3, γ = 0.3, and calculate the comprehensive load index of the first station and the second station every 20 seconds. The calculation formula of the comprehensive load index is:
[0125] L i = 0.4·T queue + 0.3·T ink + 0.3·T temp
[0126] where, T queue is the task queue waiting time (unit: second); T ink is the percentage of the remaining ink cartridge amount (unit: percentage); T temp is the deviation value of the print head temperature (unit: degree Celsius).
[0127] When a new printing task enters the task queue, the task scheduling engine compares the difference in the comprehensive load indices of the two workstations. If the difference exceeds a preset threshold, such as 0.3, it reallocates the task queue. For example, if the comprehensive load index of the first workstation is 0.8 and that of the second workstation is 0.4, and the difference is greater than 0.3, the new task will be allocated to the second workstation at this time. Meanwhile, the task scheduling engine will reasonably adjust the allocation order of tasks between the two workstations according to the priority and estimated printing time of the tasks to ensure that high-priority tasks are executed first.
[0128] During the task allocation process, the task scheduling engine parses the attribute parameters of the printing task, including paper types such as plain paper, high-gloss photo paper, coated paper, etc., printing resolutions such as 600 dpi, 1200 dpi, 2400 dpi, etc., and color modes such as CMYK, RGB, etc.
[0129] For high-precision printing tasks with 2400 dpi, they are preferentially allocated to the workstation with low-temperature control function. The low-temperature control workstation is equipped with an efficient heat dissipation system and a precise temperature control module, which can maintain the print head temperature within the range of 35°C ± 2°C, reduce the thermal drift of the print head, and improve the printing accuracy.
[0130] According to the color requirements of different tasks, dynamically adjust the cartridge sharing ratio between the two workstations. For example, when printing an image with blue as the main color tone, the task scheduling engine will adjust the sharing ratio of the blue cartridge from the default 50% to 70% to ensure sufficient supply of key color inks and avoid color deviation caused by insufficient ink.
[0131] In accordance with the master-slave workstation mode, the W5500 Ethernet controller of the master workstation is responsible for summarizing status information and distributing instructions. The two workstations exchange operation status data packets every 800 ms. The data packets contain the following content:
[0132] The number of printed pages, the current printing position (in millimeters).
[0133] Print head clogging, ink cartridge out of ink, paper jamming, etc.
[0134] Print head utilization rate (percentage), memory occupancy rate (percentage), CPU load (percentage).
[0135] The communication relay module monitors the transmission status of data packets in real time. When it detects that the packet loss rate exceeds a preset packet loss rate threshold, such as 10%, it automatically switches to the redundant communication mode and enables dual-channel transmission. In the redundant communication mode, the two workstations transmit data through two different physical lines to ensure the reliability and integrity of the data.
[0136] When the status monitoring module detects a failure at any work station, such as overheating of the print head, cartridge clogging, motor failure, etc., or a performance deviation, such as a significant decrease in printing speed, abnormal printing quality, etc., the task migration mechanism is immediately triggered. The breakpoint continuous printing controller freezes the task queue of this work station within 100 ms and generates breakpoint data, including information such as task progress, print head status, remaining ink cartridge volume, etc.
[0137] The breakpoint data and the unfinished tasks are packaged into a migration data packet and transmitted to the standby work station through the shared storage area using the NFS network file system. The migration data packet contains key information such as task ID, current page number, print head temperature curve, remaining ink cartridge volume, etc.
[0138] At the standby work station, the calibration compensation device reconstructs the printing environment according to the breakpoint data, adjusts the print head position by controlling the stepper motor, restores the print head temperature curve to the state before the failure, and recalibrates the paper positioning reference to ensure that the printing task can continue to be executed at the standby work station without affecting the printing quality.
[0139] HD cameras are installed at the output ends of the dual work stations. Model: Basler Ace AC-2500-14GM, with a resolution of 2560×1920 pixels and a frame rate of 25 fps. The cameras capture a print sample every 20 seconds and transmit the image data to the task scheduling engine through the USB 3.0 interface.
[0140] The task scheduling engine obtains the chromaticity value and edge sharpness of the print sample in real time through image processing algorithms. The chromaticity value is represented by the three parameters L, a, and b in the CIELAB color space, and the edge sharpness is calculated by the Sobel operator to obtain the edge gradient intensity.
[0141] When the output quality difference between the dual work stations exceeds the preset tolerance, such as the chromaticity deviation exceeds 4 color levels and the edge sharpness deviation exceeds 3 pixels, the calibration program is automatically triggered. The calibration program adjusts the ink droplet ejection timing and heating power distribution according to the quality difference. If it is found that the chromaticity deviation of a certain color is large, the ink droplet ejection volume of the ink cartridge of that color is appropriately increased; if the edge sharpness is insufficient, the heating power is adjusted to make the ink adhere better to the paper.
[0142] The calibration program generates quality compensation parameters and synchronously updates them to the control parameter library of the dual work stations to ensure consistent printing quality of the dual work stations.
[0143] The task scheduling engine divides the energy consumption levels according to the urgency of the tasks:
[0144] The full power mode is adopted, and the heating power of the print head is 100% to ensure the rapid completion of the task.
[0145] Adopt the standard power mode, with the print head heating power at 85%, balancing the printing speed and energy consumption.
[0146] Adopt the energy-saving power mode, with the print head heating power at 70%, reducing the energy consumption.
[0147] During the idle period of the double-station, the power management unit starts the device sleep program, cuts off the power supply of all modules except the necessary monitoring circuits, and keeps the device in the lowest power consumption state, about 10W.
[0148] When a continuous printing task is detected, the power management unit pre-heats the standby station 4 minutes in advance, raises the print head temperature to the appropriate working temperature, about 40°C, by controlling the heating element, reduces the start-up delay, optimizes the overall energy consumption, and improves the energy utilization efficiency of the device.
[0149] Specific process: After the printer starts, the sensors of the status monitoring module start to work, the task scheduling engine conducts a hardware self-check, the communication relay module establishes an initial communication link, the fault recovery unit enters the standby state, and the power management unit initializes the power supply parameters; the task scheduling engine loads the operating system and application programs, initializes the task queue, resource allocation table, and communication protocol stack, and the calibration compensation device performs an initial calibration to ensure a stable printing environment.
[0150] The printer receives a printing task from the client through the USB interface or network interface. The task contains the following information:
[0151] Task ID: A unique identifier used for task tracking and management.
[0152] Paper type: Plain paper, high-gloss photo paper, coated paper, etc.
[0153] Print resolution: 600dpi, 1200dpi, 2400dpi, etc.
[0154] Color mode: CMYK, RGB, etc.
[0155] Task priority: Three levels: high, medium, and low.
[0156] The task scheduling engine analyzes the task attribute parameters, extracts the key information and stores it in the task queue.
[0157] The status monitoring module collects the data of the print head temperature, remaining ink cartridge amount, paper feeding speed, and task queue length of the double-station in real time and transmits it to the task scheduling engine.
[0158] The task scheduling engine calculates the comprehensive load index of the first station and the second station every 20 seconds. The formula is:
[0159] L i =0.4·Tqueue +0.3·T ink +0.3·T temp
[0160] According to the difference of the comprehensive load index and the task priority, the task queue is dynamically allocated. If the difference of the comprehensive load index exceeds 0.3, the new task will be allocated to the station with lower load.
[0161] According to the task attribute parameters, the high-resolution tasks are preferentially allocated to the low-temperature control station, and the cartridge sharing ratio is dynamically adjusted; according to the real-time operation parameters, the print head temperature, the ink droplet ejection volume and the paper feeding speed are adjusted to ensure the printing quality.
[0162] The master station sends the status information data packet to the slave station every 800 ms, including the printing progress, the error code and the resource occupancy rate; the communication relay module monitors the data packet transmission situation in real time. When the loss rate exceeds 10%, it switches to the redundant communication mode.
[0163] The printing tasks are executed in parallel by the two stations. The task scheduling engine monitors the task execution progress in real time, and the status monitoring module detects the station status in real time. When a fault or performance deviation is found, the task migration mechanism is triggered.
[0164] The breakpoint resume printing controller freezes the task queue of the faulty station, generates breakpoint data, and migrates the unfinished tasks to the standby station; the standby station reconstructs the printing environment according to the breakpoint data, restores the nozzle temperature curve and the paper positioning reference, and continues to execute the tasks.
[0165] The camera takes a printing sample every 20 seconds, and the task scheduling engine analyzes the chromaticity value and the edge sharpness of the sample; when the quality difference exceeds the preset tolerance, the calibration program is automatically triggered to adjust the ink droplet ejection timing and the heating power distribution; the quality compensation parameters are generated and synchronously updated to the control parameter libraries of the two stations.
[0166] The power supply power is adjusted according to the task urgency. The energy-saving mode is adopted for non-urgent tasks, and the full-power mode is adopted for urgent tasks; the sleep program is started during the idle period, and the standby station is preheated in advance during continuous tasks to optimize the overall energy consumption.
[0167] The same or similar reference numerals correspond to the same or similar components;
[0168] The terms describing the positional relationship in the drawings are only for illustrative purposes and should not be construed as a limitation of this patent;
[0169] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, rather than limitations on the implementation manners of the present invention. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all implementation manners here. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for linkage control of a printer with two working positions, characterized in that, It includes the following steps: Obtain the dual-station status data in real time, including the print head temperature, the remaining ink cartridge amount, the paper feeding speed, and the task queue length; Based on the preset load balancing algorithm, dynamically allocate the print tasks to the first station and the second station to generate an initial scheduling instruction; According to the real-time operation parameters and task priorities of the dual stations, adjust the execution order of the print tasks and the resource allocation ratio; Establish a communication link between the dual stations, synchronize the status information, and monitor the task execution progress; When a failure or performance deviation occurs at any station, trigger the task migration mechanism to transfer the unfinished tasks to the other station for continued execution; Optimize the overall printing efficiency and quality stability by adjusting the dual-station cooperation parameters through closed-loop feedback; 2. The method according to claim 1, wherein The implementation of the load balancing algorithm includes: L i = α·T queue + β·T ink + γ·T temp Among them, α, β, and γ are weight coefficients, and α + β + γ = 1; T queue is the waiting time of the task queue, in seconds; T ink is the percentage of the remaining ink cartridge amount, in percentage; T temp is the temperature deviation value of the print head, in degrees Celsius; Compare the difference in the comprehensive load indexes of the first station and the second station. When the difference exceeds the preset threshold, reallocate the task queue.
3. The method according to claim 1, characterized in that, The adjustment logic of the resource allocation ratio includes: Analyze the attribute parameters of the print tasks, including the paper type, print resolution, and color mode; Match the best performance configuration of the station according to the task attributes, and preferentially allocate high-resolution tasks to the station with low-temperature control function; Dynamically adjust the ink cartridge sharing ratio between the dual stations to ensure balanced supply of key color inks.
4. The method according to claim 1, characterized in that The synchronization mechanism of the communication link includes: Set the master-slave station mode, and the master station is responsible for summarizing the status information and distributing the instructions; Exchange the operation status data packets of the dual stations at preset time intervals. The data packets include the print progress code, error code, and resource occupancy rate; When it is detected that the data packet loss rate exceeds the preset loss rate threshold, automatically switch to the redundant communication mode and enable dual-channel transmission at the same time.
5. The method according to claim 1, characterized in that, The specific implementation of the task migration mechanism is: When a failure is detected at any station, immediately freeze the task queue of that station and generate breakpoint data; Pack the breakpoint data and the unfinished tasks into a migration data packet and transmit it to the standby station through the shared storage area; Reconstruct the printing environment at the standby station, including restoring the nozzle temperature curve and recalibrating the paper positioning reference.
6. The method according to claim 1, characterized in that, The method further includes print quality consistency control: Set an image acquisition device at the output end of the dual stations to obtain the chromaticity value and edge sharpness of the print sample in real time; When the output quality difference between the dual stations exceeds the preset tolerance, automatically trigger the calibration program to adjust the ink droplet ejection timing and heating power distribution; Generate quality compensation parameters and synchronously update them to the control parameter library of the dual stations.
7. The method according to claim 1, wherein The method further includes an energy consumption optimization strategy: Divide the energy consumption levels according to the urgency of the tasks. For non-urgent tasks, adopt a phased power supply mode; Start the device sleep program during the idle period of the dual stations to maintain the lowest power consumption state; When continuous print tasks are detected, preheat the standby station to reduce the startup delay.
8. An electronic device, characterized in that, It includes: A status monitoring module for collecting the temperature, ink volume, and mechanical motion parameters of the dual stations; A task scheduling engine that executes the load distribution and migration logic of the method according to any one of claims 1-7; A communication relay module that realizes data synchronization and instruction transfer between the dual stations; A fault recovery unit, including a breakpoint continuation printer controller and a calibration compensation device; Power management unit, allocating the power supply for the two workstations as needed.
9. The electronic device according to claim 8, wherein The hardware implementation of the task scheduling engine includes: Adopting a dual-core processor architecture to independently control the first workstation and the second workstation respectively; Integrating an FPGA chip to implement the priority sorting of the real-time task queue; Configuring a non-volatile memory to store migration data packets and calibration parameters.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.