A method and device for debugging a DSP of an optical module

By introducing debug mode and normal operation mode into the optical module, and utilizing the protocol conversion interface and single-pole double-throw switch chip, efficient debugging of the optical module DSP is achieved, solving the problem of low debugging efficiency caused by the enhancement of DSP functions in the existing technology, and supporting rapid configuration of DSP-A from different manufacturers.

CN115996091BActive Publication Date: 2026-05-19ACCELINK TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ACCELINK TECHNOLOGIES CO LTD
Filing Date
2021-10-18
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, optical module DSP debugging methods communicate with the MCU through self-made communication software. As the functions of the DSP are enhanced, new communication software needs to be developed frequently, resulting in low efficiency.

Method used

A method for debugging an optical module DSP is provided, which adopts a debugging mode and a normal working mode. It connects to the DSP GUI software through a protocol conversion interface, records debugging parameters, stores and configures the DSP-A through the MCU, and uses a single-pole double-throw switch chip to switch the connection mode, thus simplifying the debugging process.

Benefits of technology

It reduces the time required to develop custom communication software, improves DSP debugging efficiency, supports rapid configuration of DSP-A from different manufacturers, and saves development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115996091B_ABST
    Figure CN115996091B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and provides a method and device for debugging a DSP of an optical module, the method comprising the following steps: connecting a protocol conversion interface B and an electrical interface of the optical module through a connecting line, so that a DSP GUI software is connected with the electrical interface of the optical module through the protocol conversion interface B; controlling a DSP-A to be connected with the electrical interface of the optical module through an MCU of the optical module; debugging the DSP-A through the DSP GUI software, and recording debugging parameters; controlling the DSP-A to be connected with an I / O port of the MCU of the optical module through the MCU of the optical module, sending a command to the MCU of the optical module through a protocol conversion interface A by communication software, and storing the debugging parameters in the MCU of the optical module; sending the debugging parameters to the DSP-A through the MCU of the optical module, and completing the configuration of the DSP-A; the method for debugging the DSP of the optical module provided by the application saves the process of developing self-made communication software by a developer of the optical module to debug the DSP, saves development time, and improves the efficiency of the DSP debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method and apparatus for debugging an optical module DSP. Background Technology

[0002] 400G optical modules will begin to be commercially available in data centers. The biggest difference in the application of 400G optical modules is the introduction of a new modulation format, fourth-generation pulse amplitude modulation (PAM4), which has achieved the effect of doubling the transmission rate at the same baud rate. For example, DR4 optical modules used for transmissions below 500 meters need to achieve a single-wavelength rate of 100Gbps. To achieve this level of speed, data center optical modules are beginning to introduce digital signal processing (DSP) chips to replace the old clock recovery chips, in order to solve the sensitivity problem caused by insufficient bandwidth of optical devices.

[0003] As optical modules become smaller and faster, and DSPs become more powerful, debugging their functions also becomes increasingly difficult. Therefore, how to quickly and effectively debug DSP functions has become a problem that must be addressed and solved.

[0004] The common practice now is to use self-made communication software and a custom protocol to communicate with the microcontroller unit (MCU) inside the optical module through a communication interface. The MCU then forwards the commands to the DSP for execution.

[0005] The biggest drawback of this debugging method is the complexity of creating the communication software, which is both time-consuming and labor-intensive. This is especially true as DSPs become increasingly powerful, requiring more and more functions to be debugged. Software developers not only need to spend time learning the various functions of the DSP but also need to develop corresponding software to debug them. If a different type of DSP or a DSP from another manufacturer is used, new communication software needs to be developed again, which is very time-consuming and inefficient.

[0006] Therefore, overcoming the shortcomings of the existing technology is an urgent problem to be solved in this technical field. Summary of the Invention

[0007] The technical problem to be solved by this invention is:

[0008] In existing technologies, most DSP debugging methods involve using self-made communication software and custom protocols to communicate with the MCU via a communication interface. The MCU then forwards commands to the DSP for execution. However, as DSPs become more powerful, the number of functions requiring debugging also increases. Software developers not only need to spend time learning various DSP functions but also need to develop corresponding software to debug these functions. If other types of DSPs or DSPs from other manufacturers are used, new communication software needs to be developed again, which is time-consuming and inefficient.

[0009] To achieve the above objectives, the present invention adopts the following technical solution:

