Consumable chip identification method and device, chip, equipment and storage medium

By sending a preset level signal between the image forming device and the consumable chip and determining the target pulse sequence, the problem of long recognition time of the consumable chip is solved, and rapid recognition and efficiency improvement are achieved.

CN121246416APending Publication Date: 2026-01-02GUANGZHOU ZHONO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511618741.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-06
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In existing technologies, image forming equipment takes a long time to identify consumable chips, has low processing efficiency, and requires waiting for the establishment of an encrypted communication channel.

Method used

After detecting a preset level signal sent by the image forming device, timing is started, and the target pulse sequence information is determined based on the stored consumable attribute information and preset sequence mapping relationship. The target pulse sequence is then sent to the image forming device or consumable chip to achieve rapid identification.

Benefits of technology

There is no need to wait for the establishment of an encrypted communication channel; the identification of consumable chips can be completed quickly, reducing identification time and improving identification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121246416A_ABST
    Figure CN121246416A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a consumable chip identification method and device, a chip, equipment and a storage medium, and the method comprises the steps: starting timing under the condition that a preset level signal sent by image forming equipment is detected, and querying the stored preset sending time; determining target pulse sequence information based on the stored consumable attribute information and a preset sequence mapping relation; and when the timing time reaches the preset sending time, sending a target pulse sequence corresponding to the target pulse sequence information to the image forming equipment, so that the image forming equipment identifies the consumable chip based on the target pulse sequence to obtain an identification result, and feeds back the identification result. According to the scheme, the consumable chip can be quickly identified without waiting for establishment of an encrypted communication channel, the identification time consumption is reduced, and the identification efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, chip, device, and storage medium for identifying consumable chips. Background Technology

[0002] With the profound advancement of digital technology, image forming equipment in the printing field has been widely applied in scenarios such as office automation, industrial production, commercial services, and educational services. Image forming equipment encompasses printing devices, and various printing consumables compatible with these devices have also become ubiquitous, such as ink cartridges, toner cartridges, and ribbons. These printing consumables all contain built-in chips that communicate with the printing device to ensure the legality and availability of the consumables. The image forming device needs to communicate with the installed consumable chip to determine, based on the communication results, whether there is a shortage or incorrect installation of consumables.

[0003] However, in related technologies, before the image forming device and the consumable chip can establish data communication, an encrypted communication channel needs to be built first, and then the correctness of the consumable chip needs to be verified. Because building the encrypted communication channel requires multiple communication cycles, the aforementioned method results in a long time to identify the consumable chip and low identification efficiency. Summary of the Invention

[0004] This application provides a consumable chip identification method, apparatus, chip, device, and storage medium, which solves the problems of long identification time and low processing efficiency of image forming equipment in related technologies. It can quickly complete the identification of consumable chips without waiting for the establishment of encrypted communication channels, thereby reducing identification time and improving identification efficiency.

[0005] In a first aspect, embodiments of this application provide a method for identifying consumable chips, applied to consumable chips, the method comprising: Upon detecting a preset level signal sent by the image forming device, a timer is started, and the stored preset transmission time is queried; The target pulse sequence information is determined based on the stored consumable attribute information and the preset sequence mapping relationship; When the preset transmission time is reached, the target pulse sequence corresponding to the target pulse sequence information is sent to the image forming device, so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain the identification result, and feed back the identification result.

[0006] Secondly, embodiments of this application provide a consumable chip identification method, applied to an image forming device, the method comprising: A preset level signal is sent to the consumable chip to cause the consumable chip to send a target pulse sequence; Upon receiving the target pulse sequence, the consumable chip is identified based on the target pulse sequence information corresponding to the target pulse sequence to obtain an identification result; The system feeds back the identification result to the consumable chip, and establishes a communication connection with the consumable chip if the identification result includes a successful identification message.

[0007] Thirdly, embodiments of this application also provide a consumable chip identification device, comprising: The initial timing module is configured to start timing and query the stored preset transmission time when a preset level signal is detected from the image forming device. The sequence information determination module is configured to determine the target pulse sequence information based on the stored consumable attribute information and the preset sequence mapping relationship; The consumable chip identification module is configured to send a target pulse sequence corresponding to the target pulse sequence information to the image forming device when the timing time reaches the preset sending time, so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain an identification result, and feed back the identification result.

[0008] Fourthly, embodiments of this application also provide a consumable chip identification device, comprising: The level signal transmitting module is configured to send a preset level signal to the consumable chip so that the consumable chip sends a target pulse sequence; The consumable chip identification module is configured to, upon receiving the target pulse sequence, identify the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence to obtain an identification result; The recognition result processing module is configured to feed back the recognition result to the consumable chip, and to establish a communication connection with the consumable chip if the recognition result includes recognition success information.

[0009] Fifthly, embodiments of this application also provide a consumable chip, which includes: One or more processors; Storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the consumable chip identification method described in the embodiments of this application.

[0010] Sixthly, embodiments of this application also provide an image forming apparatus, the image forming apparatus comprising: One or more processors; Storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the consumable chip identification method described in the embodiments of this application.

[0011] In a seventh aspect, embodiments of this application also provide a non-volatile storage medium for storing computer-executable instructions, which, when executed by a computer processor, are configured to perform the consumable chip identification method described in embodiments of this application.

[0012] In this embodiment, by initiating timing upon detecting a preset level signal sent by the image forming device and querying the stored preset transmission time, a benchmark can be provided for subsequent timing control. By determining the target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, the target pulse sequence information corresponding to the consumable can be accurately generated, providing a basis for the image forming device to identify the consumable chip. By sending the target pulse sequence corresponding to the target pulse sequence information to the image forming device when the timing reaches the preset transmission time, the attribute information related to the consumable chip can be accurately transmitted, facilitating rapid consumable chip identification by the image forming device. The above scheme can quickly complete the identification of the consumable chip without waiting for the establishment of an encrypted communication channel, reducing identification time and improving identification efficiency. Attached Figure Description

