A method and system for upgrading energy storage terminal software

By performing security certification and control strategy logic upgrades on the energy storage end, combined with the interconnection between the cloud platform and the end platform, the problem of insufficient applicability of software upgrades in the existing technology is solved, and safe operation and all-weather health detection of the energy storage end are achieved, improving Provide user experience and operation and maintenance support.

CN114661316BActive Publication Date: 2024-09-20BEIJING SHENGKE ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011557488.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-09-20
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

When upgrading software, the existing OTA technology based on the cloud platform is limited by the OTA upgrade equipment on the car and mobile phones, so its applicability is small and cannot effectively improve the applicability of software upgrades.

Method used

By implementing security certification at the energy storage end, the firmware is upgraded according to the control strategy logic, and the cloud platform is interconnected with the end platform to achieve all-weather health detection and fault diagnosis at the energy storage end, and provide remote OTA upgrade services, allowing users to choose the upgrade time anytime and anywhere. .

Benefits of technology

It improves the applicability of software upgrades, ensures the safe operation and operation and maintenance support of the energy storage terminal, realizes all-weather health detection and fault warning of the energy storage terminal, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114661316B
    Figure CN114661316B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and system for upgrading software at an energy storage end. The method includes: when receiving an update request, the energy storage end establishes a connection with the OTA service platform and performs security verification with the OTA service platform; the OTA service platform interacts with the TSP platform, obtains the firmware version information of the energy storage end and performs information matching, generates a software upgrade package after successful matching, and sends the software upgrade package to the energy storage end; the energy storage end downloads the software upgrade package, determines whether to execute the software update through the upgrade instruction, and completes the upgrade if the control strategy allows; if not, maintains the previous version; if allowed but a system abnormality occurs during the upgrade process and the upgrade cannot be updated, rolls back to the previous version, and sends the real-time status message and version information of the energy storage end to the TSP platform. Applying the solution provided by the embodiment of the present invention can improve the applicability of software upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software upgrade, and in particular to a method and system for upgrading energy storage terminal software. Background Art

[0002] As the importance of electronics and software increases, the complexity of energy storage has also increased. Now the number of software code lines on the energy storage side has snowballed. From this perspective, companies have put software quality, information security, and remote OTA (Over-the-Air Technology) technology on the table and started to re-examine the entire software and electronic and electrical architecture. In this sense, when serious software failures or vulnerabilities are discovered, how to update the software becomes an urgent problem to be solved.

[0003] The OTA technology based on the cloud platform has the functions of reducing recall costs, quickly responding to safety needs, and improving user experience, and has become an inevitable choice in the future intelligent era. Specifically, the known intelligent iterative control system based on big data includes a cloud platform and a vehicle-side platform. The cloud platform includes a TSP (Telematics Service Provider) platform and an OTA service platform; the TSP platform is used to realize the interconnection between the cloud platform and the mobile phone side, the cloud platform and the vehicle side, and provide vehicle networking services to the mobile phone side, and the OTA service platform is used to provide vehicle networking and OTA upgrade services. However, the above-mentioned OTA technology based on the cloud platform is limited by the OTA upgrade equipment on the vehicle side and the mobile phone side, and can only perform software upgrades on the vehicle side, and has low applicability. Therefore, in order to improve the applicability of software upgrades, a software upgrade method is urgently needed. Summary of the invention

[0004] The present invention provides a method and system for upgrading software at an energy storage terminal to improve the applicability of software upgrading. The specific technical solution is as follows.

[0005] In a first aspect, an embodiment of the present invention provides a method for upgrading software on an energy storage terminal, the method being applied to a software upgrading system, the system comprising a cloud platform and a terminal platform, the cloud platform comprising: a telematics service TSP platform and an over-the-air download OTA service platform, the terminal platform comprising: a smart mobile user terminal and the energy storage terminal; the method comprising:

[0006] The energy storage terminal, when receiving an update request, establishes a connection with the OTA service platform and performs security verification with the OTA service platform; the update request includes one sent directly by the user through the energy storage terminal, or one sent by the user through the smart mobile user terminal after the OTA platform sends an upgrade information prompt to the smart mobile user terminal through the TSP platform;

