CN113076274B - Optical module and software program acquisition method - Google Patents

Optical module and software program acquisition method Download PDF

Info

Publication number
CN113076274B
CN113076274B CN202110485219.5A CN202110485219A CN113076274B CN 113076274 B CN113076274 B CN 113076274B CN 202110485219 A CN202110485219 A CN 202110485219A CN 113076274 B CN113076274 B CN 113076274B
Authority
CN
China
Prior art keywords
interface
clock
golden finger
swd
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110485219.5A
Other languages
Chinese (zh)
Other versions
CN113076274A (en
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.)
Chengdu Youbochuang Communication Technology Co ltd
Original Assignee
Chengdu Youbochuang Communication Technology 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 Chengdu Youbochuang Communication Technology Co ltd filed Critical Chengdu Youbochuang Communication Technology Co ltd
Priority to CN202110485219.5A priority Critical patent/CN113076274B/en
Publication of CN113076274A publication Critical patent/CN113076274A/en
Application granted granted Critical
Publication of CN113076274B publication Critical patent/CN113076274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the application discloses an optical module and a software program acquisition method, and relates to the field of optical modules. The optical module includes: the golden finger comprises a golden finger clock interface and a golden finger data interface; the micro-control unit comprises an I2C clock interface, an I2C data interface, an SWD clock interface and an SWD data interface; the clock input end of the clock multiplexing circuit is connected with the golden finger clock interface, the first clock output end is connected with the SWD clock interface, and the second clock output end is connected with the I2C clock interface; and a data input end of the data multiplexing circuit is connected with the golden finger data interface, a first data output end of the data multiplexing circuit is connected with the SWD data interface, and a second data output end of the data multiplexing circuit is connected with the I2C data interface. Therefore, the problem that the optical module without the solidified bootstrap program in the micro control unit is difficult to acquire the software program or update the software program can be relieved.

Description

