CN109787682A - The automatic adjustment method of optical module, device and computer-readable medium - Google Patents

The automatic adjustment method of optical module, device and computer-readable medium Download PDF

Info

Publication number
CN109787682A
CN109787682A CN201910016032.3A CN201910016032A CN109787682A CN 109787682 A CN109787682 A CN 109787682A CN 201910016032 A CN201910016032 A CN 201910016032A CN 109787682 A CN109787682 A CN 109787682A
Authority
CN
China
Prior art keywords
optical module
tested
master control
parameter
tested optical
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
CN201910016032.3A
Other languages
Chinese (zh)
Other versions
CN109787682B (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.)
SHENZHEN APAT OPTOELECTRONICS COMPONENTS CO Ltd
Original Assignee
SHENZHEN APAT OPTOELECTRONICS COMPONENTS 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 APAT OPTOELECTRONICS COMPONENTS CO Ltd filed Critical SHENZHEN APAT OPTOELECTRONICS COMPONENTS CO Ltd
Priority to CN201910016032.3A priority Critical patent/CN109787682B/en
Publication of CN109787682A publication Critical patent/CN109787682A/en
Application granted granted Critical
Publication of CN109787682B publication Critical patent/CN109787682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Recording Or Reproduction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatic adjustment methods of optical module, comprising: master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;After master control PC and tested optical module successful connection, the parameter in tested optical module is read;Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expression;When the parameter in tested optical module meets regular expression, tested optical module is debugged.Furthermore the present invention also provides a kind of optical module automatic debugging devices.Furthermore the present invention also provides a kind of computer-readable mediums.It is fast to realize debugging optical module debugging speed consumption, it is time-consuming short, improve working efficiency.

Description

