CN115729599A - Optical module program downloading device - Google Patents

Optical module program downloading device Download PDF

Info

Publication number
CN115729599A
CN115729599A CN202211589259.5A CN202211589259A CN115729599A CN 115729599 A CN115729599 A CN 115729599A CN 202211589259 A CN202211589259 A CN 202211589259A CN 115729599 A CN115729599 A CN 115729599A
Authority
CN
China
Prior art keywords
optical module
program
program downloading
power
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.)
Pending
Application number
CN202211589259.5A
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.)
Xifeng Photoelectric Technology Nanjing Co ltd
Original Assignee
Xifeng Photoelectric Technology Nanjing 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 Xifeng Photoelectric Technology Nanjing Co ltd filed Critical Xifeng Photoelectric Technology Nanjing Co ltd
Priority to CN202211589259.5A priority Critical patent/CN115729599A/en
Publication of CN115729599A publication Critical patent/CN115729599A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention discloses an optical module program downloading device, wherein a USB cable is connected with a USB interface of a PC (personal computer) and a USB interface of a downloading device, and a power supply conversion chip is connected with the USB interface of the downloading device and a multi-channel power supply switch. And the microcontroller MCU is connected with the power switch and the multi-channel optical module slot. After the optical module is inserted into the slot, the MCU starts a power switch of a corresponding channel to power on the optical module after detecting the type of the inserted module. After the firmware downloading program in the PC identifies the model number of the module, the PC issues an IIC or SWD bus instruction to the MCU to execute the downloading of the program of the optical module. The advantages are that: the invention can download and update the firmware program to the optical modules in different packaging forms under the condition of no external power supply.

Description