Optical module and software program acquisition method
Technical Field
The present application relates to the field of optical modules, and more particularly, to an optical module and a software program acquisition method.
Background
The optical module is an important device in an optical fiber communication system, and can realize functions of optical power control, modulation transmission, signal detection, anti-counterfeiting information inquiry and the like. The optical module comprises a golden finger, a micro control unit, a laser driver, a limiting amplifier and the like. The micro control unit in the optical module is divided into two types, namely a boot loader (boot loader) with a built-in boot loader and a boot loader (boot loader) without a built-in boot loader. When the boot program is not solidified inside the micro control unit in the optical module, if a firmware program is to be acquired through an I2C interface in the micro control unit, the boot program needs to be acquired through an SWD interface in the micro control unit, and because a gold finger interface for connecting external equipment in the optical module is limited, it is difficult to provide a redundant gold finger interface for connecting with the SWD interface, a software program acquisition mode of the optical module is generally to punch holes or pads on a printed circuit board thereof, connect out the SWD interface and perform wire flying, and then acquire the software program. However, if the optical module needs to acquire the software program again or update the software program, the optical module is easily damaged by soldering a pin connection flying lead on the printed circuit board of the optical module.
Disclosure of Invention
The application provides an optical module and a software program acquisition method, which can solve the problem that an optical module without a solidified bootstrap program in a micro control unit is difficult to acquire a software program or update the software program.
In a first aspect, an embodiment of the present application provides an optical module, including: the golden finger comprises a golden finger clock interface and a golden finger data interface; a micro-control unit comprising an I2C clock interface and an I2C data interface, and an SWD clock interface and an SWD data interface; the clock input end of the clock multiplexing circuit is connected with the golden finger clock interface, the first clock output end of the clock multiplexing circuit is connected with the SWD clock interface, and the second clock output end of the clock multiplexing circuit is connected with the I2C clock interface; and a data input end of the data multiplexing circuit is connected with the golden finger data interface, a first data output end of the data multiplexing circuit is connected with the SWD data interface, and a second data output end of the data multiplexing circuit is connected with the I2C data interface.
In a second aspect, an embodiment of the present application further provides a software program obtaining method, which is applied to a micro control unit in the optical module, and the method includes: when an SWD clock interface and an SWD data interface in the micro control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and the golden finger clock interface and the golden finger data interface are conducted with software program equipment, the micro control unit obtains a bootstrap program in the software program equipment through the golden finger and stores the bootstrap program; running the boot program to disable the SWD clock interface and the SWD data interface.
The application provides an optical module including: the device comprises a golden finger, a micro control unit, a clock multiplexing circuit and a data multiplexing circuit. The golden finger comprises a golden finger clock interface and a golden finger data interface; the micro control unit comprises an I2C clock interface, an I2C data interface, an SWD clock interface and an SWD data interface; the clock multiplexing circuit comprises a clock input end, a first clock output end and a second clock output end, wherein the clock input end is connected with the golden finger clock interface, the first clock output end is connected with the SWD clock interface, and the second clock output end is connected with the I2C clock interface; the data multiplexing circuit comprises a data input end, a first data output end and a second data output end, wherein the data input end is connected with the golden finger data interface, the first data output end is connected with the SWD data interface, and the second data output end is connected with the I2C data interface. By adopting the above arrangement, the SWD clock interface and the I2C clock interface in the micro control unit can multiplex the golden finger clock interface, the SWD data interface and the I2C data interface can multiplex the golden finger data interface, and under the condition that no redundant golden finger interface is used, the SWD clock interface and the SWD data interface in the micro control unit can be used for acquiring the boot program, and then the I2C clock interface and the I2C data interface in the micro control unit are used for acquiring the firmware program, so that the problem that the optical module without the solidified boot program in the micro control unit is difficult to acquire the software program or update the software program is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates a block diagram of an optical module multiplexing circuit according to an embodiment of the present application;
fig. 2 illustrates a multiplexing circuit diagram of an optical module according to an embodiment of the present application;
fig. 3 shows a multiplexing circuit diagram of an optical module provided in an embodiment of the present application, where the multiplexing circuit diagram includes a first zero resistance;
fig. 4 shows a multiplexing circuit diagram of an optical module provided by an embodiment of the present application, where the multiplexing circuit diagram includes a second zero resistance;
FIG. 5 is a flowchart illustrating a software program acquisition method according to another embodiment of the present application;
FIG. 6 illustrates a block diagram of modules containing a J-Link emulator, according to another embodiment of the present application;
FIG. 7 illustrates a block diagram of modules comprising a J-Link emulator and a first peripheral device, according to another embodiment of the present application;
FIG. 8 is a block diagram of a module including a second peripheral device according to yet another embodiment of the present application;
fig. 9 is a flowchart illustrating a software program obtaining method according to another embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The optical module is an important device in an optical fiber communication system, and can realize functions of optical power control, modulation transmission, signal detection, anti-counterfeiting information inquiry and the like. The optical module comprises a golden finger, a micro control unit, a laser driver, a limiting amplifier and the like. The micro control unit in the optical module is divided into two types, namely a bootloader (bootloader) which is internally solidified and a bootloader which is not internally solidified. When the boot program is solidified inside the micro control unit in the optical module, if the optical module is to acquire the firmware program, the firmware program can be directly acquired through the I2C interface in the micro control unit. If the firmware program is to be acquired through the I2C interface in the mcu when the boot program is not solidified inside the mcu in the optical module, the boot program needs to be acquired through the SWD interface in the mcu. For the optical module without the solidified bootstrap program inside the micro control unit, because the gold finger interface for connecting the external device is limited, it is difficult to provide the redundant gold finger interface for connecting with the SWD interface, so the software program of the optical module is usually obtained by punching or bonding the printed circuit board, connecting the SWD interface out and flying the wire, and then obtaining the software program. However, if the optical module needs to acquire the software program again or update the software program, the optical module is easily damaged by soldering a pin connection flying lead on the printed circuit board of the optical module.
Therefore, in order to alleviate the above drawback, an embodiment of the present application provides an optical module, including: the device comprises a golden finger, a micro control unit, a clock multiplexing circuit and a data multiplexing circuit. The plurality of interfaces of the golden finger comprise a golden finger clock interface and a golden finger data interface which are used for acquiring the software program; the micro-control unit comprises an I2C interface and an SWD interface for acquiring software programs, and specifically comprises an I2C clock interface, an I2C data interface, an SWD clock interface and an SWD data interface; the clock input end of the clock multiplexing circuit is connected with the golden finger clock interface, and the first clock output end and the second clock output end of the clock multiplexing circuit are respectively connected with the SWD clock interface and the I2C clock interface; the data input end of the data multiplexing circuit is connected with the golden finger data interface, and the first data output end and the second data output end of the data multiplexing circuit are respectively connected with the SWD data interface and the I2C data interface.
Because the SWD clock interface and the I2C clock interface both belong to a two-wire serial interface and can transmit clock signals, and the SWD data interface and the I2C data interface both belong to a two-wire serial interface and can transmit data signals, and because the SWD clock interface and the SWD data interface have the characteristic of non-simultaneous operation with the I2C clock interface and the I2C data interface, the application can connect the SWD clock interface and the I2C clock interface together to the golden finger clock interface by connecting the clock input end of the clock multiplexing circuit with the golden finger clock interface, connecting the first clock output end with the SWD clock interface, and connecting the second clock output end with the I2C clock interface, so that the I2C interface and the SWD interface in the micro-control unit can multiplex the golden finger interface, and under the condition of not using the redundant golden finger interface, the SWD interface can be used for obtaining a boot program first, and then the I2C interface for obtaining a firmware program, therefore, the problem that the optical module without the solidified bootstrap program in the micro control unit is difficult to acquire the software program or update the software program is solved.
This is described in detail below. Referring to fig. 1 to 4, an optical module is provided in an embodiment of the present application. The optical module includes: gold finger 110, micro control unit 120, clock multiplexing circuit 130, and data multiplexing circuit 140.
The golden finger 110 comprises a golden finger clock interface 111 and a golden finger data interface 112; the mcu 120 includes an I2C clock interface 123 and an I2C data interface 124, and an SWD clock interface 121 and an SWD data interface 122; the clock input end of the clock multiplexing circuit 130 is connected to the golden finger clock interface 111, the first clock output end is connected to the SWD clock interface 121, and the second clock output end is connected to the I2C clock interface 123; the data input end of the data multiplexing circuit 140 is connected to the golden finger data interface 112, the first data output end is connected to the SWD data interface 122, and the second data output end is connected to the I2C data interface 124.
The optical module is a photoelectric conversion module composed of the golden finger 110, the micro control unit 120, the laser driver, the limiting amplifier and other structural components, and is mainly used for receiving and transmitting optical signals, wherein the optical signals are connected to the optical module through optical fibers, can be converted into electric signals, and can also be converted into optical signals through the optical module, and then are transmitted through the optical fibers. The optical module may include a light receiving module, a light transmitting-receiving integrated module, a light transmitting-receiving module, and the like according to functions. The optical transceiver integrated module mainly has the functions of realizing photoelectric and electro-optical conversion, including optical power control, modulation transmission, signal detection and amplitude limiting amplification judgment regeneration functions, and also has the functions of anti-counterfeiting information inquiry and the like; besides the function of photoelectric conversion, the optical forwarding module also integrates a plurality of signal processing functions, such as function control, performance acquisition and monitoring.
The golden finger 110 is hardware for transmitting signals, and data stream and electronic stream of the memory processing unit can be exchanged with the computer system by contacting the golden finger 110 with the memory slot. For example, between the memory bank and the memory slot, between the video card and the video card slot, all signals are transmitted through the pins of the gold finger 110. The gold finger 110 is composed of a plurality of gold-colored conductive contacts, which are arranged like fingers because their surfaces are gold-plated. The gold finger 110 is actually covered with a layer of gold on the copper-clad plate through a special process, and the gold has strong oxidation resistance and strong conductivity, so that the gold finger 110 is effectively ensured to have good transmission performance all the time in the use process.
The plurality of interfaces of the golden finger 110 include a golden finger clock interface 111 and a golden finger data interface 112, which are used for acquiring a software program, specifically, the golden finger clock interface 111 is used for transmitting a clock signal, and the golden finger data interface 112 is used for transmitting a data signal.
The micro control Unit 120 (MCU) is a chip-level computer formed by appropriately reducing the frequency and specification of a Central Processing Unit (CPU) and integrating peripheral interfaces such as a memory (memory), a counter (Timer), a Universal Serial Bus (USB), and even a driving circuit on a single chip. The micro control unit 120 may include one or more processing cores.
The micro control unit 120 in the optical module includes a software program writing interface supporting serial communication. The optical module can support a two-wire system, namely, a clock signal corresponds to one clock line, and a data signal corresponds to one data line. Software program write interfaces in mcu 120 that support serial communication may include I2C clock interface 123 and I2C data interface 124, as well as SWD clock interface 121 and SWD data interface 122.
It should be noted that the I2C clock interface 123 and the I2C data interface 124 both belong to the I2C interface. The I2C interface is a two-wire serial interface, which is a standard for connection. Devices provided with an I2C interface may communicate through an I2C bus transmission channel.
The I2C bus (two-wire serial bus) is a serial bus composed of a serial clock line and a serial data line, and is used for transmitting and receiving signals between devices connected to the bus. Two lines, a serial clock line and a serial data line, are used to transmit clock signals and data signals, respectively, between devices connected to the bus.
The manner of connecting the clock input end of the clock multiplexing circuit 130 to the golden finger clock interface 111 and connecting the second clock output end to the I2C clock interface 123 may be: as shown in fig. 1, the clock input terminal of the clock multiplexing circuit 130 is connected to the golden finger clock interface 111 through a serial clock line, and the second clock output terminal of the clock multiplexing circuit 130 is connected to the I2C clock interface 123 through a serial clock line, so that the golden finger clock interface 111 and the I2C clock interface 123 can transmit clock signals through the serial clock line. The data input terminal of the data multiplexing circuit 140 is connected to the golden finger data interface 112, and the second data output terminal is connected to the I2C data interface 124, such that: as shown in fig. 1, the data input terminal of the data multiplexing circuit 140 is connected to the golden finger data interface 112 via a serial data line, and the second data output terminal of the data multiplexing circuit 140 is connected to the I2C data interface 124 via a serial data line, so that the golden finger data interface 112 and the I2C data interface 124 can transmit data signals via the serial data line.
Likewise, the SWD clock interface 121 and the SWD data interface 122 both belong to the SWD interface. The SWD interface (Serial Wire Debug interface) belongs to a two-Wire Serial interface.
The manner of connecting the first clock output terminal of the clock multiplexing circuit 130 to the SWD clock interface 121 may be: as shown in fig. 1, the first clock output terminal of the clock multiplexing circuit 130 is connected to the SWD clock interface 121 through a serial clock line, so that the golden finger clock interface 111 and the SWD clock interface 121 can transmit clock signals through the serial clock line. The first data output of the data multiplexing circuit 140 may be connected to the SWD data interface 122 in the following manner: as shown in fig. 1, the first data output terminal of the data multiplexing circuit 140 is connected to the SWD data interface 122 via a serial data line, so that the gold finger data interface 112 and the SWD data interface 122 can transmit data signals via the serial data line.
In the optical module provided in the embodiment of the present application, the SWD clock interface 121 and the SWD data interface 122 in the mcu 120 are used for acquiring the boot program, and the I2C clock interface 123 and the I2C data interface 124 are used for acquiring the firmware program. In the process of acquiring the software program by the optical module, the mcu 120 in the optical module does not use the SWD clock interface 121 and the SWD data interface 122 after acquiring the boot program, but uses the I2C clock interface 123 and the I2C data interface 124 to acquire the firmware program, so that the SWD clock interface 121 and the SWD data interface 122 do not work simultaneously with the I2C clock interface 123 and the I2C data interface 124. Therefore, with the optical module of the present application, since the SWD clock interface 121 and the I2C clock interface 123 do not operate simultaneously, and the SWD clock interface 121 and the I2C clock interface 123 both belong to two-wire serial interfaces and can transmit clock signals, the SWD clock interface 121 and the I2C clock interface 123 can share a serial clock line, specifically, as shown in fig. 2. Likewise, SWD data interface 122 and I2C data interface 124 may share a serial data line, as shown in FIG. 2 in particular. Thus, the microcontroller's SWD clock interface 121 and I2C clock interface 123 may multiplex the golden finger clock interface 111, the SWD data interface 122, and the I2C data interface 124 may multiplex the golden finger data interface 112.
The boot loader is a section of program that runs before the kernel of the operating system runs, and the running boot loader is used for initializing hardware devices and establishing a mapping map of a memory space, so that the software and hardware environment of the system enters a proper state, and a proper environment is prepared for subsequently calling the kernel of the operating system.
The Firmware is software of a Basic Input/Output System (BIOS), but is different from ordinary software, and is program code solidified in an integrated circuit, is responsible for controlling and coordinating the integrated circuit, and plays a role in the most Basic and bottom layer work of an electronic product. The firmware is typically stored in an Erasable Read Only Memory (EROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), or a Flash Memory (Flash EEPROM) chip in the device. Generally, the firmware does not need to be updated, if a serious error is found in the firmware, a professional needs to replace the original firmware program by using a chip storing the updated firmware program, for example, the firmware program stored in the BIOS on the motherboard of the computer cannot be directly read or modified by a user, and needs to be updated by the above specific means. Early firmware storage chips were generally designed using rom (read Only Memory) with program codes that were solidified during the production process and could not be modified by any means. As technology continues to evolve, firmware needs to be updated to adapt to the changing hardware environment, so EPROM, EEPROM, and FLASH chips are increasingly used to store firmware, which can be rewritten to a firmware program to allow the firmware to be updated. The firmware program in the optical module is a system software program that is fixed in the optical module and includes an Application Code (Application Code), and the optical module realizes a control function of the module itself by a program stored in an EPROM or a FLASH chip.
In an exemplary embodiment, the clock multiplexer circuit 130 includes a first zero resistor R1, and as shown in fig. 3, a first terminal of the first zero resistor R1 is connected to the golden finger clock interface 111 and a second terminal thereof is connected to the SWD clock interface 121.
The resistance value of the first zero resistance R1 may be less than 50m Ω, or equal to 50m Ω, specifically, 10m Ω, 20m Ω, or 50m Ω.
In an exemplary embodiment, the data multiplexing circuit 140 includes a second zero resistance R2, and as shown in fig. 4, a first terminal of the second zero resistance R2 is connected to the gold finger data interface 112 and a second terminal thereof is connected to the SWD data interface 122.
The resistance value of the second zero resistance R2 may be less than 50m Ω, or equal to 50m Ω, specifically, 10m Ω, 20m Ω, or 50m Ω.
In the optical module in the embodiment of the application, because the SWD clock interface and the I2C clock interface both belong to a two-wire serial interface and can transmit clock signals, and the SWD data interface and the I2C data interface both belong to a two-wire serial interface and can transmit data signals, and because the SWD clock interface and the SWD data interface have the characteristic of not working simultaneously with the I2C clock interface and the I2C data interface, the SWD clock interface and the I2C clock interface are connected together to the golden finger clock interface by connecting the clock input end of the clock multiplexing circuit to the golden finger clock interface, connecting the first clock output end to the SWD clock interface, and connecting the second clock output end to the I2C clock interface, so that the I2C interface and the SWD interface in the micro-control unit can multiplex the golden finger interface, and the SWD interface can be used to obtain a boot program first without using an extra golden finger interface, and the I2C interface is used for acquiring the firmware program, so that the problem that the optical module without the solidified bootstrap program in the micro control unit is difficult to acquire the software program or update the software program is solved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a software program obtaining method according to another embodiment of the present application. The software program obtaining method provided in the embodiment of the present application will be described in detail below with reference to fig. 5. The software program acquisition method may include the steps of:
step S110: when the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120 are respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112, and the golden finger clock interface 111 and the golden finger data interface 112 are conducted with a software program device, the micro control unit 120 obtains and stores a boot program in the software program device through the golden finger 110.
The switching on of the SWD clock interface 121 and the SWD data interface 122 of the mcu 120 with the gold finger clock interface 111 and the gold finger data interface 112 respectively may be: the micro control unit 120 can transmit a clock signal with the golden finger 110 by connecting the SWD clock interface 121 in the micro control unit 120 with a serial clock line and connecting the serial clock line with the golden finger clock interface 111; the micro control unit 120 can transmit data signals with the gold finger 110 by connecting the SWD data interface 122 in the micro control unit 120 with the serial data line and connecting the serial data line with the gold finger data interface 112.
The connection between the gold finger clock interface 111 and the gold finger data interface 112 and the software program device may be: the gold finger clock interface 111 and the gold finger data interface 112 are connected to the software program device through wires, so that the gold finger 110 can transmit clock signals and data signals with the software program device.
Considering that the software program device may include a J-Link emulator, and the connection manner of the optical module and the J-Link emulator is as shown in fig. 6, the step S110 may further include the following sub-steps:
substep S111: when the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120 are respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112, and the golden finger clock interface 111 and the golden finger data interface 112 are conducted with the J-Link emulator 200, the micro control unit 120 obtains and stores the boot program in the J-Link emulator 200 through the golden finger 110.
The J-Link emulator 200 is a Joint Test Action Group (JTAG) protocol conversion box, i.e., a small USB to JTAG conversion box, and the target board uses the JTAG protocol. The J-Link emulator 200 performs a software to hardware conversion. The input and output interfaces of the J-Link emulator 200 include a serial clock interface and a serial data interface.
The connection between the golden finger clock interface 111 and the golden finger data interface 112 and the J-Link emulator 200 may be: the golden finger clock interface 111 and the golden finger data interface 112 are connected with the serial clock interface and the serial data interface of the J-Link simulator 200 through wires, so that the golden finger 110 can transmit clock signals and data signals with the J-Link simulator 200.
Considering that the software program device may include the J-Link emulator 200 and the first external device, and the J-Link emulator 200 is conducted with the first external device, and the connection manner of the optical module 100, the J-Link emulator 200 and the first external device is shown in fig. 7, the step S110 may further include the following sub-steps:
substep S112: when the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120 are respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112, and the golden finger clock interface 111 and the golden finger data interface 112 are conducted with the J-Link emulator 200, the micro control unit 120 obtains and stores the boot program in the first external device 300 through the golden finger 110 and the J-Link emulator 200.
The first external device 300 may include a Personal Computer (PC), a server, and other electronic devices.
The connection between the J-Link emulator 200 and the first external device 300 may be: the J-Link emulator 200 is connected to the first external device 300 through a USB interface, so that the J-Link emulator 200 can transmit clock signals and data signals with the first external device 300.
The way for the mcu 120 to obtain the boot program in the first external device 300 through the gold finger 110 and the J-Link emulator 200 may be: the first external device 300 stores automatic test software, and when a boot program needs to be downloaded, a user can write the boot program into the micro control unit 120 by using the automatic test software in the first external device 300, and transmit the boot program to the micro control unit 120 through the J-Link emulator 200 and the gold finger 110, so that the micro control unit 120 obtains the boot program in the first external device 300.
Step S120: the boot program is run to disable the SWD clock interface 121 and the SWD data interface 122.
The method for disabling the SWD clock interface 121 and the SWD data interface 122 may be: after the mcu 120 obtains and stores the boot program in the software program device through the golden finger 110, the mcu 120 runs the boot program and sends a disable instruction to the SWD clock interface 121 and the SWD data interface 122 in the mcu 120, where the disable instruction is used to disable the SWD clock interface 121 and the SWD data interface 122 in the mcu 120, so that the SWD clock interface 121 and the SWD data interface 122 in the mcu 120 cannot be respectively connected to the golden finger clock interface 111 and the golden finger data interface 112, thereby avoiding the erroneous operation of the SWD clock interface 121 and the SWD data interface 122 when the I2C clock interface 123 and the I2C data interface 124 are in operation.
Step S130: when the I2C clock interface 123 and the I2C data interface 124 in the mcu 120 are respectively connected to the golden finger clock interface 111 and the golden finger data interface 112, and the golden finger clock interface 111 and the golden finger data interface 112 are connected to a second external device, the mcu 120 obtains and stores the firmware program in the second external device through the golden finger 110.
After acquiring the boot program and disabling the SWD clock interface 121 and the SWD data interface 122, the mcu 120 no longer uses the SWD clock interface 121 and the SWD data interface 122, and uses the I2C clock interface 123 and the I2C data interface 124 to acquire other software programs including the firmware program in the second external device.
The I2C clock interface 123 and the I2C data interface 124 of the mcu 120 are respectively connected to the gold finger clock interface 111 and the gold finger data interface 112, and may be: the micro control unit 120 can transmit a clock signal with the golden finger 110 by connecting the I2C clock interface 123 in the micro control unit 120 with a serial clock line and connecting the serial clock line with the golden finger clock interface 111; the mcu 120 can communicate data signals with the gold finger 110 by connecting the I2C data interface 124 in the mcu 120 to the serial data line and the serial data line to the gold finger data interface 112.
The second external device may include a Personal Computer (PC), a server, and other electronic devices. As an alternative embodiment, the second external device is the same electronic device as the first external device 300. Fig. 8 shows a connection mode between the optical module 100 and the second external device.
The connection between the golden finger clock interface 111 and the golden finger data interface 112 and the second external device 400 may be: the gold finger clock interface 111 and the gold finger data interface 112 are connected to the second external device 400 through wires, so that the gold finger 110 can transmit clock signals and data signals with the second external device 400.
The way for the mcu 120 to obtain the firmware program in the second external device 400 through the gold finger 110 may be: the second external device 400 stores therein automatic test software, and when a firmware program needs to be downloaded, a user can write the firmware program into the mcu 120 by using the automatic test software in the second external device 400, and transmit the firmware program to the mcu 120 through the gold finger 110, so that the mcu 120 can obtain the firmware program in the second external device 400.
In the software program obtaining method provided in the embodiment of the application, the mcu 120 first uses the SWD clock interface 121 and the SWD data interface 122 to obtain the boot program, and runs the boot program to disable the SWD clock interface 121 and the SWD data interface 122, and then uses the I2C clock interface 123 and the I2C data interface 124 to obtain the firmware program, and during the process of obtaining the boot program and the firmware program, there is no need to use an extra gold finger interface, which alleviates the problem that the optical module 100 without the solidified boot program inside the mcu 120 is difficult to obtain the software program or update the software program.
Referring to fig. 9, fig. 9 is a flowchart illustrating a software program obtaining method according to another embodiment of the present application. The software program obtaining method provided in the embodiment of the present application will be described in detail below with reference to fig. 9. The software program acquisition method may include the steps of:
step S210: the micro control unit 120 obtains and stores a reset program in the second external device 400 through the gold finger 110.
The reset program is a software program for resetting the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120, and making the SWD clock interface 121 and the SWD data interface 122 respectively reconnect with the golden finger clock interface 111 and the golden finger data interface 112.
In this embodiment, the content of the reset program in the second external device 400 acquired by the micro control unit 120 through the gold finger 110 may refer to the content of the firmware program in the second external device 400 acquired by the micro control unit 120 through the gold finger 110 in step S130 in the foregoing embodiment, which is not described herein again.
The sequence of the micro control unit 120 obtaining the reset program in the second external device 400 and obtaining the firmware program in the second external device 400 may be set according to actual requirements, and is not limited herein.
Step S220: receiving a reset instruction sent by the second external device 400 through the gold finger 110.
The reset instruction is used to reset the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120, and to make the SWD clock interface 121 and the SWD data interface 122 respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112 again.
The manner of receiving the reset instruction sent by the second external device 400 may be: when the SWD clock interface 121 and the SWD data interface 122 need to be re-enabled to update the boot program, the user may send a reset instruction to the optical module 100 by using the automatic test software stored in the second external device 400, and transmit the reset instruction to the micro control unit 120 through the gold finger 110.
Step S230: in response to the reset instruction, the reset program is executed to reset the SWD clock interface 121 and the SWD data interface 122, so that the SWD clock interface 121 and the SWD data interface 122 in the mcu 120 are respectively connected to the golden finger clock interface 111 and the golden finger data interface 112, and can perform data transmission with the software program device through the golden finger 110.
The mode of resetting the SWD clock interface 121 and the SWD data interface 122 may be: after the micro control unit 120 receives the reset instruction sent by the second external device 400 through the golden finger 110, the micro control unit 120 may execute the reset program obtained from the second external device 400, so that the SWD clock interface 121 and the SWD data interface 122 are respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112 again, and thus, data transmission with the software program device is enabled, and a boot program is obtained.
Step S240: and receiving a program updating instruction sent by the software program device through the golden finger 110.
As an alternative embodiment, the software program device may be the first external device 300, and the automatic test software is stored in the first external device 300.
Wherein the program update instruction is for updating the boot program.
The mode of receiving the program update instruction sent by the software program device may be: when the boot program needs to be updated, the user may send a program update command to the optical module 100 by using the automatic test software in the first external device 300, and transmit the program update command to the mcu 120 through the gold finger 110.
Step S250: updating the boot program in response to the program update instruction.
The way of updating the bootstrap program may be: after the SWD clock interface 121 and the SWD data interface 122 in the micro control unit 120 are respectively conducted with the golden finger clock interface 111 and the golden finger data interface 112 again, the golden finger clock interface 111 and the golden finger data interface 112 are conducted with the first external device 300, and the micro control unit 120 receives the program update instruction sent by the first external device 300 through the golden finger 110, the micro control unit 120 obtains the updated boot program in the first external device 300 through the golden finger 110 to replace the previous boot program.
In the software program obtaining method provided in the embodiment of the present application, the mcu 120 uses the I2C clock interface 123 and the I2C data interface 124 to obtain the reset program, and runs the reset program according to the reset instruction to reset the SWD clock interface 121 and the SWD data interface 122, and then updates the boot program according to the program update instruction. In the process of acquiring the reset program and updating the boot program, an extra gold finger interface is not needed, so that the problem that the optical module 100 without the solidified boot program in the mcu 120 is difficult to acquire the software program or update the software program is alleviated.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A light module, comprising:
the golden finger comprises a golden finger clock interface and a golden finger data interface;
a micro-control unit comprising an I2C clock interface and an I2C data interface, and an SWD clock interface and an SWD data interface;
the clock input end of the clock multiplexing circuit is connected with the golden finger clock interface, the first clock output end of the clock multiplexing circuit is connected with the SWD clock interface, the second clock output end of the clock multiplexing circuit is connected with the I2C clock interface, the clock multiplexing circuit comprises a first zero resistor, the first end of the first zero resistor is connected with the golden finger clock interface, and the second end of the first zero resistor is connected with the SWD clock interface;
and a data input end of the data multiplexing circuit is connected with the golden finger data interface, a first data output end of the data multiplexing circuit is connected with the SWD data interface, and a second data output end of the data multiplexing circuit is connected with the I2C data interface.
2. The optical module of claim 1, wherein the data multiplexing circuit comprises a second zero resistance, a first end of the second zero resistance is connected to the gold finger data interface, and a second end of the second zero resistance is connected to the SWD data interface.
3. A software program acquisition method, characterized in that it is applied to a micro control unit in a light module according to any one of claims 1 to 2, said method comprising:
when an SWD clock interface and an SWD data interface in the micro control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and the golden finger clock interface and the golden finger data interface are conducted with software program equipment, the micro control unit obtains a bootstrap program in the software program equipment through the golden finger and stores the bootstrap program;
running the boot program to disable the SWD clock interface and the SWD data interface.
4. The method of claim 3, wherein the software program device comprises a J-Link emulator, the method further comprising:
and when an SWD clock interface and an SWD data interface in the micro control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and the golden finger clock interface and the golden finger data interface are conducted with the J-Link simulator, the micro control unit obtains and stores the guide program in the J-Link simulator through the golden finger.
5. The method of claim 3, wherein the software program device comprises a J-Link emulator and a first peripheral device, and wherein the J-Link emulator is in communication with the first peripheral device, the method further comprising:
and when an SWD clock interface and an SWD data interface in the micro control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and the golden finger clock interface and the golden finger data interface are conducted with the J-Link simulator, the micro control unit obtains and stores the bootstrap program in the first external device through the golden finger and the J-Link simulator.
6. The method of claim 3, wherein after the running the boot program to disable the SWD clock interface and the SWD data interface, further comprising:
and when an I2C clock interface and an I2C data interface in the micro control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and the golden finger clock interface and the golden finger data interface are conducted with a second external device, the micro control unit obtains a firmware program in the second external device through the golden finger and stores the firmware program.
7. The method of claim 6, further comprising:
and the micro control unit acquires and stores the reset program in the second external equipment through the golden finger.
8. The method according to claim 7, wherein after the micro control unit obtains and stores the reset program in the second external device through the golden finger, the method further comprises:
receiving a reset instruction sent by the second external device through the golden finger;
and in response to the reset instruction, operating the reset program to reset the SWD clock interface and the SWD data interface, so that the SWD clock interface and the SWD data interface in the micro-control unit are respectively conducted with the golden finger clock interface and the golden finger data interface, and data transmission can be carried out between the golden finger and the software program equipment.
9. The method of claim 8, wherein after the running the reset program to reset the SWD clock interface and the SWD data interface, further comprising:
receiving a program updating instruction sent by the software program device through the golden finger;
updating the boot program in response to the program update instruction.
CN202110485219.5A 2021-04-30 2021-04-30 Optical module and software program acquisition method Active CN113076274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485219.5A CN113076274B (en) 2021-04-30 2021-04-30 Optical module and software program acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485219.5A CN113076274B (en) 2021-04-30 2021-04-30 Optical module and software program acquisition method

