Ink viscosity adjusting method and device, computer equipment and storage medium

By acquiring the motor speed and flow rate data of the UV printer and combining them with the temperature value to generate a state deviation signal, the heater is controlled to adjust the ink viscosity. This solves the problems of ink viscosity control lag and error in the existing technology, and achieves efficient operation of the printer and consistency of finished products.

CN122008698APending Publication Date: 2026-05-12SHENZHEN SUNTHINKS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN SUNTHINKS TECH CO LTD
Filing Date
2026-03-26
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Existing UV printer ink viscosity control methods suffer from manual operation delays and errors. Simple temperature control modules cannot achieve automatic viscosity adjustment, leading to problems such as ink path clogging and uneven ink output, which affect the printer's efficient operation and product consistency.

Method used

By acquiring ink pump motor speed data and ink channel flow rate data, the initial viscosity value of the ink is determined. Combined with the temperature value, a state deviation signal is generated to control the heater to adjust the heating. Based on the current temperature and viscosity value, a control command is generated to realize the automatic adjustment of ink viscosity.

Benefits of technology

It achieves real-time automatic adjustment of ink viscosity, avoids overheating, keeps it within the appropriate range for printer operation, reduces malfunctions, and improves printer operating efficiency and product consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122008698A_ABST
    Figure CN122008698A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of printer equipment, and relates to an ink viscosity adjusting method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining motor rotating speed data of an ink pump and flow velocity data of ink in an ink channel, and determining an initial viscosity value of the ink according to the motor rotating speed data and the flow velocity data; obtaining an initial temperature value of the ink, and determining a state deviation signal of the ink according to the initial viscosity value, a preset target viscosity value, the initial temperature value and the preset target temperature value; according to the state deviation signal, a heater is started, the heater is controlled to heat ink in the ink channel, and the current temperature value and the current viscosity value of the ink are obtained; according to the current temperature value, the target temperature value, the current viscosity value and the target viscosity value, a control instruction of the heater is determined, and when it is detected that the control instruction is a closing instruction, the heater is closed. According to the invention, printer operation faults caused by improper ink viscosity are reduced, and the overall operation efficiency of the printer is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of printer equipment technology, and in particular to an ink viscosity adjustment method, apparatus, computer equipment, and storage medium. Background Technology

[0002] With the rapid development of industrial printing technology, UV printers (Ultraviolet LED Inkjet Printers) are increasingly widely used in advertising production, industrial parts printing, and other fields due to their advantages of fast curing speed and high printing accuracy. The industry's requirements for continuous and efficient operation and stable printing quality are also constantly increasing. Ink viscosity, as a key control parameter of the UV printer's ink supply system, directly determines the equipment's operating efficiency and the quality of the printed product, making it a crucial aspect of equipment management.

[0003] Currently, the industry mainly relies on manual timed detection and adjustment of heating devices to control the viscosity of UV printer inks. A few devices are only equipped with simple fixed temperature control modules, which indirectly control the ink viscosity by preset a single temperature value, without dedicated real-time viscosity detection and automatic adjustment design.

[0004] These existing control methods suffer from the lag and human error inherent in manual operation. The simple temperature control module also cannot dynamically adjust according to the actual viscosity of the ink, making it difficult to achieve automatic viscosity adaptation and adjustment. This can easily lead to problems such as ink path blockage and uneven ink output, causing the printer to be unable to operate continuously and efficiently, and also reducing the consistency of printed products.

[0005] In view of the above, this application is hereby submitted. Summary of the Invention

[0006] The purpose of this application is to provide an ink viscosity adjustment method, apparatus, computer device, and storage medium to solve the technical problem that the printer cannot operate efficiently due to the difficulty in automatically adjusting the ink viscosity during printer use.

[0007] To address the aforementioned technical problems, this application provides an ink viscosity adjustment method, employing the following technical solution: The motor speed data of the ink pump and the flow rate data of the ink in the ink channel are obtained, and the initial viscosity value of the ink is determined based on the motor speed data and the flow rate data. The initial temperature value of the ink is obtained, and the state deviation signal of the ink is determined based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value. Based on the state deviation signal, the heater is activated to control the heater to heat the ink in the ink channel, and the current temperature and viscosity values ​​of the ink are obtained. Based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value, a control command for the heater is determined. When the control command is detected to be a shutdown command, the heater is shut down.

[0008] Furthermore, determining the initial viscosity value of the ink based on the motor speed data and the flow rate data includes: Based on the motor speed data, the mapping relationship between flow rate and viscosity is determined; Based on the mapping relationship, an initial viscosity value matching the flow rate data is determined.

[0009] Furthermore, determining the ink's state deviation signal based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value includes: The temperature deviation value is determined based on the initial temperature value and the target temperature value; Based on the initial viscosity value and the target viscosity value, determine the viscosity deviation value; The temperature deviation value and the viscosity deviation value are converted to obtain simulated state data; The simulated state data is modulated to obtain the state deviation signal.

[0010] Furthermore, activating the heater based on the state deviation signal includes: The power parameters of the heater are determined based on the state deviation signal; Based on the power parameters, a heating command for the ink is generated; The heater is activated according to the heating command.

[0011] Furthermore, the control commands include a shutdown command and a hold command. Determining the control commands for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value includes: Based on the target temperature value, determine the first threshold range; Based on the target viscosity value, determine the second threshold range; If the current temperature value is within the first threshold range and the target viscosity value is within the second threshold range, then a shutdown command for the heater is generated. If the current temperature value is not within the first threshold range, or the target viscosity value is not within the second threshold range, then a hold command for the heater is generated.