Optical module program downloading device
Technical Field
The invention relates to the technical field of optical modules, in particular to a device for downloading firmware programs of different types of optical modules; in particular to an optical module program downloading device.
Background
In the technical field of optical modules, the current optical module packaging focuses on six types of XFP, SFP-DD, QSFP-DD and OSFP, the methods for downloading programs of optical modules with different packaging models are different and need different downloading devices to be realized, the conventional downloading devices at least need a PC, a power supply, a control board and a test board, meanwhile, a USB cable is needed to be connected with the PC and the control board, a power supply extension line is needed to be connected with the power supply and the test board, and a flat cable is needed to be connected with the control board and the test board. The conventional test board only corresponds to one type of optical module slot, so that the test board needs to be additionally replaced when different packaged optical modules are downloaded.
At present, optical module production all has the optical module downloading device fixed on a station in a production workshop, but when a module is subjected to outsourcing test or enters a client side field application, the optical module downloading device is inconvenient when an optical module program needs to be immediately downloaded or updated. First, the power supply is not easily portable and not easily accessible, especially in outdoor operating environments. Secondly, scattered power supplies and test board control boards need to be connected on site, and the test boards need to be replaced for multiple times aiming at different optical modules, which brings inconvenience to field application.
Disclosure of Invention
The invention aims to provide an optical module program downloading device which does not need a special power supply, has high module type compatibility and strong flexibility aiming at the defect that the existing downloading mode is applied on site, thereby greatly improving the portability of a downloading tool and the working efficiency of optical module program downloading.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a kind of optical module procedure downloads the apparatus, USB cable connection PC and procedure download board, the procedure download board utilizes 5V power of USB interface of PC to meet the power demand of the apparatus through the USB cable; the microcontroller MCU on the program download board is connected with the USB interface to complete data communication with the PC, and is simultaneously connected with at least two paths of power switches, the microcontroller MCU is connected with at least two paths of optical module slots through a bus, and the microcontroller MCU is connected with signal pins on the optical module slots through PCB wiring, so that the optical module to be downloaded is always in a low power consumption mode.
According to the technical scheme, the microcontroller MCU arranged on the program download carrier plate is in USB communication with the PC, and the microcontroller MCU establishes IIC or SWD protocol communication with the optical module through the optical module slot, so that the microcontroller MCU serves as a bridge for downloading programs between the PC and the optical module. After the micro controller unit MCU detects that the optical module is correctly inserted through the Mod _ ABS signal pin, the power switch of the corresponding channel is turned on, and at the moment, the optical module is electrified. After the optical module is powered on, the Micro Controller Unit (MCU) reads the specific type of the module through the IIC connecting wire, feeds the type of the optical module back to the PC and determines whether IIC or SWD communication is adopted, and the PC prepares a corresponding program file according to the type of the module and executes a program downloading command so as to finish program downloading of the optical module. The optical module of the program to be downloaded is always in a low power consumption mode from the insertion power-on to the completion of the program downloading.
Preferably, the power supply of the optical module in the low power consumption mode is 3.3V, the current does not exceed 450mA, and the power supply of the USB interface of the PC can be used for supplying power to the optical module in the low power consumption mode through the current limiter and the power conversion chip.
Preferably, the program download board is provided with a current limiter for limiting the current entering the program download board to be always smaller than the maximum power supply current of the USB interface.
Preferably, the program download carrier is provided with a power conversion chip for converting 5V voltage of the USB interface into common voltage of the optical module. The common voltage of the optical module is 3.3V.
Preferably, the power switch is arranged on the program downloading support plate, the power switch is connected with the microcontroller MCU, and the power switch is controlled by the microcontroller MCU to realize the on-off of the power supply corresponding to the optical module slot. And after the microcontroller MCU selects the power switch to be started and the IIC or SWD communication line to be selected, the PC downloads a program to the corresponding optical module.
Preferably, the program download carrier board is provided with at least two types of optical module slots, and the optical module slots are provided with signal pins and IIC or SWD communication lines and are electrically connected with the microcontroller MCU.
In the optimization of the technical scheme of the invention, at least four optical module slots in XFP, SFP-DD, QSFP-DD and OSFP are reserved on the program lower carrier plate. Because the SFP packaged optical module can be inserted into the slot of the SFP-DD and the QSFP packaged optical module can be inserted into the slot of the QSFP-DD, the device can be compatible with the insertion of the six packaged optical modules, and almost covers the common optical module packaging types in the existing market. The compatibility enables field application to be free from replacing the test board, and the module to be downloaded is directly inserted into the corresponding slot.
Preferably, the optical module slot includes a Low _ Power signal pin and a Mod _ ABS signal pin, the Low _ Power signal pin is always set at a high level, the Mod _ ABS signal pin is connected to the microcontroller MCU, and the microcontroller MCU determines whether the optical module is correctly inserted into the optical module slot according to a level state of the Mod _ ABS signal pin.
The technical proposal of the invention is preferably that the USB interface of the PC provides the maximum voltage of 5V and the current of 500mA
The optical module mentioned in the technical solution of the present invention is known in the art and known to those skilled in the art.
In conclusion, the beneficial effects of the invention are as follows:
1. and a special optical module power supply is omitted, so that the cost is reduced, and the portability is improved. The downloading device directly gets electricity from the USB without a special power supply, and the glazing module slot, the power supply and the micro control chip are designed on the same PCB, so that the downloading device is small in structure and easy to carry.
2. The compatible modules are of various types. The device is provided with four slot types of XFP, SFP-DD, QSFP-DD and OSP in design, and because the SFP packaged optical module can be inserted into the slot of the SFP-DD and the QSFP packaged optical module can be inserted into the slot of the QSFP-DD, the device can be compatible with the insertion of the six packaged optical modules, and almost covers the common optical module packaging types in the existing market. The compatibility enables field application to be free from replacing the test board, and the module to be downloaded is directly inserted into the corresponding slot.
3. And special external type downloaders such as SWD (single wire connector) are omitted, and portability and operability are improved. According to the invention, the microcontroller MCU is adopted to simulate the SWD download protocol, so that the microcontroller MCU itself bears the communication download tasks of SWD and the like, and the download device does not need a special external download device of SWD and the like, thereby further improving the portability and the operability.
4. And the program downloading mode is flexible. Aiming at the difference of the downloading modes of different types of optical modules, the invention finishes the downloading of the optical module program by selecting the corresponding IIC downloading mode or SWD downloading mode through the MCU, and can meet the downloading requirements of different types of optical modules.
Drawings
Fig. 1 is a schematic diagram of a conventional optical module program downloading device.
Fig. 2 is a schematic diagram of a light module program downloading device according to the present invention.
Fig. 3 is a flowchart of the operation of the optical module program downloading apparatus according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to fig. 1-3 and the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Example 1
The present embodiment is an optical module program downloading device, which comprises a PC 1 and a program download board 10 connected by a USB cable 2, wherein the program download board 10 utilizes a 5V power supply of a USB interface of the PC 1 to satisfy the power supply requirement of the device through the USB cable 2. The USB interface on the program download board 10 is connected with the current limiter 3 for current limitation, and the current limiter 3 is connected with the power conversion chip 4 for voltage conversion. The converted voltage is connected to the four-way power switch 11. The microcontroller MCU9 is connected with the USB interface to complete data communication with the PC 1, the microcontroller MCU9 is simultaneously connected with four paths of power switches 11, and the microcontroller MCU9 turns on the corresponding power switches according to the type of the inserted optical module. The microcontroller MCU9 is connected with the four-way optical module slots through an IIC bus or an SWD bus, a corresponding download bus is selected according to the type of the inserted optical module, and the PC 1 executes the download and update of the optical module program through the microcontroller MCU9. The microcontroller MCU9 is connected with signal pins such as Low _ Power, mod _ ABS and the like on the optical module slot through PCB wiring, so that the optical module to be downloaded with the program is always in a Low Power consumption mode.
At least two types of optical module slots in four types of XFP, SFP-DD, QSFP-DD and OSFP are arranged on the lower carrier plate, and because the optical module packaged by the SFP can be inserted into the slot of the SFP-DD and the optical module packaged by the QSFP can be inserted into the slot of the QSFP-DD, the device can be compatible with the insertion of the optical modules packaged by the six types.
The Low _ Power signal pins of the four types of optical module slots are all pulled up to a high level through resistors with 10K ohm resistance values.
After detecting that the optical module is correctly inserted through the Mod _ ABS signal pin, the MCU9 turns on the power switch 11 of the corresponding channel, and at this time, the optical module is powered on. After the optical module is powered on, the micro controller MCU9 reads the specific type of the module through the IIC connection line, feeds back the type of the optical module to the PC 1 and determines whether to adopt IIC or SWD communication, and the PC 1 prepares a corresponding program file according to the type of the module and executes a program download command, thereby completing program download of the optical module.
In this embodiment, the microcontroller MCU9 is programmed to follow an SWD protocol of each type of the single chip, a corresponding clock line and data line are selected by programming, the microcontroller MCU9 is configured to be in a master mode, communication is established with the optical module of the program to be downloaded through an SWD communication line connecting the optical module slots, after the communication is established, the optical module to be downloaded is configured to be a slave, and after the master-slave communication is established, the microcontroller MCU9 executes a program download command after receiving a download instruction from the PC 1.
As shown in fig. 3, the optical module for downloading the program in this embodiment is always in the low power consumption mode, and the working flow of the program downloading is as follows:
1. by utilizing software of an upper computer on the PC, after clicking starts, the microcontroller MCU9 detects the high-low states of Mod _ ABS signal levels of the four channels, when the Mod _ ABS signal levels are always high, namely, the optical module is not correctly inserted, the microcontroller MCU9 turns off the power switch 11 at the moment, and the program returns to a state waiting for starting.
2. The microcontroller MCU9 detects that any path of Mod _ ABS signal level is low, which indicates that the optical module corresponding to the slot is correctly inserted, and at this time, the microcontroller MCU9 turns on the power switch 11 corresponding to the channel, and at this time, the optical module is powered on.
3. After the optical module is powered on, the current limiter 3 detects whether the current exceeds the limit. And if the current exceeds the limit, the power switch 11 is closed, the abnormality is reported, and the program returns to the abnormal ending state.
4. After the optical module is powered on, the current limiter 3 detects that the current is not out of limit, the micro controller MCU9 communicates with the inserted optical module through the IIC, reads the relevant information such as the model of the optical module and reports the information to the upper computer software.
5. And the upper computer on the PC 1 selects IIC or SWD communication according to the reported optical module type, prepares a corresponding program file and executes a program downloading command, and the downloading command of the upper computer is transmitted to the microcontroller MCU9.
6. The microcontroller MCU9 executes the program downloading command, checks whether the program is successfully downloaded after the downloading is finished, reports the abnormality to the upper computer if the microcontroller MCU9 detects that the program is unsuccessfully downloaded, and returns the program to the abnormal ending state.
7. If the microcontroller MCU9 detects that the program is downloaded successfully, the microcontroller MCU9 turns off the power switch 11, and simultaneously reports the success of the downloading to the upper computer, and the upper computer prompts the success of the downloading and the extraction of the optical module.
The above embodiments are only for illustrating the technical idea of the present invention, and the technical idea of the present invention is not limited thereto, and any modifications made on the basis of the technical solution according to the technical idea of the present invention fall within the protective scope of the present invention.

