CN216145184U - Device for downloading and debugging optical module firmware code - Google Patents

Device for downloading and debugging optical module firmware code Download PDF

Info

Publication number
CN216145184U
CN216145184U CN202121779194.1U CN202121779194U CN216145184U CN 216145184 U CN216145184 U CN 216145184U CN 202121779194 U CN202121779194 U CN 202121779194U CN 216145184 U CN216145184 U CN 216145184U
Authority
CN
China
Prior art keywords
optical module
pin
interface
debugging
downloading
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
CN202121779194.1U
Other languages
Chinese (zh)
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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN202121779194.1U priority Critical patent/CN216145184U/en
Application granted granted Critical
Publication of CN216145184U publication Critical patent/CN216145184U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The utility model relates to the technical field of optical communication, in particular to a device for downloading and debugging optical module firmware codes, which mainly comprises an optical module PCB and an optical module test board, wherein an optical module electrical interface socket is arranged on the optical module test board, and a communication interface, a code downloading interface and a debugging interface are respectively led out from pins of the optical module electrical interface socket; and one end of the optical module PCB is provided with an optical module programming interface which is connected with an electrical interface socket of the optical module when programming codes, and the optical module programming interface is connected with the communication interface and the code downloading and debugging interface through pins. The utility model does not need flying wires when downloading and debugging the firmware codes, greatly improves the programming reliability of the optical module firmware and can also improve the production efficiency of the optical module.

Description

