Movatterモバイル変換


[0]ホーム

URL:


CN108803442A - A kind of optical mode block code download apparatus and method - Google Patents

A kind of optical mode block code download apparatus and method
Download PDF

Info

Publication number
CN108803442A
CN108803442ACN201810826747.0ACN201810826747ACN108803442ACN 108803442 ACN108803442 ACN 108803442ACN 201810826747 ACN201810826747 ACN 201810826747ACN 108803442 ACN108803442 ACN 108803442A
Authority
CN
China
Prior art keywords
code
module
optical
microcontroller
place
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
CN201810826747.0A
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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co LtdfiledCriticalAccelink Technologies Co Ltd
Priority to CN201810826747.0ApriorityCriticalpatent/CN108803442A/en
Publication of CN108803442ApublicationCriticalpatent/CN108803442A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention belongs to technical field of photo communication, disclose a kind of optical mode block code download apparatus and method, device includes microcontroller, communication module, control and indicating module, data memory module, power control module, optical module interface, and control and indicating module include mode control switch, reset switch, code indicator, download indicator light;Method includes powering on or resetting microcontroller;Microcontroller reads and judges the level of control and mode control switch in indicating module;If low level, then microcontroller verifies the code in data memory module, if code check is correct, enters and downloads code pattern, by the code transfer in data memory module to all optical modules in place;If high level, then enters upgrade code pattern, update the data the code in memory module.The present invention solves the problems, such as that the hardware cost that optical mode block code is downloaded in the prior art is higher, download efficiency is relatively low.

Description