[0012] Furthermore, obtaining the initial temperature value of the ink includes: Every preset time interval, it is detected whether the initial viscosity value is within the third threshold range corresponding to the preset target viscosity value; When the initial viscosity value is not within the third threshold range, the initial temperature value of the ink is obtained.

[0013] Furthermore, after activating the heater based on the state deviation signal, controlling the heater to heat the ink in the ink channel, and obtaining the current temperature and viscosity values ​​of the ink, the method further includes: Monitor the rate of temperature rise of the ink; If the rate of increase is greater than or equal to a preset safety threshold, an emergency stop command is generated. The heater is shut down according to the emergency stop command.

[0014] To address the aforementioned technical problems, this application also provides an ink viscosity adjustment device, which employs the following technical solution: An ink viscosity adjusting device, comprising: The first determining module is used to acquire the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, and determine the initial viscosity value of the ink based on the motor speed data and the flow rate data. The second determining module is used to obtain the initial temperature value of the ink, and determine the state deviation signal of the ink based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value. The start-up module is used to start the heater according to the state deviation signal, control the heater to heat the ink in the ink channel, and obtain the current temperature value and current viscosity value of the ink. The control module is used to determine the control command for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value, and to turn off the heater when the control command is detected to be a shutdown command.

[0015] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution: A computer device includes a memory and a processor, the memory storing computer-readable instructions, the processor executing the computer-readable instructions to implement the steps of the ink viscosity adjustment method as described above.

[0016] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below: A computer-readable storage medium storing computer-readable instructions that, when executed by a processor, implement the steps of the ink viscosity adjustment method as described above.

[0017] Compared with the prior art, this application has the following main advantages: The ink viscosity adjustment method disclosed in this application determines the initial viscosity value of the ink by acquiring the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, thus directly sensing the actual viscosity state of the ink. Next, after acquiring the initial temperature value of the ink, a state deviation signal is determined by combining the initial viscosity value, a preset target viscosity value, and the initial temperature value and the preset target temperature value. This signal, along with the actual temperature and viscosity values, forms a corresponding state feedback, providing a basis for subsequent viscosity adjustment. Then, the heater is activated based on the state deviation signal, controlling the heater to heat the ink in the ink channel while simultaneously acquiring the current temperature and viscosity values ​​of the ink. This allows for timely initiation of heating adjustment actions based on the actual state deviation of the ink, while continuously monitoring changes in ink temperature and viscosity during heating, ensuring that heating adjustment always follows the actual state of the ink. Finally, the control command for the heater is determined based on the current temperature value, target temperature value, current viscosity value, and target viscosity value of the ink. The heater is turned off in time when a shutdown command is detected. Heating can be stopped when the temperature and viscosity of the ink reach the expected operating requirements, avoiding overheating that could cause abnormal ink viscosity. This keeps the ink viscosity within the range suitable for printer operation, reducing printer malfunctions caused by unsuitable ink viscosity, making the printer operation smoother, improving the overall operating efficiency of the printer, and achieving automatic adjustment of ink viscosity so that the printer can always maintain a high-efficiency operating state. Attached Figure Description

[0018] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is an exemplary system architecture diagram to which this application can be applied; Figure 2 This is a flowchart of one embodiment of the ink viscosity adjustment method according to this application; Figure 3 This is a schematic diagram of one embodiment of the ink viscosity adjustment device according to this application; Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0021] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0023] like Figure 1 As shown, the system architecture 100 may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0024] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0025] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer Ⅲ) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptops, and desktop computers, etc.

[0026] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.

[0027] It should be noted that the ink viscosity adjustment method provided in this application embodiment is generally executed by the terminal device, and correspondingly, the ink viscosity adjustment device is generally installed in the terminal device.

[0028] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0029] Continue to refer to Figure 2 A flowchart of an embodiment of the ink viscosity adjustment method according to this application is shown. The ink viscosity adjustment method includes the following steps: Step S201: Obtain the motor speed data of the ink pump and the ink flow rate data in the ink channel, and determine the initial viscosity value of the ink based on the motor speed data and the flow rate data.