Publications (2)

Publication Number Publication Date
CN113076274A CN113076274A (en) 2021-07-06
CN113076274B true CN113076274B (en) 2022-08-09

Family

ID=76616603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485219.5A Active CN113076274B (en) 2021-04-30 2021-04-30 Optical module and software program acquisition method

Country Status (1)

Country Link
CN (1) CN113076274B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204731586U (en) * 2015-07-01 2015-10-28 四川泰瑞创通讯技术有限公司 Possesses the optical module of blocked operation under C2 debugging mode and normal mode of operation
CN207732773U (en) * 2018-02-01 2018-08-14 四川泰瑞创通讯技术股份有限公司 Test device based on the optical module performance that I2C interface accesses
CN109818677A (en) * 2019-03-20 2019-05-28 青岛海信宽带多媒体技术有限公司 Optical module and optical network apparatus
CN110515633A (en) * 2019-08-30 2019-11-29 深圳市汇顶科技股份有限公司 Burning device and system
CN110531998A (en) * 2019-09-04 2019-12-03 青岛海信宽带多媒体技术有限公司 A kind of firmware programming method of optical module and optical module
CN110729265A (en) * 2019-10-21 2020-01-24 青岛海信宽带多媒体技术有限公司 Optical module and optical network device
CN111045930A (en) * 2019-11-18 2020-04-21 武汉光谷信息光电子创新中心有限公司 Method and system for downloading and debugging optical module code
CN210776245U (en) * 2019-08-23 2020-06-16 深圳市欧深特信息技术有限公司 Optical module
CN214756745U (en) * 2021-02-01 2021-11-16 瑞泰(威海)电子科技有限公司 Optical module circuit

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10484100B2 (en) * 2017-08-25 2019-11-19 Source Photonics (Chengdu) Co. Ltd. Optical module, optical module system and monitor method using the same
CN107608692A (en) * 2017-09-01 2018-01-19 江苏钜芯集成电路技术股份有限公司 Wireless burning device
KR102518370B1 (en) * 2018-01-19 2023-04-05 삼성전자주식회사 Storage device and debugging system thereof
TWI662474B (en) * 2018-03-06 2019-06-11 智原科技股份有限公司 Method and apparatus for performing firmware programming on microcontroller chip, and associated microcontroller chip
JP7077921B2 (en) * 2018-11-21 2022-05-31 住友電気工業株式会社 Optical transceiver
CN209373536U (en) * 2018-12-19 2019-09-10 常州硬功馆科技有限公司 Ergonomics two fingers input human-computer interaction device
US10916274B2 (en) * 2019-04-19 2021-02-09 Samsung Electronics Co., Ltd. Power management integrated circuits and semiconductor memory modules including power management integrated circuits
CN209708166U (en) * 2019-06-10 2019-11-29 江苏恒宝智能系统技术有限公司 A kind of bluetooth card

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204731586U (en) * 2015-07-01 2015-10-28 四川泰瑞创通讯技术有限公司 Possesses the optical module of blocked operation under C2 debugging mode and normal mode of operation
CN207732773U (en) * 2018-02-01 2018-08-14 四川泰瑞创通讯技术股份有限公司 Test device based on the optical module performance that I2C interface accesses
CN109818677A (en) * 2019-03-20 2019-05-28 青岛海信宽带多媒体技术有限公司 Optical module and optical network apparatus
CN210776245U (en) * 2019-08-23 2020-06-16 深圳市欧深特信息技术有限公司 Optical module
CN110515633A (en) * 2019-08-30 2019-11-29 深圳市汇顶科技股份有限公司 Burning device and system
CN110531998A (en) * 2019-09-04 2019-12-03 青岛海信宽带多媒体技术有限公司 A kind of firmware programming method of optical module and optical module
CN110729265A (en) * 2019-10-21 2020-01-24 青岛海信宽带多媒体技术有限公司 Optical module and optical network device
CN111045930A (en) * 2019-11-18 2020-04-21 武汉光谷信息光电子创新中心有限公司 Method and system for downloading and debugging optical module code
CN214756745U (en) * 2021-02-01 2021-11-16 瑞泰(威海)电子科技有限公司 Optical module circuit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"10G可调谐SFP PLUS光通信模块的设计与实现";张臣;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180515;第I136-124页 *
"The Hacker"s hardware Toolkit";Yago Hansen;《https://github.com/yadox666/The-Hackers-Hardware-Toolkit》;20191231;第1-184页 *