[0010] In a first aspect, the present invention provides a method for debugging an optical module DSP, wherein the optical module includes two operating modes: a debugging mode and a normal operating mode, wherein:

[0011] In debug mode, the protocol conversion interface B and the optical module electrical interface are connected via a connecting cable, so that the DSP GUI software is connected to the optical module electrical interface through the protocol conversion interface B; the MCU of the optical module controls DSP-A to connect to the optical module electrical interface; the DSP-A is debugged through the DSP GUI software, and the debugging parameters are recorded.

[0012] In normal operating mode, the DSP-A is connected to the I / O port of the MCU of the optical module through the MCU of the optical module. The communication software sends commands to the MCU of the optical module through the protocol conversion interface A, and stores the debugging parameters in the MCU of the optical module. The MCU of the optical module sends the debugging parameters to the DSP-A to complete the configuration of the DSP-A.

[0013] Preferably, the DSP-A is connected to the electrical interface of the optical module or the I / O port of the optical module's MCU by controlling the control pin of the single-pole double-throw switch chip via the MCU of the optical module. Specifically:

[0014] In debug mode, the control pin of the single-pole double-throw switch chip is set low by the MCU of the optical module, so that the DSP-A is connected to the electrical interface of the optical module through the single-pole double-throw switch chip;

[0015] In normal operating mode, the control pin of the single-pole double-throw switch chip is set high by the MCU of the optical module, so that DSP-A is connected to the I / O port of the MCU of the optical module through the single-pole double-throw switch chip.

[0016] Preferably, the electrical interface of the optical module is connected to the SA terminal of the single-pole double-throw switch chip via communication interface A; the I / O port of the MCU of the optical module is connected to the SB terminal of the single-pole double-throw switch chip via communication interface B; and the DSP-A is connected to the common terminal of the single-pole double-throw switch chip via communication interface C.

[0017] When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip low, the common terminal of the single-pole double-throw switch chip is connected to the SA terminal of the single-pole double-throw switch chip.

[0018] When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip high, the common terminal of the single-pole double-throw switch chip is connected to the SB terminal of the single-pole double-throw switch chip.

[0019] Preferably, in normal operating mode, the communication software sends commands to the MCU of the optical module via protocol conversion interface A, and the communication method is as follows:

[0020] The communication software is connected to the protocol conversion interface A; the protocol conversion interface A is connected to end a of pin header socket A, and end b of pin header socket A is connected to the optical module electrical interface; the first jumper cap connects end a of pin header socket A to end b of pin header socket A, thereby connecting the protocol conversion interface A to the optical module electrical interface; the optical module electrical interface is connected to the MCU of the optical module through the communication interface D.

[0021] Preferably, before switching from normal working mode to debug mode, a mode switching command is sent first, then the first shorting cap is removed, and the protocol conversion interface B and the optical module electrical interface are connected via the connecting cable.

[0022] Preferably, the connection between the protocol conversion interface B and the optical module electrical interface via the connecting cable specifically involves connecting one end of the connecting cable to the c end of the pin header socket B and connecting the other end of the connecting cable to the b end of the pin header socket A.

[0023] The protocol conversion interface B is connected to the c end of the pin header socket B; the optical module electrical interface is connected to the b end of the pin header socket A.

[0024] Preferably, the DSP-A is connected to the memory chip via a microcode loading interface, specifically:

[0025] In debug mode, after selecting the microcode of the DSP-A through the DSP GUI software, the microcode is written into the memory chip;

[0026] In normal operating mode, the DSP-A loads the microcode in the storage chip through the microcode loading interface. After loading is completed, the MCU of the optical module sends the debugging parameters to the DSP-A.

[0027] Secondly, the present invention provides an apparatus for debugging an optical module DSP, used to implement the optical module DSP debugging method described in the first aspect. The apparatus for debugging an optical module DSP includes: an optical module, an optical module test board, a PC, a DSP evaluation board, and connecting cables; the optical module is connected to the optical module test board by inserting into the optical module electrical interface socket.

[0028] The optical module includes an optical module electrical interface, an MCU, a single-pole double-throw (SPDT) switch chip, and a DSP-A. The SA terminal of the SPDT switch chip is connected to the optical module electrical interface through communication interface A, the SB terminal of the SPDT switch chip is connected to the I / O port of the optical module's MCU through communication interface B, and the common terminal of the SPDT switch chip is connected to the DSP-A through communication interface C.

