Search

CN-122001476-A - Optical module and control method

CN122001476ACN 122001476 ACN122001476 ACN 122001476ACN-122001476-A

Abstract

The optical module and the control method comprise a circuit board, an MCU, a DSP, a first register, a second register and a third protocol area, wherein a golden finger is formed on the surface of one end of the circuit board, the golden finger comprises an I2C pin, the MCU is arranged on the circuit board and connected with the I2C pin, the DSP is arranged on the circuit board and electrically connected with the MCU, the first register is used for storing a first preset value written by an upper computer through the I2C pin and used for indicating the MCU to obtain a register value of a target register in the DSP, the target register comprises a plurality of registers, and the MCU is configured to respond to the first preset value in the first register to obtain the register value of the target register and store the register value of the target register into the first protocol area for the upper computer to read. The MCU is more convenient to acquire the register values of the plurality of registers, and occupation of MCU resources can be saved.

Inventors

  • TANG JIAQUAN
  • WANG HENG
  • WANG WEI
  • CHEN ZAOPIN
  • DONG SHUFEN

Assignees

  • 广东海信宽带科技有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (10)

  1. 1. An optical module, comprising: The surface of one end of the circuit board is provided with a golden finger, and the golden finger comprises an I2C pin; the MCU is arranged on the circuit board and is connected with the I2C pin; the DSP is arranged on the circuit board and is electrically connected with the MCU; The MCU comprises a first register, wherein the first register is used for storing a first preset value written by an upper computer through an I2C pin, the first preset value is used for indicating the MCU to acquire a register value of a target register in the DSP, the target register comprises a plurality of registers, and the MCU is configured to: And responding to a first preset value in the first register, acquiring a register value of the target register and storing the register value into a first protocol area for reading by the upper computer.
  2. 2. The optical module of claim 1, wherein the MCU includes a second register for storing a preset debug command written by a host computer, the preset debug command being for instructing the DSP to adjust or obtain parameters of the DSP, the MCU further configured to: Responding to a preset debugging command written in the second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU; And receiving an execution result fed back by the DSP and storing the execution result into the second register so that the upper computer reads the execution result from the second register.
  3. 3. The optical module of claim 1, wherein obtaining the register value of the destination register and storing the register value in a first protocol field comprises mapping the register value of the destination register to a first protocol field, the first protocol field being located in the first register.
  4. 4. The light module of claim 1 or 2, wherein the MCU is further configured to clear a first preset value in the first register after storing a register value of the target register in the first protocol zone; and notifying the upper computer to read the register value stored in the first protocol area.
  5. 5. The optical module according to claim 2, wherein the second register is further configured to store a debug parameter written by a host computer, the debug parameter being a parameter for the DSP to execute the preset debug command; responding to the preset debugging command written in the second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU, wherein the method comprises the following steps: And responding to a preset debugging command written in the second register, sending the preset debugging command and the debugging parameter to the DSP, so that the DSP adjusts the parameter of the DSP based on the debugging command and the debugging parameter and feeds back an execution result to the MCU.
  6. 6. An optical module, comprising: The surface of one end of the circuit board is provided with a golden finger, and the golden finger comprises an I2C pin; the MCU is arranged on the circuit board and is connected with the I2C pin; the DSP is arranged on the circuit board and is electrically connected with the MCU; the MCU comprises a second register, wherein the second register is used for storing a preset debugging command written in by an upper computer through an I2C pin, the preset debugging command is used for indicating the DSP to adjust or acquire parameters of the DSP, and the MCU is configured to: responding to a preset debugging command in the second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU; And receiving an execution result fed back by the DSP and storing the execution result into the second register so that the upper computer reads the execution result from the second register.
  7. 7. The optical module of claim 6, wherein the second register is further configured to store a debug parameter written by a host computer, the debug parameter being a parameter for the DSP to execute the preset debug command; responding to the preset debugging command written in the second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU, wherein the method comprises the following steps: And responding to a preset debugging command written in the second register, sending the preset debugging command and the debugging parameter to the DSP, so that the DSP adjusts the parameter of the DSP based on the debugging command and the debugging parameter and feeds back an execution result to the MCU.
  8. 8. The control method is characterized by comprising the steps of being used for an optical module, wherein the optical module comprises an MCU, the MCU comprises a first register, the first register is used for storing a first preset value written in by an upper computer, and the method comprises the following steps: And responding to a first preset value written in a first register, acquiring a register value of a target register in the DSP and storing the register value in a first protocol area for reading by a host computer, wherein the first preset value is used for indicating the MCU to acquire the register value of the target register in the DSP, and the target register comprises a plurality of registers.
  9. 9. The control method according to claim 8, wherein the MCU further comprises a second register for storing a preset debug command written by an upper computer, the preset debug command being for instructing the DSP to adjust or acquire parameters of the DSP, the method further comprising: responding to a preset debugging command written in a second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU; And receiving an execution result fed back by the DSP and storing the execution result into the second register so that the upper computer reads the execution result from the second register.
  10. 10. The control method of claim 8, further comprising obtaining a register value of a target register within the DSP and storing the register value in the first protocol field, including mapping the register value of the target register to the first protocol field.