[0030] In this embodiment, the ink viscosity adjustment method operates on an electronic device (e.g., Figure 1 The terminal device shown can send or receive data via wired or wireless connection. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G / 5G connections, Wi-Fi connections, Bluetooth connections, WiMAX connections, Zigbee connections, UWB (ultra-wide band) connections, and other currently known or future wireless connection methods.

[0031] In this embodiment, the UV printer includes an ink pump assembly, an ultrasonic sensor, a proportional-integral-derivative (PID) controller, a heater, and a temperature sensor. The ink pump assembly includes an ink pump and an ink pump motor that drives the ink pump. The ink pump is connected in series in the ink channel of the UV printer's ink supply system to deliver ink. The ink pump motor has a speed feedback function, which can transmit the motor speed data to the terminal in real time. The ultrasonic sensor is installed on the side of the ink channel at the output end of the ink pump to detect the real-time flow rate of the ink in the ink channel. The detection signal can be synchronously transmitted to the terminal. The heater is attached to the outer wall of the ink channel or integrated inside the ink channel and is electrically connected to the PID controller to heat the ink in the ink channel and reduce the ink viscosity. The temperature sensor is integrated inside the ink channel to detect the actual temperature of the ink. The PID controller is electrically connected to the ink pump motor, the ultrasonic sensor, the heater, and the control terminal, respectively, receives command signals from the control terminal, and provides feedback and adjusts the working state of the heater.

[0032] Specifically, an encoder-equipped servo motor coaxially connected to the ink pump detects the pump's operating speed in real time, obtaining motor speed data. This encoder transmits the detected motor speed data as an electrical signal in real time. Simultaneously, an ultrasonic sensor detects the real-time flow velocity of the ink within the ink channel, obtaining ink flow rate data. Then, based on the mapping relationship between ink flow rate and viscosity in the printer, the initial viscosity value of the ink in the ink channel at that moment is determined. For example, if the detected motor speed is 1500 rpm and the ink flow rate is 2.5 m / s, the initial viscosity value of the ink is determined to be 12 mPa after calculation. s.

[0033] Step S202: Obtain the initial temperature value of the ink, and determine the state deviation signal of the ink based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value.

[0034] In this embodiment, the preset target viscosity value is the optimal ink viscosity control value preset to ensure smooth ink supply and compliant printing accuracy in the UV printer. This preset target viscosity value can be 5~8 mPa·s. The preset target temperature value is the ink temperature value that is tied to the target viscosity value and allows the ink to be stably maintained at the corresponding target viscosity. The preset target temperature value can be 25~30℃. The state deviation signal is an electrical signal obtained by calculating, converting, and modulating the results based on the comparison between the actual ink temperature and viscosity state and the preset target temperature and viscosity state. It reflects the degree and direction of deviation of the ink's current viscosity and temperature from the target values.

[0035] Specifically, a temperature sensor detects the actual temperature of the ink in the ink channel to obtain the initial temperature value of the ink. Then, pre-set target viscosity and temperature values ​​are retrieved, and the initial and target viscosity and temperature values ​​are combined and processed. Based on the calculation results, a state deviation signal reflecting the deviation of the ink's current state from the target state is determined. For example, the obtained initial ink viscosity value is 12 mPa. The initial ink temperature was measured to be 20°C, and the preset target viscosity was 6 mPa. The preset target temperature is 28℃. After processing and calculation, the state deviation signal corresponding to the ink state at this time is determined.

[0036] Step S203: Based on the state deviation signal, start the heater, control the heater to heat the ink in the ink channel, and obtain the current temperature value and current viscosity value of the ink.

[0037] In this embodiment, after determining the ink state deviation signal, the signal is transmitted to the PID controller. Based on the received signal, the PID controller activates the heater adapted to the ink channel, driving it to heat the ink within the channel. During heating, a temperature sensor continuously monitors the ink's real-time temperature to obtain its current value. Simultaneously, the ink pump motor speed and ink flow rate in the channel are continuously monitored. Combining these two data points determines the ink's current viscosity, enabling continuous monitoring of both temperature and viscosity during heating. For example, if the PID controller receives a viscosity deviation of 6 mPa... Upon receiving a temperature deviation signal of -8℃, the silicone heating element attached to the outer wall of the ink channel is activated to heat the ink. During the heating process, the temperature sensor continuously collects the current ink temperature value, which gradually increases from 20℃. Simultaneously, the current ink viscosity value is continuously obtained by detecting the motor speed and ink flow rate, starting from 12 mPa. s gradually decreased.

[0038] Step S204: Determine the control command for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value; when the control command is detected to be a shutdown command, shut down the heater.

[0039] In this embodiment, the heater control commands include a shutdown command and a hold command. The shutdown command means turning off the heater, while the hold command means keeping the heater in its current operating state. Specifically, during the process of the heater heating the ink in the ink channel, while continuously acquiring the current temperature and viscosity values ​​of the ink, a pre-set target temperature and viscosity values ​​are retrieved. The current temperature, target temperature, current viscosity, and target viscosity values ​​are combined and calculated. Based on the calculation result, a heater control command adapted to the current ink temperature and viscosity state is determined and transmitted to the PID controller in real time. The PID controller receives and detects the control command. When it detects that the command is a heater shutdown command, it immediately executes the corresponding control action, driving the heater adapted to the ink channel to stop heating the internal ink. For example, during the heating process, the current ink temperature gradually rises to 28°C and the current viscosity gradually decreases to 6 mPa. s, combined with the preset target viscosity value of 6 mPa After the target temperature value of 28℃ is determined and the heater shutdown command is generated, the PID controller directly controls the silicone heating pad attached to the outer wall of the ink channel to stop heating, thus completing the heating operation for this ink viscosity adjustment.

[0040] This application determines the initial viscosity of the ink by acquiring the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, thus directly sensing the actual viscosity state of the ink. Secondly, after acquiring the initial temperature value of the ink, it combines the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value to determine the ink's state deviation signal. This signal, along with the actual temperature and viscosity values, forms a corresponding state feedback, providing a basis for subsequent viscosity adjustment. Then, based on the state deviation signal, the heater is activated to heat the ink in the ink channel while simultaneously acquiring the current temperature and viscosity values. This allows for timely initiation of heating adjustment actions based on the actual state deviation of the ink, while continuously monitoring changes in ink temperature and viscosity during heating, ensuring that heating adjustment always follows the actual state of the ink. Finally, the control command for the heater is determined based on the current temperature value, target temperature value, current viscosity value, and target viscosity value of the ink. The heater is turned off in time when a shutdown command is detected. Heating can be stopped when the temperature and viscosity of the ink reach the expected operating requirements, avoiding overheating that could cause abnormal ink viscosity. This keeps the ink viscosity within the range suitable for printer operation, reducing printer malfunctions caused by unsuitable ink viscosity, making the printer operation smoother, improving the overall operating efficiency of the printer, and achieving automatic adjustment of ink viscosity so that the printer can always maintain a high-efficiency operating state.

[0041] In some optional implementations of this embodiment, the step of determining the initial viscosity value of the ink based on the motor speed data and the flow rate data includes: Based on the motor speed data, the mapping relationship between flow rate and viscosity is determined; Based on the mapping relationship, an initial viscosity value matching the flow rate data is determined.

[0042] In this embodiment, the mapping relationship between flow rate and viscosity can be determined by a preset calibration table. This calibration table is divided into multiple sub-tables according to different operating speeds of the ink pump motor. Each sub-table corresponds to a fixed motor speed, and stores a one-to-one correspondence between the real-time flow rate data of ink in the ink channel and the actual viscosity data at that speed. The viscosity calibration table is a table of measured data obtained through preliminary process experiments, data collection, processing, and verification.

[0043] Specifically, after receiving the motor speed data of the ink pump, the system uses this speed data as the sole retrieval criterion to determine a dedicated viscosity calibration table that matches the current motor speed data from multiple built-in sub-tables. Subsequently, the system uses the detected ink flow rate data in the ink channel as the retrieval condition to perform data matching in the determined dedicated viscosity calibration table. First, it determines whether the accuracy of the detected flow rate data matches the accuracy of the data recorded in the table. If they match precisely, the system directly finds the viscosity value corresponding to the current flow rate data. If the accuracy of the detected flow rate data does not reach the accuracy of the calibration table recording and there is no precisely matching flow rate data, the system automatically selects the two adjacent sets of measured data in the table that are closest to the detected flow rate based on linear interpolation calculations. The corresponding viscosity value is then fitted using a linear interpolation formula, and this value is the initial viscosity value of the ink in the ink channel. For example, if the received motor speed data is 1500 rpm, the specific viscosity calibration table corresponding to the 1500 rpm motor speed is selected from the built-in calibration table. Then, the detected ink flow rate data of 2.5 m / s is substituted into the calibration table for matching and lookup, and finally, the corresponding viscosity value is found to be 12 mPa. s, that is, to determine the initial viscosity value of the ink at this time.

[0044] In addition, based on the measured data collected, processed, and verified from the preliminary process experiments, a correlation formula for rotational speed, flow rate, and viscosity can be fitted. This formula is as follows: η0 = 0.016 × (n / v) + 0.8, where η0 is the initial viscosity value, n is the motor speed, v is the flow rate, and 0.016 and 0.8 are compensation values ​​obtained from the fitted measured data. When the ink pump motor speed n = 1500 rpm and the real-time ink flow rate v = 3.5 m / s, the formula is calculated as: η0 = 0.016 × (1500 / 3.5) + 0.8 ≈ 7.66 mPa. The initial viscosity value can be obtained by counting s (rounded to two decimal places).

[0045] This application accurately matches the corresponding sub-table by motor speed and then finds the initial viscosity value by flow rate, so that the viscosity determination is supported by actual measured data under actual working conditions. It adapts to different working speeds of ink pump motors, reduces the deviation of viscosity determination, and makes the determination of the initial viscosity value more in line with the actual operating state of the equipment. At the same time, the determination process is clear, which improves the efficiency of viscosity detection.

[0046] In some optional implementations of this embodiment, the step of determining the ink state deviation signal based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value includes: The temperature deviation value is determined based on the initial temperature value and the target temperature value; Based on the initial viscosity value and the target viscosity value, determine the viscosity deviation value; The temperature deviation value and the viscosity deviation value are converted to obtain simulated state data; The simulated state data is modulated to obtain the state deviation signal.

[0047] In this embodiment, the initial ink temperature value is calculated by subtracting it from a preset target temperature value; the result is the ink temperature deviation. Next, the initial ink viscosity value is calculated by subtracting it from a preset target viscosity value, determining the ink viscosity deviation. Then, the obtained temperature and viscosity deviation values ​​are converted from digital to analog data, transforming the two sets of deviation values ​​into analog state data suitable for hardware signal transmission. Finally, the converted analog state data is modulated to generate a state deviation signal that can be stably transmitted between the control terminal and the PID controller. For example, an initial temperature of 20°C and a target temperature of 28°C result in a temperature deviation of -8°C and an initial viscosity of 12 mPa. s and target viscosity value 6mPa The viscosity deviation value obtained by the s calculation is 6 mPa. After the two sets of values ​​are converted from digital to analog to obtain the corresponding analog state data, they are then modulated to finally form a state deviation signal that matches the hardware transmission requirements of this device.

[0048] This application obtains temperature and viscosity deviation values ​​through differential calculation, and then forms a state deviation signal through digital-to-analog conversion and signal modulation. This signal can fully reflect the actual deviation of ink temperature and viscosity. The generated signal is compatible with the transmission requirements between hardware, so that the control operation of the subsequent heater has a clear state basis, and improves the adaptability of signal transmission and use.

[0049] In some optional implementations of this embodiment, the step of activating the heater based on the state deviation signal includes: The power parameters of the heater are determined based on the state deviation signal; Based on the power parameters, a heating command for the ink is generated; The heater is activated according to the heating command.

[0050] In this embodiment, after receiving the state deviation signal, the PID controller aligns the deviation value accuracy to the controller's calculation accuracy. This is because the temperature deviation value (°C) and viscosity deviation value (mPa) are related. Since s) are parameters with different dimensions, they cannot be directly coupled in calculation. The PID controller divides the two sets of deviation values ​​by their respective maximum allowable deviation values ​​for the process, converting them into a unified dimensionless standardized deviation value ranging from -1 to +1; for example, the maximum allowable deviation value for viscosity is 5 mPa. Given a temperature of 10℃, the calculated viscosity standardized deviation is 1.2 and the temperature standardized deviation is -0.8. The PID controller then uses viscosity deviation as the primary control target, assigning weights to the viscosity and temperature standardized deviations. Through coordinated calculations of proportional (P), integral (I), and derivative (D) stages, it outputs the heater's base power duty cycle. Specifically, the proportional stage outputs the base duty cycle based on the deviation magnitude, the integral stage compensates for power shortages caused by the duration of the deviation, and the derivative stage suppresses sudden power changes. The PID controller then adjusts the base power duty cycle according to the actual heating conditions to adapt to scenarios such as ink path heat dissipation and deviation threshold states. If the deviation exceeds the threshold, the duty cycle is limited to a reasonably high range; if the ambient heat dissipation is rapid, positive duty cycle compensation is performed. Finally, the corrected power duty cycle is multiplied by the rated maximum power of the heater to obtain the actual power parameters of the heater. At the same time, the parameters are rounded according to the power adjustment step size of the silicone heating element to ensure that the parameters can be accurately executed by the hardware. For example, if the rated maximum power of the silicone heating element is 500W, it is calculated that 500W×90%=450W. This value is adapted to the hardware adjustment step size and is the final determined power parameters of the heater.

[0051] Based on the calculated power parameters, a heating command is generated to drive the heater to work according to those parameters. This command includes the start-up action and the power parameters. Finally, the heating command is transmitted to the heater. Upon receiving the command, the heater immediately executes the start-up action and enters the heating working state.

[0052] This application determines the heater power parameters through a state deviation signal, and then generates a heating command to start the heater accordingly. This ensures that the heater's activation is based on a power level that closely matches the actual ink deviation, avoiding blind heating. The command activation action is smoothly connected, reducing heating lag and improving the adaptability and execution efficiency of ink heating adjustment.

[0053] In some optional implementations of this embodiment, the control command includes a shutdown command and a hold command. The step of determining the control command for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value includes: Based on the target temperature value, determine the first threshold range; Based on the target viscosity value, determine the second threshold range; If the current temperature value is within the first threshold range and the target viscosity value is within the second threshold range, then a shutdown command for the heater is generated. If the current temperature value is not within the first threshold range, or the target viscosity value is not within the second threshold range, then a hold command for the heater is generated.

[0054] In this embodiment, the first threshold range is the allowable fluctuation range of ink temperature defined based on a preset target temperature value; the second threshold range is the allowable fluctuation range of ink viscosity defined based on a preset target viscosity value. The shutdown command is a control command that stops the heater from heating the ink in the ink channel, while the hold command is a control command that maintains the heater's current operating state and continues to heat the ink in the ink channel.

[0055] Specifically, firstly, based on a preset target temperature value, a first threshold range matching that value is defined. For example, if the preset target temperature value is 28℃, the first threshold range is defined as 27.5℃-28.5℃. Secondly, based on a preset target viscosity value, a second threshold range matching that value is defined. For example, if the preset target viscosity value is 6 mPa... Based on this, the second threshold interval is defined as 5.7 mPa. s-6.3mPa Subsequently, the real-time acquired current ink temperature value is matched against a first threshold interval, and the real-time acquired current ink viscosity value is matched against a second threshold interval. If the current temperature value is within the first threshold interval and the current viscosity value is within the second threshold interval, a heater shutdown command is generated. The first threshold interval includes the two endpoints and the range between them; for example, the first threshold interval is [27.5, 28.5]. The second threshold interval includes the two endpoints and the range between them; for example, the second threshold interval is [5.7, 6.3]. If the current temperature value is not within the first threshold interval, or the current viscosity value is not within the second threshold interval, a heater hold command is generated if either condition is met.

[0056] This application defines corresponding threshold ranges by using target temperature and target viscosity values. It then generates shut-off or hold commands for the heater through dual-range matching, providing a clear basis for heater control. Heating continues until the target is met, and stops promptly upon reaching the target, preventing overheating from affecting the ink's condition and ensuring that the ink's temperature and viscosity are adjusted to better meet process requirements.

[0057] In some optional implementations of this embodiment, the step of obtaining the initial temperature value of the ink includes: Every preset time interval, it is detected whether the initial viscosity value is within the third threshold range corresponding to the preset target viscosity value; When the initial viscosity value is not within the third threshold range, the initial temperature value of the ink is obtained.

[0058] In this embodiment, the preset time period is a fixed time interval for periodically detecting the initial viscosity value of the ink, which is a time parameter set to achieve normalized monitoring of ink viscosity; the third threshold interval is the allowable fluctuation range of ink viscosity defined according to the preset target viscosity value. The third threshold interval is the second threshold interval corresponding to the above-mentioned target viscosity value. The two are the same numerical range and are the reference range for determining whether the initial viscosity value meets the process requirements.

[0059] Specifically, the initial viscosity value of the ink is periodically detected according to a preset time period to determine whether it falls within the third threshold range corresponding to the preset target viscosity value. If the initial viscosity value is determined not to be within the third threshold range, a temperature sensor integrated into the ink channel is triggered to detect the actual temperature of the ink in the ink channel, thereby obtaining the initial temperature value of the ink. If the initial viscosity value is determined to be within the third threshold range, the system waits for the next detection according to the preset time period.

[0060] For example, the preset time period is set to 30 seconds, and the preset target viscosity value is 6 mPa. s, corresponding to the third threshold interval of 5.7 mPa. s-6.3mPa The initial viscosity of the ink is measured every 30 seconds. When the initial viscosity is detected to be 12 mPa... s, not at 5.7 mPa s-6.3mPa When the temperature is within the third threshold range of s, the temperature sensor is immediately triggered to complete the detection, and the initial temperature value of the ink is obtained as 20℃.

[0061] This application periodically detects the initial viscosity of the ink at preset time intervals, triggering temperature detection to obtain the initial temperature value only when the viscosity value deviates from the third threshold range. This avoids meaningless temperature detection operations and reduces redundant hardware operation. Simultaneously, it achieves routine viscosity monitoring, enabling timely detection of viscosity anomalies and making temperature detection more aligned with actual viscosity adjustment needs.

[0062] In some optional implementations of this embodiment, after the steps of activating the heater based on the state deviation signal, controlling the heater to heat the ink in the ink channel, and obtaining the current temperature and viscosity values ​​of the ink, the method further includes: Monitor the rate of temperature rise of the ink; If the rate of increase is greater than or equal to a preset safety threshold, an emergency stop command is generated. The heater is shut down according to the emergency stop command.

[0063] In this embodiment, the rate of increase of ink temperature refers to the increase in ink temperature per unit time during the heating process of the heater, which is a parameter for determining whether the heating process is safe; the preset safety threshold is a limit on the rate of increase set to prevent the ink from changing its properties due to a sudden increase in temperature; the emergency stop command is an emergency control command to deal with heating abnormalities and to immediately stop the heater from working.

[0064] Specifically, during the heating process of the ink in the ink channel by the heater, the ink temperature data is collected in real time by a temperature sensor, and the rate of temperature rise is calculated and monitored in real time. The actual rate of rise is compared with a preset safety threshold. If the actual rate is greater than or equal to the threshold, an emergency stop command is immediately generated. This command is then transmitted to the PID controller, which immediately executes the control action to shut down the heater. For example, if the preset safety threshold for the temperature rise rate is 2℃ / s, and the ink temperature is detected to rise from 20℃ to 22℃ in 1 second due to a hardware malfunction, with a rise rate of 2℃ / s, which equals the safety threshold, an emergency stop command is immediately generated. Upon receiving this command, the PID controller quickly controls the silicone heating element to shut down, preventing changes in ink properties due to a sudden temperature rise and ensuring the safety of the heating process.

[0065] This application monitors the ink temperature rise rate in real time during the heating process and generates an emergency stop command and shuts down the heater when the rate is greater than or equal to a preset safety threshold. This can promptly avoid changes in ink properties due to a sudden temperature rise, effectively address hardware malfunctions during heating, ensure overall safety of the heating process, and reduce damage to ink and equipment caused by abnormal heating.

[0066] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0067] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0068] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0069] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0070] Further reference Figure 3 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of an ink viscosity adjustment device, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0071] like Figure 3As shown, the ink viscosity adjustment device 300 described in this embodiment includes: a first determining module 301, a second determining module 302, a starting module 303, and a control module 304. Wherein: The first determining module 301 is used to acquire the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, and determine the initial viscosity value of the ink based on the motor speed data and the flow rate data. The second determining module 302 is used to obtain the initial temperature value of the ink and determine the state deviation signal of the ink based on the initial viscosity value, the preset target viscosity value, the initial temperature value and the preset target temperature value. The start-up module 303 is used to start the heater according to the state deviation signal, control the heater to heat the ink in the ink channel, and obtain the current temperature value and current viscosity value of the ink; The control module 304 is used to determine the control command for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value, and to turn off the heater when the control command is detected to be a shutdown command.