[0013] Figure 1 A flowchart illustrating a consumable chip identification method applied to consumable chips, provided as an embodiment of this application; Figure 2 A flowchart illustrating a process for determining target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, provided in an embodiment of this application; Figure 3 A flowchart illustrating another process for determining target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, provided in an embodiment of this application; Figure 4 A flowchart illustrating a process for determining second pulse sequence information based on consumable parameter information and a third sequence mapping relationship, provided in this application embodiment; Figure 5 A flowchart illustrating a method for identifying consumable chips in an image forming apparatus, as provided in this application embodiment; Figure 6 A flowchart illustrating a process for identifying a consumable chip and obtaining an identification result, provided in an embodiment of this application; Figure 7 A flowchart illustrating another process for identifying a consumable chip and obtaining an identification result, provided as an embodiment of this application. Figure 8A flowchart illustrating a process for parsing second pulse sequence information to obtain consumable parameter information is provided in this application embodiment; Figure 9 A structural block diagram of a consumable chip identification device provided in an embodiment of this application; Figure 10 A structural block diagram of another consumable chip identification device provided in this application embodiment; Figure 11 This is a schematic diagram of the structure of a consumable chip provided in an embodiment of this application; Figure 12 This is a schematic diagram of the structure of an image forming apparatus provided in an embodiment of this application. Detailed Implementation

[0014] The embodiments of this application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of this application and are not intended to limit the scope of the embodiments. Furthermore, it should be noted that, for ease of description, only the parts relevant to the embodiments of this application are shown in the accompanying drawings, not the entire structure.

[0015] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0016] Figure 1 This is a flowchart illustrating a method for identifying consumable chips, as provided in an embodiment of this application. Figure 1 As shown, the consumable chip identification method specifically includes the following steps: Step S101: When a preset level signal is detected from the image forming device, start timing and query the stored preset transmission time.

[0017] The image forming device can be any device that requires consumable support and is capable of generating images, such as a printer, copier, or multifunction printer. Communication between the consumable chip and the image forming device can be via a bus, such as an IIC bus or SPI bus; this application does not limit the specific type of communication. Taking the IIC bus as an example, after the consumable chip is powered on, its SDA pin can be configured to a high level by default to monitor the pin's level. The image forming device outputs a low-level signal on the SDA pin and maintains this low-level state, allowing the consumable chip to detect this low-level signal and enter the subsequent process of sending the target pulse sequence. If the consumable chip detects a preset level signal sent by the image forming device, such as a low-level signal, it can start a timer to send the target pulse sequence in accordance with a pre-defined preset transmission time. This preset transmission time can be a time interval pre-written into the consumable chip before it leaves the factory, and can be specifically determined by parameters such as the color type and capacity level of the consumable chip.

[0018] Step S102: Determine the target pulse sequence information based on the stored consumable attribute information and the preset sequence mapping relationship.

[0019] The consumable attribute information can be consumable-related information pre-written into the consumable chip, serving as a crucial basis for the image forming device to identify consumables. This consumable attribute information can specifically include the consumable chip identifier and consumable parameter information, which may include color type, capacity level, model code, etc. The preset sequence mapping relationship can be a correspondence between the consumable attribute information and the target pulse sequence information pre-set in both the consumable chip and the image forming device, used to convert the consumable attribute information into an electrical pulse signal format recognizable by the image forming device. In one embodiment, the preset sequence mapping relationship can be to uniformly convert the consumable attribute information into a pulse sequence representing binary data. In another embodiment, the preset sequence mapping relationship can be to convert each information item in the consumable attribute information into a pulse sequence with a specific pulse structure. The structural parameters of the specific pulse sequence may include pulse interval, pulse width, and number of pulses. The pulse interval can be set to multiple levels, such as 1ms, 2ms, 3ms, etc. However, due to the need for the image forming device to maintain a low-level state and the low accuracy of pulse width acquisition due to transmission noise, the number of pulse width levels that can be set needs to be limited. For example, the pulse width can be set to two levels to distinguish between long and short pulse widths. Furthermore, the number of pulses can be set to multiple levels, specifically ranging from 1 to 16. By using different combinations of pulse intervals, pulse widths, and pulse numbers, the difficulty of replicating the pulse sequence can be increased, while supporting the encoded transmission of different functional consumable parameters. For example, if the consumable is black, its pulse interval, pulse width, and pulse number combination could be "pulse width interval of 2ms + long pulse width + pulse number of 3". Of course, the above is only an illustrative description, and there can be other mapping relationships between consumable attributes and pulse sequences, which are not limited in this application.

[0020] In one embodiment, the consumable attribute information includes a consumable chip identifier, and the preset sequence mapping relationship includes a first sequence mapping relationship. Figure 2 A flowchart illustrating a process for determining target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, as provided in this application embodiment, is shown below. Figure 2 As shown, the specific steps include: Step S1021: Generate a first random value based on the system timestamp corresponding to the preset level signal and the preset random number algorithm.

[0021] When the preset level signal is detected, the consumable chip can record the system timestamp corresponding to the preset level signal as input data for generating the first random value. This preset random number algorithm can be a pseudo-random number algorithm pre-agreed with the image forming device to ensure that both the consumable chip and the image forming device can generate the same random value based on the system timestamp corresponding to the preset level signal. Furthermore, since the time the consumable chip connects to the image forming device is not fixed, and the timestamp for detecting the preset level signal is unique, the predictability of the first random value can be reduced, while ensuring the uniqueness of the generated first random value.

