A method and system for anti-counterfeiting identification of a consumable

CN117478385BActive Publication Date: 2026-08-21WUHAN JINGCHEN INTELLIGENT IDENTIFICATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311443264.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2026-08-21
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

另外,需要在生产环节提前将耗材识别性信息及验证答案写入芯片之中,或将验证答案提前确定并存储与云服务器之中,该加密防伪方式容易在以下两种情况下被破解:(1)在耗材识别性信息和验证答案被泄露时,上述防伪识别技术失效;(2)打印设备在与云服务器通信过程中,通信信号被非法拦截或篡改

Benefits of technology

[0032] (1) Through cross-verification by cloud servers, the efficiency and accuracy of anti-counterfeiting identification are greatly improved, making consumables less likely to be counterfeited or cracked by illegal manufacturers, with lower design and production costs, and achieving efficient and convenient anti-counterfeiting functions, which greatly improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117478385B_ABST
    Figure CN117478385B_ABST
Patent Text Reader

Abstract

The application discloses a kind of consumable anti-fake identification method and system.The method includes the following steps: S101, printing equipment reads n-bit consumable serial number X and sends to the first storage unit of cloud server after encryption, and the n-bit consumable serial number is converted m-bit sequence Z by calculation and sent to the second storage unit of cloud server after encryption;S102, cloud server reads the information of second storage unit and obtains m-bit sequence W as consumable verification code, and reads the information of the first storage unit of cloud server and obtains m-bit consumable to be verified sequence;S103, cloud server checks whether m-bit consumable verification code and m-bit consumable to be verified sequence are consistent, if not consistent, then verification fails, if consistent, then start code is sent to printing equipment after encryption;S104, printing equipment decrypts and identifies start code, and verifies the authenticity of start code, if not true, then verification fails, if true, then start printing work.The application has the advantages of not being easily counterfeited and cracked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of printing, and more specifically, relates to a method and system for anti-counterfeiting identification of consumables. Background Technology

[0002] With the increasing popularity and widespread use of portable smart printing devices, manufacturers in the industry mainly rely on the production and sales of consumables to obtain necessary profits. Therefore, a large number of unscrupulous manufacturers in the market counterfeit genuine consumables to gain unfair competitive profits, posing a serious challenge to the industry's competitive order. Furthermore, counterfeit consumables are difficult to integrate with genuine smart printing devices, easily causing damage and severely impacting the user experience.

[0003] In existing encryption anti-counterfeiting identification technologies, the main approach involves attaching a chip with genuine consumable identification information to the consumable roll during the consumable production process. During actual use of the printing equipment, the reader / writer on the printing equipment retrieves the identification information from the chip and verifies it to confirm whether the consumable is genuine. However, this requires writing the consumable identification information and verification answer into the chip beforehand during production, or pre-determining and storing the verification answer on a cloud server. This encryption anti-counterfeiting method is easily cracked in the following two situations: (1) when the consumable identification information and verification answer are leaked, the above anti-counterfeiting identification technology fails; (2) during communication between the printing equipment and the cloud server, the communication signal is illegally intercepted or tampered with. Summary of the Invention

[0004] In view of the above-mentioned defects or improvement needs of the existing technology, the present invention provides a method and system for anti-counterfeiting identification of consumables, which has the advantage of being difficult to counterfeit and crack.

[0005] To achieve the above objectives, according to a first aspect of the present invention, a method for anti-counterfeiting identification of consumables is provided, comprising the steps of:

[0006] S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server.

[0007] S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code; the cloud server reads the information of the first storage unit and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence.

[0008] S103, the cloud server checks whether the m-digit consumable verification code is consistent with the m-digit consumable to be verified sequence. If they are inconsistent, the verification fails. If they are consistent, the cloud server encrypts the start code and sends it to the printing device.

[0009] S104, after receiving the information sent by the cloud server, the printing device decrypts it to obtain the startup code and verifies its authenticity. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing process begins.

[0010] Furthermore, the consumable serial number is encrypted text containing consumable identification information and the number of printable sheets u of the consumable;