[0072] The ink viscosity adjustment device provided in this application determines the initial viscosity value of the ink by acquiring the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, thus directly sensing the actual viscosity state of the ink. Next, after acquiring the initial temperature value of the ink, it combines the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value to determine the ink's state deviation signal. This signal, combined with the actual temperature and viscosity values ​​and the target values, forms a corresponding state feedback, providing a basis for subsequent viscosity adjustment. Then, based on the state deviation signal, the heater is activated to heat the ink in the ink channel while simultaneously acquiring the current temperature and viscosity values ​​of the ink. This allows for timely initiation of heating adjustment based on the actual state deviation of the ink, while continuously monitoring changes in ink temperature and viscosity during heating, ensuring that heating adjustment always follows the actual state of the ink. Finally, the control command for the heater is determined based on the current temperature value, target temperature value, current viscosity value, and target viscosity value of the ink. The heater is turned off in time when a shutdown command is detected. Heating can be stopped when the temperature and viscosity of the ink reach the expected operating requirements, avoiding overheating that could cause abnormal ink viscosity. This keeps the ink viscosity within the range suitable for printer operation, reducing printer malfunctions caused by unsuitable ink viscosity, making the printer operation smoother, improving the overall operating efficiency of the printer, and achieving automatic adjustment of ink viscosity so that the printer can always maintain a high-efficiency operating state.