[0007] The OTA service platform interacts with the TSP platform to obtain the firmware version information of the energy storage terminal and perform information matching. After the matching is successful, a software upgrade package is generated and the software upgrade package is sent to the energy storage terminal;

[0008] The energy storage end downloads the software upgrade package, determines whether to execute the software update through the upgrade instruction, and completes the upgrade if the control strategy allows; if not, maintains the previous version; if allowed but a system abnormality occurs during the upgrade process and the upgrade cannot be updated, rolls back to the previous version, and sends the real-time status message and version information of the energy storage end to the TSP platform;

[0009] The upgrade instruction is used to determine whether to perform the software update. If the control strategy allows, the upgrade is completed, which specifically includes:

[0010] Determining whether the energy storage end is in a working state;

[0011] When the energy storage end is in working state, determine whether the energy storage end has a power-off fault; when the energy storage end does not have a power-off fault, determine whether the data communication is abnormal; when the data communication is not abnormal, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update;

[0012] When the energy storage end is in a non-working state, determine whether the energy storage end has a shutdown or power-off fault; when the energy storage end does not have a shutdown or power-off fault, determine whether the data communication is abnormal, and when the data communication is not abnormal, determine whether to update the power system; when it is determined not to update the power system, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update.

[0013] Optionally, the process of security verification between the energy storage end and the OTA service platform specifically includes:

[0014] The energy storage end receives the energy storage end certificate issued by the public key encryption technology PKI service module, signs the energy storage end certificate and generates a first OTA package and uploads it to the OTA service platform; the first OTA package includes signature verification information;

[0015] The OTA service platform receives the cloud certificate issued by the PKI service module, signs the cloud certificate and generates a second OTA package to be sent to the energy storage terminal; the cloud certificate is issued to the OTA service platform after the PKI service module verifies the authenticity of the first OTA package;

[0016] The energy storage end receives the certificate issued by the PKI service module and installs the second OTA package; the certificate is issued to the energy storage end after the PKI service module verifies the authenticity of the second OTA package.

[0017] Optionally, the method further includes:

[0018] The TSP platform provides the real-time status information of the energy storage terminal to the smart mobile user terminal; the real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information;

[0019] The smart mobile user terminal reserves a firmware upgrade time according to the real-time status information.

[0020] Optionally, the method further includes:

[0021] The energy storage end, after completing the current OTA upgrade, detects whether a person operates the energy storage end within a preset time and whether there is electrical consumption;

[0022] When no one operates the energy storage end within a preset time and there is no electrical consumption, the controller controlling itself enters active sleep and the entire vehicle is powered off.

[0023] Optionally, the energy storage end includes: a battery management system BMS or a charging pile.

[0024] In a second aspect, an embodiment of the present invention provides a system for upgrading software of an energy storage terminal, the system comprising a cloud platform and a terminal platform, the cloud platform comprising: a telematics service TSP platform and an over-the-air download OTA service platform, the terminal platform comprising: an intelligent mobile user terminal and the energy storage terminal;

[0025] The energy storage end is used to establish a connection with the OTA service platform and perform security verification with the OTA service platform when receiving an update request; the update request includes one sent directly by the user through the energy storage end, or one sent by the user through the smart mobile user end after the OTA platform sends an upgrade information prompt to the smart mobile user end through the TSP platform;

[0026] The OTA service platform is used to interact with the TSP platform, obtain the firmware version information of the energy storage terminal and perform information matching, and after successful matching, generate a software upgrade package and send the software upgrade package to the energy storage terminal;

[0027] The energy storage end is also used to download the software upgrade package, and determine whether to execute the software update through the upgrade instruction. If the control strategy allows, the upgrade is completed; if not, the previous version is maintained; if it is allowed but a system abnormality occurs during the upgrade process, resulting in the inability to update the upgrade, it rolls back to the previous version, and sends the real-time status message and version information of the energy storage end to the TSP platform;

[0028] The energy storage end determines whether to execute the software update through the upgrade instruction. If the control strategy allows, when the upgrade is completed, it is specifically used to:

[0029] Determining whether the energy storage end is in a working state;

[0030] When the energy storage end is in working state, determine whether the energy storage end has a power-off fault; when the energy storage end does not have a power-off fault, determine whether the data communication is abnormal; when the data communication is not abnormal, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update;

[0031] When the energy storage end is in a non-working state, determine whether the energy storage end has a shutdown or power-off fault; when the energy storage end does not have a shutdown or power-off fault, determine whether the data communication is abnormal, and when the data communication is not abnormal, determine whether to update the power system; when it is determined not to update the power system, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update.

[0032] Optionally, when the energy storage end performs security verification with the OTA service platform, the energy storage end is specifically used to receive the energy storage end certificate issued by the public key encryption technology PKI service module, sign the energy storage end certificate and generate a first OTA package and upload it to the OTA service platform; the first OTA package includes signature verification information;

[0033] The OTA service platform is specifically used to receive the cloud certificate issued by the PKI service module, sign the cloud certificate and generate a second OTA package to send to the energy storage end; the cloud certificate is issued to the OTA service platform after the PKI service module verifies the authenticity of the first OTA package;

[0034] The energy storage end is also used to receive the certificate issued by the PKI service module and install the second OTA package; the certificate is issued to the energy storage end after the PKI service module verifies the authenticity of the second OTA package.

[0035] Optionally, the TSP platform is used to provide the smart mobile user terminal with real-time status information of the energy storage terminal; the real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information;

[0036] The smart mobile user terminal is used to reserve a firmware upgrade time according to the real-time status information.

[0037] Optionally, the energy storage end is also used to detect whether anyone operates the energy storage end within a preset time and whether there is electrical consumption after completing the current OTA upgrade; when no one operates the energy storage end within the preset time and there is no electrical consumption, the controller itself is controlled to enter active sleep and the entire vehicle is powered off.

[0038] Optionally, the energy storage end includes: a battery management system BMS or a charging pile.

[0039] From the above content, it can be seen that the energy storage end software upgrade method and system provided by the embodiment of the present invention can first perform security authentication on the energy storage end, and after the authentication is passed, if the control strategy allows, perform firmware upgrade according to the control strategy logic of its controller. Since the control strategy is formulated in detail and the control strategy is applicable to all energy storage ends, the firmware upgrade can be performed for any energy storage controller, which improves the applicability of the software upgrade. Of course, implementing any product or method of the present invention does not necessarily need to achieve all the advantages described above at the same time.

[0040] The innovative features of the embodiments of the present invention include:

[0041] 1. First, the energy storage end is authenticated for security, and after the authentication is passed, if the control strategy allows, the firmware is upgraded according to the control strategy logic of its controller. Since the control strategy is formulated in detail and is applicable to all energy storage ends, the firmware can be upgraded for any energy storage controller, which improves the applicability of software upgrades.

[0042] 2. The smart mobile user terminal remotely controls the energy storage terminal to perform OTA upgrades, allowing users to choose the upgrade time anytime and anywhere through the smart mobile user terminal.

[0043] 3. Through the interconnection between the cloud platform and the terminal platform, the health detection of the energy storage terminal can be realized around the clock and throughout the life cycle. The fault information can be diagnosed and warned in real time to provide support for operation and maintenance personnel and ensure the safe operation of the energy storage terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work.

[0045] Figure 1 A schematic diagram of a flow chart of a method for upgrading software of an energy storage terminal provided by an embodiment of the present invention;

[0046] Figure 2 This is a schematic diagram of a specific process of vehicle-side OTA upgrade in an embodiment of the present invention;

[0047] Figure 3 A schematic diagram of the structure of the energy storage terminal software upgrade system provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0049] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0050] The embodiment of the present invention discloses a method and system for upgrading software of an energy storage terminal, which can improve the applicability of software upgrading. The embodiment of the present invention is described in detail below.