A kind of optical mode block code download apparatus and method
Technical field
The present invention relates to technical field of photo communication more particularly to a kind of optical mode block code download apparatus and methods.
Background technology
The integrated module of optical transceiver, abbreviation optical module are devices important in optical fiber telecommunications system.Not with fiber optic communicationDisconnected development, the application of optical module are also more and more.Optical mode microcontroller in the block is generally used for realizing communication and control.Produce optical modeIt when block, needs to download code to microcontroller, existing method is to turn JTAG emulators by USB or USB turns I2C downloaders and realizesCode is downloaded, and the method not only needs expensive hardware supported, but also also needing to user has related development experience to deal with USBOperational complexity and exception caused by interface, it is maximum the disadvantage is that can only once download an optical module, efficiency is veryIt is low.And since the shipment amount of optical module is increasing, the code method for down loading that the prior art uses has clearly a need for improving.
Invention content
The embodiment of the present application solves optical mode in the prior art by a kind of optical mode block code download apparatus of offer and methodHardware cost that block code is downloaded is higher, problem that download efficiency is relatively low.
The embodiment of the present application provides a kind of optical mode block code download apparatus, including:Microcontroller, communication module, control and fingerShow module, data memory module, power control module, optical module interface;The control includes that scheme control is opened with indicating moduleIndicator light, code indicator, is downloaded at reset switch in pass;
The microcontroller respectively with the communication module, control and indicating module, the data memory module, describedPower control module, optical module interface connection, the power control module are connect with the optical module interface;
The communication module with computer for connecting, to obtain upgrade code;
The control is with the mode control switch in indicating module for selecting code downloading mode or code upgradeModule, the reset switch are resetted for control single chip computer, and the code indicator is for showing in the data memory moduleCode whether verify correctly, the download indicator light is for showing whether the code for downloading to optical module verifies correctly;
The optical module interface is for connecting optical module;
The power control module is used to control the power or power-down of connected optical module;
The microcontroller is for controlling the download of optical mode block code, code upgrade process.
Preferably, the optical mode block code download apparatus further includes:Power module;The power module respectively with the listPiece machine, the communication module, the control are connect with indicating module, the data memory module, the power control module;InstitutePower module is stated for providing power supply for device.
Preferably, the microcontroller uses ADuC70xxBCPZxxI series monolithics.
On the other hand, using the optical mode block code download apparatus of above-mentioned record, the embodiment of the present application provides a kind of optical moduleCode method for down loading, includes the following steps:
Step S1, power on or reset microcontroller;
Step S2, microcontroller reads and judges the level of control and mode control switch in indicating module;If low level,Then enter step S3;If high level, then S5 is entered step;
Step S3, microcontroller verifies the code in data memory module;If code check is correct, enter stepS4;If code check mistake, enters step S6;
Step S4, complete by the code transfer in data memory module to all optical modules in place into download code patternIt is downloaded at code, enters step S6;
Step S5, into upgrade code pattern, the code in memory module, completion code upgrading, into step are updated the dataRapid S6;
Step S6, terminate.
Preferably, in the step S3, if code check is correct, code indicator shows the first color;If code schoolError checking misses, then code indicator shows the second color.
Preferably, the download code pattern in the step S4 includes the following steps:
Monolithic machine testing and the situation in place for recording optical module;
Microcontroller opens the power supply of all optical modules in place by power control module;
Microcontroller reads the optical mode block code in data memory module, and by optical module code transfer to all optical modes in placeBlock.
Preferably, the optical mode block code method for down loading is further comprising the steps of:
Before the power supply that microcontroller opens all optical modules in place, the download that microcontroller closes all optical modules refers toShow lamp;
After microcontroller is by optical module code transfer to all optical modules in place, microcontroller to all optical modules in place intoLine code verifies.
Preferably, microcontroller includes the following steps all optical modules progress code checks in place:
Step a, microcontroller controls the power supply of optical module in place by power control module, it is ensured that only there are one in placeOptical module powers on;
Step b, microcontroller sends code check order to the optical module in place powered on;
Step c, microcontroller receives and reads code check result;If code check success, the optical module powered on correspond toDownload indicator light show third color;If code check fails, the corresponding download indicator light of optical module powered on shows theFour colors;
Step d, microcontroller judges whether to complete the code check to all optical modules in place;If completing, terminate;If notIt completes, then circulation step a-c, and microcontroller controls on an optical module in place for not carrying out code check also in cycle every timeElectricity verifies the code of optical module in place one by one, until completing the code check to all optical modules in place.
Preferably, the upgrade code pattern in the step S5 includes the following steps:
Communication module is connect with computer, upgrade code is transmitted to microcontroller by computer by communication module;
Microcontroller receives upgrade code, and data memory module is written in upgrade code;
Microcontroller verifies the upgrade code in data memory module.
Preferably, the optical mode block code method for down loading further includes:If upgrade code verification is correct, code indicator is aobviousShow the first color;If upgrade code check errors, code indicator shows the second color.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
In the embodiment of the present application, the optical mode block code download apparatus provided includes microcontroller, communication module, control and fingerShow module, data memory module, power control module, optical module interface, and a kind of optical mode block code is realized using above-mentioned apparatusMethod for down loading, microcontroller reads the level of control and mode control switch in indicating module, when decision level is low level, then singlePiece machine once downloads to the optical mode block code in data memory module in multiple optical modules, after the completion of downloading code, passes through confessionElectric control module control optical module power on and power down, school is carried out by microcontroller one by one to downloading to the code in optical moduleIt tests.It therefore, can be primary to complete to multiple optical modules under conditions of offline using the present invention during producing optical moduleThe download and verification of code.Microcontroller reads the level of control and mode control switch in indicating module, and decision level is high electricityUsually, when the code of as optical module needs update, computer is connected by communication module and obtains upgrade code, and according to privately owned associationUpgrade code is written in data memory module by microcontroller for view, is upgraded to the update of completion code.To sum up, phase of the present inventionFor the prior art, do not need expensive hardware supported, have the advantages that it is lower-cost, and due to can be by optical mode block code oneIt is secondary to download in multiple optical modules, therefore have the advantages that download efficiency is high.
Description of the drawings
It, below will be to needed in embodiment description in order to illustrate more clearly of the technical solution in the present embodimentAttached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is one embodiment of the present of invention, general for this fieldFor logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of structural schematic diagram of optical mode block code download apparatus provided in an embodiment of the present invention;
Fig. 2 is the signal of control and indicating module in a kind of optical mode block code download apparatus provided in an embodiment of the present inventionFigure;
Fig. 3 is a kind of general flow chart of optical mode block code method for down loading provided in an embodiment of the present invention;
Fig. 4 is the flow chart that code pattern is downloaded in a kind of optical mode block code method for down loading provided in an embodiment of the present invention;
Fig. 5 is the flow chart of upgrade code pattern in a kind of optical mode block code method for down loading provided in an embodiment of the present invention.
Specific implementation mode
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upperTechnical solution is stated to be described in detail.
Optical mode block code download apparatus provided by the invention is as shown in Figure 1, include:Microcontroller, communication module, control and fingerShow module, data memory module, power control module, optical module interface;The microcontroller respectively with the communication module, describedControl is connect with indicating module, the data memory module, the power control module, the optical module interface, the power supplyControl module is connect with the optical module interface.
The optical module interface is for connecting optical module;The power control module is for controlling connected optical modulePower or power-down;The optical module interface and the power control module can be multiple, and each power control moduleIt is connect with an optical module interface.
The communication module with computer for connecting, to obtain upgrade code.
For the microcontroller for controlling optical mode block code downloading process, ADuC70xxBCPZxxI can be used in the microcontrollerSeries monolithic, ADuC70xxBCPZxxI series monolithics are American Analog Devices (ADI) production based on ARM7TDMIPrecision analog microcontroller has the function of high speed, high-precision ADC, DAC, has been widely used in optical communication field, and expandOpen up automobile industry, Industry Control and sensor industry.
Wherein, the control and indicating module including mode control switch, reset switch, code as shown in Fig. 2, indicateLamp downloads indicator light.The control is with the mode control switch in indicating module for selecting code downloading mode or generationCode upgraded module, the reset switch are resetted for control single chip computer, and the code indicator is used for display data memory moduleIn code whether verify correctly, the download indicator light is for showing whether the code for downloading to optical module verifies correctly;?In the case of having multiple optical modules, the download indicator light is multiple, and each download indicator light is for showing an optical modeWhether code in the block verifies correctly.Whether the i.e. described code indicator indicates the optical mode block code in the data memory moduleCorrectly, such as correctly it gives a green light, otherwise sends out a warning.The mode control switch is for controlling operating mode, under when low level isCode pattern is carried, is upgrade code pattern when high level.The reset switch is used for controlling the monolithic processor resetting.Work as optical moduleAfter the completion of grafting, this button is resetted, so that it may automatically to start code download.The download indicator light is used to refer to downloadIt is whether correct at rear optical mode code in the block, such as correctly give a green light, otherwise send out a warning.
In addition, device further includes power module;The power module respectively with the microcontroller, the communication module, instituteControl is stated to connect with indicating module, the data memory module, the power control module;The power module is used to be devicePower supply is provided.
Using above-mentioned apparatus, the present invention provides a kind of optical mode block code method for down loading, below to useFor ADuC70xxBCPZxxI series monolithics, method is illustrated.
The present invention provides a kind of main-process stream schematic diagram of optical mode block code method for down loading as shown in figure 3, ought power on or answerAfter the microcontroller of position, the microcontroller reads the level of the mode control switch;When for low level, the microcontroller is firstThe code in the data memory module is verified, code check is correct, the code indicator bright green, and enters code and downloadPattern;Code check is incorrect, and the code indicator shiny red cannot be downloaded into line code.When for high level, into generationCode upgrade mode.
As shown in figure 4, when entering code downloading mode, the microcontroller is first with the pin in place of optical module, detectionAnd record the situation in place of optical module.The microcontroller closes the code indicator of all optical modules, and by described for automatically controlledMolding block opens the power supply of all optical modules in place.Then, the microcontroller is pressed《ADuC70xxBCPZxxI family chipsI2C download protocols》The code in the data memory module is downloaded to all optical modules in place successively frame by frame with I2C busesIn ADuC70xx.Note that the characteristics of according to I2C bus communications, the code of optical module is only primary with sending, all optical modes in placeBlock can receive.This completes the functions of once downloading multiple optical mode block codes.After the completion of code download, in order to protectThe correctness for demonstrate,proving code, will generally verify code.Before verification, the microcontroller passes through the power control moduleThe power supply for opening an optical module in place is used in combination I2C buses to send code check order to optical module, at this moment there was only thisThe optical module powered on can receive check command, and the optical module of other power down cannot receive this order.When waiting for one sectionBetween as after 1S, the microcontroller reads code check result.If result display verifies successfully, the corresponding download of optical moduleIndicator light bright green;Otherwise, shiny red.Similar, the microcontroller verifies the code of optical module in place successively, and lights correspondingDownload indicator light color.In this way, during producing optical module, it can be primary to complete to multiple under conditions of offlineThe code of microcontroller is downloaded and is verified in optical module.And according to the color for downloading indicator light, can very easily it judgeWhether code is downloaded correct.
When the code release of optical module has update, need to upgrade the optical mode block code in the data storage.Such as Fig. 5 institutesShow, when entering code upgrade pattern, needs communication module (communication interface) being connected to computer.Communication interface can be stringMouthful, USB or cable etc..The fresh code of optical module is written the data by the microcontroller and deposited by computer proprietary protocolStore up module.After fresh code (i.e. upgrade code) is sent completely, computer just sends code check order.The microcontroller is connected to orderAfterwards with regard to testing the code in data memory module described in school.If code check success, code indicator bright green, otherwise, azarinColor.In this way, according to the code indicator it may determine that whether fresh code upgrades successfully.
A kind of optical mode block code download apparatus provided in an embodiment of the present invention and method include at least following technique effect:
Can be under conditions of offline, the primary download and verification completed to multiple optical mode block codes, download efficiency is high, andExpensive hardware supported is not needed, also not needing user has related development experience to deal in operation caused by USB interfaceComplexity and exception, code update is easy to operate, according to download indicator light color can very easily judge under codeWhether load is correct, can very easily judge whether the optical mode block code in data memory module verifies according to code indicatorCorrectly, whether fresh code upgrades successfully.
It should be noted last that the above specific implementation mode is merely illustrative of the technical solution of the present invention and unrestricted,Although being described the invention in detail with reference to example, it will be understood by those of ordinary skill in the art that, it can be to the present inventionTechnical solution be modified or replaced equivalently, without departing from the spirit of the technical scheme of the invention and range, should all coverIn the scope of the claims of the present invention.