Claims (9)

1. A light module program downloading device, a USB cable (2) is connected with a PC (1) and a program downloading board (10), characterized in that: the program downloading carrier plate (10) utilizes a 5V power supply of a USB interface of the PC (1) to meet the power supply requirement of the device through a USB cable (2); the micro-controller MCU (9) on the program lower carrier plate (10) is connected with a USB interface to complete data communication with the PC (1), and is simultaneously connected with at least two paths of power switches (11), the micro-controller MCU (9) is connected with at least two paths of optical module slots through a bus, and the micro-controller MCU (9) is connected with signal pins on the optical module slots through PCB wiring, so that an optical module to be downloaded with a program is always in a low power consumption mode.
2. The light module program downloading device according to claim 1, wherein: the power supply of the optical module in the low power consumption mode is 3.3V, and the current does not exceed 450mA.
3. The light module program downloading device according to claim 1, wherein: the program downloading board (10) is provided with a current limiter (3) which limits the current entering the program downloading board (10) to be always smaller than the maximum power supply current of the USB interface.
4. The light module program downloading device according to claim 1, wherein: the program downloading carrier plate (10) is provided with a power conversion chip (4) for converting 5V voltage of the USB interface into common voltage of the optical module.
5. The light module program downloading device according to claim 1, wherein: the power switch (11) is arranged on the program downloading carrier plate (10), and the power switch (11) is connected with the microcontroller MCU (9).
6. The light module program downloading device according to claim 1, wherein: at least two types of optical module slots are arranged on the program lower carrier plate (10), and signal pins and IIC or SWD communication lines are arranged on the optical module slots and electrically connected with the microcontroller MCU (9).
7. The light module program downloading device according to claim 6, wherein: at least four optical module slots in XFP, SFP-DD, QSFP-DD and OSFP are reserved on the program lower carrier plate (10).
8. The light module program downloading device according to claim 6, wherein: the optical module slot comprises a Low _ Power signal pin and a Mod _ ABS signal pin, wherein the Low _ Power signal pin is always set at a high level, and the Mod _ ABS signal pin is connected with the MCU (9).
9. The light module program downloading device according to claim 1, wherein: the USB interface of the PC (1) provides a maximum voltage of 5V and a current of 500mA.
CN202211589259.5A 2022-12-09 2022-12-09 Optical module program downloading device Pending CN115729599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211589259.5A CN115729599A (en) 2022-12-09 2022-12-09 Optical module program downloading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211589259.5A CN115729599A (en) 2022-12-09 2022-12-09 Optical module program downloading device