[0051] Figure 1 A flow chart of a method for upgrading the energy storage terminal software provided by an embodiment of the present invention. The method is applied to a software upgrade system, which may include a cloud platform and a terminal platform, the cloud platform includes: a remote information service TSP platform and an over-the-air download OTA service platform, and the terminal platform includes: an intelligent mobile user terminal and an energy storage terminal. The method specifically includes the following steps.

[0052] S110: When the energy storage end receives an update request, it establishes a connection with the OTA service platform and performs security verification with the OTA service platform; the update request includes one sent directly by the user through the energy storage end, or one sent by the user through the smart mobile user end after the OTA platform sends an upgrade information prompt to the smart mobile user end through the TSP platform.

[0053] In an embodiment of the present invention, the TSP platform can realize the interconnection between the smart mobile user terminal and the energy storage terminal, and can provide the smart mobile user terminal with real-time status information of the energy storage terminal, such as: energy storage terminal fault status information push, energy storage terminal firmware upgrade information push, etc.; the OTA service platform is used to provide energy storage terminal firmware upgrade services, which are used to generate firmware update packages. The OTA service platform interacts with the TSP platform to obtain energy storage terminal device information. The OTA platform can also send energy storage terminal upgrade information prompts to the smart mobile user terminal through the TSP platform. Users can obtain the energy storage terminal firmware version update status at any time and any place, so that the smart mobile user terminal can send an upgrade request to the cloud platform.

[0054] The energy storage end may be any energy storage device, for example, may include: a BMS (Battery Management System) or a charging pile, etc., which is not limited in the embodiment of the present invention.

[0055] Specifically, the energy storage end can be initialized first, and the energy storage end controller enters the waiting for update state through direct user operation or remote wake-up of the cloud platform. Thereafter, when an update request is received, the software is upgraded.

[0056] In one implementation, the energy storage end and the process of security verification with the OTA service platform may specifically include: the energy storage end receives the energy storage end certificate issued by the PKI (Public Key Infrastructure) service module, signs the energy storage end certificate and generates a first OTA package and uploads it to the OTA service platform; the first OTA package includes signature verification information; the OTA service platform receives the cloud certificate issued by the PKI service module, signs the cloud certificate and generates a second OTA package and sends it to the energy storage end; the cloud certificate is issued to the OTA service platform after the PKI service module verifies the authenticity of the first OTA package; the energy storage end receives the certificate issued by the PKI service module and installs the second OTA package; the certificate is issued to the energy storage end after the PKI service module verifies the authenticity of the second OTA package.

[0057] S120: OTA service platform interacts with the TSP platform to obtain the firmware version information of the energy storage end and perform information matching. After the matching is successful, a software upgrade package is generated and sent to the energy storage end.

[0058] The above firmware version information may be information such as the current software version number and version source of the energy storage terminal, which is not limited in the embodiment of the present invention.

[0059] S130: The energy storage end downloads the software upgrade package and determines whether to execute the software update through the upgrade instruction. If the control strategy allows, the upgrade is completed; if not, the previous version is maintained; if allowed but a system abnormality occurs during the upgrade and the upgrade cannot be updated, it rolls back to the previous version and sends the real-time status message and version information of the energy storage end to the TSP platform.

[0060] Among them, the energy storage end determines whether to execute the software update through the upgrade instruction, and completes the upgrade and update if the control strategy allows it, which specifically includes: determining whether the energy storage end is in a working state; when the energy storage end is in a working state, determining whether the energy storage end has a power-off fault; when the energy storage end does not have a power-off fault, determining whether the data communication is abnormal; when the data communication is not abnormal, determining whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determining that the control strategy allows it and completing the upgrade and update; when the energy storage end is in a non-working state, determining whether the energy storage end has a stop operation or power-off fault; when the energy storage end does not have a stop operation or power-off fault, determining whether the data communication is abnormal, and when the data communication is not abnormal, determining whether to update the power system; when it is determined not to update the power system, determining whether the battery power is greater than the preset threshold; when the battery power is greater than the preset threshold, determining that the control strategy allows it and completing the upgrade and update.