Also Published As

Publication number Publication date
CN113076274A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN110531998B (en) Optical module and firmware programming method thereof
CN114003538B (en) Identification method of intelligent network card and intelligent network card
US8397053B2 (en) Multi-motherboard server system
US9405717B2 (en) Memory device debugging on host platforms
CN113609045B (en) Intelligent network card BMC communication structure and method
CN116032746A (en) Information processing method and device of resource pool, storage medium and electronic device
CN101739322A (en) Test device and method of embedded system
CN113076274B (en) Optical module and software program acquisition method
CN108132899A (en) A kind of transmission mode configuration method, apparatus and system
WO2024113767A1 (en) Power-on method and power-on apparatus for smart network interface cards
CN117097614A (en) Storage system and plug-in card working mode switching device thereof
CN110750475A (en) Method and device for sharing one physical serial port by multiple CPUs, embedded equipment and medium
US8700826B2 (en) Controller, computer system and control method thereof
CN114253783A (en) Method, device, equipment and storage medium for SSD firmware download test
US10120828B2 (en) Bridge for bus-powered peripheral device power management
EP3182295A1 (en) Communication system with serial ports for automatically identifying device types and communication protocols and method thereof
US9465765B2 (en) All-in-one SATA interface storage device
CN212433752U (en) Communication voltage self-adaptive chip simulator circuit
CN111026428A (en) System and method capable of simultaneously remotely updating FPGA firmware programs in multiple board cards on line
CN104143350A (en) Electronic apparatus
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip
US20220405233A1 (en) Processor chip, dongle device, and operation method
CN114579381B (en) Remote debugging method, system, terminal and storage medium for disk array
CN115801711B (en) Optical port test chip and device
CN113407470B (en) Method, device and equipment for multiplexing low pin count interface and universal asynchronous receiver-transmitter interface

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An optical module and software program acquisition method

Effective date of registration: 20230104

Granted publication date: 20220809

Pledgee: Chengdu SME financing Company Limited by Guarantee

Pledgor: Chengdu youbochuang Communication Technology Co.,Ltd.

Registration number: Y2023990000005

PE01 Entry into force of the registration of the contract for pledge of patent right