[0073] In some optional implementations of this embodiment, the first determining module 301 is further configured to: Based on the motor speed data, the mapping relationship between flow rate and viscosity is determined; Based on the mapping relationship, an initial viscosity value matching the flow rate data is determined.

[0074] The ink viscosity adjustment device provided in this application accurately matches the corresponding sub-table by motor speed and finds the initial viscosity value by flow rate, so that the viscosity determination is supported by actual measured data under actual working conditions. It is adapted to different working speeds of ink pump motor, reduces the deviation of viscosity determination, and makes the determination of the initial viscosity value more in line with the actual operating state of the equipment. At the same time, the determination process is clear, which improves the efficiency of viscosity detection.

[0075] In some optional implementations of this embodiment, the second determining module 302 is further configured to: The temperature deviation value is determined based on the initial temperature value and the target temperature value; Based on the initial viscosity value and the target viscosity value, determine the viscosity deviation value; The temperature deviation value and the viscosity deviation value are converted to obtain simulated state data; The simulated state data is modulated to obtain the state deviation signal.

[0076] The ink viscosity adjustment device provided in this application obtains temperature and viscosity deviation values ​​through differential calculation, and then forms a state deviation signal through digital-to-analog conversion and signal modulation. It can fully reflect the actual deviation of ink temperature and viscosity. The generated signal is compatible with the transmission requirements between hardware, so that the control operation of the subsequent heater has a clear state basis, and improves the adaptability of signal transmission and use.

