Summary of the invention
Main purpose of the present invention is to provide a kind of method and system of Long-distance Control edition upgrading,, and causes the out of control problem in the base station of far-end owing to remote upgrade safety is not controlled to solve in the prior art.
According to an aspect of the present invention, a kind of method of Long-distance Control edition upgrading is provided, has comprised: the upgrading order is initiated on the backstage, base station, sets up first network link with base station foreground; Redaction and new configuration data are activated in backstage, said base station; Through said first network link said redaction and new configuration data are distributed to said base station foreground; And intercept the state of said first network link; If confirm the said first network link chain rupture, backstage, said base station return back to the version that before activating said redaction, uses on backstage, said base station and recovers corresponding configuration data; Said base station foreground receives said redaction and new configuration data; Use said redaction and new configuration data to carry out edition upgrading; And intercept the state of said first network link; If confirm the said first network link chain rupture, said base station foreground return back to the version that uses before the upgrading and recovers corresponding configuration data.
Wherein, Before redaction and new configuration data are activated in backstage, said base station; Said method can also comprise: local version and the configuration data that whether has backed up current use judged on backstage, said base station, if not, then backs up the version and the configuration data of current use.
Wherein, Use before said redaction upgrades at said base station foreground; Said method can also comprise: said base station foreground is judged local version and the configuration data that whether has backed up current use, if not, then backs up the version and the configuration data of current use.
Wherein, Use after said redaction upgrades at said base station foreground; Said method can also comprise: said base station foreground judges whether the version of the current use of its each veneer is consistent with the redaction of backstage, said base station distribution, if inconsistent, then judges whether to return back to the version that uses before the upgrading according to the strategy that is provided with in advance; Otherwise said base station foreground notifies backstage, said base station to upgrade successfully.
Wherein, return back to the version that uses before the upgrading if said base station foreground is judged according to the strategy that is provided with in advance, then said method can also comprise: said base station foreground is notified backstage, said base station through said first network link; Backstage, said base station return back to the version that before activating said redaction, uses on backstage, said base station and recovers corresponding configuration data.
Wherein, After the version that before said base station foreground return back to said upgrading, uses; Said method can also comprise: the version that said base station foreground is judged the current use of its each veneer whether with said upgrading before the version that uses consistent; If inconsistent, then carry out the version that uses before the said upgrading once more, the number of times of the version that before carrying out said upgrading, uses surpasses threshold value.
Wherein, After said base station foreground received said redaction and configuration data thereof, said method can also comprise: said base station foreground with said redaction and new configuration data through and RF receiving/transmission device between second network link send to said RF receiving/transmission device; Said RF receiving/transmission device is judged local version and the configuration data that whether has backed up current use, if not, then backs up the version and the configuration data of current use; When using said redaction and new configuration data, said RF receiving/transmission device upgrades; And intercept the state of said second network link; If confirm the said second network link chain rupture, said RF receiving/transmission device return back to the version that uses before the upgrading and recovers corresponding configuration data.
Wherein, After said base station foreground sends to said RF receiving/transmission device with said redaction and new configuration data through said second network link; Said method can also comprise: said base station foreground is intercepted the state of said second network link; If confirm the said second network link chain rupture, then judge whether to return back to the version that uses before the upgrading according to the strategy that is provided with in advance.
Wherein, if base station foreground return back to the version that uses before the upgrading, then said method can also comprise: said base station foreground is notified said RF receiving/transmission device; Said RF receiving/transmission device return back to the version that uses before its upgrading and recovers corresponding configuration data.
According to a further aspect in the invention, a kind of system of Long-distance Control edition upgrading is provided, has comprised: backstage, base station and base station foreground.
Wherein, backstage, said base station comprises: initiation module, be used for initiating the upgrading order, and set up first network link with said base station foreground; Active module is used to activate redaction and new configuration data; First sending module is used for through said first network link said redaction and new configuration data being distributed to said base station foreground; First intercepts module, is used to intercept the state of said first network link, under the situation of confirming the said first network link chain rupture, triggers first rollback module; Said first rollback module is used for that the version that use on backstage, said base station is return back to said active module and activates the version that uses before the said redaction and recover corresponding configuration data;
Said base station foreground comprises: first receiver module is used to receive said redaction and new configuration data; The first upgrading module is used to use said redaction and new configuration data that each veneer of said base station foreground is carried out edition upgrading; Second intercepts module, is used to intercept the state of said first network link, when confirming the said first network link chain rupture, triggers said second rollback module; Said second rollback module is used for the version that said base station foreground uses is return back to the version that uses before the upgrading, and recovers corresponding configuration data.
Wherein, Backstage, said base station can also comprise: first judge module, be used for before said active module activates said redaction and new configuration data, and judge local version and the configuration data that whether has backed up current use; If, then do not trigger first backup module; Said first backup module is used to back up the version and the configuration data of the current use in backstage, said base station; Said base station foreground can also comprise: second judge module is used for before the said first upgrading module is carried out edition upgrading, judging local version and the configuration data that whether has backed up the current use of said base station foreground, if not, then trigger second backup module; Said second backup module is used to back up the version and the configuration data of the current use of said base station foreground.
Wherein, Said base station foreground can also comprise: comparing module, be used in said first upgrading after module carries out edition upgrading, and whether the version of the current use of each veneer of comparing said base station foreground is consistent with the redaction that said sending module sends; If inconsistent, then trigger Executive Module; Said Executive Module is used for judging whether that according to the strategy that is provided with in advance the version that use on backstage, said base station is return back to the said first upgrading module carries out the version that use on backstage, said base station before the edition upgrading.
Wherein, said system can also comprise: RF receiving/transmission device, be connected with said base station foreground through second network link, and comprising: second receiver module is used to receive said redaction and the new configuration data from said base station foreground;
The 3rd judge module is used to judge local version and the configuration data that whether has backed up current use, if not, then trigger the 3rd backup module, otherwise, trigger the second upgrading module; Said the 3rd backup module is used to back up the version and the configuration data of the current use of said RF receiving/transmission device, triggers the said second upgrading module then; The said second upgrading module is used to use said redaction and new configuration data that said RF receiving/transmission device is carried out edition upgrading; The 3rd intercepts module, is used to intercept the state of said second network link, when confirming the said second network link chain rupture, triggers said the 3rd rollback module; Said the 3rd rollback module is used for the version that said RF receiving/transmission device uses is return back to the version that uses before the upgrading, and recovers corresponding configuration data.
Wherein, said base station foreground can also comprise: notification module is used for when said second intercepts module and confirm the said first network link chain rupture, sending notice to said RF receiving/transmission device; Said second receiver module also is used to receive said notice, and triggers said the 3rd rollback module.
Through the present invention; When remote version was upgraded, backstage, base station and base station foreground were intercepted network link, if the network link chain rupture; Then return back to the preceding version of upgrading; Thereby solved owing to upgrading failure causes the out of control problem in the base station of far-end, and then fail safe, the reliability of base station remote upgrade that reached perfect, the level that has reduced the attendant requires and the risk of remote upgrade.
Embodiment
Below with reference to accompanying drawing and combine embodiment, specify the present invention.
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the structural representation according to the system of the Long-distance Control edition upgrading of the embodiment of the invention, and is as shown in Figure 1, and this system mainly comprises: backstage, base station 10 and base station foreground 20.Wherein, backstage, base station 10 comprises: initiation module 100, be used for initiating the upgrading order, and set up first network link with base station foreground 20; Active module 101 is connected with said initiation module 100, is used for after said initiation module 100 is initiated the upgrading order, activating redaction and new configuration data; First sending module 102 is used for through said first network link said redaction and new configuration data being distributed to said base station foreground 20; First intercepts module 103, is used for after said first sending module 102 sends said redaction and new configuration data, intercepting the state of said first network link, under the situation of confirming the said first network link chain rupture, triggers first rollback module 104; First rollback module 104 is used for that the version that use on backstage, said base station is return back to said active module and activates the version that uses before the said redaction and recover corresponding configuration data; Said base station foreground 20 comprises: first receiver module 200 is used to receive said redaction and the new configuration data from backstage, base station 10; The first upgrading module 201 is used to use said redaction and new configuration data that each veneer of said base station foreground 20 is carried out edition upgrading; Second intercepts module 202, is used to intercept the state of said first network link, when confirming the said first network link chain rupture, triggers said second rollback module 203; Said second rollback module 203 is used for the version that said base station foreground uses is return back to the version that uses before the upgrading, and recovers corresponding configuration data.
For example; Upgraded version is selected in backstage, base station 10 when confirming to carry out edition upgrading automatically, carry out synchronously through initiation module 100 and base station foreground 20 then; By first sending module 101 redaction is distributed to base station foreground 20 then, makes base station foreground 20 operation redactions.
In embodiments of the present invention, backstage, base station 10 can be the server that is used for each veneer of base station foreground is carried out remote upgrade.
Fig. 2 is the structural representation of the system of Long-distance Control edition upgrading according to the preferred embodiment of the invention, and is as shown in Figure 2, in the preferred embodiment; Backstage, base station 10 also comprises: first judge module 105 is used for before active module 101 activates said redaction and new configuration data, judging local version and the configuration data that whether has backed up current use; If not; Then trigger first backup module 106, otherwise, said active module 101 triggered; First backup module 106 is used to back up the version and the configuration data of the 10 current uses of backstage, said base station, and module 101 then triggers the activation; Base station foreground 20 also comprises: second judge module 205; Be used for before the said first upgrading module 201 is carried out edition upgrading; Judge local version and the configuration data that whether has backed up the current use of said base station foreground, if not, then trigger second backup module 206; Otherwise, trigger the said first upgrading module 201; Second backup module 206 is used to back up the version and the configuration data of said base station foreground 20 current uses, triggers the first upgrading module 201 then.Through the preferred embodiment, can avoid version and configuration data are repeated backup, thereby practice thrift the memory space of backstage, base station 10 and base station foreground 20.
Fig. 3 is the structural representation of the system of another preferred embodiment Long-distance Control edition upgrading according to the present invention; As shown in Figure 3, in the preferred embodiment, base station foreground 20 can also comprise: comparing module 207; Be used for after the said first upgrading module is carried out edition upgrading; Whether the version of the current use of each veneer of comparing said base station foreground is consistent with the redaction that said sending module sends, if inconsistent, then triggers Executive Module 208; Said Executive Module 208; Be used for judging whether that according to the strategy that is provided with in advance the version that use on backstage, said base station is return back to the said first upgrading module 201 carries out the version that use on backstage, said base station before the edition upgradings; If trigger second rollback module 203.In a kind of preferred implementation of the preferred embodiment; If the version of the current use of each veneer of the said base station foreground of comparing module 207 comparisons is consistent with the redaction that said sending module sends; The 10 edition upgradings success of then all right informing base station foreground; And if inconsistent, then all right informing base station foreground 10 edition upgradings are unsuccessful; And; The version that said Executive Module 208 uses backstage, said base station according to strategy the judgements needs that are provided with in advance return back to the said first upgrading module 201 carry out edition upgradings before during the version of backstage, said base station use; Informing base station backstage 10, thus whether make backstage, base station 10 can judge base station foreground 20 upgradings successful.
Fig. 4 is the structural representation of system of the Long-distance Control edition upgrading of the another preferred embodiment according to the present invention; As shown in Figure 4; In the preferred embodiment, this system also comprises: RF receiving/transmission device 30 is connected with said base station foreground through second network link; As shown in Figure 4, RF receiving/transmission device 30 can comprise: second receiver module 300, the 3rd judge module 301, the 3rd backup module 302, the second upgrading module the 303, the 3rd are intercepted module 304 and the 3rd rollback module 305.Wherein, Second receiver module 300; Be used to receive said redaction and the new configuration data from said base station foreground 20, wherein, base station foreground 20 is when said redaction that receives 10 transmissions of backstage, base station and new configuration data; Send this redaction and new configuration data to RF receiving/transmission device 30, indication RF receiving/transmission device 30 carries out edition upgrading; The 3rd judge module 301 is used to judge local version and the configuration data that whether has backed up current use, if not, then trigger the 3rd backup module 302, otherwise, trigger the second upgrading module 303; The 3rd backup module 302 is used to back up the version and the configuration data of said RF receiving/transmission device 30 current uses, triggers the second upgrading module 303 then; The second upgrading module 303 is used to use said redaction and new configuration data that said RF receiving/transmission device 30 is carried out edition upgrading; The 3rd intercepts module 304, is used to intercept the state of said second network link, when confirming the said second network link chain rupture, triggers said the 3rd rollback module 305; Said the 3rd rollback module 305 is used for the version that said RF receiving/transmission device 30 uses is return back to the version that uses before the upgrading, and recovers corresponding configuration data.
In a kind of preferred implementation of the preferred embodiment; Base station foreground 20 also can be monitored second network link between itself and the RF receiving/transmission device 30; When confirming the second network link chain rupture, can determine whether to carry out the version rollback according to the strategy (can select) that is provided with in advance by the user.
In practical application, the priority of first network link between backstage, base station 10 and the base station foreground 20 is higher than second network link between base station foreground 20 and the RF receiving/transmission device 30, therefore; Under the situation of the first network link chain rupture; The version rollback all will take place in whole system, therefore, and in the another preferred embodiment of the present invention; As shown in Figure 5; Base station foreground 20 also comprises: notification module 209 is used for when second intercepts module 202 and confirm the said first network link chain rupture, sending notice to said RF receiving/transmission device 30; Then second receiver module 300 of RF receiving/transmission device 30 also is used to receive said notice, and triggers said the 3rd rollback module 305.
Fig. 6 is the flow chart according to the method for the Long-distance Control edition upgrading of the embodiment of the invention, and this method can realize that as shown in Figure 6, this method mainly may further comprise the steps through above-mentioned Fig. 1-system shown in Figure 5:
Step S602, the upgrading order is initiated on the backstage, base station, sets up first network link with base station foreground;
Step S604; Redaction and new configuration data are activated in backstage, said base station; Through said first network link said redaction and new configuration data are distributed to said base station foreground; And intercept the state of said first network link, if confirm the said first network link chain rupture, backstage, said base station return back to the version that before activating said redaction, uses on backstage, said base station and recovers corresponding configuration data;
For example, the auto-update order that initiate on the backstage, base station, backstage auto-update function goes to enable under the default situations; The foreground enables, and begins to intercept each network link simultaneously, and the backstage distribution specifies redaction to the foreground; Make the front stage operation redaction, when failure or network link were disconnected if foreground version is upgraded, whether decision recovered configuration information before according to the network link situation on the backstage; If upgrading failure and link are just often, whether carry out restore data according to the foreground feedback information, default situations is not recovered; Can't confirm that upgrading whether during success, will carry out data automatically and recover if link is disconnected.
Step S606; Said base station foreground receives said redaction and new configuration data; Use said redaction and new configuration data to carry out edition upgrading; And intercept the state of said first network link, if confirm the said first network link chain rupture, said base station foreground return back to the version that uses before the upgrading and also recovers corresponding configuration data.
For example, base station foreground begins to call the auto-update process after receiving order, redaction and the new configuration data of auto-update; Can back up the version and the configuration data of current use earlier; Make each veneer operation redaction then, and can compare by self-version, if upgrading failure and link are just often; Can whether carry out the version rollback according to the actual conditions decision, default situations is not recovered; If base station AM/BAM link is disconnected, then the base station AM/BAM will carry out the data recovery automatically, return back to the configuration data before the preceding version of upgrading also recovers to upgrade.
Pass through the embodiment of the invention; Backstage, base station and base station foreground are intercepted network link; If the network link chain rupture then return back to the preceding version of upgrading, thereby solved owing to the upgrading failure causes the out of control problem in the base station of far-end; And then fail safe, the reliability of base station remote upgrade that reached perfect, the level that has reduced the attendant requires and the risk of remote upgrade.
In a preferred implementation of the embodiment of the invention; Before redaction and new configuration data are activated in backstage, said base station, can judge local version and the configuration data that whether has backed up current use earlier, if not; Then back up the version and the configuration data of current use; Behind Backup Data, activate redaction and new configuration data again, otherwise, directly activate redaction and new configuration data.Thereby can avoid the backstage, base station to repeat backup, practice thrift the memory space on backstage, base station.
In another preferred implementation of the embodiment of the invention; Use before said redaction upgrades at said base station foreground, can judge local version and the configuration data that whether has backed up current use earlier, if not; Then back up the version and the configuration data of current use; Behind Backup Data, carry out edition upgrading, otherwise directly carry out edition upgrading.Thereby can avoid base station foreground to repeat backup, practice thrift the memory space of base station foreground.
In the another preferred implementation of the embodiment of the invention; Use after said redaction upgrades at said base station foreground, said base station foreground can also judge whether the version of the current use of its each veneer is consistent with the redaction of backstage, said base station distribution, if inconsistent; Then confirm the upgrading failure; Judge whether to return back to the version that uses before the upgrading according to the strategy that is provided with in advance, otherwise said base station foreground notifies backstage, said base station to upgrade successfully.For example, if upgrading failure then currently listens to said first network link chain rupture, the then rollback; Perhaps, if the upgrading failure, then current said first network link is unobstructed, and the strategy that is provided with in advance indication rollback, then base station foreground return back to the version that uses before the upgrading.Behind the base station foreground rollback, said base station foreground is notified backstage, said base station through said first network link, after backstage, said base station receives notice, can return back to and activate redaction and new configuration data version and recovery configuration data before before.
In a preferred implementation of the embodiment of the invention; After the version that before said base station foreground return back to said upgrading, uses; The version that said base station foreground is judged the current use of its each veneer whether with said upgrading before the version that uses consistent; If inconsistent, then carry out the version that uses before the said upgrading once more, the number of times of the version that before carrying out said upgrading, uses surpasses threshold value.Surpass the threshold value rollback is that all right merit if carry out the number of times of the version that uses before the upgrading, then return and continue to judge whether auto-update.
In another preferred implementation of the embodiment of the invention; After said base station foreground receives said redaction and configuration data thereof; Said base station foreground before carrying out edition upgrading, with said redaction and new configuration data through and RF receiving/transmission device between second network link send to said RF receiving/transmission device; Said RF receiving/transmission device is judged local version and the configuration data that whether has backed up current use, if not, then backs up the version and the configuration data of current use; When using said redaction and new configuration data, said RF receiving/transmission device upgrades; And intercept the state of said second network link; If confirm the said second network link chain rupture, said RF receiving/transmission device return back to the version that uses before the upgrading and recovers corresponding configuration data.
Wherein, base station foreground is responsible for intercepting the Link State with RF Receiving Device, if behind the auto-update; Upgrading failure and link are just often; Whether carry out restore data according to the RF Receiving Device feedback information, default situations is not recovered, and can't confirm that upgrading is whether during success if link is disconnected; And with the backstage chain rupture, will carry out data automatically and recover.And RF Receiving Device receives the order that base station foreground is transmitted, and begins to get into the auto-update flow process, first Backup Data, each single board edition of upgrading again; And carry out the version comparison, if consistent, explain and upgrade successfully; Otherwise whether the upgrading failure if link is normal, can carry out the version rollback according to the own decision of user; Default situations is not recovered, if the AM/BAM link is disconnected, will carries out data automatically and recover.
Wherein, After said base station foreground sends to said RF receiving/transmission device with said redaction and new configuration data through said second network link; Said base station foreground is intercepted the state of said second network link; If confirm the said second network link chain rupture, then judge whether to return back to the version that uses before the upgrading according to the strategy that is provided with in advance.
In another preferred implementation of the embodiment of the invention; The first network link priority between backstage, base station and the base station foreground is higher than second network link between base station foreground and the RF receiving/transmission device; Therefore, in this preferred implementation, if base station foreground return back to the version that uses before the upgrading; Then said base station foreground is notified said RF receiving/transmission device, and said RF receiving/transmission device return back to the version that uses before its upgrading and recovers corresponding configuration data.
Fig. 7 is a kind of system configuration chain graph in the embodiment of the invention; As shown in Figure 7; Be connected through link 1 between backstage, base station 701 and the base station foreground 102, thereby guarantee that communication connects between the AM/BAM, backstage, base station and base station foreground all need be monitored this Link State in real time; In case lose controlling links, can in time recover automatically; Be connected through link 2 between base station foreground 702 and the RF receiving/transmission device 703; Guarantee that the communication between base station foreground and the RF receiving/transmission device connects; Base station foreground and RF receiving/transmission device all need be monitored this Link State in real time, in case lose controlling links, can in time recover automatically; Wherein, link 2 priority are lower than the priority of link 1, for example; Link 1 is judged as disconnection behind certain hour; Then the version rollback will take place in whole system, if link 1 is normal, and link 2 is disconnected; The version rollback will take place in the RF receiving/transmission device side, and the base station foreground side then can be selected to carry out according to the user.
Below in the flow process, base station foreground and RF receiving/transmission device closed be called the foreground and describe,
Fig. 8 is a kind of auto-update flow chart according to the embodiment of the invention, and is as shown in Figure 8, and this auto-update flow process mainly may further comprise the steps:
Step 801 judges whether to enable auto-update, if, execution in step 802;
Step 802 is selected upgraded version;
Step 803, backstage, base station and foreground are carried out synchronously;
Step 804, backstage, base station and foreground need to judge whether backup, if select backup, then execution in step 805, otherwise execution in step 807;
For example,, perhaps,, also need not backup if backstage, base station and foreground have been backed up the version and the configuration information of current use if backstage, base station and foreground synchronization failure then do not need backup, otherwise, need backup.
Step 805, back up its current configuration, version information, and be kept at the backstage, base station on the backstage, base station;
Step 806, back up its current configuration, version information, and remain on base station side on the foreground;
Step 807, backstage, base station just redaction and new configuration data are distributed to the foreground, and activate redaction;
Step 808, foreground each veneer of foreground (each veneer that comprises RF receiving/transmission device) that resets;
Step 809, whether comparison upgraded version in foreground is consistent, if unanimity then execution in step 810, otherwise, unusual flow process got into, execution in step 811;
Step 810, upgrading finishes, and confirms to finish;
Step 811 judges whether AM/BAM communication is normal, comprises judging link 1 and link 2, if communication is normal, and execution in step 812, otherwise execution in step 813;
Whether step 812 is selected rollback and is notified the backstage according to Provisioning Policy in advance, selects not, and upgrading is accomplished, confirm to finish, and be that then execution in step 813 if select;
Step 813, the foreground gets into version rollback 213, carries out version rollback flow process;
Step 814, whether the comparison legacy version is consistent behind the rollback, if the consistent version rollback of explaining is successful; Come back to step 801 and judge whether also to proceed automatic updating; Otherwise jump to step 811, circulate 3 times, come back to step 801 at last and judge whether also to proceed automatic updating.
Fig. 9 is a kind of version rollback flow chart in the embodiment of the invention, and this flow process is suitable for forward and backward version rollback, and is as shown in Figure 9, mainly may further comprise the steps:
Step 901 judges whether AM/BAM communication is unusual, if unusual, jumps to step 903, otherwise execution in step 902;
Step 902 judges whether that surpassing 5 minutes does not receive that the other side replys, if execution in step 903 is interrupted in explanation communication;
Step 903, configuration is preserved in reduction, promptly return back to the preceding version of upgrading;
Step 904 activates operation with legacy version;
Step 905, each veneer resets;
Step 906, whether the version of comparing each veneer is consistent with the preceding version of upgrading, and judges that whether rollback is successful, if success then finishes, otherwise goes back to execution in step 903, carries out version rollback operation again.
From above description; Can find out; The embodiment of the invention has increased the version fallback mechanism on original remote automatic upgrading basis, perfect base station remote upgrade fail safe, reliability, the level that has reduced the attendant require and the risk of remote upgrade; A large amount of human and material resources that next has reduced equipment development merchant or operator have guaranteed the purpose of home-confined realization Long-distance Control edition upgrading not in the know.
Obviously; It is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device; Perhaps be distributed on the network that a plurality of calculation element forms; Alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby can they be stored in the storage device; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.