[0011] The printing device includes a printout number storage unit, which is used to record the printout number k. Each time step S101 is executed, the printout number k is initialized to 0.

[0012] The cloud server includes a printable number storage unit, which is used to store the current printable number j. When executing step S102, the cloud server identifies the printable number u of the consumable from the decrypted n-bit consumable serial number X, and initializes the current printable number j to u.

[0013] In step S103, the activation code includes the number of printable sheets v. Each time the cloud server generates the activation code, it updates the current number of printable sheets j by subtracting v from the current number of printable sheets j.

[0014] In step S104, each time the printing device receives and decrypts the verification start code, it reads the number of printable sheets v contained in the start code and assigns the number of printable sheets v to the number of sheets to be printed k. After the printing work starts, the number of sheets to be printed k is decremented by 1 for each label printed. When k = 0, printing stops and returns to step S101.

[0015] Furthermore, in step S103, before generating the startup code, the current printable number of pages j is read. If the current printable number of pages j is 0, the printable number of pages v is set to 0, and the user is prompted to replace the original consumables.

[0016] Furthermore, the printing device is also provided with a counting unit, which is used to record the number of times step S101 is executed after the installation or replacement of consumables.

[0017] Furthermore, when h reaches a preset value, the printing device stops working and prompts the user to replace the consumables. After the user replaces the consumables, h is initialized to 0.

[0018] Furthermore, the preset value is 4.

[0019] Furthermore, the number of printable sheets u, the current number of printable sheets j, and the number of printable sheets v are all numbers represented in g-digit decimal.

[0020] Furthermore, in step S103, the startup code generated by the cloud server includes a consumable serial number, an activation code, a random code, and a server serial number.

[0021] Further, step S104 includes the following sub-steps:

[0022] S1041, the printing device checks whether the decrypted and identified start code conforms to the predetermined format order. If they do not conform, the verification fails. If they do conform, S1042 is executed.

[0023] S1042, check whether the consumable serial number in the decrypted startup code is consistent with the consumable serial number information read by the printing device. If they are inconsistent, the verification fails; if they are consistent, proceed to the next step.

[0024] S1043, check whether the decrypted and identified startup code contains the server serial number. If it does not contain it, the verification fails. If it does contain it, use the preset verification algorithm to calculate the verification result sequence A of the server serial number in the decrypted and identified startup code, and check whether the verification result sequence A conforms to the preset format. If they do not conform, the verification fails. If they conform, execute S1044.

[0025] S1044, check whether the verification result sequence A and the random code in the decrypted and recognized start code satisfy the preset functional relationship. If they do not match, the verification fails; if they match, the printing process begins.

[0026] According to a second aspect of the present invention, a consumable anti-counterfeiting identification system is provided, comprising consumables, a printing device, and a cloud server. The consumables are provided with a storage unit for storing an n-digit consumable serial number X. The printing device includes a storage unit for the number of sheets to be printed and a counting unit. The cloud server is provided with a first storage unit, a second storage unit, and a printable sheet storage unit. The system is used to implement the following steps:

[0027] S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server.

[0028] S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code. The cloud server reads the information of the first storage unit and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence.

[0029] S103, the cloud server checks whether the m-digit consumable verification code is consistent with the m-digit consumable to be verified sequence. If they are inconsistent, the verification fails. If they are consistent, the cloud server encrypts the start code and sends it to the printing device.

[0030] S104, after receiving the information sent by the cloud server, the printing device decrypts and obtains the startup code, and verifies the authenticity of the startup code. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing operation begins.

[0031] Overall, the technical solutions conceived in this invention have beneficial effects compared with the prior art:

[0032] (1) Through cross-verification by cloud servers, the efficiency and accuracy of anti-counterfeiting identification are greatly improved, making consumables less likely to be counterfeited or cracked by illegal manufacturers, with lower design and production costs, and achieving efficient and convenient anti-counterfeiting functions, which greatly improves the user experience.

