Communication control method and device of image forming equipment, controller and consumable chip
By sending key update instructions between the image forming device and the consumable chip, and updating the key to encrypt communication data, the problem of insufficient communication security in the prior art is solved, and higher data transmission security is achieved.
Patent Information
- Application Number
- CN202510496846.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-08-12
AI Technical Summary
In the prior art, the communication between the image forming device and the consumable chip is poor, and the communication content can be decrypted after the key is intercepted by a third party, resulting in information leakage.
By sending a key update instruction between the image forming device and the consumable chip, the first key is updated as a second key, and the communication data is encrypted using the second key to ensure communication security.
The communication security between the image forming equipment and the consumable chip is improved, the key is prevented from being decrypted by a third party, and the confidentiality of data transmission is enhanced.
Smart Images

Figure CN120475112A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image forming device communication technology, and in particular to a communication control method, device, controller and consumable chip for an image forming device. Background Art
[0002] When an image forming device communicates with a consumable chip, the device first sends a key to the consumable chip. Subsequent data, such as chip information and operating status, is encrypted using this key before transmission. If this key is intercepted by a third party, they can decrypt the communications between the image forming device and the consumable chip, resulting in poor communication security. Summary of the Invention
[0003] In view of this, an object of the present invention is to provide a communication control method, device, controller and consumable chip of an image forming device, so as to improve the security of communication between the image forming device and the consumable chip.
[0004] In the first aspect, an embodiment of the present invention provides a communication control method for an image forming device, which is applied to a controller of the image forming device, and the method includes: establishing a communication connection with a consumable chip installed on the image forming device, and sending a first key to the consumable chip; sending a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to a second key; wherein the second key is different from the first key; sending a specified control instruction encrypted based on the second key to the consumable chip, controlling the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generating a feedback signal corresponding to the specified control instruction; receiving a feedback signal encrypted based on the second key sent from the consumable chip.
[0005] Before the above-mentioned step of sending a key update instruction carrying the second key to the consumable chip, the method also includes: pre-setting a first timing event; wherein, the first timing event is triggered every specified time period, or when the number of specified control instructions sent reaches a preset threshold; the step of sending a key update instruction carrying the second key to the consumable chip includes: in response to the first timing event being triggered, sending a key update instruction carrying the second key to the consumable chip.
[0006] Before the above-mentioned step of sending a key update instruction carrying a second key to the consumable chip, the method also includes: pre-setting a second timing event; wherein, the second timing event is triggered every random time length, or every random number of specified control instructions sent; the step of sending a key update instruction carrying the second key to the consumable chip includes: in response to the second timing event being triggered, sending a key update instruction carrying the second key to the consumable chip.
[0007] Before the above-mentioned step of sending a key update instruction carrying the second key to the consumable chip, the method also includes: pre-setting an update trigger event; wherein the update trigger event is triggered based on a specified operation event, and the specified operation event includes: an operation event of the controller and / or the consumable chip; the step of sending a key update instruction carrying the second key to the consumable chip includes: in response to the update trigger event being triggered, sending a key update instruction carrying the second key to the consumable chip.
[0008] The designated operation event includes at least one of the following: generating a chip information reading instruction for the consumable chip; wherein the chip information reading instruction is used to read the consumable information of the consumable chip; generating a status information writing instruction for the consumable chip; wherein the status information writing instruction is used to update the consumable information of the consumable chip; generating a status information reading instruction for the consumable chip; wherein the status information reading instruction includes instructions for verifying the working status of the consumable chip, the image forming device is about to execute a printing task, the image forming device completes the printing task, and the consumable amount corresponding to the consumable chip reaches a preset consumable reduction threshold.
[0009] The above-mentioned step of sending a key update instruction carrying the second key to the consumable chip includes: generating a key update instruction carrying the second key; sending the key update instruction to the consumable chip, or encrypting the key update instruction based on the first key and sending the encrypted key update instruction to the consumable chip.
[0010] After the above-mentioned step of sending a key update instruction carrying the second key to the consumable chip, the method also includes: receiving an update result instruction from the consumable chip for the key update instruction; if the update result instruction indicates that the consumable chip has successfully updated the key, confirming that the second key update is successful; if the confirmation instruction indicates that the consumable chip has updated the key abnormally, sending the key update instruction carrying the second key again; if the number of times the key update instruction carrying the second key is sent reaches a preset number threshold, confirming that the second key update has failed, and continuing to use the first key to encrypt subsequent designated control instructions.
[0011] Before the above-mentioned step of sending a key update instruction carrying the second key to the consumable chip, the method also includes: obtaining the second key; wherein the second key is associated with a key identifier; different keys correspond to different key identifiers; based on the key identifier, determining whether the second key has been sent to the consumable chip within a specified time period; if the second key is not sent to the consumable chip within the specified time period, generating a key update instruction carrying the second key.
[0012] In second aspect, an embodiment of the present invention provides a communication control method for an image forming device, which is applied to a consumable chip installed on the image forming device, and the method includes: establishing a communication connection with a controller of the image forming device, receiving and saving a first key sent by the controller; receiving a key update instruction carrying a second key sent by the controller, and updating the first key to a second key; wherein the second key is different from the first key; receiving a specified control instruction sent by the controller that is encrypted based on the second key, and decrypting based on the second key to obtain the specified control instruction; generating a feedback signal corresponding to the specified control instruction, encrypting the feedback signal based on the second key, and sending the encrypted feedback signal to the controller.
[0013] After the step of receiving the key update instruction carrying the second key sent by the controller and updating the first key to the second key, the method further includes: sending an update result instruction for the key update instruction to the controller.
[0014] In a third aspect, an embodiment of the present invention provides a communication control device for an image forming device, which is arranged in a controller of the image forming device, and includes: a key sending module, used to establish a communication connection with a consumable chip installed on the image forming device, and send a first key to the consumable chip; an update instruction sending module, used to send a key update instruction carrying a second key to the consumable chip, so as to control the consumable chip to update the first key to a second key; wherein the second key is different from the first key; a control instruction sending module, used to send a specified control instruction encrypted based on the second key to the consumable chip, control the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generate a feedback signal corresponding to the specified control instruction; a feedback signal receiving module, used to receive a feedback signal encrypted based on the second key sent from the consumable chip.
[0015] In a fourth aspect, an embodiment of the present invention provides a communication control device for an image forming device, which is arranged on a consumable chip installed on the image forming device, and the device includes: a key storage module, which is used to establish a communication connection with the controller of the image forming device, receive and save a first key sent by the controller; a key update module, which is used to receive a key update instruction carrying a second key sent by the controller, and update the first key to a second key; wherein the second key is different from the first key; a control instruction decryption module, which is used to receive a specified control instruction sent by the controller that is encrypted based on the second key, and decrypt based on the second key to obtain the specified control instruction; a feedback signal sending module, which is used to generate a feedback signal corresponding to the specified control instruction, encrypt the feedback signal based on the second key, and send the encrypted feedback signal to the controller.
[0016] In a fifth aspect, an embodiment of the present invention provides a controller comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned communication control method for an image forming device applied to the controller of the image forming device.
[0017] In the sixth aspect, an embodiment of the present invention provides a consumable chip, including a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, and the processor executing the computer-executable instructions to implement the above-mentioned communication control method for an image forming device applied to the consumable chip installed on the image forming device.
[0018] In the seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned communication control method for the image forming device applied to the controller of the image forming device, or to implement the above-mentioned communication control method for the image forming device applied to the consumable chip installed on the image forming device.
[0019] The embodiments of the present invention bring the following beneficial effects:
[0020] The above-mentioned communication control method, device, controller and consumable chip of the image forming device, wherein, if the method is applied to the controller of the image forming device, the method includes: establishing a communication connection with the consumable chip installed on the image forming device, and sending a first key to the consumable chip; sending a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to a second key; wherein the second key is different from the first key; sending a specified control instruction encrypted based on the second key to the consumable chip, controlling the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generating a feedback signal corresponding to the specified control instruction; receiving a feedback signal encrypted based on the second key sent from the consumable chip.
[0021] In this method, after sending the key to the consumable chip, the key is updated by the key update instruction, and then the specified control instruction encrypted based on the new key is sent to the consumable chip. This method updates the communication key by sending the key update instruction, and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0022] If the method is applied to a consumable chip installed on an image forming device, the method includes: establishing a communication connection with a controller of the image forming device, receiving and saving a first key sent by the controller; receiving a key update instruction carrying a second key sent by the controller, and updating the first key to the second key; wherein the second key is different from the first key; receiving a specified control instruction sent by the controller that is encrypted based on the second key, and decrypting it based on the second key to obtain the specified control instruction; generating a feedback signal corresponding to the specified control instruction, encrypting the feedback signal based on the second key, and sending the encrypted feedback signal to the controller.
[0023] In this method, after saving the key sent by the controller, the key is updated according to the key update instruction to obtain a new key, and then the received new instruction is decrypted based on the new key to obtain a specified control instruction, and the feedback signal corresponding to the specified control instruction is encrypted based on the new key and sent to the controller. This method updates the communication key according to the key update instruction and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0024] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purposes and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A flowchart of communication between an image forming device and a consumable chip provided in the related art;
[0028] Figure 2 A schematic diagram of communication between an image forming device and a consumable chip provided in the related art;
[0029] Figure 3 A flowchart of a communication control method for an image forming device provided by an embodiment of the present invention;
[0030] Figure 4A flowchart of another communication control method for an image forming device provided by an embodiment of the present invention;
[0031] Figure 5 A flow chart of communication between an image forming device and a consumable chip provided by an embodiment of the present invention;
[0032] Figure 6 A schematic diagram of communication between an image forming device and a consumable chip provided by an embodiment of the present invention;
[0033] Figure 7 A schematic diagram of a communication control device for an image forming apparatus provided by an embodiment of the present invention;
[0034] Figure 8 A schematic diagram of another communication control device for an image forming apparatus provided by an embodiment of the present invention;
[0035] Figure 9 A schematic diagram of a controller or a consumable chip provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.
[0037] Currently, when an image forming device and a consumable chip communicate, the image forming device first sends a key to the consumable chip. Subsequently, chip information, operating status and other data in the communication process between the image forming device and the consumable chip are encrypted using the key and then transmitted. During the data transmission process, one of the image forming device and the consumable chip receives the data encrypted according to the key, and then decrypts it according to the key to obtain the ciphertext data of the communication.
[0038] In related technologies, such as Figure 1 , shows a flowchart of communication between an image forming device and a consumable chip, including: step S101, handshake instruction; step S102, certificate instruction; step S103, static key instruction; step S104, chip information instructions 1 to T; step S105, operation status instructions 1 to N.
[0039] Specifically, if Figure 2As shown, in the first communication, the image forming device sends a handshake instruction to the consumable chip in plain text, and the consumable chip sends a handshake feedback instruction to the image forming device in plain text; in the second communication, the image forming device sends a certificate acquisition instruction to the consumable chip in plain text, and the consumable chip sends a certificate feedback instruction to the image forming device in plain text; in the third communication, the image forming device sends key information to the consumable chip in plain text, and the consumable chip sends key confirmation information to the image forming device in plain text; in the fourth communication, the image forming device encrypts an instruction for reading chip information based on the key and sends it to the consumable chip, and the consumable chip encrypts a chip information feedback instruction based on the key and sends it to the image forming device; in the fifth communication, the image forming device encrypts an operating status instruction based on the key and sends it to the consumable chip, and the consumable chip encrypts an operating status feedback instruction based on the key and sends it to the image forming device.
[0040] In the above communication method, the key is generated by the image forming device and transmitted in plain text. The same set of keys is used throughout the entire communication process. If the key is intercepted by a third party, the third party can decrypt the communication content between the image forming device and the consumable chip, resulting in poor communication security.
[0041] Based on this, embodiments of the present invention provide a communication control method, device, controller, and consumable chip for an image forming device, which can be applied to communication between an image forming device and a consumable chip.
[0042] The embodiment of the present invention discloses a communication control method for an image forming device, which is applied to a controller of the image forming device, such as Figure 3 As shown, the method includes the following steps:
[0043] Step S301, establishing a communication connection with a consumable chip installed on an image forming device, and sending a first key to the consumable chip;
[0044] The consumables chip can be installed in consumables of an image forming device, such as toner cartridges, ink cartridges, and waste ink bins; the consumables chip is used to store consumables information, such as the consumable model, the amount of consumables used each time, the number of times the consumables are used, and the remaining amount of consumables. The first key can be used in an encryption algorithm or a decryption algorithm.
[0045] In one implementation, a controller sends a handshake instruction to a consumable chip installed on an image forming device. If, within a preset time, the controller receives a handshake feedback instruction from the consumable chip and the handshake information in the feedback instruction is correct, the controller confirms that the handshake is successful. The controller then sends a certificate acquisition instruction to the consumable chip installed on the image forming device. Because the certificate stored in the consumable chip is unique, the controller can verify the legitimacy of the consumable chip through the certificate. After the controller obtains the certificate and confirms the legitimacy of the certificate, it can generate a first key based on the certificate. In actual implementation, after generating the first key, the controller can send the first key to the consumable chip in plain text, so that the consumable chip stores the first key. After the consumable chip confirms the first key, the controller typically receives a confirmation instruction from the consumable chip.
[0046] Step S302: Sending a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key;
[0047] The key update instruction may be encrypted by a designated key, where the designated key may be the first key or a key obtained by updating the first key.
[0048] In an optional manner, the key update instruction may be triggered by different preset conditions, including reaching a preset time interval, or reaching a preset number of instruction transmission times, or reaching a randomly generated time interval, or a preset running event.
[0049] Specifically, the controller can select the frame header corresponding to the key update instruction according to the communication mode of plain text or cipher text, and then generate the key update instruction based on the second key and the frame header; it can be understood that the frame headers corresponding to plain text or cipher text are different; the second key can be used for encryption algorithm or decryption algorithm, and the second key is usually set to be different from the first key. Of course, the first key and the second key can also be set to be the same.
[0050] Here, you can choose to use plain text or cipher text for communication according to actual needs. For example, when transmitting consumables update information during the printing process, you can choose plain text for communication to avoid errors in encryption, decryption or communication transmission, and the key update time is short. It can be understood that the plain text communication method is more suitable for scenarios with high real-time requirements; if the communication content is highly confidential, cipher text can be used for communication, thereby increasing the difficulty of decrypting the key and enhancing the security of communication.
[0051] Furthermore, the controller generates a plaintext data frame or a ciphertext data frame, and uses a plaintext or ciphertext communication method to send a data frame carrying a key update instruction of the second key to the consumable chip, thereby controlling the consumable chip to update the first key to the second key.
[0052] Step S303: Sending the designated control instruction encrypted with the second key to the consumable chip; the consumable chip decrypts the designated control instruction with the second key and generates a feedback signal corresponding to the designated control instruction;
[0053] The designated control instruction may specifically be a chip information reading instruction, or an operation status writing instruction or an operation status reading instruction.
[0054] In actual implementation, the controller can encrypt the specified control instruction according to the second key and the frame header through a preset encryption algorithm to obtain the encrypted specified control instruction, and send the specified control instruction to the consumable chip, so as to control the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generate a feedback signal corresponding to the specified control instruction, and encrypt the feedback signal based on the second key, and send the encrypted feedback signal to the controller.
[0055] Step S304: receiving a feedback signal encrypted based on the second key sent from the consumable chip.
[0056] Specifically, after the controller sends the encrypted specified control instruction to the consumable chip, the consumable chip generates a feedback signal corresponding to the specified control instruction and sends the feedback signal to the controller after encrypting it with the second key. Then the controller can receive the feedback signal encrypted based on the second key sent from the consumable chip.
[0057] The communication control method of the above-mentioned image forming device establishes a communication connection with a consumable chip installed on the image forming device, and sends a first key to the consumable chip; sends a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key; sends a specified control instruction encrypted based on the second key to the consumable chip, controls the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generates a feedback signal corresponding to the specified control instruction; receives a feedback signal encrypted based on the second key sent from the consumable chip.
[0058] In this method, after sending the key to the consumable chip, the key is updated by the key update instruction, and then the specified control instruction encrypted based on the new key is sent to the consumable chip. This method updates the communication key by sending the key update instruction, and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0059] In a specific implementation, a first timed event is preset; wherein, the first timed event is triggered every specified time period, or when the number of sent specified control instructions reaches a preset threshold.
[0060] That is, the triggering condition of the first timed event is usually a fixed condition, such as reaching a fixed duration within an interval period, a fixed number of instructions sent, and the like.
[0061] In one embodiment, the first timed event is triggered every specified time period. For example, the specified time period is set by a hardware timer or a software counter. For example, if the specified time period is 10 seconds, the first timed event is triggered every 10 seconds.
[0062] In another method, when the number of specified control instructions sent reaches a preset threshold, the first timed event is triggered. For example, the preset threshold is 100 times. Then, when the number of specified control instructions sent reaches 100 times, the first timed event is triggered, or, whenever the number of specified control instructions sent reaches 100 times, the first timed event is triggered.
[0063] Specifically, in response to the first timing event being triggered, a key update instruction carrying the second key is sent to the consumable chip.
[0064] In actual implementation, if the first timing event is triggered, the controller will send a key update instruction carrying the second key to the consumable chip after completing the sending of the previous communication instruction.
[0065] In a specific implementation, a second timed event is preset; wherein, the second timed event is triggered every random duration, or every random number of sent control instructions.
[0066] That is, the triggering condition of the second timed event is usually a random condition, such as reaching a random duration within an interval period, a random number of instructions sent, and the like.
[0067] In one method, a second timing event is triggered every random duration. For example, the controller dynamically adjusts the random duration based on a pseudo-random number generator (PRNG), such as randomly generating a value between 5 and 30 seconds as the random duration. After the random duration is generated, the timer is used to count the time. After the timer ends, the second timing event is triggered.
[0068] In another method, the second timed event is triggered every random number of specified control instructions sent. For example, a value between 100 and 200 is randomly generated as the random number. Then, after the random number is generated, the second timed event is triggered as long as the number of specified control instructions sent reaches the random number.
[0069] Specifically, in response to the second timing event being triggered, a key update instruction carrying the second key is sent to the consumable chip.
[0070] In actual implementation, if the second timing event is triggered, the controller will send a key update instruction carrying the second key to the consumable chip after completing the sending of the previous communication instruction.
[0071] In a specific implementation, an update trigger event is pre-set; wherein the update trigger event is triggered based on a specified operation event, and the specified operation event includes: an operation event of the controller and / or the consumable chip.
[0072] That is, the triggering condition of the update triggering event is usually a specified running event, and the update triggering event can be triggered according to the specified running event.
[0073] In one example, the update trigger event is triggered before or after a specified operation event, and the specified operation event may include an operation event of the controller or the consumable chip, or may include operation events of both the controller and the consumable chip.
[0074] Specifically, in response to the update triggering event being triggered, a key update instruction carrying the second key is sent to the consumable chip.
[0075] In actual implementation, if the update trigger event is triggered, the controller will send a key update instruction carrying the second key to the consumable chip after completing the sending of the previous communication instruction.
[0076] In one implementation, the specified execution event includes at least one of the following:
[0077] Method 1: Generate a chip information reading instruction for the consumable chip; wherein the chip information reading instruction is used to read the consumable information of the consumable chip;
[0078] In one example, the controller generates a chip information reading instruction for the consumable chip. The chip information reading instruction is generally used to read the consumable information recorded in the consumable chip, such as the number of printable pages, production time, version information, etc. corresponding to the consumable.
[0079] Method 2: Generate a status information write instruction for the consumable chip; wherein the status information write instruction is used to update the consumable information of the consumable chip;
[0080] In one example, the controller generates a status information write instruction for the consumable chip, which is generally used to update the consumable information of the consumable chip, for example, when printing using an image forming device, updating the number of printable pages recorded in the consumable chip, or updating the remaining amount of consumables.
[0081] Method 3, generating a status information reading instruction for the consumable chip; wherein the status information reading instruction includes instructions for verifying the working status of the consumable chip, the image forming device is about to execute a printing task, the image forming device completes the printing task, and the consumable amount corresponding to the consumable chip reaches a preset consumable reduction threshold.
[0082] In one example, the controller generates a status information reading instruction for the consumable chip. The status information reading instruction is generally used to verify the working status of the consumable chip. For example, during printing using an image forming device, real-time detection of the remaining amount of consumables, or the amount of consumables used for each print, or voltage information in the power-on state, or confirmation that the image forming device is connected to the consumable chip, etc.
[0083] The status information reading instruction may also be used when the image forming device is about to execute a print task; for example, the controller detects that the image forming device is about to execute a print task.
[0084] The status information reading instruction may also be used by the image forming device to complete a printing task; for example, the controller detects that the image forming device is about to complete a printing task.
[0085] The status information reading instruction can also be used when the consumable amount corresponding to the consumable chip reaches a preset consumable amount threshold.
[0086] For example, the preset consumables reduction threshold is 2%. At the end of the previous printing task, the consumables chip updates the remaining consumables to 79%. However, before the next printing task is executed, the remaining consumables obtained by reading the consumables chip record is 60%. The consumables reduction is 19%, which exceeds the preset consumables reduction threshold. Then, it is confirmed that the consumables amount corresponding to the consumables chip has reached the preset consumables reduction threshold.
[0087] In a specific implementation, a key update instruction carrying the second key is generated; the key update instruction is sent to the consumable chip, or the key update instruction is encrypted based on the first key, and the encrypted key update instruction is sent to the consumable chip.
[0088] In actual implementation, the controller can modify the frame header in the second key according to the plaintext or ciphertext communication method, and generate a key update instruction carrying the second key; specifically, the key update instruction is transmitted in plaintext, then a plaintext data frame can be generated according to the key update instruction, and the key update instruction is sent to the consumable chip in plaintext, or, the key update instruction is transmitted in ciphertext, then the key update instruction can be encrypted according to the first key to generate a ciphertext data frame, and the encrypted key update instruction is sent to the consumable chip in ciphertext.
[0089] In a specific implementation, an update result instruction of the consumable chip in response to the key update instruction is received; if the update result instruction indicates that the consumable chip has successfully updated the key, confirming that the second key update is successful;
[0090] In one example, the controller receives an update result instruction from the consumable chip for the key update instruction. If, according to the update result instruction, the controller obtains information that the consumable chip has successfully updated the key, then the controller confirms that the second key update is successful and can use the second key to encrypt the specified control instruction.
[0091] If the update result instruction indicates that the key update of the consumable chip is abnormal, the key update instruction carrying the second key is sent again;
[0092] In actual implementation, if the controller obtains information that an abnormality occurs when the consumable chip updates the key according to the information of the update result instruction, the controller will send the key update instruction carrying the second key to the consumable chip again.
[0093] If the number of times the key update instruction carrying the second key is sent reaches a preset number threshold, it is determined that the second key update has failed, and the first key is continued to be used to encrypt subsequent designated control instructions.
[0094] In one example, if the controller sends a key update instruction carrying a second key to the consumable chip, and the number of times it is sent reaches a preset threshold, such as the preset threshold is 3 times, then the controller confirms that the second key update has failed, and then when subsequently sending the specified control instruction, it still uses the first key for encryption.
[0095] In a specific implementation method, a second key is obtained; wherein the second key is associated with a key identifier; different keys correspond to different key identifiers; based on the key identifier, it is determined whether the second key has been sent to the consumable chip within a specified time period; if the second key is not sent to the consumable chip within the specified time period, a key update instruction carrying the second key is generated.
[0096] The key identifier may be a serial number of the second key association; typically, different key associations correspond to different key identifiers.
[0097] In one example, the controller obtains a second key associated with a key identifier, and then can determine whether the second key has been sent to the consumable chip within a specified time period based on the key identifier; if the second key is not sent to the consumable chip within the specified time period, the controller generates a key update instruction carrying the second key.
[0098] By using the above method, the time interval for repeatedly using the same key can be extended, or the same key can be avoided from being reused.
[0099] The embodiment of the present invention also discloses a communication control method for an image forming device, which is applied to a consumable chip installed on the image forming device, such as Figure 4 As shown, the method includes the following steps:
[0100] Step S401, establishing a communication connection with a controller of an image forming device, and receiving and saving a first key sent by the controller;
[0101] In one implementation, after receiving a handshake command from a controller of an image forming device, the consumable chip sends a handshake feedback command to the controller to establish a communication connection with the controller. After receiving a first key from the controller, the consumable chip stores the first key in a memory and sends a confirmation command to the controller. The first key can be used in an encryption algorithm or a decryption algorithm.
[0102] Step S402: receiving a key update instruction carrying a second key from a controller, and updating the first key to the second key; wherein the second key is different from the first key;
[0103] Specifically, after the consumable chip receives the key update instruction carrying the second key sent by the controller, if it recognizes that the frame header of the data frame indicates plain text, it directly parses the data frame to obtain the second key carried in the key update instruction; if it is determined to be ciphertext, it can decrypt the data frame according to the first key. After identifying the frame header corresponding to the ciphertext, it obtains the second key carried in the key update instruction. The second key can be used for encryption algorithm or decryption algorithm. The second key is usually set to be different from the first key. Of course, the first key and the second key can also be set to be the same.
[0104] Step S403: receiving a designated control instruction encrypted with the second key sent by the controller, and decrypting the instruction with the second key to obtain the designated control instruction;
[0105] In actual implementation, after the consumable chip receives the specified control instruction sent by the controller that is encrypted based on the second key, it decrypts the encrypted specified control instruction according to the second key based on the preset decryption algorithm. After identifying the frame header corresponding to the ciphertext, it extracts the data information of the specified control instruction from the data frame based on the frame header.
[0106] Step S404: Generate a feedback signal corresponding to the specified control instruction, encrypt the feedback signal based on the second key, and send the encrypted feedback signal to the controller.
[0107] The feedback signal usually corresponds to a designated control instruction. For example, if the designated control instruction is used to obtain the remaining amount of the current consumable, the feedback signal includes the remaining amount of the current consumable.
[0108] Specifically, the consumable chip generates a corresponding feedback signal according to the specified control instruction, then encrypts the feedback signal based on the second key through a preset encryption algorithm, and sends the encrypted feedback signal to the controller.
[0109] The communication control method of the above-mentioned image forming device establishes a communication connection with the controller of the image forming device, receives and saves the first key sent by the controller; receives a key update instruction carrying the second key sent by the controller, and updates the first key to the second key; wherein the second key is different from the first key; receives a specified control instruction encrypted based on the second key sent by the controller, and decrypts it based on the second key to obtain the specified control instruction; generates a feedback signal corresponding to the specified control instruction, encrypts the feedback signal based on the second key, and sends the encrypted feedback signal to the controller.
[0110] In this method, after saving the key sent by the controller, the key is updated according to the key update instruction to obtain a new key, and then the received new instruction is decrypted based on the new key to obtain a specified control instruction, and the feedback signal corresponding to the specified control instruction is encrypted based on the new key and sent to the controller. This method updates the communication key according to the key update instruction and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0111] In a specific implementation manner, an update result instruction for the key update instruction is sent to the controller.
[0112] The update result instruction may indicate that the consumable chip has successfully updated the key, confirming that communication is performed using the second key, or may indicate that the consumable chip has updated the key abnormally.
[0113] In actual implementation, after the consumable chip updates the first key to the second key, if it is transmitted in plain text, then the update result instruction for the key update instruction can be sent to the controller in plain text; if it is transmitted in cipher text, then the update result instruction can be encrypted according to the first key or the second key, and then the update result instruction for the key update instruction is sent to the controller.
[0114] In a specific embodiment, Figure 5 FIG. 1 shows a flow chart of communication between an image forming device and a consumable chip, including:
[0115] Step S501, handshake instruction;
[0116] The handshake instruction is used to establish a communication connection between the image forming device and the consumable chip.
[0117] Step S502, certificate instruction;
[0118] The certificate instruction is used by the image forming device to confirm the legitimacy of the consumable chip and, optionally, to generate a key after the consumable chip is legitimate.
[0119] Step S503, first key instruction;
[0120] The first key instruction is used by the controller or the consumable chip to perform encryption or decryption operations on communication data.
[0121] Step S504, key update instruction;
[0122] The key update instruction is used to send an updated key to the consumable chip.
[0123] Step S505, chip information instruction 1;
[0124] The chip information instruction 1 is used to send an instruction containing read consumable information to the consumable chip for the first time.
[0125] Step S506, key update instruction;
[0126] The key update instruction is used to send an updated key to the consumable chip.
[0127] Step S507, chip information reading instruction T;
[0128] The chip information reading instruction T is used to send an instruction containing read consumable information to the consumable chip for the Tth time.
[0129] Step S508, key update instruction;
[0130] The key update instruction is used to send an updated key to the consumable chip.
[0131] Step S509, running state instruction 1;
[0132] The operation status instruction 1 is used when the controller sends an instruction containing written consumable information to the consumable chip for the first time during the operation of the image forming device, or sends an instruction containing read consumable information to the consumable chip for the first time.
[0133] Step S510, key update instruction;
[0134] The key update instruction is used to send an updated key to the consumable chip.
[0135] Step S511, running status instruction N.
[0136] The operation status instruction N is used when the controller sends an instruction containing written consumable information to the consumable chip for the Nth time during the operation of the image forming device, or sends an instruction containing read consumable information to the consumable chip for the Nth time.
[0137] exist Figure 6 , a schematic diagram of communication between an image forming device and a consumable chip is shown:
[0138] In the first communication, the image forming device sends a handshake instruction to the consumable chip in plain text, and the consumable chip sends a handshake feedback instruction to the image forming device in plain text;
[0139] In the second communication, the image forming device sends a certificate acquisition instruction to the consumable chip in plain text, and the consumable chip sends a certificate feedback instruction to the image forming device in plain text;
[0140] In the third communication, the image forming device sends the information of key 1 to the consumable chip in plain text, and the consumable chip sends the confirmation information of key 1 to the image forming device in plain text;
[0141] Optionally, after the third communication, a fourth communication is performed, wherein the image forming device sends a key 2 update instruction encrypted by key 1 to the consumable chip via ciphertext, and the consumable chip sends a key 2 confirmation instruction encrypted by key 1 or key 2 to the image forming device via ciphertext;
[0142] Optionally, after the fourth communication, a fifth communication is performed, wherein the image forming device sends a key 3 update instruction to the consumable chip in plain text or ciphertext encrypted by key 2, and the consumable chip sends a key 3 confirmation instruction to the image forming device in plain text or ciphertext encrypted by key 2 or key 3;
[0143] In the sixth communication, the image forming device sends the chip information reading instruction 1 encrypted by the key 3 to the consumable chip via ciphertext, and the consumable chip sends the chip information feedback instruction 1 encrypted by the key 3 to the image forming device via ciphertext;
[0144] Optionally, after the sixth communication, a seventh communication is performed, wherein the image forming device sends a key 4 update instruction to the consumable chip in plain text or in ciphertext encrypted by key 3, and the consumable chip sends a key 4 confirmation instruction to the image forming device in plain text or in ciphertext encrypted by key 3 or key 4;
[0145] In the eighth communication, the image forming device sends the chip information reading instruction 2 encrypted by the key 4 to the consumable chip via ciphertext, and the consumable chip sends the chip information feedback instruction 2 encrypted by the key 4 to the image forming device via ciphertext;
[0146] Optionally, after the eighth communication, a ninth communication is performed, where the image forming device sends a key 5 update instruction to the consumable chip in plain text or in ciphertext encrypted by key 4, and the consumable chip sends a key 5 confirmation instruction to the image forming device in plain text or in ciphertext encrypted by key 4 or key 5;
[0147] In the tenth communication, the image forming device sends the operation status instruction 1 encrypted with the key 5 to the consumable chip via ciphertext, and the consumable chip sends the operation status instruction 1 encrypted with the key 5 to the image forming device via ciphertext;
[0148] Optionally, after the tenth communication, an eleventh communication is performed, and the image forming device sends a key 6 update instruction to the consumable chip in plain text or ciphertext encrypted by key 5, and the consumable chip sends a key 6 confirmation instruction to the image forming device in plain text or ciphertext encrypted by key 5 or key 6;
[0149] In the twelfth communication, the image forming device sends the operation status instruction 2 encrypted with the key 6 to the consumable chip via ciphertext, and the consumable chip sends the operation status instruction 2 encrypted with the key 6 to the image forming device via ciphertext.
[0150] The above embodiments of the present application include the following advantages:
[0151] This embodiment inserts a key update instruction after the key instruction to dynamically replace the key, so that the key used in each communication is different, thereby improving the security of communication.
[0152] This embodiment updates the communication key by setting instructions, so that the encrypted ciphertext is inconsistent, which increases the difficulty of cracking and further improves the data security during the communication process.
[0153] Figure 7 This is a schematic diagram of a communication control device for an image forming device provided by an embodiment of the present invention. The device is provided in a controller of the image forming device and includes:
[0154] The key sending module 71 is used to establish a communication connection with the consumable chip installed on the image forming device and send a first key to the consumable chip;
[0155] An update instruction sending module 72 is configured to send a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key;
[0156] The control instruction sending module 73 is used to send the designated control instruction encrypted based on the second key to the consumable chip, control the consumable chip to decrypt the designated control instruction based on the second key, and generate a feedback signal corresponding to the designated control instruction;
[0157] The feedback signal receiving module 74 is configured to receive a feedback signal encrypted based on the second key and sent from the consumable chip.
[0158] The communication control device of the above-mentioned image forming device establishes a communication connection with the consumable chip installed on the image forming device, and sends a first key to the consumable chip; sends a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key; sends a specified control instruction encrypted based on the second key to the consumable chip, controls the consumable chip to decrypt based on the second key to obtain the specified control instruction, and generates a feedback signal corresponding to the specified control instruction; receives a feedback signal encrypted based on the second key sent from the consumable chip.
[0159] After sending the key to the consumable chip, the key is updated through the key update instruction, and then the specified control instruction encrypted based on the new key is sent to the consumable chip. This method updates the communication key by sending the key update instruction, and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0160] The above-mentioned device also includes a first timed event setting module, which is used to: pre-set a first timed event; wherein, the first timed event is triggered every specified time period, or when the number of specified control instructions sent reaches a preset threshold; the above-mentioned update instruction sending module is also used to: in response to the first timed event being triggered, send a key update instruction carrying a second key to the consumable chip.
[0161] The above-mentioned device also includes a second timed event setting module, which is used to: pre-set a second timed event; wherein, the second timed event is triggered every random time length, or every random number of specified control instructions sent; the above-mentioned update instruction sending module is also used to: in response to the second timed event being triggered, send a key update instruction carrying the second key to the consumable chip.
[0162] The above-mentioned device also includes an update trigger event setting module, which is used to: pre-set an update trigger event; wherein the update trigger event is triggered based on a specified operation event, and the specified operation event includes: an operation event of the controller and / or consumable chip; the above-mentioned update instruction sending module is also used to: in response to the update trigger event being triggered, send a key update instruction carrying a second key to the consumable chip.
[0163] The designated operation event includes at least one of the following: generating a chip information reading instruction for the consumable chip; wherein the chip information reading instruction is used to read the consumable information of the consumable chip; generating a status information writing instruction for the consumable chip; wherein the status information writing instruction is used to update the consumable information of the consumable chip; generating a status information reading instruction for the consumable chip; wherein the status information reading instruction includes instructions for verifying the working status of the consumable chip, the image forming device is about to execute a printing task, the image forming device completes the printing task, and the consumable amount corresponding to the consumable chip reaches a preset consumable decrease threshold.
[0164] The update instruction sending module is further used to: generate a key update instruction carrying the second key; send the key update instruction to the consumable chip, or encrypt the key update instruction based on the first key and send the encrypted key update instruction to the consumable chip.
[0165] The above-mentioned device also includes an update result instruction receiving module, which is used to: receive the update result instruction of the consumable chip for the key update instruction; if the update result instruction indicates that the consumable chip has successfully updated the key, confirm that the second key update is successful; if the update result instruction indicates that the consumable chip has updated the key abnormally, send the key update instruction carrying the second key again; if the number of times the key update instruction carrying the second key is sent reaches a preset number threshold, confirm that the second key update has failed, and continue to use the first key to encrypt subsequent designated control instructions.
[0166] The above-mentioned device also includes an update instruction generation module, which is used to: obtain a second key; wherein the second key is associated with a key identifier; different keys correspond to different key identifiers; based on the key identifier, determine whether the second key has been sent to the consumable chip within a specified time period; if the second key is not sent to the consumable chip within the specified time period, generate a key update instruction carrying the second key.
[0167] Figure 8 This is a schematic diagram of a communication control device for an image forming device provided by an embodiment of the present invention. The device is provided in a controller of the image forming device and includes:
[0168] The key storage module 81 is used to establish a communication connection with the controller of the image forming device, and receive and store the first key sent by the controller;
[0169] a key updating module 82 configured to receive a key updating instruction carrying a second key sent by the controller, and update the first key to the second key; wherein the second key is different from the first key;
[0170] A control instruction decryption module 83 is configured to receive a designated control instruction sent by the controller that is encrypted using the second key, and decrypt the designated control instruction using the second key;
[0171] The feedback signal sending module 84 is configured to generate a feedback signal corresponding to a specified control instruction, encrypt the feedback signal based on a second key, and send the encrypted feedback signal to the controller.
[0172] The communication control device of the above-mentioned image forming device establishes a communication connection with the controller of the image forming device, receives and saves the first key sent by the controller; receives a key update instruction carrying the second key sent by the controller, and updates the first key to the second key; wherein the second key is different from the first key; receives a specified control instruction sent by the controller that is encrypted based on the second key, and decrypts it based on the second key to obtain the specified control instruction; generates a feedback signal corresponding to the specified control instruction, encrypts the feedback signal based on the second key, and sends the encrypted feedback signal to the controller.
[0173] After saving the key sent by the controller, the key is updated according to the key update instruction to obtain a new key, and then the received new instruction is decrypted based on the new key to obtain the specified control instruction, and the feedback signal corresponding to the specified control instruction is encrypted based on the new key and sent to the controller. This method updates the communication key according to the key update instruction and communicates based on the updated key, thereby improving the security of communication between the image forming device and the consumable chip.
[0174] The above device also includes an update result instruction sending module, which is used to send an update result instruction for the key update instruction to the controller.
[0175] This embodiment also provides a controller or a consumable chip, including a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, and the processor executing the computer-executable instructions to implement the communication control method of the above-mentioned image forming device.
[0176] See also Figure 9 As shown, the controller or consumable chip includes a processor 100 and a memory 101. The memory 101 stores computer executable instructions that can be executed by the processor 100. The processor 100 executes the computer executable instructions to implement the communication control method of the above-mentioned image forming device.
[0177] Further, Figure 9 The controller or consumable chip shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0178] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0179] The processor 100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 100 or software instructions. The above processor 100 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 101. The processor 100 reads the information in the memory 101 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0180] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the communication control method of the image forming device.
[0181] The computer program product of the communication control method, device, controller and consumable chip of the image forming device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0182] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0183] In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0184] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0185] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the systems or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0186] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. Such modifications, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A communication control method for an image forming device, characterized in that: The method is applied to a controller of an image forming device, and the method includes: establishing a communication connection with a consumable chip mounted on the image forming device, and sending a first key to the consumable chip; Sending a key update instruction carrying a second key to the consumable chip to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key; sending a designated control instruction encrypted based on the second key to the consumable chip, controlling the consumable chip to decrypt based on the second key to obtain the designated control instruction, and generating a feedback signal corresponding to the designated control instruction; Receive a feedback signal encrypted based on the second key and sent from the consumable chip.
2. The method according to claim 1, characterized in that Before the step of sending a key update instruction carrying the second key to the consumable chip, the method further includes: Presetting a first timed event; wherein, the first timed event is triggered every specified time period, or when the number of sent specified control instructions reaches a preset threshold; The step of sending a key update instruction carrying the second key to the consumable chip includes: sending a key update instruction carrying the second key to the consumable chip in response to the first timing event being triggered.
3. The method according to claim 1, characterized in that Before the step of sending a key update instruction carrying the second key to the consumable chip, the method further includes: Presetting a second timed event; wherein the second timed event is triggered every random duration, or every random number of times the specified control instructions are sent; The step of sending the key update instruction carrying the second key to the consumable chip includes: sending the key update instruction carrying the second key to the consumable chip in response to the second timing event being triggered.
4. The method according to claim 1, wherein Before the step of sending a key update instruction carrying the second key to the consumable chip, the method further includes: Presetting an update trigger event; wherein the update trigger event is triggered based on a specified operation event, and the specified operation event includes: an operation event of the controller and / or the consumable chip; The step of sending the key update instruction carrying the second key to the consumable chip includes: sending the key update instruction carrying the second key to the consumable chip in response to the update triggering event being triggered.
5. The method according to claim 4, characterized in that The specified operation event includes at least one of the following: Generate a chip information reading instruction for the consumable chip; wherein the chip information reading instruction is used to read the consumable information recorded by the consumable chip; Generate a status information write instruction for the consumable chip; wherein the status information write instruction is used to update the consumable information of the consumable chip; Generate a status information reading instruction for the consumable chip; wherein, the status information reading instruction includes instructions for verifying the working status of the consumable chip, the image forming device is about to execute a printing task, the image forming device completes the printing task, and the consumable amount corresponding to the consumable chip reaches a preset consumable reduction threshold.
6. The method according to claim 1, characterized in that The step of sending a key update instruction carrying a second key to the consumable chip includes: generating a key update instruction carrying a second key; The key update instruction is sent to the consumable chip, or the key update instruction is encrypting the key update instruction based on the first key, and the encrypted key update instruction is sent to the consumable chip.
7. The method according to claim 1, characterized in that After the step of sending a key update instruction carrying the second key to the consumable chip, the method further includes: receiving an update result instruction from the consumable chip in response to the key update instruction; If the update result instruction indicates that the consumable chip has successfully updated the key, confirming that the second key has been successfully updated; If the update result instruction indicates that the key update of the consumable chip is abnormal, resending the key update instruction carrying the second key; If the number of times the key update instruction carrying the second key is sent reaches a preset number threshold, it is determined that the second key update has failed, and the first key is continued to be used to encrypt subsequent designated control instructions.
8. The method according to claim 1, characterized in that Before the step of sending a key update instruction carrying the second key to the consumable chip, the method further includes: Obtaining a second key; wherein the second key is associated with a key identifier; different keys correspond to different key identifiers; determining, based on the key identifier, whether the second key has been sent to the consumable chip within a specified time period; If the second key is not sent to the consumable chip within a specified time period, a key update instruction carrying the second key is generated.
9. A communication control method for an image forming device, characterized in that: The method is applied to a consumable chip mounted on an image forming device, and the method comprises: establishing a communication connection with a controller of the image forming device, and receiving and storing a first key sent by the controller; receiving a key update instruction carrying a second key sent by the controller, and updating the first key to the second key; wherein the second key is different from the first key; receiving a designated control instruction sent by the controller and encrypted based on the second key, and decrypting the instruction based on the second key to obtain the designated control instruction; Generate a feedback signal corresponding to the designated control instruction, encrypt the feedback signal based on the second key, and send the encrypted feedback signal to the controller.
10. The method according to claim 9, characterized in that After receiving the key update instruction carrying the second key sent by the controller and updating the first key to the second key, the method further includes: sending an update result instruction for the key update instruction to the controller.
11. A communication control device for an image forming apparatus, characterized in that: The device is provided in a controller of an image forming device, and includes: a key sending module, configured to establish a communication connection with a consumable chip mounted on the image forming device and send a first key to the consumable chip; an update instruction sending module, configured to send a key update instruction carrying a second key to the consumable chip, so as to control the consumable chip to update the first key to the second key; wherein the second key is different from the first key; a control instruction sending module, configured to send a designated control instruction encrypted based on the second key to the consumable chip, control the consumable chip to decrypt the designated control instruction based on the second key, and generate a feedback signal corresponding to the designated control instruction; A feedback signal receiving module is used to receive a feedback signal encrypted based on the second key and sent from the consumable chip.
12. A communication control device for an image forming apparatus, characterized in that: The device is provided on a consumable chip mounted on an image forming device, and the device comprises: a key storage module, configured to establish a communication connection with a controller of the image forming device, and receive and store a first key sent by the controller; a key updating module, configured to receive a key updating instruction carrying a second key sent by the controller, and update the first key to the second key; wherein the second key is different from the first key; a control instruction decryption module, configured to receive a designated control instruction sent by the controller and encrypted based on the second key, and decrypt the designated control instruction based on the second key; A feedback signal sending module is used to generate a feedback signal corresponding to the specified control instruction, encrypt the feedback signal based on the second key, and send the encrypted feedback signal to the controller.
13. A controller, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the communication control method of the image forming device according to any one of claims 1 to 8.
14. A consumable chip, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the communication control method of the image forming device according to any one of claims 9 to 10.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the communication control method of the image forming device described in any one of 1-8, or implement the communication control method of the image forming device described in any one of claims 9-10.