CN100571163C - A kind of digital signal processor upgrade method and system - Google Patents
A kind of digital signal processor upgrade method and system Download PDFInfo
- Publication number
- CN100571163C CN100571163C CNB2007101429071A CN200710142907A CN100571163C CN 100571163 C CN100571163 C CN 100571163C CN B2007101429071 A CNB2007101429071 A CN B2007101429071A CN 200710142907 A CN200710142907 A CN 200710142907A CN 100571163 C CN100571163 C CN 100571163C
- Authority
- CN
- China
- Prior art keywords
- file
- redaction
- coff
- digital signal
- signal processor
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of digital signal processor upgrade method and system, comprise, FileVersion server, digital signal processor network application system, at first the FileVersion server is with the redaction filing of coff file; After the digital signal processor network application system detects and the redaction of coff file is arranged on the FileVersion server and obtain affirmation then, read in the file header and the parsing of coff file redaction, if the coff file redaction of reading in is effective, and the section that comprises in the coff file redaction has all been analyzed, then write timestamp in the file header of coff file redaction at the upgrade file head, generate and preserve upgrade file to the digital signal processor network application system, finish the digital signal processor upgrading.Use the present invention, improve the independence and the speed of edition upgrading, promoted the automaticity of upgrading.
Description
Technical field
The present invention relates to the digital signal processor application, more specifically relate to a kind of digital signal processor upgrade method and system.
Background technology
(Digital Singnal Processor: becoming stronger day by day of chip functions digital signal processor), its range of application are also more and more widely along with DSP.Two kinds of Design Modes of general employing in existing DSP network application: Host-Slave----principal and subordinate machine pattern and Standalone----single cpu mode.The former is as the Host-Slave Design Mode of Fig. 1, and network interface is provided by main frame; The Standalone Design Mode of the latter such as Fig. 1, network interface is provided by dsp chip, and the code of DSP generally is kept on the FLASH storage medium with the form of binary file (.bin file).No matter the problem which kind of pattern of employing all can be run into the remote upgrade code, traditional way is to initiate updating operation by version server, the long-range binary file file being sent on the processor that has network interface among Fig. 1 preserved by its sintering of finishing on FLASH (flash memory) storage medium.This upgrade method is passive for DSP, if when updating operation because the problem of DSP application system itself such as the failure that outage can cause upgrading.And the upgrading mode of this one-to-many, the version server operating personnel will upgrade one by one to the system of needs upgrading, have increased operating personnel's workload in large-scale application greatly.
So a kind of technical scheme of initiatively initiating updating operation by the DSP network application system of current needs.
Summary of the invention
Technical problem to be solved by this invention provides a kind of digital signal processor upgrade method and system, improves the independence and the speed of edition upgrading, has promoted the automaticity of upgrading.
In order to address the above problem, the invention provides a kind of digital signal processor upgrade method, comprise that FileVersion server, digital signal processor network application system may further comprise the steps,
A, FileVersion server are filed the redaction of coff file;
After b, digital signal processor network application system detect and the redaction of coff file are arranged on the FileVersion server and obtain affirmation, the file extractor reads in the file header of coff file redaction and resolves, judge whether the coff file redaction read in is effective, if, execution in step c then;
C, judge whether the section that comprises in the coff file redaction has all been analyzed, if, execution in step d then;
D, write timestamp in the file header of coff file redaction, generate and also preserve upgrade file, finish the digital signal processor upgrading to the digital signal processor network application system at the upgrade file head.
Further, said method can comprise that also among the described step b, described digital signal processor network application system is by comparing described timestamp detects coff file on the FileVersion server redaction; According to the indication of validity field in the described file header, judge whether the described coff file that reads in is effective; If the coff file redaction of reading in is invalid, then finish.
Further, said method also can comprise, also comprise among the described step b,
Write down the number in described coff file redaction stage casing;
Judge whether described coff file redaction has the optional file head,, then skip the optional file head to the paragraph header part if having.
Further, said method also can comprise, among the described step c, if the section that comprises in the described coff file redaction has not all been analyzed, then carries out following steps,
Step 5016 is added download address field and adjusted segment length field before the segment data that need are downloaded;
Further, said method also can comprise, in the described step 5012, according to the indication of attribute-bit in the paragraph header, judges whether segment data needs to download;
In the described step 5014, the segment data afterbody is carried out alignment operation, do not have the needs of alignment to carry out zero padding and handle according to the width of digital signal processor bus;
In the described step 5016, described download address field is consistent with respective field in the paragraph header, and described adjusted segment length is more than or equal to the value of respective field in the paragraph header;
In the described step 5018, the segment data that described structure is good is the segment data that comprises that download address field, adjusted hop count order field, process zero padding are handled.
Further, said method also can comprise, in the described steps d, merges the described upgrade file of generation by information and the segment data that file header, paragraph header are provided;
Described upgrade file is saved to the storage medium in the digital signal processor network application system, and described storage medium comprises flash memory.
Further, said method can comprise that also in the described steps d, if the redaction of described coff file is moved n time, then described digital signal processor is upgraded successfully; Otherwise described digital signal processor upgrading is invalid, and wherein said n is a positive number.
Further, said method can comprise that also described n is 3.
The present invention also provides a kind of digital signal processor upgrade-system, comprises FileVersion server, digital signal processor network application system, also comprises the file extractor, is used to extract the redaction of the coff file on the described FileVersion server;
Described FileVersion server is with the redaction filing of coff file, after described digital signal processor network application system detects and the redaction of coff file is arranged on the described FileVersion server and obtain affirmation, the startup file extractor makes its file header that reads in the coff file redaction and resolves, if the coff file redaction of reading in effectively and the section that comprises in the coff file redaction all analyzed, then write timestamp in the file header of coff file redaction at the upgrade file head, generate and preserve upgrade file to the digital signal processor network application system, finish the digital signal processor upgrading.
Further, said system can comprise that also described digital signal processor network application system is by comparing described timestamp detects coff file on the FileVersion server redaction; Described file extractor merges the described upgrade file of generation by information and the segment data that file header, paragraph header are provided; Described upgrade file is saved to the storage medium in the digital signal processor network application system, and described storage medium comprises flash memory.
Compared with prior art, use the present invention, bring following beneficial effect,
1. improve the initiative of DSP edition upgrading, in a single day the DSP application system detects when redaction .out file is arranged on the version server, can generate the upgrading that finally can supply downloaded files and finish version;
2. improve the speed of DSP edition upgrading, the present invention only needs to be responsible for the upgrading of system self, and needn't need wait for as passive upgrading that other system to be upgraded is ready to just can unify upgrading for the DSP application system;
3. reduce the artificial participation of release maintenance, promoted the automaticity of upgrading, the .out archive that adopts developer of the present invention only to need test is finished gets final product to version server, and remaining upgrade job is just finished voluntarily by the DSP application system, need not the release maintenance personnel and participates in;
4. adopt timestamp comparison method as the foundation that has or not redaction, method is simple and practical.
Description of drawings
Fig. 1 is two kinds of DSP network application system structural representations;
Fig. 2 is a coff file structural representation in the specific embodiment of the invention;
Fig. 3 is the structural representation of a kind of DSP upgrade-system in the specific embodiment of the invention;
Fig. 4 is a kind of DSP upgrade method flow chart in the specific embodiment of the invention;
Fig. 5 is the flow chart that the file extractor extracts the coff file redaction in the specific embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the invention is described further.
The specific embodiment of the invention can be applied to the improvement upgrading of the system that includes the DSP of TI and have network interface, perhaps has the improvement upgrading of single dsp system of the TI of network interface.
Fig. 1 has described the network application system structure of two kinds of DSP.System 100 is Host-Slave patterns, wherein 101 is HOST (main frame) chips that have network interface 103, network interface 103 is system 100 and the extraneous passage that carries out communication, and 101 are responsible for downloading the code that leaves the DSP (not needing to have network interface) 102 on the FLASH storage medium 104 in after resetting; System 200 is Standalone patterns, and wherein 201 is the dsp chips that have network interface, and network interface 202 is system 200 and the extraneous passage that carries out communication, and DSP 201 downloads the code that is kept on the FLASH storage medium 203 voluntarily after resetting.
The executable file .out that dsp chip uses is a kind of file of COFF form, and Fig. 2 has described the structure of COFF (Common Object File Format----common object file format) file in the specific embodiment of the invention.Coff file comprises file header 301, optional file head 302, paragraph header 303, segment data 304, section relocation information 305, section capable number 306, symbol table 307, string table 308.
The file in download that generates is only relevant with file header 301, paragraph header 303, segment data 304, wherein comprise in the file header 301 timestamp, the section number, whether the first-class information relevant with upgrade file of optional file is arranged, wherein timestamp can be used as the foundation whether version upgrades;
The number of paragraph header 303 and segment data 304 equates and is corresponding one by one indicate its corresponding segment data whether to need the relevant information of downloading in the paragraph header 303 in addition, that is to say that not all segment data all needs to download.
Paragraph header and segment data can have a plurality of, but other all types of data fields can only have one at most.
Information and the segment data of utilizing file header, paragraph header to provide just can generate new upgrade file.
As shown in Figure 3, a kind of DSP upgrade-system comprises the network application system of computer, DSP development board, FileVersion server, file extractor, DSP, wherein,
Computer generally is equipped with Integrated Development Environment, is used for developing on the DSP development board;
The FileVersion server is used for the redaction by the coff file of local area network (LAN) receiving computer exploitation, and the redaction of coff file is filed;
The file extractor is used for the redaction by the coff file on the network extraction FileVersion server;
The network application system of DSP stabs by comparison time and detects the redaction that coff file is arranged on the FileVersion server, and the startup file extractor extracts the redaction of coff file, and is stored to the network application system of DSP;
The redaction of the coff file of computer development is filed the FileVersion server through the test back by local area network (LAN), the network application system of DSP is connected with the FileVersion server by IP network, after the network application system of DSP detects and the redaction of coff file is arranged on the FileVersion server and obtain affirmation, the startup file extractor makes its file header that reads in the coff file redaction and resolves, if the coff file redaction of reading in effectively and the section that comprises in the coff file redaction all analyzed, then write timestamp in the file header of coff file redaction at the upgrade file head, generate and preserve the FLASH storage medium of upgrade file to the network application system of DSP, if this version successful operation n time (n is a positive number) then upgrade successfully, wherein n can be 3; Otherwise the invalid old version of coff file that still moves of upgrading.
As shown in Figure 4, a kind of DSP upgrade method comprises the network application system of FileVersion server, file extractor, DSP, and step is as follows,
Step 410, FileVersion server are filed the redaction of coff file;
After the network application system of step 420, DSP detects and the redaction of coff file is arranged on the FileVersion server and obtain affirmation, the startup file extractor;
The network application system of DSP stabs by comparison time and detects the redaction that coff file is arranged on the FileVersion server.
Step 430, file extractor extract the redaction of coff file, generate and preserve the network application system of upgrade file to DSP;
Upgrade file is saved to the storage medium in the network application system of DSP.
Described storage medium comprises FLASH.
Step 440, judge whether successful operation n time (n is a positive number) of redaction of coff file, then remote upgrade success; Otherwise the invalid old version of coff file that still moves of upgrading.
Regard as after the redaction of successful operation coff file 3 times upgrade file effectively old version just abolished otherwise the invalid old version of coff file that still moves of upgrading.
Fig. 5 has described the flow process of file extractor extraction coff file redaction.
The length of file header is fixed, and resolves each field wherein.
Comprise in the file header timestamp, the section number, whether the first-class information relevant with upgrade file of optional file is arranged, wherein timestamp can be used as the foundation whether version upgrades.
According to the indication of validity field in the file header, judge whether the coff file that reads in is effective.
According to the indication of file header stage casing number field, the number in record coff file redaction stage casing as in the initial value of counter, promptly need the number of the section analyzed.
According to the indication of optional file labeling head field in the file header, judge whether this coff file redaction has the optional file head.
According to the indication of attribute-bit in the paragraph header, judge that whether corresponding with it section need to download, and that is to say whether this segment data needs the part as upgrade file.
Width according to the dsp processor bus carries out alignment operation to the segment data afterbody, does not have the needs of alignment to carry out the zero padding processing.
Step 5016 is added download address field and adjusted segment length field before the segment data that need are downloaded;
The download address field is consistent with respective field in the paragraph header, and adjusted segment length is more than or equal to the value of respective field in the paragraph header.
The segment data that structure is good is the segment data that comprises that download address field, adjusted hop count order field, process zero padding are handled.
Repeating step 5010~step 5022, all sections that comprise in the coff file redaction have all been analyzed.
Write timestamp in the file header of coff file redaction at the upgrade file head, as judging the foundation that has or not redaction in the detecting activity next time.
Generate and preserve the storage medium of upgrade file to the network application system of DSP.
Described storage medium comprises FLASH etc.
Information and segment data that file header, paragraph header are provided merge the final upgrade file of generation.
The information that paragraph header provides comprises information such as absolute address`, segment data length.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1, a kind of digital signal processor upgrade method comprises, FileVersion server, digital signal processor network application system is characterized in that, may further comprise the steps,
A, FileVersion server are filed the redaction of coff file;
After b, digital signal processor network application system detect and the redaction of coff file are arranged on the FileVersion server and obtain affirmation, the file extractor reads in the file header of coff file redaction and resolves, judge whether the coff file redaction read in is effective, if, execution in step c then;
C, judge whether the section that comprises in the coff file redaction has all been analyzed, if, execution in step d then;
D, write timestamp in the file header of coff file redaction, generate and also preserve upgrade file, finish the digital signal processor upgrading to the digital signal processor network application system at the upgrade file head.
2, the method for claim 1 is characterized in that, among the described step b, described digital signal processor network application system is by comparing described timestamp detects coff file on the FileVersion server redaction; According to the indication of validity field in the described file header, judge whether the described coff file that reads in is effective; If the coff file redaction of reading in is invalid, then finish.
3, method as claimed in claim 2 is characterized in that, also comprise among the described step b,
Write down the number in described coff file redaction stage casing;
Judge whether described coff file redaction has the optional file head,, then skip the optional file head to the paragraph header part if having.
4, as claim 1,2 or 3 described methods, it is characterized in that, among the described step c,, then carry out following steps if the section that comprises in the described coff file redaction has not all been analyzed,
Step 5012 judges whether segment data needs to download, if then execution in step 5014, otherwise execution in step 5022;
Step 5014 is carried out alignment operation to the segment data afterbody;
Step 5016 is added download address field and adjusted segment length field before the segment data that need are downloaded;
Step 5018, the segment data that structure is good is attached to the upgrade file afterbody;
Step 5020 needs the number of download segments to add 1, and is added on the upgrade file head;
Step 5022, the number of the section of having analyzed or having handled subtracts 1;
Step 5024 judges whether the section that comprises in the coff file redaction has all been analyzed, if, execution in step d then; Otherwise, execution in step 5012.
5, method as claimed in claim 4 is characterized in that, in the described step 5012, according to the indication of attribute-bit in the paragraph header, judges whether segment data needs to download;
In the described step 5014, the segment data afterbody is carried out alignment operation, do not have the needs of alignment to carry out zero padding and handle according to the width of digital signal processor bus;
In the described step 5016, described download address field is consistent with respective field in the paragraph header, and described adjusted segment length is more than or equal to the value of respective field in the paragraph header;
In the described step 5018, the segment data that described structure is good is the segment data that comprises that download address field, adjusted hop count order field, process zero padding are handled.
6, as claim 1,2,3 or 5 described methods, it is characterized in that, in the described steps d, merge the described upgrade file of generation by information and the segment data that file header, paragraph header are provided;
Described upgrade file is saved to the storage medium in the digital signal processor network application system, and described storage medium comprises flash memory.
As claim 1,2,3 or 5 described methods, it is characterized in that 7, in the described steps d, if the redaction of described coff file is moved n time, then described digital signal processor is upgraded successfully; Otherwise described digital signal processor upgrading is invalid, and wherein said n is a positive number.
8, method as claimed in claim 7 is characterized in that, described n is 3.
9, a kind of digital signal processor upgrade-system comprises FileVersion server, digital signal processor network application system, it is characterized in that, also comprises the file extractor, is used to extract the redaction of the coff file on the described FileVersion server;
Described FileVersion server is with the redaction filing of coff file, after described digital signal processor network application system detects and the redaction of coff file is arranged on the described FileVersion server and obtain affirmation, the startup file extractor makes its file header that reads in the coff file redaction and resolves, if the coff file redaction of reading in effectively and the section that comprises in the coff file redaction all analyzed, then write timestamp in the file header of coff file redaction at the upgrade file head, generate and preserve upgrade file to the digital signal processor network application system, finish the digital signal processor upgrading.
10, system as claimed in claim 9 is characterized in that, described digital signal processor network application system is by comparing described timestamp detects coff file on the FileVersion server redaction; Described file extractor merges the described upgrade file of generation by information and the segment data that file header, paragraph header are provided; Described upgrade file is saved to the storage medium in the digital signal processor network application system, and described storage medium comprises flash memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101429071A CN100571163C (en) | 2007-08-09 | 2007-08-09 | A kind of digital signal processor upgrade method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101429071A CN100571163C (en) | 2007-08-09 | 2007-08-09 | A kind of digital signal processor upgrade method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101102229A CN101102229A (en) | 2008-01-09 |
CN100571163C true CN100571163C (en) | 2009-12-16 |
Family
ID=39036335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101429071A Expired - Fee Related CN100571163C (en) | 2007-08-09 | 2007-08-09 | A kind of digital signal processor upgrade method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100571163C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103425510B (en) * | 2013-08-08 | 2016-12-28 | 天脉聚源(北京)传媒科技有限公司 | A kind of method and device of interactive upgrading |
CN104298517B (en) * | 2014-07-08 | 2018-03-02 | 中标软件有限公司 | A kind of Oftware updating method and system |
CN111522564A (en) * | 2020-04-20 | 2020-08-11 | 深圳Tcl新技术有限公司 | Method and device for identifying system upgrading state and computer readable storage medium |
-
2007
- 2007-08-09 CN CNB2007101429071A patent/CN100571163C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101102229A (en) | 2008-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103150231B (en) | The method of computer booting and computer system | |
CN104615466B (en) | A kind of cloud platform dispositions method and system | |
CN108491199A (en) | A kind of method and terminal automatically generating interface | |
CN101589592A (en) | Multi-protocol removable storage device | |
CN103221949A (en) | MYSQL database heterogeneous log based replication | |
JP2005182790A (en) | Self-describing software image update component | |
CN107346284B (en) | Application program detection method and detection device | |
WO2011000279A1 (en) | Patch generation method for dynamic software updating and control and apparatus thereof | |
CN103226545A (en) | Data format conversion system, and method and system for batch loans information import | |
CN113065314B (en) | BIOS hardware adaptation method and device based on XML file format | |
CN103019874A (en) | Method and device for realizing exception handling based on data synchronization | |
CN100571163C (en) | A kind of digital signal processor upgrade method and system | |
CN102591716A (en) | Data items manager | |
CN101826025A (en) | Device for upgrading firmware of field programmable logic device and method thereof | |
CN102495739A (en) | Data compatible method and system as well as inter-plate message method and system | |
CN107247667A (en) | Automate dump analysis systems and method | |
CN110007941A (en) | A kind of the MCU firmware and upgrade method of Intelligent refuse classification recovery system | |
JP2009245383A (en) | Information processor and program analyzing method | |
CN104407899A (en) | Method for restoring and starting network card after MAC address is changed under REDHAT operating system | |
CN106407288B (en) | Method and system for synchronously updating information | |
CN104133743A (en) | Method and device for burning file into EMMC (Embedded MultiMedia Card) | |
CN103645895A (en) | Automatic configuration method and cloud compiling system | |
CN101425078A (en) | Software source code updating method and device | |
JP2009230618A (en) | Specification creating program, device therefor, and method thereof | |
CN104239497B (en) | The method for cleaning and device of upgrade file |
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: 20091216 Termination date: 20170809 |