[0077] In some optional implementations of this embodiment, the startup module 303 is further configured to: The power parameters of the heater are determined based on the state deviation signal; Based on the power parameters, a heating command for the ink is generated; The heater is activated according to the heating command.

[0078] The ink viscosity adjustment device provided in this application determines the heater power parameters through a state deviation signal, and then generates a heating command to start the heater accordingly. This ensures that the heater's activation is based on a power level that closely matches the actual ink viscosity deviation, avoiding blind heating. The command activation action is smoothly coordinated, reducing heating lag and improving the adaptability and execution efficiency of ink heating adjustment.

[0079] In some optional implementations of this embodiment, the control module 304 is further configured to: Based on the target temperature value, determine the first threshold range; Based on the target viscosity value, determine the second threshold range; If the current temperature value is within the first threshold range and the target viscosity value is within the second threshold range, then a shutdown command for the heater is generated. If the current temperature value is not within the first threshold range, or the target viscosity value is not within the second threshold range, then a hold command for the heater is generated.

[0080] The ink viscosity adjustment device provided in this application defines corresponding threshold ranges based on target temperature and target viscosity values. It generates shut-off or hold commands for the heater through dual-range matching, providing a clear basis for heater control. Heating continues until the target is met, and stops promptly upon reaching the target, preventing overheating from affecting the ink's condition and ensuring the ink temperature and viscosity adjustment better aligns with process requirements.

