CN105700906A - Software upgrading method of optical module, and relevant equipment and system - Google Patents

Software upgrading method of optical module, and relevant equipment and system Download PDF

Info

Publication number
CN105700906A
CN105700906A CN201410713506.7A CN201410713506A CN105700906A CN 105700906 A CN105700906 A CN 105700906A CN 201410713506 A CN201410713506 A CN 201410713506A CN 105700906 A CN105700906 A CN 105700906A
Authority
CN
China
Prior art keywords
attribute information
optical module
upgrade file
screening conditions
motherboard
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.)
Granted
Application number
CN201410713506.7A
Other languages
Chinese (zh)
Other versions
CN105700906B (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.)
HAISIGUANG ELECTRONICS Co Ltd
Original Assignee
HAISIGUANG ELECTRONICS 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 HAISIGUANG ELECTRONICS Co Ltd filed Critical HAISIGUANG ELECTRONICS Co Ltd
Priority to CN201410713506.7A priority Critical patent/CN105700906B/en
Publication of CN105700906A publication Critical patent/CN105700906A/en
Application granted granted Critical
Publication of CN105700906B publication Critical patent/CN105700906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a software upgrading method of an optical module. The software upgrading method comprises the following steps: a mother board analyzes an attribute information screening condition associated with an upgrading file, wherein the attribution information screening condition comprises a software model screening rule; the mother board obtains attribute information independently corresponding to at least one belonging optical module according to the attribution information screening condition; and whether the attribution information independently corresponding to at least one optical module meets the attribute information screening condition or not is judged, and the mother board sends the upgrading file to the optical module which conforms to the attribution information screening condition if the attribution information independently corresponding to at least one optical module meets the attribute information screening condition. The embodiment of the invention also discloses the mother board, the optical module and a software upgrading system. When the software upgrading method is adopted, the optical module can be subjected to accurate batch upgrading, and maintenance efficiency is improved.

Description