Claims (10)

CN201810826747.0A2018-07-252018-07-25A kind of optical mode block code download apparatus and methodPendingCN108803442A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810826747.0ACN108803442A (en)2018-07-252018-07-25A kind of optical mode block code download apparatus and method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810826747.0ACN108803442A (en)2018-07-252018-07-25A kind of optical mode block code download apparatus and method

Publications (1)

Publication NumberPublication Date
CN108803442Atrue CN108803442A (en)2018-11-13

Family

ID=64078129

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810826747.0APendingCN108803442A (en)2018-07-252018-07-25A kind of optical mode block code download apparatus and method

Country Status (1)

CountryLink
CN (1)CN108803442A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109802861A (en)*2019-02-122019-05-24泰瑞创通讯(成都)有限公司A kind of method of quick-downloading optical module firmware
CN113672246A (en)*2021-08-272021-11-19广东九联科技股份有限公司Optical module upgrading device, system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101950253A (en)*2010-08-122011-01-19深圳市共进电子有限公司Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
CN102722384A (en)*2012-05-252012-10-10深圳市共进电子股份有限公司On-line upgrading method and upgrading system for optical module firmware
CN105912356A (en)*2016-03-312016-08-31武汉光迅科技股份有限公司Optical module firmware program online upgrade method supporting version fallback
WO2017063577A1 (en)*2015-10-152017-04-20中兴通讯股份有限公司Firmware upgrade method and apparatus for optical module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101950253A (en)*2010-08-122011-01-19深圳市共进电子有限公司Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
CN102722384A (en)*2012-05-252012-10-10深圳市共进电子股份有限公司On-line upgrading method and upgrading system for optical module firmware
WO2017063577A1 (en)*2015-10-152017-04-20中兴通讯股份有限公司Firmware upgrade method and apparatus for optical module
CN105912356A (en)*2016-03-312016-08-31武汉光迅科技股份有限公司Optical module firmware program online upgrade method supporting version fallback

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109802861A (en)*2019-02-122019-05-24泰瑞创通讯(成都)有限公司A kind of method of quick-downloading optical module firmware
CN113672246A (en)*2021-08-272021-11-19广东九联科技股份有限公司Optical module upgrading device, system and method
CN113672246B (en)*2021-08-272024-09-27广东九联科技股份有限公司Optical module upgrading device, system and method