Description

Optical module and control method Technical Field The disclosure relates to the technical field of optical fiber communication, and in particular relates to an optical module and a control method. Background With the development of new business and application modes such as cloud computing, mobile internet, video and the like, the development and progress of optical communication technology become more and more important. In the optical communication technology, the optical module is a tool for realizing the mutual conversion of optical signals, is one of key devices in optical communication equipment, and the transmission rate of the optical module is continuously improved along with the development of the optical communication technology. Disclosure of Invention Some embodiments provide an optical module comprising: The surface of one end of the circuit board is provided with a golden finger, and the golden finger comprises an I2C pin; the MCU is arranged on the circuit board and is connected with the I2C pin; the DSP is arranged on the circuit board and is electrically connected with the MCU; The MCU comprises a first register, wherein the first register is used for storing a first preset value written by an upper computer through an I2C pin, the first preset value is used for indicating the MCU to acquire a register value of a target register in the DSP, the target register comprises a plurality of registers, and the MCU is configured to: And responding to a first preset value in the first register, acquiring a register value of the target register and storing the register value into a first protocol area for reading by the upper computer. One of the above technical solutions has the following advantages or beneficial effects: When the DSP is required to diagnose faults, the upper computer needs to acquire the register values of a target register in the DSP, wherein the target register comprises a plurality of registers so as to diagnose the DSP based on the register values of the plurality of registers. In the conventional technology, the upper computer continuously issues a plurality of commands, so that the MCU continuously responds to the plurality of commands, and the MCU sequentially acquires register values of a plurality of registers from the DSP. In the technical scheme, the upper computer transmits a first preset value to the MCU, and the MCU responds to the received first preset value to acquire a register value of a target register in the DSP and store the register value into the first protocol area, so that the upper computer directly reads the register value of the target register from the first protocol area. Therefore, the upper computer can acquire the register values of the plurality of registers in the DSP by issuing a command, and compared with the method for acquiring the register values of the plurality of registers in the upper computer in the conventional technology, the method for acquiring the register values of the plurality of registers is more convenient, and the occupation of MCU resources can be saved. Some embodiments provide an optical module, the MCU includes a second register for storing a preset debug command written by an upper computer, the preset debug command being used for instructing the DSP to adjust or obtain parameters of the DSP, the MCU is further configured to: Responding to a preset debugging command written in the second register, sending the preset debugging command to the DSP, enabling the DSP to adjust or acquire parameters of the DSP based on the debugging command and feeding back an execution result to the MCU; And receiving an execution result fed back by the DSP and storing the execution result into the second register so that the upper computer reads the execution result from the second register. The other technical scheme has the advantages or beneficial effects that in the conventional technology, when the upper computer needs to adjust parameters of the DSP or acquire parameters of the DSP, the upper computer issues corresponding commands, and the MCU receives the commands, analyzes the commands and calls internal corresponding functions to control the DSP based on the commands so as to adjust or acquire the parameters of the DSP. In the technical scheme, the upper computer issues a preset debugging command to the MCU, the MCU receives the preset debugging command and sends the preset debugging command to the DSP, so that the DSP adjusts or acquires parameters of the DSP and acquires an execution result based on the preset debugging command, the DSP feeds the execution result back to the MCU, the MCU receives the execution result fed back by the DSP and stores the execution result in the second register, and the upper computer acquires the execution result from the second register. In the technical scheme, the MCU realizes transparent transmission of the command for adjusting or acquiring the DSP parameters, and compared with the prior art tha