Method for upgrading program of starting battery and system for upgrading program of starting battery

By using a wireless communication method where the starter battery controller actively requests information and the host computer passively responds, the problems of inconvenience and low success rate of starter battery program upgrades are solved, and efficient program upgrades under wireless communication are achieved.

CN122173113APending Publication Date: 2026-06-09GUANGHUA DIGITAL ENERGY TECHNOLOGY (GUANGDONG) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGHUA DIGITAL ENERGY TECHNOLOGY (GUANGDONG) CO LTD
Filing Date
2026-01-28
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

Existing methods for upgrading starter batteries are inconvenient and have a low success rate, especially in wireless communication where the slow information exchange rate leads to data loss.

Method used

The starting battery controller actively requests information, and the host computer passively responds. It uses a wireless communication method to send file information request frames and frame data request frames through the wireless communication module to realize paging processing and upgrade of the starting battery program.

Benefits of technology

It improves the convenience of starting battery program upgrades, reduces data loss, and increases the success rate of program upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122173113A_ABST
    Figure CN122173113A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of starting battery, and provides a starting battery program upgrading method and a starting battery program upgrading system. The method is applied to a controller of the starting battery, and includes the following steps: sending a file information request frame to an upper computer through a wireless communication module to instruct the upper computer to send a file information frame corresponding to a to-be-burned file after page processing to the controller; after receiving the file information frame, sending a plurality of frame data request frames to the upper computer in sequence through the wireless communication module according to the file information frame to instruct the upper computer to send frame data corresponding to each frame data request frame to the controller after receiving the frame data request frame; receiving the frame data corresponding to each frame data request frame, and upgrading the program installed in the controller according to the frame data corresponding to each frame data request frame. Through the method, the program upgrading of the starting battery can be realized through the wireless communication module, and the convenience of the program upgrading of the starting battery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of starting battery technology, and particularly relates to a starting battery program upgrade method and a starting battery program upgrade system. Background Technology

[0002] The starter battery program needs to be updated regularly to optimize starter battery performance and fix bugs.

[0003] The commonly used method for upgrading the starter battery program in the prior art is as follows: the starter battery controller is connected to the host computer through a wired communication device, and the host computer actively pushes program information to the starter battery controller to send the program information to be updated, thereby completing the program upgrade of the starter battery.

[0004] However, this method of program upgrades, which requires wired communication equipment, is complex and reduces the convenience of upgrading the starter battery. Summary of the Invention

[0005] In view of this, embodiments of this application provide a method and system for upgrading the program of a starter battery, in order to solve the technical problem of low convenience in upgrading the program of a starter battery in the prior art.

[0006] In a first aspect, embodiments of this application provide a method for upgrading the program of a starter battery, applied to a controller of the starter battery, wherein the starter battery includes a wireless communication module, and the starter battery is communicatively connected to a host computer through the wireless communication module; the method includes:

[0007] The wireless communication module sends a file information request frame to the host computer to instruct the host computer to send the file information frame corresponding to the file to be burned after pagination processing to the controller. After receiving the file information frame, the wireless communication module sequentially sends several frame data request frames to the host computer based on the file information frame, so as to instruct the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving each frame data request frame. The controller receives the frame data corresponding to each of the frame data request frames and upgrades the program installed on the controller based on the frame data corresponding to each of the frame data request frames.

[0008] Optionally, before sending the file information request frame to the host computer via the wireless communication module, the method further includes: The wireless communication module sends a boot program information frame to the host computer to instruct the host computer to perform paging processing on the file to be burned in the host computer according to the boot program information frame, and sends a first response frame to the controller. The specific steps of sending a file information request frame to the host computer via the wireless communication module are as follows: After receiving the first response frame, the file information request frame is sent to the host computer through the wireless communication module.

