CN106610859A - Program update method, device and system, and imaging box - Google Patents

Program update method, device and system, and imaging box Download PDF

Info

Publication number
CN106610859A
CN106610859A CN201611258824.4A CN201611258824A CN106610859A CN 106610859 A CN106610859 A CN 106610859A CN 201611258824 A CN201611258824 A CN 201611258824A CN 106610859 A CN106610859 A CN 106610859A
Authority
CN
China
Prior art keywords
data
updated
updating
consumable chip
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611258824.4A
Other languages
Chinese (zh)
Inventor
邓超爱
孙学进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apex Microelectronics Co Ltd
Original Assignee
Apex Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apex Microelectronics Co Ltd filed Critical Apex Microelectronics Co Ltd
Priority to CN201611258824.4A priority Critical patent/CN106610859A/en
Publication of CN106610859A publication Critical patent/CN106610859A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Or Security For Electrophotography (AREA)

Abstract

The embodiment of the invention provides a program update method, a program update device, a program update system and an imaging box. On the one hand, the method provided by the embodiment of the invention comprises the following steps: update equipment acquires update data; then the update equipment sends the update data to a consumable item chip, and thus the consumable item chip receives the data sent by the update equipment; then the consumable chip recognizes whether the received data is the data to be updated; and if the condition that the received data is the data to be updated is recognized, the consumable chip writes the data to be updated into a specified address according to an update mode of the data to be updated to update a specified program. Therefore, the technical scheme of the method provided by the embodiment of the invention is high in flexibility, and avoids the waste of consumable item chip resources.

Description

