Nothing Special   »   [go: up one dir, main page]

CN102722384A - On-line upgrading method and upgrading system for optical module firmware - Google Patents

On-line upgrading method and upgrading system for optical module firmware Download PDF

Info

Publication number
CN102722384A
CN102722384A CN2012101658194A CN201210165819A CN102722384A CN 102722384 A CN102722384 A CN 102722384A CN 2012101658194 A CN2012101658194 A CN 2012101658194A CN 201210165819 A CN201210165819 A CN 201210165819A CN 102722384 A CN102722384 A CN 102722384A
Authority
CN
China
Prior art keywords
optical module
firmware
upgrading
program
system software
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.)
Pending
Application number
CN2012101658194A
Other languages
Chinese (zh)
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2012101658194A priority Critical patent/CN102722384A/en
Publication of CN102722384A publication Critical patent/CN102722384A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an on-line upgrading method for optical module firmware. A system communicates with an optimal module to complete on-line upgrade of the optical module firmware; the optical module firmware is divided into an upgrading boot loader and system software; and when the optical module firmware is upgraded, a micro controller unit (MCU) of the optical module operates the upgrading boot loader, the upgrading boot loader acquires new system software from the system in a communication mode, and the original system software is replaced by the new system software. By adopting the method for on-line upgrade of the firmware, because the whole program can be burnt at one time during delivery, the delivery programming operation is simplified; and because the program works in a work area by normal start, the start time of the program is shortened.

Description

