Method and device for upgrading firmware of photovoltaic tracking support system

By generating the difference description file in the photovoltaic tracking bracket system and transmitting the difference part to perform firmware upgrade, the problem of low efficiency of TCU firmware upgrade is solved, and a more efficient firmware upgrade process is achieved, reducing data transmission time and packet loss risk.

CN119135530APending Publication Date: 2024-12-13ENERTRACK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411215828.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The TCU firmware upgrade efficiency in the existing photovoltaic tracking bracket system is low, mainly due to the large amount of firmware data and wireless data packet loss and retransmission problems, which affects the system's on-site debugging efficiency.

Method used

By establishing a network between the communicator NCU of the photovoltaic tracking bracket system and the motor controller TCU, comparing the firmware to be upgraded and the original firmware is generated, and only the difference part is transmitted for upgrading, combining CRC checksum compression Algorithm to improve transmission efficiency.

Benefits of technology

It significantly shortens the transmission time of firmware upgrades, reduces the risks of packet loss and retransmission, and improves the efficiency of TCU firmware upgrades in photovoltaic tracking bracket systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135530A_ABST
    Figure CN119135530A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for upgrading firmware of a photovoltaic tracking support system. The method is realized based on a network established by a communicator NCU and a plurality of motor controllers TCU controlled by the communicator NCU. The NCU firstly compares the firmware to be upgraded with the original firmware to obtain a difference description file. According to the method and the device, the difference part of the to-be-upgraded firmware and the original firmware instead of the whole to-be-upgraded firmware is taken as a basis, so that description information required by firmware upgrading is saved to the greatest extent. And the NCU sends the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file. And finally, the NCU judges whether upgrading succeeds or not according to feedback information returned by the TCU to be upgraded. Due to the fact that the transmitted file only occupies a very small part of the whole firmware to be upgraded, according to the method, the transmission time is shortened, the risks of packet loss and retransmission are reduced, the transmission efficiency is improved, and firmware upgrading is efficiently carried out on the TCU in the photovoltaic tracking support system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for upgrading firmware of a photovoltaic tracking bracket system. Background Art

[0002] With the rapid development of photovoltaic power generation technology, photovoltaic tracking bracket systems are becoming increasingly important. Their performance stability and operating efficiency have a significant impact on the power generation effect. A square array of photovoltaic tracking bracket systems usually has a communicator NCU and several motor controllers TCU controlled by it. During the operation cycle of the photovoltaic tracking bracket system, the firmware of the TCU needs to be upgraded in batches to ensure the normal operation of the TCU.

[0003] In the prior art, the TCU firmware is upgraded by wireless transmission, but due to the large amount of firmware data, wireless data packet loss and retransmission, the efficiency of firmware upgrade is low, which affects the efficiency of on-site debugging of photovoltaic tracking bracket system. Therefore, how to efficiently upgrade the firmware of TCU in photovoltaic tracking bracket system has become an urgent problem to be solved. Summary of the invention

[0004] Based on the above problems, the present application provides a method and device for upgrading the firmware of a photovoltaic tracking bracket system, so as to efficiently upgrade the firmware of the TCU in the photovoltaic tracking bracket system.

[0005] The present application discloses a method for upgrading the firmware of a photovoltaic tracking bracket system. A communicator NCU in the photovoltaic tracking bracket system and a plurality of motor controllers TCU corresponding to the NCU form a network. The method comprises:

[0006] The NCU compares the firmware to be upgraded with the original firmware to obtain a difference description file;

[0007] The NCU sends the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file;

[0008] The NCU determines whether the upgrade is successful according to the feedback information sent back by the TCU to be upgraded.

[0009] Optionally, the NCU sends the difference description file to the TCU to be upgraded in the network, including:

[0010] The NCU compresses the difference description file to obtain a compressed package;

[0011] The NCU sends the compressed package to the TCU to be upgraded;

[0012] The TCU to be upgraded decompresses the compressed package to obtain the difference description file.

[0013] Optionally, the difference description file includes a difference position and difference data, and the TCU to be upgraded upgrades firmware according to the difference description file, including:

[0014] The TCU to be upgraded locates original data at a position corresponding to the difference position in the original firmware;

[0015] The TCU to be upgraded replaces the original data with the difference data to obtain upgraded firmware;

[0016] The TCU to be upgraded runs the upgrade firmware to complete the firmware upgrade.

[0017] Optionally, after obtaining the difference description file, the method further includes:

[0018] The NCU calculates the cyclic redundancy CRC check value of the firmware to be upgraded and adds it to the difference description file.

[0019] Optionally, the TCU to be upgraded upgrades the firmware according to the difference description file, including:

[0020] The TCU to be upgraded locates original data at a position corresponding to the difference position in the original firmware;

[0021] The TCU to be upgraded replaces the original data with the difference data to obtain upgraded firmware;

[0022] The TCU to be upgraded calculates a CRC check value of the upgraded firmware;

[0023] The TCU to be upgraded determines whether the CRC check value of the upgraded firmware is consistent with the CRC check value in the difference description file;

[0024] If yes, run the upgrade firmware to complete the firmware upgrade;

[0025] If not, the upgrade firmware is not executed.

[0026] Optionally, the NCU determines whether the upgrade is successful according to the feedback information sent back by the TCU to be upgraded, including:

[0027] The NCU receives the version number of the current firmware transmitted by the TCU to be upgraded;

[0028] When the NCU determines that the version number is the version number of the firmware to be upgraded, the upgrade is successful; the version number of the firmware to be upgraded is the same as the version number of the upgrade firmware;

[0029] When the NCU determines that the version number is the version number of the original firmware, the upgrade fails.

[0030] Optionally, the NCU compares the firmware to be upgraded with the original firmware, including:

[0031] The NCU compares the firmware to be upgraded with the original firmware in data information format HEX.

[0032] Optionally, the network is implemented based on ZigBee.

[0033] Optionally, compressing the difference description file is implemented by a ZIP compression algorithm, and decompressing the compressed package is implemented by a UNZIP decompression algorithm.

[0034] Based on the above-mentioned method for upgrading the firmware of a photovoltaic tracking bracket system, the present application also discloses a device for upgrading the firmware of a photovoltaic tracking bracket system. A communicator NCU in the photovoltaic tracking bracket system and a plurality of motor controllers TCU corresponding to the NCU form a network. The device includes: a comparison unit, a sending unit and an upgrading unit;

[0035] The comparison unit is used for the NCU to compare the firmware to be upgraded with the original firmware to obtain a difference description file;

[0036] The sending unit is used for the NCU to send the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file;

[0037] The upgrading unit is used for the NCU to determine whether the upgrading is successful according to the feedback information sent back by the TCU to be upgraded.

[0038] Optionally, the sending unit includes:

[0039] A compression subunit, used by the NCU to compress the difference description file to obtain a compressed package;

[0040] A sending subunit, used for the NCU to sub-packetize the compressed package and send it to the TCU to be upgraded;

[0041] The decompression subunit is used for the TCU to be upgraded to decompress the compressed package to obtain the difference description file.

[0042] Optionally, the difference description file includes a difference position and difference data, and the sending unit includes:

[0043] A positioning subunit, used for the TCU to be upgraded to locate original data at a position corresponding to the difference position in the original firmware;

[0044] A replacement subunit, used for the TCU to be upgraded to replace the original data with the difference data to obtain upgraded firmware;

[0045] The upgrading subunit is used for the TCU to be upgraded to run the upgrading firmware to complete the firmware upgrading.

[0046] Optionally, the device further comprises:

[0047] The verification unit is used for the NCU to calculate the cyclic redundancy CRC check value of the firmware to be upgraded and add it to the difference description file.

[0048] Optionally, the sending unit includes:

[0049] A verification and positioning subunit, used for the TCU to be upgraded to locate original data at a position corresponding to the difference position in the original firmware;

[0050] A verification and replacement subunit, configured for the TCU to be upgraded to replace the original data with the difference data to obtain upgraded firmware;

[0051] A check calculation subunit, used for the TCU to be upgraded to calculate the CRC check value of the upgraded firmware;

[0052] A check judgment subunit, used for the TCU to be upgraded to judge whether the CRC check value of the upgraded firmware is consistent with the CRC check value in the difference description file;

[0053] If yes, run the upgrade firmware to complete the firmware upgrade;

[0054] If not, the upgrade firmware is not executed.

[0055] Optionally, the upgrading unit includes:

[0056] A receiving subunit, used for the NCU to receive the version number of the current firmware transmitted back by the TCU to be upgraded;

[0057] A success subunit, used for when the NCU determines that the version number is the version number of the firmware to be upgraded, the upgrade is successful; the version number of the firmware to be upgraded is the same as the version number of the upgrade firmware;

[0058] The failure subunit is used to determine that the upgrade fails when the NCU determines that the version number is the version number of the original firmware.

[0059] Optionally, the comparison unit is used to:

[0060] The NCU compares the firmware to be upgraded with the original firmware in data information format HEX.

[0061] Optionally, the network is implemented based on ZigBee.

[0062] Optionally, compressing the difference description file is implemented by a ZIP compression algorithm, and decompressing the compressed package is implemented by a UNZIP decompression algorithm.

[0063] The present application discloses a method and device for upgrading the firmware of a photovoltaic tracking bracket system. The method is implemented based on a network consisting of a communicator NCU and several motor controllers TCU controlled by the communicator NCU. The NCU first compares the firmware to be upgraded with the original firmware to obtain a difference description file including the difference position and difference data. Compared with the upgrade based on the entire firmware to be upgraded, the present application is only based on the difference between the firmware to be upgraded and the original firmware, thereby saving the description information required for the firmware upgrade to the greatest extent. The NCU then sends the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded can upgrade the firmware according to the difference description file. Finally, the NCU determines whether the upgrade is successful based on the feedback information sent back by the TCU to be upgraded. Since the transmitted file only accounts for a very small part of the entire firmware to be upgraded, the method of the present application not only shortens the transmission time, but also reduces the risk of packet loss and retransmission, thereby improving the transmission efficiency and efficiently upgrading the firmware of the TCU in the photovoltaic tracking bracket system. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0065] Figure 1a A schematic flow chart of a method for upgrading the firmware of a photovoltaic tracking bracket system disclosed in an embodiment of the present application;

[0066] Figure 1b A schematic diagram of firmware difference comparison disclosed in an embodiment of the present application;

[0067] Figure 2 A flowchart of another method for upgrading the firmware of a photovoltaic tracking bracket system disclosed in an embodiment of the present application;

[0068] Figure 3 A schematic diagram of the structure of a photovoltaic tracking bracket system firmware upgrade device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0070] Embodiment 1: This application discloses a method for upgrading the firmware of a photovoltaic tracking bracket system.

[0071] For details, please refer to Figure 1a The method for upgrading the firmware of a photovoltaic tracking bracket system disclosed in this embodiment includes the following steps:

[0072] Step 101: The NCU compares the firmware to be upgraded with the original firmware to obtain a difference description file.

[0073] In the method described in this embodiment, as an optional method, the comparison step is to compare the firmware to be upgraded and the original firmware of the TCU in the data information format HEX. Figure 1b is a schematic diagram of firmware difference comparison disclosed in an embodiment of the present application, Figure 1b The left and right parts of the figure are partial interceptions of the data of the firmware to be upgraded (new firmware) and the original firmware (old firmware) of the TCU, respectively. The data in the red box is the difference between the new firmware and the old firmware. In actual working conditions, the data difference between the new firmware and the old firmware is not large, for example Figure 1b The content in the red box only accounts for a small part of the total data. Specifically, the firmware to be upgraded and the original firmware are compared by HEX bytes, and a difference description file describing the difference in HEX data between the previous and next firmware is generated based on the starting address and length information of the difference part. The data size of the difference description file is only about 15% of the total firmware to be upgraded.

[0074] In the method described in this embodiment, the NCU can calculate the cyclic redundancy CRC check value of the firmware to be upgraded, add it to the difference description file, and verify the transmission integrity of the difference description file, that is, whether there is packet loss during the transmission process. If the difference description file is completely transmitted to the TCU, the CRC check value of the upgraded firmware obtained by the TCU based on the difference description file should be consistent with the CRC check value of the firmware to be upgraded.

[0075] In the method described in this embodiment, the content included in the difference description file is as follows:

[0076] Table 1 Protocol format of difference description file

[0077]

[0078] As shown in the table, the difference description file includes the number of difference data packets, the difference position (difference start address), the difference start data length and the difference data, and the CRC check value of the firmware to be upgraded.

[0079] Step 102: The NCU sends the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades its firmware according to the difference description file.

[0080] In the method described in this embodiment, the NCU can compress the difference description file to obtain a compressed package. And the compressed package is sent to the TCU to be upgraded in the form of sub-packets through the network formed by the NCU and the TCU. Among them, there can be multiple TCUs to be upgraded. When there are multiple TCUs to be upgraded, the NCU can send the compressed package to all TCUs at the same time. The number of TCUs to be upgraded is not specifically limited here, and they can all be in the network formed by the NCU and the TCU.

[0081] In the method described in this embodiment, the TCU to be upgraded receives all the compressed packages and decompresses them to obtain a difference description file. Among them, the method of compressing the difference description file can be a ZIP compression algorithm, and correspondingly, the method of decompressing the compressed package can be a UNZIP decompression algorithm. Subsequently, the TCU to be upgraded locates the original data at the position corresponding to the difference position in the original firmware according to the difference position in the difference description file. The original data is replaced with the difference data in the difference description file (that is, the data of the original firmware is rewritten to be the same as the data of the firmware to be upgraded) to obtain the upgraded firmware. As an optional method, the TCU to be upgraded can complete the firmware upgrade by running the upgraded firmware.

[0082] As another optional method, when there is a CRC check value in the difference description file (i.e., the CRC check value of the firmware to be upgraded), the TCU to be upgraded calculates the CRC check value of the upgrade firmware, and determines whether the CRC check value of the upgrade firmware is consistent with the CRC check value in the difference description file. When the two are consistent, it means that the upgrade firmware rewritten by the TCU to be upgraded is the same as the firmware to be upgraded, then the upgrade firmware is run to complete the firmware upgrade. When the two are inconsistent, it means that the rewritten upgrade firmware is different from the firmware to be upgraded, then the upgrade firmware is not run and the upgrade is canceled.

[0083] Step 103: The NCU determines whether the upgrade is successful according to the feedback information sent back by the TCU to be upgraded.

[0084] In the method described in this embodiment, the TCU to be upgraded will send back feedback information within a preset time, that is, the version number of the current firmware of the TCU to be upgraded. The preset time can be set according to actual work requirements. When the TCU to be upgraded does not send back feedback information after the preset time, it is confirmed that the upgrade has failed.

[0085] In the method described in this embodiment, the NCU receives the version number and verifies it. When the NCU determines that the version number is the version number of the firmware to be upgraded, it is confirmed that the upgrade is successful. Among them, since the data of the upgraded firmware is the same as that of the firmware to be upgraded, the version number of the upgraded firmware is also the same as that of the firmware to be upgraded. When the NCU determines that the version number is the version number of the original firmware, it is confirmed that the upgrade has failed. As an optional method, when the firmware corresponding to the version number does not exist in the database of the NCU, it is also confirmed that the upgrade has failed.

[0086] Compared with the traditional solution based on the entire firmware to be upgraded, the method described in this embodiment uses the HEX byte comparison method to extract only the difference part for transmission, which saves the amount of data required for firmware upgrade to the greatest extent, that is, reduces the amount of data transmission. While reducing the data transmission time, it also minimizes the risk of packet loss and retransmission in wireless communication. Furthermore, the method described in this embodiment also uses a ZIP compression algorithm that can compress data using repeated data fragments and frequencies. The compression ratio of the overall message is higher than that of the packet compression, and the overall message length is shorter, further reducing the amount of data transmission. The actual data transmission volume of this embodiment only accounts for 3%-5% of the entire firmware to be upgraded. Accordingly, the data transmission time can be compressed from 60 minutes to 2-3 minutes, which efficiently realizes the TCU firmware upgrade.

[0087] Embodiment 2: This application discloses another method for upgrading the firmware of a photovoltaic tracking bracket system. Figure 2 The method described in this embodiment introduces the overall process of firmware upgrade.

[0088] Step 201: The NCU performs a HEX byte comparison between the firmware to be upgraded and the original firmware to obtain a difference description file including a difference position and difference data.

[0089] Step 202: The NCU calculates the CRC check value of the firmware to be upgraded and adds it to the difference description file.

[0090] Step 203: The NCU compresses the difference description file using a ZIP compression algorithm to obtain a compressed package.

[0091] Step 204: the NCU splits the compressed package into multiple packages according to preset bytes, and sends the packages to the TCU to be upgraded based on zigbee.

[0092] Step 205: After the TCU to be upgraded receives all the packets, it decompresses the compressed packets using the UNZ IP decompression algorithm to obtain a difference description file.

[0093] Step 206: The TCU to be upgraded locates the original data at the corresponding position in the original firmware through the difference position.

[0094] Step 207: The TCU to be upgraded replaces the original data with the difference data to obtain upgraded firmware.

[0095] Step 208: The TCU to be upgraded calculates the CRC check value of the upgraded firmware and determines whether it is the same as the CRC check value in the difference description file. If so, proceed to step 209. If not, proceed to step 210.

[0096] Step 209: Run the upgrade firmware to complete the firmware upgrade, and return the version number of the upgrade firmware to the NCU.

[0097] Step 210: Cancel the firmware upgrade and return the original firmware version number to the NCU.

[0098] Step 211: The NCU obtains the version number sent back by the TCU to be upgraded, and determines whether it is the same as the version number of the firmware to be upgraded. If yes, proceed to step 212. If no, proceed to step 213.

[0099] Step 212: Confirm that the upgrade is successful.

[0100] Step 213: Confirm that the upgrade has failed.

[0101] Based on the method for upgrading the firmware of a photovoltaic tracking bracket system disclosed in the above embodiment, this embodiment correspondingly discloses a device for upgrading the firmware of a photovoltaic tracking bracket system. Figure 3 , a communicator NCU in a photovoltaic tracking bracket system and a plurality of motor controllers TCU corresponding to the NCU form a network, and the device for upgrading the firmware of the photovoltaic tracking bracket system includes: a comparison unit 301, a sending unit 302 and an upgrading unit 303;

[0102] The comparison unit 301 is used for the NCU to compare the firmware to be upgraded with the original firmware to obtain a difference description file;

[0103] The sending unit 302 is used for the NCU to send the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file;

[0104] The upgrading unit 303 is used for the NCU to determine whether the upgrading is successful according to the feedback information sent back by the TCU to be upgraded.

[0105] Optionally, the sending unit 302 includes:

[0106] A compression subunit, used by the NCU to compress the difference description file to obtain a compressed package;

[0107] A sending subunit, used for the NCU to sub-packetize the compressed package and send it to the TCU to be upgraded;

[0108] The decompression subunit is used for the TCU to be upgraded to decompress the compressed package to obtain the difference description file.

[0109] Optionally, the difference description file includes a difference position and difference data, and the sending unit 302 includes:

[0110] A positioning subunit, used for the TCU to be upgraded to locate original data at a position corresponding to the difference position in the original firmware;

[0111] A replacement subunit, used for the TCU to be upgraded to replace the original data with the difference data to obtain upgraded firmware;

[0112] The upgrading subunit is used for the TCU to be upgraded to run the upgrading firmware to complete the firmware upgrading.

[0113] Optionally, the device further comprises:

[0114] The verification unit is used for the NCU to calculate the cyclic redundancy CRC check value of the firmware to be upgraded and add it to the difference description file.

[0115] Optionally, the sending unit 302 includes:

[0116] A verification and positioning subunit, used for the TCU to be upgraded to locate original data at a position corresponding to the difference position in the original firmware;

[0117] A verification and replacement subunit, configured for the TCU to be upgraded to replace the original data with the difference data to obtain upgraded firmware;

[0118] A check calculation subunit, used for the TCU to be upgraded to calculate the CRC check value of the upgraded firmware;

[0119] A check judgment subunit, used for the TCU to be upgraded to judge whether the CRC check value of the upgraded firmware is consistent with the CRC check value in the difference description file;

[0120] If yes, run the upgrade firmware to complete the firmware upgrade;

[0121] If not, the upgrade firmware is not executed.

[0122] Optionally, the upgrading unit 303 includes:

[0123] A receiving subunit, used for the NCU to receive the version number of the current firmware transmitted back by the TCU to be upgraded;

[0124] A success subunit, used for, when the NCU determines that the version number is the version number of the firmware to be upgraded, the upgrade is successful;

[0125] The failure subunit is used to determine that the upgrade fails when the NCU determines that the version number is the version number of the original firmware.

[0126] Optionally, the comparison unit 301 is used to:

[0127] The NCU compares the firmware to be upgraded with the original firmware in data information format HEX.

[0128] Optionally, the network is implemented based on ZigBee.

[0129] Optionally, compressing the difference description file is implemented by a ZIP compression algorithm, and decompressing the compressed package is implemented by a UNZIP decompression algorithm.

[0130] The embodiments in this specification are described in a progressive manner. As for the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the methods.

[0131] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0132] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0133] The features described in the embodiments of this specification can be replaced or combined with each other, so that professional and technical personnel in this field can implement or use the present application.

[0134] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for upgrading the firmware of a photovoltaic tracking bracket system. It is characterized in that A communicator NCU in a photovoltaic tracking bracket system and a plurality of motor controllers TCU corresponding to the NCU form a network, and the method includes: The NCU compares the firmware to be upgraded with the original firmware to obtain a difference description file; The NCU sends the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file; The NCU determines whether the upgrade is successful according to the feedback information sent back by the TCU to be upgraded.

2. The method according to claim 1, It is characterized in that The NCU sends the difference description file to the TCU to be upgraded in the network, including: The NCU compresses the difference description file to obtain a compressed package; The NCU sends the compressed package to the TCU to be upgraded; The TCU to be upgraded decompresses the compressed package to obtain the difference description file.

3. The method according to claim 1, It is characterized in that The difference description file includes a difference position and difference data, and the TCU to be upgraded upgrades the firmware according to the difference description file, including: The TCU to be upgraded locates original data at a position corresponding to the difference position in the original firmware; The TCU to be upgraded replaces the original data with the difference data to obtain upgraded firmware; The TCU to be upgraded runs the upgrade firmware to complete the firmware upgrade.

4. The method according to claim 1, It is characterized in that After obtaining the difference description file, the method further includes: The NCU calculates the cyclic redundancy CRC check value of the firmware to be upgraded and adds it to the difference description file.

5. The method according to claim 3 or 4, It is characterized in that The TCU to be upgraded upgrades the firmware according to the difference description file, including: The TCU to be upgraded locates original data at a position corresponding to the difference position in the original firmware; The TCU to be upgraded replaces the original data with the difference data to obtain upgraded firmware; The TCU to be upgraded calculates a CRC check value of the upgraded firmware; The TCU to be upgraded determines whether the CRC check value of the upgraded firmware is consistent with the CRC check value in the difference description file; If yes, run the upgrade firmware to complete the firmware upgrade; If not, the upgrade firmware is not executed.

6. The method according to claim 1, It is characterized in that The NCU determines whether the upgrade is successful according to the feedback information returned by the TCU to be upgraded, including: The NCU receives the version number of the current firmware transmitted by the TCU to be upgraded; When the NCU determines that the version number is the version number of the firmware to be upgraded, the upgrade is successful; the version number of the firmware to be upgraded is the same as the version number of the upgrade firmware; When the NCU determines that the version number is the version number of the original firmware, the upgrade fails.

7. The method according to claim 1, It is characterized in that The NCU compares the firmware to be upgraded with the original firmware, including: The NCU compares the firmware to be upgraded with the original firmware in data information format HEX.

8. The method according to claim 1, It is characterized in that The network is implemented based on Zigbee.

9. The method according to claim 2, It is characterized in that The compression of the difference description file is implemented by a ZIP compression algorithm, and the decompression of the compressed package is implemented by a UNZIP decompression algorithm.

10. A device for upgrading the firmware of a photovoltaic tracking bracket system. It is characterized in that A communicator NCU in a photovoltaic tracking bracket system and a plurality of motor controllers TCU corresponding to the NCU form a network, and the device includes: a comparison unit, a sending unit and an upgrade unit; The comparison unit is used for the NCU to compare the firmware to be upgraded with the original firmware to obtain a difference description file; The sending unit is used for the NCU to send the difference description file to the TCU to be upgraded in the network, so that the TCU to be upgraded upgrades the firmware according to the difference description file; The upgrading unit is used for the NCU to determine whether the upgrading is successful according to the feedback information sent back by the TCU to be upgraded.