CN101145960B - A method for realizing software version compatibility after single board hardware change - Google Patents

A method for realizing software version compatibility after single board hardware change Download PDF

Info

Publication number
CN101145960B
CN101145960B CN2007101239556A CN200710123955A CN101145960B CN 101145960 B CN101145960 B CN 101145960B CN 2007101239556 A CN2007101239556 A CN 2007101239556A CN 200710123955 A CN200710123955 A CN 200710123955A CN 101145960 B CN101145960 B CN 101145960B
Authority
CN
China
Prior art keywords
plate
file
software
hardware
change
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
CN2007101239556A
Other languages
Chinese (zh)
Other versions
CN101145960A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101239556A priority Critical patent/CN101145960B/en
Publication of CN101145960A publication Critical patent/CN101145960A/en
Application granted granted Critical
Publication of CN101145960B publication Critical patent/CN101145960B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for achieving software version compatibility of changed hardware, which comprises firstly equipping a change mark on a single-board hardware for recording the current change frequency of the single-board hardware; then reading the change mark on the single-board hardware; searching the corresponding software file from a single-board software version file according to the change mark, and loading the software file onto the single-board hardware. Compared with prior art, the method of the invention mainly has the advantages that: (1) a file of the same software version can be used before and after changing the single-board hardware so that the software version file is compatible; and (2) the user can maintain the software version of the single-board hardware without considering the difference before and after changing the single-board hardware, and only the software version file of the same version can be used to reduce the maintenance complexity of the single-board hardware.

Description

Realize the method for software version compatibility behind a kind of single board hardware change
Technical field
What the present invention relates to is the softwarecompatible method that realizes the employed veneer of the various communication apparatus of method, especially communication field of software version compatibility behind a kind of board hardware change.
Background technology
The system equipment great majority are made up of various veneers, especially the system equipment of communication field, various function veneers are combined, just constituted a complete communication apparatus, generally all running software can be arranged on the veneer, board software is finished the management of single plate hardware and driving, and finishes the part of systemic-function in conjunction with the function that single plate hardware provides.
In the epoch that science and technology is maked rapid progress; can be on the originally stable veneer because a variety of causes; need to change hardware module or device on the veneer; original costliness and the device of poor efficiency is substituted by cheap device efficiently; perhaps great change can take place in the framework of veneer itself; the consequence that this " changing plate " causes is that the software version that changes before and after the plate can not compatibility operation through regular meeting.For example, certain key chip is replaced with more advanced in addition on the veneer, but unfortunately their driver is incompatible, make on the veneer software can successful operation, must use new driver, the software version that has so just caused this piece veneer to change before and after the plate can not compatibility.
Software version can not bring inconvenience compatiblely for user's service equipment, because, concerning the user, identical veneer on function and the profile, software version unexpectedly can't be compatible, and this is difficult to accept very much, because do not know the identical veneer of profile should descend any class software be only can true(-)running software, so, how to make and can use same software version file before and after the single board hardware change, be that we need consider the problem that solves.
Summary of the invention
The objective of the invention is to cause the shortcoming that exists the software incompatible in the prior art after the single board hardware change in order to have overcome.
To achieve these goals, software was realized compatible method after the present invention proposed a kind of single board hardware change, and it mainly comprises following content:
Method of the present invention, described method is carried out according to the following steps:
A, be provided with on single plate hardware and change the plate sign, this sign is used to write down the current plate number of times that changes of described single plate hardware;
B, read and change the plate sign on the described single plate hardware, and from the single board software edition file, find corresponding software document, be loaded on the described single plate hardware according to the described plate sign that changes; Described single board software edition file contains: described single plate hardware changes the pairing plate sign, described single plate hardware of changing of plate at every turn and changes corresponding software version and the described one-to-one relationship that changes plate sign and described software version behind the plate at every turn; Described single board software edition file include file head and two parts of file content, described single plate hardware change at every turn plate pairing change the plate sign, and this change the content size value of the pairing software version of plate sign, leave in successively according to the sequencing that changes plate in the continuous mark position of described file header, wherein, the content size value of described software version is placed on corresponding changing after the plate sign; The content of described software version leaves in the continuation address of described file content successively according to the sequencing that changes plate.In described file header, the content size value of described software version is placed on corresponding changing after the plate sign;
Wherein, described step B carries out the loading of software document according to following flow process:
B1, default address offset amount, and its initial value is composed is zero;
B2, read in the file header of described single board software edition file first change the plate sign, and this indicate the sizes values of pairing software document content;
B3, judge in the described file header change on plate sign and the described single plate hardware whether change the plate sign consistent; Be, then execution in step B4; Deny, then execution in step B5;
B4, the first address from the file content of described single board software edition file begin, be offset described address offset amount backward, and read file content according to the sizes values of software document content in the file header that reads, obtain currently to change the pairing software document of plate number of times, and be loaded on the single plate hardware;
B5, described address offset amount is superimposed with the sizes values of software document content in the file header that reads;
B6, read the next one in the described file header change the plate sign, and this indicate the sizes values of pairing software document content, and execution in step B3.
Wherein, in the file header of described single board software edition file, what described single plate hardware was deposited in the first place changes the plate total degree.Wherein, among the described step B1, also comprise the step that changes the plate total degree that reads in the described file header.In the described steps A, described changing on the memory that the plate sign is stored in described single plate hardware.
Adopt the method for the invention, compared with prior art, mainly contain following advantage:
(1) before and after the single board hardware change, can use same software version file, therefore, the software version file is compatible.
(2) user is for the software version maintenance management of this veneer, do not need to consider to change the otherness before and after the plate, only need to use same software version file just passable, reduced the complexity that the user safeguards hardware single board.
Description of drawings
Fig. 1 is the format chart of single board software edition file swbpAll;
Fig. 2 is the format chart of the single board software edition file swbpAll of LTE Baseband Processing Unit BP in the embodiment;
Fig. 3 is the flow chart of veneer load software version file of the present invention.
Embodiment
Software is realized compatible method behind a kind of single board hardware change proposed by the invention, and it mainly may further comprise the steps: at first, be provided with on single plate hardware and change the plate sign, this sign is used to write down the current plate number of times that changes of described single plate hardware; Then, read and change the plate sign on the described single plate hardware, and from the single board software edition file, find corresponding software document according to changing the plate sign, be loaded on the described single plate hardware.
LTE Baseband Processing Unit BP with the NodeB of WCDMA (Wideband Code Division Multiple Access, wideband CDMA) is that example describes the present invention below.Above-mentioned LTE Baseband Processing Unit BP changes plate through 3 times, and three times the plate sign that changes is respectively that the software version file that changes the plate correspondence for 1,2,3, three times is respectively swbp1, swbp2, swbp3, and these three file sizes are respectively 1000byte, 1200byte, 1300byte.
When adopting method of the present invention, at first can in the hardware memory of LTE Baseband Processing Unit BP, preserve and change plate sign Flag, be used to write down the current plate number of times that changes of single plate hardware.Single plate hardware changes plate at every turn, all upgrades changing plate sign Flag, and it is as the unique sign that changes plate, as the foundation of carrying out software loading later on.For example, LTE Baseband Processing Unit BP obtains the BP1 plate through changing plate for the first time, and it changes plate sign Flag is 1, and corresponding software version is swbp1, and its size is 1000byte; LTE Baseband Processing Unit BP obtains the BP2 plate through changing plate for the second time, and it changes plate sign Flag is 2, and corresponding software version is swbp2, and its size is 1200byte; LTE Baseband Processing Unit BP obtains the BP3 plate through changing plate for the third time, and it changes plate sign Flag is 3, and corresponding software version is swbp3, and its size is 1300byte.It is compatible for above-mentioned BP1 plate, BP2 plate and BP3 plate can be realized when carrying out software loading, the unified single board software edition file swbpAll that makes of the present invention, comprising software version file swbp1, swbp2 and swbp3, and the one-to-one relationship that changes plate sign Flag and software version, arrive corresponding software version file according to the plate tag lookup that changes on the single plate hardware when being convenient to carry out software loading.
Above-mentioned single board software edition file swbpAll can adopt following dual mode:
One: described single board software edition file swbpAll adopts the form of database, sets up and change plate sign 1 (expression value be 1 change the plate sign), change plate sign 2 (expression value be 2 change the plate sign), changes plate sign 3 one-to-one relationship of (expression value be 3 change the plate sign) and software version file swbp1, swbp2 and swbp3.That is to say, described single plate hardware changes the pairing plate sign Flag, described single plate hardware of changing of plate at every turn and changes corresponding software version and the described one-to-one relationship that changes plate sign Flag and described software version behind the plate at every turn, can adopt the mode basis of tabling look-up to change the corresponding software version of plate tag lookup like this.
Its two: referring to Fig. 1, single board software edition file swbpAll is divided into file header and file content two parts, in file header, change at every turn that plate is pairing to change plate sign Flag and this changes the content size value of the pairing software document of plate sign, leave in successively in its continuous mark position according to the sequencing that changes plate, wherein, the content size value of described software version is placed on corresponding changing after the plate sign.As: can place successively in a plurality of flag bits of file header: change plate sign 1, change the corresponding software document of plate sign 1 veneer size ..., change plate sign N, change the size of the corresponding software document of plate sign N veneer;
Deposit the content of each version software file in the continuation address of file content successively according to the sequencing that changes plate, deposit successively as, file content part: change the corresponding software document content of plate sign 1 veneer ..., change the corresponding software document content of plate sign N veneer.Above-mentioned N is the natural number more than or equal to 1.
Certainly in file header part, what described single plate hardware can be deposited in the first place changes the plate total degree, and when the standard of comparison that stops as loading procedure according to this is convenient to judge when carrying out software loading termination process below to describe in detail in the concrete grammar step.
When adopting the above-mentioned second way to set up single board software edition file swbpAll,, when then making single board software edition file swbpAll, only above-mentioned N need be got 3 just passable because LTE Baseband Processing Unit BP has only changed plate three times.As shown in Figure 2, the concrete form following (according to 16 system forms) of the file header of the single board software edition file swbpAll of LTE Baseband Processing Unit BP part:
03 01 03E8 02 04B0 03 0514
The file content part is deposited successively: swbp1, swbp2, swbp3.
Like this, the BP single board software edition file swbpAll that changes behind the plate 3 times has comprised swbp1, swbp2, three softwares of swbp3 and has changed the plate sign.
When adopting the single board software edition file swbpAll form of above-mentioned form shown in Figure 1 that single plate hardware is carried out software loading, idiographic flow is as follows.
As shown in Figure 3, at first carry out the work of Board Power up program initialization, and read from single plate hardware (being the BP2 plate) and to change plate sign Flag, and from single board software edition file swbpAll, read the file header part; Carry out following software loading flow process then:
111, default address offset amount offset, and its initial value is composed is zero, i.e. offset=0; A default cyclic variable i, and the initial value of this variable i is composed is 1, i.e. i=1; And read among the single board software edition file swbpAll and to change plate total degree N in the file header;
112, judge that whether cyclic variable i is less than changing plate total degree N; Be that then execution in step 113; Not, then stop loading flow process, fault processing is carried out in the failure of expression load software then;
113, read in the file header of single board software edition file swbpAll i change plate sign (promptly changing plate sign i), and this indicate sizes values (promptly changing the size of the corresponding software document of plate sign i veneer) of pairing software document content;
114, judge in the described file header change on plate sign i and the described single plate hardware whether change plate sign Flag consistent; Be that then execution in step 115; Not, then execution in step 116;
115, the first address from the file content of single board software edition file begins, be offset described address offset amount offset backward, and read file content according to the sizes values of software document content in the file header that reads, obtain currently to change the pairing software document of plate number of times, and be loaded on the single plate hardware;
116, described address offset amount is superimposed with the sizes values (being the size that address offset amount offset=offset+ changes the corresponding software document of plate sign i veneer) of software version content in the file header that reads;
117, cyclic variable i is added 1, be repeated to step 112.Introduce a cyclic variable i in the said process, be used to write down cycle-index, and the plate total degree N that changes among itself and the single board software edition file swbpAll is compared, guaranteed the normal operation of loading procedure, determined the program termination time.
In the above-mentioned idiographic flow, if be example with the software loading process that changes for the second time the BP2 plate of plate, the single board hardware change sign Flag=2 that then reads, its step 111 specifically can be undertaken by following process to 117:
121, at first address offset amount offset is changed to 0, cyclic variable i is changed to 1, reads to change plate total degree N=3 in the single board software edition file swbpAll file header;
122, judge cyclic variable i less than 3, then carried out for 123 steps and handle.
123, read the sizes values that changes plate sign 1 and swbp1 in the file header (promptly 1000), judge change on plate sign 1 and the BP2 plate to change plate sign Flag unequal, then address offset amount offsett is added the file size 1000 of swbp1, carried out for 124 steps and handle;
124, cyclic variable i is added 1 (being i=2), judge cyclic variable i, then carried out for 125 steps and handle less than 3;
125, read the sizes values that changes plate sign 2 and swbp2 in the file header (promptly 1200), judge that change plate sign 2 equates with the plate sign Flag that changes on the BP2 plate, then the log file size equals the size 1200 of swbp2, the BP2 veneer from the file content of software version file partly then, be offset 1000 addresses backward, read size and be 1200 file content (just in time being the file content of swbp2), and it is loaded.What above-mentioned steps 121 to 125 was explained is a specific embodiment of above-mentioned steps 111 to 117.From above example, but the technical scheme that the present invention proposes not only has the board hardware change advantage of software version compatibility afterwards, can also reduce the advantage of the complexity of hardware version management.And the present invention not only is suitable for WCDMA base station system, the also hardware single board of suitable other communication systems.
Illustrating of above-mentioned each concrete steps is comparatively concrete, can not therefore think the restriction to scope of patent protection of the present invention, and scope of patent protection of the present invention should be as the criterion with claims.

