A method, system, computer program product, and storage medium for starting a printing device based on a boot chip.
By extracting and calculating firmware status variable values from the printing device, a command is sent to the boot chip to activate the printing device, thus solving the ink cartridge chip compatibility problem, improving ink cartridge utilization, and reducing waste.
Patent Information
- Application Number
- CN202510629800.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, ink cartridge chips are incompatible with printers, resulting in low ink cartridge utilization, significant ink waste, and the inability to recognize ink cartridges when ink levels are low.
By extracting the first and second firmware status variable values of the printing device and performing logical operations, a query command is sent to the boot chip and the status variable values are updated. The printing device is then activated based on the response from the boot chip.
It improves the utilization rate of ink cartridges, reduces ink cartridge waste, lowers usage costs, and solves the problem of ink cartridges not being recognized when ink levels are low.
Smart Images

Figure CN123114559A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for starting a printing device based on a boot chip, and more specifically, to a method, system, computer program product, and storage medium for starting a printing device based on a boot chip. Background Technology
[0002] With the continuous upgrading of ink cartridge chips, higher requirements are placed on the compatibility of printer chips.
[0003] Users often face the problem that even with a printer and ink cartridges in good working order, the printer may fail to correctly recognize the cartridge chip; or, when ink levels are low, the original cartridge chip may fail to print due to verification failure. This results in low cartridge utilization, high cost depletion, and easy ink waste.
[0004] To address the aforementioned issues, a method, apparatus, consumable chip, and printer for controlling the operation of consumable chips are proposed. Summary of the Invention
[0005] The purpose of this invention is to provide a method for starting a printing device based on a boot chip, in order to solve the problems mentioned in the background art, including:
[0006] Extract the value of the first firmware status variable stored in the first storage area of the printing device;
[0007] Extract the value of the second firmware status variable stored in the second storage area of the printing device;
[0008] Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value;
[0009] If the result of the logical operation is 0, a query command is sent to the boot chip, and the value of the second firmware status variable is updated after receiving the response from the boot chip;
[0010] Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value;
[0011] If the result of the logical operation is 1, start the printing device.
[0012] Furthermore, upon receiving the response from the boot chip, the second firmware status variable value is updated according to the content of the boot chip's response data packet.
[0013] Preferably, the initial value of the first firmware state variable in the first storage area is 1.
[0014] Preferably, the initial value of the second firmware state variable in the second storage area is 0.
[0015] Preferably, the first firmware state variable in the first storage area is located in the EEPROM storage area of the printing device, and the second firmware state variable in the second storage area is located in the RAM storage area of the printing device.
[0016] Furthermore, the query command includes obtaining the factory parameter values of the boot chip.
[0017] Preferably, the factory parameter values are located in the OTP memory area of the boot chip.
[0018] On the other hand, the present invention provides a system for starting a printing device based on a boot chip, the system comprising:
[0019] A printing device includes a memory for storing a computer program, a first firmware state variable value, and a second firmware state variable value; the memory also includes a processor for executing the computer program to implement the steps of the method described above.
[0020] The boot chip includes an OTP memory area, which stores the factory parameter values of the boot chip.
[0021] On the other hand, the present invention provides a computer program product, including a computer program, wherein the computer program or instructions, when executed by a printing device processor, implement the steps of the above-described method.
[0022] On the other hand, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a printing device processor, implements the steps of the above-described method.
[0023] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0024] 1. It solved the problem of incompatibility between consumable chips and printing equipment, thus improving the effective utilization rate of consumables;
[0025] 2. This solves the problem that the consumable chip cannot be recognized by the printing device when the consumable is low, thus reducing the waste of consumables;
[0026] 3. Once activated by the boot chip, chipless printing is achieved. After that, there is no need to worry about replacing consumable chips due to printer firmware upgrades, which greatly reduces the cost of use. Attached Figure Description
[0027] Figure 1 A flowchart illustrating a method for starting a printing device based on a boot chip, provided by an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of a system for starting a printing device based on a boot chip, provided in an embodiment of the present invention;
[0029] Figure 3 This is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation
[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0031] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0032] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0033] Example 1
[0034] Please see Figure 1 The purpose of this embodiment is to provide a method for starting a printing device based on a boot chip, including:
[0035] Extract the value of the first firmware status variable stored in the first storage area of the printing device;
[0036] Extract the value of the second firmware status variable stored in the second storage area of the printing device;
[0037] Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value;
[0038] If the result of the logical operation is 0, a query command is sent to the boot chip, and the value of the second firmware status variable is updated after receiving the response from the boot chip;
[0039] Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value;
[0040] If the result of the logical operation is 1, start the printing device.
[0041] The printing device's storage area includes volatile random access memory (RAM) and non-volatile random access memory (RAM). The first storage area is located in the non-volatile RAM; the second storage area is located in the volatile RAM. The first firmware status variable value is stored in the first storage area, and the second firmware status variable value is stored in the second storage area. The first firmware status variable is `networkInitStatus`; the second firmware status variable is `readyFlag`. When the result of the logical AND operation between the values of the status variable `networkInitStatus` and the status variable `readyFlag` is 1, and the verification variable `firmwareIntegrityStatus` is 0, the printing device enters the print-ready state and can perform corresponding printing operations according to user instructions. The value of the variable `firmwareIntegrityStatus` represents the firmware status verification result; a value of 0 indicates that the firmware status verification passed; a value of 1 indicates that it failed.
[0042] Furthermore, the initial value of the first firmware status variable networkInitStatus is 1; the initial value of the second firmware status variable readyFlag is 0; and the verification variable firmwareIntegrityStatus is stored in the EEPROM storage area of the printing device.
[0043] Furthermore, by modifying the electrical parameters of the word line circuit in the printer's storage area using a specially designed microcontroller, the printer can be re-flashed. Specifically, by modifying the capacitance parameter value of the word line circuit in the EEPROM storage area, the value of the verification variable firmwareIntegrityStatus can be set to 0.
[0044] Example 2
[0045] Please see Figure 2 The purpose of this embodiment is to provide a system for starting a printing device based on a boot chip, comprising:
[0046] The printing device 100 includes a memory 101 and a processor 102.
[0047] The memory 101 of the printing device includes a first storage area and a second storage area for storing computer programs, first firmware status variable values and second firmware status variable values.
[0048] The processor 102 of the printing device is used to extract the values of the first firmware status variable and the second firmware status variable, as well as to collect and compare the data of the boot chip when executing the computer program.
[0049] The boot chip 200 includes an OTP storage area 201, which stores the factory parameter values of the boot chip.
[0050] Furthermore, the memory 101 of the printing device includes volatile memory, and the processor 102 of the printing device is used to extract the value of the first firmware status variable networkInitStatus and the value of the second firmware status variable readyFlag, and temporarily store the extracted values in the volatile memory. The processor 102 of the printing device is also used to receive a response data packet from the boot chip 200, the response data including the factory parameter values of the boot chip 200, the factory parameter values of the boot chip being located in the OTP storage area 201 of the boot chip 200.
[0051] Specifically, the OTP storage area 201 is a one-time programmable storage area, and the factory parameter values of the boot chip 200 include the chip's unique ID, serial number, security key, encryption certificate, activation code factory calibration value, hardware function configuration words, etc.
[0052] Example 3
[0053] Please see Figure 3 The purpose of this embodiment is to provide a schematic diagram of the structure of a computer-readable storage medium according to the present invention.
[0054] The computer-readable storage medium 10 stores a computer program 11. When the computer program 11 is executed by the processor, it extracts the value of the first firmware status variable networkInitStatus and the value of the second firmware status variable readyFlag of the printing device and temporarily stores the extracted values in the volatile memory. When the computer program 11 is executed by the processor, it also includes receiving a response data packet from the boot chip. The response data packet contains a start bit, a command word, a data length, a data area, a check bit, and a stop bit. The data area of the response data packet includes the factory parameter values of the boot chip, which include the boot chip's unique ID, serial number, security key, encryption certificate, activation code factory calibration value, hardware function configuration words, etc.
[0055] The response data also includes a response field. The content of the response field is generated using a reverse CRC encryption authentication algorithm based on the security key of the query command of the printing device. When the computer program 11 of the printing device is executed, it determines whether the protocol format is the same as the protocol format of the query command based on the content of the response field. If they are the same, the second firmware status variable readyFlag is set to 1, i.e., ready to print.
[0056] Furthermore, when the computer program 11 of the printing device is executed, it detects the value of the firmware status verification variable firmwareIntegrityStatus. When the value is 1, the printer is in developer mode. At this time, when the value of the first firmware status variable networkInitStatus and the value of the second firmware status variable readyFlag are both 1, the handshake conditions for establishing legal communication between the printing device and the consumable chip are met. At this time, the user can perform the corresponding printing operation as needed.
[0057] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for starting a printing device based on a boot chip, characterized in that, Extract the value of the first firmware status variable stored in the first storage area of the printing device; Extract the value of the second firmware status variable stored in the second storage area of the printing device; Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value; If the result of the logical operation is 0, a query command is sent to the boot chip, and the value of the second firmware status variable is updated after receiving the response from the boot chip; Perform a bitwise AND operation on the first firmware status variable value and the second firmware status variable value; If the result of the logical operation is 1, start the printing device.
2. The method according to claim 1, characterized in that, Upon receiving the response from the boot chip, the second firmware status variable value is updated based on the content of the boot chip's response data packet.
3. The method according to claim 1, characterized in that, The initial value of the first firmware state variable in the first storage area is 1; the initial value of the second firmware state variable in the second storage area is 0.
4. The method according to claim 1, characterized in that, The first firmware status variable in the first storage area is located in the RAM storage area of the printing device, and the second firmware status variable in the second storage area is located in the EEPROM storage area of the printing device.
5. The method according to claim 1, characterized in that, The query command includes obtaining the factory parameter values of the boot chip.
6. The method according to claim 5, characterized in that, The factory parameter values are located in the OTP memory area of the boot chip.
7. A system for starting a printing device based on a boot chip, characterized in that, include: A printing device, including a memory of the printing device, the memory of the printing device including a first storage area and a second storage area for storing a computer program, a first firmware status variable value and a second firmware status variable value; The processor of the printing device is configured to implement the steps of the method as described in any one of claims 1 to 6 when executing the computer program; The boot chip includes an OTP memory area, which contains the factory parameter values of the boot chip.
8. A computer program product, comprising a computer program, characterized in that, When the computer program or instructions are executed by the processor of the printing device, they implement the steps of the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a printing device processor, implements the steps of the method as described in any one of claims 1 to 6.