[0081] In some optional implementations of this embodiment, the second determining module 302 is further configured to: Every preset time interval, it is detected whether the initial viscosity value is within the third threshold range corresponding to the preset target viscosity value; When the initial viscosity value is not within the third threshold range, the initial temperature value of the ink is obtained.

[0082] The ink viscosity adjustment device provided in this application periodically detects the initial viscosity value of the ink within a preset time period. It only triggers temperature detection to obtain the initial temperature value when the viscosity value deviates from the third threshold range, avoiding meaningless temperature detection operations and reducing redundant hardware operation. Simultaneously, it achieves normalized viscosity monitoring, enabling timely detection of viscosity anomalies and making temperature detection more aligned with actual viscosity adjustment needs.

[0083] In some optional implementations of this embodiment, the startup module 303 is further configured to: Monitor the rate of temperature rise of the ink; If the rate of increase is greater than or equal to a preset safety threshold, an emergency stop command is generated. The heater is shut down according to the emergency stop command.

[0084] The ink viscosity adjustment device provided in this application can monitor the ink temperature rise rate in real time during the heating process, generate an emergency stop command and shut down the heater when the rate is greater than or equal to a preset safety threshold, and can promptly avoid changes in ink properties due to a sudden temperature rise. This effectively addresses hardware malfunctions during heating, ensures the overall safety of the heating process, and reduces damage to ink and equipment caused by abnormal heating.

[0085] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4This is a basic structural block diagram of the computer device in this embodiment.

[0086] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41, 42, and 43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0087] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0088] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may also include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for ink viscosity adjustment methods. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.

[0089] In some embodiments, the processor 42 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, such as executing computer-readable instructions for the ink viscosity adjustment method.

[0090] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.

[0091] The computer device provided in this application determines the initial viscosity value of the ink by acquiring the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, thus directly sensing the actual viscosity state of the ink. Next, after acquiring the initial temperature value of the ink, it combines the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value to determine the ink's state deviation signal. This signal, combined with the actual temperature and viscosity values ​​and the target values, forms a corresponding state feedback, providing a basis for subsequent viscosity adjustment. Then, based on the state deviation signal, the heater is activated to heat the ink in the ink channel while simultaneously acquiring the current temperature and viscosity values ​​of the ink. This allows for timely initiation of heating adjustment actions based on the actual state deviation of the ink, while continuously monitoring changes in ink temperature and viscosity during heating, ensuring that heating adjustment always follows the actual state of the ink. Finally, the control command for the heater is determined based on the current temperature value, target temperature value, current viscosity value, and target viscosity value of the ink. The heater is turned off in time when a shutdown command is detected. Heating can be stopped when the temperature and viscosity of the ink reach the expected operating requirements, avoiding overheating that could cause abnormal ink viscosity. This keeps the ink viscosity within the range suitable for printer operation, reducing printer malfunctions caused by unsuitable ink viscosity, making the printer operation smoother, improving the overall operating efficiency of the printer, and achieving automatic adjustment of ink viscosity so that the printer can always maintain a high-efficiency operating state.