The method for upgrading software of a kind of optical module, relevant device and system
Technical field
The present invention relates to optical communication field, particularly relate to the method for upgrading software of a kind of optical module, relevant device and system。
Background technology
Optical module is the vitals in optical-fiber network, is mainly assemblied in wavelength-division/access/number logical grade and uses on product facility plate。Common optical module has: optical transmitter, optical receiver, the integrated module of optical transceiver and optical repeater。Along with optical module technology fast development, its supporting software also trends towards complicating variation gradually。Meeting customer need or solving the software Bug problem of optical module in time for dynamic, the upgrade function of the software of optical module becomes more and more important。
At present, the software upgrading of optical module relies primarily on female item product facility plate (hereinafter referred to as motherboard) and completes, after the optical module software data of redaction is stored in the storage medium of motherboard, the optical module software data of redaction, by supporting upgrading flow process, is adopted point-to-point mode to download in optical module by motherboard。
In current optical module software upgrade scheme, if optical module has downloaded a wrong software data, it is possible to cause that this optical module lost efficacy, even cause network contingency, meanwhile, when the quantity of optical module is very huge, use point-to-point method for upgrading software inefficiency, maintainable poor。
Summary of the invention
Embodiment of the present invention technical problem to be solved is in that, it is provided that the method for upgrading software of a kind of optical module, relevant device and system。The optical module of the scope of appointment can be carried out batch upgrade, improve the efficiency of optical module software upgrading, simultaneously by the preparation of software type is judged, can effectively prevent staging error software。
In order to solve above-mentioned technical problem, embodiment of the present invention first aspect provides the method for upgrading software of a kind of optical module, including:
Motherboard resolves the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule;
Described motherboard obtains the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by described motherboard。
In conjunction with first aspect, in the implementation that the first is possible, described motherboard resolves the attribute information screening conditions of upgrade file association and includes:
Described motherboard resolves attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
In conjunction with first aspect, in the implementation that the second is possible, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
In conjunction with any one in the implementation that first aspect to the second is possible, in the implementation that the third is possible, described upgrade file is full dose upgrade file or increment upgrade file。
The method for upgrading software of a kind of optical module that embodiment of the present invention second aspect provides, including:
Optical module receives the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule;
Described optical module obtains local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
If it is, described optical module utilizes described upgrade file that target software is upgraded。
In conjunction with second aspect, in the implementation that the first is possible, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
In conjunction with second aspect or implementation that the first is possible, in the implementation that the second is possible, described optical module utilizes described upgrade file that target software is carried out upgrading to include:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
The embodiment of the present invention third aspect provides a kind of motherboard, including:
Parsing module, for resolving the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule;
Acquisition module, for obtaining the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions;
Sending module, is used for judging whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, send described upgrade file to the optical module meeting described attribute information screening conditions。
In conjunction with the third aspect, in the implementation that the first is possible, described parsing module for resolving attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
In conjunction with the third aspect, in the implementation that the second is possible, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
In conjunction with any one in the implementation that the third aspect to the second is possible, in the implementation that the third is possible, described upgrade file is full dose upgrade file or increment upgrade file。
Embodiment of the present invention fourth aspect provides the software update system of a kind of optical module, including:
At least one optical module belonging to motherboard and described target, wherein, described motherboard resolves the attribute information screening conditions of upgrade file association;Described attribute information screening conditions include software signal screening rule;
Described motherboard obtains the affiliated each self-corresponding attribute information of at least one optical module;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by described motherboard;
The described optical module meeting described attribute information screening conditions receives upgrading software, and utilizes described upgrading software that target software is upgraded。
The embodiment of the present invention the 5th aspect provides a kind of optical module, including:
Receiver module, for receiving the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule;
Matching module, for obtaining local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
Upgraded module, if the judged result for described matching module is yes, utilizes described upgrade file that target software is upgraded。
In conjunction with the 5th aspect, in the implementation that the first is possible, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
In conjunction with the 5th aspect or implementation that the first is possible, in the implementation that the second is possible, described upgraded module is used for:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
The embodiment of the present invention the 6th aspect provides the software update system of a kind of optical module, including: motherboard and at least one optical module belonging to described motherboard, wherein,
Described motherboard sends upgrade file and the attribute information screening conditions associated with described upgrade file to optical module;
Described optical module receives described upgrade file and the described attribute information screening conditions that described motherboard sends;Wherein, described attribute information screening conditions include software model screening rule;
Described optical module obtains local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
If it is, described optical module utilizes described upgrade file that target software is upgraded。
Implement the embodiment of the present invention, have the advantages that
By to upgrade file relating attribute information sifting rule, utilizing attribute information screening rule to select to meet the optical module of attribute information screening rule from the multiple optical modules belonging to motherboard, upgrade file is sent to the purpose that the optical module meeting attribute information screening rule reaches the software of upgrading optical module by motherboard。Utilize the method for upgrading software of the embodiment of the present invention, when the optical module of different attribute information coexists in same motherboard, effectively preventing upgrading by mistake from causing that optical module lost efficacy, the optical module of the scope of appointment can be carried out batch upgrade by motherboard simultaneously, improves the maintenance efficiency of optical module。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described 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 premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings。
Fig. 1 is the schematic flow sheet of the method for upgrading software of a kind of optical module that first embodiment of the invention provides;
Fig. 2 is the structural representation of a kind of file destination that the embodiment of the present invention provides;
Fig. 3 is the structural representation of the file header of a kind of file destination that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the method for upgrading software of a kind of optical module that second embodiment of the invention provides;
Fig. 5 is the structural representation of a kind of motherboard that first embodiment of the invention provides;
Fig. 6 is the structural representation of a kind of motherboard that second embodiment of the invention provides;
Fig. 7 is the structural representation of a kind of optical module that first embodiment of the invention provides;
Fig. 8 is the structural representation of a kind of optical module that second embodiment of the invention provides;
Fig. 9 is the structural representation of the software update system of a kind of optical module that the embodiment of the present invention provides。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
The term " parts " that uses in this manual, " module ", " system " etc. are for representing entity, hardware, firmware, the combination of hardware and software, software or the executory software that computer is relevant。Such as, parts can be but not limited to, process, processor, object, executable file, execution thread, program and/or the computer run on a processor。By illustrating, the application run on the computing device and computing equipment can be parts。One or more parts can reside in process and/or perform in thread, and parts can be located on a computer and/or are distributed between 2 or more computer。Additionally, these parts can have the various computer-readable mediums of various data structure to perform from storage herein above。Parts can such as be communicated by locally and/or remotely process according to the signal with one or more packet (such as from the data of two parts mutual with local system, distributed system and/or another parts internetwork, for instance by the Internet of signal with other system interaction)。
Additionally, various aspects of the invention or feature can be implemented as method, device or use the goods of standard program and/or engineering。Term " goods " used herein is contained can from the computer program of any computer-readable device, carrier or medium access。Such as, computer-readable medium can include, but it is not limited to: magnetic memory device is (such as, hard disk, floppy disk or tape etc.), CD is (such as, CD (CompactDisk, compact disk), DVD (DigitalVersatileDisk, digital universal disc) etc.), smart card and flush memory device are (such as, EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), card, rod or Keyed actuator etc.)。It addition, various storage media described herein can represent the one or more equipment for storing information and/or other machine readable media。Term " machine readable media " may include but be not limited to, wireless channel and can store, comprise and/or carry other media various of instruction and/or data。
Referring to Fig. 1, the schematic flow sheet of the method for upgrading software of a kind of optical module provided for first embodiment of the invention, in embodiments of the present invention, described method includes:
S101, motherboard resolve the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule。
Concrete, upgrade file is associated with attribute information screening conditions, for filtering out, from least one optical module belonging to motherboard, the optical module meeting attribute information screening conditions, attribute information screening conditions comprise at least one screening rule, every screening rule uses logical operator to connect, such as " OR ", " AND ", " NOT " etc.。
Exemplary, attribute information screening conditions are expressed as: " screening rule 1 " AND " screening rule 2 " AND " screening rule 3 ", wherein, attribute information screening conditions at least include software model screening rule, software model screening rule is for filtering out, from least one optical module belonging to motherboard, the optical module meeting this software model according to software model, software model represents dbase, and software model available characters string, numeral or other forms represent, the present invention is not limited as。Pre-set it should be noted that attribute information screening conditions can be developer according to software upgrade requirement。
S102, described motherboard obtain the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions。
Concrete, the multiple screening rule that attribute information screening conditions comprise is classified according to attribute information, motherboard obtains each self-corresponding attribute information according to the quantity kind of screening rule in attribute information screening conditions from least one affiliated optical module, the attribute information of optical module can be stored in advance in the memorizer of this locality, and the attribute information of optical module includes one or more of software model, production firm, optical module type, serial number, date of manufacture and software version number。The attribute information of optical module includes hardware information and software information, and hardware information determines that after optical module is produced out, generally can not revise;Software information is the description information of the software on optical module, and when the software of optical module occurs to change, software information also can be revised accordingly。
Exemplary, attribute information screening conditions are: " software model screening rule " AND " trade name screening rule " AND " optical module type screening rule ", each screening rule that attribute information screening conditions comprise can represent by the form in list or interval。Can be seen that from examples detailed above and attribute information screening conditions comprise 3 kinds of screening rules, 3 kinds of screening rule corresponding property parameters respectively: software model, trade name, optical module type, the quantity assuming the optical module belonging to motherboard is 3, and motherboard obtains the software model of each optical module, trade name and optical module type in 3 optical modules。
Whether S103, the described each self-corresponding attribute information of at least one optical module of judgement meet described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by described motherboard。
Concrete, motherboard judges whether each self-corresponding attribute information of described each optical module meets attribute information screening conditions successively, if it is, upgrade file is distributed to the optical module meeting attribute information screening conditions by motherboard。
Exemplary, assuming that the attribute information screening conditions that upgrade file associates are: " software model: 1 " AND " trade name: Hisilicon " AND " date of manufacture: 20140101 to 20141010 ", 3 optical modules belonging to motherboard are optical module A, optical module B and optical module C。Motherboard gets the software model of described 3 optical module, trade name and date of manufacture respectively according to the type of 3 screening rules in attribute information screening conditions: the software model of optical module A is 1, and production firm is FH, and the date of manufacture is: 20140909;The software model of optical module B is 1, production firm is Hisilicon, and the date of manufacture is 20140815;The software model of optical module C is 1, production firm is Hisilicon, date of manufacture is 20140708, by judgement, motherboard learns that optical module A does not meet attribute information screening conditions, optical module B and C meets attribute information screening conditions, upgrade file is distributed to optical module B and optical module C by motherboard, so that optical module B and optical module C utilizes upgrade file that target software is upgraded。
Optionally, in an embodiment of the present invention, the attribute information screening conditions of described motherboard parsing upgrade file association include:
Described motherboard resolves attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
Concrete, file header and upgrade file can be packaged into file destination in advance, then packaged file destination is sent to motherboard, when within the scope of needs are to appointment, the target software of optical module is upgraded, after the upgrade file that the target software on optical module that completes is corresponding, by attribute information screening conditions appointment scope in the multiple optical modules be provided with target software, attribute information screening conditions are organized with the form of file header, and the file header of characterization attributes information sifting condition and upgrade file are encapsulated as a file destination。
Exemplary, referring to Fig. 2, upgrade file, file header A and file header B are encapsulated as a file destination, file header A carries software model screening rule, file header B carries the attribute information screening rule of the public sign upgrade file of other screening rules except software model screening rule, file header A and file header B。Software model screening rule can use character string, numeral or other forms to represent。Such as, the software model of the optical module belonging to motherboard have 5 kinds, being expressed as " 1 ", " 2 ", " 3 ", " 4 " and " 5 " by numeral respectively, the software model screening rule carried in file header A is 1, it was shown that on upgrade file correspondence optical module, software model is the target software of 1。
Exemplary, referring to Fig. 3, file header B carries in trade name screening rule, optical module type screening rule, serial number screening rule, date of formation screening rule and software version screening rule one or more, it can be indicated by character string, numeral or letter or other forms。Such as, file header B includes header segment and text segment, header segment includes file header identification field, protocol version field, data length field and reserved field, file header label character learning segment table shows the identity of file header B, for instance, file header identification field is: OMAU, protocol version field represents the version of the updating protocol of the embodiment of the present invention that motherboard and optical module follow jointly, data length field represents the data length of text segment, and reserved field is untapped field, for follow-up。In header segment, the length of each field can pre-set, for instance, the length of each field is 16。
Text segment represents one or more the field in trade name screening rule, optical module type screening rule, serial number screening rule, date of formation screening rule and the software version screening rule that attribute information screening rule includes, the corresponding screening rule field of each screening rule。
Each screening rule field is made up of following field: number of regulation field, rule length field, rule name field, rule type field, rule name length field, parameter field, crc field。
Each explanation of field in each screening rule field:
Number of regulation field represents the sequence number of screening rule, for instance, number of regulation field comprises 8, from 0 open numbering, span 0x00-0xff;
Rule length field represents the length not comprising crc field in screening rule field and the length of number of regulation field。
Rule name field represents the title of screening rule, can represent by numeral, such as, 1-trade name screening rule, 2-optical module type screening rule, 3-serial number screening rule, 4-software version screening frame volume, 5-FPGA version screening rule, 6-date of formation screening rule, other numerals-reserved;
Rule type field represents the representation of screening rule, for instance, optional rule type field ' A'-list type, ' B'-closed interval type;
Rule name field length, for instance, rule name is: the length of trade name screening rule field is 16 bytes;
Parameter field: if rule type field list is shown as list type, parameter field represents number of parameters and parameter list;If rule type field represents closed interval type, parameter field represents left margin parameter and the right margin parameter of closed interval。
Crc field represents the crc field of each screening rule field, for instance, adopt CRC8 verification, generator polynomial G (x)=X^8+X^2+X^1+1。
Optionally, in an embodiment of the present invention, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
Concrete, every screening rule passes through the method representation of closed interval or list, every screening rule is attached by logic operation symbol, such as, " trade name screening rule: Hisilicon " AND " optical module type screening rule: optical repeater, optical transmitter and optical repeater " AND " serial number screening rule: SN0111100-SN0120020 " AND " date of formation screening rule: 20140101-20140601 "。
Optionally, in an embodiment of the present invention, described upgrade file is full dose upgrade file or increment upgrade file。
Concrete, right upgrade file comprises the total data of target software to be upgraded, and optical module directly uses full dose upgrade file to replace target software to be upgraded and completes upgrading;Increment upgrade file is the incremental data of target software to be upgraded, and target software to be upgraded and increment upgrade file have been synthesized the upgrading of target software by optical module。
Implement embodiments of the invention, by to upgrade file relating attribute information sifting rule, utilizing attribute information screening rule to select to meet the optical module of attribute information screening rule from the multiple optical modules belonging to motherboard, upgrade file is sent to the purpose that the optical module meeting attribute information screening rule reaches the software of upgrading optical module by motherboard。Utilize the method for upgrading software of the embodiment of the present invention, when the optical module of different attribute information coexists in same motherboard, effectively preventing upgrading by mistake from causing that optical module lost efficacy, the optical module of the scope of appointment can be carried out batch upgrade by motherboard simultaneously, improves the maintenance efficiency of optical module。
Referring to Fig. 4, the schematic flow sheet of the upgrade method of a kind of optical module provided for second embodiment of the invention, in embodiments of the present invention, described method includes:
S201, optical module receive the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule。
Concrete, upgrade file is associated with attribute information screening conditions, for filtering out, from least one optical module belonging to motherboard, the optical module meeting attribute information screening conditions, attribute information screening conditions comprise at least one screening rule, every screening rule uses logical operator to connect, such as " OR ", " AND ", " NOT " etc., upgrade file and the attribute information screening conditions associated with described upgrade file are broadcasted at least one optical module belonging to described target by motherboard, optical module receives motherboard and sends upgrade file and the attribute information screening conditions associated with upgrade file。
Exemplary, attribute information screening conditions are expressed as: " screening rule 1 " AND " screening rule 2 " AND " screening rule 3 ", wherein, attribute information screening conditions at least include software model screening rule, software model screening rule is for filtering out, from least one optical module belonging to motherboard, the optical module meeting this software model according to software model, software model represents dbase, and software model available characters string, numeral or other forms represent, the present invention is not limited as。Pre-set it should be noted that attribute information screening conditions can be developer according to software upgrade requirement。
S202, described optical module obtain local attribute information according to described attribute information screening conditions, and judge whether described attribute information mates with described attribute information screening conditions。
Concrete, the multiple screening rule that attribute information screening conditions comprise is classified according to attribute information, motherboard obtains each self-corresponding attribute information according to the quantity kind of screening rule in attribute information screening conditions from least one affiliated optical module, the attribute information of optical module can be stored in advance in the memorizer of this locality, and the attribute information of optical module includes one or more of software model, production firm, optical module type, serial number, date of manufacture and software version number。The attribute information of optical module includes hardware information and software information, and hardware information determines that after optical module is produced out, generally can not revise;Software information is the description information of the software on optical module, and when the software of optical module occurs to change, software information also can be revised accordingly。Optical module obtains local attribute information according to the type of screening rule in attribute information screening conditions and quantity, judge whether the attribute information got meets attribute information screening conditions, if yes, optical module utilizes the upgrade file received that local target software is upgraded, if it has not, optical module abandons this upgrade file。
Exemplary, assume that motherboard sends the attribute information screening conditions of upgrade file association and is: " software model: 1 " AND " trade name: Hisilicon " AND " date of manufacture: 20140101 to 20141010 ", 3 optical modules belonging to motherboard are optical module A, optical module B and optical module C。3 optical modules obtain the software model of this locality, trade name and date of manufacture according to the type of the screening conditions in attribute information screening conditions and quantity respectively, the software model assuming optical module A is 1, production firm is FH, date of manufacture is: 20140909, optical module A learns that the attribute information of this locality meets the attribute information screening conditions that motherboard sends, and optical module A abandons upgrade file;Optical module B obtain local software model be 1, production firm be Hisilicon, date of manufacture is 20140815, optical module B learns that the attribute information of this locality meets the attribute information screening conditions that motherboard sends, and optical module B utilizes upgrade file that target software is upgraded;It is 1 that optical module C obtains local software model, production firm is Hisilicon, date of manufacture is 20140708, and optical module C is by judging that the attribute information learning this locality meets attribute information screening conditions, and optical module C utilizes upgrade file that local target software is upgraded。
S203 is if it is, described optical module utilizes described upgrade file that target software is upgraded。
Optionally, in an embodiment of the present invention, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
Concrete, every screening rule passes through the method representation of closed interval or list, every screening rule is attached by logic operation symbol, such as, " trade name screening rule: Hisilicon " AND " optical module type screening rule: optical repeater, optical transmitter and optical repeater " AND " serial number screening rule: SN0111100-SN0120020 " AND " date of formation screening rule: 20140101-20140601 "。
Optionally, in an embodiment of the present invention, described optical module utilizes described upgrade file that target software is carried out upgrading to include:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
Implement embodiments of the invention, by to upgrade file relating attribute information sifting rule, utilizing attribute information screening rule to select to meet the optical module of attribute information screening rule from the multiple optical modules belonging to motherboard, the optical module meeting attribute information screening conditions asks upgrade file to complete the purpose of software upgrading to motherboard。Utilize the method for upgrading software of the embodiment of the present invention, when the optical module of different attribute information coexists in same motherboard, can effectively prevent upgrading by mistake from causing that optical module lost efficacy, the optical module of the scope of appointment can be carried out batch upgrade simultaneously, improve the maintenance efficiency of optical module。
Referring to Fig. 5, for the structural representation of a kind of motherboard that first embodiment of the invention provides, in embodiments of the present invention, described motherboard includes parsing module 10, acquisition module 11 and sending module 12。
Parsing module 10, for resolving the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule。
Acquisition module 11, for obtaining the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions。
Sending module 12, is used for judging whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, send described upgrade file to the optical module meeting described attribute information screening conditions。
Further, optionally, parsing module 10 for resolving attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
Optionally, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
Optionally, described upgrade file is full dose upgrade file or increment upgrade file。
The embodiment of the present invention and embodiment of the method one are based on same design, and its technique effect brought is also identical, and detailed process refer to the description of embodiment of the method one, repeats no more herein。
Referring to Fig. 6, for the structural representation of a kind of motherboard that the embodiment of the present invention two provides, in embodiments of the present invention, motherboard 1 includes processor 61, memorizer 62 and communication interface 63, the quantity of the processor 61 in motherboard 1 can be one or more, and Fig. 6 is for a processor。In some embodiments of the present invention, processor 61, memorizer 62 and communication interface 63 can be connected by bus or other modes, are connected as example with bus in Fig. 6。
Wherein, memorizer 62 stores batch processing code, and processor 61 is for calling the program code of storage in memorizer 62, is used for performing following operation:
Resolve the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule;
The affiliated each self-corresponding attribute information of at least one optical module is obtained according to described attribute information screening conditions;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, send described upgrade file to the optical module meeting described attribute information screening conditions。
In embodiments of the present invention, processor 61 perform described parsing upgrade file association attribute information screening conditions include:
Resolving attribute information screening conditions from the file header of file destination, wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
In an embodiment of the present invention, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
In an embodiment of the present invention, described upgrade file is full dose upgrade file or increment upgrade file。
The embodiment of the present invention and embodiment of the method are based on same design, and its technique effect brought is also identical, and detailed process refer to the description of embodiment of the method one, repeats no more herein。
Referring to Fig. 7, for the structural representation of a kind of optical module that first embodiment of the invention provides, in embodiments of the present invention, described optical module includes receiver module 20, matching module 21 and upgraded module 22。
Receiver module 20, for receiving the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule。
Matching module 21, for obtaining local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions。
Upgraded module 22, if the judged result for described matching module is yes, utilizes described upgrade file that target software is upgraded。
Further, optionally, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
Optionally, upgraded module 22 is used for:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
The embodiment of the present invention and embodiment of the method two are based on same design, and its technique effect brought is also identical, and detailed process refer to the description of embodiment of the method two, repeats no more herein。
Referring to Fig. 8, for the structural representation of a kind of optical module that second embodiment of the invention provides, in embodiments of the present invention, optical module 2 includes processor 71, memorizer 72 and communication interface 73, the quantity of the processor 71 in optical module 2 can be one or more, and Fig. 8 is for a processor。In some embodiments of the present invention, processor 71, memorizer 72 and communication interface 73 can be connected by bus or other modes, are connected as example with bus in Fig. 8。
Wherein, memorizer 72 stores batch processing code, and processor 71 is for calling the program code of storage in memorizer 72, is used for performing following operation:
Receive the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule;
Obtain local attribute information according to described attribute information screening conditions, and judge whether described attribute information mates with described attribute information screening conditions;
If the judged result of described matching module is yes, utilize described upgrade file that target software is upgraded。
Optionally, in some embodiments of the invention, described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
Optionally, in some embodiments of the invention, processor 71 performs described to utilize described upgrade file that target software is carried out upgrading to include:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file;
If described upgrade file is increment upgrade file, synthesize new target software according to described upgrade file and described target software。
The embodiment of the present invention and embodiment of the method two are based on same design, and its technique effect brought is also identical, and detailed process refer to the description of embodiment of the method, repeats no more herein。
Referring to Fig. 9, the Organization Chart of software update system for a kind of optical module that the embodiment of the present invention provides, in embodiments of the present invention, optical module upgrade-system includes motherboard 30 and affiliated at least one optical module (optical module 31, optical module 32, ..., optical module 3n), motherboard 30 may is that with the interaction of at least one affiliated optical module motherboard 30 obtains upgrade file and the attribute information screening conditions associated with upgrade file, and described upgrade file and described attribute information screening conditions are broadcasted each optical module (optical module 31 at least one affiliated optical module, optical module 32, ..., optical module 3n);Described attribute information screening conditions include software model screening rule;
Each optical module receives the upgrade file that motherboard sends and the attribute information screening conditions associated with upgrade file;
Whether the attribute information that each optical module judges meets described attribute information screening conditions, if it is, optical module utilizes described upgrade file that target software is upgraded, if it has not, optical module abandons this upgrade file。
The interaction of motherboard 30 and at least one optical module (optical module 31, optical module 32 ..., optical module 3n) can also be:
Motherboard 30 resolves the attribute information screening conditions of upgrade file association;Described attribute information screening conditions include software signal screening rule;
Motherboard 30 obtains each self-corresponding attribute information of at least one affiliated optical module;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by motherboard;
The optical module meeting described attribute information screening conditions receives upgrading software, and utilizes described upgrading software that target software is upgraded。
By to upgrade file relating attribute information sifting rule, utilizing attribute information screening rule to select to meet the optical module of attribute information screening rule from the multiple optical modules belonging to motherboard, upgrade file is sent to the purpose that the optical module meeting attribute information screening rule reaches the software of upgrading optical module by motherboard。Utilize the method for upgrading software of the embodiment of the present invention, when the optical module of different attribute information coexists in same motherboard, can effectively prevent upgrading by mistake from causing that optical module lost efficacy, the optical module of the scope of appointment can be carried out batch upgrade simultaneously, improve the maintenance efficiency of optical module。
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method。Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.。
Above disclosed it is only one preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are made, still fall within the scope that invention is contained。