[0009] Optionally, the controller stores a bootloader; before sending the bootloader information frame to the host computer via the wireless communication module, the method further includes: Upon receiving the instruction to run the boot program from the host computer, the boot program is run to enter the program upgrade state, and a second response frame is sent to the host computer to instruct the host computer to enter the program upgrade state.

[0010] Optionally, the bootloader information frame may include at least one or more of the following: the flash page size of the controller, the version information of the bootloader stored in the controller, and the maximum storage file size of the controller.

[0011] Optionally, the file information frame includes at least one or more of the following information: the size of the file to be burned after paging, the total number of pages in the file to be burned after paging, and the overall cyclic redundancy check value of the file to be burned after paging.

[0012] Optionally, any frame data request frame may include at least one or more of the following information: the specified target page number corresponding to any frame data request frame, the frame sequence number corresponding to any frame data request frame, and the frame data size corresponding to any frame data request frame.

[0013] Optionally, upgrading the program installed on the controller based on the frame data corresponding to each frame data request frame includes: For each frame data request frame, the frame data is subjected to data integrity verification based on the cyclic redundancy check value of the frame data. If all the frame data corresponding to any page data passes the data integrity verification, the page data is subjected to data integrity verification based on the cyclic redundancy check value of the page data. If the page data passes the data integrity verification, the page data is determined to have passed the verification. The program installed on the controller is upgraded based on the verified page data.

[0014] Optionally, after upgrading the program installed on the controller based on the frame data corresponding to each frame data request frame, the method further includes: Based on the overall cyclic redundancy check value of the file to be burned after pagination processing, the upgraded program is subjected to data integrity verification.

[0015] Secondly, embodiments of this application provide a method for upgrading the program of a starter battery, applied to a host computer, wherein the host computer is communicatively connected to the wireless communication module of the starter battery; the method includes: After receiving the file information request frame sent by the wireless communication module, the controller sends the file information frame corresponding to the file to be burned after paging processing to the controller, so as to instruct the controller to send a number of frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame. After each frame data request frame is received, the corresponding frame data is sent to the controller to instruct the controller to receive the frame data corresponding to each frame data request frame and to upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

[0016] Thirdly, embodiments of this application provide a controller for a starting battery, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements a program upgrade method for the starting battery as described in any of the first aspects.

[0017] Fourthly, embodiments of this application provide a host computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the program upgrade method for starting the battery as described in any of the second aspects.

[0018] Fifthly, embodiments of this application provide a startup battery program upgrade system, including a startup battery controller as described in the third aspect and a host computer as described in the fourth aspect.

[0019] Sixthly, embodiments of this application provide a computer program product that, when executed by a processor, implements the steps of the program upgrade method for a starting battery as described in any of the first aspects, or implements the steps of the program upgrade method for a starting battery as described in any of the second aspects.

[0020] The starting battery program upgrade method and system provided in this application have the following advantages: The startup battery program upgrade method provided in this application embodiment is applied to the startup battery controller. The startup battery includes a wireless communication module, and the startup battery is communicatively connected to a host computer through the wireless communication module. The method includes: sending a file information request frame to the host computer through the wireless communication module to instruct the host computer to send a file information frame corresponding to the paginated file to be burned to the controller; after receiving the file information frame, sequentially sending a number of frame data request frames to the host computer through the wireless communication module according to the file information frame, to instruct the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving each frame data request frame; receiving the frame data corresponding to each frame data request frame, and upgrading the program installed on the controller according to the frame data corresponding to each frame data request frame. Through this solution, the startup battery program can be upgraded through the wireless communication module, improving the convenience of startup battery program upgrade. In addition, this solution adopts an information interaction mode of "starter battery controller actively requests information, host computer passively responds to information", which solves the problem of data loss caused by the slow information interaction rate of wireless communication technology. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating the implementation of a program upgrade method for a starting battery provided in this application embodiment; Figure 2 A flowchart illustrating the implementation of a program upgrade method for a starting battery, provided as another embodiment of this application; Figure 3 A schematic diagram of the structure of a starter battery controller provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a host computer provided in an embodiment of this application; Figure 5 A schematic diagram of the structure of a starter battery controller provided in another embodiment of this application; Figure 6 This is a schematic diagram of the structure of a host computer provided in another embodiment of this application. Detailed Implementation