[0061] The above-mentioned preset threshold value can be set according to actual conditions. For example, the specific value of the above-mentioned preset threshold value can be set according to the time required for software upgrade. The embodiment of the present invention does not limit its specific value.

[0062] Optionally, after completing the current OTA upgrade, the energy storage end can also detect whether there is someone operating the energy storage end within the preset time and whether there is electrical consumption; if no one operates the energy storage end within the preset time and there is no electrical consumption, the controller of the vehicle will be controlled to enter active sleep and the vehicle will be powered off. In this way, power consumption can be reduced and energy consumption can be saved.

[0063] In one implementation, the TSP platform can also provide the smart mobile user terminal with real-time status information of the energy storage terminal; the real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information; the smart mobile user terminal can make an appointment for the firmware upgrade time based on the real-time status information.

[0064] The smart mobile user terminal remotely controls the energy storage terminal to perform OTA upgrades, and the smart mobile user terminal allows users to choose the upgrade time anytime and anywhere. In addition, through the interconnection between the cloud platform and the terminal platform, the energy storage terminal can be tested around the clock and throughout its life cycle, and its fault information can be diagnosed and warned in real time, providing support for operation and maintenance personnel, while ensuring the safe operation of the energy storage terminal.

[0065] From the above content, it can be seen that in this embodiment, the energy storage end can be firstly authenticated for security, and after the authentication is passed, if the control strategy allows, the firmware can be upgraded according to the control strategy logic of its controller. Since the control strategy is formulated in detail and is applicable to all energy storage ends, the firmware can be upgraded for any energy storage controller, which improves the applicability of software upgrades.

[0066] The following is a detailed description of the embodiment of the present invention by taking vehicle-side OTA upgrade as an example in conjunction with a specific embodiment.

[0067] like Figure 2 As shown in the figure, the specific process of vehicle-side OTA upgrade includes the following steps:

[0068] Step 1: The vehicle is powered on and initialized. The vehicle is awakened directly by the user or remotely by the cloud platform, and the vehicle controller enters the waiting-for-update state.

[0069] Step 2: The vehicle-side and cloud platform establish a network connection and pass security authentication to ensure the confidentiality and integrity of the OTA package during the transmission process. The system mainly consists of the PKI service module issuing a certificate to the vehicle-side module through the certificate issuance module. The vehicle-side module supplies the OTA package signature and uploads it to the OTA service module. The PKI service module verifies the authenticity of the OTA package through the signature verification module and issues a certificate to the OTA service module. The OTA service module signs the OTA package and sends it to the vehicle-side wireless / 4G module. The PKI service module verifies the authenticity of the OTA package through the signature verification module and issues a certificate to the wireless / 4G module. The wireless / 4G module installs the OTA package.

[0070] Step 3: The vehicle sends the firmware version information to the cloud platform for information matching. If the match is successful, the software upgrade package is downloaded. If the match is unsuccessful, the upgrade is terminated.

[0071] Step 4: After the vehicle successfully downloads the software upgrade package, the BMS controller uses the upgrade command to determine whether to execute the software update. If the control strategy allows, the upgrade is completed. If not, the vehicle firmware maintains the previous version. If allowed but a system abnormality occurs during the upgrade and the upgrade cannot be updated, the vehicle firmware rolls back to the previous version and sends the vehicle's real-time status message and version information to the cloud platform.

[0072] Specifically, it can be determined first whether the vehicle is in a static state.

[0073] When the vehicle is static, determine whether the vehicle has a high-voltage power-off fault; if there is a high-voltage power-off fault, the firmware rolls back to the previous version; if there is no high-voltage power-off fault, continue to determine whether the Can communication is overloaded; if the communication is overloaded, the firmware rolls back to the previous version; if the communication is not overloaded, determine whether the battery SOC (State of charge) is greater than a certain value; if the battery SOC is greater than a certain value, upgrade the firmware; if the battery SOC is not greater than a certain value, the firmware rolls back to the previous version.

