CN101973165B - Method for correcting firmware of printer - Google Patents

Method for correcting firmware of printer Download PDF

Info

Publication number
CN101973165B
CN101973165B CN2010105293693A CN201010529369A CN101973165B CN 101973165 B CN101973165 B CN 101973165B CN 2010105293693 A CN2010105293693 A CN 2010105293693A CN 201010529369 A CN201010529369 A CN 201010529369A CN 101973165 B CN101973165 B CN 101973165B
Authority
CN
China
Prior art keywords
printer
firmware
data
instruction
application 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.)
Expired - Fee Related
Application number
CN2010105293693A
Other languages
Chinese (zh)
Other versions
CN101973165A (en
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.)
Print Rite Technology Development Co Ltd of Zhuhai
Original Assignee
Print Rite Technology Development Co Ltd of Zhuhai
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 Print Rite Technology Development Co Ltd of Zhuhai filed Critical Print Rite Technology Development Co Ltd of Zhuhai
Priority to CN2010105293693A priority Critical patent/CN101973165B/en
Publication of CN101973165A publication Critical patent/CN101973165A/en
Application granted granted Critical
Publication of CN101973165B publication Critical patent/CN101973165B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention provides a method for correcting firmware of a printer, which comprises the steps of: obtaining firmware data of the printer, disassembling the firmware data to obtain machine language codes corresponding to the firmware data, correcting commands related to consumable allowance in the machine language codes; and packaging the corrected machine language codes into an application program, and adding the application program in a minimum operating system, connecting the printer and a computer, operating the minimum operating system on the computer, and installing the application program. The method has the advantages of short testing period and low testing cost, and is beneficial to the popularization and the application.

Description