[0029] The optical module test board is equipped with an optical module electrical interface socket, a pin header socket A, and a protocol conversion interface A; the protocol conversion interface A is connected to end a of the pin header socket A, and the optical module electrical interface is connected to end b of the pin header socket A.

[0030] The PC is equipped with communication software and DSP GUI software; the communication software sends commands through the protocol conversion interface A.

[0031] The DSP evaluation board includes a protocol conversion interface B, a pin header socket B, and a DSP-B; for example Figure 5 As shown, the protocol conversion interface B is connected to the c end of the pin header socket B, and the DSP-B is connected to the d end of the pin header socket B; the DSP GUI software sends commands through the protocol conversion interface B.

[0032] The connecting cable is used to connect the optical module electrical interface and the protocol conversion interface B;

[0033] Specifically, the control pin of the single-pole double-throw switch chip is controlled by the MCU of the optical module, so that the common terminal of the single-pole double-throw switch chip is connected to the SA terminal or the SB terminal of the single-pole double-throw switch chip.

[0034] Preferably, after removing the connecting wire, the pin header socket B is shorted, enabling the DSP GUI software to evaluate the functionality of the DSP-B through the protocol conversion interface B.

[0035] Preferably, the optical module also includes a storage chip, and the DSP-A is connected to the storage chip; the storage chip is used to store the microcode of the DSP-A.

[0036] Compared with the prior art, the beneficial effects of the present invention are:

[0037] This invention provides a method for debugging the DSP of an optical module. The DSP-A can be debugged using the DSP GUI software provided by the manufacturer. After debugging, the debugging parameters are recorded. Then, the modulation parameters are stored in the MCU using self-made communication software, and the debugging parameters are sent to the DSP-A to complete the configuration of the DSP-A. This method eliminates the need for optical module developers to develop their own communication software to debug the DSP-A, saving development time and improving the efficiency of DSP-A debugging. Even if a DSP-A from a different manufacturer is used, as long as the manufacturer's DSP GUI software and DSP evaluation board are used, a debugging platform can be easily built to quickly and accurately complete the DSP-A debugging. Attached Figure Description

[0038] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments of the present invention will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0039] Figure 1 This is a flowchart illustrating a method for debugging an optical module DSP according to an embodiment of the present invention;

[0040] Figure 2 This is a schematic diagram of the internal structure of an optical module in a method for debugging an optical module DSP provided in an embodiment of the present invention;

[0041] Figure 3 This is a schematic diagram of the port connection of a single-pole double-throw switch chip in a method for debugging an optical module DSP provided in an embodiment of the present invention;

[0042] Figure 4 This is a schematic diagram of the structure of a device for debugging an optical module DSP provided in an embodiment of the present invention;

[0043] Figure 5 This is a schematic diagram of the connection method of the connecting wire in a method for debugging an optical module DSP provided in an embodiment of the present invention;

[0044] Figure 6 This is a schematic diagram of the DSP evaluation board in a method for debugging an optical module DSP provided in an embodiment of the present invention. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0046] In the description of this invention, the terms "inner", "outer", "longitudinal", "lateral", "upper", "lower", "top", "bottom", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and do not require that this invention must be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.

[0047] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0048] Example 1:

[0049] This invention provides a method for debugging an optical module DSP, such as... Figure 1 As shown, the optical module includes two operating modes: debugging mode and normal operating mode, wherein:

[0050] In debug mode:

[0051] In step 201, the protocol conversion interface B and the optical module electrical interface are connected by a connecting cable, so that the DSP GUI software is connected to the optical module electrical interface through the protocol conversion interface B; the DSP-A is connected to the optical module electrical interface by the MCU of the optical module.

[0052] The connection cable includes a jumper; the protocol conversion interface B is used to convert the commands of the DSP GUI software into the communication protocol supported by the optical module, and the protocol conversion interface B is set on the DSP evaluation board; the DSP-A, the DSP GUI software and the DSP evaluation board are from the same manufacturer, that is, the DSP GUI software can directly debug the DSP-A through the DSP evaluation board.

[0053] The connection lines in debug mode are as follows: the DSP GUI software, the protocol conversion interface B, the optical module electrical interface, and the DSP-A are connected in sequence.