[0074] When the vehicle is not static, determine whether the vehicle has power interruption or high-voltage power failure; if there is power interruption or high-voltage power failure, the firmware rolls back to the previous version; if there is no power interruption or high-voltage power failure, continue to determine whether the Can communication is overloaded; if the communication is overloaded, the firmware rolls back to the previous version; if the communication is not overloaded, determine whether to update the power system; if it is determined to update the power system, the firmware rolls back to the previous version; if it is determined not to update the power system, determine whether the battery SOC is greater than a certain value; if the battery SOC is greater than a certain value, perform a firmware upgrade; if the battery SOC is not greater than a certain value, the firmware rolls back to the previous version.

[0075] In addition, after each firmware rollback to the previous version and after a firmware upgrade, the wireless / 4G module can be fed back to upload the current status to the cloud.

[0076] Step 5: The cloud platform can remind users of messages in real time and remotely control the upgrade of vehicle-side firmware through intelligent mobile user-side interconnection. Users can make an appointment for firmware upgrade based on the vehicle and their own situation.

[0077] Step 6: If the current OTA upgrade is completed, the controller will enter active sleep mode and the vehicle will be powered off if there is no human operation or electrical consumption on the vehicle-side equipment within a certain period of time.

[0078] Figure 3 A schematic diagram of a system for upgrading software at an energy storage terminal provided by an embodiment of the present invention, wherein the system comprises a cloud platform 310 and a terminal platform 320, wherein the cloud platform 310 comprises: a telematics service TSP platform 311 and an over-the-air download OTA service platform 312, and the terminal platform 320 comprises: an intelligent mobile user terminal 321 and an energy storage terminal 322;

[0079] The energy storage terminal 322 is used to establish a connection with the OTA service platform 312 and perform security verification with the OTA service platform 312 when receiving an update request; the update request includes a request sent directly by the user through the energy storage terminal, or a request sent by the user through the smart mobile user terminal 321 after the OTA platform 312 sends an upgrade information prompt to the smart mobile user terminal 321 through the TSP platform 311;

[0080] The OTA service platform 312 is used to interact with the TSP platform 311, obtain the firmware version information of the energy storage terminal 322 and perform information matching. After the matching is successful, a software upgrade package is generated and the software upgrade package is sent to the energy storage terminal 322;

[0081] The energy storage end 322 is also used to download the software upgrade package, and determine whether to execute the software update through the upgrade instruction. If the control strategy allows, the upgrade is completed; if not, the previous version is maintained; if it is allowed but a system abnormality occurs during the upgrade process, resulting in the inability to update the upgrade, the previous version is rolled back, and the real-time status message and version information of the energy storage end are sent to the TSP platform 311;

[0082] The energy storage end 322 determines whether to execute the software update through the upgrade instruction. If the control strategy allows, when the upgrade is completed, it is specifically used to:

[0083] Determining whether the energy storage end is in a working state;

[0084] When the energy storage end 322 is in working state, it is determined whether the energy storage end 322 has a power-off fault; when the energy storage end 322 does not have a power-off fault, it is determined whether the data communication is abnormal; when the data communication is not abnormal, it is determined whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, it is determined that the control strategy allows, and the upgrade is completed;

[0085] When the energy storage end 322 is in a non-working state, determine whether the energy storage end 322 has a shutdown or power-off fault; when the energy storage end 322 does not have a shutdown or power-off fault, determine whether the data communication is abnormal, and when the data communication is not abnormal, determine whether to update the power system; when it is determined not to update the power system, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update.

[0086] Optionally, when the energy storage end 322 performs security verification with the OTA service platform 312, the energy storage end 322 is specifically used to receive the energy storage end certificate issued by the public key encryption technology PKI service module, sign the energy storage end certificate and generate a first OTA package and upload it to the OTA service platform 312; the first OTA package includes signature verification information;

[0087] The OTA service platform 312 is specifically used to receive the cloud certificate issued by the PKI service module, sign the cloud certificate and generate a second OTA package to be sent to the energy storage end 322; the cloud certificate is issued to the OTA service platform 312 after the PKI service module verifies the authenticity of the first OTA package;