[0022] Step S1022: Integrate the first random value and the consumable chip identifier to obtain the first result value.

[0023] The first random value can be a binary, decimal, or hexadecimal number, while the consumable chip identifier can be a unique identifier for the consumable chip, such as a UID (Unique Identifier) ​​or a custom code. In one embodiment, the first random value and the consumable chip identifier can be combined in a preset order to obtain combined data, and a hash algorithm can be used to perform a hash calculation on the combined data to obtain a fixed-length hash value, which can be regarded as the first result value. In another embodiment, the first random value and the consumable chip identifier can be converted into first data and second data with the same number of bits and base, respectively, and the first data and second data can be XORed or otherwise calculated to obtain the first result value. Of course, there are other integrated calculation methods, which are not limited here.

[0024] Step S1023: Determine the target pulse sequence information corresponding to the first result value based on the first sequence mapping relationship.

[0025] The first sequence mapping relationship can provide mapping methods such as table lookup or preset encoding rules to convert the first result value into target pulse sequence information. For example, the first result value can be used as an index to directly query the first sequence mapping relationship to obtain the target pulse sequence information. As another example, the first sequence mapping relationship provides the corresponding pulse sequence attributes for specific data bits of the first result value, as well as the attribute values ​​corresponding to the values ​​of those specific data bits. For instance, some data bits may correspond to the number of pulses, some data bits may correspond to the pulse time interval, and some data bits may correspond to the pulse occurrence time; this application does not impose any limitations on these aspects.

[0026] Therefore, the system can generate a first random value through the system's timestamp and preset random number algorithm, ensuring the uniqueness and unpredictability of the pulse sequence sent subsequently, making it impossible for third parties to predict and copy the pulse sequence, and preventing replay attacks and simulations.

[0027] In one embodiment, the consumable attribute information includes a consumable chip identifier and consumable parameter information. The preset sequence mapping relationship includes a second sequence mapping relationship and a third sequence mapping relationship. The second sequence mapping relationship can be used to generate pulse sequence information corresponding to the consumable chip identifier, and the third sequence mapping relationship can be used to generate pulse sequence information corresponding to the consumable parameter information. Figure 3 A flowchart illustrating another process for determining target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, as provided in this application embodiment, is shown below. Figure 3 As shown, the specific steps include: Step S1024: Determine the first pulse sequence information based on the consumable chip identifier and the second sequence mapping relationship.

[0028] In one embodiment, the consumable chip identifier can be converted into an intermediate result value through hash calculation or number system conversion, and the first pulse sequence information can be obtained by querying the second sequence mapping relationship or mapping according to the encoding rules provided by the second sequence mapping relationship based on the intermediate result value. In one embodiment, a first random value can be generated first based on the system timestamp corresponding to the preset level signal and a preset random number algorithm, and then the first random value and the consumable chip identifier can be integrated to obtain an intermediate result value. Finally, the first pulse sequence information corresponding to the intermediate result value can be determined based on the second sequence mapping relationship.

[0029] Step S1025: Determine the second pulse sequence information based on the consumable parameter information and the third sequence mapping relationship.

[0030] The consumable parameter information may include multiple consumable parameters, such as color type (e.g., black, cyan, magenta, yellow, etc.), capacity level (e.g., high capacity, standard capacity, and low capacity, etc.), model code, etc., which are not limited in this application.

[0031] In one embodiment, the third sequence mapping relationship may include a parameter encoding mapping relationship and a pulse sequence mapping relationship. A fixed-bit segmented encoding method can be used, assigning a fixed-bit encoding segment to each consumable parameter. Based on the parameter value corresponding to each consumable parameter, the corresponding encoding segment value is retrieved from the parameter encoding mapping relationship. Then, the encoding segment values ​​corresponding to each consumable parameter are combined according to their corresponding encoding segment order to obtain the target encoding sequence. For example, the encoding segment positions for color type are positions 0 to 1, for capacity level are positions 2 to 3, and for model code are positions 4 to 5. These can be combined with the encoding segment values ​​retrieved from the parameter encoding mapping relationship to obtain a 6-bit target encoding sequence. Then, based on this target encoding sequence and the pulse sequence mapping relationship, the second pulse sequence information can be determined. For example, in the 6-bit target coding sequence, bits 0 to 1 correspond to the pulse interval of the pulse sequence, bits 2 to 3 correspond to the pulse width of the pulse sequence, and bits 4 to 5 correspond to the number of pulses in the pulse sequence. The pulse sequence mapping relationship can record the pulse interval corresponding to different coding segment values ​​of bits 0 to 1, the pulse width corresponding to different coding segment values ​​of bits 2 to 3, and the number of pulses corresponding to different coding segment values ​​of bits 4 to 5. Then, by splitting the target coding sequence, it can be mapped to the corresponding pulse sequence attribute dimension to obtain the second pulse sequence information.

[0032] In one embodiment, Figure 4 A flowchart illustrating a process for determining second pulse sequence information based on consumable parameter information and a third sequence mapping relationship, as provided in this application embodiment, is shown below. Figure 4 As shown, the specific implementation process for determining the second pulse sequence information based on consumable parameter information and the third sequence mapping relationship includes the following steps: Step S10251: Determine the sub-pulse sequence information based on each consumable parameter and the corresponding sub-sequence mapping relationship.

[0033] The sub-sequence mapping relationship can be a pre-constructed correspondence rule between consumable parameters and sub-pulse sequences. Specifically, it can provide mapping methods such as lookup tables or preset encoding rules to convert each consumable parameter into corresponding sub-pulse sequence information. In one embodiment, the specific parameter value corresponding to the consumable parameter can be used as an index to query its corresponding sub-sequence mapping relationship to obtain the sub-pulse sequence information. In another embodiment, each consumable parameter can be converted into fixed-length encoded data according to a preset encoding rule. Based on the value of each data bit of the encoded data, the corresponding pulse attributes, such as pulse interval, pulse width, and pulse number, can be queried from the sub-sequence mapping relationship to obtain the sub-pulse sequence information corresponding to each consumable parameter.

[0034] Step S10252: Integrate the sub-pulse sequence information corresponding to each consumable parameter according to the preset parameter order to obtain the second pulse sequence information.

[0035] The preset parameter order can be the arrangement order of sub-pulse sequences corresponding to multiple consumable parameters pre-agreed with the image forming device, facilitating recognition and analysis by the image forming device. In one embodiment, the sub-pulse sequence information corresponding to each consumable parameter can be directly spliced ​​together according to the preset parameter order to obtain the second pulse sequence information. In another embodiment, after splicing the sub-pulse sequence information corresponding to each consumable parameter according to the preset parameter order, transition pulse sequence information can be inserted between every two sub-pulse sequence information corresponding to consumable parameters, so that the image forming device can better perform decomposition, recognition, and analysis of the consumable parameters.

[0036] Step S1026: Integrate the first pulse sequence information and the second pulse sequence information to obtain the target pulse sequence information.

[0037] In one embodiment, the first pulse sequence information and the second pulse sequence information can be directly concatenated to obtain the target pulse sequence information. In another embodiment, after concatenating the first and second pulse sequence information, a transition pulse sequence information can be inserted in between to allow the image forming device to more accurately distinguish between the first and second pulse sequence information. The first pulse sequence information is used for consumable identification, and the second pulse sequence information is used for consumable parameter identification. It should be noted that steps S1024-S1026 can be another way to determine the target pulse sequence information, and are interchangeable with steps S1021-S1023. Therefore, consumable attribute information can be transmitted simultaneously with consumable identification information, providing the image forming device with more comprehensive consumable information, increasing the complexity of the pulse sequence, and reducing the risk of third-party copying or cracking.

[0038] Step S103: When the timing reaches the preset transmission time, the target pulse sequence corresponding to the target pulse sequence information is sent to the image forming device so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain the identification result, and feed back the identification result.

[0039] In this process, if the timing reaches the preset transmission time, the consumable chip can send the target pulse sequence corresponding to the target pulse sequence information to the image forming device. The image forming device can also synchronize with the consumable chip based on this preset transmission time, avoiding errors in subsequent identification of the target pulse sequence. The consumable chip can send the target pulse sequence according to the pulse interval, pulse width, and pulse number in the target pulse sequence information. After receiving the target pulse sequence, the image forming device verifies the legality of the consumable and obtains its parameter information, thereby obtaining the identification result. Based on the identification result, the image forming device can determine whether an illegal chip has been connected, or whether there is a missing or faulty consumable chip. For example, if the target pulse sequence is not empty, but all or a specific part of the target pulse sequence is inconsistent with the set reference pulse sequence, it can be considered that an illegal chip has been connected. Similarly, if the target pulse sequence is empty, it can be considered that the consumable is missing or faulty.

[0040] As described above, by initiating timing upon detecting a preset level signal from the image forming device and querying the stored preset transmission time, a benchmark can be provided for subsequent timing control. By determining the target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, the target pulse sequence information corresponding to the consumable can be accurately generated, providing a foundation for the image forming device to identify the consumable chip. By sending the target pulse sequence corresponding to the target pulse sequence information to the image forming device when the preset transmission time is reached, the attribute information related to the consumable chip can be accurately transmitted, facilitating rapid consumable chip identification by the image forming device. This scheme can quickly complete the identification of the consumable chip without waiting for the establishment of an encrypted communication channel, reducing identification time and improving identification efficiency.

[0041] Figure 5 This is a flowchart illustrating a method for identifying consumable chips used in an image forming apparatus, as provided in an embodiment of this application. The method is applied to consumable chips. Figure 5 As shown, the consumable chip identification method specifically includes the following steps: Step S501: Send a preset level signal to the consumable chip so that the consumable chip sends the target pulse sequence.

[0042] The preset level signal can be used to trigger the consumable chip to send a target pulse sequence. For example, the image forming device outputs a low-level signal on the SDA pin and maintains it at a low level, causing the consumable chip to detect this low-level signal and enter the subsequent process of sending the target pulse sequence. After receiving the preset level signal, the consumable chip can return the target pulse sequence accordingly to provide reference information for subsequent identification and other processes.

[0043] Step S502: Upon receiving the target pulse sequence, the consumable chip is identified based on the target pulse sequence information corresponding to the target pulse sequence to obtain the identification result.

[0044] In one embodiment, the target pulse sequence contains consumable identification information, which can be parsed to obtain the consumable identification information to verify the legality of the consumable. In another embodiment, the target pulse sequence includes both consumable identification information and consumable parameter information, which can be parsed to obtain both consumable identification information and consumable parameter information, thus verifying the legality of the consumable and obtaining the consumable parameters simultaneously. Specifically, the portion of the target pulse sequence information representing the consumable identification information can be compared with reference pulse sequence information. If they match, the accessed consumable is legal; if they do not match, the accessed consumable is illegal. Furthermore, if the target pulse sequence information is empty, it can be considered that the consumable is missing or faulty.

[0045] In one embodiment, Figure 6 A flowchart illustrating a process for identifying a consumable chip and obtaining an identification result, as provided in this application embodiment, is shown below. Figure 6 As shown, the specific implementation process for identifying consumable chips based on the target pulse sequence information corresponding to the target pulse sequence to obtain the identification result includes the following steps: Step S5021: Generate a second random value based on the system timestamp corresponding to the preset level signal and the preset random number algorithm.

