CN102831000B - The method and system of system upgrade - Google Patents

The method and system of system upgrade Download PDF

Info

Publication number
CN102831000B
CN102831000B CN201210334330.5A CN201210334330A CN102831000B CN 102831000 B CN102831000 B CN 102831000B CN 201210334330 A CN201210334330 A CN 201210334330A CN 102831000 B CN102831000 B CN 102831000B
Authority
CN
China
Prior art keywords
subsystem
upgrade file
file
level
level subsystem
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.)
Active
Application number
CN201210334330.5A
Other languages
Chinese (zh)
Other versions
CN102831000A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210334330.5A priority Critical patent/CN102831000B/en
Publication of CN102831000A publication Critical patent/CN102831000A/en
Application granted granted Critical
Publication of CN102831000B publication Critical patent/CN102831000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and system of system upgrade, relate to computer realm to comprise: one-level subsystem receives the targeted update file that main system is sent by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem; One-level sub system analysis targeted update file, obtains the first upgrade file and the second upgrade file; One-level subsystem runs the first upgrade file, makes one-level subsystem have the function the second upgrade file being sent to secondary subsystem; Second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem, makes secondary subsystem complete upgrading.By the present invention, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.

Description

The method and system of system upgrade
Technical field
The present invention relates to computer realm, especially relate to a kind of method and system of system upgrade.
Background technology
At present, in wavelength-division communication system, photoelectric conversion module is operated on service board, and photoelectric conversion module comprises some internal components.The partial interior device of service board, photoelectric conversion module and optical-electric module all has respective software systems.If the software systems of service board are considered as main system, then the software systems of photoelectric conversion module are one-level subsystem, the software systems of photoelectric conversion module internal components are secondary subsystem, and wherein, above-mentioned main system, one-level subsystem and secondary subsystem constitute dibaryon system.
In implementation procedure, carry out alternately to enable Host Systems, one-level subsystem and secondary subsystem, usually following standard is followed: between main system and one-level subsystem, there is the first communication protocol and the first updating protocol, wherein, first communication protocol is used for the data interaction between main system and one-level subsystem, it is that the software of one-level subsystem is upgraded that first updating protocol is specifically designed to main system, when one-level subsystem receives the data that main system sended over by the first updating protocol, namely think the file that one-level subsystem is upgraded.Second communication agreement and the second updating protocol is there is between one-level subsystem and secondary subsystem, second communication agreement is used for the data interaction between one-level subsystem and secondary subsystem, it is that the software of secondary subsystem is upgraded that second updating protocol is specifically designed to one-level subsystem, when secondary subsystem receives the data that one-level subsystem sended over by the second updating protocol, namely think the file that secondary subsystem is upgraded.
It should be noted that, the internal components manufacturer of photoelectric conversion module is more, and the method for upgrading software of the internal components of each manufacturer production is also different, and developer is when carrying out the initial designs of main system and one-level subsystem, the internal components used for photoelectric conversion module is unknown, so when designing main system and one-level subsystem, the problem of upgrading to the software of secondary subsystem usually can not be considered.
After internal components installation, carrying out, in the process applied, if desired upgrading to the software in secondary subsystem, at present, usually taking following method:
First, need to upgrade to main system by technician or by the superior system of main system, main system is made to possess the function according to the first communication protocol, the upgrade file of secondary subsystem being divided into multiple order bag, also need in one-level subsystem, to add upgrade function module by technician or upgrading tool, one-level subsystem is possessed by the second updating protocol to the function of secondary sub-system staging;
Secondly, the upgrade file of secondary subsystem is divided into multiple order bag according to the first communication protocol by main system, then order is wrapped one by one send to one-level subsystem.
Then, when one-level subsystem receives the order bag that main system issues, carry out parsing according to the first communication protocol and obtain order bag content, and according to the second updating protocol, order bag content Reseal is become upgrade file order bag, according to the second updating protocol, upgrade file order bag is sent to secondary subsystem one by one again, so that when secondary subsystem receives upgrade file order bag, resolve and obtain upgrade file order bag content and this upgrade file order bag content is stored into the address space of specifying.After all upgrade file order bags received all to be resolved and are stored into the address space of specifying by secondary subsystem, complete the upgrading of secondary subsystem.
In existing method, when needs are upgraded to secondary subsystem, upgrade file is packaged into order bag and according to the first communication protocol, order bag is sent to one-level subsystem by main system, it is too small that the data volume that can deposit is wrapped in each order due to defined in the first communication protocol, therefore in escalation process, need exchanges data repeatedly just can complete the transmission of upgrade file between main system and one-level subsystem, the data between main system and one-level subsystem are caused to be transmitted consuming time longer, make operation when upgrading to secondary subsystem comparatively complicated, efficiency is lower.
Summary of the invention
Embodiments of the invention provide a kind of method and system of system upgrade, by the present invention, simplify operation when upgrading to secondary subsystem, improve upgrading efficiency.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A method for system upgrade, is applied in dibaryon system, and described dibaryon system comprises: main system, one-level subsystem and secondary subsystem, comprising:
One-level subsystem receives the targeted update file that main system is sent by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem;
One-level sub system analysis targeted update file, obtains the first upgrade file and the second upgrade file;
One-level subsystem runs the first upgrade file, makes one-level subsystem have the function the second upgrade file being sent to secondary subsystem;
Second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem, makes secondary subsystem complete upgrading.
The method of another kind of system upgrade, be applied in dibaryon system, described dibaryon system comprises: main system, one-level subsystem and secondary subsystem, comprising:
Main system obtains the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
Targeted update file is sent to one-level subsystem by the first updating protocol by main system, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem.
A kind of one-level subsystem, comprising:
Receiving element, for receiving the targeted update file that main system is sent by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem;
Resolution unit, for resolving targeted update file, obtains the first upgrade file and the second upgrade file;
Running unit, for running the first upgrade file, makes one-level subsystem have the function the second upgrade file being sent to secondary subsystem;
Transmitting element, for the second upgrade file being sent to secondary subsystem by the second updating protocol, makes secondary subsystem complete upgrading.
A kind of main system, comprising:
Acquiring unit, for obtaining the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
Transmitting element, for targeted update file being sent to one-level subsystem by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem.
A kind of dibaryon system, comprising:
Above-mentioned main system, above-mentioned one-level subsystem and secondary subsystem.
The method and system of a kind of system upgrade provided by the invention, targeted update file occurs to one-level subsystem by the first updating protocol by main system, one-level subsystem is by running first upgrade file of resolving and obtaining, one-level subsystem is made to have the function the second upgrade file being sent to secondary subsystem, second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem again, makes secondary subsystem complete upgrading.In the present invention, when upgrading to secondary subsystem, the data volume can deposited due to each order bag of defined in the first updating protocol is larger, when file destination is sent to one-level subsystem by main system, then file destination can be divided into less order bag and send to one-level subsystem, thus effectively reduce the time that between main system and one-level subsystem, data are transmitted, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow diagram of a kind of system upgrade that Fig. 1 provides for one embodiment of the present of invention;
The method flow diagram of the another kind of system upgrade that Fig. 2 provides for one embodiment of the present of invention;
The method flow diagram of a kind of system upgrade that Fig. 3 provides for an alternative embodiment of the invention;
The method flow diagram of a kind of system upgrade that Fig. 4 provides for yet another embodiment of the present invention;
The structural drawing of a kind of one-level subsystem that Fig. 5 provides for another embodiment of the present invention;
The structural drawing of the another kind of one-level subsystem that Fig. 6 provides for another embodiment of the present invention;
The structural drawing of a kind of main system that Fig. 7 provides for another embodiment of the present invention;
A kind of dibaryon system construction drawing that Fig. 8 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, An embodiment provides a kind of method flow diagram of system upgrade, specifically comprise the steps:
101: one-level subsystem receives the targeted update file that main system is sent by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes one-level subsystem the second upgrade file can be sent to secondary subsystem.
102: one-level sub system analysis targeted update file, obtains the first upgrade file and the second upgrade file.
103: one-level subsystem runs the first upgrade file, make one-level subsystem have described objective function, send to the function of secondary subsystem by the second upgrade file.
104: the second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem, make secondary subsystem complete upgrading.
See Fig. 2, An embodiment provides the method flow diagram of another kind of system upgrade, specifically comprise the steps:
201: main system obtains the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
202: targeted update file is sent to one-level subsystem by the first updating protocol by main system, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem.
The method of a kind of system upgrade that the present embodiment provides, targeted update file occurs to one-level subsystem by the first updating protocol by main system, one-level subsystem is by running first upgrade file of resolving and obtaining, one-level subsystem is made to have the function the second upgrade file being sent to secondary subsystem, second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem again, makes secondary subsystem complete upgrading.In the method that the present embodiment provides, when upgrading to secondary subsystem, the data volume can deposited due to each order bag of defined in the first updating protocol is larger, when file destination is sent to one-level subsystem by main system, then file destination can be divided into less order bag and send to one-level subsystem, thus effectively reduce the time that between main system and one-level subsystem, data are transmitted, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.
In the present embodiment, before secondary subsystem is upgraded, user to judge in one-level subsystem except original file, whether remaining storage space enough stores the first upgrade file and the second upgrade file that comprise first code, wherein, first code is used for for one-level subsystem increases objective function, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem.
When in one-level subsystem except original file, when remaining memory space inadequate is to store the first upgrade file (comprising first code) and the second upgrade file, the method for upgrading to secondary subsystem is with reference to Fig. 3.
When in one-level subsystem except original file, when remaining storage space enough stores the first upgrade file (comprising first code) and the second upgrade file, the method for upgrading to secondary subsystem is with reference to Fig. 4.
The secondary subsystem introduced successively below described in Fig. 3 and Fig. 4 carries out the method for upgrading.
Participate in Fig. 3, an alternative embodiment of the invention provides a kind of method flow diagram of system upgrade, specifically comprises the steps:
301: main system obtains the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file.
Wherein, what the first upgrade file can be write for user increases the code of objective function for being embodied as one-level subsystem.
Optionally, in the embodiment of the present invention, first upgrade file can comprise first code and interface document, first code is used for for one-level subsystem increases objective function, objective function is the function the second upgrade file being sent to secondary subsystem by the second updating protocol, after interface document is used for one-level subsystem operation first code, the interface document that must call during performance objective function.
Wherein, the second upgrade file is the upgrade file for upgrading to secondary subsystem, namely the code of user by writing.
Wherein, the targeted update file obtained after user's the first upgrade file of comprising first code and interface document by above-mentioned and above-mentioned second upgrade file carry out merging treatment.
It should be noted that, due to the difference of secondary subsystem and one-level subsystem development business, the difference at secondary subsystem and one-level subsystem file storage format may be caused, therefore, before this step 301, user judges whether the form of the second upgrade file meets the storage format demand of one-level subsystem;
When the form of the second upgrade file does not meet the storage format demand of one-level subsystem, user carries out format conversion to the second upgrade file, makes the second upgrade file form can meet the storage format of one-level subsystem.
Optionally, user can complete on the master system to the operation that the second upgrade file carries out format conversion, and wherein, the format conversion of file belongs to prior art, does not repeat them here.
Such as, original form of the second upgrade file is DIN form, and in one-level subsystem, acceptable storage format is HEX form, now, on the master system the format conversion of the second upgrade file can be become HEX form by user.
302: delete instruction is sent to one-level subsystem by the first updating protocol by main system, to delete original file of one-level subsystem.
Wherein, the first updating protocol is existing protocol.
It should be noted that, due in one-level subsystem except original file, remaining memory space inadequate is to store the first upgrade file (comprising first code) and the second upgrade file, main system deletes original file of one-level subsystem by sending delete instruction, with thinking targeted update file reserved storage space.
303: main system sends targeted update file by the first updating protocol to one-level subsystem.
Wherein, targeted update file comprises the first upgrade file and the second upgrade file, and the first upgrade file comprises first code and interface document.
304: after one-level subsystem receives targeted update file, resolve targeted update file, obtain the first upgrade file and the second upgrade file.
305: one-level subsystem stores the first upgrade file and the second upgrade file.
Wherein, the first upgrade file and the second upgrade file are stored in the flash space of specifying by one-level subsystem.
306: one-level subsystem runs the first upgrade file, make one-level subsystem have the function the second upgrade file being sent to secondary subsystem.
It should be noted that, in the prior art, one-level subsystem is when receiving the file that main system is sended over by the first updating protocol, namely can think that this file is the file of upgrading to one-level subsystem, thus run this file one-level subsystem is upgraded, the present invention make use of this point just, first upgrade file with objective function is sent to one-level subsystem by the first updating protocol, after one-level subsystem receives the first upgrade file, namely can run the first upgrade file, thus make self to there is objective function.
307: the second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem, make secondary subsystem complete upgrading.
Wherein, the second updating protocol is existing protocol.
308: original file of one-level subsystem is sent to one-level subsystem by the first updating protocol by main system.
It should be noted that, when in one-level subsystem except original file, when remaining storage space only can store the first upgrade file, then main system is before sending to one-level subsystem by the first updating protocol by original file of one-level subsystem, only delete the second upgrade file in one-level subsystem, retain the first upgrade file, objective function is possessed for a long time to make one-level subsystem, do not need objective function to be possessed at reception first upgrade file when upper once execution upgrading secondary subsystem, more decrease the volume of transmitted data between main system and one-level subsystem when secondary subsystem is upgraded.
309: after one-level subsystem receives original file of the one-level subsystem that main system sends, reduction one-level subsystem.
It is emphasized that the present invention is applied in dibaryon system, dibaryon system comprises: above-mentioned main system, above-mentioned one-level subsystem and above-mentioned secondary subsystem.For wavelength-division system, main system can be the software system of service board, and one-level subsystem can be the software systems of photoelectric conversion module, and secondary subsystem is the software systems of photoelectric conversion module internal components.But the scope of application of the present invention is not limited thereto, as long as when meeting the relation that main system upgraded to secondary subsystem by one-level subsystem, be the scope of application of the present invention.
The method of a kind of system upgrade that the present embodiment provides, when the memory space inadequate of one-level subsystem, after original file of one-level subsystem being deleted by main system, by the first updating protocol, targeted update file is sent to one-level subsystem as the upgrade file of one-level subsystem again, one-level subsystem is by running first upgrade file of resolving and obtaining, one-level subsystem is made to have the function the second upgrade file being sent to secondary subsystem, second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem again, secondary subsystem is made to complete upgrading, after secondary sub-system staging completes, original file of one-level subsystem is sent to one-level subsystem by the first updating protocol by main system, reduction one-level subsystem.In the present embodiment, when upgrading to secondary subsystem, the data volume can deposited due to each order bag of defined in the first updating protocol is larger, when file destination is sent to one-level subsystem by main system, then file destination can be divided into less order bag and send to one-level subsystem, thus effectively reduce the time that between main system and one-level subsystem, data are transmitted, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.
Participate in Fig. 4, when in one-level subsystem except original file, when remaining storage space enough stores the first upgrade file (comprising first code) and the second upgrade file, yet another embodiment of the present invention provides a kind of method flow diagram of system upgrade, specifically comprises the steps:
401: main system obtains the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file.
Wherein, the first upgrade file can be the code that for be embodied as one-level subsystem increase objective function of user by writing.
Optionally, in the embodiment of the present invention, the first upgrade file can comprise first code, and first code is used for for one-level subsystem increases objective function, and objective function is the function the second upgrade file being sent to secondary subsystem by the second updating protocol.
Wherein, the second upgrade file is the upgrade file of secondary subsystem, the code that also can be obtained by coding for user.
Wherein, the targeted update file obtained after user's the first upgrade file of comprising first code by above-mentioned and above-mentioned second upgrade file carry out merging treatment.
It should be noted that, due to the difference of secondary subsystem and one-level subsystem development business, the difference at secondary subsystem and one-level subsystem file storage format may be caused, therefore, before this step 401, user judges whether the form of the second upgrade file meets the storage format demand of one-level subsystem;
When the form of the second upgrade file does not meet the storage format demand of one-level subsystem, user carries out format conversion to the second upgrade file, makes the second upgrade file form can meet the storage format of one-level subsystem.
Optionally, user completes on the master system to the operation that the second upgrade file carries out format conversion, and wherein, the format conversion of file belongs to prior art, does not repeat them here.
Such as, original form of the second upgrade file is DIN form, and in one-level subsystem, acceptable storage format is HEX form, now, on the master system the format conversion of the second upgrade file can be become HEX form by user.
402: main system sends targeted update file by the first updating protocol to one-level subsystem.
Wherein, the first updating protocol is existing protocol.
Wherein, targeted update file comprises the first upgrade file and the second upgrade file, and the first upgrade file comprises first code.
403: after one-level subsystem receives targeted update file, resolve targeted update file, obtain the first upgrade file and the second upgrade file.
404: one-level subsystem stores the first upgrade file and the second upgrade file.
Wherein, the first upgrade file and the second upgrade file are stored in the flash space of specifying by one-level subsystem.
405: one-level subsystem runs the first upgrade file, make one-level subsystem have the function the second upgrade file being sent to secondary subsystem.
It should be noted that, in the prior art, one-level subsystem is when receiving the file that main system is sended over by the first updating protocol, namely can think that this file is the file of upgrading to one-level subsystem, thus run this file one-level subsystem is upgraded, the present invention make use of this point just, first upgrade file with objective function is sent to one-level subsystem by the first updating protocol, after one-level subsystem receives the first upgrade file, namely can run the first upgrade file, thus make self to there is objective function.
406: the second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem, make secondary subsystem complete upgrading.
Wherein, the second updating protocol is existing protocol.
It should be noted that, after step above-mentioned 406, in order to discharge the storage space of one-level subsystem, the method also comprises the steps:
407: one-level subsystem deletes the second upgrade file.
Optionally, step 407 can also be: one-level subsystem deletes the first upgrade file and the second upgrade file.
It should be noted that, one-level subsystem preferably only deletes the second upgrade file, retain the first upgrade file, objective function is possessed for a long time to make one-level subsystem, do not need can possess objective function at reception first upgrade file when upper once execution upgrading secondary subsystem, more decrease the volume of transmitted data between main system and one-level subsystem when secondary subsystem is upgraded.
It is emphasized that the present invention is applied in dibaryon system, dibaryon system comprises: above-mentioned main system, above-mentioned one-level subsystem and above-mentioned secondary subsystem.For wavelength-division system, main system can be the software system of service board, and one-level subsystem can be the software systems of photoelectric conversion module, and secondary subsystem is the software systems of photoelectric conversion module internal components.But the scope of application of the present invention is not limited thereto, as long as when meeting the relation that main system upgraded to secondary subsystem by one-level subsystem, be the scope of application of the present invention.
The method of a kind of system upgrade that the present embodiment provides, when the storage space of one-level subsystem is enough, directly by the first updating protocol, targeted update file is sent to one-level subsystem as the upgrade file of one-level subsystem by main system, one-level subsystem is by running first upgrade file of resolving and obtaining, one-level subsystem is made to have the function the second upgrade file being sent to secondary subsystem, second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem again, makes secondary subsystem complete upgrading.In the present embodiment, when upgrading to secondary subsystem, the data volume can deposited due to each order bag of defined in the first updating protocol is larger, when file destination is sent to one-level subsystem by main system, then file destination can be divided into less order bag and send to one-level subsystem, thus effectively reduce the time that between main system and one-level subsystem, data are transmitted, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.
See Fig. 5, another embodiment of the present invention provides a kind of structural drawing of one-level subsystem, and described one-level subsystem 500 specifically comprises:
Receiving element 501, for receiving the targeted update file that main system is sent by the first updating protocol, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem;
Resolution unit 502, for resolving targeted update file, obtains the first upgrade file and the second upgrade file;
Running unit 503, for running the first upgrade file, makes one-level subsystem have the function the second upgrade file being sent to secondary subsystem;
Transmitting element 504, for the second upgrade file being sent to secondary subsystem by the second updating protocol, makes secondary subsystem complete upgrading.
Further, see Fig. 6, above-mentioned one-level subsystem, also comprises:
Storage unit 505, for storing the first upgrade file and the second upgrade file.
Further, the first upgrade file also comprises interface document, after interface document is used for one-level subsystem operation first code, and the interface document that must call during performance objective function;
Original file of one-level subsystem sends delete instruction by main system by the first updating protocol and deletes.
Above-mentioned receiving element 501, also for after by the second updating protocol the second upgrade file being sent to secondary subsystem at transmitting element 504, receives original file of the one-level subsystem that main system is sent by the first updating protocol, and reduces one-level subsystem.
See Fig. 7, another embodiment of the present invention provides a kind of structural drawing of main system, and described main system 600 specifically comprises:
Acquiring unit 601, for obtaining the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
Transmitting element 602, targeted update file is sent to one-level subsystem by the first updating protocol by main system, wherein, targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, first upgrade file at least comprises the first code for increasing objective function for one-level subsystem, and objective function makes described one-level subsystem the second upgrade file can be sent to secondary subsystem.
Further, the first upgrade file also comprises interface document, after interface document is used for one-level subsystem operation first code, and the interface document that must call during performance objective function;
Above-mentioned transmitting element 602, also for before by the first updating protocol targeted update file being sent to one-level subsystem, when the storage space of one-level subsystem can not meet the demand of storage first upgrade file and the second upgrade file, by the first updating protocol, the first instruction is sent to one-level subsystem, to delete original file of one-level subsystem.
Further, above-mentioned transmitting element 602, also for original file of one-level subsystem being sent to one-level subsystem by the first updating protocol.
See Fig. 8, another embodiment of the present invention provides a kind of dibaryon system construction drawing, specifically comprises above-mentioned one-level subsystem 500, above-mentioned main system 600 and above-mentioned secondary subsystem 700;
Further, above-mentioned main system 600 is the software systems of service board in wavelength-division communication system; One-level subsystem 500 is the software systems of photoelectric conversion module; Secondary subsystem 700 is the software systems of photoelectric conversion module internal components.
The system of a kind of system upgrade that the present embodiment provides, targeted update file occurs to one-level subsystem by the first updating protocol by main system, one-level subsystem is by running first upgrade file of resolving and obtaining, one-level subsystem is made to have the function the second upgrade file being sent to secondary subsystem, second upgrade file is sent to secondary subsystem by the second updating protocol by one-level subsystem again, makes secondary subsystem complete upgrading.In the present embodiment, when upgrading to secondary subsystem, the data volume can deposited due to each order bag of defined in the first updating protocol is larger, when file destination is sent to one-level subsystem by main system, then file destination can be divided into less order bag and send to one-level subsystem, thus effectively reduce the time that between main system and one-level subsystem, data are transmitted, simplify operation when secondary subsystem is upgraded, improve upgrading efficiency.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, hard disk or CD etc., comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, 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 domain of described claim.