[0023] It should be noted that the terminology used in the embodiments of this application is only for explaining specific embodiments of this application and is not intended to limit this application. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, "at least one" or "one or more" means one, two or more. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0024] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0025] In existing technologies, common methods for upgrading starter battery programs typically employ wired communication, which suffers from poor convenience. Some methods utilize wireless communication, but these methods usually involve a host computer actively pushing program information to the starter battery controller. Since wireless communication typically has a slow information exchange rate, these methods are prone to data loss, ultimately resulting in a low success rate for starter battery program upgrades.

[0026] Based on this, this application provides a method for upgrading the program of a starter battery, which solves the technical problems of poor convenience and low success rate of existing starter battery program upgrade methods.

[0027] The starting battery program upgrade method provided in this application can be executed by the starting battery controller and a host computer. This method can be applied to any scenario requiring a starting battery program upgrade. When an upgrade is needed, the starting battery controller and host computer can execute the steps of the method, thereby achieving the program upgrade and resolving the technical problems of poor convenience and low success rate in existing starting battery program upgrade methods.

[0028] Please see Figure 1 , Figure 1 This is a flowchart illustrating the implementation of a startup battery program upgrade method provided in this application embodiment. The startup battery program upgrade method provided in this application embodiment can be applied to a startup battery controller. The startup battery includes a wireless communication module, and the startup battery is connected to a host computer via the wireless communication module. The startup battery program upgrade method may include steps S101 to S103, detailed below: In S101, a file information request frame is sent to the host computer via the wireless communication module to instruct the host computer to send the file information frame corresponding to the file to be burned after paging processing to the controller.

[0029] In the embodiments of this application, the wireless communication module may include, but is not limited to, a Bluetooth communication module. Specifically, the Bluetooth communication module may be a low-power Bluetooth communication module.

[0030] Before the controller sends a file information request frame to the host computer via the wireless communication module, the controller can first execute steps a to b, as detailed below: In step a, after receiving the instruction to run the boot program from the host computer, the boot program is run to enter the program upgrade state, and a second response frame is sent to the host computer to indicate that the host computer has entered the program upgrade state.

[0031] In this implementation, the controller can store a boot program. When the host computer needs to update the program of the starter battery, it can send a boot program execution command to the starter battery controller. Based on this, after receiving the boot program execution command sent by the host computer, the controller can run the boot program to enter the program upgrade state and send a second response frame (which can be a general response frame) to the host computer to instruct the host computer to enter the program upgrade state.

[0032] This step puts both the controller and the host computer into a program upgrade state, enabling them to execute the specific steps for subsequent program upgrades.

[0033] For example, the instruction to run the bootloader can be specifically an instruction to run "Bootloader", and the bootloader can be the "Bootloader" program.

[0034] It should be noted that this step does not contradict the "starter battery controller actively requests information, and the host computer passively responds" approach used in this solution. This is because the purpose of this step is to ensure that both the controller and the host computer enter the program upgrade state. Once both are in this state, the "starter battery controller actively requests information, and the host computer passively responds" process takes place. Furthermore, in practical applications, only the host computer can determine whether a program update is needed, while the starter battery controller cannot. Therefore, the host computer must send a bootloader command to the controller to instruct it to enter the program upgrade state.

[0035] In step b, a boot program information frame is sent to the host computer via the wireless communication module to instruct the host computer to perform paging processing on the file to be burned in the host computer according to the boot program information frame, and to send a first response frame to the controller.

[0036] In this implementation, after the controller enters the program upgrade state, the controller can send a boot program information frame to the host computer through the wireless communication module. The boot program information frame may include at least one or more of the following information: the flash memory page size of the controller, the version information of the boot program stored in the controller, and the maximum storage file size of the controller.

