Charging pile remote upgrading method and device, electronic equipment and storage medium

Through the remote upgrade method, the coordinated work between the server and the charging pile end is solved, and the problem of inefficient upgrade efficiency of traditional charging piles is realized, efficient remote upgrade and safety management of charging piles is achieved, operation and maintenance efficiency is improved and costs are reduced.

CN119201159APending Publication Date: 2024-12-27SHENZHEN CAR ENERGY NET CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411127521.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The traditional charging pile upgrade method is inefficient, and there are upgrade failures and safety risks caused by artificial factors.

Method used

Provide a remote upgrade method for charging piles, obtain the online status of the charging pile and the firmware version of the main control unit motherboard through the server, determine whether the upgrade is needed, and issue an upgrade command to the charging pile, download and parse the firmware upgrade package, and execute it. Upgrade process and record and report the upgrade results.

Benefits of technology

Remote intelligent management of charging piles has been realized, operation and maintenance efficiency has been improved, operation and maintenance cost has been reduced, and the problem of inefficient traditional manual upgrades has been avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201159A_ABST
    Figure CN119201159A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of new energy, and discloses a charging pile remote upgrading method and device, electronic equipment and a storage medium. The charging pile remote upgrading method comprises the following steps: acquiring a charging pile in an online state and a firmware version of a main control unit mother board of the charging pile at a server side; judging whether the charging pile needs to be upgraded or not according to the firmware version, and if yes, issuing an upgrading instruction to the corresponding charging pile; downloading a corresponding firmware upgrade package at the charging pile end according to the upgrade instruction, and analyzing the firmware upgrade package to obtain a corresponding upgrade execution script and an upgrade firmware file; executing an upgrading process on the master control unit mother board by using the upgrading firmware file according to the upgrading execution script; the upgrading result corresponding to the upgrading process is recorded, and the upgrading result is reported to the server side, so that remote intelligent management of upgrading of the charging pile is realized, the problem of low efficiency of traditional manual upgrading is avoided, and the operation and maintenance efficiency of the charging pile is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy technology, and in particular to a charging pile remote upgrade method, device, electronic device and storage medium. Background Art

[0002] In the current development of new energy vehicles, charging piles provide facilities for new energy vehicles to supplement electricity. Charging piles include not only hardware facilities for providing charging functions, but also related control hardware for performing charging management. In the traditional charging pile management process, individual users' home charging piles can be manually upgraded by the user, but in addition, there are some centralized charging places such as charging stations and parking lots. The charging piles contained in these charging places require the corresponding charging pile manufacturer's operation and maintenance personnel to perform manual upgrades offline. With the increase in the number of public charging piles, the traditional offline manual upgrade of charging piles is even less efficient, and there are also upgrade failures or other safety hazards caused by human factors during the upgrade process. Summary of the invention

[0003] The main technical problem solved by the implementation methods of the present application is that the traditional charging pile upgrading method is inefficient.

[0004] To solve the above technical problems, the first technical solution adopted in the implementation mode of the present application is: to provide a remote upgrade method for a charging pile, comprising: obtaining an online charging pile and a firmware version of a main control unit motherboard of the charging pile on the server side; judging whether the charging pile needs to be upgraded according to the firmware version, and if necessary, issuing an upgrade instruction to the corresponding charging pile; downloading the corresponding firmware upgrade package according to the upgrade instruction at the charging pile side, parsing the firmware upgrade package, and obtaining a corresponding upgrade execution script and an upgrade firmware file; executing an upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script; recording the upgrade result corresponding to the upgrade process, and reporting the upgrade result to the server side.

[0005] Optionally, before the step of sending the upgrade instruction to the corresponding charging pile, it also includes: obtaining the first hardware model of the online charging pile, and the corresponding second hardware model of the main control unit motherboard; querying the server side according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version; if there is a corresponding firmware upgrade package, generating the corresponding upgrade instruction according to the package information of the firmware upgrade package.