[0092] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the ink viscosity adjustment method described above.

[0093] The computer-readable storage medium provided in this application determines the initial viscosity value of the ink by acquiring the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, thus directly sensing the actual viscosity state of the ink. Secondly, after acquiring the initial temperature value of the ink, it combines the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value to determine the ink's state deviation signal. This signal, combined with the actual temperature and viscosity values ​​and the target values, forms a corresponding state feedback, providing a basis for subsequent viscosity adjustment. Then, based on the state deviation signal, the heater is activated to heat the ink in the ink channel while simultaneously acquiring the current temperature and viscosity values ​​of the ink. This allows for timely initiation of heating adjustment actions based on the actual state deviation of the ink, while continuously monitoring changes in ink temperature and viscosity during heating, ensuring that heating adjustment always follows the actual state of the ink. Finally, the control command for the heater is determined based on the current temperature value, target temperature value, current viscosity value, and target viscosity value of the ink. The heater is turned off in time when a shutdown command is detected. Heating can be stopped when the temperature and viscosity of the ink reach the expected operating requirements, avoiding overheating that could cause abnormal ink viscosity. This keeps the ink viscosity within the range suitable for printer operation, reducing printer malfunctions caused by unsuitable ink viscosity, making the printer operation smoother, improving the overall operating efficiency of the printer, and achieving automatic adjustment of ink viscosity so that the printer can always maintain a high-efficiency operating state.

[0094] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0095] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. An ink viscosity adjustment method, applied to a printer, characterized in that, The printer includes an ink pump, an ink channel, and a heater, comprising: The motor speed data of the ink pump and the flow rate data of the ink in the ink channel are obtained, and the initial viscosity value of the ink is determined based on the motor speed data and the flow rate data. The initial temperature value of the ink is obtained, and the state deviation signal of the ink is determined based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value. Based on the state deviation signal, the heater is activated to control the heater to heat the ink in the ink channel, and the current temperature and viscosity values ​​of the ink are obtained. Based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value, a control command for the heater is determined. When the control command is detected to be a shutdown command, the heater is shut down.

2. The ink viscosity adjustment method according to claim 1, characterized in that, Determining the initial viscosity value of the ink based on the motor speed data and the flow rate data includes: Based on the motor speed data, the mapping relationship between flow rate and viscosity is determined; Based on the mapping relationship, an initial viscosity value matching the flow rate data is determined.

3. The ink viscosity adjustment method according to claim 1, characterized in that, The step of determining the ink state deviation signal based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value includes: The temperature deviation value is determined based on the initial temperature value and the target temperature value; Based on the initial viscosity value and the target viscosity value, determine the viscosity deviation value; The temperature deviation value and the viscosity deviation value are converted to obtain simulated state data; The simulated state data is modulated to obtain the state deviation signal.

4. The ink viscosity adjustment method according to claim 1, characterized in that, The step of activating the heater based on the state deviation signal includes: The power parameters of the heater are determined based on the state deviation signal; Based on the power parameters, a heating command for the ink is generated; The heater is activated according to the heating command.

5. The ink viscosity adjustment method according to claim 1, characterized in that, The control commands include a shutdown command and a hold command. Determining the control commands for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value includes: Based on the target temperature value, determine the first threshold range; Based on the target viscosity value, determine the second threshold range; If the current temperature value is within the first threshold range and the target viscosity value is within the second threshold range, then a shutdown command for the heater is generated. If the current temperature value is not within the first threshold range, or the target viscosity value is not within the second threshold range, then a hold command for the heater is generated.

6. The ink viscosity adjustment method according to claim 1, characterized in that, The process of obtaining the initial temperature value of the ink includes: Every preset time interval, it is detected whether the initial viscosity value is within the third threshold range corresponding to the preset target viscosity value; When the initial viscosity value is not within the third threshold range, the initial temperature value of the ink is obtained.

7. The ink viscosity adjustment method according to any one of claims 1 to 6, characterized in that, After activating the heater based on the state deviation signal, controlling the heater to heat the ink in the ink channel, and obtaining the current temperature and viscosity values ​​of the ink, the method further includes: Monitor the rate of temperature rise of the ink; If the rate of increase is greater than or equal to a preset safety threshold, an emergency stop command is generated. The heater is shut down according to the emergency stop command.

8. An ink viscosity adjusting device, applied to a printer, characterized in that, The printer includes an ink pump, an ink channel, and a heater, comprising: The first determining module is used to acquire the motor speed data of the ink pump and the flow rate data of the ink in the ink channel, and determine the initial viscosity value of the ink based on the motor speed data and the flow rate data. The second determining module is used to obtain the initial temperature value of the ink, and determine the state deviation signal of the ink based on the initial viscosity value, the preset target viscosity value, the initial temperature value, and the preset target temperature value. The start-up module is used to start the heater according to the state deviation signal, control the heater to heat the ink in the ink channel, and obtain the current temperature value and current viscosity value of the ink. The control module is used to determine the control command for the heater based on the current temperature value, the target temperature value, the current viscosity value, and the target viscosity value, and to turn off the heater when the control command is detected to be a shutdown command.

9. A computer device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the ink viscosity adjustment method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the ink viscosity adjustment method as described in any one of claims 1 to 7.