[0033] (2) By introducing the number of printable pages u, the number of pages to be printed k, and the number of pages granted v, S101 needs to be executed repeatedly after each v pages are printed, and the subsequent verification process is repeated. Once the verification is passed, authorization is granted again, which can effectively prevent illegal merchants from illegally obtaining the serial number of genuine consumables and printing in unlimited quantities.

[0034] (3) No need to redesign or adjust the internal structure of the printing equipment, resulting in low production costs.

[0035] (4) If the cloud server information is intercepted or tampered with, the printing device can identify and stop working. Attached Figure Description

[0036] Figure 1 This is a flowchart of the anti-counterfeiting identification method for consumables according to an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of the anti-counterfeiting identification system for consumables according to an embodiment of the present invention. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0039] In the description of the embodiments of this application, 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 indicated technical features. Thus, a feature defined with "first" and "second" may explicitly or implicitly include at least one of that feature.

[0040] In this embodiment of the invention, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, apparatus, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such process, method, product or device.

[0041] The naming or numbering of steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical order indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effect can be achieved.

[0042] 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 the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0043] This invention provides a method and system for anti-counterfeiting identification of consumables, which will be described below.

[0044] like Figure 1 As shown, an embodiment of the present invention provides a method for anti-counterfeiting identification of consumables, comprising the following steps:

[0045] S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server.

[0046] The n-digit consumable serial number X is a string used to distinguish consumables.

[0047] The method for obtaining the n-digit consumable serial number X can be any feasible method.

[0048] In one embodiment, an RFID tag is attached to the consumable, and an n-bit consumable serial number X is stored in the RFID tag. The n-bit consumable serial number X is obtained by reading the RFID tag. If the RFID tag is a passive tag, the reader in the printer control module emits a radio frequency signal, and the RFID tag outputs the n-bit consumable serial number X to the printer based on the sensed current. If the RFID tag is an active tag, the RFID tag actively outputs the n-bit consumable serial number X to the printer at a specific frequency.

[0049] In another embodiment, a QR code containing an n-digit consumable serial number X is printed on the consumable. The user obtains the n-digit consumable serial number X by scanning the QR code.

[0050] n and m are preset values. In one embodiment, n is 16 and m is 32.

[0051] The transposition algorithm can be any feasible method, such as a number system conversion algorithm.

[0052] The first verification algorithm can be any pre-defined verification algorithm. Let the first verification algorithm be denoted as f1, then f1(Y) = Z.

[0053] After S101 is completed, the first storage unit of the cloud server stores the ciphertext of the n-bit consumable serial number X, and the second storage unit of the cloud server stores the ciphertext of the m-bit serial number Z.

[0054] S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code; the cloud server reads the information of the first storage unit of the cloud server and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence.

[0055] The cloud server calculates an m-bit sequence W based on the ciphertext of the m-bit sequence number Z stored in the second storage unit, which serves as the consumable verification code. Let the first verification algorithm be denoted as f2, then f2(Z) = f2(f1(Y)) = W.

[0056] The cloud server calculates an m-bit consumable serial number to be verified based on the ciphertext of the n-bit consumable serial number X stored in the first storage unit. If the first verification algorithm is denoted as f3, then the m-bit consumable serial number to be verified is f3(X).

[0057] S103, the cloud server checks whether the m-digit consumable verification code matches the m-digit consumable sequence to be verified. If they do not match, the verification fails. If they match, the cloud server encrypts the startup code and sends it to the printing device.

[0058] The cloud server checks whether f2(f1(Y)) is equal to f3(X). If they are not equal, the verification fails, indicating that the consumable is not genuine. If they are equal, the cloud server reads the startup code.

[0059] To further increase the difficulty of cracking the code, and also to avoid interception and tampering during data transmission, this embodiment of the invention also requires that the startup code be encrypted before being sent to the printing device control module.

[0060] S104, after receiving the information sent by the cloud server, the printing device decrypts and obtains the startup code, and verifies the authenticity of the startup code. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing operation begins.