[0006] Optionally, after the step of querying the server side according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version, it also includes: if a corresponding firmware upgrade package exists, generating the corresponding upgrade execution script according to the user terminal program corresponding to the main control unit motherboard, wherein the upgrade execution script is obtained by a pre-set script generation tool; sending the upgrade execution script and the corresponding firmware upgrade package to a pre-deployed charging pile simulation environment; executing the upgrade execution script in the charging pile simulation environment to obtain a first simulation upgrade result corresponding to the firmware upgrade package; if the first simulation upgrade result is a successful simulation upgrade, adding the upgrade execution script to the firmware upgrade package.

[0007] Optionally, before the step of using the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script, it also includes: verifying the integrity of the firmware upgrade package, if the firmware upgrade package is damaged or loses files during transmission, deleting the currently received firmware upgrade package, and re-downloading the corresponding firmware upgrade package according to the upgrade instruction; checking the security of the firmware upgrade package, if there is unsafe code in the firmware upgrade package or the digital signature is invalid, deleting the currently received firmware upgrade package, and re-downloading the corresponding firmware upgrade package according to the upgrade instruction; if the firmware upgrade package passes the integrity and security check, backing up the firmware upgrade package to a preset storage location.

[0008] Optionally, after the step of using the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script, the step also includes: if the result of the upgrade process is an upgrade failure, obtaining the corresponding backed up firmware upgrade package to update the firmware upgrade package that currently fails to execute the upgrade process; using the updated firmware upgrade package to execute the parsing of the firmware upgrade package to obtain the corresponding upgrade execution script and upgrade firmware file to the step of using the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script.

[0009] Optionally, after the step of recording the upgrade result corresponding to the upgrade process and reporting the upgrade result to the server side, it also includes: parsing the upgrade result; if the upgrade result is an upgrade failure, sending the firmware upgrade package and upgrade execution script corresponding to the upgrade result to the charging pile simulation environment; executing the upgrade execution script corresponding to the upgrade failure in the charging pile simulation environment to obtain a second simulated upgrade result of the firmware upgrade package corresponding to the upgrade failure; if the second simulated upgrade result is a failure, generating an upgrade alarm message including the firmware upgrade package information corresponding to the upgrade failure and the firmware version, and sending the upgrade alarm message to a preset information recipient.

[0010] Optionally, after the step of generating the firmware upgrade package information corresponding to the upgrade failure and the upgrade alarm information of the firmware version, and sending the upgrade alarm information to a preset information recipient, the step further includes: receiving a newly uploaded firmware upgrade package corresponding to the upgrade failure, wherein the version of the newly uploaded firmware upgrade package is higher than the version of the firmware upgrade package corresponding to the upgrade failure; using the newly uploaded firmware upgrade package to update the firmware upgrade package corresponding to the upgrade failure; using the updated firmware upgrade package to execute the steps of sending the upgrade instruction to the corresponding charging pile, recording the upgrade result corresponding to the upgrade process, and reporting the upgrade result to the server.

[0011] To solve the above technical problems, the second technical solution adopted in the implementation mode of the present application is: to provide a charging pile remote upgrade device, including: a data acquisition module, used to obtain the charging pile in an online state and the firmware version of the main control unit motherboard of the charging pile on the server side; an upgrade judgment module, used to judge whether the charging pile needs to be upgraded according to the firmware version, and if necessary, send an upgrade instruction to the corresponding charging pile; an upgrade package download module, used to download the corresponding firmware upgrade package according to the upgrade instruction on the charging pile side, parse the firmware upgrade package, and obtain the corresponding upgrade execution script and upgrade firmware file; an upgrade execution module, used to use the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script; an upgrade result module, used to record the upgrade result corresponding to the upgrade process, and report the upgrade result to the server side.

[0012] To solve the above technical problems, the third technical solution adopted in the implementation mode of the present application is: to provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the charging pile remote upgrade method as described above.

[0013] In order to solve the above technical problems, the fourth technical solution adopted in the implementation mode of the present application is: providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the charging pile remote upgrade method as described above.

