System and method for upgrading hard wire lamp MCU program

By designing an upgrade system and method for hard-wired lamps, using wire harnesses to connect the main upgrade equipment and lamps to realize lossless upgrade of MCU programs, the problem of inability to upgrade without losslessly in the existing technology is solved, economic losses are reduced and the practicality of the system is improved.

CN120104162APending Publication Date: 2025-06-06CHANGZHOU XINGYU AUTOMOTIVE LIGHTING SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510181889.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The existing technology cannot realize the lossless upgrade of the MCU program of hard-wire lamps, resulting in recall and scrapping when the program bug is found after batch production, resulting in economic losses.

Method used

Design a system and method to achieve program upgrade of the lamp MCU through the wiring harness connection between the main upgrade equipment and the lamp, and to avoid dismantling the lamp using the power module, the main control module, the input module and the level conversion module.

Benefits of technology

The lossless upgrade of the hard-wired lamp MCU program is realized, reducing economic losses, improving the practicality and versatility of the system, and the main upgrade equipment is small and portable, and the cost is low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104162A_ABST
    Figure CN120104162A_ABST
Patent Text Reader

Abstract

The invention provides a system and method for upgrading a hard wire lamp MCU program, and relates to the technical field of vehicle lamp program improvement. The system comprises a main upgrading device and a lamp, the main upgrading device is electrically connected with the lamp through a wire harness, a power module, a main control module, an input module and a first level conversion module are integrated in the main upgrading device, and the lamp comprises a second level conversion module and a lamp MCU; the power module is used for providing working voltage for the main control module and the lamp; the input module is used for issuing a control instruction to the main control module; the main control module is used for generating a control signal corresponding to the control instruction based on the control instruction and communicating with the lamp MCU through the first level conversion module; the lamp MCU is used for completing an upgrading program of the lamp MCU based on the control signal; the first level conversion module and the second level conversion module are used for converting signal levels between the lamp MCU and the main control module. The economic loss caused by the fact that the MCU can be upgraded only by dismantling the lamp is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle lamp program improvement, and in particular to a system and method for upgrading a hard-wire lamp MCU program. Background Art

[0002] With the rapid development of the automotive industry, car lights are moving towards intelligence. OEMs and consumers have higher and higher requirements for car lights, and various shapes and dynamic display effects have emerged. The realization of dynamic effects is inseparable from the participation of MCU (Microcontroller Unit, MCU). At present, there are two mainstream input schemes for car lights, namely communication and hard wiring. At present, CAN / LIN communication schemes have been widely used, but compared with hard wiring schemes, communication schemes require the use of transceiver chips and the support of body controllers, and the cost is relatively high, so hard wiring schemes are still widely used.

[0003] Since car lights have extremely high requirements for environmental testing, they are usually assembled using processes such as gluing and hot melting. Once the lights are removed, the outer shell will inevitably be damaged. However, any MCU program cannot guarantee that there are no bugs at all. Some bugs will not be discovered until after mass production. Traditional hard-wired solutions cannot achieve lossless upgrades of lamps. At this time, whether they are recalled for rework or scrapped, it will cause great losses. Therefore, in the existing solution, the MCU program is burned by a burner before the lamps are assembled. It is a one-time burning and cannot be upgraded. Once a major bug is found in the program after mass production, since it is impossible to achieve lossless upgrades of the lamps, they can only be recalled and scrapped, causing great economic losses.

[0004] Therefore, it is necessary to design a system and method for upgrading the MCU program of hard-wired lamps. Summary of the invention

[0005] The purpose of the present invention is to simplify the process of upgrading the MCU program of hard-wired lamps, reduce development costs, and improve the versatility of the system by providing a system and method for upgrading the MCU program of hard-wired lamps.

[0006] On the one hand, the present application provides a system for upgrading the MCU program of a hard-wired lamp, the system comprising: a main upgrade device and a lamp, the main upgrade device being electrically connected to the lamp through a wiring harness, the main upgrade device integrating a power module, a main control module, an input module and a first level conversion module, the lamp comprising a second level conversion module and a lamp MCU; the power module being electrically connected to the main control module and the lamp, and being used to provide working voltage for the main control module and the lamp; the input module being electrically connected to the main control module, and being used to issue control instructions to the main control module through the input module; the main control module being electrically connected to the lamp and the lamp MCU through the first level conversion module and the second level conversion module, and being used to generate a control signal corresponding to the control instruction issued by the input module, and communicating with the lamp MCU through the first level conversion module and the second level conversion module; the lamp MCU being used to complete the upgrade program of the lamp MCU based on the control signal received from the main control module; the first level conversion module and the second level conversion module being used to convert the signal level between the lamp MCU and the main control module.

[0007] Furthermore, a display module is also integrated in the main upgrade device, and the power supply module is electrically connected to the display module for providing a working voltage for the display module, and the main control module is electrically connected to the display module for outputting a control signal to the display module through the main control module so that the display module displays the upgrade process of the lamp MCU.

[0008] Furthermore, the main control module is also used to generate a first control signal after receiving a control instruction to start the upgrade program issued by the input module, and send an upgrade data packet to the lamp MCU through the first level conversion module and the second level conversion module according to a preset communication protocol based on the first control signal.

[0009] Furthermore, the lamp MCU is also used to store the upgrade data packet and set an upgrade flag after a preset program code after receiving all responses to the upgrade data packet.

[0010] Furthermore, the lamp MCU is also used to initialize after receiving the wiring harness connection between the main upgrade device and the lamp, including: the lamp MCU program enters the BOOT area and reads whether there is an upgrade flag; in response to the existence of the upgrade flag, the upgrade data packet stored in the lamp MCU is written into the APP area to complete the upgrade of the lamp MCU and clear the upgrade flag; in response to the absence of the upgrade flag, the lamp MCU program jumps from the BOOT area to the APP area to enter the normal working mode.

[0011] Furthermore, the lamp MCU is also used to send the upgrade process signal to the main control module through the second level conversion module and the first level conversion module.

[0012] Furthermore, the lamp MCU is also used to switch to the program upgrade mode based on the first control signal sent by the main control module, and switch the I / O mode of the UART to the serial port mode for communicating with the main upgrade device.

[0013] In the second aspect, the present application provides a method for upgrading a hard-wired lamp MCU program, which is applied to the above-mentioned system for upgrading a hard-wired lamp MCU program, and the method includes: S1: connecting the main upgrade device to the lamp through a wiring harness for communication; S2: the lamp MCU program enters the BOOT area and reads whether there is an upgrade flag in the BOOT area; S3: in response to the existence of the upgrade flag, writing the upgrade data packet stored in the lamp MCU into the APP area, completing the upgrade of the lamp MCU, and clearing the upgrade flag; S4: after the lamp MCU is restarted, go to step S2; S5: in response to the absence of the upgrade flag, the lamp MCU program is restarted from the BOOT area; The OT area jumps to the APP area to enter the normal working mode; S6: Obtain the control signal sent by the main control module to determine whether an upgrade is required; S7: In response to the need for upgrade, the lamp MCU switches to the upgrade mode, switches the I / O mode of the UART to the serial port mode and responds to the main upgrade device for communication; S8: The main upgrade device sends an upgrade data packet to the lamp MCU based on a preset communication protocol; S9: The lamp MCU stores the upgrade data packet, and after all responses to the upgrade data packet are received, sets the upgrade flag after the preset program code, and goes to step S4; S10: In response to the need for upgrade, disconnect the wiring harness connection between the main upgrade device and the lamp.

[0014] Furthermore, the step S5 includes: BOOT and APP are pre-burned in the lamp MCU, including: merging the BOOT.HEX file and the APP.HEX file into the same file and burning it into the lamp MCU.

[0015] Further, the step S6 includes: the main control module generates a corresponding control signal based on the control instruction issued by the input module, including: when the control instruction input by the input module is an upgrade instruction, the main control module sends a first control signal to the lamp MCU through the first level conversion module and the second level conversion module; when the control instruction input by the input module is a non-upgrade instruction, the main control module sends a second control signal to the lamp MCU through the first level conversion module and the second level conversion module.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the above-mentioned method for upgrading the MCU program of a hard-wired lamp.

[0017] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the above-mentioned method for upgrading the MCU program of a hard-wired lamp.

[0018] The beneficial effects of the present invention are: The embodiment of the present application provides a system and method for upgrading the MCU program of a hard-wired lamp, the system comprising: a main upgrade device and a lamp, the main upgrade device being electrically connected to the lamp through a wiring harness, the main upgrade device integrating a power module, a main control module, an input module and a first level conversion module, the lamp comprising a second level conversion module and a lamp MCU; the power module being electrically connected to the main control module and the lamp, and being used to provide working voltage for the main control module and the lamp; the input module being electrically connected to the main control module, and being used to issue control instructions to the main control module through the input module; the main control module being electrically connected to the lamp and the lamp MCU through the first level conversion module and the second level conversion module, and being used to generate a control signal corresponding to the control instruction issued by the input module, and communicating with the lamp MCU through the first level conversion module and the second level conversion module; the lamp MCU being used to complete the upgrade program of the lamp MCU based on the control signal received from the main control module; the first level conversion module and the second level conversion module being used to convert the signal level between the lamp MCU and the main control module. Compared with the prior art, it has the following advantages: (1) When upgrading the MCU program of the lamp, there is no need to remove the lamp. Instead, the main upgrade device can be directly connected to the lamp through a wiring harness. The MCU program of the lamp can be upgraded without removing the lamp, which improves the practicality and versatility of the system.

[0019] (2) It avoids the economic losses caused by the inability to upgrade without loss when program bugs occur in traditional hard-wire input lamps.

[0020] (3) The main upgrade equipment is small and portable, easy to use, low-cost and highly versatile. When upgrading the lamps of vehicles that have already been sold, the lamp manufacturer can produce the main upgrade equipment in small batches and hand it over to the 4S store, which will then perform the program upgrade on the lamps. This saves the lamp manufacturer from sending personnel on business trips, which not only saves costs but also solves the problem quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0022] Figure 1 It is a schematic diagram of the system structure for upgrading the MCU program of a hard-wired lamp provided by Embodiment 1 of the present invention.

[0023] Figure 2 This is a flow chart of a method for upgrading a hard-wired lamp MCU program provided in Embodiment 2 of the present invention.

[0024] Figure 3 This is a partial block diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0025] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0026] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0027] The present invention will now be described in detail with reference to the accompanying drawings. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore only shows the components related to the present invention.

[0028] For ease of understanding, the following professional terms are explained here: Communication protocol: (Detailed Explanation) Communication protocol refers to a regulation and agreement reached by both parties in data communication to achieve effective data transmission. The communication protocol stipulates the format, timing, error detection and correction of data transmission to ensure accurate data transmission. Communication protocol plays a vital role in computer networks, the Internet, mobile communications and other fields.

[0029] Example 1 For ease of understanding, the inventive concept is generally described below before describing the embodiments of the present invention in detail: This embodiment provides a system for upgrading the MCU program of hard-wired lamps, aiming to solve the problem that the MCU program is burned by a burner before the lamp is assembled, which is a one-time burning and cannot be upgraded. Once a major bug is found in the program after batch production, the lamp can only be recalled and scrapped because it cannot achieve lossless upgrade, causing great economic losses. The main upgrade device and the lamp are connected by using a wire harness. Based on the control instructions actively input by the user, if an upgrade is required, the main upgrade device sends the upgrade data packet to the lamp MCU through a preset communication protocol for storage by the lamp MCU. During the upgrade of the lamp MCU, the connection of the main upgrade device is not required. During the upgrade of the lamp MCU, before the lamp MCU needs to be upgraded, the lamp MCU is initialized first, and the upgrade flag is read to determine whether it needs to be upgraded. If it needs to be upgraded, the stored upgrade data packet is written into the APP area, and the lamp MCU is restarted after the upgrade is completed. The program of the lamp MCU is upgraded by the main upgrade device connected to the wire harness, which avoids the economic loss caused by the need to dismantle the lamp to upgrade the MCU.

[0030] The specific implementation is as follows: like Figure 1 As shown, it is a schematic diagram of the system structure for upgrading the MCU program of a hard-wired lamp provided by this embodiment.

[0031] As an example, the system includes: a main upgrade device 1 and a lamp 2, the main upgrade device 1 is electrically connected to the lamp 2 through a wiring harness, the main upgrade device 1 is integrated with a power module 100, a main control module 110, an input module 120 and a first level conversion module 130, and the lamp 2 includes a second level conversion module 200 and a lamp MCU 210; the power module 100 is electrically connected to the main control module 110 and the lamp 2, and is used to provide a working voltage for the main control module 110 and the lamp 2; the input module 120 is electrically connected to the main control module 110, and is used to send control instructions to the main control module 110 through the input module 120; the main control module 110 and the lamp 2 are electrically connected to the lamp MCU210 through the first level conversion module 130 and the second level conversion module 200, and are used to generate a corresponding control signal based on the control instruction issued by the input module 120, and communicate with the lamp MCU210 through the first level conversion module 130 and the second level conversion module 200; the lamp MCU210 is used to complete the upgrade program of the lamp MCU210 based on the control signal received from the main control module 110; the first level conversion module 130 and the second level conversion module 200 are used to convert the signal level between the lamp MCU210 and the main control module 110.

[0032] In some feasible embodiments, a display module 140 is also integrated in the main upgrade device 1, the power module 100 is electrically connected to the display module 140, and is used to provide a working voltage for the display module 140, and the main control module 110 is electrically connected to the display module 140, and is used to output a control signal to the display module 140 through the main control module 110 so that the display module 140 displays the upgrade process of the lamp MCU210. Specifically, the first output end of the power module 100 is electrically connected to the first input end of the main control module 110, the second output end of the power module 100 is electrically connected to the first input end of the display module 140, and the third output end of the power module 100 is connected to the lamp 2, which is used to provide working voltage for the display module 140, the main control module 110 and the lamp 2; the output end of the input module 120 is electrically connected to the second input end of the main control module 110, which is used to send the user input instruction to the main control module 110; the first output end of the main control module 110 is electrically connected to the first input end of the first level conversion module, and the second output end of the main control module 110 is electrically connected to the second input end of the display module 140, which is used to send the upgraded process signal to the display module 140. The display module 140 is displayed, and the lamp is communicated with through the first level conversion module 130; the first output end of the first level conversion module 130 is electrically connected to the third input end of the main control module 110, the second output end of the first level conversion module 130 is electrically connected to the first input end of the second level conversion module 200, and the first output end of the second level conversion module 200 is electrically connected to the second input end of the first level conversion module 130, that is, the first level conversion module 130 and the second level conversion module 200 are bidirectionally connected; the second output end of the second level conversion module 200 inputs the signal to the lamp MCU210 through the serial port communication RX, and the lamp MCU210 outputs the signal to the second level conversion module 200 through the serial port communication TX.

[0033] In some feasible implementations, the main control module 110 is further configured to generate a first control signal after receiving a control instruction for starting an upgrade program from the input module 120, and send an upgrade data packet to the lamp MCU 210 through the first level conversion module 130 and the second level conversion module 200 based on the first control signal according to a preset communication protocol. The lamp MCU 210 is further configured to store the upgrade data packet and set an upgrade flag after a preset program code after receiving all responses to the upgrade data packet.

[0034] In some feasible implementations, the lamp MCU210 is also used to send the upgrade process signal to the main control module 110 through the second level conversion module 200 and the first level conversion module 130, and send it to the display module 140 for display through the main control module 110 to facilitate viewing of the upgrade process.

[0035] In some feasible implementations, the lamp MCU210 is also used to switch to the program upgrade mode based on the first control signal sent by the main control module 110, and switch the I / O mode of the UART to the serial port mode for communicating with the main upgrade device. That is, the lamp MCU210 at this time has a communication function. When the lamp 2 is not connected to the main upgrade device 1 by a wire harness, the communication port of the lamp MCU210 is in I / O mode. Specifically, the main upgrade device sends a signal with a specific frequency and duty cycle agreed in the protocol for upgrading to the lamp. After the lamp MCU receives and successfully identifies it, it exits the normal working mode, enters the upgrade mode, and reconfigures RX / TX to the serial port mode. After the configuration is completed, a response signal is sent to the main upgrade device via TX.

[0036] The above embodiment connects the main upgrade device and the lamp by using a wire harness. Based on the control instructions actively input by the user, if an upgrade is required, the main upgrade device sends the upgrade data packet to the lamp MCU through a preset communication protocol for storage by the lamp MCU. During the upgrade of the lamp MCU, the main upgrade device does not need to be connected. During the upgrade of the lamp MCU, before the lamp MCU needs to be upgraded, the lamp MCU is initialized first, and the upgrade flag is read to determine whether an upgrade is required. If an upgrade is required, the stored upgrade data packet is written into the APP area, and the lamp MCU is restarted after the upgrade is completed. The program of the lamp MCU is upgraded by the main upgrade device connected to the wire harness, which avoids the economic loss caused by the need to dismantle the lamp to upgrade the MCU.

[0037] It is worth mentioning that all modules involved in this embodiment are logical units. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

[0038] Example 2 See also Figure 2 , which is a flow chart of a method for upgrading the MCU program of a hard-wired lamp provided in this embodiment.

[0039] As an example, the method is applied to the system for upgrading the MCU program of the hard-wired lamp described in Example 1, and the method includes: S1: Connect the main device to the lamp through a wiring harness for communication.

[0040] S2: The lamp MCU program enters the BOOT area and reads whether there is an upgrade flag in the BOOT area.

[0041] S3: In response to the existence of the upgrade flag, write the upgrade data packet stored in the lamp MCU into the APP area, complete the upgrade of the lamp MCU, and clear the upgrade flag.

[0042] S4: After the lamp MCU restarts, go to step S2.

[0043] S5: In response to the absence of the upgrade flag, the lamp MCU program jumps from the BOOT area to the APP area to enter the normal working mode.

[0044] S6: Obtain the control signal sent by the main control module to determine whether an upgrade is required.

[0045] S7: In response to the need for upgrading, the lamp MCU switches to the upgrading mode, switches the I / O mode of the UART to the serial port mode and performs response communication with the master device.

[0046] S8: The master device sends an upgrade data packet to the lamp MCU based on a preset communication protocol.

[0047] S9: The lamp MCU stores the upgrade data packet, and sets an upgrade flag after the preset program code when all responses to the upgrade data packet are received, and then goes to step S4.

[0048] S10: In response to no need for upgrading, disconnecting the wiring harness connection between the main device and the lamp.

[0049] In some feasible implementations, the step S5 includes: BOOT and APP are pre-burned in the lamp MCU, including: merging the BOOT.HEX file and the APP.HEX file into the same file and burning the file into the lamp MCU.

[0050] In some feasible implementations, step S6 includes: the main control module generates a corresponding control signal based on the control instruction issued by the input module, including: when the control instruction input by the input module is an upgrade instruction, the main control module sends a first control signal to the lamp MCU through the first level conversion module and the second level conversion module; when the control instruction input by the input module is a non-upgrade instruction, the main control module sends a second control signal to the lamp MCU through the first level conversion module and the second level conversion module.

[0051] In some feasible implementations, step S7 includes: the main upgrade device sends a signal with a specific frequency and duty cycle agreed in the protocol for upgrading to the lamp, and after the lamp MCU receives and successfully recognizes it, it exits the normal working mode, enters the upgrading mode, and reconfigures RX / TX to the serial port mode. After the configuration is completed, a response signal is sent to the main upgrade device via TX.

[0052] It is not difficult to find that this embodiment is a method embodiment corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.

[0053] Example 3 See also Figure 3 An embodiment of the present invention further provides an electronic device, comprising: a memory and a processor; the memory stores at least one program instruction; the processor implements the method for upgrading the hard-wired lamp MCU program provided in Example 2 by loading and executing the at least one program instruction.

[0054] The memory 702 and the processor 701 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 701 and the memory 702 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 701 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 701.

[0055] The processor 701 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 702 can be used to store data used by the processor 701 when performing operations.

[0056] Example 4 The embodiment of the present invention further provides a storage medium, on which a method for upgrading a hard-wired lamp MCU program is stored, and when the hard-wired lamp MCU program is upgraded, the steps of the method for upgrading the hard-wired lamp MCU program as described above are implemented. Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here one by one.

[0057] The above is only an embodiment of the present invention. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can know all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A system for upgrading the MCU program of hard-wired lamps, characterized in that: The system comprises: a main upgrade device and a lamp, wherein the main upgrade device is electrically connected to the lamp through a wiring harness, wherein the main upgrade device integrates a power module, a main control module, an input module and a first level conversion module, and wherein the lamp comprises a second level conversion module and a lamp MCU; The power supply module is electrically connected to the main control module and the lamp, and is used to provide working voltage for the main control module and the lamp; The input module is electrically connected to the main control module, and is used to send control instructions to the main control module through the input module; The main control module and the lamp are electrically connected to the lamp MCU through the first level conversion module and the second level conversion module, and are used to generate a control signal corresponding to the control instruction issued by the input module, and communicate with the lamp MCU through the first level conversion module and the second level conversion module; The lamp MCU is used to complete the upgrade program of the lamp MCU based on the control signal received from the main control module; The first level conversion module and the second level conversion module are used to convert the signal level between the lamp MCU and the main control module.

2. The system for upgrading the MCU program of hard-wired lamps according to claim 1, characterized in that: A display module is also integrated in the main upgrade device. The power module is electrically connected to the display module to provide a working voltage for the display module. The main control module is electrically connected to the display module to output a control signal to the display module through the main control module so that the display module displays the upgrade process of the lamp MCU.

3. The system for upgrading the MCU program of hard-wired lamps according to claim 1, characterized in that: The main control module is also used to generate a first control signal after receiving a control instruction to start the upgrade program from the input module, and send an upgrade data packet to the lamp MCU through the first level conversion module and the second level conversion module based on the first control signal according to a preset communication protocol.

4. The system for upgrading the MCU program of hard-wired lamps according to claim 3, characterized in that: The lamp MCU is also used to store the upgrade data packet and set an upgrade flag after a preset program code when all responses to the upgrade data packet are received.

5. The system for upgrading the MCU program of hard-wired lamps according to claim 4, characterized in that: The lamp MCU is also used to initialize after receiving the wiring harness connection between the main upgrade device and the lamp, including: The lamp MCU program enters the BOOT area and reads whether there is an upgrade flag; In response to the existence of the upgrade flag, writing the upgrade data packet stored in the lamp MCU into the APP area, completing the upgrade of the lamp MCU, and clearing the upgrade flag; In response to the absence of the upgrade flag, the lamp MCU program jumps from the BOOT area to the APP area to enter the normal working mode.

6. The system for upgrading the MCU program of hard-wired lamps according to claim 1, characterized in that: The lamp MCU is also used to send the upgrade process signal to the main control module through the second level conversion module and the first level conversion module.

7. The system for upgrading the MCU program of hard-wired lamps according to claim 1, characterized in that: The lamp MCU is also used to switch to a program upgrade mode based on a first control signal sent by the main control module, and to switch the I / O mode of the UART to a serial port mode for communicating with the main upgrade device.

8. A method for upgrading the MCU program of a hard-wired lamp, characterized in that: The method is applied to the system for upgrading the MCU program of a hard-wired lamp as claimed in any one of claims 1 to 7, and the method comprises: S1: Connecting the main upgrade device to the lamp through a wiring harness for communication; S2: The lamp MCU program enters the BOOT area and reads whether there is an upgrade flag in the BOOT area; S3: In response to the existence of the upgrade flag, write the upgrade data packet stored in the lamp MCU into the APP area, complete the upgrade of the lamp MCU, and clear the upgrade flag; S4: After the lamp MCU restarts, go to step S2; S5: In response to the absence of the upgrade flag, the lamp MCU program jumps from the BOOT area to the APP area to enter the normal working mode; S6: Obtain the control signal sent by the main control module to determine whether an upgrade is required; S7: In response to the need for upgrading, the lamp MCU switches to the upgrade mode, switches the I / O mode of the UART to the serial port mode and performs response communication with the main upgrade device; S8: The main upgrade device sends an upgrade data packet to the lamp MCU based on a preset communication protocol; S9: the lamp MCU stores the upgrade data packet, and sets an upgrade flag after the preset program code when all responses to the upgrade data packet are received, and then goes to step S4; S10: In response to no need for upgrading, disconnecting the wiring harness connection between the main upgrading device and the lamp.

9. The method for upgrading the MCU program of a hard-wired lamp according to claim 8, characterized in that: The step S5 includes: pre-burning BOOT and APP in the lamp MCU, including: merging the BOOT.HEX file and the APP.HEX file into the same file and burning them into the lamp MCU.

10. The method for upgrading the MCU program of a hard-wired lamp according to claim 8, characterized in that: The step S6 includes: the main control module generates a corresponding control signal based on the control instruction issued by the input module, including: when the control instruction input by the input module is an upgrade instruction, the main control module sends a first control signal to the lamp MCU through the first level conversion module and the second level conversion module; when the control instruction input by the input module is a non-upgrade instruction, the main control module sends a second control signal to the lamp MCU through the first level conversion module and the second level conversion module.