[0061] After the activation code is decrypted, its authenticity also needs to be verified to prevent interception and tampering during data transmission. If the authenticity verification fails, the verification will fail; if the authenticity verification passes, the printing device will begin printing.

[0062] Furthermore, the consumable serial number is encrypted text containing consumable identification information and the number of pages the consumable can print, u. The consumable identification information may specifically include information such as the printer ID and the printer production batch. The number of pages the consumable can print, u, is the total number of pages the consumable can print.

[0063] The printing device includes a printout number storage unit, which records the printout number k. Each time step S101 is executed, the printout number k is initialized to 0.

[0064] The cloud server includes a printable sheet count storage unit, which stores the current printable sheet count j. During step S102, the cloud server identifies the printable sheet count u from the decrypted n-digit consumable serial number X and initializes the current printable sheet count j to u. That is, each time a user updates a new roll of consumables, j = u when step S102 is executed for the first time.

[0065] In step S103, the activation code includes the number of printable sheets v. Each time the cloud server generates the activation code, it updates the current number of printable sheets j by subtracting v from the current number of printable sheets j.

[0066] When step S102 is executed for the first time, j = uv; when step S102 is executed for the second time, j = u - 2v, and so on.

[0067] In step S104, each time the printing device receives and decrypts the verification start code, it reads the authorized print count v contained in the start code and assigns the authorized print count v to the print count k. After the printing starts, the print count k is decremented by 1 for each label printed. When k = 0, printing stops and the process returns to step S101.

[0068] That is, each time the printing device receives the verification start code, k = v. When v labels have been printed, k = 0, printing stops and returns to step S101.

[0069] In this embodiment, the number of printable sheets u, the number of sheets to be printed k, and the number of sheets authorized to be printed v are introduced. After printing v sheets each time, S101 needs to be executed again to repeat the subsequent verification process. Only after the verification is passed and authorization is granted again can printing continue.

[0070] The above methods can effectively prevent unscrupulous merchants from illegally obtaining the serial numbers of genuine consumables and then printing them in unlimited quantities.

[0071] Furthermore, before generating the activation code, the current printable number of pages j is read. If the current printable number of pages j is 0, the printable number v is granted to 0, and the user is prompted to replace the consumables with genuine ones. If the current printable number of pages j is 0, it means that the consumables have been exhausted, and authorization cannot continue, so the user needs to be prompted to replace the consumables with genuine ones.

[0072] Furthermore, the printing device is also provided with a counting unit, which is used to record the number of times step S101 is executed after the installation or replacement of consumables.

[0073] Furthermore, when h reaches a preset value, the printing device stops working and prompts the user to replace the consumables. After the user replaces the consumables, h is initialized to 0.

[0074] This prevents users from granting unlimited authorizations.

[0075] Furthermore, the preset value is 4. That is, after step S101 is executed 4 times, the printing device stops working and prompts the user to replace the consumables.

[0076] Furthermore, the number of printable sheets u, the current number of printable sheets j, and the number of printable sheets v are all numbers represented in g-digit decimal.

[0077] Furthermore, in step S103, the startup code generated by the cloud server includes a consumable serial number, an activation code, a random code, and a server serial number. However, the startup code does not necessarily have to be arranged in the order of consumable serial number, activation code, random code, and server serial number; the order can be adjusted or other formats can be used, as long as it is composed according to a preset format.

[0078] That is, the n-digit consumable serial number X is decrypted and identified from the first storage unit of the cloud server, and a startup code is generated based on the n-digit consumable serial number X.

[0079] An activation code is used to activate the printing function in a printing device.

[0080] The random code is a randomly generated string.

[0081] A server serial number is a string used to distinguish servers and can include information such as server ID and consumable production batch.

[0082] Further, step S104 includes the following sub-steps:

[0083] S1041, the printing device checks whether the decrypted and identified start code conforms to the predetermined format order, that is, whether it is consistent with the preset format during composition. If it is inconsistent, the verification fails; if it is consistent, S1042 is executed.

