Photovoltaic inverter remote upgrading method, data acquisition device and photovoltaic inverter
Through HPLC communication, the existing power line transmission upgrade program is used to solve the problem of wiring costs and instability during the photovoltaic inverter upgrade process, and the effect of reducing wiring costs and improving upgrade stability is achieved.
Patent Information
- Application Number
- CN202311601933.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2025-05-30
AI Technical Summary
The existing photovoltaic inverter upgrade method requires a large number of 485-wire wiring, resulting in increased wiring costs and cumbersomeness, thereby increasing instability during the upgrade process.
The HPLC communication method is used to achieve communication between the photovoltaic inverter and the data acquisition device through the existing power line transmission upgrade program, without additional wiring.
Reduces wiring costs and cumbersomeness, improves the stability and reliability of the upgrade process, saves materials and reduces construction and maintenance costs.
Smart Images

Figure CN120066533A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photovoltaic power generation, and particularly to a method for remotely upgrading a photovoltaic inverter, a data acquisition device, and a photovoltaic inverter. Background Art
[0002] In related technologies, the photovoltaic inverter can be upgraded in the following ways. The first way is that each photovoltaic inverter is correspondingly provided with a data collector through a 485 line, and then the cloud server distributes the upgrade file to the data collector corresponding to each photovoltaic inverter in batches in sequence. Each data collector upgrades the photovoltaic inverter through the 485 line. The second way is that multiple photovoltaic inverters are connected to the 485 line to form a photovoltaic inverter cluster, and then a data collector is used to control the upgrade of the photovoltaic inverter cluster. However, in the above methods, a 485 line is required to implement the upgrade of the photovoltaic inverter. As the number of photovoltaic inverters increases, the number of 485 lines also increases, resulting in an increase in the wiring cost and the complexity of the wiring mechanism, thereby greatly increasing the instability during the upgrade process of the photovoltaic inverter. Summary of the Invention
[0003] The present invention aims to at least solve one of the technical problems existing in the prior art. For this reason, one object of the present invention is to propose a method for remotely upgrading a photovoltaic inverter. By using this method, the existing power line is utilized to transmit the upgrade program, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0004] The second object of the present invention is to propose a data acquisition device.
[0005] The third object of the present invention is to propose a method for remotely upgrading a photovoltaic inverter.
[0006] The fourth object of the present invention is to propose a photovoltaic inverter.
[0007] To solve the above problems, an embodiment of the first aspect of the present invention provides a method for remotely upgrading a photovoltaic inverter, which is used for a data acquisition device. The data acquisition device is connected to at least one photovoltaic inverter through a power line. The method includes: receiving an inverter upgrade program issued by a cloud server; sending a broadcast upgrade instruction to each photovoltaic inverter through the power line in an HPLC communication manner, where the broadcast upgrade instruction is used to instruct the photovoltaic inverter to enter an upgrade state; after reaching a preset duration, sending the inverter upgrade program to each photovoltaic inverter in an HPLC communication manner to upgrade each photovoltaic inverter.
[0008] The photovoltaic inverter remote upgrade method according to an embodiment of the present invention is based on a data acquisition device connected to each photovoltaic inverter through a power line. After the data acquisition device receives the inverter upgrade program sent by the cloud server, it sends the inverter upgrade program to each photovoltaic inverter through the power line in the HPLC communication mode to upgrade at least one photovoltaic inverter. Thus, compared with the prior art in which a data collector upgrades photovoltaic inverters based on a large number of 485 lines arranged, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, and also reducing the instability during the upgrade process of the photovoltaic inverter.
[0009] In some embodiments, sending the inverter upgrade program to each photovoltaic inverter through the power line in the HPLC communication mode includes: splitting the inverter upgrade program to obtain a plurality of upgrade data packets, where each upgrade data packet includes at least the number of bytes of the data packet, the data packet number, the total number of data packets, and the check code; sending each upgrade data packet to each photovoltaic inverter in sequence through the power line in the HPLC communication mode until all upgrade data packets are distributed.
[0010] In some embodiments, splitting the inverter upgrade program includes: obtaining the file size of the inverter upgrade program; splitting the inverter upgrade program according to the file size of the inverter upgrade program.
[0011] In some embodiments, sending each upgrade data packet to each photovoltaic inverter in sequence through the power line in the HPLC communication mode includes: obtaining the distribution interval time of the upgrade data packet; sending each upgrade data packet to each photovoltaic inverter in sequence according to the distribution interval time through the power line in the HPLC communication mode.
[0012] In some embodiments, obtaining the distribution interval time of the upgrade data packet includes: obtaining the transmission baud rate of the data acquisition device; obtaining the number of bits contained in each byte in each upgrade data packet according to the number of bytes of each upgrade data packet; obtaining the distribution interval time according to the number of bytes of each upgrade data packet, the number of bits contained in each byte in each upgrade data packet, and the transmission baud rate.
[0013] In some embodiments, after all upgrade data packets are distributed, the method further includes: sending a data reissue instruction to each photovoltaic inverter in an HPLC communication manner, where the data reissue instruction is used to instruct the target photovoltaic inverters in a data packet missing state among all the photovoltaic inverters to enter the data reissue state; receiving a reissue feedback instruction about the data reissue instruction sent by each target photovoltaic inverter; and reissuing data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction according to the reissue feedback instruction.
[0014] In some embodiments, the reissue feedback instruction at least includes a frame header, an inverter address, the number of lost packets, the packet numbers of the lost packets, and a CRC check code. The method further includes: determining whether the frame header in the reissue feedback instruction is valid; if valid, performing a check on the inverter address, the number of lost packets, and the packet numbers of the lost packets in the reissue feedback instruction to obtain a first check result; and if it is determined that the first check result is consistent with the CRC check code in the reissue feedback instruction, reissuing data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction according to the reissue feedback instruction.
[0015] In some embodiments, the reissue feedback instruction at least includes the packet numbers of the lost packets. Reissuing data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction according to the reissue feedback instruction includes: forming a set of the packet numbers of all the lost packets; determining that the number of elements in the set of the packet numbers of the lost packets is greater than or equal to a preset number of lost packets, and then performing a duplicate removal process on the elements in the set of the packet numbers of the lost packets to obtain a set of the packet numbers of the lost packets after duplicate removal; and reissuing data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction according to the set of the packet numbers of the lost packets after duplicate removal.
[0016] In some embodiments, during the process of reissuing data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction, the method further includes: sending a data reissue instruction to each photovoltaic inverter in an HPLC communication manner every preset time interval; and stopping sending the data reissue instruction until the reissue feedback instruction is no longer received.
[0017] In some embodiments, before sending a broadcast upgrade instruction to each photovoltaic inverter in an HPLC communication manner, the method further includes: obtaining the inverter serial number of each photovoltaic inverter; and allocating an inverter address to each photovoltaic inverter according to the inverter serial number of each photovoltaic inverter.
[0018] In some embodiments, the method further includes: after completing data packet reissue, sending an upgrade end instruction to each photovoltaic inverter in an HPLC communication manner, where the upgrade end instruction is used to instruct the photovoltaic inverter to exit the upgrade state.
[0019] In a second aspect embodiment of the present invention, a data acquisition device is provided, including: a first communication module, the first communication module is connected to at least one photovoltaic inverter through a power line, and the first communication module is used to communicate with at least one photovoltaic inverter in an HPLC communication manner; a data collector, the data collector is connected to a cloud server and the first communication module, and the data collector is used to execute the photovoltaic inverter remote upgrade method described in the above embodiments.
[0020] According to the data acquisition device of the embodiment of the present invention, by executing the photovoltaic inverter remote upgrade method described in the above embodiments, the existing power line can be used to transmit the upgrade program, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0021] In a third aspect embodiment of the present invention, a photovoltaic inverter remote upgrade method is provided for a photovoltaic inverter. The photovoltaic inverter is connected to the data acquisition device of the above embodiment through a power line, and the photovoltaic inverter is used to communicate with the data acquisition device in an HPLC communication manner. The method includes: receiving a broadcast upgrade instruction sent by the data acquisition device, and controlling the photovoltaic inverter to enter an upgrade state; after an interval of a preset duration, receiving an inverter upgrade program sent by the data acquisition device; and upgrading the photovoltaic inverter according to the inverter upgrade program.
[0022] According to the photovoltaic inverter remote upgrade method of this embodiment, based on the connection between the data acquisition device and the photovoltaic inverter through the power line, the data acquisition device sends the inverter upgrade program to the photovoltaic inverter through the power line in an HPLC communication manner, and the photovoltaic inverter upgrades the photovoltaic inverter according to the received inverter upgrade program. Thus, compared with the prior art in which the data collector upgrades the photovoltaic inverter based on a large number of 485 lines arranged, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, and also reducing the instability during the upgrade process of the photovoltaic inverter.
[0023] In some embodiments, upgrading the photovoltaic inverter according to the inverter upgrade program includes: parsing and processing the inverter upgrade program to obtain the file size of the inverter upgrade program; verifying the inverter upgrade program according to the file size of the inverter upgrade program to obtain a second verification result; and upgrading the photovoltaic inverter according to the second verification result.
[0024] In some embodiments, the inverter upgrade program includes multiple upgrade data packets. Each upgrade data packet includes at least the number of bytes of the data packet, the packet number, the total number of data packets, and a check code. The photovoltaic inverter is upgraded according to the second verification result. The method further includes: after determining that the second verification result indicates that the inverter upgrade program passes the verification, writing each upgrade data packet to the corresponding storage address of the photovoltaic inverter according to the packet number of the upgrade data packet for upgrade.
[0025] In some embodiments, the method further includes: in response to a data retransmission instruction sent by the data acquisition device, controlling the photovoltaic inverter to enter a data retransmission state; counting the number of lost packets of the missing upgrade data packets and the packet numbers of the missing upgrade data packets to form a retransmission feedback instruction, where the retransmission feedback instruction includes at least a frame header, an inverter address, the number of lost packets, the lost packet numbers, and a CRC check code; sending the retransmission feedback instruction to the data acquisition device.
[0026] In some embodiments, the method further includes: after receiving the data retransmission instruction, obtaining the feedback interval time corresponding to the retransmission feedback instruction; based on the power line, sending the retransmission feedback instruction to the data acquisition device according to the feedback interval time in an HPLC communication mode.
[0027] In some embodiments, obtaining the feedback interval time corresponding to the retransmission feedback instruction includes: obtaining the inverter address of the photovoltaic inverter; obtaining the feedback interval time according to the inverter address of the photovoltaic inverter and the number of lost packets.
[0028] In some embodiments, the method includes: upon receiving an upgrade end instruction sent by the data acquisition device, controlling the photovoltaic inverter to exit the upgrade state.
[0029] An embodiment of the fourth aspect of the present invention provides a photovoltaic inverter, including: a second communication module, the second communication module is connected to a data acquisition device through a power line, and the second communication module is used to communicate with the data acquisition device in an HPLC communication mode; an inverter body, the inverter body is connected to the second communication module, and the inverter body is used to execute the photovoltaic inverter remote upgrade method described in the above embodiments.
[0030] The photovoltaic inverter according to an embodiment of the present invention communicates with the data acquisition device in an HPLC communication manner through a second communication module. The inverter body is used to execute the photovoltaic inverter remote upgrade method described in the above embodiment. In this way, on the one hand, the photovoltaic inverter only needs to receive, shortening the data transmission time with the data acquisition device. On the other hand, it communicates with the data acquisition device in an HPLC communication manner, using the existing power line for data communication, so that no additional wiring is required during the construction of the data transmission system, which can save material costs and reduce costs such as construction and maintenance.
[0031] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and / or additional aspects and advantages of the present invention will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0033] Figure 1 is a flowchart of a photovoltaic inverter remote upgrade method according to an embodiment of the present invention;
[0034] Figure 2 is a schematic connection diagram of a data acquisition device and a photovoltaic inverter according to an embodiment of the present invention;
[0035] Figure 3 is a flowchart of a photovoltaic inverter remote upgrade method according to an embodiment of the present invention;
[0036] Figure 4 is a structural block diagram of a data acquisition device according to an embodiment of the present invention;
[0037] Figure 5 is a flowchart of a photovoltaic inverter remote upgrade method according to another embodiment of the present invention;
[0038] Figure 6 is a flowchart of a photovoltaic inverter remote upgrade method according to another embodiment of the present invention;
[0039] Figure 7 is a flowchart of a photovoltaic inverter remote upgrade method according to another embodiment of the present invention;
[0040] Figure 8 is a structural block diagram of a photovoltaic inverter according to an embodiment of the present invention.
[0041] Reference Signs:
[0042] Data acquisition device 10; Photovoltaic inverter 20;
[0043] The first communication module 1; the data collector 2; the second communication module 3; the inverter body 4. Specific embodiments
[0044] The embodiments of the present invention will be described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention will be described in detail below.
[0045] With the demand for green energy, the proportion of photovoltaic power generation in the field of electric energy is increasing. As a result, the sales volume of photovoltaic inverters is increasing day by day, which makes the maintenance of photovoltaic inverters a problem.
[0046] In the related art, the photovoltaic inverter can be upgraded in the following ways. The first is that each photovoltaic inverter is correspondingly provided with a data collector through a 485 line, and then the cloud server distributes the upgrade file to the data collector corresponding to each photovoltaic inverter in batches in turn. Each data collector upgrades the photovoltaic inverter through the 485 line. The second is to connect multiple photovoltaic inverters to the 485 line to form a photovoltaic inverter cluster, and then a data collector is used to control the upgrade of the photovoltaic inverter cluster. However, in the above methods, a 485 line is required to implement the upgrade of the photovoltaic inverter. As the number of photovoltaic inverters increases, the number of 485 lines increases, resulting in an increase in the wiring cost and the complexity of the wiring mechanism, thus greatly increasing the instability during the upgrade process of the photovoltaic inverter.
[0047] To solve the above problems, the first aspect of the embodiments of the present invention provides a method for remotely upgrading a photovoltaic inverter. By using this method, the existing power line is used to transmit the upgrade program, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0048] In the embodiment, as Figure 2 shown, the data acquisition device 10 is connected to at least one photovoltaic inverter 20 through the power line L (neutral line) and N (live line).
[0049] Next, refer to Figure 1 to describe the method for remotely upgrading a photovoltaic inverter according to the embodiments of the present invention. As Figure 1 shown, the method at least includes step S1-step S3.
[0050] Step S1, the data acquisition device receives the inverter upgrade program sent by the cloud server.
[0051] Specifically, as Figure 2As shown in the figure, the cloud server communicates with the data acquisition device via WiFi (wireless fidelity) or 4G (The 4th generation mobile communication technology). When the user remotely controls the inverter for upgrade by entering instructions in the application program of the cloud server, for example, the ARM (Advanced RISC Machines) or DSP (Digital Signal Processor) of the photovoltaic inverter can be selected for upgrade. The inverter upgrade program sent by the cloud server is sent to the data acquisition device, and the data acquisition device receives the inverter upgrade program sent by the cloud server. Among them, the inverter upgrade program can be sent in the form of a file or text, and there is no restriction on this.
[0052] Step S2: Send a broadcast upgrade instruction to each photovoltaic inverter via power line in HPLC communication mode. The broadcast upgrade instruction is used to instruct the photovoltaic inverter to enter the upgrade state.
[0053] Specifically, after the data acquisition device receives the inverter upgrade program sent by the cloud server, since the data acquisition device is connected to at least one photovoltaic inverter via the power line, where the power line can be an alternating current power line, i.e., AC line (Altermating Current), a broadcast upgrade instruction is sent to each photovoltaic inverter via the power line in HPLC (high power line carrier communication) communication mode, so that each photovoltaic inverter enters the upgrade state. Thus, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line, so that there is no need for additional wiring to achieve communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0054] In addition, after each photovoltaic inverter receives the broadcast upgrade instruction, it does not need to respond to the data acquisition device, but directly controls each photovoltaic inverter to enter the upgrade state, and each photovoltaic inverter then waits for the data acquisition device to send the inverter upgrade file.
[0055] It should be noted that HPLC is a power line carrier communication technology that uses low-voltage power information as the information transmission channel and realizes the transmission and interaction of information within the power system through high-speed carrier technology. In this application, the HPLC communication mode is selected to transmit data, that is, HPLC is used as the transmission medium, so that materials can be saved and costs such as construction and maintenance can be reduced, and it has the advantages of long communication distance, large networking scale, and high communication rate.
[0056] Step S3, after reaching the preset duration, send the inverter upgrade program to each photovoltaic inverter in the HPLC communication mode to upgrade each photovoltaic inverter.
[0057] Specifically, after each photovoltaic inverter receives the broadcast upgrade instruction and enters the upgrade state, the data acquisition device waits for the preset duration. The preset duration can be 5 seconds. Based on the connection between the data acquisition device and each photovoltaic inverter through the power line, the data acquisition device then sends the inverter upgrade program to each photovoltaic inverter in the HPLC communication mode. Each photovoltaic inverter upgrades according to the received inverter upgrade program, thereby realizing the upgrade of multiple photovoltaic inverters by the data acquisition device. Thus, compared with the prior art in which the data collector upgrades the photovoltaic inverter based on arranging a large number of 485 lines, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line. Therefore, there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, also reducing the instability during the upgrade of the photovoltaic inverter, improving the reliability of the upgrade and the data transmission rate, and transmitting the inverter upgrade program through the HPLC communication mode, thereby being able to save materials and reduce costs such as construction and maintenance, and having advantages such as a long communication distance, a large networking scale, and a high communication rate.
[0058] According to the method for remotely upgrading a photovoltaic inverter according to an embodiment of the present invention, based on the connection between the data acquisition device and each photovoltaic inverter through the power line, after the data acquisition device receives the inverter upgrade program sent by the cloud server, the inverter upgrade program is sent to each photovoltaic inverter through the power line in the HPLC communication mode to realize the upgrade of at least one photovoltaic inverter. Thus, compared with the prior art in which the data collector upgrades the photovoltaic inverter based on arranging a large number of 485 lines, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line. Therefore, there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, and also reducing the instability during the upgrade of the photovoltaic inverter.
[0059] In some embodiments, sending the inverter upgrade program to each photovoltaic inverter in the HPLC communication mode based on the power line includes: splitting the inverter upgrade program to obtain multiple upgrade data packets. Each upgrade data packet includes at least the number of bytes of the data packet, the packet number, the total number of data packets, and the check code; and sequentially sending each upgrade data packet to each photovoltaic inverter in the HPLC communication mode based on the power line until all upgrade data packets are distributed.
[0060] Specifically, the inverter upgrade program contains multiple upgrade data packets. Since different upgrade data packets have different codes, putting all the codes in the same file for transmission not only increases the file size and complexity, but also reduces the transmission and processing efficiency. Moreover, since splitting the upgrade program can not only reduce the file size and complexity, improve the transmission and processing efficiency, but also reduce the bandwidth and time required for transmission, the inverter upgrade program is split to obtain multiple upgrade data packets, and then each upgrade data packet is sequentially sent to each photovoltaic inverter via the power line in the HPLC communication mode until all the upgrade data packets are distributed. Each upgrade data packet includes at least the number of packet bytes, the packet number, the total number of data packets, and the check code. The check code can be a parity check code, a CRC (Cyclic Redundancy Check) check code, or a CRC16 check code, which is not limited here. Therefore, splitting the upgrade program into multiple upgrade data packets improves the data transmission and processing efficiency. In addition, splitting the upgrade program can also reduce the bandwidth and time required for transmission.
[0061] Exemplarily, if the inverter upgrade program contains 3 upgrade data packets and the power station includes 3 photovoltaic inverters, the 3 upgrade data packets are sequentially sent to the first photovoltaic inverter, the 3 upgrade data packets are sequentially sent to the second photovoltaic inverter, and the 3 upgrade data packets are sequentially sent to the third photovoltaic inverter.
[0062] In the embodiment, multiple upgrade data packets are sent in the form of data frames. Each data frame transmitted each time contains the number of packet bytes, the packet number, the total number of data packets, the upgrade data packet, and the check code.
[0063] In some embodiments, splitting the inverter upgrade program includes: obtaining the file size of the inverter upgrade program; splitting the inverter upgrade program according to the file size of the inverter upgrade program.
[0064] Specifically, when splitting the inverter upgrade program, the inverter upgrade program is split according to the file size of the inverter upgrade program. That is to say, first, the file size of the inverter upgrade program is obtained, and then the byte size of each upgrade data packet is allocated according to the file size. For example, if the file size of the inverter upgrade program is within the range of 100 kB, the inverter upgrade program with a file size of 100 kB is split into multiple upgrade data packets of 128 bytes, and then each upgrade data packet of 128 bytes is sent to the PV inverter; if the file size of the inverter upgrade program is outside the range of 100 kB, the inverter upgrade program with a file size of 100 kB is split into multiple upgrade data packets of 1024 bytes, and then each upgrade data packet of 1024 bytes is sent to the PV inverter. In addition, the byte size of each upgrade data packet allocated according to the file size can be inconsistent. For example, the byte size of the last upgrade data packet is less than 128 bytes. The byte number of the data packet, that is, the file data packet size code, includes 01 and 02. 01 is 128 bytes, and 02 is 1024 bytes.
[0065] In some embodiments, each upgrade data packet is sequentially sent to each PV inverter based on the power line in the HPLC communication mode, including: obtaining the distribution interval time of the upgrade data packet; based on the power line in the HPLC communication mode, sequentially sending each upgrade data packet to each PV inverter according to the distribution interval time.
[0066] Specifically, since it takes time for the data acquisition device to transmit each upgrade data packet to each PV inverter, in order to prevent the data acquisition device from issuing a new upgrade data packet when the PV inverter has not received the current data packet, in this application, the data acquisition device sequentially sends each upgrade data packet to each PV inverter according to the distribution interval time, that is, the data acquisition device sends each upgrade data packet after delaying the distribution interval time. Among them, the distribution interval time can be preset according to actual needs.
[0067] In some embodiments, the distribution interval time of the upgrade data packet is calculated through the following steps. That is, the transmission baud rate Baud of the data acquisition device is obtained. Herein, the transmission baud rate Baud can be set through the relevant software of the photovoltaic inverter and the data acquisition device, and the magnitude of the transmission baud rate is not limited. According to the data packet byte number Size of each upgrade data packet, the number of bit positions n included in each byte in each upgrade data packet is obtained. Since one byte includes 8 bits, and when transmitting one byte through asynchronous serial communication, a start bit and a stop bit need to be added, or a parity bit needs to be added. Therefore, the number of bit positions n included in each byte can be 8 bits or 10 bits or 11 bits. In addition, the settings of the start bit, stop bit, and parity bit can be set through the relevant software. Thus, the number of bit positions n included in each byte in each upgrade data packet is obtained. Then, according to the data packet byte number Size of each upgrade data packet, the number of bit positions n included in each byte in each upgrade data packet, and the transmission baud rate Baud, that is, substituting the data packet byte number Size of each upgrade data packet, the number of bit positions n included in each byte in each upgrade data packet, and the transmission baud rate Baud into the calculation formula of the distribution interval time T, the distribution interval time T is calculated. In addition, the unit of the data packet byte number Size of each upgrade data packet is byte, and the unit of the transmission baud rate Baud is bit / s.
[0068] The following is the calculation formula of the distribution interval time T:
[0069]
[0070] In the embodiment, the data acquisition device does not require the response of the photovoltaic inverter. Each upgrade data packet only needs to wait for the distribution interval time before being sent until all upgrade data packets are sent.
[0071] In some embodiments, after all upgrade data packets are distributed, a data reissuance instruction is sent to each photovoltaic inverter in the HPLC communication mode. The data reissuance instruction is used to instruct the target photovoltaic inverter in the data packet missing state among all photovoltaic inverters to enter the data reissuance state. The reissuance feedback instruction regarding the data reissuance instruction sent by each target photovoltaic inverter is received. According to the reissuance feedback instruction, data packet reissuance is performed on the target photovoltaic inverter corresponding to the reissuance feedback instruction.
[0072] Specifically, since there are frequency band interferences and packet loss situations during the process of the data acquisition device sequentially sending each upgrade data packet to each photovoltaic inverter via power line in the HPLC communication mode, it may lead to the loss of upgrade data packets. To solve this problem, the present application adds a retransmission mechanism after the data acquisition device has sent all the upgrade data packets, thereby avoiding the loss of upgrade data packets. That is to say, after determining that all the upgrade data packets have been distributed, the data acquisition device sends a data retransmission instruction to each photovoltaic inverter in the HPLC communication mode. The target photovoltaic inverters in all the photovoltaic inverters that are in the state of missing data packets sort out the situation of the lost upgrade data packets after receiving the data retransmission instruction. Each target photovoltaic inverter then sends the corresponding situation of the lost upgrade data packets to the data acquisition device through a retransmission feedback instruction. The data acquisition device receives the retransmission feedback instructions regarding the data retransmission instruction sent by each target photovoltaic inverter to obtain the situation of the lost upgrade data packets corresponding to each target photovoltaic inverter, and then re-sends the situation of the lost upgrade data packets corresponding to each target photovoltaic inverter to each target photovoltaic inverter, thus completing the retransmission of the missing packets of the photovoltaic inverter, thereby avoiding the loss of upgrade data packets and improving the stability and anti-interference ability of the upgrade.
[0073] In some embodiments, the retransmission feedback instruction at least includes a frame header, an inverter address, the number of lost packets, the packet numbers of the lost packets, and a CRC check code. The method further includes: determining whether the frame header in the retransmission feedback instruction is valid; if it is valid, verifying the inverter address, the number of lost packets, and the packet numbers of the lost packets in the retransmission feedback instruction to obtain a first verification result; determining that the first verification result is consistent with the CRC check code in the retransmission feedback instruction, and then performing data packet retransmission on the target photovoltaic inverter corresponding to the retransmission feedback instruction according to the retransmission feedback instruction.
[0074] Specifically, in order to identify whether the reissue feedback instruction received by the data acquisition device is correct and complete, in this application, the first verification result is obtained by verifying the reissue feedback instruction, and then it is determined whether the reissue feedback instruction is complete and error-free through the first verification result. That is to say, after the data acquisition device receives the reissue feedback instructions of multiple photovoltaic inverters, it parses the reissue feedback instructions, and then determines whether the frame header in each reissue feedback instruction is valid; if it is valid, it means that the data in each reissue feedback instruction has been received, and then the inverter address, the number of lost packets, and the lost packet numbers in each reissue feedback instruction are verified to obtain the first verification result corresponding to each reissue feedback instruction. For example, the CRC verification method can be used to calculate the CRC verification code of the data from the frame header to the lost packet number in each reissue feedback instruction. Among them, the CRC verification code can be the CRC16 verification code, and then it is determined whether each reissue feedback instruction is complete and error-free through the first verification result corresponding to each reissue feedback instruction. That is, if it is determined that the first verification result corresponding to each reissue feedback instruction is consistent with the CRC verification code in each reissue feedback instruction, it means that each reissue feedback instruction received by the data acquisition device is complete and error-free, and then the data packet reissue is performed on the target photovoltaic inverter corresponding to the reissue feedback instruction, that is, the target photovoltaic inverter of the lost upgrade data packet is confirmed according to the inverter address in each reissue feedback instruction, and then the upgrade data packet number corresponding to the lost packet number is redownloaded according to the lost packet number in each reissue feedback instruction. In addition, if it is determined that the first verification result is inconsistent with the CRC verification code in the reissue feedback instruction, it means that the reissue feedback instruction received by the data acquisition device is incomplete and has errors.
[0075] In addition, if the frame header in each reissue feedback instruction is invalid, the reissue feedback instruction is not verified.
[0076] In some embodiments, the reissue feedback instruction at least includes the lost packet number. Performing data packet reissue on the target photovoltaic inverter corresponding to the reissue feedback instruction according to the reissue feedback instruction includes: forming a lost packet number set with all the lost packet numbers; determining that the number of elements in the lost packet number set is greater than or equal to the preset number of lost packets, and then performing a duplicate removal process on the elements in the lost packet number set to obtain a duplicate-removed lost packet number set; performing data packet reissue on the target photovoltaic inverter corresponding to the reissue feedback instruction according to the duplicate-removed lost packet number set.
[0077] Among them, the preset number of lost packets can be understood as the maximum value of the number of lost packets of all inverters preset according to the interference environment, and the preset number of lost packets can be 10.
[0078] Exemplarily, if the data acquisition device detects that the number of elements in the lost packet number set is less than the preset packet loss number, in order to prevent the photovoltaic inverter from not fully returning the lost packet numbers, the data retransmission instruction is sent multiple times to collect the lost packet numbers. If it is determined that the number of elements in the lost packet number set is greater than or equal to the preset packet loss number, that is, after the data acquisition device sends the data retransmission instruction multiple times to collect the lost packet numbers and the number of elements in the lost packet number set is identified to meet the preset packet loss number, the elements in the lost packet number set are de-duplicated, that is, the same lost packet numbers returned by all inverters are de-duplicated to obtain the de-duplicated lost packet number set. Then, according to the elements in the de-duplicated lost packet number set, that is, the lost packet numbers, the data packets are retransmitted to the target photovoltaic inverter corresponding to the retransmission feedback instruction.
[0079] Alternatively, if the data acquisition device detects that the number of elements in the lost packet number set is less than the preset packet loss number and no lost packet numbers are collected when the data retransmission instruction is sent multiple times to collect the lost packet numbers, it indicates that the actual packet loss data volume of the photovoltaic inverter is less than the preset packet loss number at this time. Then all photovoltaic inverters will return duplicate lost packet numbers until the data acquisition device detects that the number of elements in the lost packet number set is greater than or equal to the preset packet loss number. And if it is determined that the number of elements in the lost packet number set is greater than or equal to the preset packet loss number, the elements in the lost packet number set are de-duplicated, that is, the duplicate lost packet numbers returned by all photovoltaic inverters are removed to obtain the de-duplicated lost packet number set. Then, according to the elements in the de-duplicated lost packet number set, that is, the lost packet numbers, the data packets are retransmitted to the target photovoltaic inverter corresponding to the retransmission feedback instruction.
[0080] In some embodiments, if the serial port of the data acquisition device cannot receive the retransmission feedback instruction, it is determined that the target photovoltaic inverter has completed the writing of the missing upgrade data packet.
[0081] In some embodiments, before sending the broadcast upgrade instruction to each photovoltaic inverter in the HPLC communication mode, the method further includes: obtaining the inverter serial number of each photovoltaic inverter; and allocating an inverter address to each photovoltaic inverter according to the inverter serial number of each photovoltaic inverter.
[0082] Specifically, since each PV inverter is assigned a unique inverter serial number, an inverter address can be assigned to each PV inverter according to the inverter serial number of each PV inverter, so as to reorganize the network of all PV inverters, so that data can be sent to each PV inverter in the network. During the process of assigning an inverter address to each PV inverter, an address range can be predefined, and an inverter address can be assigned to each PV inverter within this address range. The inverter serial number of each PV inverter can also be used as part of the inverter address, or the inverter serial number of each PV inverter can be associated with the inverter address. Among them, the inverter address range is 0-254, and 0 is the broadcast address of the data acquisition device. The data acquisition device docks 254 PV inverters with separate addresses of different sub-nodes in the same area through the broadcast address.
[0083] In some embodiments, after the data acquisition device completes the retransmission of the data packet, it sends an upgrade end instruction to each PV inverter in the HPLC communication mode. The upgrade end instruction is used to instruct the PV inverter to exit the upgrade state, that is, each PV inverter exits the upgrade state after receiving the upgrade end instruction and then enters the normal mode. In addition, after the data acquisition device sends the upgrade end instruction, it does not require the PV inverter to respond, and enters the normal communication mode after a delay.
[0084] The following refers to Figure 3 The PV inverter remote upgrade method of the embodiment of the present invention will be illustrated by examples, and the specific content is as follows.
[0085] Step S4, the data acquisition device receives the inverter upgrade program sent by the cloud server.
[0086] Step S5, the data acquisition device sends a broadcast upgrade instruction to each PV inverter, and the PV inverter enters the upgrade state after receiving the broadcast upgrade instruction.
[0087] Step S6, wait for a preset duration.
[0088] Step S7, read the inverter upgrade program, and split the inverter upgrade program according to the file size of the inverter upgrade program to obtain multiple upgrade data packets.
[0089] Step S8, determine whether the file of the inverter upgrade program is greater than 100 kb. If so, execute step S9; otherwise, execute step S10.
[0090] Step S9, the upgrade data packet is transmitted in 128 bytes, that is, each data frame includes 128 bytes of the upgrade data packet.
[0091] Step S10, the upgrade data packet is transmitted in 1024 bytes, that is, each data frame includes 1024 bytes of the upgrade data packet.
[0092] Step S11: Without waiting for a reply from the PV inverter, the data acquisition device sequentially sends each upgrade data packet to each PV inverter according to the distribution interval time.
[0093] Step S12: Determine whether all upgrade data packets have been sent. If so, execute Step S13; otherwise, execute Step S11.
[0094] Step S13: The data acquisition device activates the data retransmission function.
[0095] Step S14: The data acquisition device sends a data retransmission instruction to each PV inverter in the HPLC communication mode.
[0096] Step S15: Determine whether the data acquisition device has received the retransmission feedback instruction sent by the PV inverter. If so, execute Step S16; otherwise, execute Step S27.
[0097] Step S16: The data acquisition device collates all retransmission feedback instructions.
[0098] Step S17: Determine whether the frame header of the retransmission feedback instruction is valid. If so, execute Step S18; otherwise, execute Step S14.
[0099] Step S18: Read the frame header, inverter address, number of lost packets, lost packet numbers, and CRC check code in the retransmission feedback instruction.
[0100] Step S19: Verify the inverter address, number of lost packets, and lost packet numbers in the retransmission feedback instruction to obtain a first verification result, and then determine whether the first verification result is consistent with the CRC check code in the retransmission feedback instruction, that is, determine whether the retransmission feedback instruction passes the verification. If so, execute Step S20; otherwise, execute Step S18.
[0101] Step S20: The data acquisition device stores the lost upgrade data packet information in the retransmission feedback instruction, where the lost upgrade data packet information includes the inverter address, number of lost packets, lost packet numbers, and CRC check code.
[0102] Step S21: Determine whether the current retransmission feedback instruction has been parsed. If so, execute Step S22; otherwise, execute Step S18.
[0103] Step S22: Determine whether the number of elements in the lost packet number set is greater than or equal to the preset number of lost packets, where the preset number of lost packets can be 10. If so, execute Step S23; otherwise, execute Step S14.
[0104] Step S23: Then, perform a deduplication process on the elements in the lost packet number set to obtain a deduplicated lost packet number set.
[0105] Step S24, and sort the elements in the deduplicated set of lost packet numbers.
[0106] Step S25, reissue the missing upgrade data packets for each photovoltaic inverter, that is, reissue the data packets to the target photovoltaic inverter corresponding to the reissue feedback instruction according to the elements in the deduplicated set of lost packet numbers.
[0107] Step S26, after the data packet reissue is completed, return to execute Step S14.
[0108] Step S27, there are no missing upgrade data packets for the photovoltaic inverter.
[0109] Step S28, the data acquisition device issues an upgrade end instruction and does not require the photovoltaic inverter to reply.
[0110] Step S29, end.
[0111] An embodiment of the second aspect of the present invention provides a data acquisition device 10, as Figure 4 shown, the data acquisition device 10 includes a first communication module 1 and a data collector 2.
[0112] Wherein, as Figure 2 shown, the first communication module 1 is connected to at least one photovoltaic inverter through a power line. For example, the first communication module 1 can be connected to at least one photovoltaic inverter through the live wire and neutral wire or three-phase wire of the power line. The first communication module 1 is used to communicate with at least one photovoltaic inverter in an HPLC communication manner; the data collector 2 is connected to the cloud server and the first communication module 1, and the data collector 2 is used to execute the photovoltaic inverter remote upgrade method in the above embodiment.
[0113] In the embodiment, the first communication module 1 can be an HPLC module. The HPLC module is hung on the N (neutral) wire of the power line. The HPLC module includes a coupling isolation circuit. The coupling isolation circuit of the HPLC module is hung on the L (live) wire of the power line. The coupling isolation circuit can also be arbitrarily connected to two three-phase wires. The function of the coupling isolation circuit is to isolate the low-frequency three-phase alternating current from the low voltage of the single board, and at the same time extract and inject the signal transmitted by the HPLC module to ensure the safety of the photovoltaic inverter. The coupling isolation circuit also has the function of filtering and demodulating the transmitted data.
[0114] According to the data acquisition device of the embodiment of the present invention, by executing the photovoltaic inverter remote upgrade method described in the above embodiment, the existing power line can be used to transmit the upgrade program, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0115] The third aspect embodiment of the present invention provides a method for remote upgrade of a photovoltaic inverter, which is used for a photovoltaic inverter, such as Figure 2 As shown, the photovoltaic inverter 20 is connected to the data acquisition device 10 of the above embodiment through a power line. The photovoltaic inverter is used to communicate with the data acquisition device in an HPLC communication mode, such as Figure 5 As shown, the method at least includes step S30-step S32.
[0116] In step S30, the inverter receives the broadcast upgrade instruction sent by the data acquisition device and controls the photovoltaic inverter to enter the upgrade state.
[0117] Specifically, since the inverter is connected to the data acquisition device through a power line, where the power line can be an AC power line, the data acquisition device sends a broadcast upgrade instruction to each photovoltaic inverter based on the power line in an HPLC communication mode. After each inverter receives the broadcast upgrade instruction sent by the data acquisition device, each photovoltaic inverter enters the upgrade state. Thus, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0118] In step S31, after a preset time interval, the inverter upgrade program sent by the data acquisition device is received.
[0119] Specifically, based on the connection between the photovoltaic inverter and the data acquisition device through the power line, the data acquisition device sends the inverter upgrade program to each photovoltaic inverter in an HPLC communication mode. Thus, compared with the prior art in which the data collector upgrades the photovoltaic inverter based on a large number of 485 lines arranged, in this application, HPLC is used as the transmission medium, and data communication between each photovoltaic inverter and the data acquisition device is carried out using the existing power line, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, reducing the instability during the upgrade process of the photovoltaic inverter, and transmitting the inverter upgrade program through the HPLC communication mode, so as to save materials and reduce costs such as construction and maintenance, and has advantages such as a long communication distance, a large networking scale, and a high communication rate.
[0120] In step S32, the photovoltaic inverter is upgraded according to the inverter upgrade program.
[0121] According to the photovoltaic inverter remote upgrade method of this embodiment, the data acquisition device is connected to the photovoltaic inverter through the power line, and the data acquisition device sends the inverter upgrade program to the photovoltaic inverter through the power line in the HPLC communication mode. The photovoltaic inverter upgrades the photovoltaic inverter according to the received inverter upgrade program. Thus, compared with the prior art in which the data collector upgrades the photovoltaic inverter based on a large number of 485 lines arranged, in this application, HPLC is used as the transmission medium, and data communication is carried out between each photovoltaic inverter and the data acquisition device using the existing power line, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism, and also reducing the instability during the upgrade process of the photovoltaic inverter.
[0122] In some embodiments, upgrading the photovoltaic inverter according to the inverter upgrade program includes: parsing the inverter upgrade program to obtain the file size of the inverter upgrade program; verifying the inverter upgrade program according to the file size of the inverter upgrade program to obtain a second verification result; and upgrading the photovoltaic inverter according to the second verification result.
[0123] Specifically, parse the inverter upgrade program to extract and obtain the file size of the inverter upgrade program; then verify the inverter upgrade program according to the file size of the inverter upgrade program to obtain a second verification result, that is, verify the inverter upgrade program according to the file sizes of different inverter upgrade programs, and then determine whether the inverter upgrade program is complete and error-free through the second verification result. For example, if the second verification result of the inverter upgrade program is consistent with the inverter upgrade program received by the photovoltaic inverter, it means that the inverter upgrade program received by the photovoltaic inverter is complete and error-free, and then upgrade the photovoltaic inverter according to the received inverter upgrade program.
[0124] In some embodiments, the inverter upgrade program includes multiple upgrade data packets. Among them, each upgrade data packet includes at least the number of bytes of the data packet, the data packet number, the total number of data packets, and the check code. When upgrading the photovoltaic inverter according to the second verification result, the method further includes: after determining that the second verification result is that the inverter upgrade program passes the verification, write it into the corresponding storage address of the photovoltaic inverter according to the data packet number of each upgrade data packet for upgrading.
[0125] Specifically, in order for the PV inverter to identify whether the received inverter upgrade program is correct, in this application, the second verification result obtained by verifying the inverter upgrade program is used, and then it is determined whether the inverter upgrade program is complete and error-free based on the second verification result. That is to say, when the data acquisition device sends multiple upgrade data packets obtained by splitting the inverter upgrade program to the PV inverter, a verification code generated based on the verification rule is added to each upgrade data packet. For example, a verification code generated by performing polynomial calculation on the data in the upgrade data packet, or a verification code calculated based on the size code of the upgrade data packet and the content of the upgrade data packet. When the upgrade data packet is sent in the form of a data frame, the verification code is attached to the end of the data frame. The PV inverter parses and processes the inverter upgrade program, that is, parses and processes multiple upgrade data packets obtained by splitting the inverter upgrade program to extract the data packet byte count, data packet number, total number of data packets, and verification code of the upgrade data packet. Among them, the verification code can be a CRC verification code and a CRC16 verification code. After receiving each upgrade data packet, the PV inverter verifies the inverter upgrade program based on the file size of each upgrade data packet, that is, the data packet byte count, to obtain the second verification result corresponding to each upgrade data packet. Among them, the second verification result can be a verification code recalculated based on the size of the upgrade data packet and the content of the upgrade data packet. Exemplarily, if the size of the upgrade data packet is 1024 bytes, the verification code is calculated based on the 1024-byte upgrade data packet. If the size of the upgrade data packet is 128 bytes, the verification code is calculated based on the 128-byte upgrade data packet. Then, it is determined whether each upgrade data packet in the inverter upgrade program is complete and error-free based on the second verification result. If it is determined that the second verification result corresponding to each upgrade data packet indicates that the inverter upgrade program passes the verification, for example, if the verification code in each upgrade data packet extracted by the PV inverter is consistent with the second verification result corresponding to each upgrade data packet, that is, the second verification result corresponding to each upgrade data packet indicates that the inverter upgrade program passes the verification, it is determined that each upgrade data packet is complete and error-free. Then, the upgrade data packet is written into the corresponding storage address of the PV inverter according to the data packet number of each upgrade data packet. Thus, each PV inverter obtains all the upgrade data packets divided by the inverter upgrade program and performs an upgrade according to the inverter upgrade program.
[0126] In addition, if the verification code in a certain upgrade data packet extracted by the PV inverter is inconsistent with the second verification result corresponding to the upgrade data packet, it is determined that the upgrade data packet is incomplete, that is, the upgrade data packet is lost, and the upgrade data packet is counted as a missing upgrade data packet.
[0127] In an embodiment, if it is determined that the check code in a certain upgrade data packet extracted by the PV inverter is inconsistent with the second check result corresponding to the upgrade data packet, that is, the upgrade data packet is lost. After determining that the second check result corresponding to each upgrade data packet passes the verification of the inverter upgrade program, the data acquisition device in the present application compares whether the data packet numbers of multiple upgrade data packets that pass the verification are consecutive. If the data packet numbers of multiple upgrade data packets are not consecutive, the data packet numbers between the non-consecutive upgrade data packets are counted as lost packet numbers. If the data packet numbers of multiple upgrade data packets are consecutive, it indicates that the PV inverter has not lost the upgrade data packet.
[0128] In addition, in the present application, the total number of data packets is compared with the data packet number in the last received upgrade data packet to determine whether the last upgrade data packet, that is, the tail, is lost.
[0129] In some embodiments, the PV inverter responds to the data retransmission instruction sent by the data acquisition device, controls the PV inverter to enter the data retransmission state. In the data retransmission state, the number of lost packets of the missing upgrade data packets and the data packet numbers of the missing upgrade data packets are counted to form a retransmission feedback instruction, where the retransmission feedback instruction at least includes a frame header, an inverter address, the number of lost packets, the lost packet numbers, and a CRC check code. Thus, due to the use of broadcast upgrade for one-to-multiple PV inverters, multiple PV inverters only need to receive the inverter upgrade program and only need to respond to the retransmission instruction, thereby shortening the data transmission time between the data acquisition device and the PV inverter. Especially when the upgrade file is large and there are many PV inverters docked in the same area, the efficiency improvement is particularly obvious.
[0130] In some embodiments, the PV inverter determines whether the data packet number of each received upgrade data packet is a lost packet number. If so, the element in the lost packet number set is cleared. Otherwise, it waits for the next upgrade data packet.
[0131] In some embodiments, after receiving the data retransmission instruction, the PV inverter obtains the feedback interval time corresponding to the retransmission feedback instruction; based on the power line in the HPLC communication mode, the retransmission feedback instruction is sent to the data acquisition device according to the feedback interval time.
[0132] Specifically, in order to avoid conflicts when multiple PV inverters send the retransmission feedback instruction to the data acquisition device, in the present application, each PV inverter sends its retransmission feedback instruction to the data acquisition device according to the feedback interval time, that is, each PV inverter sends its retransmission feedback instruction to the data acquisition device after waiting for the feedback interval time, thereby avoiding the problem of conflicts when multiple PV inverters send data.
[0133] In some embodiments, the feedback interval time corresponding to the reissue feedback instruction is calculated through the following steps. That is, the inverter address of the photovoltaic inverter is obtained, and then, according to the inverter address addr and the number of lost packets num of the photovoltaic inverter, the product value of the inverter address addr, the number of lost packets num, and the time amplification factor is calculated. The time amplification factor can be 10, and this product value is used as the feedback interval time T2. For example, the feedback interval time T2 can be expressed as T 2 = addr * 10 * num.
[0134] In some embodiments, when the photovoltaic inverter receives the upgrade end instruction sent by the data acquisition device, where the upgrade end instruction is sent in the form of a data frame, the photovoltaic inverter is controlled to exit the upgrade state and enter the normal state.
[0135] The following Figure 6 illustrates the remote upgrade method of the photovoltaic inverter according to the embodiments of the present invention with reference to the
[0136] Step S33, start.
[0137] Step S34, power on multiple photovoltaic inverters.
[0138] Step S35, network according to the inverter serial number of each photovoltaic inverter and assign an inverter address to each photovoltaic inverter.
[0139] Step S36, after the photovoltaic inverter receives the broadcast upgrade instruction sent by the data acquisition device, enter the upgrade state.
[0140] Step S37, determine whether the photovoltaic inverter has received the inverter upgrade program sent by the data acquisition device. If so, execute Step S38; otherwise, execute Step S57.
[0141] Step S38, the photovoltaic inverter receives multiple upgrade data packets obtained by splitting the inverter upgrade program sent by the data acquisition device.
[0142] Step S39, perform parsing processing on each upgrade data packet.
[0143] Step S40, determine whether the number of bytes of the data packet in each upgrade data packet is 1024 bytes. If so, execute Step S42; otherwise, execute Step S41.
[0144] Step S41, calculate the checksum according to the upgrade data packet of 128 bytes, and execute Step S43.
[0145] Step S42, calculate the checksum according to the upgrade data packet of 1024 bytes, and execute Step S43.
[0146] Step S43: Determine whether the inverter upgrade program passes the verification based on the second verification result. If it does, execute Step S45; otherwise, execute Step S44.
[0147] Step S44: Wait for the next upgrade data packet, i.e., the next frame, and execute Step S38.
[0148] Step S45: Determine whether the PV inverter has received a data reissue instruction sent by the data acquisition device. If it has, execute Step S46; otherwise, execute Step S47.
[0149] Step S46: The PV inverter determines whether the packet number of each received upgrade data packet is the missing packet number. If it is, execute Step S49; otherwise, execute Step S44.
[0150] Step S47: The PV inverter determines whether the packet numbers of each received upgrade data packet are consecutive. If they are, execute Step S48; otherwise, execute Step S49.
[0151] Step S48: Record the total number of received upgrade data packets and execute Step S52.
[0152] Step S49: Count the number of missing upgrade data packets and the packet numbers of the missing upgrade data packets, and execute Step S52.
[0153] Step S50: Write the upgrade data packets into the corresponding storage addresses of the PV inverter according to the packet numbers of the upgrade data packets. For example, write the upgrade data packets into the flash memory.
[0154] Step S51: Determine whether the number of data packets of the upgrade data packets received by the PV inverter is consistent with the total number of data packets stored in the upgrade data packets. If it is, execute Step S56; otherwise, execute Step S52.
[0155] Step S52: The PV inverter waits for the data acquisition device to issue a data reissue instruction.
[0156] Step S53: Determine whether the PV inverter has received a data reissue instruction. If it has, execute Step S54; otherwise, execute Step S56.
[0157] Step S54: The PV inverter sends a reissue feedback instruction regarding the data reissue instruction.
[0158] Step S55: The PV inverter waits for the data acquisition device to reissue the missing upgrade data packets and execute Step S41.
[0159] Step S56: Determine whether the PV inverter has received an upgrade end instruction. If it has, execute Step S58; otherwise, execute Step S57.
[0160] Step S57: The PV inverter does not receive any data within one minute.
[0161] Step S58: Then control the PV inverter to exit the upgrade state.
[0162] Step S59: End.
[0163] Next, refer to Figure 7 the following to illustrate the remote upgrade method of the PV inverter according to the embodiment of the present invention, and the specific content is as follows.
[0164] Step S60: Start.
[0165] Step S61: The data acquisition device issues a broadcast upgrade instruction to each PV inverter. After receiving the broadcast upgrade instruction, the PV inverter enters the upgrade state and waits for a preset duration. Then, the data acquisition device issues the inverter upgrade program to each PV inverter.
[0166] Step S62: Multiple PV inverters receive the inverter upgrade program issued by the data acquisition device and write it into the flash memory.
[0167] Step S63: Determine whether each PV inverter is missing an upgrade data packet. If so, execute Step S64; otherwise, execute Step S67.
[0168] Step S64: Each PV inverter waits for the data acquisition device to issue a data reissue instruction.
[0169] Step S65: Determine whether each PV inverter has received the data reissue instruction. If so, execute Step S66; otherwise, execute Step S64.
[0170] Step S66: Each PV inverter sends a reissue feedback instruction to the data acquisition device.
[0171] Step S67: The PV inverter waits for the data acquisition device to issue the missing upgrade data packet and returns to execute Step S62.
[0172] Step S68: The PV inverter receives the upgrade end instruction issued by the data acquisition device.
[0173] Step S69: The PV inverter completes the upgrade, and controls the PV inverter to exit the upgrade state.
[0174] Step S70: End.
[0175] An embodiment of the fourth aspect of the present invention provides a PV inverter, as Figure 8 shown, the PV inverter 20 includes a second communication module 3 and an inverter body 4.
[0176] Among them, asFigure 2 As shown, the second communication module 3 is connected to the data acquisition device via the power line. The second communication module is used to communicate with the data acquisition device in the HPLC communication mode; the inverter body 4 is connected to the second communication module 3, and the inverter body 4 is used to execute the photovoltaic inverter remote upgrade method of the above embodiment. Among them, the second communication module 3 and the inverter body 4 are connected via a 485 line. The second communication module 3 can be an HPLC module. The HPLC module is hung on the N (neutral) line of the power line. The HPLC module includes a coupling isolation circuit. The coupling isolation circuit of the HPLC module is hung on the L (phase) line of the power line. The coupling isolation circuit can also be arbitrarily connected to two three-phase lines. The function of the coupling isolation circuit is to isolate the low-frequency three-phase alternating current from the low voltage of the single board, and at the same time extract and inject the signal transmitted by the HPLC module to ensure the safety of the photovoltaic inverter. The coupling isolation circuit also has the function of filtering and demodulating the transmitted data. In addition, the second communication module forms data interaction with the second communication module via the AC line.
[0177] For the photovoltaic inverter according to the embodiment of the present invention, by executing the photovoltaic inverter remote upgrade method described in the above embodiment, the existing power line can be used to transmit the upgrade program, so that there is no need for additional wiring to realize the communication between each photovoltaic inverter and the data acquisition device, thereby reducing the wiring cost and the complexity of the wiring mechanism.
[0178] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "schematic embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example.
[0179] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and purposes of the present invention. The scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for remote upgrade of a photovoltaic inverter, characterized in that, it is used for a data acquisition device, and the data acquisition device is connected to at least one photovoltaic inverter through a power line. The method includes: Receiving an inverter upgrade program sent by a cloud server; Sending a broadcast upgrade instruction to each photovoltaic inverter in an HPLC communication manner based on the power line, where the broadcast upgrade instruction is used to instruct the photovoltaic inverter to enter an upgrade state; After reaching a preset duration, sending the inverter upgrade program to each photovoltaic inverter in an HPLC communication manner to upgrade each photovoltaic inverter.
2. The method for remote upgrade of a photovoltaic inverter according to claim 1, characterized in that, Sending the inverter upgrade program to each photovoltaic inverter in an HPLC communication manner based on the power line includes: Performing a splitting process on the inverter upgrade program to obtain a plurality of upgrade data packets, where each upgrade data packet includes at least the number of bytes of the data packet, the packet number of the data packet, the total number of data packets, and a check code; Sending each upgrade data packet to each photovoltaic inverter in sequence in an HPLC communication manner based on the power line until all upgrade data packets are distributed.
3. The method for remote upgrade of a photovoltaic inverter according to claim 2, characterized in that, Performing a splitting process on the inverter upgrade program includes: Obtaining the file size of the inverter upgrade program; Performing a splitting process on the inverter upgrade program according to the file size of the inverter upgrade program.
4. The method for remote upgrade of a photovoltaic inverter according to claim 2, characterized in that, Sending each upgrade data packet to each photovoltaic inverter in sequence in an HPLC communication manner based on the power line includes: Obtaining the distribution interval time of the upgrade data packet; Sending each upgrade data packet to each photovoltaic inverter in sequence according to the distribution interval time in an HPLC communication manner based on the power line.
5. The method for remote upgrade of a photovoltaic inverter according to claim 4, characterized in that, Obtaining the distribution interval time of the upgrade data packet includes: Obtaining the transmission baud rate of the data acquisition device; Obtaining the number of bits contained in each byte in each upgrade data packet according to the number of bytes of each upgrade data packet; Obtaining the distribution interval time according to the number of bytes of each upgrade data packet, the number of bits contained in each byte in each upgrade data packet, and the transmission baud rate.
6. The method for remote upgrade of a photovoltaic inverter according to claim 2, characterized in that, After all upgrade data packets are distributed, the method further includes: Sending a data reissuance instruction to each photovoltaic inverter in an HPLC communication manner, where the data reissuance instruction is used to instruct the target photovoltaic inverter in a data packet missing state among all photovoltaic inverters to enter a data reissuance state; Receiving a reissuance feedback instruction regarding the data reissuance instruction sent by each target photovoltaic inverter; Performing data packet reissuance on the target photovoltaic inverter corresponding to the reissuance feedback instruction according to the reissuance feedback instruction.
7. The photovoltaic inverter remote upgrade method according to claim 6, characterized in that, the retransmission feedback instruction at least includes a frame header, an inverter address, the number of lost packets, the lost packet numbers, and a CRC check code, and the method further includes: judging whether the frame header in the retransmission feedback instruction is valid; if it is valid, then check the inverter address, the number of lost packets, and the lost packet numbers in the retransmission feedback instruction to obtain a first check result; if it is determined that the first check result is consistent with the CRC check code in the retransmission feedback instruction, then retransmit data packets to the target photovoltaic inverter corresponding to the retransmission feedback instruction.
8. The photovoltaic inverter remote upgrade method according to claim 6, characterized in that, the retransmission feedback instruction at least includes lost packet numbers, and retransmitting data packets to the target photovoltaic inverter corresponding to the retransmission feedback instruction includes: forming a lost packet number set with all lost packet numbers; if it is determined that the number of elements in the lost packet number set is greater than or equal to a preset number of lost packets, then perform a duplicate removal process on the elements in the lost packet number set to obtain a lost packet number set after duplicate removal; retransmit data packets to the target photovoltaic inverter corresponding to the retransmission feedback instruction according to the lost packet number set after duplicate removal.
9. The photovoltaic inverter remote upgrade method according to any one of claims 6-8, characterized in that, during the process of retransmitting data packets to the target photovoltaic inverter corresponding to the retransmission feedback instruction, the method further includes: sending a data retransmission instruction to each photovoltaic inverter in an HPLC communication manner at intervals of a preset time; until after the retransmission feedback instruction cannot be received, stop sending the data retransmission instruction.
10. The photovoltaic inverter remote upgrade method according to claim 1, characterized in that, before sending a broadcast upgrade instruction to each photovoltaic inverter in an HPLC communication manner, the method further includes: obtaining the inverter serial number of each photovoltaic inverter; allocating an inverter address to each photovoltaic inverter according to the inverter serial number of each photovoltaic inverter.
11. The photovoltaic inverter remote upgrade method according to claim 6, characterized in that, the method further includes: after completing data packet retransmission, sending an upgrade end instruction to each photovoltaic inverter in an HPLC communication manner, and the upgrade end instruction is used to instruct the photovoltaic inverter to exit the upgrade state.
12. A data acquisition device, characterized in that, comprising: a first communication module, the first communication module is connected to at least one photovoltaic inverter through a power line, and the first communication module is used to communicate with at least one photovoltaic inverter in an HPLC communication manner; a data collector, the data collector is connected to a cloud server and the first communication module, and the data collector is used to execute the photovoltaic inverter remote upgrade method according to any one of claims 1-11.
13. A photovoltaic inverter remote upgrade method, characterized in that, For a photovoltaic inverter, the photovoltaic inverter is connected to the data acquisition device described in claim 12 through a power line, and the photovoltaic inverter is used to communicate with the data acquisition device in an HPLC communication manner. The method includes: Upon receiving the broadcast upgrade instruction sent by the data acquisition device, controlling the photovoltaic inverter to enter the upgrade state; After an interval of a preset duration, receiving the inverter upgrade program sent by the data acquisition device; Upgrading the photovoltaic inverter according to the inverter upgrade program.
14. The method for remotely upgrading a photovoltaic inverter according to claim 13, wherein, Upgrading the photovoltaic inverter according to the inverter upgrade program includes: Performing parsing processing on the inverter upgrade program to obtain the file size of the inverter upgrade program; Verifying the inverter upgrade program according to the file size of the inverter upgrade program to obtain a second verification result; Upgrading the photovoltaic inverter according to the second verification result.
15. The method for remotely upgrading a photovoltaic inverter according to claim 14, wherein, The inverter upgrade program includes a plurality of upgrade data packets. Among them, each upgrade data packet at least includes the number of bytes of the data packet, the data packet number, the total number of data packets, and the check code. Upgrading the photovoltaic inverter according to the second verification result, the method further includes: After determining that the second verification result is that the inverter upgrade program passes the verification, writing the inverter upgrade program into the corresponding storage address of the photovoltaic inverter according to the data packet number of each upgrade data packet for upgrading.
16. The method for remotely upgrading a photovoltaic inverter according to claim 15, wherein, The method further includes: In response to the data reissuance instruction sent by the data acquisition device, controlling the photovoltaic inverter to enter the data reissuance state; Counting the number of lost packets of the missing upgrade data packets and the data packet numbers of the missing upgrade data packets to form a reissuance feedback instruction, where the reissuance feedback instruction at least includes a frame header, an inverter address, the number of lost packets, the lost packet numbers, and a CRC check code; Sending the reissuance feedback instruction to the data acquisition device.
17. The method for remotely upgrading an inverter according to claim 16, wherein, The method further includes: After receiving the data reissuance instruction, obtaining the feedback interval time corresponding to the reissuance feedback instruction; Based on the power line and in an HPLC communication manner, sending the reissuance feedback instruction to the data acquisition device according to the feedback interval time.
18. The method for remotely upgrading an inverter according to claim 17, wherein, Obtaining the feedback interval time corresponding to the reissuance feedback instruction includes: Obtaining the inverter address of the photovoltaic inverter; According to the inverter address of the photovoltaic inverter and the number of lost packets, obtaining the feedback interval time.
19. The method for remotely upgrading an inverter according to claim 13, wherein, The method includes: Upon receiving the upgrade end instruction sent by the data acquisition device, controlling the photovoltaic inverter to exit the upgrade state.
20. A photovoltaic inverter, characterized in that, comprising: a second communication module, the second communication module is connected to the data acquisition device through a power line, and the second communication module is used to communicate with the data acquisition device in an HPLC communication manner; an inverter body, the inverter body is connected to the second communication module, and the inverter body is used to execute the photovoltaic inverter remote upgrade method according to any one of claims 13-19.