The amending method of printer firmware
Technical field
The present invention relates to the printing field, especially relate to a kind of amending method of printer firmware.
Background technology
Printer is as common office equipment, for modern office provides great convenience.Existing printer is divided into ink-jet printer and laser printer, and ink-jet printer uses the print cartridge that accommodates ink to spray ink as consumable container to paper, needs literal or the pattern printed with formation on paper; Laser printer then uses the cartridge that accommodates carbon dust as consumable container formation need be printed on medium literal or pattern.
Referring to Fig. 1, existing print cartridge has a housing 11, and housing 11 surrounds cavity 15, accommodates ink in the cavity 15.The below of housing 11 is provided with ink outlet port 14, and the ink in the cavity 15 can pass through ink outlet port 14 and flow out.A consumable chip 13 is installed on housing 11 outer walls; The structure of consumable chip is as shown in Figure 2, and consumable chip 13 has substrate 16, on substrate 16, is provided with a plurality of electric contacts 17; Electric contact 17 is connected with electric contact on the ink-jet printer as communication unit, is used for transmission information.Also be provided with an electronic module 18 on the substrate 16; Electronic module 18 has the memory that is electrically connected with electric contact 17; Store the information relevant, comprise the time-write interval of consumable items allowances, print cartridge in print cartridge model, suitable ink-jet printer model, ink color, the cavity 15 etc. with print cartridge.
Referring to Fig. 3, existing cartridge has housing 21, and housing 21 surrounds the cavity that holds carbon dust, and the outer wall of housing is provided with a chip installation position 22, and consumable chip 23 is installed on the chip installation position 22.Similar with the consumable chip of print cartridge, the consumable chip 23 of cartridge also has substrate, and substrate is provided with the electric contact 24 as communication unit, is used for carrying out exchanges data with laser printer.And the opposite side of substrate is provided with the electronic module that is electrically connected with electric contact 24, stores the relevant data of cartridge, comprises the data of consumable items allowance in the cavity etc.
The consumable quantity that existing consumable container is held seldom, many users can consumptive material and continue to use again after the consumptive material that consumable container held is finished using.But because consumable chip record consumable items allowance data is zero, therefore need carry out reset processing, be about to consumable items allowance data and return to non-vanishing data, so that printer continues to carry out print job to consumable chip.
On the other hand, existing ink-jet printer or laser printer are equipped with memory, store solidification software, i.e. firmware in the memory mostly.The program that these firmwares comprise is used to realize the multiple application of printer, comprises the image that obtains computer and transmit, control print progress, visit consumable chip etc.Along with printer is realized updating of function, the printer manufacturer needs the firmware of printer to carry out upgrading processing.
Common upgrade method has two kinds: a kind of is that printer manufacturer issues the firmware upgrade packet on the internet, and the user downloads this firmware upgrade packet and writes the printer from the internet; Another kind method is on the incidental consumable chip of consumable container, to write the firmware upgrade data; After consumable container is installed to printer; Printer will detect consumable chip automatically and whether store the firmware upgrade data; If store, the firmware upgrade data of then consumable chip being stored write in the memory of printer, realize firmware upgrade.
But; Printer after the firmware upgrade often causes restriction to the use of consumable chip; Because the updated firmware data often write the instruction relevant with the consumptive material data, especially relevant instruction with consumable items allowance data, as forbid instruction that consumable items allowance data resets or instruction that consumable items allowance data and a threshold value are compared etc.; Cause consumable chip to reset, cause consumable container and consumable chip to use once.
In addition, the updated firmware data write the instructions relevant with the consumptive material data such as manufacturer that detect consumable container production time, consumable container, and these instructions also can cause restriction to the use of consumable container, cause consumable container to reuse.Like this, increase the cost that the user uses consumable container undoubtedly, also limited the recycling of consumable chip, cause the wasting of resources, also be unfavorable for environmental protection.
Therefore, people hope that the firmware of printer makes amendment, and avoid printer firmware to upgrade the restriction that use consumable container the back thereby make.Existing alter mode is to download the firmware upgrade packet from the internet; Perhaps use programmable device to read the firmware data of printer; And the firmware data of obtaining is carried out dis-assembling handle; Obtain the corresponding machine language code of firmware data; Instruction to relevant with consumptive material in the machine language code of obtaining is made amendment, and forbids instruction that consumable items allowance data resets, adds the automatically reset instruction of consumable items allowance data etc. like deletion, and amended machine language code is downloaded in the memory in the printer.Printer generates corresponding firmware data after receiving machine language code automatically, thereby realizes the modification of printer firmware data.
But said method is to use the software program of computer that machine language code is made amendment, and need use a computer and be connected with printer, through working procedure on computers amended machine language code is downloaded in the printer.Because present computer operating system platform is more; Like WINDOWS98,2000, XP, VISTA, LINUX etc., the developer need test, adjust machine language code to different operating systems, and test period is long; Testing cost is high, is unfavorable for the modification of printer firmware.
Summary of the invention
Main purpose of the present invention provides a kind of exploitation, printer firmware amending method that testing cost is lower.
For realizing above-mentioned main purpose, printer firmware amending method provided by the invention comprises and obtains the printer firmware data, firmware data is carried out dis-assembling handle; Obtain the corresponding machine language code of firmware data; Instruction to relevant with the consumptive material data in the machine language code is made amendment, and, amended machine language code is packaged into application program; And application program added in the minimum operation system; Printer is connected with computer, moves the minimum operation system on computers, and set up applications.
Visible by such scheme; When printer firmware is revised; The developer uses minimum operation system development software to develop the minimum operation system voluntarily; And amended machine language code be packaged into application program be added in the minimum operation system, the user on computers directly the operation system get final product set up applications, thereby the printer firmware is made amendment.Because the application program that printer firmware is revised is added in the minimum operation system, thus the developer only need be in the minimum operation system application programs test and get final product, exploitation is short with the cycle of test, cost is reduction greatly also.
A preferred scheme is that after the making minimum operation system, system is stored in the portable memory apparatus with minimum operation.Like this, can conveniently the minimum operation system be installed in many computers.
Further scheme is, when making the minimum operation system, in the minimum operation system, writes the order of errorlevel and self-operating application program.
This shows that after the operation minimum operation system, computer will automatically perform the fitting operation of application program, thereby realize the firmware modification of printer automatically, the firmware modification process is simple and convenient, and easy to operate.
Description of drawings
Fig. 1 is the structural representation of existing a kind of print cartridge.
Fig. 2 is the structure enlarged diagram of existing ink box chip.
Fig. 3 is the STRUCTURE DECOMPOSITION figure of existing a kind of cartridge.
Fig. 4 is the flow chart of the embodiment of the invention.
Below in conjunction with accompanying drawing and embodiment the present invention is described further.
The specific embodiment
Method of the present invention can be applied to the firmware modification of laser printer or ink-jet printer, is that the present invention will be described for embodiment to be applied to laser printer below.
Referring to Fig. 4, use present embodiment the firmware of laser printer is made amendment, at first obtain the original firmware data of laser printer, i.e. execution in step S1.Obtaining original firmware data can realize through two kinds of diverse ways; A kind of is to download the firmware upgrade packet that printer manufacturer announces on the internet; Another kind method is to use programmable device that the firmware data of being stored in the printer storage is read out, and second method is mainly used in when not announcing the printer firmware upgrading data packet on the internet.
After obtaining the firmware data of printer, execution in step S2 carries out dis-assembling to the firmware data of obtaining and handles, thereby obtains the pairing machine language code of original firmware data.Then, execution in step S3 makes amendment to the instruction relevant with consumable items allowance data in the machine language code that obtains.Before machine language code made amendment, should differentiate the represented meaning of each machine language code, and according to actual needs it made amendment.For example, the program inhibition consumable chip that comprises to firmware data resets to consumable items allowance data, can be with the instruction deletion of forbidding that consumable items allowance data resets; Perhaps, whether the consumable items allowance data that the program real-time judge consumable chip that comprises to firmware data is write down is lower than a certain threshold value, can be with judging whether consumable items allowance data is lower than the instruction deletion of a certain threshold value or forbids this instruction execution.
Certainly; Modification to machine language code also can be to increase instruction, as adding the instruction that consumable items allowance data is resetted, perhaps before forbidding the reset instruction of consumptive material data, increases jump instruction; Let printer before the consumable items allowance data reset instruction is forbidden in execution, jump to other instructions; Do not carry out the instruction of forbidding that consumable items allowance data resets,, can confirm according to actual operating position to the deletion and the increase of instruction.
In addition; The instruction relevant with consumable items allowance data is not limited to forbid consumable items allowance data instruction that resets and the instruction that consumable items allowance data and threshold value are compared, can also be real-time to consumable chip write consumable items allowance data instruction, read the instruction of consumable items allowance data in the consumable chip etc.
After machine language code made amendment, it is packaged into application program, promptly designs display page, dialog box etc. is set, and the link of design and operation application program.
Then, execution in step S4 makes the minimum operation system.The minimum operation system of present embodiment is a WINDOWSPE operating system, when making this operating system, can use UltraISO software to make, and in operating system, writes processing batch instruction.And, add packaged application program in WINDOWSPE operating system, and in WINDOWSPE operating system, write the instruction that runs application automatically, make after the computer run WINDOWSPE operating system that the printer firmware is made amendment automatically.
Certainly, make the WINDOWSPE operating system that finishes after, the developer need test WINDOWSPE operating system and application program, can detect WINDOWSPE operating system normally start, whether application program realizes purposes such as printer firmware modification.
After developer's test was passed through, execution in step S5 was stored to the WINDOWSPE operating system that is added with application program in the pocket memory, like CD, USB flash disk or portable hard drive etc., is convenient to carrying and installing of WINDOWSPE operating system.
At last; When the user need revise printer firmware; Execution in step S6 is connected printer with computer, and moves WINDOWSPE operating system on computers; CD, USB flash disk or the portable hard drive that just will store WINDOWSPE operating system are connected to computer, and computer are set by CD, USB flash disk or portable hard drive startup.
After the operation of WINDOWSPE os starting; To run application automatically; Be about in the memory that amended machine language code downloads to printer, printer interface generates new firmware data after receiving machine language code, thereby realizes the modification of printer firmware.
Visible by such scheme; Modification through the printer firmware data; Can delete function such as forbid that consumable items allowance data resets, consumable chip can realize that consumable items allowance resets, and helps the recycling of consumable container and consumable chip; Thereby reduce the cost that the user uses consumptive material, also help environmental protection.
And amended machine language code is to be packaged into application program and to be added in the WINDOWSPE operating system, can the operation in the lump with computer run WINDOWSPE operating system.Like this, the developer only need test to WINDOWSPE operating system and get final product, and need not on a plurality of operating system platforms, to debug repeatedly, shortens test period, also reduces the cost of firmware modification.
In addition; In the present embodiment; Modification to machine language code is not limited to the data relevant with consumable items allowance; Can also be the data relevant with consumable container self, modification can be the deletion instruction that detects the consumable container production time, the instruction that deletion detects consumable container manufacturer etc., and the modification of these and consumptive material data dependent instruction also should be included in protection scope of the present invention.
Certainly, the foregoing description only is the preferable embodiment of the present invention, during practical application more variation can also be arranged, and for example, can use dos operating system or LINUX operating system to substitute WINDOWSPE operating system as the minimum operation system; Whether perhaps, in the minimum operation system, be not provided with and automatically perform the instruction of application program, but dialog box is set, selected voluntarily to run application etc. by the user, these changes can realize the object of the invention equally.
It is emphasized that at last to the invention is not restricted to above-mentioned embodiment, also should be included in the protection domain of claim of the present invention like the change of delete instruction function, the variations such as change that portable memory apparatus is selected.

Claims (7)

1. the amending method of printer firmware comprises
Obtain the printer firmware data;
Said firmware data is carried out dis-assembling handle, obtain the corresponding machine language code of said firmware data, instruction relevant with the consumptive material data in the said machine language code is made amendment;
It is characterized in that:
Amended machine language code is packaged into application program, and said application program is added in the minimum operation system;
Printer is connected with computer, the said minimum operation of operation system on said computer, and said application program is installed.
2. printer firmware amending method according to claim 1 is characterized in that:
Said minimum operation system is dos operating system or LINUX operating system or WINPE operating system.
3. printer firmware amending method according to claim 1 and 2 is characterized in that:
Said minimum operation system is stored in the portable memory apparatus.
4. printer firmware amending method according to claim 1 and 2 is characterized in that:
When making said minimum operation system, in said minimum operation system, write the order of errorlevel and the said application program of self-operating.
5. printer firmware amending method according to claim 1 and 2 is characterized in that:
The instruction that said consumptive material data are relevant comprises the instruction that consumable items allowance data is relevant.
6. printer firmware amending method according to claim 1 and 2 is characterized in that:
The said printer firmware data of obtaining are from internet download printer firmware data.
7. printer firmware amending method according to claim 1 and 2 is characterized in that:
The said printer firmware data of obtaining are with programmable device the said firmware data of being stored in the printer storage to be read.
CN2010105293693A 2010-11-02 2010-11-02 Method for correcting firmware of printer Expired - Fee Related CN101973165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105293693A CN101973165B (en) 2010-11-02 2010-11-02 Method for correcting firmware of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105293693A CN101973165B (en) 2010-11-02 2010-11-02 Method for correcting firmware of printer

