Summary of the invention
The problem existing for solving background technology, the invention provides a kind of microwave outdoor unit remote upgrade method, comprises the following steps:
Step (1), IDU identification ODU software version need upgrading, and IDU starts to set up stabilized communication with ODU and links, and IDU starts the flow process of upgrading;
Step (2), IDU split ODU software upgrade package, start to send monitoring software AKU to ODU, and the mutual confirmation in escalation process adopts every bag verification, and every bag is confirmed mode;
Step (3), ODU carry out software efficiency verification, and backup original program, switches new procedures.
The identification of IDU described in step (1) ODU software version needs upgrading, and IDU starts to set up stabilized communication with ODU and links, and IDU starts the flow process of upgrading, and further comprises following content:
when IDU receives the steering order to ODU upgrading, and when IDU detects the current software version of ODU and the ODU non-uniformity of software versions of the interior storage of IDU, IDU sends test packet test and ODU communication link stability, if communication success ratio is greater than 95%, prepare to send software upgrade package (step 104) to ODU, prepare to ODU upgrade software (step 101,102);
2. IDU detects the ODU software version of storage in the current software version of ODU and IDU when consistent, the IDU flow process (step 103) that stops upgrading.
IDU described in step (2) splits ODU software upgrade package, starts to send monitoring software AKU to ODU, and realizes the mutual confirmation in escalation process, further comprises following content:
iDU sends the essential information of software upgrade package to ODU, comprise the fileinfo of ODU AKU, the check code of upgrading data packet, AKU size, the magnitude of load (step 105) of each packet after AKU splits;
2. ODU receives after the essential information of the software upgrade package that IDU sends, and checks the fileinfo of AKU; If fileinfo is legal, ODU starts software upgrade package and receives flow process, the transmission (step 107) that notice IDU prepares upgrading data packet; If fileinfo is illegal, ODU stops upgrading, and notice IDU file is illegal, and flow process (step 106) stops upgrading;
3. IDU receives after the information after ODU prepares, and sends successively in order packet (step 111);
If 4. ODU receives sequence number packet check code and do not mate, notice IDU resends certain sequence number packet (step 112, step 113, step 114);
If 5. ODU receives packet sequence number and do not mate with AKU sending order, notice IDU sends appointed sequence number packet (step 115, step 116, step 117);
If 6. ODU is due to abnormal end upgrading in escalation process, next time, while again upgrading, notice IDU was since the sequence number upgrading (step 108, step 109, step 110) of interruption last time.
Described in step (3), ODU carries out software efficiency verification, and backup original program, switches new procedures, further comprises following content:
1., after ODU reception AKU completes, it has received all packets (step 118) notice IDU;
oDU integrates by sequence number all upgrading data packet, and calculation check code, if information when check code starts with upgrading is consistent, notice IDU AKU successfully receives; Otherwise notice IDU upgrade file is preserved unsuccessfully, and upgrading need to restart (step 118, step 119, step 120, step 121);
after ODU AKU verification succeeds, by original program backup, prepare to be switched to new procedures;
oDU moves new procedures, unsuccessful if ODU starts new procedures, automatically switches to original program operation, and reports ODU updating result (step 122, step 123, step 124) to IDU.
Compared with prior art, advantage of the present invention is:
1. by IDU, to ODU software, upgrade, can realize efficient, the safe upgrading to ODU;
2. escalation process whole process is controlled, adopts every bag verification, every bag to confirm mode, guarantees the reliability of upgrading;
3. adopted breaker point continuous transmission method, if communication link breaks down, ODU can preserve the successful packet information that last time, IDU sended over, and as the starting point of same upgrade file next time, improves upgrading efficiency;
4. the new early version backup of ODU program, abnormal if new ROMPaq occurs, can revert to legacy code operation, guarantee the security of software upgrading.
English to Chinese:
IDU:indoor unit, indoor unit;
ODU:outdoor unit, outdoor unit;
CRC:cyclic redundancy check, cyclic redundancy check (CRC) code.
Embodiment
In order to make object of the present invention, technical scheme and advantage more clear, below with reference to accompanying drawing, the present invention is described in more detail:
As shown in Figure 1 and Figure 2, realization flow figure of the present invention has comprised following steps:
(1) IDU receives the instruction 101 that need to upgrade to ODU;
(2) IDU judges current ODU operating software version and upgraded version whether consistent 102;
(3) IDU judges that current ODU operating software version is consistent with upgraded version, the IDU flow process 103 that stops upgrading;
(4) IDU judge current ODU operating software version and upgraded version inconsistent, IDU continues upgrading flow process, and test I DU and ODU communication link, guarantees to communicate by letter unobstructed 104;
(5) IDU sends the essential information of AKU to ODU, comprises AKU fileinfo, AKU size, the information such as the check code of AKU 105;
(6) ODU checks that whether AKU fileinfo is legal, judges whether this software upgrade package is the software upgrade package 105 of ODU;
(7) ODU checks that AKU fileinfo is illegal, and ODU stops upgrading, and notifies IDU fileinfo illegal, and flow process 106 stops upgrading;
(8) ODU inspection AKU fileinfo is correct, continues to check the breakpoint information that whether has same upgrade file in ODU, and being convenient to ODU judgement is to unwrap and begin or upgrade 107,108 from breakpoint from AKU first;
(9) ODU is not checked through AKU breakpoint information, and notice IDU unwraps from first the upgrading 109 of beginning;
(10) ODU is checked through AKU breakpoint information, and notice IDU starts to continue upgrading 110 from breakpoint;
(11) IDU sends upgrading data packet 111 in order;
(12) ODU carries out CRC check to each upgrading data packet receiving, and judges check code whether consistent 112;
(13) ODU judgement check code is inconsistent, and notice IDU retransmits this sequence number packet 113;
(14) ODU judgement check code is consistent, and notice IDU sends next packet 114 in order;
(15) whether the packet sequence number that ODU judgement receives sends 115 in order;
(16) ODU judgement packet sequence number does not send in order, requires IDU to retransmit appointed sequence number packet, and IDU responds and sends appointed sequence number packet 117 according to ODU;
(17) ODU judgement packet sends according to sequence number, receives this packet and notifies IDU to continue in order to send next bag 116;
(18) IDU notice ODU Packet Generation completes, and ODU is integral data bag in order, and calculates the check code 118 of whole AKU;
(19) check code that ODU judgement calculates and the check code whether consistent 119 in upgrade information;
(20) ODU judgement calculates check code and the check code in upgrade information are inconsistent, and notice IDU file is preserved unsuccessfully, and upgrading need to restart 121;
(21) check code that ODU judgement calculates is consistent with the check code in upgrade information, backs up original program, prepares to be switched to new procedures operation 120;
(22) ODU judges whether new procedures moves successfully 122;
(23) operation of ODU judgement new procedures is unsuccessful, is switched to legacy code operation, and reports upgrading handoff failure 124 to IDU;
(24) ODU judgement new procedures moves successfully, to IDU, reports and has upgraded successfully 123.