[0054] In step 202, the DSP-A is debugged using the DSP GUI software, and the debugging parameters are recorded.

[0055] The methods for recording debugging parameters include manual recording or recording using other auxiliary tools.

[0056] The debug mode is mainly used to debug the DSP-A through the DSP GUI software and obtain debug parameters.

[0057] In normal working mode:

[0058] In step 203, the DSP-A of the optical module is connected to the I / O port of the optical module's MCU through the MCU control of the optical module. The communication software sends commands to the optical module's MCU through the protocol conversion interface A, and stores the debugging parameters in the optical module's MCU.

[0059] The connection lines in normal operating mode are as follows: the communication software, the protocol conversion interface A, the optical module electrical interface, and the MCU and DSP-A of the optical module are connected in sequence.

[0060] The communication software communicates with the MCU of the optical module through protocol conversion interface A. The communication includes: sending commands to the MCU of the optical module through the communication software so that the MCU of the optical module can send debugging parameters to the DSP-A; or, the communication software obtains the working status of the DSP-A through the MCU of the optical module.

[0061] In step 204, the debugging parameters are sent to the DSP-A through the MCU of the optical module to complete the configuration of the DSP-A.

[0062] The debugging parameters recorded in the debugging mode are used to send the optical module's MCU in the form of commands through the communication software in the normal operating mode, so that the optical module's MCU can complete the configuration of the DSP-A and enable the DSP-A to work normally.

[0063] The normal operating mode is mainly used to send debugging parameters to the MCU of the optical module through communication software, and then send the debugging parameters to the DSP-A through the MCU of the optical module to complete the configuration of the DSP-A.

[0064] Even if you switch to a DSP-A from a different manufacturer, as long as you use the same manufacturer's DSP GUI software and DSP evaluation board, you can easily build a debugging platform and quickly and accurately configure the DSP-A.

[0065] The optical module is in normal working mode by default. It only needs to be switched to debug mode after the manufacturer of the DSP-A is changed. After obtaining the debug parameters of the replaced DSP-A through the DSP GUI software and DSP evaluation board of the same manufacturer, it is necessary to switch back to normal working mode. The obtained debug parameters are sent to the MCU of the optical module through the communication software. The MCU of the optical module completes the configuration of the replaced DSP-A so that the replaced DSP-A can work normally.

[0066] In this embodiment of the invention, the switching between debugging mode and normal operation mode is accomplished through the cooperation of connecting lines and a single-pole double-throw switch chip. The following describes the line switching process using the single-pole double-throw switch chip, as follows: Figure 2 As shown, the MCU of the optical module controls the control pin of the single-pole double-throw switch chip, thereby connecting the DSP-A to the electrical interface of the optical module or the I / O port of the MCU of the optical module, specifically:

[0067] In debug mode, the control pin of the single-pole double-throw switch chip is set low by the MCU of the optical module, so that the DSP-A is connected to the electrical interface of the optical module through the single-pole double-throw switch chip;

[0068] In normal operating mode, the control pin of the single-pole double-throw switch chip is set high by the MCU of the optical module, so that DSP-A is connected to the I / O port of the MCU of the optical module through the single-pole double-throw switch chip.

[0069] In this embodiment of the invention, the ports of the single-pole double-throw switch chip include an SA terminal, an SB terminal, and a common terminal; the connection methods of the SA terminal, SB terminal, and common terminal with other components are as follows: Figure 3 As shown, the electrical interface of the optical module is connected to the SA terminal of the single-pole double-throw switch chip through communication interface A; the I / O port of the MCU of the optical module is connected to the SB terminal of the single-pole double-throw switch chip through communication interface B; and the DSP-A is connected to the common terminal of the single-pole double-throw switch chip through communication interface C.

[0070] When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip low, the common terminal of the single-pole double-throw switch chip is connected to the SA terminal of the single-pole double-throw switch chip.

[0071] When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip high, the common terminal of the single-pole double-throw switch chip is connected to the SB terminal of the single-pole double-throw switch chip.

[0072] In this embodiment of the invention, under normal operating mode, the communication software sends commands to the MCU of the optical module through protocol conversion interface A, and the communication method is as follows:

[0073] like Figure 4 As shown, the communication software is connected to the protocol conversion interface A; as Figure 5 As shown, the protocol conversion interface A is connected to end a of pin header socket A, and end b of pin header socket A is connected to the optical module electrical interface; by using a first jumper cap to connect end a of pin header socket A to end b of pin header socket A, the protocol conversion interface A is connected to the optical module electrical interface; as shown... Figure 2 As shown, the electrical interface of the optical module is connected to the MCU of the optical module through the communication interface D.

[0074] In this embodiment of the invention, before switching from normal working mode to debugging mode, a mode switching command is sent first, then the first shorting cap is removed, and the protocol conversion interface B and the optical module electrical interface are connected via a connecting cable.

[0075] In embodiments of the present invention, such as Figure 5 As shown, the pin header socket A includes end a and end b, the protocol conversion interface A is connected to end a of the pin header socket A, and the optical module electrical interface is connected to end b of the pin header socket A; the pin header socket B includes end c, and the protocol conversion interface B is connected to end c of the pin header socket B.

[0076] The connection between the protocol conversion interface B and the optical module electrical interface via the connecting cable is specifically achieved by connecting one end of the connecting cable to end b of the pin header socket A and connecting the other end of the connecting cable to end c of the pin header socket B.

[0077] Furthermore, such as Figure 5 As shown, the pin header socket B also includes a d terminal, and the DSP-B is connected to the d terminal of the pin header socket B; the c terminal of the pin header socket B is connected to the d terminal of the pin header socket B through a second jumper cap, so that the protocol conversion interface B is connected to the DSP-B, thereby enabling the evaluation of the function of the DSP-B through the DSP GUI software.

[0078] The DSP-B is a chip within the DSP evaluation board, and the DSP-B and the DSP-A operate independently. The DSP GUI software can both debug the DSP-A and obtain its debugging parameters, and also perform the original function of evaluating the DSP-B.

[0079] In other words, such as Figure 6 As shown, evaluating the DSP-B within the DSP evaluation board using the DSP GUI software is a pre-existing function of the DSP GUI software; without affecting the pre-existing functions of the DSP GUI software, such as... Figure 5 and Figure 2 As shown, by adding the connecting line and the single-pole double-throw switch chip, the DSP GUI software additionally has the function of debugging the DSP-A in the optical module. This eliminates the need for optical module developers to develop their own communication software to debug the DSP-A, saving development time and improving the efficiency of DSP-A debugging. Even if a DSP-A from a different manufacturer is used, as long as the DSP GUI software and DSP evaluation board from that manufacturer are used, a debugging platform can be easily built to quickly and accurately complete the debugging of the DSP-A.

[0080] In embodiments of the present invention, such as Figure 2 As shown, the DSP-A is connected to the memory chip via a microcode loading interface.

[0081] In debug mode, after selecting the microcode of the DSP-A through the DSP GUI software, the microcode is written into the memory chip.

[0082] In normal operating mode, the DSP-A loads the microcode in the storage chip through the microcode loading interface. After loading is completed, the MCU of the optical module sends the debugging parameters to the DSP-A.

[0083] The storage chip includes an E2PROM or a FLASH, and is used to store the microcode of the DSP-A. The microcode, also known as microinstructions, is a series of relatively simple instructions decomposed from complex instructions in a complex instruction set architecture. Before debugging the DSP-A, the DSP-A needs to load the microcode. This invention eliminates the need for the MCU of the optical module to load the microcode, allowing the DSP-A to directly obtain the microcode to be loaded from the storage chip, simplifying the microcode loading process and further improving the efficiency of DSP-A debugging.

[0084] Example 2:

[0085] This invention provides an apparatus for debugging an optical module DSP, used in the optical module DSP debugging method described in Embodiment 1, such as... Figure 4 As shown, the device for debugging the optical module DSP includes: an optical module, an optical module test board, a PC, a DSP evaluation board, and connecting cables; the optical module is connected to the optical module test board by inserting it into the optical module electrical interface socket.

[0086] like Figure 2 As shown, the optical module includes an optical module electrical interface, an MCU, a single-pole double-throw switch chip, and a DSP-A; as Figure 3As shown, the SA terminal of the single-pole double-throw switch chip is connected to the electrical interface of the optical module through communication interface A, the SB terminal of the single-pole double-throw switch chip is connected to the I / O port of the MCU of the optical module through communication interface B, and the common terminal of the single-pole double-throw switch chip is connected to the DSP-A through communication interface C.