[0014] Different from the related art, the present application obtains the online charging pile and the firmware version of the main control unit motherboard of the charging pile on the server side; determines whether the charging pile needs to be upgraded according to the firmware version, and if necessary, sends an upgrade instruction to the corresponding charging pile; downloads the corresponding firmware upgrade package according to the upgrade instruction on the charging pile side, parses the firmware upgrade package, and obtains the corresponding upgrade execution script and upgrade firmware file; uses the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script; records the upgrade results corresponding to the upgrade process, and reports the upgrade results to the server side. This not only realizes remote intelligent management of the upgrade of the charging pile, avoiding the problem of low efficiency of traditional manual upgrades, but also improves the operation and maintenance efficiency of the charging pile and reduces operating costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0016] Figure 1 It is a schematic diagram of the application environment of the charging pile remote upgrade method provided in the embodiment of the present application.

[0017] Figure 2 It is a schematic diagram of the execution flow of the charging pile remote upgrade method provided in an embodiment of the present application.

[0018] Figure 3 It is a schematic diagram of the execution flow of generating upgrade instructions in the charging pile remote upgrade method provided in an embodiment of the present application.

[0019] Figure 4 It is a schematic diagram of the execution flow of adding an upgrade execution script to a firmware upgrade package in the charging pile remote upgrade method provided in an embodiment of the present application.

[0020] Figure 5 It is a schematic diagram of the execution flow of the backup firmware upgrade package in the charging pile remote upgrade method provided in the embodiment of the present application.

[0021] Figure 6 It is a schematic diagram of the architecture of the charging pile remote upgrade device provided in an embodiment of the present application.

[0022] Figure 7 It is a schematic diagram of the hardware structure of an electronic device for executing the charging pile remote upgrade method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0024] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.

[0025] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0026] To facilitate understanding of this embodiment, a charging pile remote upgrade method disclosed in the embodiment of the present application is first introduced in detail. The executor of the charging pile remote upgrade method provided in the embodiment of the present application is generally an electronic device with certain computing capabilities, such as a computer device. In some possible implementation methods, the charging pile remote upgrade method can be implemented by a processor calling computer-readable instructions stored in a memory.

[0027] The following uses a computer device as an example to illustrate the remote upgrade method of the charging pile provided in the embodiment of the present application. Figure 1 , Figure 1 This is a schematic diagram of the application environment of the charging pile remote upgrade method provided in the embodiment of the present application. As shown in the figure, the charging pile 20 includes a main control unit motherboard 202 installed on the charging pile 20, and the charging pile 20 also includes a terminal program 201 for managing charging activities. The charging pile 20 is connected to the remote server 10 through a communication network. The communication network can be a 4G / 5G network, or Ethernet, etc. The remote server 10 manages the charging pile 20 connected to the system through the communication network. It should be specially noted that Figure 1The number of remote servers and the number of charging posts 20 connected to the system are schematic, and can be arbitrarily expanded in number during actual implementation. In addition, the remote server 10 can be an independent server, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0028] Please continue reading Figure 2 , Figure 2 : is a schematic diagram of the execution flow of the charging pile remote upgrade method provided in the embodiment of the present application. As shown in the figure, the method includes the following steps:

[0029] S10. Obtaining the online charging pile and the firmware version of the main control unit motherboard of the charging pile on the server side.

[0030] Among them, the main control unit motherboard of the charging pile is one of the key components of the charging pile. It is responsible for monitoring the status of the charging pile, controlling the charging output and managing the entire charging process. It communicates with the user interface, the charging pile network and the external system to realize remote monitoring, data transmission and remote control functions, monitor the safety status of the charging pile, including safety protection functions such as overcurrent, overvoltage and overtemperature, ensure the charging process is safe and reliable, record the usage of the charging pile, charging data and other information, support data statistics and analysis, and provide support for charging pile management. If the status of the charging pile is offline (for example, the network is disconnected due to maintenance, etc.), wait for the status of the charging pile to become online before performing the remote upgrade, or when the status of the charging pile is offline and the offline state continues to reach the preset offline time threshold, the work order can be delegated to the corresponding maintenance personnel for maintenance.