[0037] After receiving the bootloader information frame, the host computer can perform paging processing on the file to be written in the host computer according to the information included in the bootloader information frame, and send a first response frame to the controller. When the host computer performs paging processing on the file to be written in the host computer, the blank part of the last page can be filled with a preset padding character.

[0038] After receiving the first response frame, the controller can determine that the host computer has completed the paging process of the file to be burned. Based on this, the controller can send a file information request frame to the host computer via the wireless communication module after receiving the first response frame. The file information request frame is used to instruct the host computer to send the file information frame of the paging-processed file to be burned to the controller.

[0039] The file information frame includes at least one or more of the following information: the size of the file to be burned after paging, the total number of pages in the file to be burned after paging, and the overall cyclic redundancy check value of the file to be burned after paging.

[0040] In S102, after receiving the file information frame, the system sequentially sends several frame data request frames to the host computer via the wireless communication module, instructing the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving each frame data request frame.

[0041] In this embodiment, after receiving a file information frame, the controller can generate several frame data request frames based on the size of the paginated file to be burned and the total number of pages in the paginated file to be burned. The number of frame data request frames can be determined by both the size of the paginated file to be burned and the total number of pages in the paginated file to be burned. For example, if the total number of pages in the paginated file to be burned is 10 pages, and each page corresponds to 5 frames, then the controller can generate 50 frame data request frames. Each frame data request frame can include at least one or more of the following information: the specified target page number corresponding to any frame data request frame, the frame sequence number corresponding to any frame data request frame, and the frame data size corresponding to any frame data request frame.

[0042] After the controller generates several frame data request frames, it can sequentially send each frame data request frame to the host computer via the wireless communication module. For example, it can first send a frame data request frame with the target page number as page 1 and the target frame sequence number as frame 1 to the host computer, then send a frame data request frame with the target page number as page 1 and the target frame sequence number as frame 2 to the host computer, and so on.

[0043] In one possible implementation, to ensure the controller does not lose data, it can send the next frame data request frame to the host computer after receiving the frame data corresponding to the previous frame data request frame. For example, the controller can receive the frame data corresponding to a frame data request frame with the target page number being the first page and the target frame sequence number being the first frame, and then send a frame data request frame with the target page number being the first page and the target frame sequence number being the second frame to the host computer.

[0044] In S103, the frame data corresponding to each frame data request frame is received, and the program installed on the controller is upgraded according to the frame data corresponding to each frame data request frame.

[0045] In this embodiment, after receiving the frame data corresponding to each frame data request frame, the controller can first perform data integrity verification on the frame data corresponding to each frame data request frame based on the cyclic redundancy check value of the frame data corresponding to that frame data; if all the frame data corresponding to any page data passes the data integrity verification, then the page data is verified for data integrity based on the cyclic redundancy check value of the page data corresponding to that arbitrary page data; if the page data passes the data integrity verification, then the page data verification is determined to be successful.

[0046] Specifically, after receiving the frame data corresponding to each frame data request frame, the controller can perform a data integrity check on the frame data based on the cyclic redundancy check value of the frame data included in the frame data request frame. If the data integrity check of the frame data fails, the controller can resend the corresponding frame data request frame to the host computer to instruct the host computer to resend the frame data corresponding to the frame data request frame.

[0047] Specifically, if all frames corresponding to any page of data pass the data integrity check, the controller can send a page data cyclic redundancy request frame to the host computer, instructing the host computer to send the page data cyclic redundancy value corresponding to that page of data. Then, the controller can perform a data integrity check on that page of data based on the page data cyclic redundancy value. If the page data passes the data integrity check, the page data is considered to have passed the check. If the page data fails the check, the controller can resend a frame data request frame corresponding to that page of data to the host computer, instructing the host computer to resend all frames corresponding to that page of data.