[0046] When the image forming device sends the preset level signal, it can record the system timestamp corresponding to the preset level chip. It should be noted that since the transmission delay is negligible, the system timestamp recorded by the consumable chip when it detects the preset level signal is consistent with that recorded by the image forming device. The preset random number algorithm can be a pseudo-random number algorithm pre-agreed with the consumable chip, and the system timestamp can be used as input data for generating the second random value. Thus, ensuring consistency in the preset random number algorithm, the second random value generated by the image forming device is consistent with that generated by the consumable chip.

[0047] Step S5022: Integrate the second random value and the consumable chip identifier corresponding to the consumable chip to obtain the second result value, and determine the first reference pulse sequence information corresponding to the second result value based on the set first sequence mapping relationship.

[0048] The second random value can be a binary, decimal, or hexadecimal value, while the consumable chip identifier can be a unique identifier for the consumable chip, such as a UID or a custom code. In one embodiment, the second random value and the consumable chip identifier can be combined in a preset order to obtain combined data, and a hash algorithm can be used to perform a hash calculation on the combined data to obtain a fixed-length hash value, which can be regarded as the second result value. In another embodiment, the second random value and the consumable chip identifier can be converted into first data and second data with the same number of bits and base, respectively, and the first data and second data can be XORed or otherwise calculated to obtain the second result value. Of course, there are other integrated calculation methods, which are not limited here. The first sequence mapping relationship can provide a lookup table or a preset encoding rule, etc., to convert the second result value into first reference pulse sequence information. For example, the second result value can be used as an index to directly query the first sequence mapping relationship to obtain the target pulse sequence information. For example, the first sequence mapping relationship provides the corresponding pulse sequence attribute for a specific data bit of the second result value, as well as the attribute value corresponding to the value of that specific data bit. For example, some data bits can correspond to the number of pulses, some data bits can correspond to the pulse time interval, and some data bits can correspond to the pulse occurrence time. This application does not limit this.

[0049] Step S5023: If the first reference pulse sequence information and the target pulse sequence information are the same, generate recognition success information.

[0050] If the first reference pulse sequence information and the target pulse sequence information are the same, the consumable can be considered to be legitimate, and a successful identification message can be generated accordingly.

[0051] Therefore, the image forming device can generate a second random value through the system timestamp and preset random number algorithm. This ensures that, if the consumable chip is legitimate, the generated first reference pulse sequence information is consistent with the target pulse sequence information, guaranteeing the correct identification of the consumable chip. It can also avoid third-party prediction and copying operations, preventing replay attacks and simulations.

[0052] In one embodiment, Figure 7 A flowchart illustrating another process for identifying consumable chips and obtaining identification results, as provided in this application embodiment, is shown below. Figure 7 As shown, the specific implementation process for identifying consumable chips based on the target pulse sequence information corresponding to the target pulse sequence to obtain the identification result includes the following steps: Step S5024: Determine the second reference pulse sequence information based on the consumable chip identifier corresponding to the consumable chip and the set second sequence mapping relationship.

[0053] In one embodiment, the consumable chip identifier can be converted into an intermediate result value through hash calculation or number system conversion, and the second reference pulse sequence information can be obtained by querying the second sequence mapping relationship or mapping according to the encoding rules provided by the second sequence mapping relationship based on the intermediate result value. In one embodiment, a second random value can be generated first based on the system timestamp corresponding to the preset level signal and a preset random number algorithm, and then the second random value and the consumable chip identifier can be integrated to obtain an intermediate result value. Finally, the second reference pulse sequence information corresponding to the intermediate result value can be determined based on the second sequence mapping relationship.

[0054] Step S5025: Decompose the target pulse sequence information corresponding to the target pulse sequence to obtain the first pulse sequence information and the second pulse sequence information.

[0055] The target pulse sequence information can include a first pulse sequence information generated based on the consumable chip identifier and a second pulse sequence information generated based on the consumable parameter information. Therefore, the target pulse sequence information can be split to complete the identification of the consumable chip and the acquisition of parameter information.

[0056] Step S5026: If the first pulse sequence information and the second reference pulse sequence information are the same, generate recognition success information, and parse the second pulse sequence information based on the set third sequence mapping relationship to obtain consumable parameter information.

[0057] If the first pulse sequence information and the second reference pulse sequence information are the same, the consumable can be considered legitimate, and a successful identification message can be generated accordingly. In one embodiment, the third sequence mapping relationship may include a parameter encoding mapping relationship and a pulse sequence mapping relationship. Specifically, the second pulse sequence information can be split according to a preset pulse sequence attribute dimension to obtain segmented pulse sequences corresponding to each preset pulse sequence attribute dimension. Based on the set segmented pulse sequences and pulse sequence mapping relationship, the encoding segment value corresponding to each segmented pulse sequence can be deduced. Finally, based on each encoding segment value and the parameter encoding mapping relationship, the consumable parameters corresponding to each encoding segment value can be deduced. For specific exemplary correspondences, please refer to the description of the second pulse sequence information in the foregoing embodiments, which are not limited here.

[0058] In one embodiment, the consumable parameter information includes at least one consumable parameter, and the third sequence mapping relationship includes the sub-sequence mapping relationship corresponding to each consumable parameter; Figure 8 A flowchart illustrating a process for parsing second pulse sequence information to obtain consumable parameter information, as provided in this application embodiment, is shown below. Figure 8 As shown, the specific implementation process of parsing the second pulse sequence information to obtain consumable parameter information based on the set third sequence mapping relationship includes the following steps: Step S50261: The second pulse sequence information is split according to the preset parameter order to obtain the sub-pulse sequence information corresponding to each consumable parameter.