Claims (16)

1. the method for upgrading software of an optical module, it is characterised in that including:
Motherboard resolves the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule;
Described motherboard obtains the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by described motherboard。
2. the method for claim 1, it is characterised in that described motherboard resolves the attribute information screening conditions of upgrade file association and includes:
Described motherboard resolves attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
3. the method for claim 1, it is characterised in that described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
4. the method as described in claim 1-3 any one, it is characterised in that described upgrade file is full dose upgrade file or increment upgrade file。
5. the method for upgrading software of an optical module, it is characterised in that including:
Optical module receives the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule;
Described optical module obtains local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
If it is, described optical module utilizes described upgrade file that target software is upgraded。
6. method as claimed in claim 5, it is characterised in that described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
7. the method as described in claim 5 or 6, it is characterised in that described optical module utilizes described upgrade file that target software is carried out upgrading to include:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
8. a motherboard, it is characterised in that including:
Parsing module, for resolving the attribute information screening conditions of upgrade file association;Wherein, described attribute information screening conditions include software model screening rule;
Acquisition module, for obtaining the affiliated each self-corresponding attribute information of at least one optical module according to described attribute information screening conditions;
Sending module, is used for judging whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, send described upgrade file to the optical module meeting described attribute information screening conditions。
9. motherboard as claimed in claim 8, it is characterized in that, described parsing module for resolving attribute information screening conditions from the file header of file destination, and wherein said file destination is made up of the file header and described upgrade file characterizing described attribute information screening conditions。
10. motherboard as claimed in claim 8, it is characterised in that described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
11. the motherboard as described in claim 8-10 any one, it is characterised in that described upgrade file is full dose upgrade file or increment upgrade file。
12. the software update system of an optical module, it is characterised in that including: motherboard and at least one optical module belonging to described target, wherein, described motherboard resolves the attribute information screening conditions of upgrade file association;Described attribute information screening conditions include software signal screening rule;
Described motherboard obtains the affiliated each self-corresponding attribute information of at least one optical module;
Judge whether the described each self-corresponding attribute information of at least one optical module meets described attribute information screening conditions, if it is, described upgrade file is sent to the optical module meeting described attribute information screening conditions by described motherboard;
The described optical module meeting described attribute information screening conditions receives upgrading software, and utilizes described upgrading software that target software is upgraded。
13. an optical module, it is characterised in that including:
Receiver module, for receiving the upgrade file that motherboard sends and the attribute information screening conditions associated with described upgrade file;Wherein, described attribute information screening conditions include software model screening rule;
Matching module, for obtaining local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
Upgraded module, if the judged result for described matching module is yes, utilizes described upgrade file that target software is upgraded。
14. optical module as claimed in claim 13, it is characterised in that described attribute information screening conditions also include: one or more in trade name screening rule, optical module type screening rule, serial number screening rule, date of manufacture screening rule。
15. the optical module as described in claim 13 or 14, it is characterised in that described upgraded module is used for:
If described upgrade file is full dose upgrade file, described target software is replaced with described right upgrade file by described optical module;
If described upgrade file is increment upgrade file, described optical module synthesizes new target software according to described upgrade file and described target software。
16. the software update system of an optical module, it is characterized in that, including: motherboard and at least one optical module belonging to described motherboard, wherein, described motherboard sends upgrade file and the attribute information screening conditions associated with described upgrade file to optical module, and described attribute information screening conditions include software model screening rule;
Described optical module receives described upgrade file and the described attribute information screening conditions that described motherboard sends;
Described optical module obtains local attribute information according to described attribute information screening conditions, and judges whether described attribute information mates with described attribute information screening conditions;
If it is, described optical module utilizes described upgrade file that target software is upgraded。
CN201410713506.7A 2014-11-29 2014-11-29 Optical module software upgrading method, related equipment and system Active CN105700906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410713506.7A CN105700906B (en) 2014-11-29 2014-11-29 Optical module software upgrading method, related equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410713506.7A CN105700906B (en) 2014-11-29 2014-11-29 Optical module software upgrading method, related equipment and system