[0048] For example, if a page of data includes 5 frames, and all 5 frames pass the data integrity check, the controller can send a page data cyclic redundancy request frame to the host computer, instructing the host computer to send the page data cyclic redundancy value corresponding to that page of data. Then, the controller can perform a data integrity check on that page of data based on the corresponding page data cyclic redundancy value. If the page data check fails, the controller can resend a request frame for the 5 frames corresponding to that page of data to the host computer, instructing the host computer to resend the 5 frames corresponding to that page of data.

[0049] After confirming that all page data has passed verification, the controller can upgrade the installed program based on the verified page data. Specifically, the controller can write the verified page data into its flash memory to upgrade the installed program.

[0050] In one possible implementation, after upgrading the program installed on the controller, the controller can also perform data integrity verification on the upgraded program based on the overall cyclic redundancy check value of the file to be burned after pagination processing.

[0051] If the upgraded program passes the data integrity verification, the controller can send a message to the host computer indicating that the program upgrade was successful. If the upgraded program fails the data integrity verification, the controller can re-execute each step of the program upgrade method for starting the battery provided in this application embodiment until the upgraded program passes the data integrity verification.

[0052] By performing data integrity checks on each frame of data, each page of data, and the upgraded program, it can be ensured that the controller can completely receive the data sent by the host computer, avoiding data loss and improving the success rate of the starter battery program upgrade.

[0053] As can be seen from the above, the starting battery program upgrade method provided in this application embodiment is applied to the controller of the starting battery. The starting battery includes a wireless communication module, and the starting battery is connected to a host computer through the wireless communication module. The method includes: sending a file information request frame to the host computer through the wireless communication module to instruct the host computer to send a file information frame corresponding to the file to be burned after pagination processing to the controller; after receiving the file information frame, according to the file information frame, sequentially sending a number of frame data request frames to the host computer through the wireless communication module to instruct the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving each frame data request frame; receiving the frame data corresponding to each frame data request frame, and upgrading the program installed on the controller according to the frame data corresponding to each frame data request frame. Through this solution, the program upgrade of the starting battery can be realized through the wireless communication module, improving the convenience of the program upgrade of the starting battery. In addition, this solution adopts the information interaction mode of "the starting battery controller actively requests information, and the host computer passively responds to information", which solves the problem of data loss caused by the slow information interaction rate of wireless communication technology.

[0054] Please see Figure 2 , Figure 2 The following is a flowchart illustrating the implementation of a startup battery program upgrade method according to another embodiment of this application. The startup battery program upgrade method provided in this embodiment can be applied to a host computer, wherein the host computer can communicate with the startup battery's wireless communication module. The startup battery program upgrade method may include steps S201-S202, detailed below: In S201, after receiving the file information request frame sent by the wireless communication module, the controller sends the file information frame corresponding to the file to be burned after paging processing, so as to instruct the controller to send a number of frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame.

[0055] In this embodiment of the application, before receiving the file information request frame sent by the wireless communication module, the host computer can send a run boot program instruction to the controller of the starting battery, so as to instruct the controller to run the boot program to enter the program upgrade state after receiving the run boot program instruction sent by the host computer, and send a second response frame to the host computer. After receiving the second response frame, the host computer enters the program upgrade state.

[0056] Afterwards, the host computer can receive the boot program information frame sent by the controller, and can perform paging processing on the file to be burned in the host computer according to the boot program information frame, and send a first response frame to the controller to instruct the controller to send a file information request frame to the host computer through the wireless communication module after receiving the first response frame.

[0057] After receiving the file information request frame sent by the wireless communication module, the system sends the file information frame corresponding to the file to be burned after paging to the controller, instructing the controller to send several frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame.

[0058] In S202, after each frame data request frame is received, the frame data corresponding to the frame data request frame is sent to the controller to instruct the controller to receive the frame data corresponding to each frame data request frame and upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

[0059] In this embodiment of the application, after receiving a frame data request frame each time, the host computer can send the frame data corresponding to the frame data request frame to the controller, so as to instruct the controller to receive the frame data corresponding to each frame data request frame, and upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

[0060] It should be noted that the embodiments of this application ( Figure 2 (The provided embodiments) and Figure 1 The provided embodiments are corresponding; specific implementations not mentioned in the embodiments of this application can be referred to. Figure 1 The provided embodiments will not be described in detail here.

[0061] Based on the startup battery program upgrade method provided in the above embodiments, this application further provides a controller and host computer for the startup battery that implement the above method embodiments.

[0062] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a starter battery controller provided in an embodiment of this application. Figure 3 As shown, the starter battery controller 30 is used to control the starter battery. The starter battery includes a wireless communication module, and the starter battery communicates with the host computer through the wireless communication module. The starter battery controller 30 may include: a first transmitting unit 31, a second transmitting unit 32, and a program upgrade unit 33. Wherein: The first sending unit 31 is used to send a file information request frame to the host computer via the wireless communication module, so as to instruct the host computer to send the file information frame corresponding to the file to be burned after paging processing to the controller.

[0063] The second sending unit 32 is used to send a number of frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame, so as to instruct the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving a frame data request frame each time.

[0064] The program upgrade unit 33 is used to receive the frame data corresponding to each frame data request frame, and upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

[0065] Optionally, the controller 30 of the starting battery may further include a third transmitting unit, wherein: The third transmitting unit is specifically used for: The system sends a boot program information frame to the host computer via the wireless communication module, instructing the host computer to perform paging processing on the file to be burned in the host computer according to the boot program information frame, and sends a first response frame to the controller. The file information request frame is sent to the host computer via the wireless communication module, specifically as follows: After receiving the first response frame, a file information request frame is sent to the host computer via the wireless communication module.

[0066] Optionally, the controller 30 of the starting battery may further include a fourth transmitting unit, wherein: The fourth transmitting unit is specifically used for: After receiving the instruction to run the boot program from the host computer, the boot program is run to enter the program upgrade state, and a second response frame is sent to the host computer to instruct the host computer to enter the program upgrade state.

[0067] Optionally, the bootloader information frame may include at least one or more of the following: the controller's flash page size, the version information of the bootloader stored in the controller, and the controller's maximum storage file size.

[0068] Optionally, the file information frame may include at least one or more of the following: the size of the file to be programmed after paging, the total number of pages in the file to be programmed after paging, and the overall cyclic redundancy check value of the file to be programmed after paging.

[0069] Optionally, an arbitrary frame data request frame may include at least one or more of the following information: the specified target page number corresponding to the arbitrary frame data request frame, the frame sequence number corresponding to the arbitrary frame data request frame, and the frame data size corresponding to the arbitrary frame data request frame.

[0070] Optionally, program upgrade unit 33 is specifically used for: For each frame data request frame, the frame data corresponding to that frame data is checked for data integrity based on the cyclic redundancy check value of the frame data corresponding to that frame data. If all the frame data corresponding to any page data passes the data integrity check, then the page data is checked for data integrity based on the cyclic redundancy check value of the page data corresponding to that page data. If the page data passes the data integrity check, then the page data is determined to have passed the check. Based on the verified data from each page, the program installed on the controller is upgraded.

[0071] Optionally, the program upgrade unit 33 is also used for: Based on the overall cyclic redundancy check value of the file to be burned after pagination, the upgraded program is subjected to data integrity verification.

[0072] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a host computer provided in an embodiment of this application. Figure 4 As shown, the host computer 40 is communicatively connected to the wireless communication module of the starting battery. The host computer 40 may include a fifth transmitting unit 41 and a sixth transmitting unit 42. Wherein: The fifth sending unit 41 is used to send a file information frame corresponding to the file to be burned after paging processing to the controller after receiving the file information request frame sent by the wireless communication module, so as to instruct the controller to send a number of frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame.

[0073] The sixth sending unit 42 is used to send the frame data corresponding to the frame data request frame to the controller after each frame data request frame is received, so as to instruct the controller to receive the frame data corresponding to each frame data request frame and upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

[0074] It should be noted that the information interaction and execution process between the above-mentioned units are based on the same concept as the method embodiments of this application. Their specific functions and technical effects can be referred to the method embodiments section, and will not be repeated here.

[0075] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a starter battery controller provided in another embodiment of this application. Figure 5As shown, the controller 5 for the starting battery provided in this embodiment may include: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a program corresponding to a starting battery program upgrade method. When the processor 50 executes the computer program 52, it implements the steps described above in the embodiment of the program upgrade method applied to the starting battery, for example... Figure 1 S101~S103 are shown. Alternatively, when the processor 50 executes the computer program 52, it implements the functions of each module / unit in the controller embodiment of the starter battery described above, for example... Figure 3 The functions of units 31 to 33 shown.

[0076] For example, the computer program 52 can be divided into one or more modules / units, one or more of which are stored in the memory 51 and executed by the processor 50 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 52 in the controller 5 of the starter battery. For example, the computer program 52 can be divided into a first sending unit 31, a second sending unit 32, and a program upgrade unit 33; the specific functions of each unit are described in [reference needed]. Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.

[0077] Those skilled in the art will understand that Figure 5 This is merely an example of the controller 5 for the starting battery and does not constitute a limitation on the controller 5 for the starting battery. It may include more or fewer components than shown, or combine certain components, or use different components.

[0078] The processor 50 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0079] The memory 51 can be an internal storage unit of the starter battery controller 5, such as a hard disk or RAM of the starter battery controller 5. The memory 51 can also be an external storage device of the starter battery controller 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card equipped on the starter battery controller 5. Furthermore, the memory 51 can include both internal storage units and external storage devices of the starter battery controller 5. The memory 51 is used to store computer programs and other programs and data required by the starter battery controller. The memory 51 can also be used to temporarily store data that has been output or will be output.