[0084] S1042, check whether the consumable serial number in the decrypted startup code matches the consumable serial number information read by the printing device; if they do not match, the verification fails; if they match, proceed to the next step.

[0085] For genuine consumables and genuine servers, the consumable serial number in the startup code is generated based on the consumable serial number read by the printing device, and the two should be consistent. Therefore, the authenticity can be determined by checking whether the two are consistent.

[0086] S1043, check whether the decrypted and identified startup code contains the server serial number. If it does not contain it, the verification fails. If it does contain it, use the preset verification algorithm to obtain the verification result sequence A for the server serial number in the decrypted and identified startup code, and check whether the verification result sequence A conforms to the preset format. If they do not conform, the verification fails. If they conform, execute S1044.

[0087] The server serial number corresponding to the server with startup code sending authority must meet certain requirements. Specifically, a preset verification algorithm is used to calculate the verification result sequence A, and the verification result sequence A is verified to ensure it conforms to a preset format. If the server serial number does not meet this requirement, it is possible that a server without startup code sending authority has forged and generated the startup code, thus the verification fails. If the server serial number meets the requirement, then proceed to step S1044.

[0088] S1044, check whether the verification result sequence A and the random code in the decrypted and recognized start code satisfy the preset functional relationship. If they do not match, the verification fails; if they match, the printing process begins.

[0089] The verification result sequence A corresponding to the server serial number and the random code must satisfy a preset verifiable relationship. If this relationship is not satisfied, it is possible that a server without the authority to send the startup code has forged and generated the startup code, thus the verification fails. If the relationship is satisfied, the verification passes.

[0090] An anti-counterfeiting identification system for consumables according to an embodiment of the present invention includes consumables, a printing device, and a cloud server. The consumables are provided with a storage unit for storing an n-digit consumable serial number X. The printing device includes a storage unit for the number of sheets to be printed and a counting unit. The cloud server is provided with a first storage unit, a second storage unit, and a printable sheet storage unit. The system includes the following steps:

[0091] S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server.

[0092] S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code. The cloud server reads the information of the first storage unit and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence.

[0093] S103, the cloud server checks whether the m-digit consumable verification code is consistent with the m-digit consumable to be verified sequence. If they are inconsistent, the verification fails. If they are consistent, the cloud server encrypts the start code and sends it to the printing device.

[0094] S104, after receiving the information sent by the cloud server, the printing device decrypts and obtains the startup code, and verifies the authenticity of the startup code. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing operation begins.

[0095] The working principle and technical effects of the system are the same as those of the methods described above, and will not be repeated here.

[0096] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for anti-counterfeiting identification of consumables, characterized in that, Including the following steps: S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server. S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code; the cloud server reads the information of the first storage unit and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence. S103, the cloud server checks whether the m-digit consumable verification code is consistent with the m-digit consumable to be verified sequence. If they are inconsistent, the verification fails. If they are consistent, the cloud server encrypts the start code and sends it to the printing device. S104, after receiving the information sent by the cloud server, the printing device decrypts it to obtain the startup code and verifies its authenticity. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing process begins.

2. The anti-counterfeiting identification method for consumables as described in claim 1, characterized in that, The consumable serial number is an encrypted message containing consumable identification information and the number of printable sheets u of the consumable; The printing device includes a printout number storage unit, which is used to record the printout number k. Each time step S101 is executed, the printout number k is initialized to 0. The cloud server includes a printable number storage unit, which is used to store the current printable number j. When executing step S102, the cloud server identifies the printable number u of the consumable from the decrypted n-bit consumable serial number X, and initializes the current printable number j to u. In step S103, the activation code includes the number of printable sheets v. Each time the cloud server generates the activation code, it updates the current number of printable sheets j by subtracting v from the current number of printable sheets j. In step S104, each time the printing device receives and decrypts the verification start code, it reads the number of printable sheets v contained in the start code and assigns the number of printable sheets v to the number of sheets to be printed k. After the printing work starts, the number of sheets to be printed k is decremented by 1 for each label printed. When k = 0, printing stops and returns to step S101.

