CN109639347B - Optical communication module testing method and device and terminal equipment - Google Patents

Optical communication module testing method and device and terminal equipment Download PDF

Info

Publication number
CN109639347B
CN109639347B CN201910054919.1A CN201910054919A CN109639347B CN 109639347 B CN109639347 B CN 109639347B CN 201910054919 A CN201910054919 A CN 201910054919A CN 109639347 B CN109639347 B CN 109639347B
Authority
CN
China
Prior art keywords
test
optical communication
communication module
information
configuration information
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.)
Active
Application number
CN201910054919.1A
Other languages
Chinese (zh)
Other versions
CN109639347A (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.)
Shanghai Lianyun Information Technology Co Ltd
Original Assignee
Shanghai Lianyun Information Technology 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 Shanghai Lianyun Information Technology Co Ltd filed Critical Shanghai Lianyun Information Technology Co Ltd
Priority to CN201910054919.1A priority Critical patent/CN109639347B/en
Publication of CN109639347A publication Critical patent/CN109639347A/en
Application granted granted Critical
Publication of CN109639347B publication Critical patent/CN109639347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/073Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an out-of-service signal
    • H04B10/0731Testing or characterisation of optical devices, e.g. amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides a method and a device for testing an optical communication module and terminal equipment, wherein the method comprises the following steps: acquiring coding information of an optical communication module; acquiring pre-stored optimal test parameters of the optical communication module according to the coding information, and adjusting test parameter configuration information according to the optimal test parameters; acquiring test mode configuration information, and testing an optical communication module according to the test mode configuration information and the test parameter configuration information to obtain first test result information, wherein the first test result information comprises an error rate of the optical communication module; and obtaining a judgment result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate. By the method, the testing efficiency of the optical communication module can be improved.

Description