[0080] Please see Figure 6 , Figure 6 This is a schematic diagram of a host computer structure provided for another embodiment of this application. For example... Figure 6 As shown, the host computer 6 provided in this embodiment may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program corresponding to a battery startup program upgrade method. When the processor 60 executes the computer program 62, it implements the steps described above in the embodiment of the battery startup program upgrade method, for example... Figure 2 S201~S202 are shown. Alternatively, when processor 60 executes computer program 62, it implements the functions of each module / unit in the above-described host computer embodiment, for example... Figure 4 The functions of units 41-42 shown.

[0081] For example, computer program 62 can be divided into one or more modules / units, one or more of which are stored in memory 61 and executed by processor 60 to complete this application. One or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of computer program 62 in host computer 6. For example, computer program 62 can be divided into a fifth sending unit 41 and a sixth sending unit 42; the specific functions of each unit are described in [reference needed]. Figure 4 The relevant descriptions in the corresponding embodiments are not repeated here.

[0082] Those skilled in the art will understand that Figure 6 This is merely an example of host computer 6 and does not constitute a limitation on host computer 6. It may include more or fewer components than shown, or combine certain components, or use different components.

[0083] The processor 60 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0084] The memory 61 can be an internal storage unit of the host computer 6, such as the hard disk or RAM of the host computer 6. The memory 61 can also be an external storage device of the host computer 6, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card equipped on the host computer 6. Furthermore, the memory 61 can include both internal storage units and external storage devices of the host computer 6. The memory 61 is used to store computer programs and other programs and data required by the host computer. The memory 61 can also be used to temporarily store data that has been output or will be output.

[0085] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units is merely an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the starting battery controller and the host computer can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0086] This application also provides a startup battery program upgrade system, which may include the startup battery controller provided in any embodiment of this application and the host computer provided in any embodiment.

[0087] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.

[0088] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the various method embodiments above.

[0089] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.