Device for downloading and debugging optical module firmware code
Technical Field
The utility model relates to the technical field of optical communication, in particular to a device for downloading and debugging optical module firmware codes.
Background
With the development of optical communication technology, optical module technology as a key node in the construction of optical communication networks is increasingly refined, and the packaging form of optical modules is also developed towards the direction of smaller volume at the same rate and higher rate at the same volume.
Due to the increase of the integration level of the optical module, in the technical field of the optical module, a Microcontroller Unit (MCU) is increasingly adopted for the optical module with a digital diagnostic function. The method mainly monitors parameters such as temperature, power supply voltage, bias current, transmitting and receiving optical power and the like of the optical module with a digital diagnosis and detection function in real time, judges the communication working condition of the optical module by analyzing a digital measurement result, and can establish a corresponding communication link for register configuration in an EML laser driver by programming a Micro Controller Unit (MCU) chip.
In order to meet the requirements of various systems, the variety of optical modules will be increased, and the performance will also be higher. The selection of the microcontroller unit MCU chip in the current optical module is roughly divided into: ATEML, Silabs, ADI, and ST, etc. Generally, one of two interfaces is used for downloading and debugging the firmware program of the MCU chip of the MCU, one is a JTAG (joint test action group) protocol interface, and the other is a Serial Wire Debug (SWD) interface. As the package size of the optical module becomes smaller and smaller, no matter which download and debug interface is selected, the optical module faces challenges.
At present, there are two general methods for downloading and debugging a firmware program of an MCU chip of a microcontroller unit, the first method is that a Bootloader program is solidified inside an MCU, and a firmware of an optical module can be downloaded through a communication interface (a serial port or I2C, etc.) according to a manufacturer-specific protocol; the second method is to make several holes or pads on the PCB, and after a Serial Wire Debug (SWD) interface or a Joint Test Action Group (JTAG) protocol interface is connected and flying, a firmware program can be programmed, and a program can also be debugged online.
However, some manufacturers have no fixed Bootloader program on their singlechips, the first method cannot be used, and the first method can only download but cannot debug online, and especially at the initial stage of optical module development, it brings great difficulty to the positioning and solution of firmware problems. The second method also has a disadvantage that the flying lead connection is not reliable, and the optical module is easily damaged because the existing flying lead connection needs to disassemble the shell for flying leads. With the increasing yield of the optical module and the increasing importance of the production efficiency of the optical module, a good method is urgently needed to solve the problems of programming and debugging of the MCU firmware.
In view of this, how to overcome the defects existing in the prior art and solve the above-mentioned problems of MCU firmware programming and debugging are problems to be solved urgently in the art.
SUMMERY OF THE UTILITY MODEL
Aiming at the defects or the improvement requirements of the prior art, the utility model solves the problem that the MCU firmware is inconvenient to write and debug.
The embodiment of the utility model adopts the following technical scheme:
the utility model provides a device for downloading and debugging optical module firmware codes, which comprises an optical module PCB and an optical module test board, wherein the optical module PCB comprises:
an optical module electrical interface socket is arranged on the optical module test board, and a communication interface and a code downloading and debugging interface are respectively led out from pins of the optical module electrical interface socket;
and one end of the optical module PCB is provided with an optical module programming interface which is used for being connected with the optical module electrical interface socket when programming codes, and the optical module programming interface is connected with the communication interface and the code downloading and debugging interface through pins.
Further, the optical module programming interface includes a code download and debug pin and a communication pin, wherein:
the code downloading and debugging pin is connected with the code downloading and debugging interface through a corresponding pin of the optical module electrical interface socket;
the communication pins are connected with the communication interface through corresponding pins of the optical module electrical interface socket.
Furthermore, the code downloading and debugging pin is an SWD pin, and the SWD pin specifically includes an SWDIO pin and an SWDCLK pin.
Further, the communication pin is an I2C pin, and the I2C pin specifically includes an SCL pin and an SDA pin.
Further, the optical module programming interface further includes a common ground pin and a power supply pin, wherein:
the common ground pin is connected with a corresponding ground pin in the optical module electrical interface socket so as to enable the optical module PCB to be in common ground with the optical module test board;
and the power supply pins are connected with corresponding power connection pins in the optical module electrical interface socket so as to supply power to the optical module PCB.
Further, the common ground pin is a GND pin, and the power supply pin is a VCC pin.
Furthermore, the optical module PCB is still provided with an electrical interface relative to the other end of the optical module programming interface, and the GND pin and the VCC pin of the electrical interface correspond to the GND pin and the VCC pin of the optical module programming interface in position.
Further, the package of the optical module programming interface is consistent with the package of the electrical interface.
The PC is connected with the optical module test board so as to display and control the optical module test board and the optical module PCB on the PC.
Further, the PC is provided with communication software and a code integration development tool, wherein:
the communication software is connected with a communication interface of the optical module test board so as to realize the communication between the PC and the optical module test board and the optical module PCB;
the code integrated development tool is connected with the code downloading and debugging interface so as to realize the downloading and debugging functions of the PC to the optical module test board and the firmware code of the optical module PCB.
Compared with the prior art, the embodiment of the utility model has the beneficial effects that: the tail of the optical module PCB is skillfully defined as a programming interface, and the programming interface is packaged the same as an electrical interface (golden finger) at the head of the optical module PCB, so that the programming interface can be connected to an optical module electrical interface socket like an optical module is plugged. The corresponding pins of the electrical interface socket of the optical module are connected with the code downloading interface, so that the firmware can be conveniently downloaded to the optical module through the code downloading interface or the online debugging can be conveniently carried out. In order to facilitate debugging, a communication pin of a single chip Microcomputer (MCU) is also connected to the programming interface, and a pin corresponding to an electrical interface socket of the optical module is connected with the communication interface, so that the running condition of the optical module can be known through communication between the communication interface and the optical module in the debugging process. By the method, flying wires are not needed, so that the programming reliability of the optical module firmware is greatly improved, and the production efficiency of the optical module can also be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural module diagram of an apparatus for downloading and debugging an optical module firmware code according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a QSFP28 optical module PCB according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a structural module of the apparatus after adding a PC according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a QSFP-DD optical module PCB according to an embodiment of the present invention.
Detailed Description
In the description of the present invention, the terms "inner", "outer", "longitudinal", "lateral", "upper", "lower", "top", "bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are for convenience only to describe the present invention without requiring the present invention to be necessarily constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides an apparatus for downloading and debugging an optical module firmware code, including an optical module PCB300 and an optical module test board 100, where the optical module test board 100 is provided with an optical module electrical interface socket 110, and pins of the optical module electrical interface socket 110 are respectively led out of a communication interface 120 and a code downloading and debugging interface 130; an optical module programming interface 320 for connecting with the optical module electrical interface socket 110 during programming of codes is arranged at one end of the optical module PCB300, and when the optical module PCB300 inserts the optical module programming interface 320 into the optical module electrical interface socket 110, the optical module programming interface 320 is connected with the communication interface 120 and the code downloading and debugging interface 130 through pins inside the optical module PCB300, so as to perform communication and code downloading and debugging on the optical module PCB 300.
Through the above design, the pins corresponding to the optical module electrical interface socket 110 are connected to the code downloading and debugging interface 130, and the optical module programming interface 320 is inserted into the optical module electrical interface socket 110, so that the optical module can be conveniently subjected to firmware downloading or online debugging operation through the code downloading and debugging interface 130. For convenience of debugging, in the above design, the communication interface 120 is also connected to the optical module programming interface 320 through the optical module electrical interface socket 110, so that the pins corresponding to the optical module electrical interface socket 110 are connected to the communication interface 120, and thus the communication interface 120 is communicated with the optical module programming interface 320, and thus, in the debugging process, the operating condition of the optical module can be known through the communication between the communication interface 120 and the optical module. Through the arrangement, the firmware code downloading and debugging operation of the optical module can be completed without flying wires, so that the burning reliability of the optical module firmware is greatly improved, and the production efficiency of the optical module can also be improved.
As shown in fig. 2, in the preferred embodiment, taking QSFP28 optical module PCB as an example, the optical module programming interface 320 of the PCB includes a code download and debug pin 323 and a communication pin 324. When the optical module programming interface 320 is inserted into the optical module electrical interface socket 110, the code downloading and debugging pin 323 is connected with the code downloading and debugging interface 130 through a corresponding pin of the optical module electrical interface socket 110, so that the singlechip codes can be downloaded or debugged online through the code downloading and debugging interface 130 after connection; the communication pin 324 is connected to the communication interface 120 through a corresponding pin of the optical module electrical interface socket 110, and can send a command or obtain an operating state of an optical module through the communication interface 120, so as to debug a single chip microcomputer code on line better.
In the preferred embodiment, six gold fingers are led out from the optical module programming interface 320 of the QSFP28 optical module PCB, wherein the code downloading and debugging pin 323 adopts an SWD pin and occupies two gold fingers, and the two gold fingers are an SWDIO pin and an SWDCLK pin respectively; the communication pin 324 adopts an I2C pin and occupies two gold fingers, which are an SCL pin and an SDA pin. The two gold fingers are a common ground pin 321 and a power supply pin 322, respectively, wherein the common ground pin 321 is a GND pin, and the common ground pin 321 is connected to a corresponding ground pin in the optical module electrical interface socket 110, so that the optical module PCB300 and the optical module test board 100 are grounded together; the power supply pin 322 is a VCC pin, and the power supply pin 322 is connected to a corresponding power connection pin in the optical module electrical interface socket 110 to supply power to the optical module PCB 300. It should be noted that, each pin in the optical module electrical interface socket 110 is not shown in the drawings, which is a configuration in the prior art, and need not be described again, and only the position of each pin is required to be consistent with the position of the pin in the optical module programming interface 320.
In the preferred embodiment, the optical module PCB300 is further provided with an electrical interface 310 at the other end opposite to the optical module programming interface 320, and the package of the optical module programming interface 320 is consistent with the package of the electrical interface 310. In the embodiment, one end where the electrical interface 310 is located is defined as a head, and one end where the optical module programming interface 320 is located is defined as a tail, and in the specific use process of the optical module PCB300, if the optical module PCB is normally used, the electrical interface 310 of the head is inserted into the corresponding optical module electrical interface socket 110, and the optical module electrical interface socket can be used; if the firmware code needs to be downloaded and debugged, the optical module programming interface 320 at the tail part is inserted into the corresponding optical module electrical interface socket 110, and the optical module can be used.
It should be noted that, in the preferred embodiment, after the optical module test board 100 is manufactured, the positions of the corresponding code download and debug pins 323 of the optical module programming interface 320 and the gold fingers of the communication pins 324 are already fixed. The positions of the common ground pin 321 (in this embodiment, the GND pin) and the power supply pin 322 (in this embodiment, the VCC pin) may be led out from the front side or the ground of the PCB according to the requirement of the PCB layout, but it is necessary to ensure that the positions of the common ground pin 321 and the power supply pin correspond to the positions of the GND pin and the VCC pin of the electrical interface 310, otherwise, the PCB cannot be normally powered.
As shown in fig. 3, a PC200 may be further added in the embodiment, and after the PC200 is added, the PC200 is connected to the optical module test board 100, so as to display and control the optical module test board 100 and the optical module PCB300 on the PC 200. The PC200 is provided with communication software 210 and a code integration development tool 220, wherein the communication software 210 is connected with the communication interface 120 of the optical module test board 100 to realize communication between the PC200 and the optical module test board 100 and the optical module PCB 300; the code integration development tool 220 is connected to the code download and debug interface 130 to realize the firmware code download and debug functions of the PC200 to the optical module test board 100 and the optical module PCB 300.
In another embodiment, as shown in FIG. 4, a QSFP-DD optical module PCB is taken as an example. Because the electrical interface 310 of the QSFP-DD optical module PCB is relatively large, if the optical module programming interface 320 uses the original electrical interface 310, a lot of space is inevitably wasted. In order to save space, the optical module programming interface 320 uses the same electrical interface package as the QSFP28 optical module PCB in the above embodiment, and the same six gold fingers are also led out, so that the optical module firmware code downloading and debugging of the embodiment can be realized by the same method as the above embodiment.
In summary, the present embodiment skillfully defines the tail of the optical module PCB as the programming interface, and the programming interface is packaged the same as the electrical interface (gold finger) at the head of the optical module PCB, so that the programming interface can be connected to the electrical interface socket of the optical module as if the optical module is plugged. The corresponding pins of the electrical interface socket of the optical module are connected with the code downloading interface, so that the firmware can be conveniently downloaded to the optical module through the code downloading interface or the online debugging can be conveniently carried out. In order to facilitate debugging, a communication pin of a single chip Microcomputer (MCU) is also connected to the programming interface, and a pin corresponding to an electrical interface socket of the optical module is connected with the communication interface, so that the running condition of the optical module can be known through communication between the communication interface and the optical module in the debugging process. By the method, flying wires are not needed, so that the programming reliability of the optical module firmware is greatly improved, and the production efficiency of the optical module can also be improved. In addition, for the optical module PCB with a larger electrical interface, the interface can be programmed by adopting a smaller volume, and the beneficial effect of saving space can be achieved only by ensuring the consistent setting of the golden fingers.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the utility model, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. An apparatus for downloading and debugging optical module firmware code, comprising an optical module PCB (300) and an optical module test board (100), wherein:
an optical module electrical interface socket (110) is arranged on the optical module test board (100), and a communication interface (120) and a code downloading and debugging interface (130) are respectively led out from pins of the optical module electrical interface socket (110);
an optical module programming interface (320) used for being connected with the optical module electrical interface socket (110) when codes are programmed is arranged at one end of the optical module PCB (300), and the optical module programming interface (320) is connected with the communication interface (120) and the code downloading and debugging interface (130) through pins.
2. The apparatus for downloading and debugging of firmware code of a light module according to claim 1, wherein the light module programming interface (320) comprises a code downloading and debugging pin (323) and a communication pin (324), wherein:
the code downloading and debugging pin (323) is connected with the code downloading and debugging interface (130) through a corresponding pin of the optical module electrical interface socket (110);
the communication pins (324) are connected to the communication interface (120) through corresponding pins of the optical module electrical interface socket (110).
3. The apparatus for downloading and debugging light module firmware code according to claim 2, wherein the code download and debug pin (323) is an SWD pin, and the SWD pin specifically comprises an SWDIO pin and a SWDCLK pin.
4. The apparatus for download debugging of firmware code of light module as claimed in claim 2, wherein the communication pin (324) is I2C pin, and the I2C pin specifically comprises SCL pin and SDA pin.
5. The apparatus for download debugging of firmware code of a light module according to claim 2, wherein the light module programming interface (320) further comprises a common ground pin (321) and a power supply pin (322), wherein:
the common ground pin (321) is connected with a corresponding ground pin in the optical module electrical interface socket (110) so that the optical module PCB (300) is in common with the optical module test board (100);
the power supply pins (322) are connected with corresponding power connection pins in the optical module electrical interface socket (110) to supply power to the optical module PCB (300).
6. The apparatus for downloading and debugging of firmware code of optical module according to claim 5, wherein said common ground pin (321) is GND pin, and said power supply pin (322) is VCC pin.
7. The apparatus for downloading and debugging optical module firmware code according to claim 6, wherein said optical module PCB (300) is further provided with an electrical interface (310) at the other end opposite to said optical module programming interface (320), and the GND pin and the VCC pin of said electrical interface (310) correspond to the positions of the GND pin and the VCC pin of said optical module programming interface (320).
8. The apparatus for download debugging of firmware code of a light module as claimed in claim 7, wherein the package of the light module programming interface (320) is identical to the package of the electrical interface (310).
9. The apparatus for downloading and debugging optical module firmware code according to claim 1, further comprising a PC (200), wherein said PC (200) is connected to said optical module test board (100) for displaying and controlling the optical module test board (100) and the optical module PCB (300) on the PC (200).
CN202121779194.1U 2021-08-02 2021-08-02 Device for downloading and debugging optical module firmware code Active CN216145184U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202121779194.1U CN216145184U (en) 2021-08-02 2021-08-02 Device for downloading and debugging optical module firmware code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202121779194.1U CN216145184U (en) 2021-08-02 2021-08-02 Device for downloading and debugging optical module firmware code