[0088] The energy storage end 322 is also used to receive the certificate issued by the PKI service module and install the second OTA package; the certificate is issued to the energy storage end 322 after the PKI service module verifies the authenticity of the second OTA package.

[0089] Optionally, the TSP platform 311 is used to provide the smart mobile user terminal 321 with real-time status information of the energy storage terminal 322; the real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information;

[0090] The smart mobile client 321 is used to reserve a firmware upgrade time according to the real-time status information.

[0091] Optionally, the energy storage end 322 is also used to detect whether anyone operates the energy storage end 322 within a preset time and whether there is electrical consumption after completing the current OTA upgrade; when no one operates the energy storage end 322 within the preset time and there is no electrical consumption, the controller itself is controlled to enter active sleep and the entire vehicle is powered off.

[0092] Optionally, the energy storage end 322 includes: a battery management system BMS or a charging pile.

[0093] From the above content, it can be seen that in this embodiment, the energy storage end can be firstly authenticated for security, and after the authentication is passed, if the control strategy allows, the firmware can be upgraded according to the control strategy logic of its controller. Since the control strategy is formulated in detail and is applicable to all energy storage ends, the firmware can be upgraded for any energy storage controller, which improves the applicability of software upgrades.

[0094] The above system embodiment corresponds to the method embodiment and has the same technical effect as the method embodiment. For specific description, please refer to the method embodiment. The system embodiment is obtained based on the method embodiment. For specific description, please refer to the method embodiment part, which will not be repeated here.

[0095] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0096] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for upgrading software at an energy storage terminal, characterized in that: The method is applied to a software upgrade system, the system includes a cloud platform and a terminal platform, the cloud platform includes: a telematics service TSP platform and an over-the-air download OTA service platform, the terminal platform includes: an intelligent mobile user terminal and the energy storage terminal; the method includes: The energy storage terminal, when receiving an update request, establishes a connection with the OTA service platform and performs security verification with the OTA service platform; the update request includes one sent directly by the user through the energy storage terminal, or one sent by the user through the smart mobile user terminal after the OTA platform sends an upgrade information prompt to the smart mobile user terminal through the TSP platform; The OTA service platform interacts with the TSP platform to obtain the firmware version information of the energy storage terminal and perform information matching. After the matching is successful, a software upgrade package is generated and the software upgrade package is sent to the energy storage terminal; The energy storage end downloads the software upgrade package, determines whether to execute the software update through the upgrade instruction, and completes the upgrade if the control strategy allows; if not, maintains the previous version; if allowed but a system abnormality occurs during the upgrade process and the upgrade cannot be updated, rolls back to the previous version, and sends the real-time status message and version information of the energy storage end to the TSP platform; The upgrade instruction is used to determine whether to perform the software update. If the control strategy allows, the upgrade is completed, which specifically includes: Determining whether the energy storage end is in a working state; When the energy storage end is in working state, determine whether the energy storage end has a power-off fault; when the energy storage end does not have a power-off fault, determine whether the data communication is abnormal; when the data communication is not abnormal, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update; When the energy storage end is in a non-working state, determine whether the energy storage end has a shutdown or power-off fault; when the energy storage end does not have a shutdown or power-off fault, determine whether the data communication is abnormal, and when the data communication is not abnormal, determine whether to update the power system; when it is determined not to update the power system, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update.

2. The method according to claim 1, characterized in that The process of security verification between the energy storage end and the OTA service platform specifically includes: The energy storage end receives the energy storage end certificate issued by the public key encryption technology PKI service module, signs the energy storage end certificate and generates a first OTA package and uploads it to the OTA service platform; the first OTA package includes signature verification information; The OTA service platform receives the cloud certificate issued by the PKI service module, signs the cloud certificate and generates a second OTA package to be sent to the energy storage terminal; the cloud certificate is issued to the OTA service platform after the PKI service module verifies the authenticity of the first OTA package; The energy storage end receives the certificate issued by the PKI service module and installs the second OTA package; the certificate is issued to the energy storage end after the PKI service module verifies the authenticity of the second OTA package.