[0059] The preset parameter order can be the arrangement order of sub-pulse sequences corresponding to multiple consumable parameters pre-agreed with the consumable chip. In one embodiment, the second pulse sequence information can be sequentially split according to the preset parameter order to obtain the sub-pulse sequence information corresponding to each consumable parameter. In another embodiment, the second pulse sequence information can be sequentially split according to the preset parameter order and preset transition pulse sequence information to obtain the sub-pulse sequence information corresponding to each consumable parameter.

[0060] Step S50262: Convert the corresponding sub-pulse sequence information into consumable parameters based on the sub-sequence mapping relationship corresponding to each consumable parameter.

[0061] The sub-sequence mapping relationship can be a pre-constructed correspondence rule between consumable parameters and sub-pulse sequences. Specifically, it can provide mapping methods such as table lookup or preset encoding rules to reverse-engineer the sub-pulse sequence information into the corresponding consumable parameters. In one embodiment, the sub-pulse sequence information can be used as an index to query its corresponding sub-sequence mapping relationship to obtain the sub-pulse sequence information. In another embodiment, pulse attributes, such as pulse interval, pulse width, and pulse number, can be extracted from the sub-pulse sequence information. Then, the encoded values ​​corresponding to different pulse attributes can be queried from the sub-sequence mapping relationship. The encoded values ​​corresponding to each pulse attribute can be integrated to obtain encoded data. Finally, the consumable parameters can be obtained by reverse-engineering this encoded data according to the preset encoding rules.

[0062] Step S503: Feed back the identification result to the consumable chip, and if the identification result includes a successful identification message, establish a communication connection with the consumable chip.

[0063] In this process, after the image forming device completes the identification of the consumable chip, if the identification result includes identification failure information, the connection with the consumable chip is directly terminated without proceeding to subsequent communication procedures. If the identification result includes identification success information, the image forming device can proceed normally to subsequent processes such as building an encrypted communication channel. This, in turn, improves identification efficiency.

[0064] As described above, by sending a preset level signal to the consumable chip, the consumable chip can send a target pulse sequence, thus achieving initial interaction with the consumable chip and effectively triggering the consumable chip to send the target pulse sequence. By identifying the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence, the relevant attribute information of the consumable chip can be effectively extracted, and the consumable chip can be quickly identified, reducing the identification time. By feeding back the identification result to the consumable chip, and establishing a communication connection with the consumable chip when the identification result includes a successful identification message, the legitimate access of the consumable chip can be guaranteed, and the identification efficiency can be improved.

[0065] Figure 9 This is a structural block diagram of a consumable chip identification device provided in an embodiment of this application. The device is configured to execute the consumable chip identification method provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. Figure 9 As shown, the device specifically includes: The initial timing module 901 is configured to start timing and query the stored preset transmission time when a preset level signal sent by the image forming device is detected. The sequence information determination module 902 is configured to determine the target pulse sequence information based on the stored consumable attribute information and the preset sequence mapping relationship; The consumable chip identification module 903 is configured to send a target pulse sequence corresponding to the target pulse sequence information to the image forming device when the timing time reaches the preset sending time, so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain the identification result, and feed back the identification result.

[0066] As described above, by initiating timing upon detecting a preset level signal from the image forming device and querying the stored preset transmission time, a benchmark can be provided for subsequent timing control. By determining the target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship, the target pulse sequence information corresponding to the consumable can be accurately generated, providing a foundation for the image forming device to identify the consumable chip. By sending the target pulse sequence corresponding to the target pulse sequence information to the image forming device when the preset transmission time is reached, the attribute information related to the consumable chip can be accurately transmitted, facilitating rapid consumable chip identification by the image forming device. This scheme can quickly complete the identification of the consumable chip without waiting for the establishment of an encrypted communication channel, reducing identification time and improving identification efficiency.

[0067] In one possible embodiment, the consumable attribute information includes a consumable chip identifier, and the preset sequence mapping relationship includes a first sequence mapping relationship; the sequence information determination module 902 is further configured to: The first random value is generated based on the system timestamp corresponding to the preset level signal and the preset random number algorithm. The first random value and the consumable chip identifier are combined to obtain the first result value; The target pulse sequence information corresponding to the first result value is determined based on the first sequence mapping relationship.

[0068] In one possible embodiment, the consumable attribute information includes a consumable chip identifier and consumable parameter information, and the preset sequence mapping relationship includes a second sequence mapping relationship and a third sequence mapping relationship; the sequence information determination module 902 is further configured to: The first pulse sequence information is determined based on the consumable chip identifier and the mapping relationship between the second sequence; The second pulse sequence information is determined based on consumable parameter information and the mapping relationship of the third sequence. The target pulse sequence information is obtained by integrating the first pulse sequence information and the second pulse sequence information.

[0069] In one possible embodiment, the consumable parameter information includes at least one consumable parameter, and the third sequence mapping relationship includes a sub-sequence mapping relationship corresponding to each consumable parameter; the sequence information determination module 902 is further configured to: The sub-pulse sequence information is determined based on the mapping relationship between each consumable parameter and its corresponding sub-sequence. The sub-pulse sequence information corresponding to each consumable parameter is integrated according to the preset parameter order to obtain the second pulse sequence information.

[0070] Figure 10 This is a structural block diagram of another consumable chip identification device provided in an embodiment of this application. This device is configured to execute the consumable chip identification method provided in the above embodiments, and has corresponding functional modules and beneficial effects for executing the method. Figure 10 As shown, the device specifically includes: The level signal transmitting module 1001 is configured to send a preset level signal to the consumable chip so that the consumable chip sends a target pulse sequence; The consumable chip identification module 1002 is configured to identify the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence when a target pulse sequence is received, and obtain the identification result. The recognition result processing module 1003 is configured to feed back the recognition result to the consumable chip and establish a communication connection with the consumable chip if the recognition result includes recognition success information.