[0087] The optical module test board is equipped with an optical module electrical interface socket, a pin header socket A, and a protocol conversion interface A; for example... Figure 5 As shown, the protocol conversion interface A is connected to end a of pin header socket A, and the optical module electrical interface is connected to end b of pin header socket A; the protocol conversion interface A is used to convert the commands of the communication software into the communication protocol supported by the optical module.

[0088] The PC is equipped with communication software and DSP GUI software; the communication software sends commands through the protocol conversion interface A.

[0089] like Figure 6 As shown, the DSP evaluation board includes a protocol conversion interface B, a pin header socket B, and a DSP-B; Figure 5 As shown, the protocol conversion interface B is connected to the c-end of the pin header socket B, and the DSP-B is connected to the d-end of the pin header socket B; the protocol conversion interface B is used to convert the commands of the DSP GUI software into the communication protocol supported by the optical module; the DSP GUI software sends commands through the protocol conversion interface B.

[0090] The connecting line is used to connect the optical module electrical interface and the protocol conversion interface B.

[0091] Specifically, the control pin of the single-pole double-throw switch chip is controlled by the MCU of the optical module, so that the common terminal of the single-pole double-throw switch chip is connected to the SA terminal or the SB terminal of the single-pole double-throw switch chip.

[0092] By shorting the pin header socket A, the protocol conversion interface A and the optical module electrical interface can be connected, thereby connecting the communication software and the optical module electrical interface. The communication software sends commands to the MCU of the optical module through the protocol conversion interface A and the optical module electrical interface.

[0093] The pin header socket A is shorted, specifically by connecting end a of pin header socket A to end b of pin header socket A through the first shorting cap, thereby connecting the protocol conversion interface A to the optical module electrical interface.

[0094] In embodiments of the present invention, such as Figure 6As shown, after removing the connecting wire, shorting it through the pin header socket B allows the DSP GUI software to evaluate the functionality of the DSP-B through the protocol conversion interface B.

[0095] The pin header socket B is shorted, specifically by connecting the c end of the pin header socket B to the d end of the pin header socket B through the second shorting cap, thereby connecting the protocol conversion interface B to the DSP-B.

[0096] In embodiments of the present invention, such as Figure 2 As shown, the optical module also includes a storage chip, and the DSP-A is connected to the storage chip; the storage chip is used to store the microcode of the DSP-A; the storage chip includes E2PROM or FLASH.

[0097] Before debugging the DSP-A, the DSP-A needs to complete the loading of microcode; the microcode, also known as microinstruction, is a series of relatively simple instructions decomposed from some complex instructions under a complex instruction set structure.

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for debugging an optical module DSP, characterized in that, The optical module includes two operating modes: debug mode and normal operating mode, wherein: In debug mode, the protocol conversion interface B and the optical module electrical interface are connected via a connecting cable, so that the DSP GUI software is connected to the optical module electrical interface through the protocol conversion interface B; the MCU of the optical module controls DSP-A to connect to the optical module electrical interface; the DSP-A is debugged through the DSP GUI software, and the debugging parameters are recorded. In normal operating mode, the DSP-A is connected to the I / O port of the MCU of the optical module through the MCU of the optical module. The communication software sends commands to the MCU of the optical module through the protocol conversion interface A, and stores the debugging parameters in the MCU of the optical module. The MCU of the optical module sends the debugging parameters to the DSP-A to complete the configuration of the DSP-A.

2. The method for debugging an optical module DSP according to claim 1, characterized in that, The DSP-A is connected to the electrical interface of the optical module or the I / O port of the optical module's MCU by controlling the control pin of the single-pole double-throw switch chip via the MCU of the optical module. Specifically: In debug mode, the control pin of the single-pole double-throw switch chip is set low by the MCU of the optical module, so that the DSP-A is connected to the electrical interface of the optical module through the single-pole double-throw switch chip; In normal operating mode, the control pin of the single-pole double-throw switch chip is set high by the MCU of the optical module, so that DSP-A is connected to the I / O port of the MCU of the optical module through the single-pole double-throw switch chip.