Similar Documents

PublicationPublication DateTitle
CN107885510B (en)Burning tool and burning method capable of simultaneously burning double DSPs
CN106598650A (en)Device and method for online upgrade of FPGA program based on fiber communication
US5371692A (en)Activating circuit for modifying or adding a new program to an electronic device
US6523083B1 (en)System and method for updating flash memory of peripheral device
CN106443421A (en)Automatic clock frequency measurement and calibration system and method
CN111008101B (en) A debugging verification platform and testing method for RISC-V processor system
CN110187909A (en)A kind of single-chip microcontroller firmware upgrade method based on android system
CN108803442A (en)A kind of optical mode block code download apparatus and method
CN103997683A (en)System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof
CN108111336A (en)A kind of Power Line Carrier Communication Module program startup, upgrading and switching method
CN109189434A (en)A kind of online upgrading method of electric energy meter
CN116541032B (en)Data burning method, device, equipment and computer storage medium
CN109901866A (en)Online upgrading method and rotary steering system for multi-module system
CN106227630B (en)Detection system for embedded wireless module
US20230261747A1 (en)Light transmission device, and control method of same
CN100530146C (en)BIOS on-line rewriting method
CN206946466U (en)The upgrading of Intelligent mobile equipment or rebuilt component
CN111414182B (en)SPI-based FPGA remote upgrading method
CN109460248A (en)A kind of user program method for uploading and system based on DSP
CN108418707B (en)Method for upgrading mutual online backup of double CPLDs in communication system and service veneer
CN117076214A (en)Method, system, terminal and medium for detecting dial fool-proof of hard disk backboard of server
CN117347760A (en)Active cable testing device and method suitable for multiple types of active cables
CN117806918A (en)Hard disk lighting device and method
CN116974590A (en)Method for quickly adapting Galaxy kylin operating system to mobile terminal equipment
CN116225846A (en) Test method, device and electronic equipment for hard disk backplane communication interface

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20181113


[8]ページ先頭

©2009-2025 Movatter.jp