CN1277185C - Method for version update - Google Patents

Method for version update Download PDF

Info

Publication number
CN1277185C
CN1277185C CN 200310121856 CN200310121856A CN1277185C CN 1277185 C CN1277185 C CN 1277185C CN 200310121856 CN200310121856 CN 200310121856 CN 200310121856 A CN200310121856 A CN 200310121856A CN 1277185 C CN1277185 C CN 1277185C
Authority
CN
China
Prior art keywords
file
electronic equipment
version
read
player
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
CN 200310121856
Other languages
Chinese (zh)
Other versions
CN1629804A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 200310121856 priority Critical patent/CN1277185C/en
Publication of CN1629804A publication Critical patent/CN1629804A/en
Application granted granted Critical
Publication of CN1277185C publication Critical patent/CN1277185C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a method for version updates. The method comprises the following steps: a version upgrade program is prestored in electronic equipment; a version update file is installed in a readable memory cell of the electronic equipment; the electronic equipment reads the file in the memory cell and judges whether the file is a version update file, if so, the version upgrade program is operated in order to record the version update file to the system software of the electronic equipment, and otherwise, the flow is jumped out. In the method, an upgrade operation interface can be omitted through function keys of a player of the electronic equipment in order to make the upgrade of the system software convenient. Therefore, the method greatly reduces the working load of service and increases the satisfaction degree of users.

Description