The automatic adjustment method of optical module, device and computer-readable medium
Technical field
The present invention relates to field of electronic devices more particularly to a kind of automatic adjustment method of optical module, device and computer can Read medium.
Background technique
With the continuous development of technology, user demand is more and more, and optical module also in continuous evolutionary development, needs to debug Project is more and more, and adjustment method becomes increasingly complex, and also more and more, bottom more complicatedization is changed in basic agreement, special It is other, it there are also many hidden conditionals, requires to excavate in debugging, carries out element task for automation debugging.But manufacturer Debugging software, can be only done most basic function, can not be debugged and intuitively be shown debugging mode automatically, debugging when need Manually leaf through the producer document and have access to the configuration file of tested optical module with understand the tested optical module commissioning requirements and Debug-item, time-consuming for the mode debugging speed of this debugging optical module, low efficiency.
Summary of the invention
The main purpose of the present invention is to provide a kind of automatic adjustment method of optical module, device and computer-readable medium, The technical issues of aiming to solve the problem that existing debugging optical module debugging speed time-consuming, low efficiency.
To achieve the above object, the present invention provides a kind of automatic adjustment method of optical module and includes:
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;
After master control PC and tested optical module successful connection, the parameter in tested optical module is read;
Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expressions Formula;
When the parameter in tested optical module meets regular expression, tested optical module is debugged.
Preferably, when the parameter when in tested optical module meets regular expression, tested optical module is debugged The step of include:
According to the access limit in standard optical module applicable file, into debugging mode;
After master control PC enters debugging mode, the parameter in tested optical module read described in modification obtains monitoring ginseng Numerical value;
The monitoring parameter value that will be obtained, feeds back to master control PC.
Preferably, described to obtain monitoring parameter value, feed back to master control PC step includes: later
Based on standard optical module applicable file, whether the monitoring parameter value that judgement feeds back to master control PC complies with standard optical mode block file In parameter threshold range;
If so, carrying out verification calculating;
If it is not, then carrying out warning prompt.
Preferably, if the monitoring parameter value for being uploaded to master control PC meets parameter threshold range, verification calculating is carried out Step includes:
According to the verification rule in standard optical module applicable file, judge whether the monitoring parameter value passes through verification and calculate;
If so, according to the read-write rule in standard optical module applicable file optical module will be corresponded in standard optical module applicable file Basic adjustment amount and the monitoring parameter value are written together in tested optical module.
If it is not, then carrying out alarm prompt, and tested light is corresponded in standard optical module applicable file to not meeting in tested optical module The value of module is resetted.
Preferably, whether the parameter based in the tested optical module read judges the parameter being tested in optical module Meeting regular expression includes:
Parse the parameter of tested optical module;
Parameter in the tested optical module being resolved to is matched with the regular expression in standard optical module applicable file, is sentenced Whether the parameter in disconnected tested optical module meets regular expression:
If so, the debugging instruction in standard optical module applicable file is called to debug tested optical module;
If it is not, the debugging instruction in plug-in extended dynamic library is then called to debug tested optical module.
Furthermore the present invention also provides a kind of optical module automatic debugging devices, and the optical module automatic debugging device includes: to deposit Reservoir, processor and it is stored in the optical module automatic debugger that can be run on the memory and on the processor, institute It states and realizes that following steps include: when optical module automatic debugger is executed by the processor
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;
After master control PC and tested optical module successful connection, the parameter in tested optical module is read;
Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expressions Formula;
When the parameter in tested optical module meets regular expression, tested optical module is debugged.
Preferably, realize that following steps include: when the optical module automatic debugger is executed by the processor
According to the access limit in standard optical module applicable file, into debugging mode;
After master control PC enters debugging mode, the parameter in tested optical module read described in modification obtains monitoring ginseng Numerical value;
The monitoring parameter value that will be obtained, feeds back to master control PC.
Preferably, realize that following steps include: when the optical module automatic debugger is executed by the processor
Based on standard optical module applicable file, whether the monitoring parameter value that judgement feeds back to master control PC complies with standard optical mode block file In parameter threshold range;
If so, carrying out verification calculating;
If it is not, then carrying out warning prompt.
Preferably, realize that following steps include: when the optical module automatic debugger is executed by the processor
According to the verification rule in standard optical module applicable file, judge whether the monitoring parameter value passes through verification and calculate;
If so, according to the read-write rule in standard optical module applicable file optical module will be corresponded in standard optical module applicable file Basic adjustment amount and the monitoring parameter value are written together in tested optical module.
If it is not, then carrying out alarm prompt, and tested light is corresponded in standard optical module applicable file to not meeting in tested optical module The value of module is resetted.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The automatic adjustment method program of optical module is stored on storage medium, the automatic adjustment method program of optical module is executed by processor Shi Shixian among the above described in any item optical modules automatic adjustment method the step of.
The embodiment of the present invention propose a kind of automatic adjustment method of optical module include:
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;It is receiving After the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;In master control PC and tested optical mode After block successful connection, the parameter in tested optical module is read;Based on the parameter in the tested optical module read, tested light is judged Whether the parameter in module meets regular expression;When the parameter in tested optical module meets regular expression, to tested light Module is debugged.It is fast to realize debugging optical module debugging speed consumption, it is time-consuming short, improve working efficiency.
Detailed description of the invention
Fig. 1 is the automatic adjustment method flow diagram of optical module that the embodiment of the present invention is related to;
When Fig. 2 is that the parameter of the present invention when in tested optical module meets regular expression, tested optical module is carried out The flow diagram of debugging;
Fig. 3 is the flow diagram of the present invention that will be obtained monitoring parameter value, and feed back to after master control PC step;
If Fig. 4 is that the monitoring parameter value of the present invention for being uploaded to master control PC meets parameter threshold range, verified The flow diagram of calculating.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the automatic adjustment method flow diagram of optical module that the embodiment of the present invention is related to, this Invention first embodiment proposes that a kind of automatic adjustment method of optical module includes:
Step S10, master control PC create standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
In the present embodiment, the project that all tested optical module debugging need to monitor is recorded in standard optical module applicable file, with And the parameter information under the monitoring project.All information in standard optical module applicable file are remembered in the table with information point mode Record.
Specifically: optical module create in production and in its EEPROM storage comprising optical module all parameter informations and The configuration file of producer's specification (this is Excel, and general different manufacturer is provided with template).Producer's specification includes: monitoring Project, agreement, the threshold requirement of parameter information, access limit, read-write rule.Monitoring project is not limited to routine monitoring project (temperature Spend Temp, voltage VCC, transmitting bias current Tx Bias, transmitting optical power Tx Power, received optical power Rx Power, temperature Look-up table LUTTemp), also according to the debugging customized monitoring item of demand (customized monitoring item is unconventional monitoring project). Parameter information includes: conventional parameter information, unconventional parameter information.Conventional parameter information includes different monitoring projects Basic adjustment amount, monitoring parameter etc.;Unconventional monitoring project and unconventional parameter information and other information separately store In plug-in extended dynamic library.
Step S20, after receiving the instruction that master control PC is connect with tested optical module, master control PC and tested optical module are carried out Connection;
In the present embodiment, based on creation in master control PC comprising referring in master control PC under the file condition of all optical modules The project that all tested optical module debugging of the typing that succeeded need to monitor, master control PC are tested through channel selecting by test daughter board Optical module is connect with master control PC.
Step S30 reads the parameter in tested optical module after master control PC and tested optical module successful connection;
In the present embodiment, master control PC is tested optical module through channel selecting by test daughter board and connect with master control PC, reads All parameter informations in tested optical module.
Step S40 judges whether the parameter in tested optical module meets based on the parameter in the tested optical module read Regular expression;
In the present embodiment, master control PC will do it parsing after reading the parameter information for being tested optical module.
Information after parsing can be matched one by one with all regular expressions, be belonged to obtaining the tested optical module Which producer, its parameter information format whether meet the call format of the producer, and parse the tested optical module need into Row is which monitoring project.Because the agreement of each producer is different, the tested optical module of different manufacturers is possible, and there are many format, master control PC In preset a variety of regular expressions, match one by one, judge respectively which format be match which regular expression.It is different just Then expression formula is the agreement of corresponding different suppliers.Judge whether the record of the information point meets respectively by regular expression The specification requirement of corresponding manufacturer regenerates visual code, in master for meeting the optical module parameter information of regular expression Control PC visualization interface shows the parameter information of tested optical module.
Step S50 debugs tested optical module when the parameter in tested optical module meets regular expression.
In the present embodiment, after master control PC parses the monitoring project that tested optical module needs to carry out, this can be tested light Module is connected into corresponding test device or test equipment, then can by visualization interface raise integral basis plinth adjustment amount come Basic adjustment amount such as bias, mod, apc can be changed in the optical module monitoring value for changing to gene basis adjustment amount and changing at this time, Apd, los etc. influence the process and as a result, i.e. dragging sliding block or defeated in the display interface of emitting performance and receptivity test Enter value and change basic adjustment amount, the process and result of emitting performance and receptivity test can be influenced.
It in the present embodiment, include: to receive creation comprising all standards by a kind of automatic adjustment method of optical module After optical module file instruction, master control PC creation includes all standard optical module applicable files;Master control PC is attached with tested optical module; Master control PC reads the parameter in tested optical module;The parameter in tested optical module is read based on master control PC, determines tested optical module In parameter meet regular expression;Meet regular expression according to the parameter in tested optical module, master control PC is to tested optical mode Block is debugged.It is fast to realize debugging optical module debugging speed consumption, it is time-consuming short, improve working efficiency.Realize debugging optical module Debugging speed is fast, high-efficient.
The second embodiment of the present invention is proposed based on the first embodiment of the present invention, and referring to figure 2., Fig. 2 is base of the present invention The parameter in tested optical module is read in master control PC, master control PC calls master control PC creation comprising right in all standard optical module applicable files The flow diagram for answering the debugging instruction of the specification requirement of manufacturer to be debugged, above-mentioned steps S50 include:
Step S51 includes the access limit in all standard optical module applicable files according to creation, and request master control PC enters debugging Mode;
In the present embodiment, master control PC is called in all standard optical module applicable files being stored in master control PC and is corresponded to manufacturer The parameter information of specification requirement being adapted to tested optical module, and according to the access limit in these parameter informations, request master control PC enters debugging mode, executes debugging.
Step S52, after master control PC enters debugging mode, the parameter in tested optical module read described in modification is obtained To monitoring parameter value;
In the present embodiment, after master control PC enters debugging mode, master control PC calls the standard text being stored in master control PC The basic data information of the correspondence optical module of the specification requirement of manufacturer is corresponded in part, and according to the standard text being stored in master control PC The debugging formula that optical module is corresponded in part debug to the information extracted in tested optical module, obtains optical module Monitoring value.
Step S53, the monitoring parameter value that will be obtained, feeds back to master control PC.
In the present embodiment, by the way that the optical module monitoring value after debugging is fed back to master control PC, master control PC supervises optical module Corresponding address location in the memory block table of the EEPROM of tested optical module is written in control value.
It should be noted that including the parameter letter of conventional monitoring project and routine in the debugging instruction that master control PC is issued Breath;In debugging process, tested optical module is debugged according to the parameter information of conventional monitoring project and routine;The data of debugging Daughter board acquires after tested, and master control PC is uniformly uploaded by testing backboard, and master control PC completes basic debugging function.
In the present embodiment, by including the access limit in all standard optical module applicable files according to creation in master control PC, Request master control PC enters debugging mode;The parameter in tested optical module is read based on the master control PC;Boundary is visualized in master control PC The master control PC is modified on face and reads the parameter being tested in optical module, obtains monitoring parameter value;Monitoring parameter value will be obtained, will be fed back To master control PC.Realizing master control PC can independently carry out carrying out the parameter of tested optical module from main regulation, and monitoring parameter Value can intuitively be shown on master control PC visualization interface.
Second embodiment according to the present invention proposes the third embodiment of the present invention, and referring to figure 3., Fig. 3 is institute of the present invention Monitoring parameter value will be obtained by stating, and feed back to the flow diagram after master control PC step, after above-mentioned steps S53 further include:
Step S531, is based on standard optical module applicable file, and whether the monitoring parameter value that judgement feeds back to master control PC complies with standard Parameter threshold range in optical mode block file;
In the present embodiment, master control PC calls the parameter threshold range being stored in master control PC and new monitoring parameter to carry out It compares, determines whether new monitoring parameter meets master control PC creation and include the parameter threshold model in all standard optical module applicable files It encloses.
Step S532, if so, carrying out verification calculating;
In the present embodiment, for feeding back to the new monitoring parameter of master control PC, meet the correspondence of the typing in master control PC Parameter threshold range in the optical module of producer's specification, master control PC are then invoked at the light of the correspondence producer specification of typing in master control PC Checking algorithm in module verify to the new monitoring parameter for feeding back to master control PC.
Step S533, if it is not, then carrying out warning prompt.
In the present embodiment, for feeding back to the new monitoring parameter of master control PC, pair of the typing in master control PC is not met The parameter threshold range in the optical module of producer's specification is answered, master control PC gives a warning the new monitoring parameter for feeding back to master control PC Prompt and be written with red font mark corresponding address location in the memory block table of the EEPROM of tested optical module.
In the present embodiment, by that will obtain monitoring parameter value, whether the monitoring parameter value that judgement is uploaded to master control PC is accorded with It closes, master control PC creation includes the parameter threshold range in all standard optical module applicable files;If feeding back to the new monitoring of master control PC Parameter meets the parameter threshold range, then carries out verification calculating;It does not meet parameter threshold range and carries out warning prompt.It realizes For be tested optical module belong to master control PC can from main regulation can from main regulation, can not then being reminded from main regulation, Debugging speed is turned up.
Third embodiment according to the present invention proposes the fourth embodiment of the present invention, and referring to figure 4., Fig. 4 is institute of the present invention Meet parameter threshold range if stating and being uploaded to the monitoring parameter value of master control PC, carries out the flow diagram of verification calculating, it is above-mentioned Include after step S531;
Step S5311 judges whether the monitoring parameter value passes through school according to the verification rule in standard optical module applicable file Test calculating;
Step S5312, if so, according to the read-write rule in standard optical module applicable file, it will be right in standard optical module applicable file Answer optical module basic adjustment amount and the monitoring parameter value, be written in tested optical module together;
In the present embodiment, for optical module is corresponded in standard optical module applicable file basic adjustment amount and monitoring parameter together It is written to the corresponding address position in the memory block table of the EEPROM of tested optical module.
Step S5313 then carries out alarm prompt, and corresponds to quilt to not meeting in standard optical module applicable file in tested optical module The value for surveying optical module is resetted.
Based on first embodiment of the invention, fifth embodiment of the invention is proposed, after above-mentioned steps S40 further include:
Step S401 parses the parameter of tested optical module;
In the present embodiment, master control PC first parses the parameter of tested optical module, and by regular expression, primarily determines Whether the information point in the optical module configuration file is correct, for each information point situation, matches regular expression one by one;Because each The agreement of producer is different, and the optical modules to be measured of different manufacturers may be there are many format, preset a variety of regular expressions in master control PC Formula matches one by one, judges which format is which regular expression matched respectively.Different regular expressions is corresponding different confessions Answer the agreement of quotient.Judge whether the record of the information point meets the specification requirement of corresponding manufacturer respectively by regular expression.
Step S402, by the tested optical module being resolved to parameter and standard optical module applicable file in regular expression into Row matching, judges whether the parameter in tested optical module meets regular expression;
Step S403, if so, the debugging instruction in standard optical module applicable file is called to debug tested optical module.
In the present embodiment, for meeting the optical module parameter of regular expression, visual code is regenerated, visual Change the parameter information of interface display optical module.
Step S404, if it is not, the debugging instruction in plug-in extended dynamic library is then called to debug tested optical module.
In the present embodiment, it is not to belong to standard optical module applicable for detected optical module, then plug-in extension can be called dynamic Debugging instruction in state library debugs tested optical module, and plug-in extended dynamic library can create in master control PC in advance, It can be the non-standard optical module on the network being attached with master control PC.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with optical module automatic debugger, following behaviour is realized when the automatic adjustment method program of optical module is executed by processor Make:
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;
After master control PC and tested optical module successful connection, the parameter in tested optical module is read;
Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expressions Formula;
When the parameter in tested optical module meets regular expression, tested optical module is debugged.
Further, realize that following steps include: when the optical module automatic debugger is executed by the processor
According to the access limit in standard optical module applicable file, into debugging mode;
After master control PC enters debugging mode, the parameter in tested optical module read described in modification obtains monitoring ginseng Numerical value;
The monitoring parameter value that will be obtained, feeds back to master control PC.
Further, realize that following steps include: when the optical module automatic debugger is executed by the processor
Based on standard optical module applicable file, whether the monitoring parameter value that judgement feeds back to master control PC complies with standard optical mode block file In parameter threshold range;
If so, carrying out verification calculating;
If it is not, then carrying out warning prompt.
Further, realize that following steps include: when the optical module automatic debugger is executed by the processor
According to the verification rule in standard optical module applicable file, judge whether the monitoring parameter value passes through verification and calculate;
If so, according to the read-write rule in standard optical module applicable file optical module will be corresponded in standard optical module applicable file Basic adjustment amount and the monitoring parameter value are written together in tested optical module.
If it is not, then carrying out alarm prompt, and tested light is corresponded in standard optical module applicable file to not meeting in tested optical module The value of module is resetted.
Further, realize that following steps include: when the optical module automatic debugger is executed by the processor
Parse the parameter of tested optical module;
Parameter in the tested optical module being resolved to is matched with the regular expression in standard optical module applicable file, is sentenced Whether the parameter in disconnected tested optical module meets regular expression:
If so, the debugging instruction in standard optical module applicable file is called to debug tested optical module;
If it is not, the debugging instruction in plug-in extended dynamic library is then called to debug tested optical module.
Based on above-mentioned purpose, the embodiment of the present invention proposes a kind of computer program product, the computer program product packet The calculation procedure being stored on computer readable storage medium is included, which includes instruction, when the instruction is by computer When execution, make the computer execute in above-mentioned any means embodiment based on vehicle air conditioning battery thermal management application method and reality In existing above-mentioned any device/system embodiment based on vehicle air conditioning battery thermal management use device/system.The computer journey It is identical or similar as device/system embodiment to can achieve corresponding aforementioned any means for the embodiment of sequence product Effect.
Finally, it should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method Or part process, related hardware can be instructed to complete by computer program, the program can be stored in a computer In read/write memory medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, described Storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..The embodiment of the computer program can achieve corresponding aforementioned The identical or similar effect of embodiment of the method for anticipating.
In addition, it should be appreciated that computer readable storage medium (for example, memory) as described herein can be it is volatile Property memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As example And not restrictive, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable to son ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with more Kind form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly Rambus RAM (DRRAM). The storage equipment of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application To the design constraint of whole system.Those skilled in the art can realize described in various ways for every kind of concrete application Function, but this realization decision should not be interpreted as causing a departure from range disclosed by the embodiments of the present invention.
Various illustrative logical blocks, module and circuit, which can use, in conjunction with described in disclosure herein is designed to The following component of function described here is executed to realize or execute: general processor, digital signal processor (DSP), dedicated collection At circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, divide Any combination of vertical hardware component or these components.General processor can be microprocessor, but alternatively, processing Device can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as calculating equipment Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP and/or any Other this configurations.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storage Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its In the storage medium of its form.Illustrative storage medium is coupled to processor, enables a processor to from the storage medium Information is written to the storage medium in middle reading information.In an alternative, the storage medium can be with processor collection At together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.It is replaced at one In scheme, it is resident in the user terminal that pocessor and storage media can be used as discrete assembly.
In one or more exemplary designs, the function can be real in hardware, software, firmware or any combination thereof It is existing.If realized in software, can be stored in using the function as one or more instruction or code computer-readable It is transmitted on medium or by computer-readable medium.Computer-readable medium includes computer storage media and communication media, The communication media includes any medium for helping for computer program to be transmitted to another position from a position.Storage medium It can be any usable medium that can be accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer Readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic Property storage equipment, or can be used for carry or storage form be instruct or data structure required program code and can Any other medium accessed by general or specialized computer or general or specialized processor.In addition, any connection is ok It is properly termed as computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or such as wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources, Then above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or such as wireless technology of infrared ray, radio and microwave are included in The definition of medium.As used herein, disk and CD include compact disk (CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.On The combination for stating content should also be as being included in the range of computer-readable medium.
It is exemplary embodiment disclosed by the invention above, it should be noted that in the sheet limited without departing substantially from claim Under the premise of inventive embodiments scope of disclosure, it may be many modifications and modify.According to open embodiment described herein The function of claim to a method, step and/or movement be not required to the execution of any particular order.In addition, although the present invention is implemented Element disclosed in example can be described or be required in the form of individual, but be unless explicitly limited odd number, it is understood that be multiple.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is Refer to any and all possible combinations including one or more than one project listed in association.
It is for illustration only that the embodiments of the present invention disclose embodiment sequence number, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of automatic adjustment method of optical module characterized by comprising
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;
After master control PC and tested optical module successful connection, the parameter in tested optical module is read;
Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expression;
When the parameter in tested optical module meets regular expression, tested optical module is debugged.
2. the automatic adjustment method of optical module according to claim 1, which is characterized in that the ginseng when in tested optical module The step of number is when meeting regular expression, debugs to tested optical module include:
According to the access limit in standard optical module applicable file, into debugging mode;
After master control PC enters debugging mode, the parameter in tested optical module read described in modification obtains monitoring parameter value;
The monitoring parameter value that will be obtained, feeds back to master control PC.
3. the automatic adjustment method of optical module according to claim 2, which is characterized in that described to obtain monitoring parameter Value, feed back to master control PC step includes: later
Based on standard optical module applicable file, whether the monitoring parameter value that judgement feeds back to master control PC is complied with standard in optical mode block file Parameter threshold range;
If so, carrying out verification calculating;
If it is not, then carrying out warning prompt.
4. the automatic adjustment method of optical module according to claim 3, which is characterized in that if described be uploaded to master control PC's Monitoring parameter value meets parameter threshold range, then carries out verification calculating step and include:
According to the verification rule in standard optical module applicable file, judge whether the monitoring parameter value passes through verification and calculate;
If so, the basis of optical module will be corresponded in standard optical module applicable file according to the read-write rule in standard optical module applicable file Adjustment amount and the monitoring parameter value are written together in tested optical module;
If it is not, then carrying out alarm prompt, and tested optical module is corresponded in standard optical module applicable file to not meeting in tested optical module Value resetted.
5. the automatic adjustment method of optical module according to claim 1, which is characterized in that described based on the tested light read Parameter in module, judges whether the parameter in tested optical module meets regular expression and include:
Parse the parameter of tested optical module;
Parameter in the tested optical module being resolved to is matched with the regular expression in standard optical module applicable file, judges quilt Whether the parameter surveyed in optical module meets regular expression:
If so, the debugging instruction in standard optical module applicable file is called to debug tested optical module;
If it is not, the debugging instruction in plug-in extended dynamic library is then called to debug tested optical module.
6. a kind of optical module automatic debugging device, which is characterized in that the optical module automatic debugging device includes: memory, place It manages device and is stored in the optical module automatic debugger that can be run on the memory and on the processor, the optical module Automatic debugger realizes following steps when being executed by the processor:
Master control PC creates standard optical module applicable file after the instruction for receiving creation standard optical module applicable file;
After receiving the instruction that master control PC is connect with tested optical module, master control PC is attached with tested optical module;
After master control PC and tested optical module successful connection, the parameter in tested optical module is read;
Based on the parameter in the tested optical module read, judge whether the parameter in tested optical module meets regular expression;
When the parameter in tested optical module meets regular expression, tested optical module is debugged.
7. optical module automatic debugging device according to claim 6, which is characterized in that the optical module automatic debugger Following steps are also realized when being executed by the processor:
According to the access limit in standard optical module applicable file, into debugging mode;
After master control PC enters debugging mode, the parameter in tested optical module read described in modification obtains monitoring parameter value;
The monitoring parameter value that will be obtained, feeds back to master control PC.
8. optical module automatic debugging device according to claim 6, which is characterized in that the optical module debugs journey automatically Sequence also realizes following steps when being executed by the processor:
Based on standard optical module applicable file, whether the monitoring parameter value that judgement feeds back to master control PC is complied with standard in optical mode block file Parameter threshold range;
If so, carrying out verification calculating;
If it is not, then carrying out warning prompt.
9. optical module automatic debugging device according to claim 6, which is characterized in that the optical module debugs journey automatically Sequence also realizes following steps when being executed by the processor:
According to the verification rule in standard optical module applicable file, judge whether the monitoring parameter value passes through verification and calculate;
If so, the basis of optical module will be corresponded in standard optical module applicable file according to the read-write rule in standard optical module applicable file Adjustment amount and the monitoring parameter value are written together in tested optical module;
If it is not, then carrying out alarm prompt, and tested optical module is corresponded in standard optical module applicable file to not meeting in tested optical module Value resetted.
10. a kind of computer readable storage medium, which is characterized in that be stored with optical module on the computer readable storage medium Automatic adjustment method program is realized when the automatic adjustment method program of optical module is executed by processor as in claim 1 to 5 The step of any one optical module automatic adjustment method.
CN201910016032.3A 2019-01-04 2019-01-04 Automatic debugging method and device for optical module and computer readable medium Active CN109787682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910016032.3A CN109787682B (en) 2019-01-04 2019-01-04 Automatic debugging method and device for optical module and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910016032.3A CN109787682B (en) 2019-01-04 2019-01-04 Automatic debugging method and device for optical module and computer readable medium

Publications (2)

Publication Number Publication Date
CN109787682A true CN109787682A (en) 2019-05-21
CN109787682B CN109787682B (en) 2024-05-17

Family

ID=66500035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910016032.3A Active CN109787682B (en) 2019-01-04 2019-01-04 Automatic debugging method and device for optical module and computer readable medium

Country Status (1)

Country Link
CN (1) CN109787682B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113205780A (en) * 2021-04-16 2021-08-03 广州朗国电子科技有限公司 Adaptation method and system for integrated I2C light sensing module of all-in-one machine
CN114050864A (en) * 2021-11-11 2022-02-15 四川天邑康和通信股份有限公司 XGSPON optical module-based rapid debugging method for optical indexes of receiving and transmitting end

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179331A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Automatic debugging method and system of optical module
CN105067930A (en) * 2015-08-15 2015-11-18 深圳市昂盛达电子有限公司 Test method and system of automatic test platform
CN107144779A (en) * 2017-06-29 2017-09-08 珠海全志科技股份有限公司 PMU method of testings, device and system
CN108459964A (en) * 2018-03-06 2018-08-28 平安科技(深圳)有限公司 Test cases selection method, apparatus, equipment and computer readable storage medium
US20180322036A1 (en) * 2017-05-03 2018-11-08 International Business Machines Corporation Software testing and verification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179331A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Automatic debugging method and system of optical module
CN105067930A (en) * 2015-08-15 2015-11-18 深圳市昂盛达电子有限公司 Test method and system of automatic test platform
US20180322036A1 (en) * 2017-05-03 2018-11-08 International Business Machines Corporation Software testing and verification
CN107144779A (en) * 2017-06-29 2017-09-08 珠海全志科技股份有限公司 PMU method of testings, device and system
CN108459964A (en) * 2018-03-06 2018-08-28 平安科技(深圳)有限公司 Test cases selection method, apparatus, equipment and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113205780A (en) * 2021-04-16 2021-08-03 广州朗国电子科技有限公司 Adaptation method and system for integrated I2C light sensing module of all-in-one machine
CN113205780B (en) * 2021-04-16 2022-08-30 广州朗国电子科技股份有限公司 Adaptive method and system for integrated I2C light sensing module of all-in-one machine
CN114050864A (en) * 2021-11-11 2022-02-15 四川天邑康和通信股份有限公司 XGSPON optical module-based rapid debugging method for optical indexes of receiving and transmitting end
CN114050864B (en) * 2021-11-11 2022-11-18 四川天邑康和通信股份有限公司 XGSPON optical module-based rapid debugging method for optical indexes of receiving and transmitting end

Also Published As

Publication number Publication date
CN109787682B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
CN112596972B (en) Test method, device and system of vehicle-mounted equipment and computer equipment
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN109062777B (en) General automatic test system of track traffic signal equipment
CN109254907B (en) Java-based interface test report generation method and system
CN103377105B (en) A kind of serial bus testing method
CN109787682A (en) The automatic adjustment method of optical module, device and computer-readable medium
CN117009243A (en) Chip performance automatic test method, device, computer equipment and storage medium
CN105786695A (en) Data test method and system
CN105446864A (en) Method and device for verifying influence of deletion of cache file and mobile terminal
CN109783482A (en) A kind of data violation monitoring method and device
CN113406477A (en) PCBA test method, system, computer equipment and storage medium
CN115129545A (en) FRU information updating method, system, equipment and readable storage medium
CN111723009A (en) Framework system of python automated testing series products
CN110347565A (en) A kind of exception analysis method and device, electronic equipment of application program
CN111966369B (en) Method for manufacturing and verifying off-line burning mirror image of NAND memory
CN111736815A (en) Test file script modular development tool, system and method
CN111062039A (en) Multi-standard security reference detection method and system, target host and server
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
US8011021B2 (en) Correlation of data of a control and/or data transmission system and of a system model representing it
US20100120416A1 (en) Method for generating a signal train which can be played back on a tester for testing a mobile radio
CN113538725A (en) Hardware product testing method and related equipment
CN114816887A (en) Method, system, equipment and medium for checking topology setting of hard disk backboard of server
KR101548364B1 (en) Method for automatic verification of correctness of api sequences, recording medium and device for performing the method
KR102032180B1 (en) Apparatus for testing information exchange function of digital substation system
CN114756217B (en) Plug-in based script generation system

Legal Events

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