3. The method according to claim 1, characterized in that The method further comprises: The TSP platform provides the real-time status information of the energy storage terminal to the smart mobile user terminal; the real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information; The smart mobile user terminal reserves a firmware upgrade time according to the real-time status information.

4. The method according to claim 1, characterized in that: The method further comprises: The energy storage end, after completing the current OTA upgrade, detects whether a person operates the energy storage end within a preset time and whether there is electrical consumption; When no one operates the energy storage end within a preset time and there is no electrical consumption, the controller controlling itself enters active sleep and the entire vehicle is powered off.

5. The method according to any one of claims 1 to 4, characterized in that: The energy storage end includes: a battery management system BMS or a charging pile.

6. A storage terminal software upgrade system, characterized in that: The system includes a cloud platform and a terminal platform, wherein the cloud platform includes a telematics service TSP platform and an over-the-air download OTA service platform, and the terminal platform includes an intelligent mobile user terminal and the energy storage terminal; The energy storage end is used to establish a connection with the OTA service platform and perform security verification with the OTA service platform when receiving an update request; the update request includes one sent directly by the user through the energy storage end, or one sent by the user through the smart mobile user end after the OTA platform sends an upgrade information prompt to the smart mobile user end through the TSP platform; The OTA service platform is used to interact with the TSP platform, obtain the firmware version information of the energy storage terminal and perform information matching, and after successful matching, generate a software upgrade package and send the software upgrade package to the energy storage terminal; The energy storage end is also used to download the software upgrade package, and determine whether to execute the software update through the upgrade instruction. If the control strategy allows, the upgrade is completed; if not, the previous version is maintained; if it is allowed but a system abnormality occurs during the upgrade process, resulting in the inability to update the upgrade, it rolls back to the previous version, and sends the real-time status message and version information of the energy storage end to the TSP platform; The energy storage end determines whether to execute the software update through the upgrade instruction. If the control strategy allows, when the upgrade is completed, it is specifically used to: Determining whether the energy storage end is in a working state; When the energy storage end is in working state, determine whether the energy storage end has a power-off fault; when the energy storage end does not have a power-off fault, determine whether the data communication is abnormal; when the data communication is not abnormal, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update; When the energy storage end is in a non-working state, determine whether the energy storage end has a shutdown or power-off fault; when the energy storage end does not have a shutdown or power-off fault, determine whether the data communication is abnormal, and when the data communication is not abnormal, determine whether to update the power system; when it is determined not to update the power system, determine whether the battery power is greater than a preset threshold; when the battery power is greater than the preset threshold, determine that the control strategy allows, and complete the upgrade and update.

7. The system according to claim 6, characterized in that When the energy storage end performs security verification with the OTA service platform, the energy storage end is specifically used to receive the energy storage end certificate issued by the public key encryption technology PKI service module, sign the energy storage end certificate and generate a first OTA package and upload it to the OTA service platform; the first OTA package includes signature verification information; The OTA service platform is specifically used to receive the cloud certificate issued by the PKI service module, sign the cloud certificate and generate a second OTA package to send to the energy storage end; the cloud certificate is issued to the OTA service platform after the PKI service module verifies the authenticity of the first OTA package; The energy storage end is also used to receive the certificate issued by the PKI service module and install the second OTA package; the certificate is issued to the energy storage end after the PKI service module verifies the authenticity of the second OTA package.

8. The system according to claim 6, characterized in that The TSP platform is used to provide the real-time status information of the energy storage terminal to the smart mobile user terminal; The real-time status information includes: energy storage terminal fault status information, and / or energy storage terminal firmware upgrade information; The smart mobile user terminal is used to reserve a firmware upgrade time according to the real-time status information.

9. The system according to claim 6, characterized in that The energy storage end is also used to detect whether anyone operates the energy storage end within a preset time and whether there is electrical consumption after completing the current OTA upgrade; when no one operates the energy storage end within the preset time and there is no electrical consumption, the controller itself is controlled to enter active sleep and the entire vehicle is powered off.

10. The system according to any one of claims 6 to 9, characterized in that: The energy storage end includes: a battery management system BMS or a charging pile.