Optical communication module testing method and device and terminal equipment
Technical Field
The present application belongs to the technical field of optical communication, and in particular, to a method and an apparatus for testing an optical communication module, and a terminal device.
Background
The optical communication module generally comprises an optical module and an electrical module, and the existing optical communication module can be tested only by combining a plurality of instruments such as an error code meter, an oscilloscope, analysis equipment and the like in the production test process.
Because the prior art needs to perform complicated manual operations such as plugging and unplugging among a plurality of instruments, manual parameter adjustment and the like to complete the test, the traditional optical communication module test mode needs to consume a large amount of time cost and labor cost, and the test efficiency is low.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for testing an optical communication module, and a terminal device, so as to solve the problem of low testing efficiency of the optical communication module in the prior art.
A first aspect of an embodiment of the present application provides an optical communication module testing method, including:
acquiring coding information of an optical communication module;
acquiring pre-stored optimal test parameters of the optical communication module according to the coding information, and adjusting test parameter configuration information according to the optimal test parameters;
acquiring test mode configuration information, and testing an optical communication module according to the test mode configuration information and the test parameter configuration information to obtain first test result information, wherein the first test result information comprises an error rate of the optical communication module;
and obtaining a judgment result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate.
A second aspect of the embodiments of the present application provides an optical communication module testing apparatus, including:
the test interfaces are used for being connected with one or more optical communication modules;
a first acquisition unit for acquiring the coding information of the optical communication module;
the testing parameter configuration unit is used for acquiring pre-stored optimal testing parameters of the optical communication module according to the coding information and adjusting testing parameter configuration information according to the optimal testing parameters;
the testing unit is used for obtaining testing mode configuration information and testing the optical communication module according to the testing mode configuration information and the testing parameter configuration information to obtain first testing result information, wherein the first testing result information comprises the error rate of the optical communication module;
and the judging unit is used for obtaining a judging result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the optical communication module testing method mentioned in the first aspect or any possible implementation manner of the first aspect.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the optical communication module testing method mentioned in the first aspect or any possible implementation manner of the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: in the embodiment of the application, because the optimal test parameters of the optical communication module are automatically obtained through the coded information of the optical communication module, and the complicated test parameter configuration is automatically completed, the complicated manual operation is avoided, the time cost and labor cost of the test process of the optical communication module are greatly saved, and the test efficiency of the optical communication module is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating an implementation of a first optical communication module testing method provided in the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a second optical communication module testing method provided in the present application;
fig. 3 is a schematic diagram of an optical communication module testing apparatus provided in the present application;
fig. 4 is a schematic diagram of a terminal device provided in the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a first optical communication module testing method provided in an embodiment of the present application, an execution subject of the optical communication module testing method in the embodiment of the present application is an optical communication module testing apparatus, which is preferably an apparatus including a visual interface, and details are as follows:
in S101, the encoding information of the optical communication module is acquired.
The coded information of the optical communication module is stored in a memory unit, for example an EEPROM memory element of the optical communication module. The encoded information generally includes the manufacturer name, part number, serial number, production date, etc. of the optical communication module, and the type information of the optical communication module, such as the package type, rate, etc. The packaging type comprises SFP, SFP +, QSFP28, SFP, QSFP-DD and the like, and the rate comprises 10Gbit/s, 25Gbit/s, 50Gbit/s, 100Gbit/s, 200Gbit/s, 400Gbit/s and the like.
In S102, pre-stored optimal test parameters of the optical communication module are obtained according to the coding information, and test parameter configuration information is adjusted according to the optimal test parameters.
The optical communication modules of different models have different requirements on the conditions of the optical communication module testing device, that is, the testing parameter configuration requirements of the optical communication module testing device are different, wherein the testing parameters may include testing interface communication protocol mode parameters, sending voltage amplitude parameters of a testing interface sending end, filter setting parameters of the testing interface sending end, receiving equalization parameters of a testing interface receiving end, and the like. For each type of optical communication module, the optical communication module testing device correspondingly stores a group of optimal testing parameters, and can obtain the optimal testing parameters by inquiring a comparison table of the type information and the optimal testing parameters prestored in a database according to the type information of the optical communication module in the coded information, and adjust the testing parameter configuration information of the optical communication testing device according to the optimal testing parameters, so that the optical communication module testing device can provide a testing environment which is most suitable for the type of the optical communication module.
In S103, test mode configuration information is obtained, and an optical communication module test is performed according to the test mode configuration information and the test parameter configuration information to obtain first test result information, where the first test result information includes an error rate of the optical communication module.
The optical communication module test mode in this embodiment includes two types, namely an ethernet traffic test mode and a pseudorandom bit stream test mode, and the test mode configuration information specifies in which test mode the current optical communication module test apparatus is. Under the Ethernet flow test mode, an Ethernet flow generation unit of the optical communication module test device generates an Ethernet message data flow with a full rate, and the Ethernet message data flow is sent to an optical communication module to be tested through a test interface sending end of the optical communication module test device; and under the pseudo-random bit stream mode, a code pattern generating unit of the optical communication module testing device generates a pseudo-random sequence code stream, and the pseudo-random sequence code stream is sent to the optical communication module to be tested through a testing interface sending end of the optical communication testing device. Optionally, the obtaining the test mode configuration information further includes: and receiving a test mode selection instruction and setting test mode configuration information.
And testing the optical communication module according to the current test mode configuration information and the configuration of the test parameters in the step S102. And obtaining first test result information through a preset test duration, wherein the first test result information comprises the bit error rate information of the optical communication module. Specifically, during testing, an ethernet message data stream or a pseudo random sequence code stream generated by the optical communication module testing device is sent to the optical communication module through a sending end of the testing interface, the optical communication module sends the ethernet message data stream or the pseudo random sequence code stream transmitted by the optical communication module back to a receiving end of the optical communication module testing device through a self-loop or butt-joint connection mode, and the optical communication module testing device obtains the error rate of the optical communication module to be tested by comparing the data quantity and the data information content of the originally generated ethernet message data stream (or the pseudo random sequence code) with the received ethernet message data stream (or the pseudo random sequence code) sent back by the optical communication module.
Optionally, before the optical communication module is tested, the method further includes receiving a test duration setting instruction, and setting the test duration.
Optionally, after S103, the method further includes storing the first test result information, the current test time, the coding information of the optical communication module to be tested, and the test duration record in a database, so as to query historical working information of the optical communication module testing apparatus later.
Optionally, the method further includes recording temperature information of a current environment during the test of the optical communication module, where the first test result includes environment temperature information during the test of the optical communication module to be tested, so as to analyze an influence of a temperature change on the test of the optical communication module.
In S104, a determination result is obtained according to the first test result information and expected result information, where the expected result information includes an expected bit error rate.
And comparing the first test result information, such as the tested error rate of the optical communication module to be tested, with the expected result information, such as the expected error rate, and if the tested error rate of the optical communication module to be tested is less than the expected error rate, judging that the optical communication module to be tested is qualified.
Optionally, the whole testing process of the testing method of the optical communication module is integrated into one testing apparatus of the optical communication module.
In the embodiment of the application, because the optimal test parameters of the optical communication module are automatically obtained through the coded information of the optical communication module, the complicated test parameter configuration is automatically completed, and the whole test process is integrated in the optical communication module test device, the complicated manual operation is avoided, the time cost and the labor cost of the test process of the optical communication module are greatly saved, and the test efficiency of the optical communication module is improved.
Example two:
fig. 2 is a schematic flow chart illustrating a second optical communication module testing method provided in the embodiment of the present application, where an execution main body of the optical communication module testing method in the embodiment of the present application is an optical communication module testing apparatus, which is detailed as follows:
in S201, the encoding information of the optical communication module is acquired.
In this embodiment, S201 is the same as S101 in the previous embodiment, and please refer to the related description of S101 in the previous embodiment, which is not repeated herein.
Optionally, before the acquiring the coded information of the optical communication module, the method further includes:
and if the coded information of the optical communication module is detected to be absent, receiving an input instruction and writing the coded information of the optical communication module.
The optical communication module is tested after the coded information is written in the production process. If the coded information of the optical communication module cannot be detected at the beginning of the test, the coded information is not written into the optical communication module, and at the moment, an input instruction is received and the coded information is written into the optical communication module. The encoding information includes the manufacturer name, part number, serial number, production date, etc. of the optical communication module, the type information of the optical communication module, such as package type, rate, etc., and the running program of the optical communication module (i.e., writing a preset driver code segment into the optical communication module so that the optical communication module can perform a desired software function later).
In S202, if it is detected that the optimal test parameter of the optical communication module corresponding to the encoded information does not exist, the test parameter is adjusted, the optimal test parameter of the optical communication module is determined, and the optimal test parameter of the optical communication module is stored.
If the optimal test parameter of the optical communication module corresponding to the coded information is detected to be absent, it indicates that the optimal test parameter corresponding to the model of the optical communication module to be tested is not stored in the database of the optical communication module testing device, and test parameter adjustment is required according to the current optical communication module, so that the optimal test parameter of the optical communication module of the type is determined, and the optimal test parameter is stored in the database. Then, if other optical communication modules with the same type (same rate and packaging type) as the current optical communication module to be tested are inserted into the optical communication module testing device, the optimal testing parameters can be obtained through the coding information of the optical communication module, and the testing parameter configuration of the device is automatically performed.
When the test parameters of the optical communication module to be tested are adjusted, the optical communication module to be tested can be connected in a self-loop mode. The self-loop refers to connecting a transmitting end of the optical communication module with a receiving end thereof. For an optical module in the optical communication module, self-loop connection can be realized through optical fibers; for the electrical module in the optical communication module, the self-loop may be implemented by a cable. The length of the optical fiber or cable used for the self-loop is generally about 1 meter in the test parameter calibration.
Specifically, the adjusting and testing parameters and determining the optimal testing parameters of the optical communication module include the following steps:
a1: and determining the communication protocol mode parameter of the test interface in the optimal test parameter according to the speed information of the optical communication module to be tested in the coding information.
And determining the communication protocol mode parameters of the test interface suitable for the optical communication module according to the rate information in the coding information of the optical communication module to be tested. For example, for an optical communication module with a speed of 10Gbit/s, the communication protocol mode of the test interface is configured as SFI and XFI; for an optical communication module with the speed of 25Gbit/S, the communication protocol mode of a test interface is configured to be any one of 25GAUI, 25GBase-C, 25GBase-CR-S and 25 GBase-CR; for the optical communication module with the speed of 40Gbit/s, the test interface communication protocol mode is configured to be any one of XLAUI, XLPPI, 40GBase-CR4 and XLAUI 2; for the optical communication module with the speed of 50Gbit/s, the communication protocol mode of the test interface is configured to be any one of 50GAUI-1, 50GBase-CR, LAUI-2, 50GAUI-2 and 50GBase-CR 2; for the optical communication module with the speed of 100Gbit/s, the communication protocol mode of the test interface is configured to be any one of 100GAUI-2, 100GBase-CR2, 100GAUI-4 and 100GBase-CR 4; for the optical communication module with the speed of 200Gbit/s, the communication protocol mode of the test interface is configured to be any one of 200GAUI-4 and 200GBase-CR 4; for an optical communication module with the speed of 400Gbit/s, the communication protocol mode of the test interface is configured to be any one of 400GAUI-8 and 40GBase-CR 8.
A2: and automatically adjusting the setting parameters of the test interface within a preset parameter adjusting range.
The test interface parameters comprise a sending voltage amplitude parameter of a sending end of the test interface, a filter setting parameter of the sending end of the test interface and a receiving balance parameter of a receiving end of the test interface. The parameters of the test interfaces respectively correspond to a preset parameter adjusting range, and the parameter values of the parameters can be adjusted according to preset adjusting step length in the preset parameter adjusting range during each adjustment.
A3: detecting whether the test line forms a channel or not, if the test line does not form the channel, returning to A1 to detect whether the communication protocol mode parameters of the test interface are correctly configured, and returning to A2 to finely adjust the setting parameters of the test interface; otherwise go to a 4.
The test circuit refers to a test signal transmission path of the whole test process, namely a test interface sending end of the optical communication module test device → the optical communication module to be tested → a test interface receiving end of the optical communication module test device. The testing device can send a testing signal by triggering the optical communication module testing device, detect whether the testing signal can return to the optical communication module testing device within the preset time, and if the testing signal can return, indicate that the testing circuit forms a channel.
A4: collecting signals of a test interface receiving end of the optical communication module test device to generate a two-dimensional digital eye diagram; if the digital eye pattern matches the expected eye pattern template, go to step A5, otherwise return to step A2 to fine tune the test interface setup parameters.
The signal at the receiving end of the test interface of the optical communication module test device is a signal which is coded, transmitted and decoded by the measured optical communication module and sent back to the optical communication module test device, and the quality of the signal can reflect the quality of the measured optical communication module. A two-dimensional digital eye pattern is generated according to the signal, and the digital eye pattern can be normally displayed under the condition of specific device parameters.
A5: and acquiring the test interface communication protocol mode parameters and the test interface setting parameters obtained by adjustment and calibration, and determining the parameters as a group of optimal test parameters of the current optical communication module to be tested.
In S203, obtaining pre-stored optimal test parameters of the optical communication module according to the coding information, and adjusting test parameter configuration information according to the optimal test parameters.
In this embodiment, S203 is the same as S102 in the previous embodiment, and please refer to the related description of S102 in the previous embodiment, which is not repeated herein.
In S204, test mode configuration information is obtained, and an optical communication module test is performed according to the test mode configuration information and the test parameter configuration information to obtain first test result information, where the first test result information includes an error rate of the optical communication module.
Optionally, the step S204 specifically includes:
acquiring test mode configuration information, acquiring message configuration information if the test mode configuration information is an Ethernet flow test mode, and testing an optical communication module according to the message configuration information and the test parameter configuration information to acquire first test result information.
When the test mode configuration information is the Ethernet flow test mode, acquiring preset message configuration information, wherein the message configuration information sets information such as a message header, a source MAC address, a destination MAC address, a VLAN ID, message length, load and the like of an Ethernet message data stream generated by the optical communication module test device in the Ethernet flow test mode. Optionally, when the ethernet traffic mode is tested, a full traffic full pressure test is set, for example, for an optical communication module with a rate of 100Git/s, an ethernet message data stream with a rate of 100Git/s may be correspondingly set, so that the optical communication module performs a test under a full load condition. Generating an ethernet message data stream in a specific message format according to the message configuration information and the test parameter configuration information configured in S201, sending the ethernet message data stream to the optical communication module to be tested through the sending end of the test port under the condition that the optical communication module is in self-loop connection, finally returning the message data to the optical communication module testing apparatus through the receiving end of the test port through encoding, transmission and decoding of the optical communication module, and analyzing and comparing the initially generated ethernet message data stream with the returned ethernet message data stream to obtain first test result information, wherein the first test result information includes error rate information of the optical communication module. For the ethernet traffic test mode, the bit error rate information of the optical communication module is about the transmission error rate of the ethernet packet data. Specifically, the error rate is the transmission error rate ÷ message transmission error number ÷ total number of transmitted messages × 100%, where the message transmission error number is the total number of transmitted messages-total number of received messages + total number of received error messages.
Optionally, in the ethernet traffic test mode, two test interfaces (a first test interface and a second test interface) of the optical communication module test apparatus may be respectively connected to an optical communication module (a first optical communication module and a second optical communication module) of the same type, and the two optical communication modules are butted, that is, a transmitting end of the first optical communication module is connected to a receiving end of the second optical communication module, and a receiving end of the first optical communication module is connected to a transmitting end of the second optical communication module (for an optical module, connection is achieved through an optical fiber, and for an electrical module, connection is achieved through a cable). The Ethernet message data stream generated by the optical communication module testing device is sent to the first optical communication module through the sending end of the first testing interface, the first optical communication module sends the Ethernet message data stream to the second optical communication module, and finally the Ethernet message data stream is returned to the optical communication module testing device through the receiving end of the second testing interface by the second optical communication module. And calculating according to the connection topological relation (namely the butt joint relation between the first test interface and the second test interface) of the optical communication module test device, the total number of sent messages, the number of received error messages and the like to obtain a transmission error rate, and dividing the transmission error rate by 2 to obtain the average error rate of the two butted optical communication modules.
Optionally, if the test mode configuration information is an ethernet traffic test mode, obtaining message configuration information, and performing an optical communication module test according to the message configuration information and the test parameter configuration information to obtain first test result information, where the method includes:
if the test mode configuration information is an Ethernet flow mode, forward error correction coding configuration information and message configuration information are obtained, and an optical communication module test is carried out according to the forward error correction coding configuration information, the message configuration information and the test parameter configuration information to obtain first test result information.
Acquiring forward error correction coding configuration information under an Ethernet flow test mode, wherein the forward error correction coding configuration information comprises two kinds of configuration information of opening and closing, when the forward error correction coding configuration information is opened, a forward error correction coding function of an optical communication module test device is started, an optical communication module is tested, and finally, a first test result information is obtained, namely the error rate of an optical communication module to be tested under the condition of forward error correction coding; and when the forward error correction coding configuration information is closed, closing the forward error correction coding function of the optical communication module testing device, testing the optical communication module, and finally obtaining a first testing result which is an original error rate reflecting the original transmission channel quality of the optical communication module to be tested.
Because the optical communication module is usually connected with a forward error correction coding device in practical application, the forward error correction coding function of the optical communication module testing device is started, the error rate of the optical communication module to be tested under the condition of forward error correction coding is obtained, and the optical communication module to be tested has practical reference value.
Optionally, the step S204 specifically includes:
acquiring test mode configuration information, acquiring polynomial constant configuration information of a pseudorandom sequence if the test mode configuration information is a pseudorandom bit stream test mode, and performing optical communication module test according to the polynomial constant configuration information and the test parameter configuration information to obtain first test result information.
And when the test mode configuration information is a pseudorandom bit stream test mode, acquiring polynomial constant configuration information of a preset or user-input pseudorandom sequence, wherein the polynomial constant configuration information of the pseudorandom sequence sets the order of a pseudorandom sequence code generated by the optical communication module test device in the pseudorandom bit stream test mode. Generating a specific pseudo-random bit stream according to the polynomial constant configuration information and the test parameter configuration information configured in S201, sending the specific pseudo-random bit stream to the optical communication module to be tested through the sending end of the test port under the condition that the optical communication module is in self-loop connection, and finally returning the message data to the optical communication module testing device through the receiving end of the test port through encoding, transmission and decoding of the optical communication module, and performing analysis and comparison to obtain first test result information, wherein the first test result information includes error rate information of the optical communication module. And for the pseudorandom bit stream test mode, calculating the bit error rate of the optical communication module according to information such as the number of error codes, the test duration, the test rate and the like.
In S205, a determination result is obtained according to the first test result information and expected result information, where the expected result information includes an expected bit error rate.
And comparing the first test result information, such as the tested error rate of the optical communication module to be tested, with the expected result information, such as the expected error rate, and if the tested error rate of the optical communication module to be tested is less than the expected error rate, judging that the optical communication module to be tested is qualified.
Optionally, the first test result information further includes a signal eye pattern, and the expected result information further includes an expected eye pattern template at this time.
When the optical communication module is tested, a signal eye diagram is generated by collecting signals received by the receiving end of the test interface, and the quality of the signals received by the receiving end of the test interface can be qualitatively judged according to the signal eye diagram, so that the quality of the measured optical communication module is reflected. And if the error rate of the tested optical communication module to be tested contained in the first test result is less than the expected error rate and the signal eye pattern contained in the first test result conforms to the expected eye pattern template, judging that the optical communication module to be tested is qualified.
Optionally, after obtaining a determination result according to the first test result information and the expected result information, the method further includes:
and storing test information into a database, wherein the test information at least comprises the coding information of the optical communication module, first test result information and a judgment result.
The optical communication module testing device integrates a database, and after the optical communication module is tested, the coded information, the first testing result information, the judgment result and other testing information of the optical communication module are stored in the database so as to inquire the historical working information of the optical communication module testing device. Optionally, the test information may further include information such as a current test time point, a test duration, test parameter configuration information, and a current test environment temperature.
In the embodiment of the application, because the test parameters of the optical communication module are automatically adjusted and stored through the coding information of the optical communication module, the optical communication module of one type can be directly tested to obtain the optimal test parameters corresponding to the optical communication module of the type only by performing complete parameter adjustment at most once, and relevant test parameter adjustment is automatically performed according to the optimal parameters, so that the test efficiency of the optical communication module is further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example three:
fig. 3 is a schematic structural diagram of an optical communication module testing apparatus provided in an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown:
this optical communication module testing arrangement includes: a plurality of test interfaces 31, a first obtaining unit 32, a test parameter configuring unit 33, a test unit 34, and a determining unit 35, which are integrated in an optical communication module testing apparatus. Wherein:
a number of test interfaces 31 for connection with one or more optical communication modules.
The optical communication module testing apparatus in the embodiment of the present application may test a plurality of optical communication modules at the same time, for example, 32 optical communication modules or 128 optical communication modules at the same time, and a testing method flow of each optical communication module is as described in the optical communication module testing method in the first embodiment or the second embodiment.
A first obtaining unit 32, configured to obtain the coding information of the optical communication module.
The coded information of the optical communication module is stored in a memory unit, for example an EEPROM memory element of the optical communication module. The encoded information generally includes the manufacturer name, part number, serial number, production date, etc. of the optical communication module, and the type information of the optical communication module, such as the package type, rate, etc. The packaging type comprises SFP, SFP +, QSFP28, SFP, QSFP-DD and the like, and the rate comprises 10Gbit/s, 25Gbit/s, 50Gbit/s, 100Gbit/s, 200Gbit/s, 400Gbit/s and the like.
Optionally, the optical communication module testing apparatus further includes a coding unit, configured to receive an input instruction and write the coding information of the optical communication module in the coding unit if it is detected that the coding information of the optical communication module does not exist.
Optionally, the optical communication module testing apparatus further includes a test parameter adjusting unit, configured to adjust the test parameter, determine the optimal test parameter of the optical communication module, and store the optimal test parameter of the optical communication module, if it is detected that the optimal test parameter of the optical communication module corresponding to the encoded information does not exist.
And a test parameter configuration unit 33, configured to obtain a pre-stored optimal test parameter of the optical communication module according to the coding information, and adjust test parameter configuration information according to the optimal test parameter.
The optical communication modules of different models have different requirements on the conditions of the optical communication module testing device, that is, the testing parameter configuration requirements of the optical communication module testing device are different, wherein the testing parameters may include testing interface communication protocol mode parameters, sending voltage amplitude parameters of a testing interface sending end, filter setting parameters of the testing interface sending end, receiving equalization parameters of a testing interface receiving end, and the like. For each type of optical communication module, the optical communication module testing device correspondingly stores a group of optimal testing parameters, and can obtain the optimal testing parameters by inquiring a comparison table of the type information and the optimal testing parameters prestored in a database according to the type information of the optical communication module in the coded information, and adjust the testing parameter configuration information of the optical communication testing device according to the optimal testing parameters, so that the optical communication module testing device can provide a testing environment which is most suitable for the type of the optical communication module.
The testing unit 34 is configured to obtain test mode configuration information, and perform an optical communication module test according to the test mode configuration information and the test parameter configuration information to obtain first test result information, where the first test result information includes an error rate of the optical communication module.
The optical communication module test mode in this embodiment includes two types, namely an ethernet traffic test mode and a pseudorandom bit stream test mode, and the test mode configuration information specifies in which test mode the current optical communication module test apparatus is. Under the Ethernet flow test mode, an Ethernet flow generation unit of the optical communication module test device generates an Ethernet message data flow with a full rate, and the Ethernet message data flow is sent to an optical communication module to be tested through a test interface sending end of the optical communication module test device; and under the pseudo-random bit stream mode, a code pattern generating unit of the optical communication module testing device generates a pseudo-random sequence code stream, and the pseudo-random sequence code stream is sent to the optical communication module to be tested through a testing interface sending end of the optical communication testing device. Optionally, the obtaining the test mode configuration information further includes: and receiving a test mode selection instruction and setting test mode configuration information.
And testing the optical communication module according to the current test mode configuration information and the test parameter configuration information. And obtaining first test result information through a preset test duration, wherein the first test result information comprises the bit error rate information of the optical communication module. Specifically, during testing, an ethernet message data stream or a pseudo random sequence code stream generated by the optical communication module testing device is sent to the optical communication module through a sending end of the testing interface, the optical communication module sends the ethernet message data stream or the pseudo random sequence code stream transmitted by the optical communication module back to a receiving end of the optical communication module testing device through a self-loop or butt-joint connection mode, and the optical communication module testing device obtains the error rate of the optical communication module to be tested by comparing the data quantity and the data information content of the originally generated ethernet message data stream (or the pseudo random sequence code) with the received ethernet message data stream (or the pseudo random sequence code) sent back by the optical communication module.
Optionally, the test unit 34 includes:
the first testing unit is used for obtaining testing mode configuration information, obtaining message configuration information if the testing mode configuration information is an Ethernet flow testing mode, and testing the optical communication module according to the message configuration information and the testing parameter configuration information to obtain first testing result information.
Optionally, the test unit 34 includes:
and the forward error correction coding test unit is used for acquiring forward error correction coding configuration information and message configuration information if the test mode configuration information is an Ethernet flow mode, and carrying out optical communication module test according to the forward error correction coding configuration information, the message configuration information and the test parameter configuration information to obtain first test result information.
Optionally, the test unit 34 includes:
and the second testing unit is used for acquiring testing mode configuration information, acquiring polynomial constant configuration information of a pseudorandom sequence if the testing mode configuration information is a pseudorandom bit stream testing mode, and testing the optical communication module according to the polynomial constant configuration information and the testing parameter configuration information to obtain first testing result information.
And the determining unit 35 is configured to obtain a determination result according to the first test result information and expected result information, where the expected result information includes an expected bit error rate.
And comparing the first test result information, such as the tested error rate of the optical communication module to be tested, with the expected result information, such as the expected error rate, and if the tested error rate of the optical communication module to be tested is less than the expected error rate, judging that the optical communication module to be tested is qualified.
Optionally, the first test result information further includes a signal eye pattern, and the expected result information further includes an expected eye pattern template at this time.
Optionally, the optical communication module testing apparatus further includes:
and the test duration setting unit is used for receiving the test duration setting instruction and setting the test duration.
Optionally, the optical communication module testing apparatus further includes:
and the database is used for storing test information, wherein the test information at least comprises the coding information, the first test result information and the judgment result of the optical communication module, so that the historical working information of the optical communication module testing device can be inquired later. Optionally, the test information may further include information such as a current test time point, a test duration, test parameter configuration information, and a current test environment temperature.
Optionally, the optical communication module testing apparatus further includes:
and the temperature monitoring unit is used for recording the temperature information of the current environment.
The optical communication module can be placed in an environment with a temperature in a changing state, and the first test result contains environment temperature information when the optical communication module to be tested is tested, so that the influence of temperature change on the optical communication module test can be analyzed later.
In the embodiment of the application, because the optimal test parameters of the optical communication module are automatically obtained through the coded information of the optical communication module, the complicated test parameter configuration is automatically completed, and the whole test process is integrated in the optical communication module test device, the complicated manual operation is avoided, the time cost and the labor cost of the test process of the optical communication module are greatly saved, and the test efficiency of the optical communication module is improved.
Example four:
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42, such as an optical communication module test program, stored in said memory 41 and executable on said processor 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the optical communication module testing method, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the units in the device embodiments described above, such as the functions of the units 32 to 35 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into a first acquiring unit, a test parameter configuring unit, a testing unit, and a determining unit, and each unit has the following specific functions:
the first acquisition unit is used for acquiring the coding information of the optical communication module.
And the test parameter configuration unit is used for acquiring the pre-stored optimal test parameters of the optical communication module according to the coding information and adjusting the test parameter configuration information according to the optimal test parameters.
And the test unit is used for acquiring test mode configuration information, and testing the optical communication module according to the test mode configuration information and the test parameter configuration information to obtain first test result information, wherein the first test result information comprises the error rate of the optical communication module.
And the judging unit is used for obtaining a judging result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. An optical communication module testing method, comprising:
acquiring coding information of an optical communication module, wherein the coding information comprises model information of the optical communication module, and the model information comprises rate information of the optical communication module;
obtaining pre-stored optimal test parameters of the optical communication module according to the model information, if detecting that the optimal test parameters of the optical communication module corresponding to the coding information do not exist, adjusting the test parameters, determining the optimal test parameters of the optical communication module, and storing the adjusted optimal test parameters corresponding to the optical communication module, wherein the optimal test parameters comprise test interface communication protocol mode parameters and test interface setting parameters, the test interface communication protocol mode parameters are determined according to the speed information of the optical communication module, and the test interface parameters comprise a sending voltage amplitude parameter of a test interface sending end, filter setting parameters of the test interface sending end, and receiving equalization parameters of a test interface receiving end; adjusting the test parameter configuration information of the optical communication module test device according to the optimal test parameter;
acquiring test mode configuration information, and testing an optical communication module according to the test mode configuration information and the test parameter configuration information to obtain first test result information, wherein the first test result information comprises an error rate of the optical communication module; the method specifically comprises the following steps: acquiring test mode configuration information, acquiring forward error correction coding configuration information and message configuration information if the test mode configuration information is an Ethernet flow test mode, and performing full-flow and full-pressure test on the optical communication module according to the forward error correction coding configuration information, the message configuration information and the test parameter configuration information to obtain first test result information;
and obtaining a judgment result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate.
2. The method for testing an optical communication module according to claim 1, further comprising, before the obtaining the encoded information of the optical communication module:
and if the coded information of the optical communication module is detected to be absent, receiving an input instruction and writing the coded information of the optical communication module.
3. The method for testing an optical communication module according to claim 1, wherein the obtaining test mode configuration information and performing the optical communication module test according to the test mode configuration information and the test parameter configuration information to obtain first test result information includes:
acquiring test mode configuration information, acquiring polynomial constant configuration information of a pseudorandom sequence if the test mode configuration information is a pseudorandom bit stream test mode, and performing optical communication module test according to the polynomial constant configuration information and the test parameter configuration information to obtain first test result information.
4. The method for testing an optical communication module as claimed in claim 1, wherein the first test result information further includes a signal eye pattern, and the expected result information further includes an expected eye pattern template at this time.
5. The method for testing an optical communication module according to any one of claims 1 to 4, further comprising, after obtaining the determination result based on the first test result information and the expected result information:
and storing test information into a database, wherein the test information at least comprises the coding information of the optical communication module, first test result information and a judgment result.
6. An optical communication module testing apparatus, comprising:
the test interfaces are used for being connected with one or more optical communication modules;
a first obtaining unit, configured to obtain coding information of an optical communication module, where the coding information includes model information of the optical communication module, and the model information includes rate information of the optical communication module;
a test parameter configuration unit, configured to obtain a pre-stored optimal test parameter of the optical communication module according to the model information, adjust the test parameter if it is detected that the optimal test parameter of the optical communication module corresponding to the encoded information does not exist, determine the optimal test parameter of the optical communication module, and store the adjusted optimal test parameter corresponding to the optical communication module, where the optimal test parameter includes a test interface communication protocol mode parameter and a test interface setting parameter, the test interface communication protocol mode parameter is determined according to rate information of the optical communication module, and the test interface parameter includes a transmission voltage amplitude parameter of a test interface transmitting end, a filter setting parameter of the test interface transmitting end, and a reception equalization parameter of a test interface receiving end; adjusting the test parameter configuration information of the optical communication module test device according to the optimal test parameter;
the testing unit is used for obtaining testing mode configuration information and testing the optical communication module according to the testing mode configuration information and the testing parameter configuration information to obtain first testing result information, wherein the first testing result information comprises the error rate of the optical communication module; the method specifically comprises the following steps: acquiring test mode configuration information, acquiring forward error correction coding configuration information and message configuration information if the test mode configuration information is an Ethernet flow test mode, and performing full-flow and full-pressure test on the optical communication module according to the forward error correction coding configuration information, the message configuration information and the test parameter configuration information to obtain first test result information;
and the judging unit is used for obtaining a judging result according to the first test result information and expected result information, wherein the expected result information comprises an expected bit error rate.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201910054919.1A 2019-01-21 2019-01-21 Optical communication module testing method and device and terminal equipment Active CN109639347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910054919.1A CN109639347B (en) 2019-01-21 2019-01-21 Optical communication module testing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910054919.1A CN109639347B (en) 2019-01-21 2019-01-21 Optical communication module testing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109639347A CN109639347A (en) 2019-04-16
CN109639347B true CN109639347B (en) 2020-02-04