Publications (2)

Publication Number Publication Date
CN105700906A true CN105700906A (en) 2016-06-22
CN105700906B CN105700906B (en) 2020-04-21

Family

ID=56230501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410713506.7A Active CN105700906B (en) 2014-11-29 2014-11-29 Optical module software upgrading method, related equipment and system

Country Status (1)

Country Link
CN (1) CN105700906B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775588A (en) * 2016-11-30 2017-05-31 合肥科迈捷智能传感技术有限公司 A kind of firmware upgrade method based on principal and subordinate processor framework
CN110311972A (en) * 2019-06-27 2019-10-08 百度在线网络技术(北京)有限公司 Detection method, device, equipment and medium for application software distribution

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783799A (en) * 2004-11-29 2006-06-07 中兴通讯股份有限公司 Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version
US7913223B2 (en) * 2005-12-16 2011-03-22 Dialogic Corporation Method and system for development and use of a user-interface for operations, administration, maintenance and provisioning of a telecommunications system
CN102203732A (en) * 2011-05-27 2011-09-28 华为技术有限公司 Software upgrading method, apparatus and optical module
US20110289496A1 (en) * 2010-05-18 2011-11-24 North End Technologies, Inc. Method & apparatus for load balancing software update across a plurality of publish/subscribe capable client devices
CN102722384A (en) * 2012-05-25 2012-10-10 深圳市共进电子股份有限公司 On-line upgrading method and upgrading system for optical module firmware
CN102929669A (en) * 2012-10-29 2013-02-13 北京开元智信通软件有限公司 Embedded software upgrading method, system and device
US20140105601A1 (en) * 2012-10-15 2014-04-17 Sumitomo Electric Industries, Ltd. Optical module used in optical communication systems, method of updating firmware of optical module used in optical communication systems, and trouble tracing system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783799A (en) * 2004-11-29 2006-06-07 中兴通讯股份有限公司 Automatic obtaining method for telecommunication trausmission systen unit soft and hard ware version
US7913223B2 (en) * 2005-12-16 2011-03-22 Dialogic Corporation Method and system for development and use of a user-interface for operations, administration, maintenance and provisioning of a telecommunications system
US20110289496A1 (en) * 2010-05-18 2011-11-24 North End Technologies, Inc. Method & apparatus for load balancing software update across a plurality of publish/subscribe capable client devices
CN102203732A (en) * 2011-05-27 2011-09-28 华为技术有限公司 Software upgrading method, apparatus and optical module
CN102722384A (en) * 2012-05-25 2012-10-10 深圳市共进电子股份有限公司 On-line upgrading method and upgrading system for optical module firmware
US20140105601A1 (en) * 2012-10-15 2014-04-17 Sumitomo Electric Industries, Ltd. Optical module used in optical communication systems, method of updating firmware of optical module used in optical communication systems, and trouble tracing system
CN102929669A (en) * 2012-10-29 2013-02-13 北京开元智信通软件有限公司 Embedded software upgrading method, system and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775588A (en) * 2016-11-30 2017-05-31 合肥科迈捷智能传感技术有限公司 A kind of firmware upgrade method based on principal and subordinate processor framework
CN110311972A (en) * 2019-06-27 2019-10-08 百度在线网络技术(北京)有限公司 Detection method, device, equipment and medium for application software distribution
CN110311972B (en) * 2019-06-27 2022-02-22 百度在线网络技术(北京)有限公司 Detection method, device, equipment and medium for application software distribution