Publications (1)

Publication Number Publication Date
CN216145184U true CN216145184U (en) 2022-03-29

Family

ID=80803783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202121779194.1U Active CN216145184U (en) 2021-08-02 2021-08-02 Device for downloading and debugging optical module firmware code

Country Status (1)

Country Link
CN (1) CN216145184U (en)

Similar Documents

Publication Publication Date Title
EP2706462A1 (en) Data structures for facilitating communication between a host device and an accessory
JPH0769853B2 (en) In-circuit emulator
CN111045930A (en) Method and system for downloading and debugging optical module code
CN102801818B (en) Universal sensor interface acquisition system based on ZigBee technology
CN216901630U (en) Interface conversion circuit and chip burning device
CN107861866A (en) A kind of embedded systems debugging method based on UART interface
TWI642957B (en) Automatic power-on device and method
CN216145184U (en) Device for downloading and debugging optical module firmware code
CN208141371U (en) A kind of multi-functional UART debugging board
CN207182186U (en) It is a kind of that there is LED to show and the UI plates of versatile interface
CN110058542A (en) A kind of development platform device based on ARM9260
CN102591835B (en) Portable downloader
CN112269704A (en) Python-based serial port debugging method and debugging system
CN112114899A (en) Chip debugging system and debugger
CN109995425B (en) Method for testing communication port of equipment and tool device
CN103389438B (en) A kind of for the welding detection system with cpu pcb and method
CN103366812B (en) The device of Flash online programming and implementation method on circuit board
CN206259587U (en) Burning program debugs adapter
CN205983458U (en) Debugging download equipment and debugging download apparatus
CN208819045U (en) A kind of FPGA development board
CN217932494U (en) Universal aging board for single-chip microcomputer
CN107729033B (en) Embedded system, programmer and method for realizing online programming
CN210428425U (en) General DSP chip debugging interface equipment
CN215895442U (en) ARM singlechip burns record equipment
CN105528270B (en) JTAG (Joint test action group) and BDM (brain-based data model) integrated debugging interface and using method thereof

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant