A firmware upgrade device
By designing multi-interface firmware upgrade equipment, we solve the problem of low efficiency in writing code for a single module of existing equipment, realize firmware upgrades for multiple modules at the same time, improve production efficiency and reduce time costs.
Patent Information
- Application Number
- CN202011587893.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-28
AI Technical Summary
Existing firmware upgrade equipment can only write code for a single module, resulting in low factory production efficiency, failure to keep up with demand, and increased time costs.
Design a firmware upgrade device, including a micro control unit and a variety of adapter board bases. Each adapter board base can be plugged into a variety of adapter boards. The micro control unit is connected to the adapter board through multiple communication interfaces to achieve Firmware upgrades for multiple communication modules improve coding efficiency.
It effectively improves the factory's firmware upgrade efficiency for communication modules, shortens production time, reduces time costs, and enables simultaneous firmware upgrades for multiple modules.
Smart Images

Figure CN114756256B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of optical fiber communication equipment, and in particular to a firmware upgrade device. Background Art
[0002] With the continuous development of the times and the continuous progress of society, people's demand for the network is getting higher and higher. Due to the low cost of optical communication, high communication rate and large communication capacity, optical communication modules and related products are increasingly widely used, especially in data centers. These communication modules are installed on communication equipment such as switches and routers of different brands to achieve highly stable data transmission. There is a ROM storage area of a certain capacity inside all optical communication modules or cable products, which is used to store the identity information of the module, including wavelength, communication distance, production date, communication wavelength, rate, etc. It also stores some specific identification information required by different brands of equipment, and this information is written into the module through the "firmware upgrade device".
[0003] Existing firmware upgrade equipment can only write code for a single module. However, in the actual manufacturing process, the efficiency of writing code directly affects the factory's production progress and delivery speed. Therefore, the existing firmware upgrade equipment's way of writing code for modules will make the factory's production efficiency low, unable to keep up with the demand progress, and increase time costs. Summary of the invention
[0004] The embodiment of the present application provides a firmware upgrade device, which solves the problem that the existing firmware upgrade device writes code to the module, resulting in low production efficiency of the factory, failing to keep up with the demand progress, and increasing time costs.
[0005] In the first aspect, a firmware upgrade device is provided, comprising: a microcontroller unit, a plurality of adapter board bases and a plurality of adapter boards; the microcontroller unit comprises a plurality of communication interfaces, and the plurality of communication interfaces are respectively connected one-to-one with a plurality of adapter board bases; each of the adapter board bases is plugged with any one of the plurality of adapter boards; each adapter board is provided with a type of communication module interface for converting a connection mode of the microcontroller unit into a connection mode of a communication module, so that a corresponding type of communication module can be inserted and connected with the microcontroller unit.
[0006] According to the firmware upgrade device provided by the present application, the microcontroller unit is connected to multiple adapter board bases, and each adapter board base can be plugged with multiple different adapter boards. Each adapter board corresponds to an inserted communication module, so that the microcontroller unit can perform firmware upgrades on multiple communication modules at a time, and the multiple communication modules can be the same communication modules or different communication modules, which effectively improves the efficiency of the factory's fixed upgrade of the communication modules, speeds up the factory's production needs, and reduces time costs.
[0007] In a possible design, the function pin of the adapter board is connected to the micro control unit, so that the micro control unit controls the working state of the adapter board;
[0008] The detection pin of the adapter board is connected to the micro control unit, so that the micro control unit obtains the insertion status of the communication module on the adapter board by detecting the level of the detection pin;
[0009] The read / write code pin of the adapter board is connected to the micro control unit so that the micro control unit writes code to the communication module inserted into the adapter board and reads the working status of the adapter board to monitor it.
[0010] In a possible design, there are four types of adapter boards, namely, an SFP adapter board, an XFP adapter board, a QSFP adapter board, and a QSFP-DD adapter board.
[0011] In a possible design, the functional pins of the SFP adapter board are the second pin, the third pin and the eighth pin;
[0012] The detection pin of the SFP adapter board is the sixth pin;
[0013] The read / write code pins of the SFP adapter board are the fourth pin and the fifth pin.
[0014] In a possible design, the function pins of the XFP adapter board are the third pin, the fourth pin, the fifth pin, the fourteenth pin, and the twenty-first pin;
[0015] The detection pin of the XFP adapter board is the twelfth pin;
[0016] The read / write code pins of the XFP adapter board are the tenth pin and the eleventh pin.
[0017] In a possible design, the function pins of the QSFP adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin;
[0018] The detection pin of the QSFP adapter board is the twenty-seventh pin;
[0019] The read / write code pins of the QSFP adapter board are the eleventh pin and the twelfth pin.
[0020] In a possible design, the functional pins of the QSFP-DD adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin;
[0021] The detection pin of the QSFP-DD adapter board is the twenty-seventh pin;
[0022] The read / write code pins of the QSFP-DD adapter board are the eleventh pin and the twelfth pin.
[0023] In one possible design, the firmware upgrade device further includes: a plurality of working status indicator lights;
[0024] A plurality of working status indicator lights are used to correspond one-to-one with a plurality of adapter plate bases to indicate the working status of the adapter plate plugged into the adapter plate base;
[0025] A plurality of working status indicator lights are respectively connected to the micro control unit.
[0026] In a possible design, the firmware upgrade device further includes: a power conversion module and a plurality of voltage stabilization modules;
[0027] The power conversion module comprises a first current line and a second current line, and two capacitors are connected in parallel between the first current line and the second current line;
[0028] The first end of the first current line is connected to the controller, and the second end outputs a transformed DC power supply;
[0029] A first end of the second current line is connected to a 220V AC power supply, and a second end is grounded;
[0030] A plurality of the voltage stabilizing modules are respectively connected to a plurality of the adapter plate bases in a one-to-one correspondence;
[0031] A plurality of the voltage stabilizing modules are electrically connected to the power conversion modules respectively, and a power switch is provided on the connection line between the plurality of the voltage stabilizing modules and the power conversion modules.
[0032] In one possible design, the firmware upgrade device further includes: a USB Type-C communication interface module and a USB voltage regulator module;
[0033] The USB voltage stabilization module is connected to the USB Type-C communication interface module and the micro control unit respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1It is a structural diagram of the firmware upgrade device provided in an embodiment of the present application.
[0035] Figure 2 It is a schematic diagram of the firmware upgrade device provided in an embodiment of the present application.
[0036] Figure 3 It is the circuit diagram of the micro control unit.
[0037] Figure 4 This is the circuit diagram of the SFP adapter board.
[0038] Figure 5 This is the circuit diagram of the XFP adapter board.
[0039] Figure 6 This is the circuit diagram of the QSFP adapter board.
[0040] Figure 7 This is the circuit diagram of the QSFP-DD adapter board.
[0041] Figure 8 It is the circuit diagram of the working status indicator light.
[0042] Fig. 9 This is the circuit diagram of the power conversion module.
[0043] Fig.10 This is the circuit diagram of the voltage regulator module.
[0044] Fig.11 It is the circuit diagram of USB Type-C communication interface module and USB voltage regulator module.
[0045] Figure numerals: 10, micro control unit; 20, adapter board base; 30, adapter board; 40, working status indicator light; 50, power conversion module; 60, voltage regulator module; 70, power switch; 80, USB Type-C communication interface module; 90, USB voltage regulator module. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0047] In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0048] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0049] In the description of the present application, it should be understood that the terms "upper", "lower", "side", "front", "rear", etc. indicate orientations or positional relationships based on the installation, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0050] It should also be noted that, in the embodiments of the present application, the same figure mark is used to represent the same component or the same part. For the same parts in the embodiments of the present application, the figure may only mark one of the parts or components as an example. It should be understood that the figure mark also applies to other identical parts or components.
[0051] The embodiment of the present application provides a firmware upgrade device, which solves the problem that the existing firmware upgrade device writes code to the module, resulting in low production efficiency of the factory, failing to keep up with the demand progress, and increasing time costs.
[0052] Figure 1 It is a structural diagram of the firmware upgrade device provided in an embodiment of the present application. Figure 2 It is a schematic diagram of the firmware upgrade device provided in an embodiment of the present application.
[0053] like Figure 1-2As shown, the firmware upgrade device provided in the embodiment of the present application includes a microcontroller unit 10, a plurality of adapter board bases 20 and a plurality of adapter boards 30; the microcontroller unit 10 includes a plurality of communication interfaces, and the plurality of communication interfaces are respectively connected to a plurality of adapter board bases 20 in a one-to-one correspondence; any one of the plurality of adapter boards 30 is plugged into each adapter board base 20; each adapter board 30 is provided with a type of communication module interface for converting the connection mode of the microcontroller unit 10 into the connection mode of the communication module, so that the corresponding type of communication module can be inserted and connected to the microcontroller unit 10.
[0054] According to the firmware upgrade device provided in the present application, the microcontroller unit 10 is connected to a plurality of adapter board bases 20, and a plurality of different adapter boards 30 can be plugged into each adapter board base 20, and each type of adapter board 30 corresponds to an inserted communication module. In this way, the microcontroller unit 10 can perform firmware upgrades on a plurality of communication modules at a time, and the plurality of communication modules can be the same type of communication modules or different types of communication modules, which effectively improves the efficiency of the factory in performing fixed upgrades on the communication modules, speeds up the progress of the factory's production needs, and reduces time costs.
[0055] Optionally, the main control chip of the microcontroller unit 10 in the embodiment of the present application can be selected from the STM32F407ZET6 chip, which is used to complete the whole machine fast calculation scheduling and the read and write code operations and status indications of various communication modules. The circuit diagram of the STM32F407ZET6 chip is as shown in FIG. Figure 3 When the STM32F407ZET6 chip is selected as the main control chip of the microcontroller unit 10, the microcontroller unit 10 only has 5 communication interfaces that can be connected to the communication module to read and write codes thereon. At this time, the microcontroller unit 10 is connected to 5 adapter board bases 20, and each of the 5 adapter board bases 20 is plugged with an adapter board 30. Of course, the adapter boards 30 here can be adapter boards 30 of the same type or different types. In this way, the firmware upgrade device of the present application can perform firmware upgrade operations on 5 communication modules at the same time, which greatly improves the efficiency of firmware upgrade.
[0056] The connection between the five communication interfaces of the microcontroller unit 10 and the five adapter board bases 20 all adopts an independent I2C bus connection method. When a communication module is inserted into a certain adapter board 30, the microcontroller unit 10 will control the connection line corresponding to the adapter board 30 to be connected, so that the microcontroller unit 10 performs a firmware upgrade operation on the communication module inserted into the adapter board 30 through the connected path, and at the same time records that no communication module is inserted into the remaining four adapter boards 30, and the corresponding four connection lines of these four adapter boards 30 are not connected. When two or more adapter boards 30 are inserted with communication modules, the microcontroller unit 10 will identify the adapter board 30 that is first inserted with the communication module, and connect the connection line corresponding to the adapter board 30, so that the microcontroller unit 10 performs a firmware upgrade operation on the communication module inserted on this adapter board 30 through the connected path, and then identify the adapter board 30 that is first inserted with the communication module in the remaining adapter boards 30, and connect the connection line corresponding to the adapter board 30, and so on, connect the connection lines corresponding to all adapter boards 30 inserted with communication modules; this line connection method makes the firmware upgrade operation of each path independent and will not be affected by other paths. When two or more adapter boards 30 are simultaneously inserted with communication modules, the microcontroller unit 10 will simultaneously connect the corresponding connection lines of the two or more adapter boards 30, so that the microcontroller unit 10 performs a firmware upgrade operation on two or more communication modules at the same time, and through the RTOS task scheduling management system inside the microcontroller unit 10, the interval time will be shortened to the minimum to ensure the highest efficiency of writing code for the communication module.
[0057] For example, this application uses I2C communication at a rate of 400Kbps to communicate with the firmware upgrade device for writing code to the optical module, while USB_FS communication is used between the PC and the firmware upgrade device, with a rate of up to 12Mbps. The time required for writing code for a single channel depends on the register size of different optical modules, and it can basically be completed in 1-5 seconds. Since the five channels are written at the same time, the time required for writing code to the five optical modules at the same time is also 1-5 seconds, which is more than 5 times faster than the coding boards currently available on the market.
[0058] It should be noted that the communication module plugged into the adapter board 30 can be an optical module, an active cable product, or a passive cable product. The adapter board 30 plugged into the adapter board base 20 means that the adapter board 30 can be removed from the adapter board base 20 at any time and replaced with another type of adapter board 30, so that the firmware upgrade device is compatible with different series of communication modules and better adapts to different firmware upgrade requirements.
[0059] like Figure 4-7As shown, the function pin of the adapter board 30 is connected to the microcontroller unit 10 so that the microcontroller unit 10 controls the working state of the adapter board 30; the detection pin of the adapter board 30 is connected to the microcontroller unit 10 so that the microcontroller unit 10 obtains the insertion state of the communication module on the adapter board 30 by detecting the level of the detection pin; the read / write code pin of the adapter board 30 is connected to the microcontroller unit 10 so that the microcontroller unit 10 writes code to the communication module inserted on the adapter board 30 and reads the working state of the adapter board 30 for monitoring.
[0060] Through the above settings, the function pins of the adapter board 30 are connected to the microcontroller unit 10, and the microcontroller unit 10 can control the working state of the adapter board 30; the read / write code pins of the adapter board 30 are connected to the microcontroller unit 10, and the microcontroller unit 10 can write codes to the communication module inserted on the adapter board 30 and read the working state of the adapter board 30 for monitoring; in this way, the firmware upgrade device of the embodiment of the present application has both the firmware upgrade function and the digital diagnosis monitoring function. It should be noted that the code writing operation of the microcontroller unit 10 on the communication module can be that the communication module writes various information into the communication module during production, or when the communication module is to be installed on switches of different brands, the switch brand identification information stored inside the communication module is modified so that the communication module can adapt to switches of different brands. Through the firmware upgrade device of the present application and the corresponding supporting software, engineers can easily confirm whether the communication module in their hands is normal, which greatly facilitates the use of on-site personnel.
[0061] In addition, the detection pin of the adapter board 30 is connected to the microcontroller unit 10. When the communication module is not inserted into the adapter board 30, the level of the pin detected by the microcontroller unit 10 is a high level. When the communication module is inserted into the adapter board 30, the level of the pin detected by the microcontroller unit 10 becomes a low level. In this way, the microcontroller unit 10 can quickly identify which adapter board 30 has the communication module inserted therein, so as to quickly connect the connection line corresponding to the adapter board 30.
[0062] There are four types of adapter boards 30 in the firmware upgrade device provided in the embodiment of the present application, namely, an SFP adapter board, an XFP adapter board, a QSFP adapter board and a QSFP-DD adapter board.
[0063] In the embodiment of the present application, the SFP adapter board can be but not limited to inserting an SFP optical module or an SFP+ optical module, the XFP adapter board can be but not limited to inserting an XFP optical module, the QSFP adapter board can be but not limited to inserting a QSFP optical module or a QSFP+ optical module, the QSFP-DD adapter board can be but not limited to inserting a QSFP-DD optical module, and active cable products or passive cable products can be inserted into the SFP adapter board, the XFP adapter board, the QSFP adapter board and the QSFP-DD adapter board, because the active cable products or passive cable products are compatible with the SFP adapter board, the XFP adapter board, the QSFP adapter board and the QSFP-DD adapter board.
[0064] In addition, since the external label of the communication module is divided into front and back sides, the adapter board of the communication module is also divided into front and back sides (consistent with the direction of the external label), so 8 types of adapter boards (SFP front, XFP front, QSFP front, QSFP-DD front, SFP back, XFP back, QSFP back, QSFP-DD back) can be inserted into each adapter board base. The schematic diagrams of the adapter boards of the same series are the same, but the layout directions on the PCB circuit board are opposite.
[0065] like Figure 4 As shown, the function pins of the SFP adapter board are the second pin, the third pin and the eighth pin; the detection pin of the SFP adapter board is the sixth pin; and the read / write code pins of the SFP adapter board are the fourth pin and the fifth pin.
[0066] In the above settings, the function pins of the SFP adapter board are TX-FAULT pin, TX-DISABLE pin and RX-Los pin. Among them, the TX-FAULT pin is used to monitor whether there is an error in the transmitter of the communication module; the TX-DISABLE pin is used to turn on the low power consumption of the communication module; the RX-Los pin is used to monitor whether there is an error in the receiver of the communication module; in addition, the RS0 and RS1 pins of the SFP adapter board are the rate selection pins of the communication module, which are used to switch different communication rates.
[0067] The detection pin of the SFP adapter board is the sixth pin, named MOD pin according to the industry standard, which is used to detect the insertion status of the communication module. When the MOD pin is high, it means that the communication module is not inserted, and when the MOD pin is low, it means that the communication module is inserted.
[0068] The read / write code pins of the SFP adapter board are the SDA pin and the SCL pin. The SFP adapter board is connected to the connection line corresponding to the adapter board base to which the SFP adapter board is plugged through the SDA pin and the SCL pin, that is, connected to the I2C bus. In this way, the microcontroller unit can write codes to the communication module through the I2C bus, and read the information stored in the communication module and the working status of the communication module so that the staff can monitor and control the communication module.
[0069] like Figure 5 As shown, the function pins of the XFP adapter board are the third pin, the fourth pin, the fifth pin, the fourteenth pin and the twenty-first pin; the detection pin of the XFP adapter board is the twelfth pin; and the read / write code pins of the XFP adapter board are the tenth pin and the eleventh pin.
[0070] In the above settings, the function pins of the XFP adapter board are MOD-Desel pin, INTERRUPT pin, TX-DIS pin, RX-Los pin and P_DOWN / RST pin. Among them, MOD-Desel pin is used to select the chip of the communication module (low level is valid); INTERRUPT pin is used to monitor whether there is an error in the transmitter of the communication module; TX-DIS pin is used to control the communication module not to work, that is, to control the communication module in the firmware upgrade state, so as to reduce the high power loss caused by the communication module working while the firmware is upgraded; RX-Los pin is used to monitor whether there is an error in the receiver of the communication module; P_DOWN / RST pin is used to turn on the low power consumption of the communication module.
[0071] The detection pin of the XFP adapter board is the MOD_ABS pin, which is used to detect the insertion status of the communication module on the XFP adapter board. When the MOD_ABS pin is at a high level, it means that the communication module is not inserted, and when the MOD_ABS pin is at a low level, it means that the communication module is inserted.
[0072] The read / write code pins of the XFP adapter board are the SDA pin and the SCL pin. The XFP adapter board is connected to the connection line corresponding to the adapter board base to which the XFP adapter board is plugged through the SDA pin and the SCL pin, that is, connected to the I2C bus. In this way, the microcontroller unit can write codes to the communication module through the I2C bus, and read the information stored in the communication module and the working status of the communication module so that the staff can monitor and control the communication module.
[0073] like Figure 6 As shown, the function pins of the QSFP adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin; the detection pin of the QSFP adapter board is the twenty-seventh pin; and the read / write code pins of the QSFP adapter board are the eleventh pin and the twelfth pin.
[0074] In the above settings, the function pins of the QSFP adapter board are MODsel pin, Reset pin, INT pin and LPMOD pin. Among them, MODsel pin is used to select the chip of the communication module (low level is valid); Reset pin is used to reset the communication module (low level is valid); INT pin is used to detect whether the emitter of the communication module is normal; LPMOD pin is used to turn on the low power consumption of the communication module. When the level is high, the communication module turns on low power consumption, otherwise it is turned off.
[0075] The detection pin of the QSFP adapter board is the MODPrs pin, which is used to detect the insertion status of the communication module on the QSFP adapter board. When the MODPrs pin is at a high level, it means that the communication module is not inserted, and when the MODPrs pin is at a low level, it means that the communication module is inserted.
[0076] The read / write code pins of the QSFP adapter board are the SDA pin and the SCL pin. The QSFP adapter board is connected to the connection line corresponding to the adapter board base to which the QSFP adapter board is plugged through the SDA pin and the SCL pin, that is, it is connected to the I2C bus. In this way, the microcontroller unit can write codes to the communication module through the I2C bus, and read the information stored in the communication module and the working status of the communication module so that the staff can monitor and control the communication module.
[0077] like Figure 7 As shown, the function pins of the QSFP-DD adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin; the detection pin of the QSFP-DD adapter board is the twenty-seventh pin; and the read / write code pins of the QSFP-DD adapter board are the eleventh pin and the twelfth pin.
[0078] In the above settings, the function pins of the QSFP-DD adapter board are MODsel pin, Reset pin, INT pin, and LPMOD pin. Among them, the MODsel pin is used to select the chip of the communication module (low level is valid); the Reset pin is used to reset the communication module (low level is valid); the INT pin is used to detect whether the emitter of the communication module is normal; the LPMOD pin is used to turn on the low power consumption of the communication module. When the level is high, the communication module turns on low power consumption, otherwise it is turned off.
[0079] The detection pin of the QSFP-DD adapter board is the MODPreL pin, which is used to detect the insertion status of the communication module on the QSFP-DD adapter board. When the MODPreL pin is at a high level, it means that the communication module is not inserted, and when the MODPreL pin is at a low level, it means that the communication module is inserted.
[0080] The read / write code pins of the QSFP-DD adapter board are the SDA pin and the SCL pin. The QSFP-DD adapter board is connected to the connection line corresponding to the adapter board base to which the QSFP-DD adapter board is plugged through the SDA pin and the SCL pin, that is, it is connected to the I2C bus. In this way, the microcontroller unit can write codes to the communication module through the I2C bus, and read the information stored in the communication module and the working status of the communication module so that the staff can monitor and control the communication module.
[0081] like Figure 8 As shown, the firmware upgrade device also includes a plurality of working status indicator lights 40; the plurality of working status indicator lights 40 are used to correspond one-to-one with a plurality of adapter board bases 20 to indicate the working status of the adapter board 30 plugged into the adapter board base 20; the plurality of working status indicator lights 40 are respectively connected to the micro control unit 10.
[0082] In the above settings, the working status indicator light 40 is an RGB full-color LED light, which can display 256*256*256 colors. Different colors represent different states and can be modified to meet different needs. Optionally, the color definition of the RGB full-color LED light in the embodiment of the present application is as follows: RGB is all off: indicating no load; blue light is always on: indicating that a module is inserted; blue light flashes: indicating that the firmware is being upgraded; green light is always on: indicating that the firmware upgrade is successful; red light is always on: indicating that the firmware upgrade fails. Each firmware upgrade channel uses an RGB full-color LED light to separately indicate the insertion status, read and write operation status, and error status of the communication module, so that the user can know the current status in real time.
[0083] like Figure 9-10 As shown, the firmware upgrade device also includes a power conversion module 50 and several voltage stabilizing modules 60; the power conversion module 50 includes a first current line and a second current line, and two capacitors are arranged in parallel between the first current line and the second current line; the first end of the first current line is connected to the controller, and the second end outputs a transformed DC power supply; the first end of the second current line is connected to a 220V AC power supply, and the second end is grounded; several voltage stabilizing modules 60 are respectively connected to several adapter board bases 20 in a one-to-one correspondence; several voltage stabilizing modules 60 are respectively electrically connected to the power conversion module 50, and a power switch 70 is arranged on the connection line between the several voltage stabilizing modules 60 and the power conversion module 50.
[0084] In the above settings, the power conversion module 50 and the voltage stabilizing module 60 form an external power supply to power the firmware upgrade device, that is, to power the adapter board 30 of the firmware upgrade device. The power conversion module 50 can convert 220V AC power into 5V or 10V DC power to power the adapter board. The maximum output power of the power conversion module 50 can reach 50W. The connection line corresponding to each adapter board base 20 supports a maximum current of 3A, so that the firmware upgrade device still has sufficient power when writing code to the communication module inserted on the adapter board 30, thereby improving the overall performance of the firmware upgrade device.
[0085] The number of voltage stabilizing modules 60 is the same as the number of adapter board bases 20. Each adapter board base 20 is connected to a voltage stabilizing module 60 to provide a stable voltage output for the adapter board 30 plugged into the adapter board base 20. The main chip of the voltage stabilizing module 60 here can be the TPS75801 chip, which is a single-channel output voltage chip that can stabilize the output voltage at 3.3V.
[0086] A power switch 70 is provided on the connection line between each voltage stabilizing module 60 and the power conversion module 50. The power switch 70 can control the on and off of each power supply line, that is, control the on and off of the power supply of each adapter board 30 plugged into the adapter board base 20, which can reduce the interference between the adapter boards 30.
[0087] like Fig.11 As shown, the firmware upgrade device also includes a USB Type-C communication interface module 80 and a USB voltage regulator module 90; the USB voltage regulator module 90 is connected to the USB Type-C communication interface module 80 and the micro control unit 10 respectively.
[0088] In the above configuration, the USB Type-C communication interface module 80 is used to connect the firmware upgrade device to the computer via a USB cable. The USB Type-C communication interface module 80 can be used to power the microcontroller unit 10 and the working status indicator light 40. The USB voltage regulator module 60 can stabilize the power supply of the USB Type-C communication interface module 80 to ensure that the chip logic program of the microcontroller unit 10 is carried out smoothly. A self-resetting fuse F1 is also provided in the circuit of the USB Type-C communication interface module 80 to protect the power supply from overload.
[0089] In addition, in addition to connecting the computer's power supply to the microcontroller unit 10 to power the microcontroller unit 10 and the working status indicator light 40, the USB Type-C communication interface module 80 is also used to communicate between the computer and the firmware upgrade device of the present application.
[0090] The specific communication protocol is as follows:
[0091]
[0092] The USB Type C communication interface used in the embodiment of the present application is compatible with USB2.0 and USB3.0 protocols. Since the USB Type C interface has the characteristic of being direction-independent, it is very convenient to use. At the same time, the embodiment of the present application adopts the USB HID (Universal Serial Bus, USB Human Interface Device) protocol. USB devices with this protocol support driver-free installation functions in multiple platform systems such as Windows / Linux / Mac, and are plug-and-play, which brings great convenience to users.
[0093] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A firmware upgrade device, characterized in that: include: A micro control unit (10), a plurality of adapter plate bases (20), and a plurality of adapter plates (30); The micro control unit (10) comprises a plurality of communication interfaces, and the plurality of communication interfaces are respectively connected to a plurality of adapter plate bases (20) in a one-to-one correspondence; Any one of several types of adapter plates (30) is plugged into each of the adapter plate bases (20); Each adapter board (30) is provided with a type of communication module interface, which is used to convert the connection mode of the micro control unit (10) into the connection mode of the communication module, so that a corresponding type of communication module can be inserted and connected with the micro control unit (10); The function pin of the adapter board (30) is connected to the micro control unit (10), so that the micro control unit (10) controls the working state of the adapter board (30); The detection pin of the adapter board (30) is connected to the micro control unit (10), so that the micro control unit (10) obtains the insertion status of the communication module on the adapter board (30) by detecting the level of the detection pin; The read / write code pin of the adapter board (30) is connected to the micro control unit (10), so that the micro control unit (10) writes code to the communication module inserted into the adapter board (30) and reads the working state of the adapter board (30) to monitor; The plurality of communication modules are of the same type or different types, and the plurality of adapter boards (30) are of the same type or different types. When the communication module is inserted into one of the adapter boards (30), the microcontroller unit (10) controls the connection line corresponding to the adapter board (30) to be connected, so that the microcontroller unit (10) performs a firmware upgrade operation on the communication module inserted into the adapter board (30) through the connected path, and simultaneously records that the communication module is not inserted into the remaining adapter boards (30); when the communication module is inserted into two or more adapter boards (30), the microcontroller unit (10) identifies the adapter board (30) into which the communication module is first inserted, and connects the connection line corresponding to the adapter board (30), so that the microcontroller unit (10) performs a firmware upgrade operation on the communication module inserted into the adapter board (30) through the connected path. The communication module inserted into the adapter board (30) is subjected to a firmware upgrade operation through a through-path, and then the adapter board (30) into which the communication module is first inserted is identified among the remaining adapter boards (30), and the connection lines corresponding to the adapter board (30) are connected, until the connection lines corresponding to all adapter boards (30) into which the communication modules are inserted are connected; when the communication modules are inserted into two or more adapter boards (30) at the same time, the microcontroller unit (10) simultaneously connects the connection lines corresponding to the two or more adapter boards (30), so that the microcontroller unit (10) simultaneously performs a firmware upgrade operation on the two or more communication modules.
2. The firmware upgrade device according to claim 1, characterized in that: There are four types of adapter boards (30), namely, an SFP adapter board, an XFP adapter board, a QSFP adapter board and a QSFP-DD adapter board.
3. The firmware upgrade device according to claim 2, characterized in that: The functional pins of the SFP adapter board are the second pin, the third pin and the eighth pin; The detection pin of the SFP adapter board is the sixth pin; The read / write code pins of the SFP adapter board are the fourth pin and the fifth pin.
4. The firmware upgrade device according to claim 2, characterized in that: The functional pins of the XFP adapter board are the third pin, the fourth pin, the fifth pin, the fourteenth pin and the twenty-first pin; The detection pin of the XFP adapter board is the twelfth pin; The read / write code pins of the XFP adapter board are the tenth pin and the eleventh pin.
5. The firmware upgrade device according to claim 2, characterized in that: The functional pins of the QSFP adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin; The detection pin of the QSFP adapter board is the twenty-seventh pin; The read / write code pins of the QSFP adapter board are the eleventh pin and the twelfth pin.
6. The firmware upgrade device according to claim 2, characterized in that: The functional pins of the QSFP-DD adapter board are the eighth pin, the ninth pin, the twenty-eighth pin and the thirty-first pin; The detection pin of the QSFP-DD adapter board is the twenty-seventh pin; The read / write code pins of the QSFP-DD adapter board are the eleventh pin and the twelfth pin.
7. The firmware upgrade device according to claim 1, characterized in that: The firmware upgrade device further comprises: a plurality of working status indicator lights (40); A plurality of working status indicator lights (40) are used to correspond one-to-one with a plurality of adapter plate bases (20) to indicate the working status of the adapter plate (30) plugged into the adapter plate base (20); A plurality of working status indicator lights (40) are respectively connected to the micro control unit (10).
8. The firmware upgrade device according to claim 1, characterized in that: The firmware upgrade device further comprises: a power conversion module (50) and a plurality of voltage stabilization modules (60); The power conversion module (50) comprises a first current line and a second current line, and two capacitors are connected in parallel between the first current line and the second current line; The first end of the first current line is connected to the controller, and the second end outputs a transformed DC power supply; A first end of the second current line is connected to a 220V AC power supply, and a second end is grounded; A plurality of the voltage stabilizing modules (60) are respectively connected to a plurality of the adapter plate bases (20) in a one-to-one correspondence; The plurality of voltage stabilizing modules (60) are electrically connected to the power conversion module (50) respectively, and a power switch (70) is provided on the connection line between the plurality of voltage stabilizing modules (60) and the power conversion module (50).
9. The firmware upgrade device according to claim 1, characterized in that: The firmware upgrade device further comprises: a USB Type-C communication interface module (80) and a USB voltage regulator module (90); The USB voltage stabilization module (90) is respectively connected to the USB Type-C communication interface module (80) and the micro control unit (10).