[0031] S20: Determine whether the charging pile needs to be upgraded according to the firmware version; if necessary, send an upgrade instruction to the corresponding charging pile.

[0032] Among them, first query the versions of all firmware upgrade packages uploaded by the server, and obtain the first version number of the latest version of all firmware upgrade packages, and then judge in turn whether the firmware version of the main control unit template of each charging pile is less than the first version number according to the first version number. If it is less than, the corresponding charging pile needs to be upgraded, and if it is greater than or equal to, it does not need to be upgraded.

[0033] As an optional implementation, please continue to refer to Figure 3 , Figure 31 is a schematic diagram of an execution flow of generating an upgrade instruction in the remote upgrade method for a charging pile provided in an embodiment of the present application. As shown in the figure, before issuing the upgrade instruction to the corresponding charging pile, the following steps may also be included:

[0034] S201. Obtain a first hardware model of an online charging pile and a second hardware model of a corresponding main control unit motherboard.

[0035] Among them, in the actual charging pile deployment process, there may be charging pile products from different manufacturers, different models, and different production batches, and the charging piles may use different models of active unit templates. In the process of upgrading different models of main control unit templates, it is necessary to use the corresponding firmware upgrade package to avoid damage to hardware such as the charging pile or the main control unit template due to different firmware upgrade packages.

[0036] S202: query the server according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version.

[0037] Specifically, when performing upgrade judgment on the server side, it is necessary to ensure that the charging pile model and the main control unit template model corresponding to the firmware upgrade package match the above-mentioned first hardware model and second hardware model.

[0038] S203: If a corresponding firmware upgrade package exists, generate a corresponding upgrade instruction according to the package information of the firmware upgrade package.

[0039] Among them, because there are certain differences between the charging pile model and the main control unit template model corresponding to the firmware upgrade package, there are also certain differences in the upgrade instructions generated according to the package information of the firmware upgrade package.

[0040] As an optional implementation, please continue to refer to Figure 4 , Figure 4 This is a schematic diagram of the execution flow of adding an upgrade execution script to a firmware upgrade package in the charging pile remote upgrade method provided in an embodiment of the present application. As shown in the figure, after step S203, the following steps may also be included:

[0041] S204: If a corresponding firmware upgrade package exists, generate a corresponding upgrade execution script according to the user terminal program corresponding to the main control unit motherboard, wherein the upgrade execution script is obtained by a pre-set script generation tool.

[0042] As an example, the script generation tool may be a key assistant tool software, which may be used to generate a corresponding upgrade execution script based on the interface and other features of the user terminal program. That is, during the upgrade execution process, the generated upgrade execution script may simulate the process of the user clicking on the case on the user terminal program interface on the operation interface to execute the corresponding upgrade process.

[0043] S205: Send the upgrade execution script and the corresponding firmware upgrade package to the pre-deployed charging pile simulation environment.

[0044] Among them, the above-mentioned charging pile simulation environment is a simulation environment preset on the server side according to the design of the above-mentioned main control unit template and the corresponding software simulation tool. It can not only be used to test the upgrade execution script and firmware upgrade package, but also can be used to simulate and display the real-time operation effect of the charging pile.

[0045] S206: Execute the upgrade execution script in the charging pile simulation environment to obtain a first simulation upgrade result corresponding to the firmware upgrade package.

[0046] S207: If the first simulated upgrade result is that the simulated upgrade is successful, then add an upgrade execution script to the firmware upgrade package.

[0047] As another optional implementation, if the result of the first simulated upgrade is a simulated upgrade failure, it indicates that there is a problem with the corresponding upgrade execution script or the corresponding firmware upgrade package. Further analyze whether there is a problem with the upgrade execution script, or re-execute the above steps of obtaining the upgrade execution script to obtain a new upgrade execution script, and execute the above steps between S205 and S207 again through the new upgrade execution script. If there is a problem with the corresponding firmware upgrade package, an upgrade package warning message can be sent to a preset warning message recipient, and a new firmware upgrade package with the problem fixed can be received, and then the new firmware upgrade package can be used to execute the above steps between S205 and S207.