Program updating method, device and system and imaging box
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and an imaging cartridge for updating a program.
[ background of the invention ]
At present, the program area of the consumable chip is generally burned in the solidified memory. When the consumable chip leaves the factory, writing a program in the solidified memory; then, during the use process of the consumable chip, the solidified memory cannot be read and written, and the program of the program area of the consumable chip is fixed and unchangeable.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the prior art, when the program in the consumable chip needs to be updated, the program in the consumable chip cannot be updated, and the program can be updated only by issuing a new-version consumable chip, so that the flexibility is poor, and the resource waste is caused.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a program updating method, apparatus, system and imaging box, so as to solve the problem of poor flexibility and resource waste of a consumable chip in the prior art caused by the fact that a program area of the consumable chip is not readable and writable.
In a first aspect, an embodiment of the present invention provides a program updating method, including:
the updating equipment acquires data to be updated;
the updating equipment sends the data to be updated to a consumable chip;
the consumable chip receives the data sent by the updating equipment;
the consumable chip identifies whether the received data is data to be updated;
and if the received data is identified as the data to be updated, the consumable chip writes the data to be updated into a specified address according to the updating mode of the data to be updated so as to update a specified program.
In a second aspect, an embodiment of the present invention provides a program updating method, executed in an updating device, where the method includes:
acquiring data to be updated;
and sending the data to be updated to a consumable chip.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
The above-described aspect and any possible implementation manner further provide an implementation manner for sending the data to be updated to a consumable chip, including:
encrypting the data to be updated;
and sending the encrypted data to be updated to the consumable chip.
The above-described aspects and any possible implementations further provide an implementation, and the method further includes:
sending an operation instruction to the consumable chip so that the consumable chip operates the specified program according to the operation instruction and returns an operation result;
receiving the operation result;
and determining whether the consumable chip is updated successfully or not according to the operation result.
In a third aspect, an embodiment of the present invention provides a program updating method executed in a consumable chip, where the method includes:
receiving data sent by an updating device;
identifying whether the received data is data to be updated;
and if the received data is identified as the data to be updated, writing the data to be updated into a specified address according to the updating mode of the data to be updated so as to realize the updating of a specified program.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where writing the data to be updated to a specified address according to an update manner of the data to be updated, including:
when the updating mode is a first mode, writing the data to be updated into the address indicated by the address information; or,
when the updating mode is a second mode, writing the data to be updated into the address specified by the specified program; or,
and when the updating mode is a third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, before writing the data to be updated into the specified address according to the update manner of the data to be updated, the method further includes:
identifying whether the received data is encrypted data;
and when the received data is the encrypted data, decrypting the data.
The above-described aspects and any possible implementations further provide an implementation, and the method further includes:
receiving an operation instruction sent by the updating equipment;
operating the designated program according to the operating instruction to obtain an operating result;
and returning the operation result to the updating equipment.
In a fourth aspect, an embodiment of the present invention provides a program update system, including:
the updating device is used for acquiring data to be updated;
the updating device is also used for sending the data to be updated to the consumable chip;
the consumable chip is used for receiving the data sent by the updating equipment;
the consumable chip is also used for identifying whether the received data is data to be updated;
and the consumable chip is also used for writing the data to be updated into a specified address according to the updating mode of the data to be updated if the received data is identified as the data to be updated, so as to realize the updating of a specified program.
In a fifth aspect, an embodiment of the present invention provides a program updating apparatus, located in an updating device, where the apparatus includes:
an acquisition unit configured to acquire data to be updated;
and the sending unit is used for sending the data to be updated to the consumable chip.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
the encryption unit is used for encrypting the data to be updated;
the sending unit is further configured to send the encrypted data to be updated to the consumable chip.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
the sending unit is further configured to send an operation instruction to the consumable chip, so that the consumable chip operates the designated program according to the operation instruction, and returns an operation result;
a receiving unit, configured to receive the operation result;
and the determining unit is used for determining whether the consumable chip is updated successfully or not according to the operation result.
In a sixth aspect, an embodiment of the present invention provides a program updating apparatus, located in a consumable chip, where the apparatus includes:
the receiving unit is used for receiving the data sent by the updating equipment;
the first identification unit is used for identifying whether the received data is data to be updated or not;
and the updating unit is used for writing the data to be updated into a specified address according to the updating mode of the data to be updated so as to realize the updating of a specified program if the received data is identified as the data to be updated.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the updating unit is specifically configured to:
when the updating mode is a first mode, writing the data to be updated into the address indicated by the address information; or,
when the updating mode is a second mode, writing the data to be updated into the address specified by the specified program; or,
and when the updating mode is a third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
the second identification unit is used for identifying whether the received data is encrypted data or not before the data to be updated is written into the specified address according to the updating mode of the data to be updated;
and the decryption unit is used for decrypting the data when the received data is encrypted data.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
the receiving unit is further configured to receive an operation instruction sent by the updating device;
the operation unit is used for operating the specified program according to the operation instruction to obtain an operation result;
and the return unit is used for returning the operation result to the updating equipment.
In a seventh aspect, an embodiment of the present invention provides an imaging cartridge, including: a consumable chip;
the consumable chip comprises the second program updating device.
One of the above technical solutions has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic information interaction diagram of a program updating method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a program update method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a program updating method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a program update system according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a first embodiment of a program update apparatus according to the present invention;
FIG. 6 is a functional block diagram of a second embodiment of a program update apparatus according to the present invention;
fig. 7 is a functional block diagram of an imaging cartridge provided by an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, etc. may be used to describe the updating manners in the embodiments of the present invention, these updating manners should not be limited to these terms. These terms are only used to distinguish update modes from each other. For example, the first updating manner may also be referred to as a second updating manner, and similarly, the second updating manner may also be referred to as a first updating manner without departing from the scope of the embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Example one
In order to solve the above problems in the prior art, an embodiment of the present invention provides a program updating method, which is implemented in a system including an updating apparatus and a consumable chip.
Specifically, please refer to fig. 1, which is an information interaction diagram of a program updating method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, the updating device obtains data to be updated.
And S102, the updating equipment sends the data to be updated to the consumable chip.
And S103, the consumable chip receives the data sent by the updating device.
And S104, identifying whether the received data is the data to be updated by the consumable chip.
And S105, if the received data is identified as the data to be updated, the consumable chip writes the data to be updated into the designated address according to the updating mode of the data to be updated so as to update the designated program.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
Example two
The embodiment of the invention provides a program updating method, which is executed in updating equipment.
In the embodiment of the present invention, when the software portion in the consumable chip needs to be updated, the updating device executes the program updating method provided in the embodiment of the present invention.
For example, when a certain program in the consumable chip is not complete and needs to be completed, the scheme can be started. Or, for another example, a blank program segment exists in a position for storing a program in the consumable chip, and the scheme may be started when the blank program segment needs to be filled up so that the consumable chip has a certain function. Alternatively, for example, when a certain program already provided in the consumable chip needs to be changed or rewritten to change the function originally provided in the consumable chip, the scheme may be activated. Or, for another example, some special addresses exist in the level section in the consumable chip, the consumable chip can determine which programs to run according to the values stored in the special addresses, and when the values of the special addresses need to be rewritten to open the runnability of some programs, the scheme can be started.
Specifically, please refer to fig. 2, which is a flowchart illustrating a first embodiment of a program updating method according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
s201, acquiring data to be updated.
And S202, sending the data to be updated to the consumable chip.
In a specific implementation process, the data to be updated may include, but is not limited to: identifier, address information, updating mode, program code needing updating, length, check and the like.
Wherein, the identifier is used for indicating the consumable chip to execute the action of the updating program. For example, the first identifier may be used to indicate that the consumable chip directly overwrites data stored in a specified storage location in the consumable chip after receiving the identifier; alternatively, for another example, the second identifier may be used to instruct the consumable chip to run a program in the consumable chip for addressing after receiving the identifier, and then to rewrite the data stored in the addressed location.
It should be noted that the update mode in the data to be updated is associated with the address information, and the address information may be null or may not be null according to the difference of the update modes. It is understood that the address information is null, which means that the address information may not be included in the data to be updated.
For example, if the updating mode in the data to be updated is to directly utilize the address information in the data to be updated, when the updating device sends the data to be updated to the consumable chip, the address information cannot be null, so that the consumable chip can directly update the data stored at the address according to the address information in the data to be updated.
Or, for another example, if the updating manner in the data to be updated is to call an original program segment in the consumable chip, since the address is already specified in the original program segment, the address information in the data to be updated sent by the updating apparatus may be null.
Or, for another example, if the update mode in the data to be updated is addressing for the consumable chip, the address information in the data to be updated sent to the consumable chip by the update device may be null, because the consumable chip may call its own program to address, and then update the data of the address obtained by addressing.
It should be noted that, in the embodiment of the present invention, the update device may include, but is not limited to: a printer or a third party update device, such as a burner or the like, dedicated to updating the chip.
Based on this, when the update device acquires the data to be updated, there may be several specific ways:
firstly, the updating device directly generates the data to be updated in itself according to the preset information of the data to be updated. At this time, the update apparatus may be a printer or a third party update apparatus.
Specifically, if the update device is a printer, the printer directly generates and sends the data to be updated to the consumable chip, that is, the printer updates the consumable chip.
Or, if the update device is a third-party update device, the third-party update device directly generates and sends the data to be updated to the consumable chip, that is, the third-party update device updates the consumable chip.
And secondly, the updating device is a printer, the printer acquires data to be updated in the third-party updating device, and the data to be updated is generated by the third-party updating device according to preset information of the data to be updated.
At this time, the updating device is a printer, and the printer is responsible for acquiring data to be updated and sending the data to be updated to the consumable chip, that is, the printer updates the consumable chip; in this process, the third party update device is used only to generate the data to be updated.
It should be noted that, when the printer or the third-party update device generates the data to be updated, the data to be updated can be generated according to the information of the data to be updated preset by the user and the program compiling rule in the consumable chip; therefore, after the consumable chip writes the data to be updated into the designated address, the newly written data can be connected with the program codes before and after the designated address.
It should be noted that, in the embodiment of the present invention, the program compiling rule in the consumable chip is not particularly limited, for example, the program compiling rule may include but is not limited to: code formats, use of registers cannot be overridden, stacks must be balanced, etc. In the actual application process, the program compiling rule of the consumable chip can be preset in the updating device in advance.
For example, if the program in the consumable chip is a binary code compiled according to a specified rule, when the printer or the third-party updating device generates the data to be updated, the printer or the third-party updating device inevitably compiles the information of the data to be updated preset by the user according to the specified rule, so as to obtain the data to be updated according to the program compiling rule in the consumable chip.
For step S202, the embodiment of the present invention provides two implementation manners:
in the first mode, after the updating equipment acquires the data to be updated, the data to be updated is directly sent to the consumable chip without other processing.
And secondly, after the updating equipment acquires the data to be updated, the data to be updated is subjected to data processing, and the processed data to be updated is sent to the consumable chip. Among other things, data processing may include, but is not limited to: encryption, compression, format conversion, and the like, which are not particularly limited in this embodiment of the present invention.
In a specific implementation process, the updating device may encrypt data to be updated; and then, sending the encrypted data to be updated to the consumable chip, so that the safety of the data transmission process between the updating equipment and the consumable chip can be improved.
In the embodiment of the invention, when the consumable chip needs to be updated, the program updating process is executed to update the program in the consumable chip; in the embodiment of the invention, the consumable chip can further determine whether the program in the consumable chip is updated successfully.
In a specific implementation process, after the updating device sends the data to be updated to the consumable chip, the updating device can also send an operation instruction to the consumable chip, so that the consumable chip operates the specified program according to the operation instruction and returns an operation result; then, the updating equipment receives the operation result; furthermore, whether the consumable chip is updated successfully or not can be determined according to the operation result.
Specifically, the operation instruction sent by the updating device to the consumable chip is to instruct the consumable chip to call the updated programs obtained according to the newly written data. Thus, if the consumable chip can call the program, the successful operation result can be obtained, which indicates that the consumable chip is successfully updated. On the other hand, if the consumable chip cannot call the program, the running result of the running failure is obtained, and thus, the updating device can determine that the consumable chip fails to be updated, so that the consumable chip can be determined not to be updated, and then, the updating device can realize the screening of whether the consumable chip is available.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
EXAMPLE III
The embodiment of the invention provides a program updating method, which is executed in a consumable chip.
Specifically, please refer to fig. 3, which is a flowchart illustrating a second embodiment of the program updating method according to the embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
s301, receiving data sent by the updating device.
S302, identifying whether the received data is data to be updated.
And S303, if the received data is identified as the data to be updated, writing the data to be updated into the specified address according to the updating mode of the data to be updated so as to update the specified program.
It should be noted that the update device may include, but is not limited to: printers or third party update devices that are dedicated to updating chips, e.g., burn-in instruments, etc.; the embodiment of the present invention is not particularly limited to this.
Specifically, since there is a possibility that other data may interact between the updating device and the consumable chip, after the consumable chip receives the data sent by the updating device, it needs to identify the data to determine whether the newly received data is the data to be updated. The specific implementation manner of the identification data of the consumable chip is not particularly limited in the embodiments of the present invention.
For example, the consumable chip may determine whether the received data includes the designation information, and if it is identified that the received data includes the designation information, determine that the received data is to-be-updated data; otherwise, the received data is determined not to be the data to be updated.
Specifically, if the specified information is an update mode and a program code to be updated, the consumable chip identifies whether the data contains the update mode and the program code to be updated after receiving the data sent by the update device, and if the data contains both the update mode and the program code to be updated, the consumable chip determines that the newly received data is the data to be updated; or if the data only contains one of the updating mode and the program code needing to be updated, the consumable chip determines that the newly received data is not the data to be updated; or if the data does not contain the updating mode and the program code needing to be updated, the consumable chip determines that the newly received data is not the data to be updated.
Or, for another example, the consumable chip may determine whether the received data carries the designated identifier, and if it is recognized that the received data carries the designated identifier, determine that the received data is to-be-updated; otherwise, the received data is determined not to be the data to be updated.
It can be understood that the above two examples are only used to illustrate how the consumable chip identifies whether the received data is to-be-updated data, in practical applications, the identification step may also have other implementation manners, and the embodiment of the present invention is not limited thereto.
It should be noted that the data to be updated may include, but is not limited to: identifier, address information, updating mode, program code needing updating, length, check and the like.
Wherein, the identifier is used for indicating the consumable chip to execute the action of the updating program. For example, the first identifier may be used to indicate that the consumable chip directly overwrites data stored in a specified storage location in the consumable chip after receiving the identifier; alternatively, for another example, the second identifier may be used to instruct the consumable chip to run a program in the consumable chip for addressing after receiving the identifier, and then to rewrite the data stored in the addressed location.
It should be noted that the data to be updated received by the consumable chip needs to conform to the program compiling rule of the consumable chip, so that after the data to be updated is written into the designated address, the newly written data can be connected with the program codes before and after the designated address.
The embodiment of the present invention does not particularly limit the program compiling rules in the consumable chip, for example, the program compiling rules may include but are not limited to: code formats, use of registers cannot be overridden, stacks must be balanced, etc. In the actual application process, the program compiling rule of the consumable chip can be preset in the updating device in advance.
In the embodiment of the invention, data received by the consumable chip can be encrypted, so that in a specific implementation process, the consumable chip can further identify whether the received data is encrypted data, and if the received data is identified to be encrypted data, the data needs to be decrypted. Or, if the received data is identified as non-encrypted data, no other processing is required to be performed on the received data.
It should be noted that, after receiving the data, the consumable chip may immediately perform encryption identification on the received data, and then perform the step of identifying whether the received data is to-be-updated in S202; alternatively, the consumable chip may perform encryption recognition after the step of recognizing whether the received data is to-be-updated in S202 is performed, and then perform the updating step in S203.
It should be noted that the update mode in the data to be updated is associated with the address information, and the address information may be null or may not be null according to the difference of the update modes. It is understood that the address information is null, which means that the address information may not be included in the data to be updated.
Based on the above, the embodiment of the present invention provides three specific implementation manners for the consumable chip to execute the step of updating the program in S203:
first, when the update mode is the first mode, the data to be updated is written into the address indicated by the address information.
The first method is to directly use the address information in the data to be updated to update the program, and at this time, the address information in the data to be updated cannot be empty. Therefore, when the program of the consumable chip is updated, the data to be updated is directly written into the address indicated in the address information.
It should be noted that the information stored in the memory of the consumable chip by the address indicated in the address information carried in the data to be updated may be null. That is, the address indicated by the address information is a blank program segment in the consumable chip; at this time, the program to be updated is written into the address, that is, the consumable chip has the function of writing the program newly, or the operability of some programs can be opened.
Or, the information stored in the memory of the consumable chip by the address indicated in the address information carried in the data to be updated may also be non-empty. That is, in the memory of the consumable chip, other programs have been stored in the address indicated by this address information; at this time, the program to be updated is written into the address, that is, the existing program in the consumable chip is changed or rewritten, so that the original function in the consumable chip can be changed, or the original function in the consumable chip can be perfected.
And secondly, when the updating mode is the second mode, writing the data to be updated into the address specified by the specified program.
The second way is to call a designated program in the consumable chip, and at this time, because the address is already designated in the designated program, the address information in the data to be updated can be null. Therefore, when the program of the consumable chip is updated, the data to be updated only needs to be written into the address specified by the specified program.
It should be noted that, when the method is used to implement program update, the information stored in the address pointed by the designated program may not be empty, and at this time, the data to be updated is written into the designated address of the designated program, so that the original function of the consumable chip may be changed, or the original function of the consumable chip may be improved.
Thirdly, when the updating mode is the third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
The third updating mode is to call the program in the consumable chip for addressing.
At this time, the address information in the data to be updated may be empty,
when the updating mode is adopted, the consumable chip can perform data processing on the data to be updated by using a designated program or algorithm to obtain a target address, and the data to be updated is written into the target address.
Alternatively, the address information in the data to be updated may not be empty.
When the updating mode is adopted, the consumable chip can perform data processing on the address information in the data to be updated by using a designated program or algorithm to obtain a target address, and write the data to be updated into the target address.
When the program update is realized by using this method, the consumable chip itself stores the program for addressing. And moreover, the self program can be called for addressing, and the data of the address obtained by addressing is updated. The address obtained by addressing with the program may be non-empty, or the address may also be empty, which is not particularly limited in this embodiment of the present invention.
It should be noted that, after the consumable chip writes the programs to be updated into the designated address, the consumable chip may further respond to the operation instruction sent by the updating device to call the newly written programs and obtain the operation result. The consumable chip can return the operation result to the updating device, so that the updating device can determine whether the program updating process of the consumable chip is successful according to the operation result, and further realize whether the consumable chip is available for screening by the updating device.
In a specific implementation process, the consumable chip can receive an operation instruction sent by the updating device; then, operating the specified program according to the operating instruction to obtain an operating result; and finally, returning the operation result to the updating equipment. It can be understood that the designated program is a program obtained by updating the consumable chip according to the data to be updated, and the program may be a rewriting or perfecting of an original program, or may be a new program having a new function.
It should be noted that, the embodiment of the present invention provides a program updating method implemented in a consumable chip, and the consumable chip may be located in an imaging cartridge. In a specific implementation, the imaging cartridge may be an ink cartridge.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
Example four
Based on the program updating method provided in the first embodiment, embodiments of the present invention further provide apparatus embodiments for implementing steps and methods in the first embodiment of the method.
Please refer to fig. 4, which is a functional block diagram of a program update system according to an embodiment of the present invention. As shown in fig. 4, the system includes: a refreshing device 41 and a consumable chip 42.
Specifically, the updating device is used for acquiring data to be updated;
the updating device 41 is also used for sending the data to be updated to the consumable chip;
a consumable chip 42 for receiving the data sent by the updating apparatus 41;
the consumable chip 42 is further configured to identify whether the received data is data to be updated;
and the consumable chip 42 is further configured to, if the received data is identified as the data to be updated, write the data to be updated into the designated address according to the updating manner of the data to be updated, so as to update the designated program.
Since each unit in the present embodiment can execute the method shown in fig. 1, reference may be made to the related description of fig. 1 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
EXAMPLE five
Based on the program updating method provided in the second embodiment, embodiments of the apparatus for implementing the steps and methods in the second embodiment of the present invention are further provided.
Please refer to fig. 5, which is a functional block diagram of a program update apparatus according to a first embodiment of the present invention.
Specifically, as shown in fig. 5, the apparatus is applied to an update device, and the apparatus includes:
an obtaining unit 51 configured to obtain data to be updated;
and a transmitting unit 52 for transmitting the data to be updated to the consumable chip.
Specifically, in the embodiment of the present invention, the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
In a specific implementation, the apparatus further includes:
an encryption unit 53 for encrypting data to be updated;
and the sending unit 52 is further configured to send the encrypted data to be updated to the consumable chip.
In another specific implementation process, the apparatus further includes:
the sending unit 52 is further configured to send an operation instruction to the consumable chip, so that the consumable chip runs the designated program according to the operation instruction, and returns a running result;
a receiving unit 54 for receiving the operation result;
and the determining unit 55 is used for determining whether the consumable chip is updated successfully according to the operation result.
Since each unit in the present embodiment can execute the method shown in fig. 2, reference may be made to the related description of fig. 2 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
EXAMPLE six
Based on the program updating method provided in the third embodiment, embodiments of the apparatus for implementing the steps and methods in the embodiments of the method are further provided in the embodiments of the present invention.
Please refer to fig. 6, which is a functional block diagram of a second embodiment of a program updating apparatus according to the present invention.
Specifically, as shown in fig. 6, the apparatus is located in a consumable chip, and the apparatus includes:
a receiving unit 61, configured to receive data sent by the update apparatus;
a first identifying unit 62 for identifying whether the received data is data to be updated;
and an updating unit 63, configured to, if it is identified that the received data is to-be-updated data, write the to-be-updated data into the designated address according to an updating manner of the to-be-updated data, so as to update the designated program.
Specifically, in the embodiment of the present invention, the data to be updated includes: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
In a specific implementation process, the updating unit 63 is specifically configured to:
when the updating mode is the first mode, writing the data to be updated into the address indicated by the address information; or,
when the updating mode is the second mode, writing the data to be updated into the address specified by the specified program; or,
and when the updating mode is the third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
In another specific implementation process, the apparatus further includes:
a second identifying unit 64, configured to identify whether the received data is encrypted data before writing the data to be updated into the specified address according to the update mode of the data to be updated;
a decryption unit 65 for decrypting the received data when the data are encrypted data.
Specifically, the device further comprises:
the receiving unit 61 is further configured to receive an operation instruction sent by the updating device;
an operation unit 66, configured to operate the designated program according to the operation instruction, and obtain an operation result;
a returning unit 66 for returning the operation result to the updating apparatus.
Since each unit in the present embodiment can execute the method shown in fig. 3, reference may be made to the related description of fig. 3 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
EXAMPLE seven
Based on the program updating method provided in the third embodiment and the program updating device provided in the sixth embodiment, an image forming cartridge is provided in an embodiment of the present invention.
Please refer to fig. 7, which is a block diagram of an image forming cartridge according to an embodiment of the present invention. As shown in fig. 7, the imaging cartridge includes a consumable chip; the consumable chip includes: such as the program update means shown in fig. 6.
For parts of the present embodiment not described in detail, reference may be made to the description of fig. 3 and 6.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the updating device can send the acquired data to be updated to the consumable chip, and after the consumable chip receives the data, if the data is identified as the data to be updated, the data to be updated is written into the designated address according to the updating mode of the data to be updated so as to update the designated program; in this way, the program area in the consumable chip adopts a readable and writable memory, so that the data to be updated can be written into the designated address in the memory, and the data written into the designated address in the memory can be called by the updating device; therefore, the program in the consumable chip can be written in and read according to actual needs and is not fixed and unchangeable, and when the program in the consumable chip needs to be updated and upgraded, the program can be updated without additionally issuing a new version of the consumable chip.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (21)