A kind of method of optical module firmware on line upgrading and upgrade-system
Technical field
The present invention relates to optical communication field, particularly a kind of method of optical module firmware on line upgrading comprises the firmware upgrade method of EPON, GPON optical module.
Background technology
Optical module ( Optical module)Be made up of optoelectronic device, functional circuit and optical interface etc., briefly, the effect of optical module is exactly an opto-electronic conversion, and transmitting terminal becomes light signal to electrical signal conversion, and after transmitting through optical fiber, receiving end converts light signal to electric signal again.
Firmware (Firmware) is exactly the program that writes among EROM or the EPROM (programmable read only memory), and popular understanding is exactly " software of curing ".Can think that generally firmware is exactly the software of BIOS, but different fully with common software, it is the program code that is solidificated in IC interior, is responsible for the function of control and coordination integrated circuit.Firmware (firmware) generally is stored among the electricallyerasable ROM (EEROM) EEPROM (Electrically Erasable Programmable ROM) or FLASH chip in the equipment, the program that generally can be upgraded through specific refurbishing procedure by the user.In general; Serve as digital product software the most basic, bottom work and just can be referred to as firmware; Such as the basic input/output BIOS on the computer motherboard (Basic Input/output System), former more in fact professional person is its firmware.The program of being preserved in these hardware usually can't directly be read or revise by the user.Former, there is no need generally speaking firmware is carried out updating operation, even found that in firmware serious Bug also must be by the professional with changing on the original machine of chip handle of finishing writing program.Early stage firmware chip has generally adopted the ROM design, and its Firmware code solidifies in process of production, all can't revise with any means.Continuous development along with technology; Revise firmware has become users with the hardware environment that adapts to continual renovation an urgent demand; So, the programmable and erasable ROM (read-only memory) EPROM that can repeat to write (Erasable Programmable ROM), EEPROM and flash have occurred.These chips can repeat to write with a brush dipped in Chinese ink, and let firmware be able to revise and upgrading.
The optical module firmware is exactly the system software that is solidificated in the optical module; Mainly comprise boot section program (Bootloader) and application code (Application Code), optical module is through being stored in the initialization and other control function of the program realization module itself in flash or the EPROM.To the firmware Application Code that can only upgrade that upgrades, and the leader code does not allow to change all the time.
In today that FTTX popularizes day by day, the demand of optical module is also presented rapid growth, owing to reasons such as performance and functions, the firmware of optical module unavoidably needs online upgrading.
During present optical module was used, the upgrading of firmware had following method:
Utilize IAP function (IAP is at the abbreviation In of application upgrade Application Programming) through the inner FLASH of MCU is divided into boot section (Bootloader) and workspace (Application Code); In the time of burning; Through cd-rom recorder Bootloader is burnt to FLASH, through Bootloader Application Code is written to FLASH then.In the time of the normal startup of MCU, also need to start Bootloader earlier,, then begin to get into upgrade mode upgrading Application Code if in the Bootloader run duration, detect upgrading order; If do not receive upgrading order in the period at this section then get into normal mode of operation.
Though the method has solved the online upgrading of firmware, there is following defective:
A: can only carry out online upgrading to Application Code; Can not partly carry out online upgrading to Bootloader; Bootloader partly needs first burning; Write Application Code through Bootloader then, complicated dispatching from the factory of program writes link: pass through the burning of JTAC mouth by original needs cd-rom recorder, increased communication port and write Application Code link through Bootloader.
B: because the initial elder generation of MCU moves the Bootloader part, then increased the start-up time of MCU, had the design of requirement inapplicable to the system start-up time for some.
Summary of the invention
For solving in the sight terminal, the inconvenience that the optical module firmware upgrade is brought, the present invention provide a kind of method of optical module firmware on line upgrading.
The present invention for the technical scheme of accomplishing its technical purpose and adopting is: a kind of method of optical module firmware on line upgrading; System accomplishes the optical module firmware on line upgrading through communicating with optical module; The optical module firmware is divided into upgrading boot and system software two parts, when carrying out the optical module firmware upgrade, may further comprise the steps:
Steps A, system send the step of online upgrading order to the optical module that is moving;
Step B, the optical module step that automatically resets in the back operation upgrading boot that resets, gets into the step of firmware upgrade pattern;
Step C, system are the step that unit is written to optical module with firmware to be upgraded with the page or leaf through communication interface;
After the upgrading boot receives data in step D, the optical module, be the data that unit changes the fixer system software section of storage continuously, use the 0x00 polishing for the data of discontented one page by page or leaf; After treating that whole firmware to be upgraded is partly write completely, accomplish firmware upgrade;
Step e, system send upgrading the finish command to the optical module of accomplishing firmware upgrade, and optical module resets, and back operation updated firmware resets.
Further, in the method for above-mentioned optical module firmware on line upgrading: further comprising the steps of after the step of entering firmware upgrade pattern in step B:
B1, system send through communication interface and read when the front optical module status command, and the optical module feedback is when the front optical module state;
B2, system will work as in the front optical module internal firmware system software integral body through communication interface and read, and be that one page is stored continuously and formed the BIN file with 512 bytes.
Further, in the method for above-mentioned optical module firmware on line upgrading: described system software comprises: comprise boot section program and application code.
Further, in the method for above-mentioned optical module firmware on line upgrading: in described steps A and the step e, system realizes to optical module transmission upgrading order and upgrading the finish command as follows; In optical module; Be provided with one by the variable of system through the communication mode assignment, the MCU of optical module obtains to reset when this variable changes, simultaneously; By the guide of this variable, guiding upgrading boot or system software working routine.
The present invention selects the still normal use of firmware upgrade through the upgrading boot is set when resetting through the On-line Control optical module in firmware, the system that makes can upgrade to system programs all in the optical module firmware through communication interface.
Below through combining specific embodiment and accompanying drawing that the present invention is further explained.
Description of drawings
Accompanying drawing 1 is the process flow diagram of system upgrade of the present invention.
Accompanying drawing 2 is upgrading boot process flow diagrams of the present invention.
Embodiment
As shown in Figure 1; Present embodiment is system carries out online upgrading through communication interface control optical module a method; In this method the inner FLASH of optical module MCU is divided into normal program run part A PROM and ROMPaq partial L DROM; Wherein normal program run part A PROM also claims the system program part; Comprise system bootstrap district program Bootloader and workspace code Application Code, we to the optical module upgrading, mainly replace existing Application Code with new Application Code usually exactly.ROMPaq partial L DROM then is the program code of setting in order to carry out online upgrading, and this subprogram code is boot section program Bootloader, and its process flow diagram is as shown in Figure 2.
When dispatching from the factory, this two parts program of APROM and LDROM can once write through cd-rom recorder.Variable ISPCON is set simultaneously, and this variable storage is in FLASH, and each MCU starts all can read the ISPCON value earlier, and LDROM starts to select to start still from APROM according to the ISPCON value.The normal optical module operation APROM internal program that starts carries out the normal light functions of modules.When the needs optical module was upgraded, the value of sending in the startup command change ISPCON through communication interface was that LDROM starts, and the MCU that resets switches to the LDROM operation.When program is moved in LDROM, can read and change through the program of communication interface APROM, reach the function of upgrading the optical module firmware through change to APROM.After accomplishing the APROM renewal, revising the ISPCON value through communication command is that APROM starts, and has accomplished firmware update this time from the APROM startup behind the MCU that resets.
Present embodiment firmware upgrade method concrete steps are following:
The 1st step: FLASH is divided into APROM and LDROM two parts, and wherein APROM is the normal procedure storage area, and LDROM is the ROMPaq storage area.Program in the APROM is accomplished the basic function of optical module, and the LDROM internal program is accomplished the operation of reading of APROM being wiped change.
This two parts program can once write through cd-rom recorder, the link that having reduced dispatches from the factory writes a program.The normal startup by APROM of program starts operation, reduced the program start time.
The 2nd step: when system need carry out firmware upgrade to optical module; Send the order of entering upgrade mode through communication interface to optical module, optical module is received the value in the back change ISPCON, is revised as the LDROM startup; And the optical module that resets; When optical module started once more, program got into the LDROM operation, gets into the firmware upgrade pattern.
The 3rd step: system sends through communication interface and reads when the front optical module status command, and the optical module feedback comprises big or small, the information such as RAM is big or small, MCU model, firmware version number of current APROM when the front optical module state.
The 4th step: system will work as the inner APROM integral body of front optical module through communication interface reads, and is that one page is stored formation BIN file continuously with 512 bytes, is saved in the convenient follow-up program rollback of system end.
The 5th step: system is with firmware to be upgraded (.BIN formatted file); Through communication interface is that unit is written to optical module with the page or leaf; After the LDROM program receives data in the optical module, be that unit changes the data in the APROM continuously, use the 0x00 polishing for the data of discontented one page by page or leaf.Treat that whole APROM writes and accomplish when time APROM upgrading after full.
The 6th step: after the APROM internal program upgraded completion, system sent order through communication port and revises the interior value of ISPCON, and be revised as APROM and start, and the optical module that resets.Optical module can switch to APROM and carries out work after resetting, and carry out program run by the firmware after upgrading this moment, accomplished firmware upgrade.
Adopt this method to carry out firmware on line upgrading and since whole procedure can dispatch from the factory the time burning accomplish, the operation of writing a program that having simplified dispatches from the factory because normal just the startup is operated in the workspace, has been shortened the start-up time of program simultaneously.