[0048] S30: at the charging pile end, download the corresponding firmware upgrade package according to the upgrade instruction, parse the firmware upgrade package, and obtain the corresponding upgrade execution script and upgrade firmware file.

[0049] S40: Execute an upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script.

[0050] As a preferred implementation, please continue to refer to Figure 5 , Figure 5 1 is a schematic diagram of the execution flow of backing up the firmware upgrade package in the charging pile remote upgrade method provided in the embodiment of the present application. As shown in the figure, before the above step S40, the following steps may also be included:

[0051] S401, verifying the integrity of the firmware upgrade package. If the firmware upgrade package is damaged or the file is lost during the transmission process, the currently received firmware upgrade package is deleted, and the corresponding firmware upgrade package is downloaded again according to the upgrade instruction.

[0052] S402: Check the security of the firmware upgrade package. If there is unsafe code in the firmware upgrade package or the digital signature is invalid, delete the currently received firmware upgrade package and download the corresponding firmware upgrade package again according to the upgrade instruction.

[0053] S403: If the firmware upgrade package passes the integrity and security check, back up the firmware upgrade package to a preset storage location.

[0054] Among them, the firmware upgrade package is checked in terms of integrity and security. Not only the integrity and security of the above-mentioned upgrade firmware file are checked, but also the integrity and security of the above-mentioned upgrade execution script are checked to further improve the security of remote upgrade of charging piles.

[0055] As another preferred implementation, after the above step S40, if the result of the above upgrade process is that the upgrade fails, the corresponding backed-up firmware upgrade package is obtained to update the firmware upgrade package that failed to execute the current upgrade process. Then, the updated firmware upgrade package is used to execute the above parsed firmware upgrade package, and the corresponding upgrade execution script and upgrade firmware file are obtained to the above steps between executing the upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script, that is, the aforementioned upgrade process is executed again using the backed-up firmware upgrade package, so as to further improve the success rate of the remote upgrade of the charging pile provided in the embodiment of the present application.

[0056] S50: Record the upgrade result corresponding to the upgrade process, and report the upgrade result to the server.

[0057] As a preferred implementation, after reporting the upgrade result to the server, the upgrade result is parsed on the server. If the upgrade result is an upgrade failure, the firmware upgrade package and upgrade execution script corresponding to the upgrade result are sent to the charging pile simulation environment. The upgrade execution script corresponding to the upgrade failure is executed in the charging pile simulation environment to obtain a second simulated upgrade result of the firmware upgrade package corresponding to the upgrade failure, that is, the firmware upgrade package and upgrade execution script corresponding to the above-mentioned upgrade failure are verified twice through the pre-deployed charging pile simulation environment. If the above-mentioned second simulated upgrade result is successful, the firmware upgrade package and upgrade execution script with a successful simulated upgrade result are reused to execute the above-mentioned steps between S30 and S50. If the second simulated upgrade result is a failure, an upgrade alarm message containing the firmware upgrade package information and firmware version corresponding to the upgrade failure is generated, and the upgrade alarm message is sent to the preset information recipient.

[0058] As another preferred implementation, after the above step of sending the upgrade alarm information to the preset information recipient, a newly uploaded firmware upgrade package corresponding to the upgrade failure may also be received, wherein the version of the newly uploaded firmware upgrade package is higher than the version of the firmware upgrade package corresponding to the upgrade failure. The newly uploaded firmware upgrade package is used to update the firmware upgrade package corresponding to the upgrade failure. The updated firmware upgrade package is used to execute the steps of sending the upgrade instruction to the corresponding charging pile, recording the upgrade result corresponding to the upgrade process, and reporting the upgrade result to the server.

