CN106199395A - The method of testing that detection optical module firmware is lost - Google Patents
The method of testing that detection optical module firmware is lost Download PDFInfo
- Publication number
- CN106199395A CN106199395A CN201610571848.9A CN201610571848A CN106199395A CN 106199395 A CN106199395 A CN 106199395A CN 201610571848 A CN201610571848 A CN 201610571848A CN 106199395 A CN106199395 A CN 106199395A
- Authority
- CN
- China
- Prior art keywords
- optical module
- firmware
- power
- lost
- programmable logic
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/317—Testing of digital circuits
- G01R31/3181—Functional testing
- G01R31/3187—Built-in tests
Abstract
A kind of method of testing detecting optical module firmware loss disclosed by the invention, it is desirable to provide a kind of simple in construction, easy to detect, it is possible to avoid because the method for testing that the detection optical module firmware causing optical module to lose efficacy is lost lost by firmware.The technical scheme is that: on test printing board PCB, be provided with the electrical connection stand by lamp of Programmable Logic Device, buzzer and energy supply control module, when detecting optical module to be measured, optical module to be measured is connected electrically between Programmable Logic Device and energy supply control module.The present invention is especially suitable for whether the firmware of development and the test of last shipment stage aborning optical module has the situation of loss.
Description
Technical field
The present invention relates to area of optical telecommunication networks is mainly used in the detection whether firmware of the module of opto-electronic conversion is lost
Method.
Background technology
Along with the optical fiber telecommunications system extensive application in the communication system of power grids, receive and dispatch as optical fiber telecommunications system core devices light
Module has promoted main line optical transmission system to develop to low cost direction.Optical module required in various optical-fiber networks is constantly to complexity
Change, variation and intelligent direction development.Optical module is again optic module (transceiver module).Optical module is one
The photoelectric conversion module being made up of structural members such as opto-electronic device, functional circuit and optical interfaces.Optical signal can be connect by optical fiber
Enter optical module, optical signal can be transferred to the signal of telecommunication.Optical module is mainly used in the transmitting-receiving of optical signal, simultaneously can also be by the signal of telecommunication
Information change into optical signal by optical module, then sent by optical fiber.Along with developing rapidly of optic communication in recent years, light
The requirement of the communication access net optical transceiver module to realizing photoelectricity, electro-optic conversion is more and more higher, and the test of optical transceiver module is also got over
Come the most complicated.Mostly there is the problems such as testing cost is high, testing efficiency is low, test system is loose.
In optical module industry, the most whether the firmware to optical module is lost and is detected, and is all at optical module
Client terminal test or normal use in find that optical module cannot normally work, and I2C bus access optical mode can not be passed through
The slave addresses of block, reads internal information, it is judged that optical module lost efficacy, and then by client feedback to optical module manufacturer, by light
The manufacturer of module carries out maintenance analysis, could find that the firmware of optical module is lost.And said method can not detect in advance
The situations such as firmware loss.Optical module firmware is divided into the a0/a2 table of protocol requirement, comprises monitoring and company-information, and this is basic,
Followed by some regulation parameters of module oneself itself store.Major part optical module is by microprocessor, laser drive circuit, amplitude limit
Amplifying circuit forms.And the most commercially available microprocessor (MCU) is various in style, various, most of Micro-processor MCVs are all
Having defect BUG of self, unessential BUG that depositor can be caused to access, depositor cannot be rewritten, and I2C sequential is abnormal,
Great BUG can cause microprocessor (MCU) I2C to be not responding to, even the situation such as firmware loss.The wherein firmware of microprocessor
Loss situation occurs in the model that current optical module high-volume uses, and repeatedly plugs at optical module or repeats to power on
During, it may appear that the microprocessor firmware of optical module is lost, and firmware loss can directly result in optical module and cannot work, thus lead
Cause the paralysis of corresponding switch, service disconnection, and this phenomenon once occurs, then illustrate that the microprocessor that this optical module uses exists
Functional major defect BUG, should consider carefully during type selecting, need to consider that other schemes are replaced if having used.It is therefore desirable to
Development and producing the stage in enormous quantities, loses test to the firmware of microprocessor and is extremely necessary.
Summary of the invention
The present invention is to provide a kind of simple in construction, easy to detect, it is possible to avoid losing because of firmware causing optical module to lose efficacy
The method of testing that detection optical module firmware is lost.
The technical solution adopted for the present invention to solve the technical problems is, a kind of test side detecting optical module firmware loss
Method, including: detect the test printing board PCB of optical module to be measured, it is characterised in that: set on test printing board PCB
Put the electrical connection stand by lamp of Programmable Logic Device, buzzer and energy supply control module, and compiling in Programmable Logic Device
The embedded computing chip of journey logical device (PLD) arranges optical module firmware and loses test software;When detecting optical module to be measured,
Optical module to be measured is connected electrically between Programmable Logic Device and energy supply control module;Then test is lost at optical module firmware soft
Part arranges power on number of times and each power-on time of repeating of tested optical module, test printing board PCB power on number of times and
Power-on time is arranged by host computer, then powers on optical module, and the optical module firmware in Programmable Logic Device loses test
The firmware condition of software inquiry optical module the most also exists, if firmware is lost, then Programmable Logic Device conducting stand by lamp Chang Liang, opens
Dynamic buzzer warning, simultaneously by tested optical module power-off;If firmware condition is normal, then controls energy supply control module and will not give optical mode
Block is powered, and whether the number of times that judges to power on meets the number of times setting value that powers on, and powers on number of times if meeting setting optical module, then exits
Program;If powering on, number of times is not reaching to setting value, then continue to power on optical module, proceed the cyclic part of this program.
The present invention has the advantages that.
Simple in construction.The hardware components of the present invention uses and electrically connects FPGA electricity on test printing board PCB
The stand by lamp on road, buzzer and energy supply control module, device is few, simple in construction.
Easy to detect.When the present invention detects optical module to be measured, only optical module to be measured is connected electrically in Programmable Logic Device
And between energy supply control module, by number of times and the power-on time of powering on accordingly, detection can be completed.It is especially suitable for development
Whether the firmware of test of last shipment stage optical module aborning has the situation of loss.Therefore, in development, need
When the microprocessor (MCU) of type selecting is carried out reliability testing, can be carried out by this test printing board PCB, carry out many
Secondary upper electrical testing, gets rid of and has the situation that there is firmware loss.And this test printing board PCB can aborning
Last operation is tested, and can expand checking quantity and proving time, observe the batch testing situation of this microprocessor.
Decrease loss of data and improve maintainability.Avoid losing because of firmware causing optical module to lose efficacy.
Accompanying drawing explanation
Fig. 1 is the hardware circuit principle schematic diagram that optical module firmware of the present invention loses test device.
Fig. 2 is that optical module firmware of the present invention loses test software flow schematic diagram.
Detailed description of the invention
Refering to Fig. 1.In embodiment described below, a kind of method of testing detecting optical module firmware loss, including: inspection
Survey the test printing board PCB of optical module to be measured.Test printing board PCB is provided with electrical connection Programmable Logic Device
Stand by lamp, buzzer and energy supply control module, when detecting optical module to be measured, optical module to be measured be connected electrically in FPGA electricity
Between road and energy supply control module.The operation principle of this method of testing is as follows, and Programmable Logic Device controllable power controls mould
Block, the operation that controls to repeat tested optical module to power on/off, power on number of times and power-on time, and can detect tested optical module
Firmware condition, the firmware of tested optical module be detected occur in that loss, Programmable Logic Device make stand by lamp highlighted and
Make buzzer warning.Otherwise, stand by lamp keeps often going out, and buzzer does not pipes.The test printed circuit board that in figure, rectangle frame is
PCB。
Refering to Fig. 2.The Programmable Logic Device working method of test printing board PCB will use following software algorithm real
Existing, first, arrange tested optical module in optical module firmware loses test software repeats power on number of times and each power-on time,
Test printing board PCB power on number of times and power-on time is arranged by host computer, then optical module is powered on, now can compile
Optical module firmware loss test software in journey logic circuit can be inquired about the firmware condition of optical module and the most also exist, if firmware is lost
Lose, then Programmable Logic Device makes stand by lamp Chang Liang, and makes buzzer warning, simultaneously by tested optical module power-off;Gu if
Part state is normal, then controlling energy supply control module will not power to optical module, and whether the number of times that judges to power on meets setting value, if
Meet setting optical module to power on number of times, then quit a program;If powering on, number of times is not reaching to setting value, then continue on optical module
Electricity, proceeds the cyclic part of this program.
The present embodiment to use as a example by the microprocessor SFP optical module as C8051F336, this detection device in engineering
Apply as follows.
Using the SFP optical module of C8051F336, be I2C access interface, C8051F336 is the core core of SFP optical module
Sheet, it is provided that interface is visited for host computer, and this processor under normal operating conditions, can be visited by I2C bus by host computer
Asking optical module microprocessor, the slave addresses of this microprocessor is 0xA0 and 0xA2, if the firmware of this microprocessor is lost, that
Slave addresses 0xA0 and 0xA2 is can not find when host computer is by this microprocessor of I2C bus access.Will be by light-metering
Module is inserted test printing board PCB and is carried out firmware when losing test, first uses host computer to arrange on PC and powers on time
Number and power-on time, the optical module firmware of the Programmable Logic Device on this test printing board PCB loses test software control
Optical module is powered on by energy supply control module processed, and then the optical module firmware loss test software of Programmable Logic Device can lead to
Crossing slave addresses 0xA0 and the 0xA2 of I2C inquiry optical module, if can not find slave addresses, then triggering is accused by Programmable Logic Device
Warning lamp is highlighted, and triggers buzzer warning, then it represents that the firmware of this optical module has been lost;If the light of Programmable Logic Device
Module firmware loses test software can find optical module slave addresses, then Programmable Logic Device can control energy supply control module and stops
Only power to optical module, and the number of times that judges to power on has reached setting value the most, if being not reaching to, the most again gives on tested optical module
Electricity, rejudges optical module firmware and the most loses;If reaching the number of times that powers on set, then quitting a program, test terminates.
Claims (5)
1. detect the method for testing that optical module firmware is lost, including: detect the test printed circuit board of optical module to be measured
PCB, it is characterised in that: test printing board PCB on arrange electrical connection the stand by lamp of Programmable Logic Device, buzzer and
Energy supply control module, and optical mode is set in the embedded computing chip of the Programmable logic design of Programmable Logic Device
Test software lost by block firmware;When detecting optical module to be measured, optical module to be measured is connected electrically in Programmable Logic Device and power supply control
Between molding block;The number of times and when every time powering on of repeating to power on of tested optical module is set in optical module firmware loses test software
Between, test printing board PCB power on number of times and power-on time is arranged by host computer, then optical module is powered on, can compile
Optical module firmware in journey logic circuit is lost the firmware condition of test software inquiry optical module and is the most also existed, if firmware is lost,
Then Programmable Logic Device conducting stand by lamp Chang Liang, starts buzzer warning, simultaneously by tested optical module power-off;If firmware condition
Normally, then controlling energy supply control module will not power to optical module, and judge the most satisfied number of times setting value that powers on of number of times that powers on,
If meeting setting optical module to power on number of times, then quit a program;If powering on, number of times is not reaching to setting value, then continue optical module
Power on, proceed the cyclic part of this program.
2. the method for testing that detection optical module firmware as claimed in claim 1 is lost, it is characterised in that: Programmable Logic Device
In optical module firmware lose test software and control energy supply control module, and control tested optical module repeat the behaviour that powers on/off
Make, power on number of times and power-on time, detects the firmware condition of tested optical module, and the firmware of tested optical module is detected and occurs in that
Losing, stand by lamp is highlighted and buzzer warning in Programmable Logic Device conducting, and otherwise, stand by lamp keeps often going out, and buzzer does not rings
Cry.
3. the method for testing that detection optical module firmware as claimed in claim 1 is lost, it is characterised in that: normal duty
Under, host computer passes through I2C bus access optical module microprocessor, inquires about optical module slave addresses 0xA0, if microprocessor
Firmware is lost, and then can not find optical module slave addresses 0xA0 when host computer is by this microprocessor of I2C bus access.
4. the method for testing that detection optical module firmware as claimed in claim 1 is lost, it is characterised in that: by tested optical module
Insert test printing board PCB carry out firmware lose test time, first on PC use host computer arrange power on number of times and
Power-on time, Programmable Logic Device on this test printing board PCB controls on optical module carries out by energy supply control module
Electricity, then Programmable Logic Device is by slave addresses 0xA0 of I2C inquiry optical module, if can not find slave addresses, then can compile
It is highlighted that journey logic circuit will trigger stand by lamp, and trigger buzzer warning, then it represents that the firmware of this optical module has been lost.
5. the method for testing that detection optical module firmware as claimed in claim 1 is lost, it is characterised in that: if FPGA
Circuit finds optical module slave addresses, then control energy supply control module and stop powering to optical module, and whether judges to power on number of times
Reach setting value, if being not reaching to, having powered on the most again to tested optical module, rejudging optical module firmware and the most lose;
If reaching the number of times that powers on set, then quitting a program, test terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610571848.9A CN106199395A (en) | 2016-07-20 | 2016-07-20 | The method of testing that detection optical module firmware is lost |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610571848.9A CN106199395A (en) | 2016-07-20 | 2016-07-20 | The method of testing that detection optical module firmware is lost |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106199395A true CN106199395A (en) | 2016-12-07 |
Family
ID=57493671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610571848.9A Withdrawn CN106199395A (en) | 2016-07-20 | 2016-07-20 | The method of testing that detection optical module firmware is lost |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106199395A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112636820A (en) * | 2020-11-19 | 2021-04-09 | 苏州浪潮智能科技有限公司 | Optical module stability testing device and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031890A (en) * | 2004-09-30 | 2007-09-05 | 英特尔公司 | Self-monitoring and updating of firmware over a network |
CN102857358A (en) * | 2011-06-29 | 2013-01-02 | 环旭电子股份有限公司 | Customer premise equipment capable of repairing firmware and firmware repairing method of customer premise equipment |
CN103731301A (en) * | 2013-12-06 | 2014-04-16 | 南京智达康无线通信科技股份有限公司 | Dual backup achieving method of remote network system |
CN104536854A (en) * | 2014-11-29 | 2015-04-22 | 江门市未来之星网络科技有限公司 | Seagate hard disk firmware fault deep detection device and detection method thereof |
CN104750574A (en) * | 2015-03-03 | 2015-07-01 | 普联技术有限公司 | Firmware recovery method and device of network equipment |
-
2016
- 2016-07-20 CN CN201610571848.9A patent/CN106199395A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101031890A (en) * | 2004-09-30 | 2007-09-05 | 英特尔公司 | Self-monitoring and updating of firmware over a network |
CN102857358A (en) * | 2011-06-29 | 2013-01-02 | 环旭电子股份有限公司 | Customer premise equipment capable of repairing firmware and firmware repairing method of customer premise equipment |
CN103731301A (en) * | 2013-12-06 | 2014-04-16 | 南京智达康无线通信科技股份有限公司 | Dual backup achieving method of remote network system |
CN104536854A (en) * | 2014-11-29 | 2015-04-22 | 江门市未来之星网络科技有限公司 | Seagate hard disk firmware fault deep detection device and detection method thereof |
CN104750574A (en) * | 2015-03-03 | 2015-07-01 | 普联技术有限公司 | Firmware recovery method and device of network equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112636820A (en) * | 2020-11-19 | 2021-04-09 | 苏州浪潮智能科技有限公司 | Optical module stability testing device and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569118B (en) | A kind of chip short-circuit failure detection system and method | |
CN104811224A (en) | Test system for power line carrier communication module | |
CN102928690B (en) | For the method for detecting abnormality of electron device | |
CN101793944A (en) | Fault simulation system used for developing, marking and testing battery management system | |
CN103676939A (en) | Automatic test system based on OSEK direct network management mechanism | |
CN110501998B (en) | BMS hardware in-loop test system and test method | |
CN104375908A (en) | Method and equipment for detecting electric leakage of server | |
JP2019054423A (en) | Light feeding system | |
CN111831553B (en) | Testing system and testing method for multifunctional integrated automatic simulation test | |
CN205809244U (en) | The test device that detection optical module firmware is lost | |
CN104270203A (en) | SFF double-light-emitting module with DDM function and optical communication system | |
CN106199395A (en) | The method of testing that detection optical module firmware is lost | |
CN109597389A (en) | A kind of test macro of embedded control system | |
CN111122994B (en) | Man-machine interaction testing device for simulation circuit breaker | |
CN111157873A (en) | Intelligent PCBA program downloading and PCBA automatic testing system applied to industrial production | |
CN110245042A (en) | A kind of laptop shipment mode capabilities automatic test approach and system | |
CN109888923A (en) | A kind of simulation detection system of automation of transformation substations equipment | |
CN105869327A (en) | Optical fiber vibration detection system and invasion detection method thereof | |
CN102436413A (en) | Debugging system and debugging method of board power supply | |
CN212518989U (en) | Optical fiber pilot channel detection device based on ZYNQ platform | |
CN205103337U (en) | Opto -coupler test circuit board | |
CN104142472A (en) | Intelligent high-voltage switch interlocking logic testing method supporting IEC61850 stipulations | |
CN110733037B (en) | Signal processing method and device, storage medium and processor | |
CN207835451U (en) | A kind of optical module automatic test device | |
CN106941380A (en) | Light path control equipment and ONT test systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161207 |