Claims (4)

1. realize the method for software version compatibility behind the single board hardware change, it is characterized in that described method is carried out according to the following steps:
A, be provided with on single plate hardware and change the plate sign, this sign is used to write down the current plate number of times that changes of described single plate hardware;
B, read and change the plate sign on the described single plate hardware, and from the single board software edition file, find corresponding software document, be loaded on the described single plate hardware according to the described plate sign that changes; Described single board software edition file contains: described single plate hardware changes the pairing plate sign, described single plate hardware of changing of plate at every turn and changes corresponding software version and the described one-to-one relationship that changes plate sign and described software version behind the plate at every turn; Described single board software edition file include file head and two parts of file content, described single plate hardware change at every turn plate pairing change the plate sign, and this change the content size value of the pairing software version of plate sign, leave in successively according to the sequencing that changes plate in the continuous mark position of described file header; The content of described software version leaves in the continuation address of described file content successively according to the sequencing that changes plate; In described file header, the content size value of described software version is placed on corresponding changing after the plate sign;
Described step B carries out the loading of software document according to following flow process:
B1, default address offset amount, and its initial value is composed is zero;
B2, read in the file header of described single board software edition file first change the plate sign, and this indicate the sizes values of pairing software document content;
B3, judge in the described file header change on plate sign and the described single plate hardware whether change the plate sign consistent; Be, then execution in step B4; Deny, then execution in step B5;
B4, the first address from the file content of described single board software edition file begin, be offset described address offset amount backward, and read file content according to the sizes values of software document content in the file header that reads, obtain currently to change the pairing software document of plate number of times, and be loaded on the single plate hardware;
B5, described address offset amount is superimposed with the sizes values of software document content in the file header that reads;
B6, read the next one in the described file header change the plate sign, and this indicate the sizes values of pairing software document content, and execution in step B3.
2. method according to claim 1 is characterized in that, in the file header of described single board software edition file, what described single plate hardware was deposited in the first place changes the plate total degree.
3. method according to claim 2 is characterized in that, among the described step B1, also comprises reading changing the plate total degree in the described file header.
4. method according to claim 3 is characterized in that, in the described steps A, and described changing on the memory that the plate sign is stored in described single plate hardware.
CN2007101239556A 2007-10-15 2007-10-15 A method for realizing software version compatibility after single board hardware change Expired - Fee Related CN101145960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101239556A CN101145960B (en) 2007-10-15 2007-10-15 A method for realizing software version compatibility after single board hardware change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101239556A CN101145960B (en) 2007-10-15 2007-10-15 A method for realizing software version compatibility after single board hardware change

Publications (2)

Publication Number Publication Date
CN101145960A CN101145960A (en) 2008-03-19
CN101145960B true CN101145960B (en) 2010-04-21

Family

ID=39208274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101239556A Expired - Fee Related CN101145960B (en) 2007-10-15 2007-10-15 A method for realizing software version compatibility after single board hardware change

Country Status (1)

Country Link
CN (1) CN101145960B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823664B (en) 2012-11-19 2017-12-15 中兴通讯股份有限公司 A kind of design method of binary system unification Boot programs and kernel program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346089A (en) * 2000-09-26 2002-04-24 华为技术有限公司 Intelligent upgrade method, system and device
CN1542612A (en) * 2003-11-06 2004-11-03 中兴通讯股份有限公司 Singleboard software automatic download method and device
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN1547397A (en) * 2003-12-08 2004-11-17 中兴通讯股份有限公司 A single board version management method for plug and play
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
EP1720097A1 (en) * 2005-03-18 2006-11-08 Fujitsu Limited Firmware version managing method and computer system
CN1859151A (en) * 2005-07-19 2006-11-08 上海华为技术有限公司 Method for upgrading remote subsystem in communication system
CN1980446A (en) * 2005-12-06 2007-06-13 中兴通讯股份有限公司 Edition information processing method of inlaid distribution system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346089A (en) * 2000-09-26 2002-04-24 华为技术有限公司 Intelligent upgrade method, system and device
CN1543107A (en) * 2003-11-04 2004-11-03 中兴通讯股份有限公司 Method of singleboard Node B software download and upgrade
CN1542612A (en) * 2003-11-06 2004-11-03 中兴通讯股份有限公司 Singleboard software automatic download method and device
CN1547397A (en) * 2003-12-08 2004-11-17 中兴通讯股份有限公司 A single board version management method for plug and play
CN1812332A (en) * 2005-01-26 2006-08-02 华为技术有限公司 Method for assurng conformity of exchanger various monoboard software edition
EP1720097A1 (en) * 2005-03-18 2006-11-08 Fujitsu Limited Firmware version managing method and computer system
CN1859151A (en) * 2005-07-19 2006-11-08 上海华为技术有限公司 Method for upgrading remote subsystem in communication system
CN1980446A (en) * 2005-12-06 2007-06-13 中兴通讯股份有限公司 Edition information processing method of inlaid distribution system