[0090] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0091] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for upgrading the program of a starting battery, characterized in that, A controller for a starter battery, the starter battery including a wireless communication module, the starter battery being communicatively connected to a host computer via the wireless communication module; the method includes: The wireless communication module sends a file information request frame to the host computer to instruct the host computer to send the file information frame corresponding to the file to be burned after pagination processing to the controller. After receiving the file information frame, the wireless communication module sequentially sends several frame data request frames to the host computer based on the file information frame, so as to instruct the host computer to send the frame data corresponding to the frame data request frame to the controller after receiving each frame data request frame. The controller receives the frame data corresponding to each of the frame data request frames and upgrades the program installed on the controller based on the frame data corresponding to each of the frame data request frames.

2. The method according to claim 1, characterized in that, Before sending the file information request frame to the host computer via the wireless communication module, the method further includes: The wireless communication module sends a boot program information frame to the host computer to instruct the host computer to perform paging processing on the file to be burned in the host computer according to the boot program information frame, and sends a first response frame to the controller. The specific steps of sending a file information request frame to the host computer via the wireless communication module are as follows: After receiving the first response frame, the file information request frame is sent to the host computer through the wireless communication module.

3. The method according to claim 2, characterized in that, The controller stores a bootloader; before sending the bootloader information frame to the host computer via the wireless communication module, the method further includes: Upon receiving the instruction to run the boot program from the host computer, the boot program is run to enter the program upgrade state, and a second response frame is sent to the host computer to instruct the host computer to enter the program upgrade state.

4. The method according to claim 3, characterized in that, The bootloader information frame includes at least one or more of the following: the flash page size of the controller, the version information of the bootloader stored in the controller, and the maximum storage file size of the controller.

5. The method according to claim 1, characterized in that, The file information frame includes at least one or more of the following information: the size of the file to be burned after paging, the total number of pages in the file to be burned after paging, and the overall cyclic redundancy check value of the file to be burned after paging.

6. The method according to claim 1, characterized in that, Any frame data request frame includes at least one or more of the following information: the specified target page number corresponding to the frame data request frame, the frame sequence number corresponding to the frame data request frame, and the frame data size corresponding to the frame data request frame.

7. The method according to claim 1, characterized in that, The step of upgrading the program installed on the controller based on the frame data corresponding to each frame data request frame includes: For each frame data request frame, the frame data is used to perform data integrity verification based on the frame data cyclic redundancy check value corresponding to the frame data. If all the frame data corresponding to any page of data passes the data integrity check, then the page data is checked for data integrity based on the cyclic redundancy check value of the page data corresponding to the arbitrary page data; if the page data passes the data integrity check, then the page data is determined to have passed the check. The program installed on the controller is upgraded based on the verified page data.

8. The method according to any one of claims 1 to 7, characterized in that, After upgrading the program installed on the controller based on the frame data corresponding to each frame data request frame, the method further includes: Based on the overall cyclic redundancy check value of the file to be burned after pagination processing, the upgraded program is subjected to data integrity verification.

9. A method for upgrading the program of a starting battery, characterized in that, The method is applied to a host computer, which is communicatively connected to the wireless communication module of the starting battery; the method includes: After receiving the file information request frame sent by the wireless communication module, the controller sends the file information frame corresponding to the file to be burned after paging processing to the controller, so as to instruct the controller to send a number of frame data request frames to the host computer in sequence through the wireless communication module after receiving the file information frame. After each frame data request frame is received, the corresponding frame data is sent to the controller to instruct the controller to receive the frame data corresponding to each frame data request frame and to upgrade the program installed on the controller according to the frame data corresponding to each frame data request frame.

10. A program upgrade system for a starting battery, characterized in that, The program upgrade system includes a controller for the starter battery and a host computer. The controller is used to execute each step of the program upgrade method for the starter battery as described in any one of claims 1 to 8, and the host computer is used to execute each step of the program upgrade method for the starter battery as described in claim 9.