Family

ID=66062304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910054919.1A Active CN109639347B (en) 2019-01-21 2019-01-21 Optical communication module testing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109639347B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897303A (en) * 2019-05-06 2020-11-06 深圳市优必选科技有限公司 Eye pattern test method and eye pattern test system
CN111010241B (en) * 2019-12-03 2021-12-14 杭州电子科技大学富阳电子信息研究院有限公司 Multi-protocol high-speed pseudo-random signal loop test system based on FPGA
CN111585647A (en) * 2020-05-27 2020-08-25 Oppo广东移动通信有限公司 Device, method and system for testing optical communication performance

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209220A (en) * 2016-07-05 2016-12-07 厦门优迅高速芯片有限公司 A kind of UX3328SFP optical module Automatic parameter based on FPGA is arranged and method of testing
CN106598035A (en) * 2017-01-10 2017-04-26 珠海博威智能电网有限公司 Automatic test method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI653519B (en) * 2017-05-03 2019-03-11 和碩聯合科技股份有限公司 Configuration unit, detection system and detection method
CN109039451A (en) * 2018-09-18 2018-12-18 武汉恒泰通技术有限公司 A kind of optical module monitoring system
CN108964760A (en) * 2018-10-12 2018-12-07 中国电子科技集团公司第三十四研究所 A kind of test device and test method of multi-path digital optical mode bLock error rate

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209220A (en) * 2016-07-05 2016-12-07 厦门优迅高速芯片有限公司 A kind of UX3328SFP optical module Automatic parameter based on FPGA is arranged and method of testing
CN106598035A (en) * 2017-01-10 2017-04-26 珠海博威智能电网有限公司 Automatic test method, device and system