[0059] The remote upgrade method for charging piles provided in the embodiment of the present application obtains the charging pile in an online state and the firmware version of the main control unit motherboard of the charging pile on the server side; determines whether the charging pile needs to be upgraded according to the firmware version, and if so, issues an upgrade instruction to the corresponding charging pile; downloads the corresponding firmware upgrade package according to the upgrade instruction at the charging pile side, parses the firmware upgrade package, and obtains the corresponding upgrade execution script and upgrade firmware file; executes the upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script; records the upgrade result corresponding to the upgrade process, and reports the upgrade result to the server side, which not only realizes remote intelligent management of the upgrade of the charging pile and avoids the problem of low efficiency of traditional manual upgrades, but also improves the operation and maintenance efficiency of the charging pile and reduces the operating cost.

[0060] Please continue reading Figure 6 , Figure 6 This is a schematic diagram of the architecture of the charging pile remote upgrade device provided in an embodiment of the present application. As shown in the figure, the charging pile remote upgrade device 60 includes a data acquisition module 61, an upgrade judgment module 62, an upgrade package download module 63, an upgrade execution module 64 and an upgrade result module 65.

[0061] The data acquisition module 61 is used to acquire the online charging pile and the firmware version of the main control unit motherboard of the charging pile on the server side;

[0062] The upgrade judgment module 62 is used to judge whether the charging pile needs to be upgraded according to the firmware version, and if necessary, send an upgrade instruction to the corresponding charging pile;

[0063] The upgrade package download module 63 is used to download the corresponding firmware upgrade package according to the upgrade instruction at the charging pile end, parse the firmware upgrade package, and obtain the corresponding upgrade execution script and upgrade firmware file;

[0064] The upgrade execution module 64 is used to execute the upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script;

[0065] The upgrade result module 65 is used to record the upgrade result corresponding to the upgrade process and report the upgrade result to the server.

[0066] As an optional implementation, the upgrade judgment module 62 is also used to obtain the first hardware model of the online charging pile and the corresponding second hardware model of the main control unit motherboard; query the server side according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version; if there is a corresponding firmware upgrade package, generate the corresponding upgrade instruction according to the package information of the firmware upgrade package.

[0067] As another optional implementation, the upgrade judgment module 62 is also used to generate the corresponding upgrade execution script according to the user terminal program corresponding to the main control unit motherboard if a corresponding firmware upgrade package exists, wherein the upgrade execution script is obtained by a pre-set script generation tool; send the upgrade execution script and the corresponding firmware upgrade package to a pre-deployed charging pile simulation environment; execute the upgrade execution script in the charging pile simulation environment to obtain a first simulation upgrade result corresponding to the firmware upgrade package; if the first simulation upgrade result is a successful simulation upgrade, add the upgrade execution script to the firmware upgrade package.

[0068] As an optional implementation, the upgrade execution module 64 is also used to verify the integrity of the firmware upgrade package. If the firmware upgrade package is damaged or loses files during transmission, the currently received firmware upgrade package is deleted, and the corresponding firmware upgrade package is downloaded again according to the upgrade instruction; the security of the firmware upgrade package is checked. If there is unsafe code or the digital signature is invalid in the firmware upgrade package, the currently received firmware upgrade package is deleted, and the corresponding firmware upgrade package is downloaded again according to the upgrade instruction; if the firmware upgrade package passes the integrity and security check, the firmware upgrade package is backed up to a preset storage location.

[0069] As another optional implementation, the upgrade execution module 64 is also used to obtain the corresponding backed-up firmware upgrade package to update the firmware upgrade package that failed in the current upgrade process if the result of the upgrade process is an upgrade failure; use the updated firmware upgrade package to execute the steps of parsing the firmware upgrade package, obtaining the corresponding upgrade execution script and upgrade firmware file, and executing the upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script.

[0070] As an optional implementation, the upgrade result module 65 is also used to parse the upgrade result; if the upgrade result is an upgrade failure, the firmware upgrade package and upgrade execution script corresponding to the upgrade result are sent to the charging pile simulation environment; the upgrade execution script corresponding to the upgrade failure is executed in the charging pile simulation environment to obtain a second simulated upgrade result of the firmware upgrade package corresponding to the upgrade failure; if the second simulated upgrade result is a failure, an upgrade alarm message containing the firmware upgrade package information corresponding to the upgrade failure and the firmware version is generated, and the upgrade alarm message is sent to a preset information recipient.

[0071] As another optional implementation, the upgrade result module 65 is also used to receive a newly uploaded firmware upgrade package corresponding to the upgrade failure, wherein the version of the newly uploaded firmware upgrade package is higher than the version of the firmware upgrade package corresponding to the upgrade failure; use the newly uploaded firmware upgrade package to update the firmware upgrade package corresponding to the upgrade failure; use the updated firmware upgrade package to execute the steps of sending the upgrade instruction to the corresponding charging pile to recording the upgrade result corresponding to the upgrade process, and reporting the upgrade result to the server.

[0072] It should be noted that the above charging pile remote upgrade device can execute the charging pile remote upgrade method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the charging pile remote upgrade device, please refer to the charging pile remote upgrade method provided in the embodiment of the present application.

[0073] Please continue reading Figure 7 , Figure 7 : is a hardware structure diagram of an electronic device 700 for executing a charging pile remote upgrade method provided in an embodiment of the present application. As shown in the figure, the electronic device 700 includes:

[0074] One or more processors 710 and memory 720, Figure 7 A processor 710 is taken as an example.

[0075] The processor 710 and the memory 720 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0076] The memory 720 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the charging pile remote upgrade method in the embodiment of the present application. The processor 710 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 720, that is, the charging pile remote upgrade method in the above method embodiment is implemented.

[0077] The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the charging pile remote upgrade device, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 720 may optionally include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the charging pile remote upgrade device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] The one or more modules are stored in the memory 720, and when executed by the one or more processors 710, the charging pile remote upgrade method in any of the above method embodiments is executed, for example, the above described Figure 2 Steps S10 to S50 of the method, Figure 3 Steps S201 to S203 of the method, Figure 4 Steps S201 to S207 of the method, Figure 5 Steps S401 to S403 of the method are implemented Figure 6 The functions of modules 61-65 in.

[0079] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0080] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 7 A processor 710 in the embodiment may enable the one or more processors to execute the charging pile remote upgrade method in any of the above method embodiments, for example, to execute the above described Figure 2 Steps S10 to S50 of the method, Figure 3 Steps S201 to S203 of the method, Figure 4 Steps S201 to S207 of the method, Figure 5 Steps S401 to S403 of the method are implemented Figure 6 The functions of modules 61-65 in.

[0081] The present application provides a computer program product, wherein the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by the electronic device, the electronic device is enabled to execute the charging pile remote upgrade method in any of the above method embodiments, for example, to execute the above described Figure 2 Steps S10 to S50 of the method, Figure 3 Steps S201 to S203 of the method, Figure 4 Steps S201 to S207 of the method, Figure 5 Steps S401 to S403 of the method are implemented Figure 6 The functions of modules 61-65 in.

[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0083] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A charging pile remote upgrade method, characterized in that: include: Obtain the online status of the charging pile and the firmware version of the main control unit motherboard of the charging pile on the server side; Determine whether the charging pile needs to be upgraded according to the firmware version, and if necessary, send an upgrade instruction to the corresponding charging pile; At the charging pile end, download the corresponding firmware upgrade package according to the upgrade instruction, parse the firmware upgrade package, and obtain the corresponding upgrade execution script and upgrade firmware file; Execute an upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script; Record the upgrade result corresponding to the upgrade process, and report the upgrade result to the server.

2. The charging pile remote upgrade method according to claim 1, characterized in that: Before the step of sending the upgrade instruction to the corresponding charging pile, the method further includes: Obtaining a first hardware model of the online charging pile and a corresponding second hardware model of the main control unit motherboard; Query the server according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version; If a corresponding firmware upgrade package exists, the corresponding upgrade instruction is generated according to the package information of the firmware upgrade package.