[0071] As described above, by sending a preset level signal to the consumable chip, the consumable chip can send a target pulse sequence, thus achieving initial interaction with the consumable chip and effectively triggering the consumable chip to send the target pulse sequence. By identifying the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence, the relevant attribute information of the consumable chip can be effectively extracted, and the consumable chip can be quickly identified, reducing the identification time. By feeding back the identification result to the consumable chip, and establishing a communication connection with the consumable chip when the identification result includes a successful identification message, the legitimate access of the consumable chip can be guaranteed, and the identification efficiency can be improved.

[0072] In one possible embodiment, the identification result includes identification success information; the consumable chip identification module 1002 is further configured to: A second random value is generated based on the system timestamp corresponding to the preset level signal and the preset random number algorithm; The second random value and the consumable chip identifier corresponding to the consumable chip are integrated to obtain the second result value, and the first reference pulse sequence information corresponding to the second result value is determined based on the set first sequence mapping relationship. If the first reference pulse sequence information and the target pulse sequence information are the same, a successful identification message is generated.

[0073] In one possible embodiment, the identification result includes identification success information and consumable parameter information; the consumable chip identification module 1002 is further configured to: The second reference pulse sequence information is determined based on the consumable chip identifier corresponding to the consumable chip and the set second sequence mapping relationship; The target pulse sequence information corresponding to the target pulse sequence is split to obtain the first pulse sequence information and the second pulse sequence information; If the first pulse sequence information and the second reference pulse sequence information are the same, a successful identification message is generated, and the second pulse sequence information is parsed based on the set third sequence mapping relationship to obtain the consumable parameter information.

[0074] In one possible embodiment, the consumable parameter information includes at least one consumable parameter, and the third sequence mapping relationship includes a sub-sequence mapping relationship corresponding to each consumable parameter; the consumable chip identification module 1002 is further configured to: The second pulse sequence information is split according to the preset parameter order to obtain the sub-pulse sequence information corresponding to each consumable parameter; Based on the sub-sequence mapping relationship corresponding to each consumable parameter, the corresponding sub-pulse sequence information is converted into consumable parameters.

[0075] Figure 11 This is a schematic diagram of the structure of a consumable chip provided in an embodiment of this application, as shown below. Figure 11As shown, the consumable chip includes a processor 1101 and a memory 1102; the number of processors 1101 in the consumable chip can be one or more. Figure 11 Taking a processor 1101 as an example; the processor 1101 and memory 1102 in this consumable chip can be connected via a bus or other means. Figure 11 Taking a bus connection as an example, the memory 1102, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the consumable chip identification method applied to the consumable chip in this embodiment of the application. The processor 1101 executes various functional applications and data processing of the consumable chip by running the software programs, instructions, and modules stored in the memory 1102, thereby realizing the aforementioned consumable chip identification method applied to the consumable chip.

[0076] The image forming apparatus provided above can be used to perform the consumable chip identification method applied to consumable chips provided in any of the above embodiments, and has the corresponding functions and beneficial effects.

[0077] Figure 12 This is a schematic diagram of the structure of an image forming apparatus provided in an embodiment of this application, such as... Figure 12 As shown, the image forming apparatus includes a processor 1201, a memory 1202, an input device 1203, and an output device 1204; the number of processors 1201 in the image forming apparatus can be one or more. Figure 12 Taking a processor 1201 as an example; the processor 1201, memory 1202, input device 1203, and output device 1204 in the image forming apparatus can be connected via a bus or other means. Figure 12 Taking a bus connection as an example, the memory 1202, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the consumable chip identification method applied to the image forming apparatus in this embodiment. The processor 1201 executes various functional applications and data processing of the image forming apparatus by running the software programs, instructions, and modules stored in the memory 1202, thereby realizing the aforementioned consumable chip identification method applied to the image forming apparatus. The input device 1203 can be configured to receive input digital or character information and generate key signal inputs related to user settings and function control of the device. The output device 1204 may include a display screen or other display device.

[0078] The image forming apparatus provided above can be used to perform the consumable chip identification method for image forming apparatus provided in any of the above embodiments, and has the corresponding functions and beneficial effects.

[0079] This application also provides a non-volatile storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are configured to perform a consumable chip identification method described in the above embodiments. The method includes: upon detecting a preset level signal sent by an image forming device, starting a timer and querying a stored preset transmission time; determining target pulse sequence information based on stored consumable attribute information and a preset sequence mapping relationship; and, when the timer reaches the preset transmission time, sending a target pulse sequence corresponding to the target pulse sequence information to the image forming device, so that the image forming device identifies the consumable chip based on the target pulse sequence to obtain an identification result, and then feeding back the identification result. Alternatively, the method can be configured to perform another consumable chip identification method described in the above embodiments, including: sending a preset level signal to the consumable chip to cause the consumable chip to send a target pulse sequence; upon receiving the target pulse sequence, identifying the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence to obtain an identification result; feeding back the identification result to the consumable chip, and establishing a communication connection with the consumable chip if the identification result includes identification success information.

[0080] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media, optical storage; registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which the program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.

[0081] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the above-mentioned consumable chip identification method, but can also perform related operations in the consumable chip identification method provided in any embodiment of this application.

[0082] It should be noted that the numbering of each step in this solution is only used to describe the overall design framework of this solution and does not indicate a necessary sequential relationship between the steps. As long as the overall implementation process conforms to the overall design framework of this solution, it falls within the protection scope of this solution. The literal order in the description is not an exclusive limitation on the specific implementation process of this solution. Those skilled in the art should understand that the embodiments of this application can be provided as methods, systems, or computer program products. In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer-readable media, random access memory (RAM), and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0083] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0084] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A method for identifying consumable chips, applied to consumable chips, characterized in that, include: Upon detecting a preset level signal sent by the image forming device, a timer is started, and the stored preset transmission time is queried; The target pulse sequence information is determined based on the stored consumable attribute information and the preset sequence mapping relationship; When the preset transmission time is reached, the target pulse sequence corresponding to the target pulse sequence information is sent to the image forming device, so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain the identification result, and feed back the identification result.

2. The consumable chip identification method according to claim 1, characterized in that, The consumable attribute information includes the consumable chip identifier, and the preset sequence mapping relationship includes a first sequence mapping relationship; The determination of the target pulse sequence information based on stored consumable attribute information and preset sequence mapping relationships includes: A first random value is generated based on the system timestamp corresponding to the preset level signal and a preset random number algorithm. The first random value and the consumable chip identifier are integrated to obtain the first result value; The target pulse sequence information corresponding to the first result value is determined based on the first sequence mapping relationship.

3. The consumable chip identification method according to claim 1, characterized in that, The consumable attribute information includes consumable chip identifier and consumable parameter information, and the preset sequence mapping relationship includes a second sequence mapping relationship and a third sequence mapping relationship; The determination of the target pulse sequence information based on stored consumable attribute information and preset sequence mapping relationships includes: The first pulse sequence information is determined based on the consumable chip identifier and the second sequence mapping relationship; The second pulse sequence information is determined based on the consumable parameter information and the third sequence mapping relationship; The target pulse sequence information is obtained by integrating the first pulse sequence information and the second pulse sequence information.

4. The consumable chip identification method according to claim 3, characterized in that, The consumable parameter information includes at least one consumable parameter, and the third sequence mapping relationship includes a sub-sequence mapping relationship corresponding to each consumable parameter; The step of determining the second pulse sequence information based on the consumable parameter information and the third sequence mapping relationship includes: The sub-pulse sequence information is determined based on each of the consumable parameters and the corresponding sub-sequence mapping relationship; The sub-pulse sequence information corresponding to each of the consumable parameters is integrated according to a preset parameter order to obtain the second pulse sequence information.

5. A method for identifying consumable chips, applied in an image forming device, characterized in that, include: A preset level signal is sent to the consumable chip to cause the consumable chip to send a target pulse sequence; Upon receiving the target pulse sequence, the consumable chip is identified based on the target pulse sequence information corresponding to the target pulse sequence to obtain an identification result; The system feeds back the identification result to the consumable chip, and establishes a communication connection with the consumable chip if the identification result includes a successful identification message.

6. The consumable chip identification method according to claim 5, characterized in that, The recognition result includes a recognition success message; The step of identifying the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence to obtain the identification result includes: A second random value is generated based on the system timestamp corresponding to the preset level signal and a preset random number algorithm; The second random value and the consumable chip identifier corresponding to the consumable chip are integrated to obtain the second result value, and the first reference pulse sequence information corresponding to the second result value is determined based on the set first sequence mapping relationship; If the first reference pulse sequence information and the target pulse sequence information are the same, a successful identification message is generated.

7. The consumable chip identification method according to claim 5, characterized in that, The identification result includes identification success information and consumable parameter information; The step of identifying the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence to obtain the identification result includes: The second reference pulse sequence information is determined based on the consumable chip identifier corresponding to the consumable chip and the set second sequence mapping relationship; The target pulse sequence information corresponding to the target pulse sequence is split to obtain the first pulse sequence information and the second pulse sequence information; If the first pulse sequence information and the second reference pulse sequence information are the same, a successful identification message is generated, and the second pulse sequence information is parsed based on the set third sequence mapping relationship to obtain consumable parameter information.

8. The consumable chip identification method according to claim 7, characterized in that, The consumable parameter information includes at least one consumable parameter, and the third sequence mapping relationship includes a sub-sequence mapping relationship corresponding to each consumable parameter; The process of parsing the second pulse sequence information based on the set third sequence mapping relationship to obtain consumable parameter information includes: The second pulse sequence information is split according to the preset parameter order to obtain the sub-pulse sequence information corresponding to each consumable parameter; Based on the sub-sequence mapping relationship corresponding to each of the consumable parameters, the corresponding sub-pulse sequence information is converted into consumable parameters.

9. A consumable chip identification device, characterized in that, include: The initial timing module is configured to start timing and query the stored preset transmission time when a preset level signal is detected from the image forming device. The sequence information determination module is configured to determine the target pulse sequence information based on the stored consumable attribute information and the preset sequence mapping relationship; The consumable chip identification module is configured to send a target pulse sequence corresponding to the target pulse sequence information to the image forming device when the timing time reaches the preset sending time, so that the image forming device can identify the consumable chip based on the target pulse sequence, obtain an identification result, and feed back the identification result.

10. A consumable chip identification device, characterized in that, include: The level signal transmitting module is configured to send a preset level signal to the consumable chip so that the consumable chip sends a target pulse sequence; The consumable chip identification module is configured to, upon receiving the target pulse sequence, identify the consumable chip based on the target pulse sequence information corresponding to the target pulse sequence to obtain an identification result; The recognition result processing module is configured to feed back the recognition result to the consumable chip, and to establish a communication connection with the consumable chip if the recognition result includes recognition success information.

11. A consumable chip, characterized in that, The consumable chip includes: one or more processors; and a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the consumable chip identification method according to any one of claims 1-4.

12. An image forming apparatus, characterized in that, The image forming apparatus includes: one or more processors; and a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the consumable chip identification method according to any one of claims 5-8.

13. A non-volatile storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are configured to perform the consumable chip identification method as described in any one of claims 1-8.