Method and system for downloading and debugging optical module codes
An optical module testing and optical module technology, which is applied in the field of optical communication and can solve the problems of inconvenient downloading of MCU firmware program and online debugging.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] In order to realize the firmware program download and online debugging of the packaged optical module, this embodiment provides a method for downloading and debugging the code of the optical module, including the following steps, as figure 1 Shown:
[0039] Step 101: Connect the optical module function control pin and the optical module status pin to the MCU download and debug pin.
[0040] After the optical module is packaged, the MCU download and debugging pin is encapsulated inside the optical module, and cannot be connected to the outside for firmware program download and debugging, but the interface of the optical module function control pin and the optical module status pin is kept outside the optical module. Communication with the outside is possible. Connect the function control pin and status pin of the optical module to the MCU download and debug pin, and connect the MCU download and debug pin to the outside through the function control pin of the optical mod...
Embodiment 2
[0053] Regarding the method for downloading and debugging the optical module code provided in Embodiment 1, the optical module can complete firmware code downloading and debugging without disassembly or other hardware changes. After downloading and debugging the firmware code of the optical module, set the working mode of the optical module to the normal working mode, set the working mode of the optical module to the normal working mode, and set the pins and levels to normal and correct input and output levels. This enables the optical module to work normally.
[0054] Such as figure 2 As shown, the steps to switch the optical module to the normal working state are as follows:
[0055] Step 201: Confirm that the working mode status value of the optical module has been set to the normal working mode.
[0056] Before downloading and debugging the code of the firmware program, it is necessary to set and confirm the working mode of the optical module. Only when the working mode...
Embodiment 3
[0093] The methods for downloading and debugging optical module codes provided in Embodiment 1 and Embodiment 2 can be realized through a corresponding optical module code downloading and debugging system.
[0094] Such as Image 6 As shown, the composition and connection relationship of each module realized by the optical module code download and debugging system are as follows.
[0095] The optical module code downloading and debugging system provided in this embodiment mainly includes: an optical module test board 100 , a PC 200 and an optical module 300 .
[0096] Such as Image 6 As shown, the optical module test board 100 is connected to the optical module 300 through an electrical interface. Specifically, such as Figure 7 As shown, the optical module test board 100 includes an optical module electrical interface socket 110 , and the optical module test board 100 and the optical module 300 are connected through the electrical interface on the optical module electrica...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