A kind of method of carrying out version updating
Technical field
The present invention relates to the upgrade technique of version, be meant a kind of method of carrying out version updating especially.
Background technology
Along with science and technology development, electronic product has been widely used in people's life.The electronic product that the file processing ability is wherein arranged has improved the quality and the efficient of modern's life, work greatly such as electronic products such as MP3 player, E-book reader, DVD/VCD player, PDA(Personal Digital Assistant) and wireless communication terminals.
But along with being growing more intense of market competition, the cycle of manufacturer's release product is also shorter and shorter, when launch, often has some defectives or unsatisfactory part.And along with being gradually improved of technology, selling product also needs continuous upgrading, and its escalation process is a software release upgrade process often.And existing version upgrading method is a pretty troublesome job.
With the MP3 player is example, the mode that electronic product carries out version updating usually is: generally need at first to connect with computing machine, assign the version updating instruction and transmit software version by the Control Software of computer terminal, the MP3 end enters a upgrading control programs, and the software version that computing machine is passed down is burnt in the storer.
Therefore, existing edition upgrading mode process is loaded down with trivial details, in general can only be operated by the professional and technical personnel.And, the consumer goods model change of MP3 player and so on is rapid, new product emerges in an endless stream, competitive pressure is increasing, manufacturer does not often have enough tests and applicable time just a new product to be introduced to the market, in case serious problems occur then can cause immeasurable loss or bring huge after sale service pressure.And it is many more to sell product, and the input that an edition upgrading needs is just big more.
Summary of the invention
The method that the purpose of this invention is to provide a kind of version updating, this method can make user oneself carry out auto-update.
A kind of method of carrying out version updating provided by the invention comprises: in advance with the edition upgrading procedure stores in electronic equipment, also comprise:
A. can read of described electronic equipment the version updating file is set in the storage unit;
B. described electronic equipment reads the file in the described storage unit, judges whether the file read is the version updating file, if, execution in step C then, otherwise, play the file that is read, return step B;
C. move the edition upgrading program, with the version updating burning file to the system software of this electronic equipment.
Can read storage unit described in the steps A is the storer of described electronic equipment self, or the external memory storage that is connected with this electronic equipment.
Described electronic equipment is MP3 player, E-book reader, DVD/VCD player, personal digital assistant or wireless communication terminal.
When described electronic equipment is the MP3 player, and the file header of version updating file comprises between identification code, update area, compressing mark, deletion sign, verification and and the ROM (read-only memory) reflection of upgraded version, then step C comprises:
C1, the shielding external interrupt, with the edition upgrading program copy in the ROM (read-only memory) of MP3 player;
C2, read the file header of current file, judge whether identification code is correct, if correct, execution in step C3 then, otherwise this flow process is jumped out in the upgrading failure;
Whether C3, traversal file checksummat are judged verification and are mated with the proof test value of self preserving, if coupling is wiped MP3's or non-flash memory, and execution in step C4, otherwise upgrading is failed, and jumps out this flow process;
C4, judgement have or not compressing mark, if do not have, then execution in step C5 if having, then decompresses this document.
C5, replace flash data according to address shown between update area with the image data of version file.
After step C5, this method further comprises:
C6, judged whether deletion sign,, deleted this version file if having, otherwise, jump out this flow process.
Upgrading failure in step C2, and jump out before this flow process, further comprise:
The MP3 player reports an error by the display unit of self.
Read described in the step B is by moving the audio playing module realization in the described electronic equipment.
Be to judge whether described in the step B by the filename of version updating file for the version updating file.
The present invention is stored in the edition upgrading program in the electronic equipment in advance, in the time will carrying out edition upgrading, in the storage unit with this electronic device-readable of edition upgrading file storage, comprises in the storage unit and connected storage unit of self.When this electronic equipment reads this edition upgrading file, with the edition upgrading program of operation self preservation, with the version file in the update system software.This method can be saved the updating operation interface by function key explicit or the multiplexing player of implicit expression, makes system software upgrading become convenient.And in actual application, manufacturer can issue a redaction on the website, perhaps to storage card that has redaction of point-of-sale terminal granting, can significantly reduce the workload of service, increases user's satisfaction.
Description of drawings
Fig. 1 is for realizing the schematic flow sheet of the inventive method;
Fig. 2 is for realizing the schematic flow sheet of the specific embodiment of the invention.
Embodiment
The present invention is stored in the edition upgrading program in the electronic equipment in advance, in the time will carrying out edition upgrading, the edition upgrading file storage in the storage unit of this electronic device-readable, is comprised in the storage unit and connected storage unit of self.When this electronic equipment reads this edition upgrading file, with the edition upgrading program of operation self preservation, with the version file in the update system software.In order to make electronic equipment identify the edition upgrading file, can be set to a file by the edition upgrading file with the discernible specific identifier of electronic equipment.
Shown in 1 figure, realize that method of the present invention may further comprise the steps:
Step 101: in advance with the edition upgrading procedure stores electronic equipment can the local storer of carrying out in;
Step 102: the version updating file is set in the storage unit can read of described electronic equipment;
Step 103: the file in the described electronic equipment reading cells, judge whether the file that reads is the version updating file, if then execution in step 104, otherwise, jump out this flow process;
Step 104: operation edition upgrading program, with the version updating burning file to this electronic equipment.
Be example with the MP3 player below and be described with reference to the accompanying drawings technical scheme of the present invention.
The basic structure of MP3 player once at first is described.Generally, the MP3 player comprises decoding chip, voicefrequency circuit, external data interface, button, display screen of power supply, CPU, flash memory, RAM, MP3 and other forms etc.Wherein, flash memory can comprise two, and one is can the local flash memory of carrying out, and as the flash memory of nondisjunction technology, is called for short the nondisjunction flash memory, is used for storage system software; Another piece flash memory generally adopts the flash memory of the lower NAND technology of price, is called for short the NAND flash memory, and to be formatted into be a FAT file system, wherein stores other data with the document form tissue such as song files and playlist; External data interface comprises USB device interface and memory card interface, can be become USB flash disk by computer Recognition by USB device interface MP3 player, is used for download audio files; By the exterior storage card, MP3 can external connection of storage card, thus the memory capacity of further expanding; Decoding chip is responsible for MP3 and other audio files are played back by voicefrequency circuit; CPU be responsible for to remove all software works the decoding, such as managing file system, be responsible for to decoding chip say the word and data, control display screen, accept the user key-press input, and the PC collaborative work carry out system version upgrading etc.
And because the MP3 player all supports file system, so the MP3 player can be handled by the USB device interface and downloads to the file of local flash memory and the file on the storage card.Along with the increase of ease for use demand, MP3 in the market is the same with USB flash disk, can be connected to become a mobile memory of computing machine by USB, can carry out file transfer easily.
In order to make the MP3 player identify version file, at first need the title and the file identification of standard software version.Filename can be the combination of product type and version number, as gets rom or x.rom, and wherein x represents version.
Identification code Between update area Compressing mark The deletion sign Verification and The ROM (read-only memory) reflection of upgraded version
Table 1
Version file comprises file header and file content.As shown in table 1, file header comprises between identification code, update area, compressing mark, deletion sign, verification and.Wherein, identification code is specific character string or binary data, is the upgrade file that is used for this product in order to sign; Represent that with the first address and the tail address of the flash memory of depositing software version also available first address and version length are represented between update area; Compressing mark shows whether the ROM (read-only memory) Image Data use specific compression algorithm to carry out overcompression; Whether the deletion sign deletes used version file in order to decision; Verification and be the ROM (read-only memory) Image Data verification and, be used to guarantee the integrality and the inerrancy of edition data.
In order to realize version updating of the present invention, need in the MP3 player, store the edition upgrading program that is embedded in the system software in advance, and extended audio file identification program makes its identification edition upgrading file.And, comprise that all system softwares of voice playing, button watchdog routine, edition upgrading program and other control programs all are stored in the nondisjunction flash memory; The support file of audio file and broadcast as playlist, is stored in the NAND flash memory or external memory card that loads file system; ROM (read-only memory) provides the space for the operation of system.
Referring to shown in Figure 2, present embodiment realizes that the detailed process of edition upgrading is as follows:
Step 200~201: accept user command, judge whether user command is play command, if, execution in step 202, otherwise, change corresponding processing program over to, execution in step 203;
Step 202: judge according to the current file name whether current file is the version updating file, if then execution in step 204, otherwise, change audio playing module over to, execution in step 203;
Step 203: continuous audio frequency broadcast state, execution in step 202;
Step 204: shielding external interrupt;
Step 205:, and jump to this address with the particular address of ROMPaq copying codes to ROM (read-only memory);
Step 206: the file header that reads current file;
Step 207: judge whether the identification code in the file header is correct, if correct, then execution in step 208, otherwise, execution in step 211;
Step 208: traversal file checksummat, judge verification and whether mate with the proof test value of self preserving, if mate, wipe the original version file of nondisjunction flash memory, execution in step 209, otherwise, execution in step 211;
Step 209: judge whether compressing mark, if do not have, then replace flash data according to address shown between update area with the image data of version file, execution in step 210, if have, after then earlier this document being decompressed, replace flash data with the image data of version file according to address shown between update area again, execution in step 210 then, finished updating operation this moment;
Step 210: judged whether the deletion sign,, deleted this version file if having, execution in step 200, otherwise, execution in step 200.
Step 211: the upgrading failure, report an error, execution in step 200 then.
Based on above-mentioned explanation, when the present invention realizes version updating, can connect electronic equipment by the storage card that will preserve the edition upgrading file, or the edition upgrading file is set in the storage unit of electronic device-readable.When the player plays of displaying audio file arrives this document, will judge that this this document be an edition upgrading file according to the title or the sign of this document, so the beginning escalation process.Like this, the user has saved indispensable operation such as computing machine, upgrade software, can transmit, duplicate upgraded version mutually by USB flash disk interface and storage card, and in the process of playing back music, machine is initiatively upgraded, and makes to sound that very complicated edition upgrading process becomes very popular.
It is the electronic equipment at center with the data processing simply that method of the present invention can be applicable to user interface, as E-book reader, and DVD/VCD player, PDA, wireless communication terminal etc.
The present invention is not only applicable to the system software version updating of electronic equipment, can also be used for customizable personal settings such as its standby picture, start-up picture, interface subject, style, as long as equipment is stored in the zone of fixed address to these customized informations, and provide the instrument of making version file by equipment manufacturers.

Claims (8)

1, a kind of method of carrying out version updating is characterized in that, in advance with the edition upgrading procedure stores in electronic equipment, this method may further comprise the steps:
A. can read of described electronic equipment the version updating file is set in the storage unit;
B. described electronic equipment reads the file in the described storage unit, judges whether the file read is the version updating file, if, execution in step C then, otherwise, play the file that is read, return step B;
C. move the edition upgrading program, with the version updating burning file to the system software of this electronic equipment.
2, method according to claim 1 is characterized in that, can read storage unit described in the steps A is the storer of described electronic equipment self, or the external memory storage that is connected with this electronic equipment.
3, method according to claim 1 is characterized in that, described electronic equipment is MP3 player, E-book reader, DVD/VCD player, personal digital assistant or wireless communication terminal.
4, method according to claim 1, it is characterized in that, when described electronic equipment is the MP3 player, and the file header of version updating file comprises between identification code, update area, compressing mark, deletion sign, verification and and the ROM (read-only memory) reflection of upgraded version, then step C comprises:
C1, the shielding external interrupt, with the edition upgrading program copy in the ROM (read-only memory) of MP3 player;
C2, read the file header of current file, judge whether identification code is correct, if correct, execution in step C3 then, otherwise this flow process is jumped out in the upgrading failure;
Whether C3, traversal file checksummat are judged verification and are mated with the proof test value of self preserving, if coupling is wiped MP3's or non-flash memory, and execution in step C4, otherwise upgrading is failed, and jumps out this flow process;
C4, judgement have or not compressing mark, if do not have, then execution in step C5 if having, then decompresses this document.
C5, replace flash data according to address shown between update area with the image data of version file.
5, method according to claim 4 is characterized in that, after step C5, this method further comprises:
C6, judged whether deletion sign,, deleted this version file if having, otherwise, jump out this flow process.
6, method according to claim 4 is characterized in that, upgrading failure in step C2, and jump out before this flow process, further comprise:
The MP3 player reports an error by the display unit of self.
7, method according to claim 1 is characterized in that, reading described in the step B is by moving the audio playing module realization in the described electronic equipment.
Whether 8, method according to claim 1 is characterized in that, be to judge by the filename of version updating file for the version updating file described in the step B.
CN 200310121856 2003-12-19 2003-12-19 Method for version update Expired - Fee Related CN1277185C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310121856 CN1277185C (en) 2003-12-19 2003-12-19 Method for version update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310121856 CN1277185C (en) 2003-12-19 2003-12-19 Method for version update

Publications (2)

Publication Number Publication Date
CN1629804A CN1629804A (en) 2005-06-22
CN1277185C true CN1277185C (en) 2006-09-27

Family

ID=34844305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310121856 Expired - Fee Related CN1277185C (en) 2003-12-19 2003-12-19 Method for version update

Country Status (1)

Country Link
CN (1) CN1277185C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207699B (en) * 2006-12-22 2011-03-30 深圳市同洲电子股份有限公司 Method for upgrading set-top box
US20120079473A1 (en) * 2009-06-08 2012-03-29 Haruhito Watanabe Software updating system, displaying unit and software updating method
CN104516744A (en) * 2013-09-27 2015-04-15 无锡华润微电子有限公司 Software updating method and system
CN103677902A (en) * 2013-11-25 2014-03-26 上海斐讯数据通信技术有限公司 Method for ensuring safety and success of updating of line-card software in distributed OLT system
CN112181471A (en) * 2020-10-16 2021-01-05 北京紫光展锐通信技术有限公司 Differential upgrading method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN1629804A (en) 2005-06-22

Similar Documents

Publication Publication Date Title
KR101119320B1 (en) Apparatus and method of firmware updating for movable storage apparatus
CN100446113C (en) Playlist synchronization
US8606830B2 (en) Contiguous file allocation in an extensible file system
US8792639B2 (en) Extensible disc player
US20080216066A1 (en) Program upgrade system and method for ota-capable mobile terminal
US20130318039A1 (en) Method and apparatus to manage files for a portable device
JP2008547153A (en) Create standardized playlists and maintain unity
US20060282571A1 (en) Multimedia devices with enhanced functionality
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US20060230349A1 (en) Coalesced per-file device synchronization status
CN1929427A (en) Mobile terminal, electronic-book reading device, updating system and reading method
CN1277185C (en) Method for version update
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN109408471B (en) Compressed packet decompression method and device based on matching tree and storage medium
US20030097554A1 (en) Method and system for configuring an operating system in a computer system
CN112882746B (en) Application program updating method and device, storage medium and computer equipment
CN1858748A (en) Method for realizing directly access USB master facility end file from slave facility end at USB
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
JP2007249155A (en) Method of managing media file and media playback apparatus
CN100483403C (en) Method for tagging and displaying songs in a digital audio player
US20070005617A1 (en) Display control method, content data reproduction apparatus, and program
CA2722511C (en) Efficient change tracking of transcoded copies
WO1998058310A1 (en) Storage medium having electronic circuits
CN112036133A (en) File saving method and device, electronic equipment and storage medium
CN111586170A (en) Resource downloading method, device, equipment and computer readable storage medium

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

Granted publication date: 20060927

Termination date: 20201219

CF01 Termination of patent right due to non-payment of annual fee