3. The anti-counterfeiting identification method for consumables as described in claim 2, characterized in that, In step S103, before generating the startup code, the current printable number of pages j is read. If the current printable number of pages j is 0, the printable number of pages v is set to 0, and the user is prompted to replace the original consumables.

4. The anti-counterfeiting identification method for consumables as described in claim 2, characterized in that, The printing device is also equipped with a counting unit, which is used to record the number of times step S101 is executed after the installation or replacement of consumables.

5. The anti-counterfeiting identification method for consumables as described in claim 4, characterized in that, When h reaches the preset value, the printing device stops working and prompts the user to replace the consumables. After the user replaces the consumables, h is initialized to 0.

6. The anti-counterfeiting identification method for consumables as described in claim 5, characterized in that, The preset value is 4.

7. The anti-counterfeiting identification method for consumables as described in claim 2, characterized in that, The number of printable sheets u, the current number of printable sheets j, and the number of printable sheets v are all represented in g-digit decimal.

8. The anti-counterfeiting identification method for consumables as described in claim 1, characterized in that, In step S103, the startup code generated by the cloud server includes a consumable serial number, an activation code, a random code, and a server serial number.

9. The anti-counterfeiting identification method for consumables as described in claim 8, characterized in that, Step S104 includes the following sub-steps: S1041, the printing device checks whether the decrypted and identified start code conforms to the predetermined format order. If they do not conform, the verification fails. If they do conform, S1042 is executed. S1042, check whether the consumable serial number in the decrypted startup code is consistent with the consumable serial number information read by the printing device. If they are inconsistent, the verification fails; if they are consistent, proceed to the next step. S1043, check whether the decrypted and identified startup code contains the server serial number. If it does not contain it, the verification fails. If it does contain it, use the preset verification algorithm to calculate the verification result sequence A of the server serial number in the decrypted and identified startup code, and check whether the verification result sequence A conforms to the preset format. If they do not conform, the verification fails. If they conform, execute S1044. S1044, check whether the verification result sequence A and the random code in the decrypted and recognized start code satisfy the preset functional relationship. If they do not match, the verification fails; if they match, the printing process begins.

10. A consumable anti-counterfeiting identification system, characterized in that, The system includes consumables, printing equipment, and a cloud server. The consumables are equipped with a storage unit for storing an n-digit consumable serial number X. The printing equipment includes a storage unit for the number of pages to be printed and a counting unit. The cloud server has a first storage unit, a second storage unit, and a printable page storage unit. The system is used to implement the following steps: S101, the printing device reads the n-bit consumable serial number X and encrypts the n-bit consumable serial number X before sending it to the first storage unit of the cloud server. The printing device also uses a transposition algorithm to convert the n-bit consumable serial number into an m-bit serial number Y, uses a first verification algorithm to convert the m-bit serial number Y into an m-bit sequence Z, and encrypts the m-bit sequence Z before sending it to the second storage unit of the cloud server. S102, the cloud server reads the information of the second storage unit and decrypts it to obtain an m-bit sequence Z, and uses a second verification algorithm to convert the m-bit sequence Z into an m-bit sequence W, and uses the m-bit sequence W as the consumable verification code. The cloud server reads the information of the first storage unit and decrypts it to obtain an n-bit consumable serial number X, and uses a third verification algorithm to convert the n-bit consumable serial number X into an m-bit consumable to be verified sequence. S103, the cloud server checks whether the m-digit consumable verification code is consistent with the m-digit consumable to be verified sequence. If they are inconsistent, the verification fails. If they are consistent, the cloud server encrypts the start code and sends it to the printing device. S104, after receiving the information sent by the cloud server, the printing device decrypts and obtains the startup code, and verifies the authenticity of the startup code. If the startup code is not genuine, the verification fails; if the startup code is genuine, the printing operation begins.

Citation Information

Patent Citations

  • Method and system for verifying authenticity of thermal transfer ribbon cartridge on thermal transfer printing device

    CN106485292A

  • Consumable anti-counterfeiting printing method and system

    CN112748890A