Battery online upgrade control method and device, electronic equipment and storage medium
Obtaining and subcontracting upgrade packages through the online upgrade platform solves the problems of time-consuming and low success rate of traditional battery management platform upgrades, realizes efficient online upgrade of the battery platform, and improves the operation and maintenance efficiency and stability of the energy storage system.
Patent Information
- Application Number
- CN202410677030.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-27
AI Technical Summary
The upgrade method of traditional battery management platforms consumes time and human resources, is prone to loss of upgrade packages due to interference, has a low success rate, and affects the operation and maintenance efficiency of the energy storage system.
Obtain the target upgrade package through the online upgrade platform, sub-package and send it to the battery platform. The delivery status is determined based on the number of sub-package retransmissions. After successful transmission, an upgrade command is sent for upgrade to ensure the stability and success rate of the battery platform.
It improves the success rate of online upgrades of the battery platform and the operation and maintenance efficiency of the energy storage system, avoids system crashes caused by upgrade failures, and enhances the stability of the upgrade process.
Smart Images

Figure CN118550564A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of wireless communication technology, and in particular, to a battery online upgrade control method, device, electronic device, and storage medium. Background Art
[0002] With the country's reform of the energy structure and the market's recognition of electrochemical energy storage, the technology in the field of new energy storage is developing rapidly, and the importance of energy storage battery management systems is becoming increasingly prominent. After the energy storage system is delivered, in order to ensure the stable operation of the energy storage system and the timely optimization of its performance, it is necessary to upgrade the software program of the battery management platform to optimize the performance of the energy storage product. The traditional way to upgrade the battery management platform is generally to have after-sales maintenance personnel go to the project site and upgrade the battery management system program through a dedicated upgrade host computer. This is not only very time-consuming and human resource-intensive, but also the program upgrade of the traditional battery management platform is prone to cause the upgrade package to be lost when disturbed, resulting in program upgrade failure, which makes the battery platform upgrade success rate low and the operation and maintenance efficiency of the entire energy storage system low. Summary of the invention
[0003] The embodiments of this specification provide a battery online upgrade control method, device, electronic device and storage medium, and the technical solution is as follows: In a first aspect, an embodiment of the present specification provides a battery online upgrade control method, the method comprising: Obtain a target upgrade package from the online upgrade platform, and determine parameter information of the target upgrade package; Sub-packaging the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and sending each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; Determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages; After the sending status is characterized as sending successfully, an upgrade instruction is sent to the battery platform, where the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
[0004] In a second aspect, a battery online upgrade control device is provided, the device comprising: An acquisition module, used to acquire a target upgrade package from an online upgrade platform and determine parameter information of the target upgrade package; A sending module, configured to sub-package the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and send each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; A determination module, configured to determine a sending status of the target upgrade package based on a number of retransmissions of each upgrade package; The upgrade module is used to send an upgrade instruction to the battery platform after the sending status is characterized as successful sending, and the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
[0005] In a third aspect, an electronic device is provided, including a device processor and a memory; The device processor is connected to the memory; The memory is used to store executable program code; The device processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method provided in the first aspect or any possible implementation manner of the first aspect.
[0006] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer-readable storage medium stores instructions, which, when the instructions are executed on a computer or a device processor, cause the computer or the device processor to execute the method provided in the first aspect or any possible implementation of the first aspect.
[0007] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In one or more embodiments of the present specification, a target upgrade package is obtained from an online upgrade platform, and is sub-packaged based on the parameter information of the target upgrade package. Then, each upgrade sub-package is sent to the battery platform, and the sending status of the target upgrade package is determined based on the number of sub-package retransmissions of each upgrade sub-package. After the sending status is characterized as successful sending, an upgrade instruction is sent to the battery platform to control the battery platform to complete the online upgrade. By obtaining the target upgrade package online, the waste of resources for manual offline upgrades is avoided. At the same time, by sending the target upgrade package in sub-packages and retransmitting it when the sending fails, the problem of upgrade failure caused by other interference is solved, and the success rate of the online upgrade of the battery platform and the operation and maintenance efficiency of the energy storage system are improved. Furthermore, a program running area and a program temporary storage area are set in the battery system to separate the historical program from the target upgrade program, thereby avoiding the problem of battery energy storage system crash caused by upgrade failure and improving the stability of the entire battery energy storage system during the upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0009] Figure 1 A schematic diagram of the system architecture of a battery online upgrade control method provided in an embodiment of this specification; Figure 2 A flowchart of a battery online upgrade control method provided in an embodiment of this specification; Figure 3 A schematic diagram of the structure of a battery online upgrade control device provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0010] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0011] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0012] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.
[0013] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of a battery online upgrade control method provided in an embodiment of this specification is shown.
[0014] like Figure 1As shown, the system architecture of the battery online upgrade control method may include at least a battery platform 10 , an inverter platform 20 and a network 30 .
[0015] The battery platform 10 includes but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc. Optionally, the battery platform 10 provides the user with a battery online upgrade control service. The battery platform 10 may obtain the battery online upgrade control instruction of the application program interface and send a battery online upgrade control request to the inverter platform 20.
[0016] The inverter platform 20 can provide background services for the battery platform 10. According to the battery online upgrade control request sent by the battery platform 10, the inverter platform 20 will obtain a series of battery online upgrade control instructions, and the inverter platform 20 will transmit the battery online upgrade control instructions to other battery platforms 10 through the network 30. Specifically, the inverter platform 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, 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, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0017] The network 30 is used as a medium for providing a communication link between the battery platform 10 and the inverter platform 20. The network 30 may include various connection types, such as wired, wireless communication links, or optical fiber cables.
[0018] In addition, it should be noted that Figure 1 What is shown is only one system provided by the present disclosure. In practical applications, other systems may also be included, for example, more battery platforms may be included.
[0019] In the embodiments of this specification, the battery platform 10 and the inverter platform 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure.
[0020] See next Figure 2 , Figure 2 The overall flow chart of a battery online upgrade control method provided in an embodiment of the present specification is shown. The battery online upgrade control method can be used in the inverter platform 20.
[0021] like Figure 2 As shown, the battery online upgrade control method may at least include the following steps: Step 201: Obtain a target upgrade package from an online upgrade platform, and determine parameter information of the target upgrade package.
[0022] In the embodiment of this specification, the entire battery energy storage system includes an online upgrade platform, an inverter platform and a battery platform. In order to perform online upgrades on the battery platform, the inverter platform can connect to the online upgrade platform through a WiFi unit to obtain the target upgrade package sent by the online upgrade platform. Then, the parameter information such as the number of upgrade package sub-packages, the size of the upgrade package, and the upgrade package label corresponding to the target upgrade package is determined through message communication.
[0023] In one possible implementation, before determining the parameter information of the target upgrade package, the method further includes: Determine the upgrade version and upgrade conditions of the battery platform and obtain determination information; After the judgment message satisfies the judgment condition, determining foolproof information and firmware information of the target upgrade package; Verifying the foolproof information and the firmware information to obtain verification information; The determining of parameter information of the target upgrade package includes: After the verification information satisfies the verification condition, parameter information of the target upgrade package is determined.
[0024] In the embodiment of the present specification, before determining the parameter information of the target upgrade package, it is necessary to first perform a series of verification and judgment on the battery platform and the target upgrade package, and then perform subsequent processing operations after the verification and judgment conditions are met. First, determine whether the running version number of the battery platform and the target version number to be upgraded are consistent with the project number of this upgrade processing operation to ensure the accuracy of the upgrade object. Then, determine whether the battery platform meets the upgrade conditions, that is, whether the battery platform hardware configuration can run the target upgrade package program. When all the judgment information is characterized as meeting the judgment conditions, that is, the upgrade versions are consistent, and the upgrade conditions are met, the foolproof information and firmware information of the target upgrade package are further determined, wherein the foolproof information is generally the English letters of the battery brand, which is set in the header of the upgrade package, and the firmware information is generally the size of the upgrade firmware, which is set after the foolproof information. Finally, the determined foolproof information and firmware information are verified, and when the verification information is verified, that is, the verification conditions are met, the subsequent processing operations are performed.
[0025] In one possible implementation manner, obtaining a target upgrade package from an online upgrade platform and determining parameter information of the target upgrade package includes: A target upgrade package matching the upgrade version is searched from the online upgrade platform, and parameter information of the target upgrade package is read, wherein the parameter information includes size information and sub-packaging information.
[0026] In the embodiment of the present specification, when the inverter obtains the target upgrade package from the online upgrade platform through the WiFi unit, since the online upgrade platform may include upgrade packages of multiple upgrade versions, the upgrade version of the battery platform can be determined first, and then the target upgrade package matching the upgrade version in the online upgrade platform can be queried. Then, the parameter information of the target upgrade package is read through the message communication method, wherein the parameter information includes the size information of the target upgrade package and the number of sub-packages of the target upgrade package, i.e., the sub-package information.
[0027] As an example, when communicating through messages, through message ID 0x1185, Byte0 is 1, indicating the first step of the upgrade, Byte1-Byte4 indicate the upgrade package size and sub-packaging information, and Byte5-Byte7 are not used and are 0.
[0028] Step 202: Sub-packaging the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and sending each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size.
[0029] In the embodiment of this specification, after determining the parameter information of the target upgrade package, the subpackaging scheme, that is, the number of all upgrade subpackaging and the data size of each upgrade subpackaging, can be determined according to the size information and subpackaging information in the parameter information. Then, the target upgrade package is split based on the subpackaging scheme to obtain multiple upgrade subpackaging. Furthermore, the inverter platform subpackaging these upgrade subpackaging in sequence and sending them to the battery platform.
[0030] Among them, a preset size can be specified before subpackaging, and the size of each upgrade subpackaging data after subpackaging cannot exceed the preset size, so as to avoid the phenomenon of data loss and upgrade failure caused by setting the upgrade subpackaging size too large.
[0031] As an example, when sending sub-packets, the battery platform will give feedback on the receiving status after receiving each upgrade sub-packet. When the reply is 1, it means that the reception is normal, and when the reply is 0, it means that the reception is abnormal.
[0032] In one possible implementation, sending each of the upgrade subpackages to the battery platform includes: Determine the sending order of each of the upgrade sub-packages, and send the upgrade sub-package with the highest current ranking to the battery platform; After each upgrade sub-package is sent successfully, the next upgrade sub-package is sent to the battery platform based on the sending order.
[0033] In an embodiment of the present specification, when the inverter platform sends each upgrade sub-package to the battery platform, it can first determine the sending order of each upgrade sub-package based on the arrangement order of the position of each upgrade sub-package in the target upgrade package. Then, based on the sending order, each upgrade sub-package is sent to the battery platform in sequence, wherein when sending, the upgrade sub-package with the highest ranking is sent first, that is, the upgrade sub-package that is closest to the packet header. During the sending process, if the previous upgrade sub-package fails to be sent, the next upgrade sub-package cannot be sent. The previous upgrade sub-package can be resent when the sending fails, but the number of retransmissions cannot exceed the preset number. When the upgrade sub-package is sent successfully, the next upgrade sub-package is sent to the battery platform based on the sending order.
[0034] The inverter platform will receive a feedback confirmation signal each time it sends an upgrade sub-package. When it receives a reply of 1, it indicates that the transmission is normal. When it receives a reply of 0, it indicates that the transmission fails.
[0035] Step 203: Determine the sending status of the target upgrade package based on the number of retransmissions of each upgrade package.
[0036] In the embodiment of this specification, when the inverter platform sends each upgrade sub-package, if the transmission is successful, it will continue to send the next upgrade sub-package. If the transmission fails, the upgrade sub-package can be resent, and the number of sub-package retransmissions of the upgrade sub-package is counted. Then, the transmission status of the upgrade sub-package is determined by the number of sub-package retransmissions. When all upgrade sub-packages are successfully sent, the transmission status of the target upgrade package can be determined.
[0037] In one possible implementation, the determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages includes: For any of the upgrade subpackages, after the upgrade subpackage fails to be sent, resend the upgrade subpackage that failed to be sent, and count the number of resending times corresponding to the upgrade subpackage; The retransmission number is compared with a preset maximum retransmission number, and a sending status of the target upgrade package is determined based on the comparison result.
[0038] In the embodiment of the present specification, for any upgrade sub-package, when the sub-package is sent, the sending status of the previous upgrade sub-package will be determined first, and then it will be decided whether to send the next upgrade sub-package. If the previous upgrade sub-package is sent and the feedback is sent as failure, in order to increase the upgrade success rate, the inverter platform can resend the upgrade sub-package that failed to send. If the resending fails, the next round will continue to resend, and the number of resending of the upgrade sub-package will be counted. Then, when the upgrade sub-package is resent, a maximum number of resending can be preset, and the counted number of resending is compared with the maximum number of resending. When the number of resending is greater than the maximum number of resending, it is characterized as the failure of the upgrade sub-package to send, and the current sending and subsequent other upgrade sub-packages are stopped. It is determined that the sending status of this target upgrade package is characterized as a sending failure, and an upgrade failure feedback information is generated. When the number of resending is less than the maximum number of resending, and the corresponding sending feedback of this upgrade sub-package is a successful sending, the remaining other upgrade sub-packages will continue to be sent. If all upgrade sub-packages are successfully sent within the maximum number of resending, the sending status of the target upgrade package is determined to be a successful sending.
[0039] Step 204: After the sending status is characterized as sending success, an upgrade instruction is sent to the battery platform, wherein the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
[0040] In the embodiment of the present specification, when the sending status is characterized by successful sending, it means that the battery platform has successfully received the target upgrade package. At this time, the inverter platform sends an upgrade instruction to the battery platform. After receiving the upgrade instruction, the battery platform performs a program upgrade based on the acquired target upgrade package to complete the entire battery online upgrade procedure.
[0041] In one possible implementation, after the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform includes: After the sending state is characterized as sending successfully, determining the working information of the battery platform based on the current information of the battery platform; When the working information meets the reset condition, an upgrade instruction is sent to the battery platform.
[0042] In the embodiments of the present specification, when the sending status is characterized as successful sending, and the battery platform successfully receives the target upgrade package, in order to avoid affecting the running energy storage system, it is necessary to first monitor the current information in the battery platform at this time. Then, the working information of the battery platform is determined based on the current information. As an example, when the current information in the battery platform is characterized as the battery current being greater than or equal to 1A, the working information is characterized as the battery platform is working, the reset condition is not met, and program upgrades are prohibited. When the current information in the battery platform is characterized as the battery current being less than 1A, the working information is characterized as the battery platform being in standby mode, and the reset condition is met. Furthermore, when the working information meets the reset condition, the inverter platform sends an upgrade instruction to the battery platform.
[0043] In one possible implementation, the battery platform is provided with a program running area and a program temporary storage area; After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, wherein the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package, including: After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, the upgrade instruction is used to control the battery platform to move the target upgrade package from the program temporary storage area to the program running area, and execute the program corresponding to the target upgrade package in the program running area; The method further comprises: After the receiving status is characterized as a transmission failure, a history program in the program execution area is executed.
[0044] In the embodiments of this specification, the programs in the general battery platform are stored in the flash of the hardware MCU, including the boot program Bootloader and the application layer program, wherein the Bootloader is fixed, and the application layer program is updated each time it is upgraded. In order to ensure that even if the upgrade fails, the battery system has archived programs to run, the flash setting can be divided into 4 storage areas, numbered 1-4 respectively, wherein storage area 1 is the Bootloader running area, storage area 2 is the information area, which stores the main running parameters of the program and can be modified; storage area 3 is the program running area, which cannot be modified and can only be erased; storage area 4 is the program temporary storage area. When the sending status is characterized as successful sending, the target upgrade package newly received from the battery is first placed in storage area 4. When the target upgrade package is received, the inverter platform sends an upgrade instruction to the battery platform. When the battery platform restarts and resets, it moves the target upgrade package in storage area 4 to storage area 3, and executes the new program corresponding to the target upgrade package after reset. If the receiving status is characterized by a sending failure, that is, the upgrade fails, the program package temporarily received in storage area 4 is erased, and the historical program in storage area 3 is still run, which can ensure that even if the battery platform program upgrade fails, the battery system can still work normally.
[0045] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0046] See next Figure 3 , Figure 3 The structure diagram of a battery online upgrade control device provided in the embodiment of this specification is shown. It should be noted that: Figure 3 The battery online upgrade control device shown is used to implement this application Figure 2 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 The embodiment shown.
[0047] like Figure 3 As shown, the battery online upgrade control device may at least include: The acquisition module 301 is used to acquire a target upgrade package from the online upgrade platform and determine parameter information of the target upgrade package; A sending module 302, configured to sub-package the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and send each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; A determination module 303, configured to determine a sending status of the target upgrade package based on the number of retransmissions of each upgrade package; The upgrade module 304 is used to send an upgrade instruction to the battery platform after the sending status is characterized as successful sending, and the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
[0048] In one possible implementation, the acquisition module 301 is specifically used for: Determine the upgrade version and upgrade conditions of the battery platform and obtain determination information; After the judgment message satisfies the judgment condition, determining foolproof information and firmware information of the target upgrade package; Verifying the foolproof information and the firmware information to obtain verification information; The determining of parameter information of the target upgrade package includes: After the verification information satisfies the verification condition, parameter information of the target upgrade package is determined.
[0049] In one possible implementation, the acquisition module 301 is further specifically used for: A target upgrade package matching the upgrade version is searched from the online upgrade platform, and parameter information of the target upgrade package is read, wherein the parameter information includes size information and sub-packaging information.
[0050] In one possible implementation, the sending module 302 is specifically used for: Determine the sending order of each of the upgrade sub-packages, and send the upgrade sub-package with the highest current ranking to the battery platform; After each upgrade sub-package is sent successfully, the next upgrade sub-package is sent to the battery platform based on the sending order.
[0051] In one possible implementation, the determination module 303 is specifically configured to: For any of the upgrade subpackages, after the upgrade subpackage fails to be sent, resend the upgrade subpackage that failed to be sent, and count the number of resending times corresponding to the upgrade subpackage; The retransmission number is compared with a preset maximum retransmission number, and a sending status of the target upgrade package is determined based on the comparison result.
[0052] In one possible implementation, the upgrade module 304 is specifically used to: After the sending state is characterized as sending successfully, determining the working information of the battery platform based on the current information of the battery platform; When the working information meets the reset condition, an upgrade instruction is sent to the battery platform.
[0053] In one possible implementation, the upgrade module 304 is further configured to: After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, wherein the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package when the working status of the battery platform is normal, including: After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, the upgrade instruction is used to control the battery platform to move the target upgrade package from the program temporary storage area to the program running area when the working state of the battery platform is normal, and execute the program corresponding to the target upgrade package in the program running area; The method further comprises: After the receiving status is characterized as a transmission failure, a history program in the program execution area is executed.
[0054] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0055] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0056] See next Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.
[0057] like Figure 4 As shown, the electronic device 400 may include: at least one device processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0058] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.
[0059] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0060] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0061] Among them, the device processor 401 may include one or more processing cores. The device processor 401 uses various interfaces and lines to connect various parts within the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the device processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The device processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the device processor 401, and it can be implemented separately through a chip.
[0062] The memory 405 may include a RAM or a ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned device processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0063] Specifically, the device processor 401 may be used to call the battery online upgrade control application stored in the memory 405, and specifically perform the following operations: Obtain a target upgrade package from the online upgrade platform, and determine parameter information of the target upgrade package; Sub-packaging the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and sending each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; Determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages; After the sending status is characterized as sending successfully, an upgrade instruction is sent to the battery platform, where the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
[0064] As an optional embodiment of this specification, it is characterized in that before determining the parameter information of the target upgrade package, it also includes: Determine the upgrade version and upgrade conditions of the battery platform and obtain determination information; After the judgment message satisfies the judgment condition, determining foolproof information and firmware information of the target upgrade package; Verifying the foolproof information and the firmware information to obtain verification information; The determining of parameter information of the target upgrade package includes: After the verification information satisfies the verification condition, parameter information of the target upgrade package is determined.
[0065] As an optional embodiment of this specification, it is characterized in that the obtaining of the target upgrade package from the online upgrade platform and determining the parameter information of the target upgrade package includes: A target upgrade package matching the upgrade version is searched from the online upgrade platform, and parameter information of the target upgrade package is read, wherein the parameter information includes size information and sub-packaging information.
[0066] As an optional embodiment of this specification, it is characterized in that the target upgrade package is sub-packaged based on the parameter information to obtain at least two upgrade sub-packages, and each of the upgrade sub-packages is sent to the battery platform, including: Determine the sending order of each of the upgrade sub-packages, and send the upgrade sub-package with the highest current ranking to the battery platform; After each upgrade sub-package is sent successfully, the next upgrade sub-package is sent to the battery platform based on the sending order.
[0067] As an optional embodiment of the present specification, it is characterized in that the determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages includes: For any of the upgrade subpackages, after the upgrade subpackage fails to be sent, resend the upgrade subpackage that failed to be sent, and count the number of resending times corresponding to the upgrade subpackage; The retransmission number is compared with a preset maximum retransmission number, and a sending status of the target upgrade package is determined based on the comparison result.
[0068] As an optional embodiment of the present specification, it is characterized in that after the sending state is characterized as sending successfully, sending an upgrade instruction to the battery platform includes: After the sending state is characterized as sending successfully, determining the working information of the battery platform based on the current information of the battery platform; When the working information meets the reset condition, an upgrade instruction is sent to the battery platform.
[0069] As an optional embodiment of this specification, it is characterized in that the battery platform is provided with a program running area and a program temporary storage area; After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, wherein the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package when the working status of the battery platform is normal, including: After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, the upgrade instruction is used to control the battery platform to move the target upgrade package from the program temporary storage area to the program running area when the working state of the battery platform is normal, and execute the program corresponding to the target upgrade package in the program running area; The method further comprises: After the receiving status is characterized as a transmission failure, a history program in the program execution area is executed.
[0070] The embodiments of this specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0071] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0074] 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0075] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0076] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0077] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0078] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A battery online upgrade control method, It is characterized in that The method comprises: Obtain a target upgrade package from the online upgrade platform, and determine parameter information of the target upgrade package; Sub-packaging the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and sending each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; Determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages; After the sending status is characterized as sending successfully, an upgrade instruction is sent to the battery platform, where the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
2. The method according to claim 1, It is characterized in that Before determining the parameter information of the target upgrade package, the method further includes: Determine the upgrade version and upgrade conditions of the battery platform and obtain determination information; After the judgment message satisfies the judgment condition, determining foolproof information and firmware information of the target upgrade package; Verifying the foolproof information and the firmware information to obtain verification information; The determining of parameter information of the target upgrade package includes: After the verification information satisfies the verification condition, parameter information of the target upgrade package is determined.
3. The method according to claim 2, It is characterized in that The step of obtaining a target upgrade package from an online upgrade platform and determining parameter information of the target upgrade package includes: A target upgrade package matching the upgrade version is searched from the online upgrade platform, and parameter information of the target upgrade package is read, wherein the parameter information includes size information and sub-packaging information.
4. The method according to claim 1, It is characterized in that The step of sending each of the upgrade sub-packages to the battery platform includes: Determine the sending order of each of the upgrade sub-packages, and send the upgrade sub-package with the highest current ranking to the battery platform; After each upgrade sub-package is sent successfully, the next upgrade sub-package is sent to the battery platform based on the sending order.
5. The method according to claim 1, It is characterized in that The determining the sending status of the target upgrade package based on the number of sub-package retransmissions of each of the upgrade sub-packages includes: For any of the upgrade subpackages, after the upgrade subpackage fails to be sent, resend the upgrade subpackage that failed to be sent, and count the number of resending times corresponding to the upgrade subpackage; The retransmission number is compared with a preset maximum retransmission number, and a sending status of the target upgrade package is determined based on the comparison result.
6. The method according to claim 1, It is characterized in that After the sending state is characterized as being sent successfully, sending an upgrade instruction to the battery platform includes: After the sending state is characterized as sending successfully, determining the working information of the battery platform based on the current information of the battery platform; When the working information meets the reset condition, an upgrade instruction is sent to the battery platform.
7. The method according to claim 1, It is characterized in that The battery platform is provided with a program running area and a program temporary storage area; After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, wherein the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package, including: After the sending status is characterized as sending successfully, sending an upgrade instruction to the battery platform, the upgrade instruction is used to control the battery platform to move the target upgrade package from the program temporary storage area to the program running area, and execute the program corresponding to the target upgrade package in the program running area; The method further comprises: After the receiving status is characterized as a transmission failure, a history program in the program execution area is executed.
8. A battery online upgrade control device, It is characterized in that The device comprises: An acquisition module, used to acquire a target upgrade package from an online upgrade platform and determine parameter information of the target upgrade package; A sending module, configured to sub-package the target upgrade package based on the parameter information to obtain at least two upgrade sub-packages, and send each of the upgrade sub-packages to the battery platform, wherein the data size of the upgrade sub-package does not exceed a preset size; A determination module, configured to determine a sending status of the target upgrade package based on a number of retransmissions of each upgrade package; The upgrade module is used to send an upgrade instruction to the battery platform after the sending status is characterized as successful sending, and the upgrade instruction is used to control the battery platform to upgrade based on the target upgrade package.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.