Also Published As

Publication number Publication date
CN101145960A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
HK1086365A1 (en) Selective loading and configuring of an application on a wireless device, using relational information
CN1859191A (en) Method for realizing software edition upgrading
CN102662711B (en) A kind of chip fast initializing method and device
TWI255993B (en) Efficient connection between modules of removable electronic circuit cards
CA2544064A1 (en) System and method for performing integrated storage operations
CN101426254B (en) Method, apparatus and system for information transmission implementation
WO2007146756A3 (en) Optimized placement policy for solid state storage devices
CN101252757A (en) Wireless communication system, wireless communication module and wireless communication device
WO2007000735A3 (en) Method and apparatus using multiple application cards to comprise multiple logical network entities
CN1928839A (en) Long-distance inner server and its implementing method
CN1866910A (en) Data message transmission method and Ethernet bridge apparatus based on VLAN
CN101841390B (en) Transmission channel coding and multiplexing method and bit level processor
CN105162629A (en) Method for achieving automatic binding of double network cards under LINUX system
US20050021684A1 (en) System and method for auto-configuring stackable network devices
CN102546778A (en) Agent-based cross-platform wireless network access controller multi-board communication method
CN102255687A (en) Rate matching method and device thereof
CN101145960B (en) A method for realizing software version compatibility after single board hardware change
CN203706058U (en) CAN bus based multi-I/O board card expansion structure
CN102186257A (en) Communication method of wireless terminal and host equipment, wireless terminal and host equipment
CN102291854A (en) LTE (long term evolution) wireless network card terminal device
CN100405783C (en) Ethernet group broadcasting method
CN102904803B (en) A kind of message transmitting method and equipment
WO2008035334A3 (en) Fault-tolerant medium access control (mac) address assignment in network elements
CN202160285U (en) LTE wireless network card terminal apparatus
CN102171976B (en) Data transmission method on switch device and apparatus thereof

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: 20100421

Termination date: 20161015

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