Claims (4)

1. the method for an optical module firmware on line upgrading; System accomplishes the optical module firmware on line upgrading through communicating with optical module; It is characterized in that, the optical module firmware is divided into upgrading boot and system software two parts, when carrying out the optical module firmware upgrade, may further comprise the steps:
Steps A, system send the step of online upgrading order to the optical module that is moving;
Step B, the optical module step that automatically resets in the back operation upgrading boot that resets, gets into the step of firmware upgrade pattern;
Step C, system are the step that unit is written to optical module with firmware to be upgraded with the page or leaf through communication interface;
After the upgrading boot receives data in step D, the optical module, be the data that unit changes the fixer system software section of storage continuously, use the 0x00 polishing for the data of discontented one page by page or leaf; After treating that whole firmware to be upgraded is partly write completely, accomplish firmware upgrade;
Step e, system send upgrading the finish command to the optical module of accomplishing firmware upgrade, and optical module resets, and back operation updated firmware resets.
2. the method for optical module firmware on line upgrading according to claim 1 is characterized in that: further comprising the steps of after the step of entering firmware upgrade pattern in step B:
B1, system send through communication interface and read when the front optical module status command, and the optical module feedback is when the front optical module state;
B2, system will work as in the front optical module internal firmware system software integral body through communication interface and read, and be that one page is stored continuously and formed the BIN file with 512 bytes.
3. the method for optical module firmware on line upgrading according to claim 1 is characterized in that: described system software comprises: comprise boot section program and application code program.
4. according to the method for arbitrary described optical module firmware on line upgrading in the claim 1 to 3, it is characterized in that: in described steps A and the step e, system realizes to optical module transmission upgrading order and upgrading the finish command as follows; In optical module; Be provided with one by the variable of system through the communication mode assignment, the MCU of optical module obtains to reset when this variable changes, simultaneously; By the guide of this variable, guiding upgrading boot or system software.
CN2012101658194A 2012-05-25 2012-05-25 On-line upgrading method and upgrading system for optical module firmware Pending CN102722384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101658194A CN102722384A (en) 2012-05-25 2012-05-25 On-line upgrading method and upgrading system for optical module firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101658194A CN102722384A (en) 2012-05-25 2012-05-25 On-line upgrading method and upgrading system for optical module firmware