Also Published As

Publication number Publication date
CN109639347A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109639347B (en) Optical communication module testing method and device and terminal equipment
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN109768970B (en) Configurable universal protocol generation method
CN107948020B (en) CAN bus sampling point test method and device
WO2017000424A1 (en) Protocol detection method and apparatus
CN105991358B (en) Method, device, test board and system for testing interface board flow
CN107748718B (en) Application program testing method and device and server
US11323179B2 (en) Testing method for optical communication module, and test device
CN112564772A (en) Satellite data acquisition system
CN116107703A (en) Interface control document generation method and device
CN114780315A (en) Hardware simulation test method and device
CN110022178B (en) Detection circuit and detection method of WiFi module
CN111541958A (en) Optical interface rate self-adaption method, equipment, device and readable storage medium
CN114338270B (en) Data communication method, device, electronic equipment and storage medium
CN114416597A (en) Test case record generation method and device
CN114443537A (en) Method, device, equipment and medium for configuring parameters of PCIE signal sending terminal
KR101989340B1 (en) Data link layer test method and system of CAN communication
CN203630784U (en) On-chip simulating system
CN109981394B (en) Communication method and device based on enhanced CAN bus protocol analyzer
CN104518819A (en) Twisted pair category identification method and twisted pair category identification equipment
CN114500688B (en) Method, device, terminal and storage medium for identifying equipment protocol
CN101980479B (en) Method and system for testing performance of very high frequency data chain mode-two air ground communication system
CN114826276B (en) Manchester decoding method and device and readable storage medium
CN110191095B (en) Data processing method and terminal equipment
CN118012681A (en) Full duplex function verification method and device for universal asynchronous receiving and transmitting device

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