1. A program update method, the method comprising:
the updating equipment acquires data to be updated;
the updating equipment sends the data to be updated to a consumable chip;
the consumable chip receives the data sent by the updating equipment;
the consumable chip identifies whether the received data is data to be updated;
and if the received data is identified as the data to be updated, the consumable chip writes the data to be updated into a specified address according to the updating mode of the data to be updated so as to update a specified program.
2. A program update method, implemented in an update apparatus, the method comprising:
acquiring data to be updated;
and sending the data to be updated to a consumable chip.
3. The method of claim 2, wherein the data to be updated comprises: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
4. The method of claim 2, wherein sending the data to be updated to a consumable chip comprises:
encrypting the data to be updated;
and sending the encrypted data to be updated to the consumable chip.
5. The method of claim 2, further comprising:
sending an operation instruction to the consumable chip so that the consumable chip operates the specified program according to the operation instruction and returns an operation result;
receiving the operation result;
and determining whether the consumable chip is updated successfully or not according to the operation result.
6. A program updating method, implemented in a consumable chip, the method comprising:
receiving data sent by an updating device;
identifying whether the received data is data to be updated;
and if the received data is identified as the data to be updated, writing the data to be updated into a specified address according to the updating mode of the data to be updated so as to realize the updating of a specified program.
7. The method of claim 6, wherein the data to be updated comprises: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
8. The method according to claim 7, wherein writing the data to be updated to a designated address according to the updating manner of the data to be updated comprises:
when the updating mode is a first mode, writing the data to be updated into the address indicated by the address information; or,
when the updating mode is a second mode, writing the data to be updated into the address specified by the specified program; or,
and when the updating mode is a third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
9. The method according to claim 6 or 8, wherein before writing the data to be updated to a designated address according to the updating manner of the data to be updated, the method further comprises:
identifying whether the received data is encrypted data;
and when the received data is the encrypted data, decrypting the data.
10. The method of claim 6, further comprising:
receiving an operation instruction sent by the updating equipment;
operating the designated program according to the operating instruction to obtain an operating result;
and returning the operation result to the updating equipment.
11. A program update system, the system comprising:
the updating device is used for acquiring data to be updated;
the updating device is also used for sending the data to be updated to the consumable chip;
the consumable chip is used for receiving the data sent by the updating equipment;
the consumable chip is also used for identifying whether the received data is data to be updated;
and the consumable chip is also used for writing the data to be updated into a specified address according to the updating mode of the data to be updated if the received data is identified as the data to be updated, so as to realize the updating of a specified program.
12. A program update apparatus, in an update device, comprising:
an acquisition unit configured to acquire data to be updated;
and the sending unit is used for sending the data to be updated to the consumable chip.
13. The apparatus of claim 12, wherein the data to be updated comprises: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
14. The apparatus of claim 12, further comprising:
the encryption unit is used for encrypting the data to be updated;
the sending unit is further configured to send the encrypted data to be updated to the consumable chip.
15. The apparatus of claim 12, further comprising:
the sending unit is further configured to send an operation instruction to the consumable chip, so that the consumable chip operates the designated program according to the operation instruction, and returns an operation result;
a receiving unit, configured to receive the operation result;
and the determining unit is used for determining whether the consumable chip is updated successfully or not according to the operation result.
16. A program update apparatus, in a consumable chip, the apparatus comprising:
the receiving unit is used for receiving the data sent by the updating equipment;
the first identification unit is used for identifying whether the received data is data to be updated or not;
and the updating unit is used for writing the data to be updated into a specified address according to the updating mode of the data to be updated so as to realize the updating of a specified program if the received data is identified as the data to be updated.
17. The apparatus of claim 16, wherein the data to be updated comprises: at least one of an identifier, address information, an update mode, a program code to be updated, a length, and a check.
18. The apparatus according to claim 17, wherein the updating unit is specifically configured to:
when the updating mode is a first mode, writing the data to be updated into the address indicated by the address information; or,
when the updating mode is a second mode, writing the data to be updated into the address specified by the specified program; or,
and when the updating mode is a third mode, calculating to obtain an address according to the data to be updated, and writing the data to be updated into the calculated address.
19. The apparatus of claim 16 or 18, further comprising:
the second identification unit is used for identifying whether the received data is encrypted data or not before the data to be updated is written into the specified address according to the updating mode of the data to be updated;
and the decryption unit is used for decrypting the data when the received data is encrypted data.
20. The apparatus of claim 16, further comprising:
the receiving unit is further configured to receive an operation instruction sent by the updating device;
the operation unit is used for operating the specified program according to the operation instruction to obtain an operation result;
and the return unit is used for returning the operation result to the updating equipment.
21. An imaging cartridge, comprising a consumable chip;
the consumable chip comprising the program updating apparatus according to any one of claims 16 to 20.
CN201611258824.4A 2016-12-30 2016-12-30 Program update method, device and system, and imaging box Pending CN106610859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611258824.4A CN106610859A (en) 2016-12-30 2016-12-30 Program update method, device and system, and imaging box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611258824.4A CN106610859A (en) 2016-12-30 2016-12-30 Program update method, device and system, and imaging box

