Optical module firmware downloading device, downloading system and optical module
By designing an optical module firmware download device including a first controller module, a first signal transmission interface module, a communication interface module and a MCU write control module, the problem of the MCU firmware slow interface and DSP firmware writing speed is solved, and an efficient firmware writing process is realized.
Patent Information
- Application Number
- CN202411911483.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-02-28
AI Technical Summary
Existing optical modules need to reserve interfaces when writing MCU firmware, and the DSP firmware is slow to write, which affects production efficiency.
A download device for optical module firmware is designed, including a first controller module, a first signal transmission interface module, a communication interface module and an MCU write control module. Through these modules, the writing control of the MCU and DSP firmware in the optical module body is realized without reservation of interfaces, and the writing speed of the DSP firmware is improved by optimizing the writing process.
It realizes interfaceless writing of MCU firmware, improves the writing speed of DSP firmware, and solves the problems of interface occupation and low writing efficiency in optical module production.
Smart Images

Figure CN119536761A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical modules, and in particular to a device for downloading optical module firmware, a system for downloading optical module firmware, and an optical module. Background Art
[0002] Currently, optical modules with DSP signal processing involve two types of firmware download and burning during their product life cycle, one is the firmware download and burning of the optical module main control MCU, and the other is the firmware download and burning of the high-speed signal processing chip DSP. The burning of these two parts of firmware is an essential process during production and debugging; and when the optical module product fails after being sold, it is also necessary to upgrade the firmware of the optical module when adding functions or repairing known defects.
[0003] At present, there are two mainstream solutions for downloading the main control MCU of the optical module. The first is to directly reserve a dedicated MCU download interface space on the optical module; the second method is to burn two programs separately before the optical module leaves the factory, that is, first burn a bootloader program, and then with the help of the bootloader program, burn an APP firmware program, and after the APP firmware program is burned, the bootloader will guide the APP firmware program to start. This download process of the second method still requires leaving a bootloader burning interface on the optical module. Therefore, the current download solutions for the main control MCU of the optical module all require a reserved interface. This method of reserving an interface not only occupies PCBA space, but also has a negative impact on the signal integrity of the PCBA, and has restrictions on the miniaturization of optical modules and the improvement of communication speed. In addition, the use of bootloader also has a negative impact on the startup time of the optical module to a certain extent.
[0004] At present, the burning of mainstream DSP chip firmware is mostly realized by borrowing DSP chip control burning. This burning method has a very slow burning speed, about 40-60 minutes, which seriously hinders production efficiency.
[0005] Therefore, how to avoid reserving an interface when burning the main control MCU firmware of the optical module and at the same time improve the DSP firmware burning speed has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0006] The present invention provides a download device for optical module firmware, a download system for optical module firmware and an optical module, which solve the problems in the related art that a reserved interface is required for burning the main control MCU firmware of the optical module and the burning efficiency of the DSP firmware is low.
[0007] As a first aspect of the present invention, a device for downloading optical module firmware is provided, which includes: a first controller module, a first signal transmission interface module, a communication interface module and an MCU burning control module, wherein the first controller module and the MCU burning control module are both communicatively connected to the first signal transmission interface module, the first controller module is communicatively connected to the communication interface module, and the MCU burning control module can be communicatively connected to a host computer; The signal transmission first interface module is used to realize the communication connection between the download device of the optical module firmware and the optical module body; The communication interface module is used to realize the communication connection between the first controller module and the host computer; The MCU burning control module is used to generate an MCU firmware burning control signal according to the MCU firmware issued by the host computer when receiving the MCU burning trigger signal, and transmit the MCU firmware to the optical module body after the MCU firmware burning circuit in the optical module body is connected to realize the burning of the MCU firmware, wherein the MCU firmware burning control signal can control the connection of the MCU firmware burning circuit in the optical module body; The first controller module is used to generate a DSP firmware burning control signal according to the DSP firmware issued by the host computer and transmit the DSP firmware to the optical module body after the DSP firmware burning circuit in the optical module body is connected to realize the burning of the DSP firmware, wherein the DSP firmware burning control signal can control the connectivity of the DSP firmware burning circuit in the optical module body.
[0008] Further, the MCU burning control module includes a burning control terminal and an MCU burner, the MCU burner can be communicatively connected with the host computer, and the burning control terminal is communicatively connected with the signal transmission first interface module; The burn control terminal is used to receive an MCU burn trigger signal and generate an MCU firmware burn control signal according to the MCU burn trigger signal; The MCU burner is used to transmit the MCU firmware to the optical module body to realize the burning of the MCU firmware after the MCU firmware burning circuit in the optical module body is connected.
[0009] Furthermore, the MCU burning control module also includes an MCU firmware burning port, which is communicatively connected to the MCU burner and the signal transmission first interface module respectively, and the MCU firmware burning port is used to transmit the MCU firmware from the MCU burner to the signal transmission first interface module, and transmit it to the optical module body through the signal transmission first interface module to realize the burning of the MCU firmware.
[0010] Furthermore, the downloading device of the optical module firmware also includes: a DSP firmware burning port, which is communicatively connected to the first controller module, and the DSP firmware burning port is used to transmit the DSP firmware in the first controller module to the optical module body through the signal transmission first interface module to realize the burning of the DSP firmware.
[0011] Furthermore, the optical module firmware downloading device further comprises: a controller burning port, the controller burning port is communicatively connected with the first controller module, and the controller burning port is used to implement program burning in the first controller module.
[0012] As another aspect of the present invention, there is provided a device for downloading optical module firmware, which includes: a second controller module, a first signal transmission interface module and a communication interface module, wherein the second controller module is communicatively connected with the first signal transmission interface module and the communication interface module respectively; The signal transmission first interface module is used to realize the communication connection between the download device of the optical module firmware and the optical module body; The communication interface module is used to realize the communication connection between the second controller module and the host computer; The second controller module is used to receive and determine the firmware type of the firmware file to be burned sent by the host computer, and generate a corresponding firmware burning control signal according to the determined firmware type, and when the corresponding firmware burning circuit in the optical module body is connected, the corresponding firmware is transmitted to the optical module body to realize the burning of the corresponding firmware, wherein the firmware file to be burned includes a firmware file and a firmware type identifier corresponding to the firmware file, the firmware type includes MCU firmware and DSP firmware, and the firmware burning control signal is used to control the connectivity of the corresponding firmware burning circuit in the optical module body.
[0013] Furthermore, the optical module firmware downloading device further comprises: a controller burning port, the controller burning port being communicatively connected with the second controller module, the controller burning port being used to implement program burning in the second controller module; The optical module firmware downloading device further includes: a power module, the power module is communicatively connected with the second controller module, and the power module is used to provide power for the operation of the second controller module.
[0014] As another aspect of the present invention, a system for downloading optical module firmware is provided, which includes a host computer and the optical module firmware downloading device described above, the optical module firmware downloading device is communicatively connected to the host computer, the host computer is used to store and issue firmware to be burned, and the optical module firmware downloading device is used to control the connectivity of the corresponding firmware type burning circuit of the optical module body according to the firmware to be burned issued by the host computer to complete the burning of the corresponding firmware.
[0015] As another aspect of the present invention, an optical module is provided, which includes an optical module body and the optical module firmware downloading system as described above, wherein the optical module body is communicatively connected with the optical module firmware downloading system; The optical module firmware download system is used to control the connectivity of the burning circuit of the optical module body, and transmit the corresponding burning firmware to the optical module body to complete the corresponding firmware burning.
[0016] Further, the optical module body includes: a signal transmission second interface module, an MCU burning signal switching module, a DSP burning signal switching module, an MCU main control chip, a DSP processing chip and a DSP external memory, the MCU burning signal switching module and the DSP burning signal switching module are both communicatively connected to the signal transmission second interface module, the MCU main control chip is communicatively connected to the MCU burning signal switching module and the DSP burning signal switching module respectively, the DSP external memory is communicatively connected to the DSP burning signal switching module and the DSP processing chip respectively, and the DSP processing chip is also communicatively connected to the signal transmission second interface module; The signal transmission second interface module is used to realize the communication connection with the signal transmission first interface module in the download system of the optical module firmware, so as to realize the signal transmission between the optical module body and the download device of the optical module firmware; The MCU burning signal switching module is used to perform signal switching according to the MCU firmware burning control signal in the optical module firmware download system to achieve connectivity of the MCU firmware burning circuit; The DSP burning signal switching module is used to perform signal switching according to the DSP firmware burning control signal in the download system of the optical module firmware to achieve connectivity of the DSP firmware burning circuit; The MCU main control chip is used to receive the MCU firmware to complete the MCU firmware burning when the MCU burning signal switching module is switched to the burning line connection, and is used to implement the MCU function when the MCU burning signal switching module is switched to the function line connection; The DSP external memory is used to receive and store DSP firmware when the DSP burning signal switching module is switched to the burning line connection and to receive and store data required for DSP functions when the DSP burning signal switching module is switched to the function line connection; The DSP processing chip is used to receive the DSP firmware in the DSP external memory to complete DSP firmware burning when the DSP burning signal switching module switches to the burning line connection, and is used to implement DSP functions when the DSP burning signal switching module switches to the function line connection.
[0017] The optical module firmware downloading device provided by the present invention is provided with a first controller module and an MCU burning control module, and performs signal transmission with the optical module body through a first signal transmission interface module, realizes the burning control of the DSP firmware in the optical module body through the first controller module, and realizes the burning control of the MCU firmware in the optical module body through the MCU burning control module, which can simultaneously meet the burning of the MCU firmware and the burning of the DSP firmware in the optical module body, and at the same time, no interface needs to be reserved for the burning of the MCU firmware, and at the same time, since there is no need to burn the DSP firmware separately through the DSP chip, the burning speed of the DSP firmware can be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.
[0019] Figure 1 This is a structural block diagram of an implementation scheme of the device for downloading optical module firmware provided by the present invention.
[0020] Figure 2 A block diagram of the specific working principles of an implementation of the device for downloading optical module firmware provided by the present invention.
[0021] Figure 3 This is a schematic diagram of the gold finger signal channel provided by the present invention.
[0022] Figure 4 A schematic diagram of the programming process of the MCU firmware provided by the present invention.
[0023] Figure 5 The present invention provides a schematic diagram of the DSP firmware programming process.
[0024] Figure 6 This is a structural block diagram of another implementation of the device for downloading optical module firmware provided by the present invention.
[0025] Figure 7 This is a structural block diagram of the optical module firmware download system provided by the present invention.
[0026] Figure 8 This is a structural block diagram of the optical module provided by the present invention.
[0027] Fig. 9 This is a structural block diagram of the optical module body provided by the present invention.
[0028] Fig.10 This is a circuit schematic diagram of the signal switching chip provided by the present invention. DETAILED DESCRIPTION
[0029] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] In the current optical module industry, MCU firmware burning requires writing a bootloader program and reserving a download port on the optical module. After power-on, a bootloader is required, which relatively prolongs the startup time of the optical module. DSP firmware burning has problems such as slow burning speed, and the DSP firmware is mostly burned separately through the DSP chip, and the DSP firmware cannot be upgraded again in the after-sales stage.
[0033] Based on this, in this embodiment, a device for downloading optical module firmware is provided. Figure 1 1 is a structural block diagram of a device 100 for downloading optical module firmware according to an embodiment of the present invention. Figure 1 As shown, including: A first controller module 110, a first signal transmission interface module 120, a communication interface module 130 and an MCU burning control module 140, wherein the first controller module 110 and the MCU burning control module 140 are both connected to the first signal transmission interface module 120 for communication, the first controller module 110 is connected to the communication interface module 130 for communication, and the MCU burning control module 140 can be connected to the host computer 200 for communication; The signal transmission first interface module 120 is used to realize the communication connection between the optical module firmware download device and the optical module body; The communication interface module 130 is used to realize the communication connection between the first controller module 110 and the host computer; The MCU burning control module 140 is used to generate an MCU firmware burning control signal according to the MCU firmware issued by the host computer when receiving the MCU burning trigger signal, and transmit the MCU firmware to the optical module body after the MCU firmware burning circuit in the optical module body is connected to realize the burning of the MCU firmware, wherein the MCU firmware burning control signal can control the connection of the MCU firmware burning circuit in the optical module body; The first controller module 110 is used to generate a DSP firmware burning control signal according to the DSP firmware issued by the host computer 200 and transmit the DSP firmware to the optical module body after the DSP firmware burning circuit in the optical module body is connected to realize the burning of the DSP firmware, wherein the DSP firmware burning control signal can control the connectivity of the DSP firmware burning circuit in the optical module body.
[0034] In an embodiment of the present invention, when the MCU burning control module 140 receives a burning trigger signal, it can be determined that the MCU firmware needs to be burned at present. At this time, an MCU firmware burning control signal can be generated according to the MCU firmware sent by the host computer. The MCU firmware burning control signal can be transmitted to the optical module body through the signal transmission first interface module 120. The optical module body connects the MCU firmware burning circuit in the body according to the MCU firmware burning control signal, and the MCU firmware can be burned based on this. Therefore, after the MCU firmware burning circuit in the optical module body is connected, the MCU burning control module 140 transmits the MCU firmware to the optical module body through the signal transmission first interface module 120 to realize the burning of the MCU firmware.
[0035] In the embodiment of the present invention, when it is necessary to burn the DSP firmware, a DSP firmware burning control signal is generated according to the DSP firmware issued by the host computer, and the DSP firmware burning control signal can be transmitted to the optical module body through the first signal transmission interface module, and the optical module body connects the DSP firmware burning circuit in the body according to the DSP firmware burning control signal, based on which the DSP firmware can be burned. Therefore, after the DSP firmware burning circuit in the optical module body is connected, the first controller module 110 transmits the DSP firmware to the optical module body through the first signal transmission interface module 120 to realize the burning of the DSP firmware.
[0036] It should be noted here that a second signal transmission interface module may be provided on the optical module body, and the optical module firmware downloading device and the optical module body realize signal transmission through the communication connection between the first signal transmission interface module and the second signal transmission interface module.
[0037] Therefore, the downloading device of the optical module firmware provided by the present invention is provided with a first controller module and an MCU burning control module, and performs signal transmission with the optical module body through the signal transmission first interface module, and realizes the burning control of the DSP firmware in the optical module body through the first controller module, and realizes the burning control of the MCU firmware in the optical module body through the MCU burning control module, which can simultaneously meet the burning of the MCU firmware and the burning of the DSP firmware in the optical module body, and at the same time, no interface needs to be reserved for the burning of the MCU firmware, and at the same time, since there is no need to burn the DSP firmware separately through the DSP chip, the burning speed of the DSP firmware can be greatly improved.
[0038] In the embodiment of the present invention, Figure 2 As shown, the MCU burning control module 140 includes a burning control terminal 141 and an MCU burner 142, the MCU burner 142 can be communicatively connected with the host computer 200, and the burning control terminal 141 is communicatively connected with the signal transmission first interface module 120; The burn control terminal 141 is used to receive an MCU burn trigger signal and generate an MCU firmware burn control signal according to the MCU burn trigger signal; The MCU burner 142 is used to transmit the MCU firmware to the optical module body to realize the burning of the MCU firmware when the MCU firmware burning circuit in the optical module body is connected.
[0039] Specifically, the burn control terminal 141 receives the MCU burn trigger signal, and the burn control terminal can be implemented as a dip switch. That is, when the dip switch receives the MCU burn trigger signal, it generates an MCU firmware burn control signal according to the MCU burn trigger signal, and the MCU burn trigger signal here can be an MCU burn trigger signal generated by manually turning the dip switch.
[0040] The MCU writer 142 is specifically connected to the host computer for communication. The MCU firmware to be written is sent from the host computer to the MCU writer 142, and the MCU writer 142 transmits the MCU firmware to the optical module body through the first signal transmission interface module 120 to complete the writing of the MCU firmware.
[0041] In the embodiment of the present invention, Figure 2 As shown, the MCU burning control module 140 also includes an MCU firmware burning port 143, and the MCU firmware burning port 143 is respectively communicated with the MCU burner 142 and the signal transmission first interface module 120, and the MCU firmware burning port 143 is used to transmit the MCU firmware from the MCU burner 142 to the signal transmission first interface module 120, and transmit it to the optical module body through the signal transmission first interface module 120 to realize the burning of the MCU firmware.
[0042] Specifically, the MCU firmware burning port 143 can transmit the MCU firmware in the MCU burner 142 to the first signal transmission interface module 120, so that the MCU firmware is transmitted to the optical module body through the first signal transmission interface module 120 to complete the burning of the MCU firmware. It should be understood that when the MCU firmware is debugged online, the online debugging of the program in the optical module body can still be achieved through the MCU burner and the MCU firmware burning port.
[0043] In an embodiment of the present invention, the downloading device of the optical module firmware also includes: a DSP firmware burning port 150, which is communicatively connected to the first controller module 110, and the DSP firmware burning port 150 is used to transmit the DSP firmware in the first controller module 110 to the optical module body through the signal transmission first interface module 120 to realize the burning of the DSP firmware.
[0044] It should be noted that when burning the DSP firmware, the DSP firmware burning port 150 can specifically transmit the DSP firmware to the DSP external memory in the optical module body through the signal transmission first interface module 120, and the DSP external memory burns the DSP firmware into the DSP chip via the DSP burning port in the optical module body.
[0045] Specifically, the DSP firmware burning port 150 is specifically connected to the first controller module 110 and the first signal transmission interface module 120, respectively, and can transmit the DSP firmware in the first controller module 110 to the optical module body through the first signal transmission interface module 120 to realize the burning of the DSP firmware. It should be understood that when the DSP firmware needs to be upgraded, the DSP upgrade firmware in the first controller module 110 can still be transmitted to the optical module body through the first signal transmission interface module 120 through the DSP firmware burning port to complete the upgrade of the DSP firmware. Therefore, when the DSP firmware needs to be upgraded after sales, there is no need to disassemble the product shell to achieve the upgrade of the DSP firmware.
[0046] In the embodiment of the present invention, the first controller module 110 may be implemented as a single chip microcomputer.
[0047] It should be understood that the implementation of the functions of the first controller module 110 also generally requires burning the firmware program in the controller.
[0048] Based on this, the optical module firmware downloading device further includes: a controller burning port 160 , the controller burning port 160 is communicatively connected with the first controller module 110 , and the controller burning port 160 is used to implement program burning in the first controller module 110 .
[0049] Therefore, in order to ensure the normal operation of the first controller module 110 , a controller burning port 160 is further provided in the optical module firmware downloading device 100 , and the controller burning port 160 can burn the firmware required for the first controller module 110 into the first controller module 110 .
[0050] In the embodiment of the present invention, the optical module firmware downloading device 100 further includes: a power module 170 , which is communicatively connected to the first controller module 110 , and is used to provide power for the operation of the first controller module 110 .
[0051] It should be understood that the power module 170 can be implemented by using a power module that can meet the power supply requirements of the single-chip microcomputer, and can be a charging power supply or a battery, which is not limited in the specific embodiments of the present invention.
[0052] In an embodiment of the present invention, the signal transmission first interface module 120 can be specifically implemented by a gold finger slot, and the signal transmission second interface module on the optical module body can be specifically implemented by a gold finger. Therefore, the downloading device of the optical module firmware realizes communication connection with the gold finger on the optical module body through the gold finger slot, thereby realizing signal transmission.
[0053] It should be noted that the optical module body of the embodiment of the present invention essentially uses the signal on the gold finger as a physical channel to implement firmware burning. In theory, both the non-ground signal and the non-voltage signal on the gold finger can be used. Considering the high-speed characteristics of the PAM4 differential pair signal, if it is borrowed, it will affect the high-speed characteristics in the PCBA layout, so the PAM4 differential signal pair is excluded. Figure 3 As shown, there are 7 signal channels available on the gold finger, which are: QSFP_SCL / QSFP_SDA / QSFP_MODSELn / QSFP_MOD_RSTn / QSFP_LPMode / QSFP_INTn / QSFP_MOD_ABS.
[0054] In the embodiment of the present invention, taking the SW type MCU download interface as an example, it requires 2 signal channels, taking the SPI interface of the DSP external memory as an example, it requires at least 3 signal channels of SCK / MOSI / MISO, the MCU burning signal switching module and the DSP burning signal switching module each require 1 control signal channel, and the number of physical channels of the gold finger just meets the requirements.
[0055] It should be understood that most MCU download interfaces currently on the market are of SW type.
[0056] It should be noted that the first signal transmission interface module 120 and the second signal transmission interface module may of course also adopt other communication interface types, which are not limited here.
[0057] In the embodiment of the present invention, the communication interface module 130 may specifically be a serial communication interface such as RS232 or RS485. The embodiment of the present invention does not limit the specific communication interface type and may be selected as needed.
[0058] Combine the following Figure 2 The working principle of the optical module firmware downloading device provided in the embodiment of the present invention and the burning process of the MCU firmware and the DSP firmware are described in detail.
[0059] Taking the signal transmission first interface module 120 as a gold finger slot as an example, the optical module firmware download device 100 may specifically include an auxiliary burning board, on which a cage matching the gold finger is arranged, the gold finger slot is located in the cage, and the cage of the gold finger slot corresponds to the gold finger interface of the optical module body, which may specifically be a QSFP interface, to meet the requirements of the plug-in connection between the optical module and the auxiliary burning board (7). When the gold finger of the optical module body is inserted into the slot, all signals on the gold finger can be transferred to the auxiliary burning board.
[0060] A burning control terminal 141 is set on the auxiliary burning board, and the burning control terminal 141 can control the signal switching of the MCU burning signal switching module located on the optical module body, and the signal transmission between the gold finger slot and the gold finger can control the channel switching of the MCU burning signal switching module. Specifically, the burning control terminal 141 can be a dip switch, and the output signal of the MCU burning signal switching module is controlled by the voltage level selection. When the MCU main control chip firmware needs to be burned, the MCU burning signal switching module on the optical module body is controlled by the dip switch, so that the burning interface signal on the gold finger is connected to the MCU burning interface on the optical module body, and the burning and debugging of the MCU firmware on the optical module body can be completed through the host computer 200 and the MCU burner 142.
[0061] A first controller module 110 is also provided on the auxiliary burning board, and the first controller module 110 can realize the burning control and firmware upgrade control of the DSP firmware. The DSP firmware is mostly a hex file or a bin file provided by the DSP manufacturer. The communication software of the host computer 200 is responsible for selecting the file and issuing the file through the communication interface module 130. The first controller module 110 is responsible for receiving the DSP firmware issued by the host computer, and drives the DSP burning signal switching module on the optical module body through the pin IO of the first controller module to connect the burning interface signal in the gold finger with the burning interface of the DSP external memory, and burn the DSP firmware file into the DSP external memory. After the burning is completed, the DSP burning signal switching module is driven again through the pin IO of the first controller module 110 to restore the connection between the gold finger signal of the gold finger and the MCU main control chip.
[0062] It should be noted that an MCU firmware burning port, a DSP firmware burning port and a controller burning port are set on the auxiliary burning board. The MCU firmware burning port can specifically be a burning port of the MCU main control chip transferred from the optical module body, and can specifically transfer the MCU firmware in the MCU burner to the MCU main control chip on the optical module body through the gold finger slot to realize the burning of the MCU firmware; the DSP firmware burning port can specifically be a burning port of the DSP processing chip transferred from the optical module body, and the DSP firmware burning port can specifically transfer the DSP firmware in the first controller module to the DSP external memory on the optical module body through the gold finger slot, and burn it into the DSP processing chip by the DSP external memory; the controller burning port is specifically a firmware burning port of the first controller module, which realizes the burning of the firmware of the first controller module itself.
[0063] In the embodiment of the present invention, the communication interface module on the auxiliary burning board can specifically select a communication type supported by both the host computer 200 and the first controller module 110, such as a USB communication interface, etc. The specific implementation type is not limited in the embodiment of the present invention.
[0064] It should be noted that the first controller module 110 includes a firmware program, which is responsible for receiving the firmware file sent by the host computer 200 and sending a DSP firmware burning control signal, and completing the burning of the DSP external memory. In the DSP firmware burning, the host computer is responsible for sending the DSP firmware, which can be completed using a general USB transmission software.
[0065] Combine the following Figure 4 The burning process of the MCU firmware in the embodiment of the present invention is described.
[0066] The gold finger on the optical module body is inserted into the cage of the gold finger slot on the auxiliary burning board. The auxiliary burning board is powered by the power module. The MCU firmware burning port is connected to the host computer 200 using the MCU burner, that is, the host computer and the first signal transmission interface module are connected through the MCU burner. When it is necessary to burn and debug the MCU firmware, the control level can be changed by the dip switch to achieve signal switching (specifically, toggle the burning control terminal to a high level). After switching, the MCU firmware burning port is connected to the MCU main control chip download port through the gold finger. The burning and debugging of the MCU firmware can be completed through the dedicated burning IDE of the MCU main control chip installed on the host computer 200. Specifically, open the MCU main control chip dedicated programming IDE on the host computer, select the HEX file, start burning or debug, and when the burning or debugging is completed, unplug the optical module body.
[0067] Combine the following Figure 5 The burning process of the DSP firmware in the embodiment of the present invention is described.
[0068] First, the auxiliary burning board is powered on, and the first controller module 110 on the auxiliary burning board is burned with the controller firmware program through the controller burning port. Specifically, for the first use, the first controller module firmware program is burned through the controller burning port, and then the auxiliary burning board is restarted, and the host computer and the auxiliary burning board communication interface are connected through USB. Select the corresponding DSP firmware in the host computer, and click to start burning. At this time, the first controller module on the auxiliary burning board automatically receives the firmware and completes the DSP firmware burning. Specifically, the host computer 200 selects the DSP firmware file and issues the file, and the first controller module 110 receives the DSP firmware and sends a DSP firmware burning control signal. At this time, the DSP external memory on the optical module body is connected with the DSP burning port through the golden finger, and then the first controller module burns the DSP firmware into the DSP external memory on the optical module body through the DSP burning port. After burning is completed, the optical module body is pulled out.
[0069] It should be understood that when the optical module body needs to be upgraded after sales, the optical module body is inserted into the auxiliary burning board, and the DSP firmware upgrade and / or MCU firmware upgrade can be completed respectively according to the above corresponding processes.
[0070] In summary, the download device of the optical module firmware provided by the present invention uses the original signal physical channel on the optical module gold finger to transfer the MCU download port and the DSP external memory burning interface to the auxiliary burning board to realize the burning of MCU firmware and DSP firmware, which can meet the needs of burning and debugging the MCU firmware program in the production of optical modules, and also meet the needs of after-sales MCU firmware upgrade; it can also greatly improve the DSP firmware burning speed and the DSP firmware after-sales upgrade requirements. Therefore, the download device of the optical module firmware provided by the present invention can solve the pain points of requiring multiple burning processes and consuming a long time in the production process of optical modules, and there is no need to disassemble the optical module, and the after-sales firmware upgrade work can be completed with the help of the auxiliary burning board.
[0071] As another embodiment of the present invention, a device for downloading optical module firmware is provided, wherein: Figure 6 As shown, it includes: a second controller module 210, a first signal transmission interface module 120 and a communication interface module 130, and the second controller module 210 is respectively connected to the first signal transmission interface module 120 and the communication interface module 130 for communication; The signal transmission first interface module 120 is used to realize the communication connection between the optical module firmware download device and the optical module body; The communication interface module 130 is used to realize the communication connection between the second controller module 210 and the host computer 200; The second controller module 210 is used to receive and determine the firmware type of the firmware file to be burned issued by the host computer 200, and generate a corresponding firmware burning control signal according to the determined firmware type, and when the corresponding firmware burning circuit in the optical module body is connected, the corresponding firmware is transmitted to the optical module body to realize the burning of the corresponding firmware, wherein the firmware file to be burned includes a firmware file and a firmware type identifier corresponding to the firmware file, the firmware type includes MCU firmware and DSP firmware, and the firmware burning control signal is used to control the connectivity of the corresponding firmware burning circuit in the optical module body.
[0072] In the embodiment of the present invention, the firmware files to be burned in the host computer 200 are all marked with firmware types. Therefore, when the second controller module 210 receives the firmware files to be burned issued by the host computer 200, it determines whether the firmware type of the firmware files to be burned is MCU firmware or DSP firmware based on the firmware type identified by the second controller module 210. If the firmware type is determined to be MCU firmware, the firmware burning control signal corresponding to the MCU firmware is sent to the optical module body through the first signal transmission interface module to control the firmware burning circuit of the MCU firmware in the optical module body to be connected, and after determining that the firmware burning circuit of the MCU firmware is connected, the MCU firmware is transmitted to the optical module body through the first signal transmission interface module to complete the burning of the MCU firmware; if the firmware type is determined to be DSP firmware, the firmware burning control signal corresponding to the DSP firmware is sent to the optical module body through the first signal transmission interface module to control the firmware burning circuit of the DSP firmware in the optical module body to be connected, and after determining that the firmware burning circuit of the DSP firmware is connected, the DSP firmware is transmitted to the optical module body through the first signal transmission interface module to complete the burning of the DSP firmware.
[0073] Therefore, the downloading device of the optical module firmware provided by the present invention sets a second controller module to realize the burning control of the MCU firmware and the DSP firmware in the optical module, and transmits signals with the optical module body through the signal transmission first interface module, which can simultaneously meet the burning of the MCU firmware and the DSP firmware in the optical module body. At the same time, there is no need to reserve an interface for the burning of the MCU firmware, and at the same time, since there is no need to burn the DSP firmware separately through the DSP chip, the burning speed of the DSP firmware can be greatly improved.
[0074] In the embodiment of the present invention, the second controller module 210 may be implemented as a single chip microcomputer.
[0075] In the embodiment of the present invention, Figure 6 As shown, the optical module firmware downloading device 100 further includes: a controller burning port 160 , the controller burning port 160 is communicatively connected with the second controller module 210 , and the controller burning port 160 is used to implement program burning in the second controller module 210 .
[0076] The function realization of the second controller module 210 also usually requires the firmware program in the controller to be burned. Therefore, in order to meet the normal operation of the second controller module 210, a controller burning port 160 is also provided in the optical module firmware download device 100, and the controller burning port 160 can burn the firmware required for the second controller module 210 into the second controller module 210.
[0077] In the embodiment of the present invention, the optical module firmware downloading device 100 further includes: a power module 170 , which is communicatively connected to the second controller module 210 , and is used to provide power for the operation of the second controller module 210 .
[0078] It should be understood that the power module 170 can be implemented by using a power module that can meet the power supply requirements of the single-chip microcomputer, and can be a charging power supply or a battery, which is not limited in the specific embodiments of the present invention.
[0079] In an embodiment of the present invention, the signal transmission first interface module 120 can be specifically implemented by a gold finger slot, and the signal transmission second interface module on the optical module body can be specifically implemented by a gold finger. Therefore, the downloading device of the optical module firmware realizes communication connection with the gold finger on the optical module body through the gold finger slot, thereby realizing signal transmission.
[0080] In the embodiment of the present invention, the communication interface module 130 may specifically be a serial communication interface such as RS232 or RS485. The embodiment of the present invention does not limit the specific communication interface type and may be selected as needed.
[0081] Combine the following Figure 6 The specific working principle of the optical module firmware downloading device 100 according to the embodiment of the present invention is described.
[0082] In the embodiment of the present invention, it is not necessary to set the MCU firmware burning port and the DSP firmware burning port on the auxiliary burning board. The DSP firmware and MCU firmware of the optical module body can be burned through the communication interface module. The host computer 200 is responsible for issuing the firmware file, and before sending the firmware file, it first sends a firmware type identification content segment. After the firmware is sent, it sends another identification content segment indicating the end of the firmware file sending. The communication interface module 130 is responsible for transmitting information. The second controller module 210 parses the received information according to the above-mentioned protocol and performs the corresponding firmware burning action according to the firmware file type. If it is DSP firmware, the DSP control signal pin of the second controller module 210 will switch the level, and the DSP external memory burning interface is connected to the corresponding pin of the second controller module 210 through the signal transmission first interface 120 (specifically the gold finger slot in the embodiment of the present invention), and the DSP burning work is completed by the second controller module 210. After the burning is completed, the initial function of the gold finger is restored; if it is MCU firmware, the firmware burning action of the MCU main control chip is executed, and the corresponding signal switching instruction is issued. At this time, the burning port of the MCU main control chip is connected to the corresponding pin of the second controller module through the signal transmission first interface 120 (specifically a gold finger slot in the embodiment of the present invention), and the second controller module 210 completes the corresponding burning action. After the burning is completed, the initial function of the gold finger on the optical module body is restored.
[0083] Therefore, the downloading device of the optical module firmware provided by the present invention sets a second controller module to realize the burning control of the MCU firmware and the DSP firmware in the optical module, and transmits signals with the optical module body through the signal transmission first interface module, which can simultaneously meet the burning of the MCU firmware and the DSP firmware in the optical module body. At the same time, there is no need to reserve an interface for the burning of the MCU firmware, and at the same time, since there is no need to burn the DSP firmware separately through the DSP chip, the burning speed of the DSP firmware can be greatly improved.
[0084] For the detailed description of the working principle of some structures in the device for downloading the optical module firmware in this embodiment, reference can be made to the description of the previous embodiment, which will not be repeated here.
[0085] As another embodiment of the present invention, a system 10 for downloading optical module firmware is provided, wherein: Figure 7 As shown, it includes a host computer 200 and a downloading device 100 for the optical module firmware mentioned above, the downloading device 100 for the optical module firmware is communicatively connected with the host computer 200, the host computer 200 is used to store and issue the firmware to be burned, and the downloading device 100 for the optical module firmware is used to control the connectivity of the corresponding firmware type burning circuit of the optical module body according to the firmware to be burned issued by the host computer to complete the burning of the corresponding firmware.
[0086] The optical module firmware downloading system provided by the present invention adopts the optical module firmware downloading device mentioned above, and sets a controller module to realize the burning control of MCU firmware and DSP firmware in the optical module, and transmits signals with the optical module body through the signal transmission first interface module, which can simultaneously meet the burning of MCU firmware and DSP firmware in the optical module body. At the same time, no interface needs to be reserved for the burning of MCU firmware, and since there is no need to burn the DSP firmware separately through the DSP chip, the burning speed of DSP firmware can be greatly improved.
[0087] It should be noted that the host computer 200 in the embodiment of the present invention may specifically be a PC.
[0088] The specific working principle of the optical module firmware downloading system according to the embodiment of the present invention can be referred to the description of the optical module firmware downloading device mentioned above, which will not be described in detail here.
[0089] As another embodiment of the present invention, an optical module 1 is provided, wherein: Figure 8 As shown, it includes an optical module body 20 and the optical module firmware downloading system 10 mentioned above, and the optical module body 20 is communicatively connected with the optical module firmware downloading system 10; The optical module firmware download system 10 is used to control the connectivity of the burning circuit of the optical module body 20 and transmit the corresponding burning firmware to the optical module body 20 to complete the corresponding firmware burning.
[0090] The optical module provided in the embodiment of the present invention adopts the download system of the optical module firmware mentioned above, which can meet the needs of MCU firmware program burning and debugging in the production of optical modules, and also meet the needs of after-sales MCU firmware upgrade; it can also greatly improve the DSP firmware burning speed and DSP firmware after-sales upgrade needs.
[0091] In the embodiment of the present invention, Fig. 9 As shown, the optical module body 20 includes: a signal transmission second interface module 21, an MCU burning signal switching module 22, a DSP burning signal switching module 23, an MCU main control chip 24, a DSP processing chip 25 and a DSP external memory 26, the MCU burning signal switching module 22 and the DSP burning signal switching module 23 are both communicatively connected to the signal transmission second interface module 21, the MCU main control chip 24 is respectively communicatively connected to the MCU burning signal switching module 22 and the DSP burning signal switching module 23, the DSP external memory 26 is respectively communicatively connected to the DSP burning signal switching module 23 and the DSP processing chip 25, and the DSP processing chip 25 is also communicatively connected to the signal transmission second interface module 21; The signal transmission second interface module 21 is used to realize communication connection with the signal transmission first interface module in the optical module firmware download system 10, so as to realize signal transmission between the optical module body and the optical module firmware download device; The MCU burning signal switching module 22 is used to perform signal switching according to the MCU firmware burning control signal in the optical module firmware download system to achieve connectivity of the MCU firmware burning circuit; The DSP burning signal switching module 23 is used to perform signal switching according to the DSP firmware burning control signal in the optical module firmware download system to achieve connectivity of the DSP firmware burning circuit; The MCU main control chip 24 is used to receive the MCU firmware to complete the MCU firmware burning when the MCU burning signal switching module is switched to the burning line connection and to implement the MCU function when the MCU burning signal switching module is switched to the function line connection; The DSP external memory 26 is used to receive and store DSP firmware when the DSP burning signal switching module is switched to the burning line connection and to receive and store data required for DSP functions when the DSP burning signal switching module is switched to the function line connection; The DSP processing chip 25 is used to receive the DSP firmware in the DSP external memory to complete DSP firmware burning when the DSP burning signal switching module switches to the burning line connection, and is used to implement DSP functions when the DSP burning signal switching module switches to the function line connection.
[0092] Specifically, the signal transmission second interface module 21 in the embodiment of the present invention may be a gold finger.
[0093] The download port circuit of the MCU main control chip 24 on the optical module body 20 is connected to a group of output signal parts of the MCU burning signal switching module 22 in a corresponding manner, and another group of output signals of the MCU burning signal switching module 22 is connected to the corresponding pins IO on the MCU main control chip 24 according to the actual function of the selected physical signal on the gold finger, and an equal number of signals are selected from the state signal of the specified gold finger as the input signal and control signal of the MCU burning signal switching module 22. In the same way, the interface circuit of the DSP external memory 26 is connected to a group of output signals of the DSP burning signal switching module 23 in a corresponding manner, and another group of output signals of the DSP burning signal switching module 23 is connected to the corresponding pins IO on the MCU main control chip 24 according to the actual function of the selected physical signal on the gold finger, and an equal number of signals are selected from the state signal of the specified gold finger as the input signal and control signal of the DSP burning signal switching module 23.
[0094] The programming interface of the DSP external memory 26 is determined according to the type of the external memory chip and the function of the DSP processing chip 25. The DSP external memory can select an external EEPROM with an SPI interface.
[0095] It should be noted here that the input signals of the MCU burning signal switching module 22 and the DSP burning signal switching module 23 are selected and designated from the signals of the gold finger.
[0096] The MCU burning signal switching module 22 is mainly used to realize the transfer of the burning interface of the MCU main control chip 24 by using the gold finger physical channel. When the MCU firmware needs to be burned and debugged, the signal specified on the gold finger is switched to the burning interface signal.
[0097] The DSP burning signal switching module 23 is mainly used to realize the transfer of the DSP external memory 26 interface signal by using the gold finger physical channel. When the DSP firmware needs to be burned, the signal specified on the gold finger is switched to the DSP external memory 26 interface signal.
[0098] It should be noted that the MCU burning signal switching module 22 and the DSP burning signal switching module 23 in the embodiment of the present invention can be implemented by using a signal switching chip, the specific model is TMUX1072RUTR. The specific implementation circuit principle of the signal switching chip can be as follows: Fig.10 shown.
[0099] Therefore, the optical module of the embodiment of the present invention, according to the optical module firmware download system adopted by it, is suitable for burning MCU firmware and DSP firmware in the optical module, and can perform MCU firmware debugging, and is also suitable for upgrading MCU firmware and DSP firmware of the optical module after sales.
[0100] In summary, the optical module provided by the present invention switches the designated physical signal on the gold finger to be connected with the MCU burning signal and the DSP external memory burning signal respectively through the MCU burning signal switching module and the DSP burning signal switching module, and then transfers these signals to the auxiliary burning board through the gold finger, and through the host computer, or the host computer combined with the MCU burner, the burning of the optical module firmware without disassembly and its after-sales upgrade can be realized; the auxiliary burning board is provided with a gold finger slot plugged with the gold finger of the optical module body and a controller module burning port, etc. The controller module can receive the DSP firmware file sent by the host computer, and then burn the received firmware file into the DSP external memory, or receive the DSP firmware and MCU firmware issued by the host computer, and burn the received firmware into the corresponding MCU main control chip and the DSP external memory. Therefore, this optical module uses the original signal physical channel on the optical module gold finger to transfer the MCU download port and the DSP external memory burning interface to the optical module firmware download device, and realizes the MCU firmware burning and the DSP external memory chip firmware burning through the optical module firmware download device. It can not only meet the needs of MCU firmware program burning and debugging in optical module production, and meet the needs of after-sales MCU firmware upgrade, but also can greatly improve the DSP firmware burning speed and DSP firmware after-sales upgrade needs.
[0101] For the specific working principle of the optical module, please refer to the description of the download device of the optical module firmware in the previous text, which will not be repeated here.
[0102] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A device for downloading optical module firmware, characterized in that: include: A first controller module, a first signal transmission interface module, a communication interface module and an MCU burning control module, wherein the first controller module and the MCU burning control module are both communicatively connected to the first signal transmission interface module, the first controller module is communicatively connected to the communication interface module, and the MCU burning control module can be communicatively connected to a host computer; The signal transmission first interface module is used to realize the communication connection between the download device of the optical module firmware and the optical module body; The communication interface module is used to realize the communication connection between the first controller module and the host computer; The MCU burning control module is used to generate an MCU firmware burning control signal according to the MCU firmware issued by the host computer when receiving the MCU burning trigger signal, and transmit the MCU firmware to the optical module body after the MCU firmware burning circuit in the optical module body is connected to realize the burning of the MCU firmware, wherein the MCU firmware burning control signal can control the connection of the MCU firmware burning circuit in the optical module body; The first controller module is used to generate a DSP firmware burning control signal according to the DSP firmware issued by the host computer and transmit the DSP firmware to the optical module body after the DSP firmware burning circuit in the optical module body is connected to realize the burning of the DSP firmware, wherein the DSP firmware burning control signal can control the connectivity of the DSP firmware burning circuit in the optical module body.
2. The optical module firmware downloading device according to claim 1, characterized in that: The MCU burning control module includes a burning control terminal and an MCU burner, the MCU burner can be communicatively connected with the host computer, and the burning control terminal is communicatively connected with the signal transmission first interface module; The burn control terminal is used to receive an MCU burn trigger signal and generate an MCU firmware burn control signal according to the MCU burn trigger signal; The MCU burner is used to transmit the MCU firmware to the optical module body to realize the burning of the MCU firmware after the MCU firmware burning circuit in the optical module body is connected.
3. The optical module firmware downloading device according to claim 2, characterized in that: The MCU burning control module also includes an MCU firmware burning port, which is communicatively connected to the MCU burner and the signal transmission first interface module respectively. The MCU firmware burning port is used to transmit the MCU firmware from the MCU burner to the signal transmission first interface module, and transmit it to the optical module body through the signal transmission first interface module to realize the burning of the MCU firmware.
4. The optical module firmware downloading device according to any one of claims 1 to 3, characterized in that: The download device of the optical module firmware also includes: a DSP firmware burning port, which is communicatively connected to the first controller module, and the DSP firmware burning port is used to transmit the DSP firmware in the first controller module to the optical module body through the signal transmission first interface module to realize the burning of the DSP firmware.
5. The optical module firmware downloading device according to any one of claims 1 to 3, characterized in that: The optical module firmware downloading device further comprises: a controller burning port, the controller burning port is communicatively connected with the first controller module, and the controller burning port is used to implement program burning in the first controller module.
6. A device for downloading optical module firmware, characterized in that: include: A second controller module, a first signal transmission interface module and a communication interface module, wherein the second controller module is communicatively connected with the first signal transmission interface module and the communication interface module respectively; The signal transmission first interface module is used to realize the communication connection between the download device of the optical module firmware and the optical module body; The communication interface module is used to realize the communication connection between the second controller module and the host computer; The second controller module is used to receive and determine the firmware type of the firmware file to be burned sent by the host computer, and generate a corresponding firmware burning control signal according to the determined firmware type, and when the corresponding firmware burning circuit in the optical module body is connected, the corresponding firmware is transmitted to the optical module body to realize the burning of the corresponding firmware, wherein the firmware file to be burned includes a firmware file and a firmware type identifier corresponding to the firmware file, the firmware type includes MCU firmware and DSP firmware, and the firmware burning control signal is used to control the connectivity of the corresponding firmware burning circuit in the optical module body.
7. The optical module firmware downloading device according to claim 6, characterized in that: The optical module firmware download device further includes: a controller burning port, the controller burning port is communicatively connected with the second controller module, and the controller burning port is used to realize program burning in the second controller module; The optical module firmware downloading device further includes: a power module, the power module is communicatively connected with the second controller module, and the power module is used to provide power for the operation of the second controller module.
8. A system for downloading optical module firmware, characterized in that: It includes a host computer and a download device for optical module firmware as described in any one of claims 1 to 5 or claim 6 or 7, the download device for optical module firmware is communicatively connected to the host computer, the host computer is used to store and issue firmware to be burned, and the download device for optical module firmware is used to control the connectivity of the corresponding firmware type burning circuit of the optical module body according to the firmware to be burned issued by the host computer to complete the burning of the corresponding firmware.
9. An optical module, characterized in that: The optical module comprises an optical module body and a downloading system for the optical module firmware according to claim 8, wherein the optical module body is communicatively connected with the downloading system for the optical module firmware; The optical module firmware download system is used to control the connectivity of the burning circuit of the optical module body, and transmit the corresponding burning firmware to the optical module body to complete the corresponding firmware burning.
10. The optical module according to claim 9, characterized in that: The optical module body comprises: a signal transmission second interface module, an MCU burning signal switching module, a DSP burning signal switching module, an MCU main control chip, a DSP processing chip and a DSP external memory, wherein the MCU burning signal switching module and the DSP burning signal switching module are both communicatively connected with the signal transmission second interface module, the MCU main control chip is communicatively connected with the MCU burning signal switching module and the DSP burning signal switching module respectively, the DSP external memory is communicatively connected with the DSP burning signal switching module and the DSP processing chip respectively, and the DSP processing chip is also communicatively connected with the signal transmission second interface module; The signal transmission second interface module is used to realize the communication connection with the signal transmission first interface module in the download system of the optical module firmware, so as to realize the signal transmission between the optical module body and the download device of the optical module firmware; The MCU burning signal switching module is used to perform signal switching according to the MCU firmware burning control signal in the optical module firmware download system to achieve connectivity of the MCU firmware burning circuit; The DSP burning signal switching module is used to perform signal switching according to the DSP firmware burning control signal in the download system of the optical module firmware to achieve connectivity of the DSP firmware burning circuit; The MCU main control chip is used to receive the MCU firmware to complete the MCU firmware burning when the MCU burning signal switching module is switched to the burning line connection, and is used to implement the MCU function when the MCU burning signal switching module is switched to the function line connection; The DSP external memory is used to receive and store DSP firmware when the DSP burning signal switching module is switched to the burning line connection and to receive and store data required for DSP functions when the DSP burning signal switching module is switched to the function line connection; The DSP processing chip is used to receive the DSP firmware in the DSP external memory to complete DSP firmware burning when the DSP burning signal switching module switches to the burning line connection, and is used to implement DSP functions when the DSP burning signal switching module switches to the function line connection.