Publications (1)

Publication Number Publication Date
CN115729599A true CN115729599A (en) 2023-03-03

Family

ID=85301084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211589259.5A Pending CN115729599A (en) 2022-12-09 2022-12-09 Optical module program downloading device

Country Status (1)

Country Link
CN (1) CN115729599A (en)

Similar Documents

Publication Publication Date Title
CN203277900U (en) Accessory
CN107678753A (en) A kind of program burn writing method, apparatus and electronic equipment
CN111983999B (en) Central ECU development test system
CN106785800B (en) Automobile wire harness guiding and inserting device
CN112685054B (en) Portable board card burning device and method
CN109802861A (en) A kind of method of quick-downloading optical module firmware
CN115729599A (en) Optical module program downloading device
CN207148816U (en) A kind of program burn writing system and electronic equipment
CN103163395A (en) Power on-off testing device
CN214042302U (en) Portable board card burning device
CN102117997A (en) Intelligent socket and intelligent plug
CN114282475A (en) Program burning device system and method
CN203618049U (en) Mobile phone display screen debugging device
JP2019509582A (en) Peripheral device, system and method including said peripheral device
CN112714025A (en) Optical module code writing board and control method thereof
CN213690603U (en) Plug-and-play USB capacitive touch screen
CN220305658U (en) Wireless pedal control circuit of semiconductor laser therapeutic apparatus
CN220752700U (en) Firmware burning jig based on CPLD
CN214704605U (en) Off-line chip downloading volume production tool
CN218630079U (en) Tooling plate of robot control panel of pitching machine
CN220985885U (en) Assembled automatic synchronous atmosphere color lamp
CN213904673U (en) Raspberry pie expansion board for teaching
CN215450162U (en) Optical module program downloading device for 5G communication
CN219499542U (en) Audio equipment's test system
CN203482464U (en) LED lamp communication control bridge

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination