The method of management auto-update in the specialized network terminal device
Technical field
The invention belongs to the method that promotes specialized network-termination device management auto-update by means of communication, specifically, is a kind of by redundant memory cell in the terminal device and supervisory routine, realizes the method for specialized network-termination device management auto-update.
Background technology
Along with applying of the optical fiber access technology of passive optical-fiber network point-to-multipoint, the one preferred technique scheme of become not only in recent years that Fiber to the home FTTH, FTTB FTTB etc., and adopt for Internet of Things field more widely rapidly, aspect industrial circles such as the power distribution automation in the intelligent power system field in preparing construction, the robotization of checking meter.Along with the development of optical fiber communication technology, and the amplification day by day of user side network application demand, the function of optical network unit ONU also needs from strength to strength and its structure page becomes increasingly complex.
Along with the widespread use of optical network unit ONU, the continuous increase of the complicacy of hardware and concrete individual demand needs constantly upgrading PON network at user's request, at the beginning of the PON network design, its software consideration upgradability.It is very difficult that but it gets up for the transformation that disperses, spreads all over the hardware in the terminal device everywhere, needs the staff to go to unpack to the scene, finishes the updating operation of hardware by platform.Like this, caused sizable difficulty for the upgrading and the maintenance of PON network, the large tracts of land that is unfavorable for present PON equipment is promoted the use of, and function is subjected to the limitation that hardware logic designs in earlier stage, extensive more its limitation of usable range is just big more, fails really the due dirigibility of hardware logic to be given full play of, therefore, optical network unit more needs a kind of upgrade method of hardware logic easily, satisfies the constantly needs of the various hardware capabilitys of upgrading.
Because propelling to industrial applications, its reliability of products, stability and trackability require page or leaf more and more higher, its complicacy of hardware and concrete personalization constantly increase, at the customer demand continuous upgrade software of requirement not only, and the reliability that needs consideration to upgrade, stability and trackability, make product new can not using occur in order to avoid cause upgrading, problems such as perhaps wrong upgrading, feasible backup to hardware logic seems more and more important, to reduce risk of any one the upgrading action in the product maintenance process.
Summary of the invention
Problem to be solved by this invention is not only the method that promotes specialized network-termination device management auto-update by means of communication, further purpose will be considered the adaptability problem of hardware logic unit based on overcoming under the high occasion of reliability requirements such as communication and industry, after the supervisory routine upgrading after having realized upgrading.For the instability that may in terminal operating, produce, as problems such as crashing or do not work, for the demand that realizes trackability provides a reliable technique scheme
The present invention for realizing the technical scheme that goal of the invention adopts is:
The method of management auto-update in the specialized network terminal device, the realization of the method is by passive optical-fiber network down load application program upgrade content by the hardware logic unit, and will be stored in the internal storage unit of hardware logic unit original application content and replace storage, key is: increase the external memory unit that stores original application content in terminal device, external memory unit is connected with the hardware logic unit, carries out following steps on this basis:
1), set the priority of two storage unit, is respectively high priority storage unit and low priority storage unit by the hardware logic unit;
2), the hardware logic unit is by passive optical-fiber network down load application program upgrade content, is stored in the low priority storage unit;
3), attempt the application content after upgrading is upgraded in the above low priority storage unit of operation, if move successfully, then carry out step 4); If step 5) is then directly carried out in the operation failure;
4), the priority of two storage unit in the transposing step 1);
5), start and call application content in the high priority storage unit, repeating step 2) with 3), carry out the content of upgrade applications next time.
Implement a kind of method that realizes the remote upgrade application program by the double copies storage unit of the present invention, increase the external memory unit that stores original application content, external memory unit is connected with the hardware logic unit, like this hardware logic unit both internally storage unit start and also can start from external memory unit, by setting inside, the priority of external memory unit, make two storage unit realize backup as active and standby storage unit mutually, this just makes each upgrading all have another storage unit to preserve original content, but can realize inverse operation, make software upgrading have trackability, enhance product performance, maintain easily, make optical network unit not only can satisfy the requirement of communication situation, also can satisfy the technical grade occasion fully to the product high reliability, the requirement of high maintenance enlarges the application of optical network unit greatly.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is that the optical network unit system of the inventive method connects block diagram.
Fig. 2 is the embodiment process flow diagram of the inventive method.
In the accompanying drawing, the 1st, PON module, the 2nd, hardware logic unit, the 3rd, internal storage unit, the 4th, external memory unit, the 5th, optical network unit.
Embodiment
The method of management auto-update in the specialized network terminal device, the realization of above method is by passive optical-fiber network 1 down load application program upgrade content by hardware logic unit 2, and will be stored in the internal storage unit 3 of hardware logic unit 2 original application content and replace storage, key is: increase the external memory unit 4 that stores original application content in terminal device, external memory unit 4 is connected with hardware logic unit 2, carries out following steps on this basis:
1), set the priority of two storage unit, is respectively high priority storage unit and low priority storage unit by the control module of hardware logic unit 2;
2), hardware logic unit 2 is by passive optical-fiber network 1 down load application program upgrade content, is stored in the low priority storage unit;
3), attempt the application content after upgrading is upgraded in the above low priority storage unit of operation, if move successfully, then carry out step 4); If step 5) is then directly carried out in the operation failure;
4), the priority of two storage unit in the transposing step 1);
5), start and call application content in the high priority storage unit, repeating step 2) with 3), carry out the content of upgrade applications next time.
Wherein external memory unit 4 is serial line interface FLASH storeies; The control module of hardware logic unit 2 is CPLD device or FPGA device.
The key of the inventive method is, increase the external memory unit that stores original application content, external memory unit is connected with the hardware logic unit, like this hardware logic unit both internally storage unit start and also can start from external memory unit, by setting the priority of inside, external memory unit, make two storage unit realize backup as active and standby storage unit mutually, this just makes each upgrading all have another storage unit to preserve original content, but can realize inverse operation.
When this method was specifically implemented, as shown in Figure 1, the inventive method was based on optical network unit 5, and this network element 5 comprises: hardware logic unit, 1, one outer memory module 4 of PON module.Referring to Fig. 2, in at first the hardware logic unit is set, the priority of outer two storage unit, for example, at first set internal storage unit 3 and be the high priority storage unit, external memory unit is the low priority storage unit, hardware logic unit 2 by with the upgrading content of the download interface down load application program of PON module 1, the content stores of will upgrading then is in external memory unit 4, try this ROMPaq then out, if move successfully, just be made as the priority of internal storage unit 3 low, the priority of external memory unit 4 is made as height, the control module of hardware logic unit 2 will call external memory unit 4 startup operations all the time later on, until the loading of application program updating content next time; If operation failure, the control module of hardware logic unit 2 will be called internal storage unit all the time and be started operation, until the loading of application program updating content next time.Like this, the application content of the memory block that priority is high can not be capped, and is kept always, like this, has improved reliability of products, stability, trackability greatly, has greatly widened the application and the application scenario of product.