3. The method for debugging an optical module DSP according to claim 2, characterized in that, The optical module's electrical interface is connected to the SA terminal of the single-pole double-throw switch chip via communication interface A; the I / O port of the optical module's MCU is connected to the SB terminal of the single-pole double-throw switch chip via communication interface B; and the DSP-A is connected to the common terminal of the single-pole double-throw switch chip via communication interface C. When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip low, the common terminal of the single-pole double-throw switch chip is connected to the SA terminal of the single-pole double-throw switch chip. When the MCU of the optical module sets the control pin of the single-pole double-throw switch chip high, the common terminal of the single-pole double-throw switch chip is connected to the SB terminal of the single-pole double-throw switch chip.

4. The method for debugging an optical module DSP according to claim 1, characterized in that, In normal operating mode, the communication software sends commands to the MCU of the optical module via protocol conversion interface A. The communication method is as follows: The communication software is connected to the protocol conversion interface A; the protocol conversion interface A is connected to end a of pin header socket A, and end b of pin header socket A is connected to the optical module electrical interface; the first jumper cap connects end a of pin header socket A to end b of pin header socket A, thereby connecting the protocol conversion interface A to the optical module electrical interface; the optical module electrical interface is connected to the MCU of the optical module through the communication interface D.

5. The method for debugging an optical module DSP according to claim 4, characterized in that, Before switching from normal working mode to debug mode, first send a mode switching command, then remove the first shorting cap, and then execute the step of connecting the protocol conversion interface B and the optical module electrical interface through the connecting cable.

6. The method for debugging an optical module DSP according to claim 5, characterized in that, The connection between the protocol conversion interface B and the optical module electrical interface via the connecting cable is specifically as follows: one end of the connecting cable is connected to the c end of the pin header socket B, and the other end of the connecting cable is connected to the b end of the pin header socket A. The protocol conversion interface B is connected to the c end of the pin header socket B; the optical module electrical interface is connected to the b end of the pin header socket A.

7. The method for debugging the optical module DSP according to any one of claims 1-6, characterized in that, The DSP-A is connected to the memory chip via a microcode loading interface. Specifically: In debug mode, after selecting the microcode of the DSP-A through the DSP GUI software, the microcode is written into the memory chip; In normal operating mode, the DSP-A loads the microcode in the storage chip through the microcode loading interface. After loading is completed, the MCU of the optical module sends the debugging parameters to the DSP-A.

8. A device for debugging an optical module DSP, characterized in that, The apparatus for implementing the optical module DSP debugging method according to any one of claims 1-7 includes: an optical module, an optical module test board, a PC, a DSP evaluation board, and connecting cables; the optical module is connected to the optical module test board by inserting into an optical module electrical interface socket; The optical module includes an optical module electrical interface, an MCU, a single-pole double-throw (SPDT) switch chip, and a DSP-A. The SA terminal of the SPDT switch chip is connected to the optical module electrical interface through communication interface A, the SB terminal of the SPDT switch chip is connected to the I / O port of the optical module's MCU through communication interface B, and the common terminal of the SPDT switch chip is connected to the DSP-A through communication interface C. The optical module test board is equipped with an optical module electrical interface socket, a pin header socket A, and a protocol conversion interface A; the protocol conversion interface A is connected to end a of the pin header socket A, and the optical module electrical interface is connected to end b of the pin header socket A. The PC is equipped with communication software and DSP GUI software; the communication software sends commands through the protocol conversion interface A. The DSP evaluation board includes a protocol conversion interface B, a pin header socket B, and a DSP-B. The protocol conversion interface B is connected to the c-end of the pin header socket B, and the DSP-B is connected to the d-end of the pin header socket B. The DSP GUI software sends commands through the protocol conversion interface B. The connecting cable is used to connect the optical module electrical interface and the protocol conversion interface B; Specifically, the control pin of the single-pole double-throw switch chip is controlled by the MCU of the optical module, so that the common terminal of the single-pole double-throw switch chip is connected to the SA terminal or the SB terminal of the single-pole double-throw switch chip.

9. The apparatus for debugging an optical module DSP according to claim 8, characterized in that, After removing the connecting wire, shorting it through the pin header socket B allows the DSP GUI software to evaluate the functionality of the DSP-B through the protocol conversion interface B.

10. The apparatus for debugging an optical module DSP according to claim 8, characterized in that, The optical module also includes a storage chip, and the DSP-A is connected to the storage chip; the storage chip is used to store the microcode of the DSP-A.