CN107506205A - Chip rewrites data updating method, electronic equipment and the storage medium of equipment - Google Patents
Chip rewrites data updating method, electronic equipment and the storage medium of equipment Download PDFInfo
- Publication number
- CN107506205A CN107506205A CN201710526418.XA CN201710526418A CN107506205A CN 107506205 A CN107506205 A CN 107506205A CN 201710526418 A CN201710526418 A CN 201710526418A CN 107506205 A CN107506205 A CN 107506205A
- Authority
- CN
- China
- Prior art keywords
- chip
- equipment
- data
- rewrites
- upgrading
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
- Stored Programmes (AREA)
Abstract
The data updating method of the invention that chip is provided and rewrites equipment, including step power-up initializing, host computer connecting detection, parsing data, condition adjudgement, upgrading judgement, upgrade file decryption, data renewal;The invention further relates to electronic equipment and readable storage medium storing program for executing, for performing the data updating method of chip rewriting equipment.Chip is rewritten program and data in equipment and separated by the present invention, rewrites the program in equipment to chip using DLL and carries out separating upgrading renewal with data.Data updating method of the present invention is flexible and changeable, saves upgrade cost, lowers upgrading difficulty, while this upgrade method operation is simple, realizes that chip rewrites the flexible renewal upgrading of equipment.
Description
Technical field
The present invention relates to printing consumable chip apparatus field, more particularly to a kind of chip rewrite device data upgrade method,
Electronic equipment and storage medium.
Background technology
Printer already takes up more and more important ground as a kind of common imaging device in the Working Life of people
Position, it forms pattern imaging using consumptive material (including print cartridge, toner cartridge etc.) is imaged on paper.It is usually provided with consumptive material for depositing
The printing consumable chip of image forming material (such as ink, carbon dust) relevant information is stored up, printer manufacturer can be in chip internal to imaging
The capacity information of material sets a threshold value, in print procedure, the current consumptive material service condition of printer record, when set by arrival
After the threshold value put, printer can prompt to change brand-new consumptive material.Consumptive material stores as disposable product in consumable chip
Image forming material capacity information will be dropped after ruing out of, and cause the waste of resource.Consumptive material regeneration industry is risen therewith, on the market
Regenerative process be, old consumptive material be recovered after to consumable container do cleaning and filling image forming material after, original-pack chip is replaced with
There is the compatible chip of brand-new data.For it is most of be not damaged, be only merely data exhaustion original-pack chip will be used as it is useless
Product, it is a kind of secondary waste of resource.
At present, upgrade for consumable chip reading and writing code device data, the program and data in equipment are usually using special
Programmable device burning in the memory of equipment;After chip write-read decoding apparatus dispatches from the factory, its internally stored program and data are
It is changeless;When needing to carry out partial content renewal to the program in equipment main control chip and data, as shown in figure 3, only
All data and program can be carried out by burning again by using special programmable device, program and data can not separately be updated,
Not only very flexible, complex operation, while cause the waste of resource.
The content of the invention
For overcome the deficiencies in the prior art, it is used for printing consumable chip rewriting it is an object of the invention to provide one kind and sets
Standby data updating method, realize that chip rewrites device data and flexibly updates upgrading.
The present invention provides the data updating method that chip rewrites equipment, comprises the following steps:
Power-up initializing, chip rewrite device power, and initialization chip rewrites the memory space and expansion interface of equipment, will
File mount rewrites the file system of equipment to chip in the memory space;
Whether host computer connecting detection, detection host computer are connected with expansion interface;
Data are parsed, chip rewrites equipment and the packet of expansion interface is parsed;
Condition adjudgement, monitor chip and rewrite equipment state, judge that chip rewrites whether equipment state allows data to upgrade;
Upgrading judges, judges that chip is rewritten in the file system of equipment and whether there is upgrade file;
Upgrade file is decrypted, and obtains described upgrade file, and described upgrade file is decrypted to obtain upgrading data;
Data update, and described upgrading data are updated into chip by DLL rewrites in equipment.
Further, described memory space includes internal storage medium and outside expansion storage medium;Described outside
Expansion storage medium is specially SD card or TF card or USB flash disk or mobile hard disk.
Further, described expansion interface is specially USB interface.
Further, described step power-up initializing is specially:SD card is initialized, by described SD card carry to chip
The file system of equipment is rewritten, initializes USB, and enumerate USB MASS STORAGE.
Further, described step condition adjudgement is specially:Judge whether host computer file reception is completed, be, redirect
To judging whether host computer connection disengages, otherwise return is received not completing to identify and wait and finished receiving;Judge that host computer connects
Whether disengage, be, return to connection and disengage mark and wait reconnect, otherwise jump to step upgrading and judge.
Further, also include data check before the renewal of described step data, described upgrading data verified,
Step data are jumped to if upgrading data are by examining to update, returned data mistake is believed if upgrading data are not by examining
Breath.
Further, specifically the upgrade file is decrypted using aes algorithm for described step upgrade file decryption,
Described step data check specifically uses CRC check.
A kind of electronic equipment, including:Processor;Memory;And program, wherein described program are stored in the storage
In device, and it is configured to by computing device, described program includes being used to perform the data updating method that chip rewrites equipment.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor
Row chip rewrites the data updating method of equipment.
Compared with prior art, the beneficial effects of the present invention are:
The present invention provides the data updating method that chip rewrites equipment, including the connection inspection of step power-up initializing, host computer
Survey, parse data, condition adjudgement, upgrading judges, upgrade file is decrypted, data renewal;The invention further relates to electronic equipment with can
Storage medium is read, the data updating method of equipment is rewritten for performing chip.The present invention by chip rewrite equipment in program with
Data separate, and rewrite the program in equipment to chip using DLL and carry out separating upgrading renewal with data.Data of the present invention
Upgrade method is flexible and changeable, saves upgrade cost, lowers upgrading difficulty, while this upgrade method operation is simple, realizes that chip changes
The flexible renewal upgrading of write device.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, below with presently preferred embodiments of the present invention and coordinate accompanying drawing describe in detail as after.
The embodiment of the present invention is shown in detail by following examples and its accompanying drawing.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is that the chip of the present invention rewrites the data updating method flow chart of equipment;
Fig. 2 is the data updating method flow chart of the chip rewriting equipment in one embodiment of the invention;
Fig. 3 is that prior art device data upgrade schematic diagram;
Fig. 4 is that the data in the implementation of the present invention upgrade schematic diagram.
Embodiment
Below, with reference to accompanying drawing and embodiment, the present invention is described further, it is necessary to which explanation is, not
Under the premise of afoul, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Chip rewrites the data updating method of equipment, as shown in figure 1, comprising the following steps:
Power-up initializing, chip rewrite device power, and initialization chip rewrites the memory space and expansion interface of equipment, will
File mount rewrites the file system of equipment to chip in the memory space;
Whether host computer connecting detection, detection host computer are connected with expansion interface;
Data are parsed, chip rewrites equipment and the packet of expansion interface is parsed;Specifically use usb protocol stack pair
Packet is parsed;
Condition adjudgement, monitor chip and rewrite equipment state, judge that chip rewrites whether equipment state allows data to upgrade;
Upgrading judges, judges that chip is rewritten in the file system of equipment and whether there is upgrade file;Specifically, scanning chip
Rewrite and whether there is upgrade file under the root of the file system of equipment, in general, by detecting the version number of upgrade file,
As version number is higher than existing file version, then judge upgrade file be present;
Upgrade file is decrypted, and obtains described upgrade file, and described upgrade file is decrypted to obtain upgrading data;
Data update, and described upgrading data are updated into chip by DLL rewrites in equipment.
In one embodiment, memory space includes internal storage medium and outside expansion storage medium;Outside extension storage
Medium is specially SD card or TF card or USB flash disk or mobile hard disk, and expansion interface is specially USB.As shown in Fig. 2 electricity is initial in step
Change is specially:SD card is initialized, is delayed and waits SD card to load, SD card mistake is prompted as SD card does not load correctly, as SD card is read
Block the file system that SD card carry to chip is successfully then rewritten to equipment;USB is initialized, and enumerates configuration USB MASS
STORAGE, specifically, host computer is PC ends, whether detection PC ends connect through USB with chip rewriting equipment is connected.
As shown in figure 4, DLL is specially IAP interfaces, the data that chip is rewritten in equipment are broadly divided into three kinds, bottom
Program, application program and mandate accounting file;Wherein underlying programs are Default Value, and equipment can not be changed after coming into operation,
Application program and mandate accounting file user carry out upgrading renewal by USB in end.
In one embodiment, as shown in Fig. 2 step condition adjudgement is specially:Judge whether host computer file reception is completed,
It is to jump to judge whether host computer connection disengages, otherwise return is received not completing to identify and wait and finished receiving;In judgement
Whether position machine connection disengages, and is, returns to connection disengagement and identifies and wait reconnect, otherwise jumps to step upgrading and judges.
In one embodiment, also include data check before the renewal of step data, upgrading data are verified, if ascending series
The renewal of step data is then jumped to according to by examining, the returned data error message if upgrading data are not by examining.Specifically,
Specifically upgrade file is decrypted using AES for the decryption of step upgrade file, and step data check specifically uses CRC check.Example
Such as, authorize accounting file that operation will be encrypted before dispatching from the factory, in general is using aes algorithm with CRC algorithm to authorizing accounting file
It is encrypted, is converted into ciphertext form and sends to terminal client;When equipment of chip rewriting reads mandate accounting file, first to awarding
Weigh accounting file and carry out AES decryption, after decryption data are carried out with CRC check again, verification is carried out after passing through to mandate accounting file
Upgrading.
A kind of electronic equipment, including:Processor;Memory;And program, its Program are stored in memory, and
And be configured to by computing device, program includes being used to perform the data updating method that chip rewrites equipment;A kind of computer
Readable storage medium storing program for executing, is stored thereon with computer program, and computer program is executed by processor the data liter that chip rewrites equipment
Level method.
The present invention provides the data updating method that chip rewrites equipment, including the connection inspection of step power-up initializing, host computer
Survey, parse data, condition adjudgement, upgrading judges, upgrade file is decrypted, data renewal;The invention further relates to electronic equipment with can
Storage medium is read, the data updating method of equipment is rewritten for performing chip.The present invention by chip rewrite equipment in program with
Data separate, and rewrite the program in equipment to chip using DLL and carry out separating upgrading renewal with data.Data of the present invention
Upgrade method is flexible and changeable, saves upgrade cost, lowers upgrading difficulty, while this upgrade method operation is simple, realizes that chip changes
The flexible renewal upgrading of write device.
More than, only presently preferred embodiments of the present invention, any formal limitation not is made to the present invention;All one's own professions
The those of ordinary skill of industry can swimmingly implement the present invention shown in by specification accompanying drawing and above;But all to be familiar with sheet special
The technical staff of industry without departing from the scope of the present invention, is made a little using disclosed above technology contents
The equivalent variations of variation, modification and evolution, it is the equivalent embodiment of the present invention;Meanwhile all substantial technologicals according to the present invention
Variation, modification and evolution of any equivalent variations made to above example etc., still fall within technical scheme
Within protection domain.
Claims (9)
1. chip rewrites the data updating method of equipment, it is characterised in that comprises the following steps:
Power-up initializing, chip rewrite device power, and initialization chip rewrites the memory space and expansion interface of equipment, by described in
File mount rewrites the file system of equipment to chip in memory space;
Whether host computer connecting detection, detection host computer are connected with expansion interface;
Data are parsed, chip rewrites equipment and the packet of expansion interface is parsed;
Condition adjudgement, monitor chip and rewrite equipment state, judge that chip rewrites whether equipment state allows data to upgrade;
Upgrading judges, judges that chip is rewritten in the file system of equipment and whether there is upgrade file;
Upgrade file is decrypted, and obtains described upgrade file, and described upgrade file is decrypted to obtain upgrading data;
Data update, and described upgrading data are updated into chip by DLL rewrites in equipment.
2. chip as claimed in claim 1 rewrites the data updating method of equipment, it is characterised in that:Described memory space bag
Include internal storage medium and outside expansion storage medium;Described outside expansion storage medium is specially SD card or TF card or USB flash disk
Or mobile hard disk.
3. chip as claimed in claim 2 rewrites the data updating method of equipment, it is characterised in that:Described expansion interface tool
Body is USB interface.
4. chip as claimed in claim 3 rewrites the data updating method of equipment, it is characterised in that electricity is first in described step
Beginning is specially:SD card is initialized, the file system by described SD card carry to chip rewriting equipment, initialization USB, and piece
Lift USB MASS STORAGE.
5. chip as claimed in claim 1 rewrites the data updating method of equipment, it is characterised in that described step state is sentenced
It is disconnected to be specially:Judge whether host computer file reception is completed, be, jump to and judge whether host computer connection disengages, otherwise return
Receive not completing to identify and wait and finish receiving;Judge whether host computer connection disengages, be, return to connection and disengage mark and wait
Wait to reconnect, otherwise jump to step upgrading and judge.
6. chip as claimed in claim 1 rewrites the data updating method of equipment, it is characterised in that:Described step data are more
Also include data check before new, described upgrading data are verified, number of steps is jumped to if upgrading data are by examining
According to renewal, the returned data error message if upgrading data are not by examining.
7. chip as claimed in claim 6 rewrites the data updating method of equipment, it is characterised in that:Described step upgrading text
Specifically the upgrade file is decrypted using aes algorithm for part decryption, and described step data check specifically uses CRC schools
Test.
8. a kind of electronic equipment, it is characterised in that including:Processor;
Memory;And program, wherein described program is stored in the memory, and is configured to be held by processor
OK, described program includes being used for the method described in perform claim requirement 1-7 any one.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that:The computer program quilt
Method of the computing device as described in claim 1-7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710526418.XA CN107506205A (en) | 2017-06-30 | 2017-06-30 | Chip rewrites data updating method, electronic equipment and the storage medium of equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710526418.XA CN107506205A (en) | 2017-06-30 | 2017-06-30 | Chip rewrites data updating method, electronic equipment and the storage medium of equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107506205A true CN107506205A (en) | 2017-12-22 |
Family
ID=60679542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710526418.XA Pending CN107506205A (en) | 2017-06-30 | 2017-06-30 | Chip rewrites data updating method, electronic equipment and the storage medium of equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107506205A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189452A (en) * | 2018-10-29 | 2019-01-11 | 深圳市路畅科技股份有限公司 | Oftware updating method, device and the storage medium of a kind of electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100458699C (en) * | 2007-04-10 | 2009-02-04 | 北京中星微电子有限公司 | Method and system for updating fastener |
US20090046614A1 (en) * | 2007-08-16 | 2009-02-19 | Motorola, Inc. | Method and system for updating a multicast state of a multicast group |
CN101963910A (en) * | 2010-09-21 | 2011-02-02 | 深圳市元征软件开发有限公司 | General USB (Universal Serial Bus) based equipment firmware updating method |
CN103019797A (en) * | 2012-12-29 | 2013-04-03 | 福建三元达通讯股份有限公司 | Method for upgrading firmware of advertising machine terminal through USB (Universal Serial Bus) interface |
CN105573743A (en) * | 2015-11-19 | 2016-05-11 | 深圳市芯海科技有限公司 | Chip burning system and method and electronic equipment |
-
2017
- 2017-06-30 CN CN201710526418.XA patent/CN107506205A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100458699C (en) * | 2007-04-10 | 2009-02-04 | 北京中星微电子有限公司 | Method and system for updating fastener |
US20090046614A1 (en) * | 2007-08-16 | 2009-02-19 | Motorola, Inc. | Method and system for updating a multicast state of a multicast group |
CN101963910A (en) * | 2010-09-21 | 2011-02-02 | 深圳市元征软件开发有限公司 | General USB (Universal Serial Bus) based equipment firmware updating method |
CN103019797A (en) * | 2012-12-29 | 2013-04-03 | 福建三元达通讯股份有限公司 | Method for upgrading firmware of advertising machine terminal through USB (Universal Serial Bus) interface |
CN105573743A (en) * | 2015-11-19 | 2016-05-11 | 深圳市芯海科技有限公司 | Chip burning system and method and electronic equipment |
Non-Patent Citations (1)
Title |
---|
汪晶晶 等: "基于串口通信的DSP应用程序在线升级方法", 《软件天地》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189452A (en) * | 2018-10-29 | 2019-01-11 | 深圳市路畅科技股份有限公司 | Oftware updating method, device and the storage medium of a kind of electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2014335154B2 (en) | CRUM chip, image forming device for verifying consumable unit comprising the CRUM chip, and methods thereof | |
US10810153B2 (en) | Chip processing device and method for chip processing using the same | |
EP2328106B1 (en) | Method,device and system for information input of assistant device of an imaging apparatus | |
CN103481668B (en) | Reset method for imaging box chip, imaging box chip and imaging box | |
CN1262421C (en) | Printer controller and controlling method | |
CN107589920B (en) | Reset method for chip, electronic device, storage medium and device | |
JP2003039778A (en) | Peripheral apparatus and printer | |
US20170329561A1 (en) | Method for recording chip usage state information, chip of imaging cartridge and imaging cartridge | |
US7337312B2 (en) | Processor and firmware download method for same | |
US20180059615A1 (en) | Imaging cartridge and memory chip applied to imaging cartridge | |
CN107491276A (en) | The method of device data remote encryption upgrading, storage medium, electronic equipment | |
CN107506205A (en) | Chip rewrites data updating method, electronic equipment and the storage medium of equipment | |
US9465351B2 (en) | Self-transforming imaging cartridge chip | |
WO2018086306A1 (en) | Chip version switching method, apparatus and system | |
EP3260299B1 (en) | Imaging cartridge and storage chip applied in imaging cartridge | |
US20110032561A1 (en) | Universal Printer Chip With A Single Data Table | |
US10585633B2 (en) | Method for recording chip usage state information, chip of imaging cartridge and imaging cartridge | |
US9357091B2 (en) | Information input method, apparatus and system for associated apparatus of imaging device | |
CN110001210A (en) | Consumable chip, consumptive material and image formation system | |
JP2002118574A (en) | Apparatus and method for managing peripheral device, program recording medium and program | |
CN109976928B (en) | Chip, chip resetting method and consumable container | |
US20120327451A1 (en) | Method of Transforming an Imaging Machine | |
CN102768484A (en) | Information storage device of imaging device, and imaging box | |
JP3985135B2 (en) | Device initialization method in control system, control system, program for causing computer to execute device initialization method, and recording medium recording this program | |
JP2005284569A (en) | Refill management system |
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 |
Application publication date: 20171222 |
|
RJ01 | Rejection of invention patent application after publication |