3. The charging pile remote upgrade method according to claim 2, characterized in that: After the step of querying the server according to the first hardware model and the second hardware model to determine whether there is a firmware upgrade package corresponding to the firmware version, the method further includes: If there is a corresponding firmware upgrade package, generate the corresponding upgrade execution script according to the user terminal program corresponding to the main control unit motherboard, wherein the upgrade execution script is obtained by a pre-set script generation tool; Sending the upgrade execution script and the corresponding firmware upgrade package to a pre-deployed charging pile simulation environment; Execute the upgrade execution script in the charging pile simulation environment to obtain a first simulation upgrade result corresponding to the firmware upgrade package; If the first simulated upgrade result is that the simulated upgrade is successful, then the upgrade execution script is added to the firmware upgrade package.

4. The charging pile remote upgrade method according to claim 1, characterized in that: Before the step of using the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script, the method further includes: Verify the integrity of the firmware upgrade package. If the firmware upgrade package is damaged or loses files during transmission, delete the currently received firmware upgrade package and re-download the corresponding firmware upgrade package according to the upgrade instruction; Check the security of the firmware upgrade package. If the firmware upgrade package contains unsafe code or the digital signature is invalid, delete the currently received firmware upgrade package and re-download the corresponding firmware upgrade package according to the upgrade instruction; If the firmware upgrade package passes the integrity and security check, the firmware upgrade package is backed up to a preset storage location.

5. The charging pile remote upgrade method according to claim 4, characterized in that: After the step of using the upgrade firmware file to execute the upgrade process on the main control unit motherboard according to the upgrade execution script, the method further includes: If the result of the upgrade process is that the upgrade fails, the corresponding backed-up firmware upgrade package is obtained to update the firmware upgrade package that failed in the current upgrade process; The updated firmware upgrade package is used to execute the steps of parsing the firmware upgrade package to obtain the corresponding upgrade execution script and upgrade firmware file to executing the upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script.

6. The charging pile remote upgrade method according to claim 3, characterized in that: After the step of recording the upgrade result corresponding to the upgrade process and reporting the upgrade result to the server, the method further includes: Analyzing the upgrade result; If the upgrade result is an upgrade failure, sending a firmware upgrade package and an upgrade execution script corresponding to the upgrade result to the charging pile simulation environment; Execute the upgrade execution script corresponding to the upgrade failure in the charging pile simulation environment to obtain a second simulation upgrade result of the firmware upgrade package corresponding to the upgrade failure; If the second simulated upgrade result is failure, then generating upgrade warning information including the firmware upgrade package information corresponding to the upgrade failure and the firmware version, and sending the upgrade warning information to a preset information recipient.

7. The charging pile remote upgrade method according to claim 6, characterized in that: After the step of generating the firmware upgrade package information corresponding to the upgrade failure and the upgrade warning information of the firmware version, and sending the upgrade warning information to a preset information recipient, the method further includes: Receiving a newly uploaded firmware upgrade package corresponding to the upgrade failure, wherein the version of the newly uploaded firmware upgrade package is higher than the version of the firmware upgrade package corresponding to the upgrade failure; Using the newly uploaded firmware upgrade package to update the firmware upgrade package corresponding to the upgrade failure; The updated firmware upgrade package is used to execute the steps of sending the upgrade instruction to the corresponding charging pile, recording the upgrade result corresponding to the upgrade process, and reporting the upgrade result to the server.

8. A charging pile remote upgrade device, characterized in that: include: A data acquisition module is used to obtain the online status of the charging pile and the firmware version of the main control unit motherboard of the charging pile on the server side; An upgrade judgment module is used to judge whether the charging pile needs to be upgraded according to the firmware version, and if necessary, send an upgrade instruction to the corresponding charging pile; An upgrade package download module is used to download the corresponding firmware upgrade package according to the upgrade instruction at the charging pile end, parse the firmware upgrade package, and obtain the corresponding upgrade execution script and upgrade firmware file; An upgrade execution module, configured to execute an upgrade process on the main control unit motherboard using the upgrade firmware file according to the upgrade execution script; The upgrade result module is used to record the upgrade result corresponding to the upgrade process and report the upgrade result to the server.

9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the charging pile remote upgrade method according to any one of claims 1 to 7.

10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the charging pile remote upgrade method according to any one of claims 1 to 7.