Publications (1)

Publication Number Publication Date
CN102722384A true CN102722384A (en) 2012-10-10

Family

ID=46948163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101658194A Pending CN102722384A (en) 2012-05-25 2012-05-25 On-line upgrading method and upgrading system for optical module firmware

Country Status (1)

Country Link
CN (1) CN102722384A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN104407902A (en) * 2014-12-12 2015-03-11 四川华拓光通信股份有限公司 Remote upgrading method of SFF optical module based on Bootloader
CN104407903A (en) * 2014-12-12 2015-03-11 四川华拓光通信股份有限公司 Remote upgrading method of QSFP optical module based on Bootloader
CN104461638A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based XFP optical module upgrading method
CN104461639A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based CSFP optical module upgrading method
CN104657160A (en) * 2013-11-21 2015-05-27 联创汽车电子有限公司 Multichip application burning method of vehicle-mounted controller
US20150154017A1 (en) * 2012-08-21 2015-06-04 Wuhan Telecommunication Devices Co., Ltd. In-application upgrade method for optical module firmware not breaking service
CN105700906A (en) * 2014-11-29 2016-06-22 海思光电子有限公司 Software upgrading method of optical module, and relevant equipment and system
CN106598632A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Firmware upgrading method and apparatus for optical module
CN107102879A (en) * 2017-04-27 2017-08-29 深圳怡化电脑股份有限公司 Information is sent and firmware upgrade method, device, terminal, equipment and storage medium
CN108255510A (en) * 2017-12-22 2018-07-06 芯海科技(深圳)股份有限公司 One kind is based on IAP online upgradings firmware transfer check design method to be upgraded
CN108803442A (en) * 2018-07-25 2018-11-13 武汉光迅科技股份有限公司 A kind of optical mode block code download apparatus and method
CN110299941A (en) * 2019-05-23 2019-10-01 广东瑞谷光网通信股份有限公司 The accurate test method of optical module IIC Ready Time, electronic equipment and computer readable storage medium
CN112817607A (en) * 2020-12-31 2021-05-18 广州芯德通信科技股份有限公司 Realization method for accelerating production speed of optical transceiver
CN113641378A (en) * 2021-07-13 2021-11-12 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101894035A (en) * 2010-07-12 2010-11-24 杭州开鼎科技有限公司 Method for updating EPON terminal system program based on NOR Flash
CN101950253A (en) * 2010-08-12 2011-01-19 深圳市共进电子有限公司 Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101894035A (en) * 2010-07-12 2010-11-24 杭州开鼎科技有限公司 Method for updating EPON terminal system program based on NOR Flash
CN101950253A (en) * 2010-08-12 2011-01-19 深圳市共进电子有限公司 Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154017A1 (en) * 2012-08-21 2015-06-04 Wuhan Telecommunication Devices Co., Ltd. In-application upgrade method for optical module firmware not breaking service
US9274789B2 (en) * 2012-08-21 2016-03-01 Wuhan Telecommunication Devices Co., Ltd. In-application upgrade method for optical module firmware not breaking service
CN104657160B (en) * 2013-11-21 2018-04-17 联创汽车电子有限公司 The method for burn-recording of Vehicle Controller multi-chip application program
CN104657160A (en) * 2013-11-21 2015-05-27 联创汽车电子有限公司 Multichip application burning method of vehicle-mounted controller
CN105700906A (en) * 2014-11-29 2016-06-22 海思光电子有限公司 Software upgrading method of optical module, and relevant equipment and system
CN104407902A (en) * 2014-12-12 2015-03-11 四川华拓光通信股份有限公司 Remote upgrading method of SFF optical module based on Bootloader
CN104407903A (en) * 2014-12-12 2015-03-11 四川华拓光通信股份有限公司 Remote upgrading method of QSFP optical module based on Bootloader
CN104461638A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based XFP optical module upgrading method
CN104461639A (en) * 2014-12-12 2015-03-25 四川华拓光通信股份有限公司 Bootloader based CSFP optical module upgrading method
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN104407903B (en) * 2014-12-12 2017-12-19 四川华拓光通信股份有限公司 A kind of QSFP optical module remote upgrade methods based on Bootloader
CN106598632A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Firmware upgrading method and apparatus for optical module
CN107102879A (en) * 2017-04-27 2017-08-29 深圳怡化电脑股份有限公司 Information is sent and firmware upgrade method, device, terminal, equipment and storage medium
CN108255510A (en) * 2017-12-22 2018-07-06 芯海科技(深圳)股份有限公司 One kind is based on IAP online upgradings firmware transfer check design method to be upgraded
CN108255510B (en) * 2017-12-22 2021-08-06 芯海科技(深圳)股份有限公司 IAP-based transmission verification design method for online upgrading of firmware to be upgraded
CN108803442A (en) * 2018-07-25 2018-11-13 武汉光迅科技股份有限公司 A kind of optical mode block code download apparatus and method
CN110299941A (en) * 2019-05-23 2019-10-01 广东瑞谷光网通信股份有限公司 The accurate test method of optical module IIC Ready Time, electronic equipment and computer readable storage medium
CN112817607A (en) * 2020-12-31 2021-05-18 广州芯德通信科技股份有限公司 Realization method for accelerating production speed of optical transceiver
CN113641378A (en) * 2021-07-13 2021-11-12 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113641378B (en) * 2021-07-13 2024-01-26 烽火通信科技股份有限公司 Optical module program upgrading method, device, equipment and readable storage medium
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN102722384A (en) On-line upgrading method and upgrading system for optical module firmware
CN106095480B (en) A kind of method and device of optical module firmware upgrading
CN103823664B (en) A kind of design method of binary system unification Boot programs and kernel program
CN105373407A (en) DSP and FPGA online upgrading method for embedded system
CN109358887B (en) On-line upgrading method, device and system for single chip microcomputer program
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN103777972A (en) System based on field-programmable gate array, configuration method and upgrading method
CN109710320B (en) Two-stage driving boot loader starting and guiding method
CN104965725A (en) SD-card based full-automatic firmware programming method for embedded equipment
CN105068860A (en) Linux coal cutter management host system based on ARM
CN110187909B (en) Single-chip microcomputer firmware upgrading method based on android system
CN104407878A (en) On-line upgrading method of C6000 digital signal processor
CN111240753A (en) Loading method of bootstrap program, storage medium and embedded terminal
CN114237676B (en) FPGA logic updating method, device, equipment and readable storage medium
CN101957765A (en) Method, system and equipment for updating equipment firmware
CN104428751A (en) Program data updating method and equipment
CN115408013A (en) Firmware and file automatic programming method of Zynq UltraScale + MPSoC platform
CN112306534A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN109062622A (en) One kind being based on long-range FPGA loading system and method
CN100435099C (en) Method for upgrading program of embedded system
CN110908706A (en) Management method of multi-version software
CN110377303A (en) Method and its equipment based on spare memory area mode upgrade procedure
CN103677941B (en) A kind of method and device for realizing smart card operating system module upgrade
CN201974799U (en) Novel program updating device
CN111966385B (en) Flat panel detector online upgrading method, flat panel detector and upper computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121010