Publications (1)

Publication Number Publication Date
CN106610859A true CN106610859A (en) 2017-05-03

Family

ID=58636742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611258824.4A Pending CN106610859A (en) 2016-12-30 2016-12-30 Program update method, device and system, and imaging box

Country Status (1)

Country Link
CN (1) CN106610859A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563457A (en) * 2018-04-11 2018-09-21 上海东软载波微电子有限公司 Remote control type mobile terminal and its method for updating program, readable storage medium storing program for executing
CN108958764A (en) * 2018-06-08 2018-12-07 无锡飞翎电子有限公司 The application program update method, apparatus and household electrical appliance of household electrical appliance
CN109228665A (en) * 2018-08-10 2019-01-18 广州众诺电子技术有限公司 Chip operating method, chip, readable storage medium storing program for executing, recording device and imaging cartridge
CN109656114A (en) * 2019-02-22 2019-04-19 珠海天威飞马打印耗材有限公司 Data-updating method, consumable chip, consumable container, the computer readable storage medium of consumable chip
CN113204364A (en) * 2021-05-28 2021-08-03 广州众诺电子技术有限公司 Chip firmware upgrading method and device, electronic equipment and storage medium
WO2021179254A1 (en) * 2020-03-12 2021-09-16 华为技术有限公司 Data update method, apparatus and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138906A (en) * 2007-10-10 2008-03-12 珠海天威技术开发有限公司 Universal chip and communication data updating method
CN101941330A (en) * 2010-08-26 2011-01-12 珠海天威技术开发有限公司 Modification method of printer firmware
CN103085488A (en) * 2011-11-04 2013-05-08 珠海天威技术开发有限公司 Chip resetting method
CN105740015A (en) * 2016-01-27 2016-07-06 北京小鸟看看科技有限公司 Upgrade method for firmware of HMD device
CN106227503A (en) * 2016-07-29 2016-12-14 苏州国芯科技有限公司 Safety chip COS firmware update, service end, terminal and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138906A (en) * 2007-10-10 2008-03-12 珠海天威技术开发有限公司 Universal chip and communication data updating method
CN101941330A (en) * 2010-08-26 2011-01-12 珠海天威技术开发有限公司 Modification method of printer firmware
CN103085488A (en) * 2011-11-04 2013-05-08 珠海天威技术开发有限公司 Chip resetting method
CN105740015A (en) * 2016-01-27 2016-07-06 北京小鸟看看科技有限公司 Upgrade method for firmware of HMD device
CN106227503A (en) * 2016-07-29 2016-12-14 苏州国芯科技有限公司 Safety chip COS firmware update, service end, terminal and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563457A (en) * 2018-04-11 2018-09-21 上海东软载波微电子有限公司 Remote control type mobile terminal and its method for updating program, readable storage medium storing program for executing
CN108563457B (en) * 2018-04-11 2022-06-24 上海东软载波微电子有限公司 Remote control mobile terminal, program updating method thereof and readable storage medium
CN108958764A (en) * 2018-06-08 2018-12-07 无锡飞翎电子有限公司 The application program update method, apparatus and household electrical appliance of household electrical appliance
CN109228665A (en) * 2018-08-10 2019-01-18 广州众诺电子技术有限公司 Chip operating method, chip, readable storage medium storing program for executing, recording device and imaging cartridge
CN109656114A (en) * 2019-02-22 2019-04-19 珠海天威飞马打印耗材有限公司 Data-updating method, consumable chip, consumable container, the computer readable storage medium of consumable chip
CN109656114B (en) * 2019-02-22 2022-01-14 珠海天威飞马打印耗材有限公司 Data updating method of consumable chip, consumable container and computer readable storage medium
WO2021179254A1 (en) * 2020-03-12 2021-09-16 华为技术有限公司 Data update method, apparatus and device
CN113204364A (en) * 2021-05-28 2021-08-03 广州众诺电子技术有限公司 Chip firmware upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106610859A (en) Program update method, device and system, and imaging box
TWI438684B (en) Method and computer program storage product for progressively implementing declarative models in distributed systems
US9015695B2 (en) Information processing apparatus and information processing method
US20130081144A1 (en) Storage device and writing device
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
US20110271350A1 (en) method for protecting software
US9710340B2 (en) Replacement of a corrupt driver variable record
US20100082929A1 (en) Memory protection method, information processing apparatus, and computer-readable storage medium that stores memory protection program
US11496304B2 (en) Information processing device, information processing method, and storage medium
CN109445902B (en) Data operation method and system
CN106663017B (en) Method, terminal, data routing method and device for realizing host card simulation
CN112256492A (en) Block device backup method, device and storage medium
CN113342425A (en) Starting method, device and storage medium of Linux embedded system
US11036852B2 (en) System and method for software diversification
CN102368289B (en) For the system and method for dynamic generating anti-virus database
US8528007B1 (en) Firmware downloading through process file system
US20130152049A1 (en) Warning of register and storage area assignment errors
CN110045980B (en) Method, device and system for remotely upgrading NB-IOT (NB-IOT) device
CN111858020B (en) User resource limiting method and device and computer storage medium
CN113849859A (en) Linux kernel modification method, terminal device and storage medium
CN111190604A (en) Android application memory confusion method and device, electronic equipment and medium
US20200081812A1 (en) Intelligent configuration management of user devices
US7788725B2 (en) Method and system for probing FCode in problem state memory
US20210232695A1 (en) Augmenting executables having cryptographic primitives
CN112905120A (en) Lock disc upgrading method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170503