Claims (16)

1. a method for system upgrade, is applied in dibaryon system, and described dibaryon system comprises: main system, one-level subsystem and secondary subsystem, is characterized in that, comprising:
Described one-level subsystem receives the targeted update file that described main system is sent by the first updating protocol, wherein, described targeted update file comprises the first upgrade file and the second upgrade file for upgrading to described secondary subsystem, described first upgrade file at least comprises the first code for increasing objective function for described one-level subsystem, and described objective function makes described one-level subsystem described second upgrade file can be sent to described secondary subsystem;
Targeted update file described in described one-level sub system analysis, obtains described first upgrade file and described second upgrade file;
Described one-level subsystem runs described first upgrade file, makes described one-level subsystem have the function described second upgrade file being sent to described secondary subsystem;
Described second upgrade file is sent to described secondary subsystem by the second updating protocol by described one-level subsystem, makes described secondary subsystem complete upgrading.
2. method according to claim 1, is characterized in that, also comprises:
Described one-level subsystem stores described first upgrade file and described second upgrade file.
3. method according to claim 2, is characterized in that, described first upgrade file also comprises interface document, after described interface document runs described first code for one-level subsystem, and the interface document that must call when performing described objective function;
Original file of described one-level subsystem sends delete instruction by described main system by described first updating protocol and deletes.
4. method according to claim 3, is characterized in that, after described second upgrade file is sent to described secondary subsystem by the second updating protocol by described one-level subsystem, also comprises:
Described one-level subsystem receives original file of described one-level subsystem that described main system is sent by described first updating protocol, and reduces described one-level subsystem.
5. a method for system upgrade, is applied in dibaryon system, and described dibaryon system comprises: main system, one-level subsystem and secondary subsystem, is characterized in that, comprising:
Described main system obtains the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
Described targeted update file is sent to described one-level subsystem by the first updating protocol by described main system, wherein, described targeted update file comprises the first upgrade file and the second upgrade file for upgrading to described secondary subsystem, described first upgrade file at least comprises the first code for increasing objective function for described one-level subsystem, and described objective function makes described one-level subsystem described second upgrade file can be sent to described secondary subsystem.
6. method according to claim 5, is characterized in that, described first upgrade file also comprises interface document, after described interface document runs described first code for one-level subsystem, and the interface document that must call when performing described objective function;
Before targeted update file is sent to described one-level subsystem by the first updating protocol by described main system, also comprise:
When the storage space of described one-level subsystem can not meet the demand storing described first upgrade file and described second upgrade file, delete instruction is sent to described one-level subsystem by described first updating protocol by described main system, to delete original file of one-level subsystem.
7. method according to claim 6, is characterized in that, also comprises:
Original file of described one-level subsystem is sent to described one-level subsystem by described first updating protocol by described main system.
8. an one-level subsystem, is characterized in that, comprising:
Receiving element, for receiving the targeted update file that main system is sent by the first updating protocol, wherein, described targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, described first upgrade file at least comprises the first code for increasing objective function for described one-level subsystem, and described objective function makes described one-level subsystem described second upgrade file can be sent to described secondary subsystem;
Resolution unit, for resolving described targeted update file, obtains described first upgrade file and described second upgrade file;
Running unit, for running described first upgrade file, makes described one-level subsystem have the function described second upgrade file being sent to described secondary subsystem;
Transmitting element, for described second upgrade file being sent to described secondary subsystem by the second updating protocol, makes described secondary subsystem complete upgrading.
9. one-level subsystem according to claim 8, is characterized in that, also comprise:
Storage unit, for storing described first upgrade file and described second upgrade file.
10. one-level subsystem according to claim 9, it is characterized in that, described first upgrade file also comprises interface document, after described interface document runs described first code for one-level subsystem, and the interface document that must call when performing described objective function;
Original file of described one-level subsystem sends delete instruction by described main system by described first updating protocol and deletes.
11. one-level subsystems according to claim 10, is characterized in that,
Described receiving element, also for after by the second updating protocol described second upgrade file being sent to described secondary subsystem at described transmitting element, receive original file of described one-level subsystem that described main system is sent by described first updating protocol, and reduce described one-level subsystem.
12. 1 kinds of main systems, is characterized in that, comprising:
Acquiring unit, for obtaining the targeted update file obtained after user carries out merging treatment to the first upgrade file and the second upgrade file;
Transmitting element, for described targeted update file being sent to one-level subsystem by the first updating protocol, wherein, described targeted update file comprises the first upgrade file and the second upgrade file for upgrading to secondary subsystem, described first upgrade file at least comprises the first code for increasing objective function for described one-level subsystem, and described objective function makes described one-level subsystem described second upgrade file can be sent to described secondary subsystem.
13. main systems according to claim 12, is characterized in that, described first upgrade file also comprises interface document, after described interface document runs described first code for one-level subsystem, and the interface document that must call when performing described objective function;
Described transmitting element, also for before by the first updating protocol targeted update file being sent to described one-level subsystem, when the storage space of described one-level subsystem can not meet the demand storing described first upgrade file and described second upgrade file, by the first updating protocol, the first instruction is sent to described one-level subsystem, to delete original file of one-level subsystem.
14. main systems according to claim 13, is characterized in that, described transmitting element, also for original file of described one-level subsystem being sent to described one-level subsystem by described first updating protocol.
15. 1 kinds of dibaryon systems, is characterized in that, comprise the main system described in right 12-14 any one, one-level subsystem described in claim 8-11 any one and secondary subsystem.
16. dibaryon systems according to claim 15, is characterized in that, described main system is the software systems of service board in wavelength-division communication system; Described one-level subsystem is the software systems of photoelectric conversion module; Described secondary subsystem is the software systems of described photoelectric conversion module internal components.
CN201210334330.5A 2012-09-11 2012-09-11 The method and system of system upgrade Active CN102831000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210334330.5A CN102831000B (en) 2012-09-11 2012-09-11 The method and system of system upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210334330.5A CN102831000B (en) 2012-09-11 2012-09-11 The method and system of system upgrade

Publications (2)

Publication Number Publication Date
CN102831000A CN102831000A (en) 2012-12-19
CN102831000B true CN102831000B (en) 2015-11-25

Family

ID=47334149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210334330.5A Active CN102831000B (en) 2012-09-11 2012-09-11 The method and system of system upgrade

Country Status (1)

Country Link
CN (1) CN102831000B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657160B (en) * 2013-11-21 2018-04-17 联创汽车电子有限公司 The method for burn-recording of Vehicle Controller multi-chip application program
CN105024839B (en) * 2014-04-18 2019-12-03 中兴通讯股份有限公司 A kind of method and device of software release upgrade
CN105722119B (en) * 2016-01-27 2019-09-06 努比亚技术有限公司 Mobile terminal and its method for upgrading system
CN106445615A (en) * 2016-10-12 2017-02-22 北京元心科技有限公司 Multi-system OTA upgrading method and device
CN107015829B (en) * 2017-03-31 2021-03-23 Oppo广东移动通信有限公司 Audio system upgrading method and device
CN107332936A (en) * 2017-08-25 2017-11-07 长沙曙通信息科技有限公司 A kind of distributed storage distribution and installation network system realization

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570863A (en) * 2003-07-23 2005-01-26 华为技术有限公司 System and method for remotely loading or upgrading program
CN101730882A (en) * 2007-05-21 2010-06-09 汤姆逊许可公司 Robust firmware upgrade in a network terminal
CN101950253A (en) * 2010-08-12 2011-01-19 深圳市共进电子有限公司 Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8122447B2 (en) * 2007-07-31 2012-02-21 Hewlett-Packard Development Company, L.P. Firmware installation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570863A (en) * 2003-07-23 2005-01-26 华为技术有限公司 System and method for remotely loading or upgrading program
CN101730882A (en) * 2007-05-21 2010-06-09 汤姆逊许可公司 Robust firmware upgrade in a network terminal
CN101950253A (en) * 2010-08-12 2011-01-19 深圳市共进电子有限公司 Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface

Also Published As

Publication number Publication date
CN102831000A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102831000B (en) The method and system of system upgrade
CN102447585B (en) Method and device for converting network configuration protocol response message into command line
CN103109271A (en) Inter-platform application migration realization method and system
CN103092798B (en) The method of the access means under SOC(system on a chip) and bus
CN104113435A (en) Method and device for generating identifier
KR101856486B1 (en) Method for bi-direction calling between open system and mainframe system
CN102726025B (en) Installation method and relative devices of business packet
CN113766042A (en) Container address configuration method, system, device, equipment and medium
CN105450585A (en) Information transmission method and device
CN103607429A (en) Cloud computing service realization method and system thereof
CN105786732A (en) Data access method and apparatus
CN104750524A (en) Upgraded data package transmitting method and device and data package upgrading method and device
CN114244654A (en) URL forwarding method, device, equipment and computer storage medium
CN110505071A (en) The method for remote updating of FPGA board, system and relevant apparatus in local area network
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN106100953B (en) PCIe device shares the generation method of network, apparatus and system
CN111367761A (en) Information management method, system and related components of universal server
CN102130786B (en) Method and device for updating characteristics of single board
CN113453371B (en) Method, base station, and computer storage medium for wireless communication
CN110069274A (en) Pond server ReDriver chip configures update method and device
CN104821939A (en) Method for realizing asynchronous communication between computer and mobile equipment, and device thereof
CN104063451A (en) Database connection management method and system
CN114706526A (en) Automatic capacity expansion method, system and equipment for cloud native storage data volume
CN112860379A (en) Method for installing and deploying high availability of redis on cloud platform

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