Also Published As

Publication number Publication date
CN105700906B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN100566357C (en) Communication apparatus batch configuration managerial approach and device thereof
CN107506219A (en) A kind of general version upgrade method based on android system
CN108134962B (en) Method for setting screen parameters, method and device for acquiring screen parameters and television mainboard
CN103970578A (en) Method for upgrading master and slave MCUs (micro control units)
CN106020837A (en) Method and system for loading set top box drive
CN110113196A (en) A kind of protocol configuration method, device, equipment and medium
CN105630432A (en) Method, device and system for upgrading printer and printer
CN105094780A (en) Information correlation method and device
CN104065752A (en) Synchronization method of data between terminals
CN103761095B (en) Method for generating universal upgrade file head data information
CN104052626A (en) Method, device and system for configuring network element data
CN105700906A (en) Software upgrading method of optical module, and relevant equipment and system
CN103927201A (en) Method and device for updating game files
CN103164232A (en) Method and system of updating intelligent terminal operating system and computer
CN107797805A (en) A kind of code wrap method, apparatus and computer-readable recording medium
CN105190546A (en) Cost computation device, cost computation method, and computer-readable recording medium
CN106569843A (en) Method and device for generating OTA central package
CN102916967B (en) The method and apparatus of protocol analysis
CN109491703A (en) Method, apparatus, storage medium and the electronic device that table merges
CN108200213A (en) O&M method, apparatus and system
CN104598277A (en) Method for building mobile terminal applications, mobile terminal and system
CN104090780A (en) Automatic configuration method and cloud compiling system
US11880353B2 (en) Method and system for handling engineering data in a multiengineering system environment
JP4941574B2 (en) Register configurator and register configuration method
CN110442821A (en) Renewal of the page device during a kind of webpage development

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant