CN-121996275-A - Charging pile upgrading method, electronic equipment and storage medium
Abstract
The invention relates to the technical field of charging piles and discloses a charging pile upgrading method, electronic equipment and a storage medium, wherein the method comprises the steps of analyzing and obtaining upgrade file information from a received software upgrade command, and sending a file downloading request carrying the upgrade file information to a file server; and under the condition that communication connection with the file server is disconnected, when the communication with the file server is determined to be restored and the fact that the update file data is not downloaded is detected to be finished, continuing to download the update file data through the target data node until the update file data is downloaded to be finished. According to the invention, the updating file data is continuously downloaded on the basis of the original data by adopting a breakpoint continuous transmission mode based on the stored target data node, so that the updating stability of the charging pile in a network unstable scene can be improved, and the software updating efficiency of the charging pile can be improved.
Inventors
- LI ENHU
- HOU NING
- LIU QILIANG
- TIAN ZHIQIANG
- RU SHAOJUN
Assignees
- 绿能慧充数字技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260129
Claims (8)
- 1. A charging pile upgrade method, characterized by being applied to the charging pile, the method comprising: Analyzing the received software upgrading command to obtain upgrading file information, and sending a file downloading request carrying the upgrading file information to a file server; Storing the upgrade file data and marking a target data node corresponding to the upgrade file data under the condition of receiving the upgrade file data, wherein the upgrade file data is sent to the charging pile by the file server according to the file downloading request; And under the condition of disconnecting communication with the file server, when communication with the file server is recovered and the fact that the upgrading file data is not downloaded is detected, continuing to download the upgrading file data through the target data node until the upgrading file data is downloaded.
- 2. The method of claim 1, wherein the upgrade file information includes upgrade file download information characterizing a download path configured by the upgrade file data, and wherein the sending a file download request carrying the upgrade file information to a file server includes: Creating at least one downloading channel matched with the upgrade file data according to the upgrade file downloading information; respectively determining network nodes corresponding to each downloading channel; Sending a designated file downloading request carrying corresponding block upgrading file information to a file server through each network node; The block upgrading file information is part of the upgrading file information, and any two pieces of the block upgrading file information are different.
- 3. The charging pile upgrade method according to claim 1, wherein the storing the upgrade file data and marking a target data node corresponding to the upgrade file data comprises: storing the upgrade file data by adopting a pre-constructed cache space, and marking a target data node corresponding to the upgrade file data; And transferring the upgrade file data stored in the cache space to a pre-configured external flash memory when the upgrade file data is in a time interval waiting to be received or the communication connection with the file server is disconnected.
- 4. The charging pile upgrade method according to claim 1, further comprising: And when the fact that the upgrade file data are downloaded is detected, software replacement is carried out based on the downloaded upgrade file data so as to realize software upgrade.
- 5. A charging pile upgrade method, characterized by being applied to a file server, the method comprising: receiving a file downloading request from the charging pile, wherein the file downloading request carries upgrade file information, and the upgrade file information is obtained by analyzing the charging pile from a received software upgrade command; And sending upgrade file data to the charging pile according to the file downloading request, so that the charging pile stores the upgrade file data and marks a target data node corresponding to the upgrade file data under the condition that the charging pile receives the upgrade file data, and when the charging pile is disconnected from the file server, and the charging pile resumes communication with the file server and detects that the upgrade file data is not completely downloaded, continuing to download the upgrade file data through the target data node until the upgrade file data is completely downloaded.
- 6. The charging pile upgrading method according to claim 5, further comprising, before the transmitting of the upgrade file data to the charging pile according to the file download request: And receiving the uploaded upgrade file data subjected to compression processing.
- 7. An electronic device, comprising: at least one processor; at least one memory for storing at least one program; A charging pile upgrading method according to any one of claims 1 to 6, when at least one of said programs is executed by at least one of said processors.
- 8. A computer-readable storage medium, in which a processor-executable program is stored, which when executed by a processor is for implementing the charging pile upgrading method according to any one of claims 1 to 6.
Description
Charging pile upgrading method, electronic equipment and storage medium Technical Field The invention relates to the technical field of charging piles, in particular to a charging pile upgrading method, electronic equipment and a computer readable storage medium. Background With the rapid and vigorous development of new energy industry, the charging pile is more and more paid attention to as an important infrastructure of the electric automobile, when new functional requirements or software self-updating conditions occur, the software of the charging pile needs to be adaptively updated to meet the use requirements of the charging pile, and at present, under the condition that a network is unstable, particularly the network is interrupted, the upgrading flow of the charging pile is easily broken, so that the upgrading fails. Disclosure of Invention The present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, the invention provides a charging pile upgrading method, electronic equipment and a storage medium, which can improve the upgrading stability of the charging pile in a network unstable scene. In a first aspect, an embodiment of the present invention provides a charging pile upgrading method, applied to a charging pile, where the method includes: Analyzing the received software upgrading command to obtain upgrading file information, and sending a file downloading request carrying the upgrading file information to a file server; Storing the upgrade file data and marking a target data node corresponding to the upgrade file data under the condition of receiving the upgrade file data, wherein the upgrade file data is sent to the charging pile by the file server according to the file downloading request; And under the condition of disconnecting communication with the file server, when communication with the file server is recovered and the fact that the upgrading file data is not downloaded is detected, continuing to download the upgrading file data through the target data node until the upgrading file data is downloaded. Optionally, in one embodiment of the present invention, the upgrade file information includes upgrade file download information, the upgrade file download information characterizes a download path configured by the upgrade file data, and the sending a file download request carrying the upgrade file information to a file server includes: Creating at least one downloading channel matched with the upgrade file data according to the upgrade file downloading information; respectively determining network nodes corresponding to each downloading channel; Sending a designated file downloading request carrying corresponding block upgrading file information to a file server through each network node; The block upgrading file information is part of the upgrading file information, and any two pieces of the block upgrading file information are different. Optionally, in one embodiment of the present invention, the storing the upgrade file data and marking a target data node corresponding to the upgrade file data includes: storing the upgrade file data by adopting a pre-constructed cache space, and marking a target data node corresponding to the upgrade file data; And transferring the upgrade file data stored in the cache space to a pre-configured external flash memory when the upgrade file data is in a time interval waiting to be received or the communication connection with the file server is disconnected. Optionally, in one embodiment of the present invention, the method further includes: And when the fact that the upgrade file data are downloaded is detected, software replacement is carried out based on the downloaded upgrade file data so as to realize software upgrade. In a second aspect, an embodiment of the present invention provides a charging pile upgrading method, which is applied to a file server, and the method includes: receiving a file downloading request from the charging pile, wherein the file downloading request carries upgrade file information, and the upgrade file information is obtained by analyzing the charging pile from a received software upgrade command; And sending upgrade file data to the charging pile according to the file downloading request, so that the charging pile stores the upgrade file data and marks a target data node corresponding to the upgrade file data under the condition that the charging pile receives the upgrade file data, and when the charging pile is disconnected from the file server, and the charging pile resumes communication with the file server and detects that the upgrade file data is not completely downloaded, continuing to download the upgrade file data through the target data node until the upgrade file data is completely downloaded. Optionally, in one embodiment of the present invention, before the sending upgrade file data to the charging pile according to the file download request, the method fu