Publications (2)

Publication Number Publication Date
CN101973165A CN101973165A (en) 2011-02-16
CN101973165B true CN101973165B (en) 2012-01-18

Family

ID=43573084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105293693A Expired - Fee Related CN101973165B (en) 2010-11-02 2010-11-02 Method for correcting firmware of printer

Country Status (1)

Country Link
CN (1) CN101973165B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6113208A (en) * 1996-05-22 2000-09-05 Hewlett-Packard Company Replaceable cartridge for a printer including resident memory with stored message triggering data
CN1622038A (en) * 2005-01-07 2005-06-01 北京北大方正电子有限公司 Process for printing apparatus automatic upgrading through internet
CN101700715A (en) * 2009-08-20 2010-05-05 珠海纳思达电子科技有限公司 Method of recycling ink-jet printer cartridge and ink-jet printer cartridge recycled with same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6113208A (en) * 1996-05-22 2000-09-05 Hewlett-Packard Company Replaceable cartridge for a printer including resident memory with stored message triggering data
CN1622038A (en) * 2005-01-07 2005-06-01 北京北大方正电子有限公司 Process for printing apparatus automatic upgrading through internet
CN101700715A (en) * 2009-08-20 2010-05-05 珠海纳思达电子科技有限公司 Method of recycling ink-jet printer cartridge and ink-jet printer cartridge recycled with same

Also Published As

Publication number Publication date
CN101973165A (en) 2011-02-16

Similar Documents

Publication Publication Date Title
CN101941330A (en) Modification method of printer firmware
CN103914315B (en) Configuration method of drivers
CN107729083B (en) Method for loading driver and embedded device
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN104199706A (en) Firmware upgrade method and device for eMMC
CN103240999B (en) Storage chip and repositioning method, consumable container, imaging device
CN105579953A (en) Flexible bootstrap code architecture
CN103473097A (en) System, device and method for upgrading Android system firmware
CN1441352A (en) Information processor, control method and storage medium for said information processor
CN105453032A (en) Extraction of operating system-specific characteristics via a communication interface
CN111008106B (en) Server monitoring management method and device, electronic equipment and storage medium
US20180046322A1 (en) Driving method for touch display device and driving system of the same
CN103440146A (en) BIOS updating method based on cloud storage
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
CN101973165B (en) Method for correcting firmware of printer
US9141321B1 (en) Configurable printer server device
CN106528226A (en) Operation system installation method and apparatus
CN104598281A (en) Method for upgrading system of electronic device
CN101593123A (en) The curing of flash recordable plug-in component and terminal device
JP2009110089A (en) Information processor, installation method for application software, installation processing program and recording medium recording installation processing program
US20150089490A1 (en) Information processing system, information processing apparatus, device, software installation method, and storage medium
CN102857817A (en) Set-top box production system and method capable of realizing dynamical loading
CN105159714A (en) PMIC initialization method and electronic equipment
CN106095643A (en) The establishing method of systematic parameter access and server thereof
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120118

Termination date: 20201102