Firmware upgrading method, firmware upgrading system, vehicle-mounted charger and storage medium

By integrating the rate module into the firmware upgrade system of the on-board power supply, the on-board power supply can output the power supply by itself during the firmware upgrade process, solving the problem of additional power supply in conventional technologies and reducing the power supply cost.

CN119862582APending Publication Date: 2025-04-22SUZHOU INOSA UNITED POWER SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411939983.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

Conventional on-board power supplies require additional power supply during firmware upgrades to maintain the entire vehicle, resulting in additional power supply costs.

Method used

A firmware upgrade method and system for on-board power supply is designed. The system includes a storage module and a central processing module. Through the upgrade module, the firmware upgrade instruction is received, the enable signal is sent to the power module, so that the power module outputs power supply power, and firmware upgrades in the inactive unit.

Benefits of technology

It realizes that the on-board power supply can output power normally during the upgrade process, avoiding the need for additional power supply configuration and reducing power supply costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862582A_ABST
    Figure CN119862582A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware upgrading method, a firmware upgrading system, a vehicle-mounted charger and a storage medium, and relates to the technical field of new energy automobiles, and the firmware upgrading method comprises the following steps: receiving a firmware upgrading instruction issued by a diagnostic instrument through a communication module; according to the firmware upgrading instruction, an enabling signal is sent to a power module, so that the power module outputs power supply power; meanwhile, the firmware in the inactive unit is upgraded according to the firmware upgrading instruction, so that the power module in the firmware upgrading system can normally output power supply power to supply power to the load while the firmware in the vehicle-mounted power supply is upgraded through the inactive unit in the firmware upgrading system; in this way, the situation that the power supply cost is increased due to the fact that a microcontroller of the vehicle-mounted power supply cannot run an application program and the vehicle-mounted power supply cannot output power supply power to supply power to a load when the vehicle-mounted power supply is upgraded on a boot loader conventionally, and an extra power supply needs to be configured for power supply is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy vehicle technology, and in particular to a firmware upgrade method, a firmware upgrade system, an on-board charger and a storage medium. Background Art

[0002] With the rapid development of new energy vehicles, the functional complexity of vehicles is increasing to meet the growing market demand. At the same time, in order to shorten the development cycle, the trend of software-defined vehicles has made the operation of remote upgrading of vehicle power more and more frequent.

[0003] The conventional on-board power supply firmware upgrade process is to first switch the on-board power supply in the vehicle from the normal operating application mode to the BootLoader mode for upgrading. In the BootLoader mode, the microcontroller runs in the BootLoader area. At this time, the on-board power supply cannot power the entire vehicle and must rely on an additional power supply (such as a low-voltage battery) to maintain power supply during the vehicle upgrade process.

[0004] Therefore, the conventional method for upgrading the firmware of the vehicle power supply has certain defects and needs to be improved urgently. Summary of the invention

[0005] The main purpose of this application is to provide a firmware upgrade method, a firmware upgrade system, a vehicle charger and a storage medium, aiming to solve the technical problem of additional power supply costs incurred during the upgrade process of a conventional vehicle power supply, which requires a power supply to maintain the upgrade of the entire vehicle.

[0006] To achieve the above-mentioned purpose, the present application proposes a vehicle-mounted power supply firmware upgrade method, the vehicle-mounted power supply firmware upgrade method is applied to the vehicle-mounted power supply firmware upgrade system, the firmware upgrade system includes a storage module and a central processing module;

[0007] The storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program;

[0008] The central processing module includes a communication module, an upgrade module and a power module which are connected in sequence, the upgrade module is also connected to the storage module, and the communication module is connected to the external diagnostic instrument for communication;

[0009] The method for upgrading the firmware of the vehicle power supply includes performing the following steps through the upgrade module:

[0010] Receive the firmware upgrade instruction sent by the diagnostic instrument through the communication module;

[0011] According to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

[0012] In one embodiment, before the step of upgrading the firmware in the inactive unit according to the firmware upgrade instruction, the step further includes:

[0013] Run the current firmware program corresponding to the vehicle power supply in the activation unit, enter the programming session of the current firmware program through the default session of the current firmware program, and perform identity authentication in the programming session;

[0014] When the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to execute the steps of upgrading the firmware in the non-activated unit according to the firmware upgrade instruction.

[0015] In one embodiment, according to the firmware upgrade instruction, the step of upgrading the firmware in the non-activated unit includes:

[0016] After erasing the current firmware program stored in the non-activated unit, new firmware data is written into the non-activated unit;

[0017] Determine whether the upgrade process fails;

[0018] If the upgrade process fails, continue to run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0019] If the upgrade is successful, switch to the non-activated unit and run the new firmware program in the non-activated unit.

[0020] In one embodiment, if the upgrade is successful, the process switches to the inactive unit, and after running the new firmware program in the inactive unit, the process further includes:

[0021] Determine whether the switching fails;

[0022] If the switching fails, re-run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0023] If the switch is successful, the new firmware program will be run.

[0024] The present application also proposes a firmware upgrade system for a vehicle-mounted power supply, the firmware upgrade system comprising a storage module and a central processing module;

[0025] The storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program;

[0026] The central processing module includes a communication module, an upgrade module and a power module connected in sequence. The upgrade module is also connected to the storage module. The communication module is connected to the external diagnostic instrument. The upgrade module is used to:

[0027] Receive the firmware upgrade instruction sent by the diagnostic instrument through the communication module;

[0028] According to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

[0029] In one embodiment, the upgrade module is further used to:

[0030] Run the current firmware program corresponding to the vehicle power supply in the activation unit, enter the programming session of the current firmware program through the default session of the current firmware program, and perform identity authentication in the programming session;

[0031] When the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to upgrade the firmware in the non-activated unit according to the firmware upgrade instruction.

[0032] In one embodiment, the upgrade module is specifically used to:

[0033] After erasing the current firmware program stored in the non-activated unit, a new firmware program is written into the non-activated unit;

[0034] Determine whether the upgrade process fails;

[0035] If the upgrade process fails, continue to run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0036] If the upgrade is successful, switch to the non-activated unit and run the new firmware program in the non-activated unit.

[0037] In one embodiment, the upgrade module is further used to:

[0038] Determine whether the switching fails;

[0039] If the switching fails, re-run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0040] If the switch is successful, the new firmware program will be run.

[0041] In addition, to achieve the above objectives, the present application also proposes a vehicle-mounted charger, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the vehicle-mounted power supply firmware upgrade method as described above.

[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the firmware upgrade method of the vehicle power supply described above are implemented.

[0043] One or more technical solutions proposed in this application have at least the following technical effects:

[0044] A method for upgrading the firmware of an on-board power supply and a firmware upgrading system arranged on the on-board power supply for implementing the method are proposed. The firmware upgrading system includes a storage module and a central processing module, wherein the storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program; the central processing module includes a communication module, an upgrade module and a power module connected in sequence, the upgrade module is also connected to the storage module, and the communication module is connected to an external diagnostic instrument. The firmware upgrading method includes executing through the upgrade module: receiving a firmware upgrading instruction issued by the diagnostic instrument through the communication module; sending an enable signal to the power module according to the firmware upgrading instruction, so that the power module outputs the power supply; at the same time, upgrading the firmware in the inactivation unit according to the firmware upgrading instruction.

[0045] That is, the present application will integrate the functions related to the upgrade of the on-board power supply into the firmware upgrade system set up for the on-board power supply. Because the firmware upgrade of the on-board power supply is performed on the firmware upgrade system of the on-board power supply, the microcontroller corresponding to the on-board power supply also runs on the on-board power supply. Therefore, the power module set up on the firmware upgrade system can output the power supply, so that while the firmware in the on-board power supply is upgraded through the inactive unit in the firmware upgrade system, the power module in the firmware upgrade system can normally output the power supply to power the load, thereby avoiding the conventional upgrade operation of the on-board power supply on the boot loader, which makes the microcontroller of the on-board power supply unable to run the application program, resulting in the on-board power supply being unable to output the power supply to power the load, and an additional power supply needs to be configured for power supply, resulting in an increase in the power supply cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0048] Figure 1 This is a schematic diagram of the specific structure of the firmware upgrade system for this application;

[0049] Figure 2 A flowchart of an embodiment of a method for upgrading the firmware of a vehicle power supply of the present application;

[0050] Figure 3 A schematic diagram of a process for upgrading a vehicle power supply that can be implemented in this application;

[0051] Figure 4 A brief flowchart of the firmware upgrade method for the vehicle power supply provided in this application;

[0052] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the firmware upgrade method of the vehicle power supply in the embodiment of the present application.

[0053] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0056] The main solution of the embodiment of the present application is: a firmware upgrade method for a vehicle-mounted power supply and a firmware upgrade system arranged on the vehicle-mounted power supply for implementing the firmware upgrade method are proposed, the firmware upgrade system includes a storage module and a central processing module, wherein the storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program; the central processing module includes a communication module, an upgrade module and a power module connected in sequence, the upgrade module is also connected to the storage module, and the communication module is connected to the external diagnostic instrument. The firmware upgrade method includes executing through the upgrade module: receiving a firmware upgrade instruction issued by the diagnostic instrument through the communication module; according to the firmware upgrade instruction, sending an enable signal to the power module to enable the power module to output the power supply; at the same time, according to the firmware upgrade instruction, upgrading the firmware in the inactivation unit.

[0057] Due to the existing technology, the firmware upgrade process of the conventional vehicle power supply is to first jump the vehicle power supply in the vehicle from the normal operating application mode to the BootLoader mode for upgrading. In the BootLoader mode, the microcontroller runs in the BootLoader area. At this time, the vehicle power supply cannot power the entire vehicle and must rely on an additional power supply (such as a low-voltage battery) to maintain the power supply of the entire vehicle during the upgrade process.

[0058] The present application provides a solution, which integrates the functions related to the upgrade of the on-board power supply into the firmware upgrade system set up in the on-board power supply. Because the firmware upgrade of the on-board power supply is executed on the firmware upgrade system of the on-board power supply, the microcontroller corresponding to the on-board power supply also runs on the on-board power supply. Therefore, the power module set on the firmware upgrade system can output the power supply, so that while the firmware in the on-board power supply is upgraded through the inactive unit in the firmware upgrade system, the power module in the firmware upgrade system can normally output the power supply to power the load, thereby avoiding the conventional upgrade operation of the on-board power supply on the boot loader, which makes the microcontroller of the on-board power supply unable to run the firmware program, resulting in the on-board power supply being unable to output the power supply to power the load, and an additional power supply needs to be configured for power supply, resulting in an increase in the power supply cost.

[0059] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a vehicle, etc. that can realize the above functions. The following takes the on-board charger of a vehicle as an example to illustrate this embodiment and the following embodiments.

[0060] Based on this, the embodiment of the present application provides a method for upgrading the firmware of a vehicle power supply, referring to Figure 1 , Figure 1 This is a firmware upgrade system for a vehicle power supply proposed in this embodiment.

[0061] In this embodiment, the firmware upgrade system of the vehicle power supply includes a storage module and a central processing module; the storage module includes an activation unit and a non-activation unit, and the activation unit and the non-activation unit both store the current firmware program; the central processing module includes a communication module, an upgrade module and a power module connected in sequence, the upgrade module is also connected to the storage module, and the communication module is connected to the external diagnostic instrument for communication.

[0062] The non-activated unit included in the storage module is used to write new firmware data, so that the firmware upgrade system can realize the firmware upgrade of the vehicle power supply based on the written new firmware data. During the entire firmware upgrade process, in order to write new firmware data, the current firmware data corresponding to the current firmware program in the non-activated unit must be erased. Therefore, in order to avoid the upgrade failure caused by abnormal upgrade conditions, and the failure state in the firmware upgrade system where there is no firmware program to run, the activation unit included in the storage module also needs to store the current firmware program, so as to ensure that when the upgrade fails through the non-activated unit and the current firmware program is erased, the current firmware program can be directly run in the activation unit to ensure the normal operation of the firmware upgrade system.

[0063] The communication module in the central processing module is used for information exchange, such as communicating with the diagnostic instrument, accessing the firmware upgrade instructions and other related instructions issued by the diagnostic instrument, and sending the firmware upgrade process of the vehicle system and the operation status after the firmware upgrade to the diagnostic instrument. At the same time, the communication module is also connected to the upgrade module, and transmits new firmware data to the non-activated unit through the upgrade module. By controlling the upgrade module, the non-activated unit is controlled to perform the firmware upgrade operation of the vehicle power supply. And because the upgrade module is also connected to the power module, the communication module can also transmit the power instruction obtained according to the firmware upgrade instruction to the power module through the upgrade module to control the power module to output the power supply power.

[0064] At the same time, the central processing module can also read the data in the activated unit, obtain the upgrade operation status performed in the non-activated unit, and transmit the upgrade operation status to the diagnostic instrument through the communication module, so that the diagnostic instrument can send the corresponding operation message to the communication module according to the upgrade operation status, so that the firmware upgrade system can control the corresponding unit and / or module to perform the corresponding operation according to the corresponding operation message.

[0065] That is, through the firmware upgrade system as described above, the on-board power supply can be upgraded while the on-board power supply can still output power to power the entire vehicle load. It can also be achieved that when the on-board power supply upgrade fails, the firmware upgrade system still has a firmware program that can ensure the normal operation of the on-board power supply, avoiding the time cost incurred by re-downloading the firmware program.

[0066] It should be noted that in order to enable the communication module, upgrade module and power module in the central processing module to run in parallel, the central processing module is set as a multi-core central processing module, which includes a first core processor, a second core processor and a third core processor; the first core processor is used to control the communication module; the second core processor is used to control the upgrade module; the third core processor is used to control the power module.

[0067] Through the first core processor, the second core processor and the third core processor, the corresponding units are controlled respectively by multiple core processors, so that while the upgrade module controls the non-activated units to write new firmware data, it can control the power module to output power and communicate with the diagnostic instrument through the communication module, thereby achieving the simultaneous execution of vehicle power upgrade, power output and information interaction.

[0068] If it is necessary to avoid the high device cost of multi-core central processing modules, the communication module, upgrade module and power module can also be set to run based on the same core processor. It is only necessary to set the upgrade module to control the non-activated unit to write new firmware data, control the power module to output power, and communicate with the diagnostic instrument through the communication module in steps.

[0069] In this embodiment, refer to Figure 2 As shown, the method for upgrading the firmware of the vehicle power supply includes steps S10 to S20 performed by the upgrading module:

[0070] Step S10, receiving a firmware upgrade instruction sent by the diagnostic instrument through the communication module.

[0071] Step S20: according to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

[0072] In conventional firmware upgrade operations for vehicle power supplies, because the firmware upgrade of the vehicle power supply needs to enter the boot loader through the corresponding application, the microcontroller in the vehicle power supply is running in the boot loader at this time, so the vehicle power supply cannot normally output power to supply power to the entire vehicle load, and it is often necessary to additionally configure an additional power supply to supply power for the upgrade of the entire vehicle load, resulting in increased power supply costs.

[0073] In order to solve the above problems, this embodiment proposes a solution in which the vehicle-mounted power supply can output power to the vehicle load for power supply while performing firmware upgrade, as described below:

[0074] It should be noted that the above steps are all implemented in the firmware upgrade system set on the vehicle power supply, that is, this embodiment can control the vehicle power supply to normally output the power supply to the load through the firmware upgrade system while implementing the vehicle power supply firmware upgrade in the firmware upgrade system, thereby avoiding the inconvenience of the conventional vehicle power supply being unable to output the power supply normally when it is in the upgrade state.

[0075] Specifically, this embodiment divides the internal structure of the firmware upgrade system set on the vehicle power supply into a storage module and a central processing module. The storage module is used to perform the upgrade operation of the vehicle power supply, and the central processing module is used to perform the power supply operation of the vehicle power supply to the load.

[0076] When the firmware upgrade system receives a firmware upgrade instruction, it means that the vehicle-mounted power supply needs to perform a firmware upgrade operation. In order to ensure that the vehicle-mounted power supply can still output power normally to supply power to the load after entering the upgrade state, the vehicle-mounted power supply will be controlled by the central processing module to continuously output power. At the same time, the firmware upgrade system will obtain the new firmware data in the received firmware upgrade instruction, and transfer the new firmware data to the storage module, and control the storage module to perform the upgrade operation of the vehicle-mounted power supply according to the new firmware data, that is, the vehicle-mounted power supply is upgraded on the firmware upgrade system, so that the microcontroller of the vehicle-mounted power supply can run the firmware program, avoiding the problem that the firmware upgrade system cannot output power when there is no microcontroller running on the vehicle power supply.

[0077] As can be seen from the above, this embodiment divides the internal structure of the firmware upgrade system into a storage module for performing the vehicle power upgrade operation and a central processing module for performing the power output. By performing corresponding operations in different modules, the upgrade operation and the power output operation are prevented from affecting each other, and the situation where the upgrade operation and the power output operation cannot be performed simultaneously based on the vehicle power supply is avoided.

[0078] Among them, the specific steps of outputting power supply may be: after loading the on-board power supply software that needs to be updated through the customer's host computer, generating the corresponding firmware upgrade instruction based on the loaded on-board power supply software, and transmitting the firmware upgrade instruction to the communication module through the diagnostic instrument, the communication module parses the connected firmware upgrade instruction to obtain the power instruction in the firmware upgrade instruction that represents the control of the on-board power supply to continuously output power supply.

[0079] It should be noted that the diagnostic instrument in this embodiment is used to generate a corresponding reply message containing control instructions or data related to the control instructions and give it to the communication module according to the accessed message information. For example, in this step, after receiving the vehicle power supply software, the diagnostic instrument determines that the current vehicle power supply needs to be upgraded, so it extracts new firmware data from the connected vehicle power supply software, and packages the corresponding power instruction for controlling the power module to output the power supply and the upgrade instruction for controlling the vehicle power supply to be upgraded with the new firmware data, and generates a firmware upgrade instruction to be transmitted to the communication module.

[0080] The communication module will parse the power instruction and transmit the power instruction to the power module through the upgrade module according to the connection relationship between the communication module and the upgrade module and the power module, so that the power module executes the power instruction and outputs the power supply to power the entire vehicle load. This enables the firmware upgrade system to access the firmware upgrade instruction to put the on-board power supply into the upgrade state while the on-board power supply can still output the power supply, avoiding the increase in power supply cost caused by the need to set up an additional power supply to maintain the operation of the entire vehicle load.

[0081] Among them, the specific steps for performing the firmware upgrade operation may be: while the communication module extracts the power instruction from the firmware upgrade instruction, it also extracts new firmware data and upgrade instructions from the firmware upgrade instruction. At this time, the communication module will pass the extracted power instruction, new firmware data and upgrade instructions into the upgrade module. The upgrade module extracts the new firmware data and upgrade instructions, and while passing the new firmware data into the inactive unit according to the upgrade instruction, it will pass the power instruction into the power module connected thereto, so that the on-board power supply performs the output operation of the power supply, thereby realizing the parallel operation of upgrading the on-board power supply and outputting the power supply.

[0082] That is, while the upgrade operation of the vehicle power supply is performed through the non-activated unit, the vehicle power supply is still in the state of outputting power.

[0083] The reason is that in this embodiment, the upgrade operation of the vehicle power supply is controlled and executed on the non-activated unit of the firmware upgrade system. Therefore, the microcontroller at this time is still running on the firmware upgrade system, which can control the normal operation of the firmware upgrade system. The corresponding power module set on the firmware upgrade system can also perform the output power supply operation normally according to the connected power instruction.

[0084] In this embodiment, the functions related to the upgrade of the on-board power supply are integrated into the firmware upgrade system set up in the on-board power supply. Because the firmware upgrade of the on-board power supply is executed on the firmware upgrade system of the on-board power supply, the microcontroller corresponding to the on-board power supply also runs on the on-board power supply. Therefore, the power module set on the firmware upgrade system can output the power supply, so that while the firmware in the on-board power supply is upgraded through the inactive unit in the firmware upgrade system, the power module in the firmware upgrade system can normally output the power supply to power the load, thereby avoiding the conventional upgrade operation of the on-board power supply on the boot loader, which makes the microcontroller of the on-board power supply unable to run the application program, resulting in the on-board power supply being unable to output the power supply to power the load, and an additional power supply needs to be configured for power supply, resulting in an increase in the power supply cost.

[0085] The following is based on Figure 1 The structure of the firmware upgrade system shown in Figure 3 As shown, before step S21, steps A10 to A11 may be further included:

[0086] Step A10, running the current firmware program corresponding to the vehicle power supply in the activation unit, entering the programming session of the current firmware program through the default session of the current firmware program, and performing identity authentication in the programming session.

[0087] It should be noted that this embodiment requires the use of the current firmware program that can currently run normally on the firmware upgrade system to implement the writing operation of new firmware data on the inactive unit. Because the current firmware program is stored in the active unit and the inactive unit respectively, and the current firmware program in the inactive unit is to be updated and upgraded, the current firmware program stored in the active unit can be run at this time to jump from the default session of the current firmware program in the running state to the programming session of the current firmware program.

[0088] After the jump, you cannot directly write to the non-activated unit in the programming session. Instead, you need to perform identity authentication first to confirm the legitimacy of the user. This is to ensure security and avoid data leakage caused by the theft of important data by illegal users.

[0089] Step A11, when the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to execute the step of upgrading the firmware in the non-activated unit according to the firmware upgrade instruction.

[0090] When the identity authentication in the programming session is passed, it means that the current user's operation on the programming session is legal and can ensure the security of the data. Therefore, the non-activated unit can be accessed and edited through the programming session at this time, and the firmware in the non-activated unit can be upgraded, so as to execute the upgrade operation of the vehicle power supply in the firmware upgrade system, avoiding the need to jump to the boot loader to perform the upgrade operation of the vehicle power supply, which makes the firmware upgrade system unable to run.

[0091] Furthermore, step S21 may specifically include steps S22 to S28:

[0092] Step S22, after erasing the current firmware program stored in the inactive unit, write new firmware data into the inactive unit.

[0093] After entering the inactive unit through the programming session, the current firmware program stored in the inactive unit is first erased to avoid data conflicts or data mixing between the new firmware data written subsequently and the data corresponding to the current firmware program, which affects the correctness of the new firmware data written and the instability that exists when the system runs based on the new firmware data written.

[0094] After the data corresponding to the current firmware program stored in the inactive unit is erased, the new firmware data is written to ensure the correct writing of the new firmware data.

[0095] Step S23, checking whether the upgrade process fails.

[0096] After the upgrade module detects that the write operation in the inactive unit is completed, the microcontroller determines whether the inactive unit at this time can form a new firmware program corresponding to the vehicle power supply according to the new firmware data that has been written, thereby determining whether the firmware upgrade operation of the vehicle power supply is successful.

[0097] In order to ensure the stability of the firmware upgrade system, after executing the judgment operation on whether the upgrade process is successful, each module in the firmware upgrade system needs to be restored to a known state so that it can run according to the preset configuration. At this time, the microcontroller needs to control the firmware upgrade system to perform a reset operation.

[0098] Step S24: If the upgrade process fails, continue to run the current firmware program in the activation unit, and control the power module to maintain power output.

[0099] If the upgrade process fails, that is, the non-activated unit at this time cannot form a new firmware program according to the new firmware data, it means that the upgrade operation of the vehicle power supply has failed. The information indicating the failure of the upgrade operation of the vehicle power supply is sent to the diagnostic instrument through the communication module. The diagnostic instrument generates a control message containing control instructions for controlling the activation unit to run the current firmware program based on the information, and transmits the control message to the communication module.

[0100] The communication module parses the control message, and transmits the obtained control instruction to the activation unit through the connection relationship between the central processing module and the activation unit. The activation unit re-runs the current firmware program according to the control instruction, and controls the power module in the central processing module to perform power output operation. In this way, in the event that the vehicle power upgrade fails, the firmware upgrade system can still control the vehicle power supply to quickly enter the power output state through the current firmware program stored in the activation unit, and complete the rapid power supply to the entire vehicle load, avoiding the conventional time cost and slow load power supply problem of re-downloading the current firmware program after the vehicle power upgrade fails.

[0101] After receiving the information indicating that the upgrade operation of the vehicle power supply has failed, the diagnostic instrument will also report the information indicating that the upgrade operation of the vehicle power supply has failed to the user terminal.

[0102] Step S25: If the upgrade is successful, switch to the inactive unit and run the new firmware program in the inactive unit.

[0103] If the upgrade is successful, that is, the inactive unit can form a new firmware program according to the new firmware data, it indicates that the upgrade operation of the vehicle power supply is successful, and it is necessary to switch to the inactive unit and run the new firmware program in the inactive unit.

[0104] Step S26, determining whether the switching fails.

[0105] Specifically, before switching to the inactive unit to run the new firmware program, it is necessary to determine whether the switching to the inactive unit can be successful.

[0106] Step S27: if the switching fails, re-run the current firmware program in the activation unit and control the power module to maintain power output.

[0107] If the switch fails, that is, it is impossible to switch from the activated unit to the inactivated unit, it means that the vehicle power supply cannot operate normally after the upgrade operation. At this time, the information indicating that the vehicle power supply cannot operate normally after the upgrade operation needs to be sent to the diagnostic instrument through the communication module. The diagnostic instrument generates a control message containing control instructions for controlling the activation unit to run the current firmware program based on the information, and transmits the control message to the communication module.

[0108] Because the step of controlling the activation unit to run the current firmware program through the communication module is the same as step S24, it will not be repeated here.

[0109] Step S28: If the switch is successful, the new firmware program is run.

[0110] If the switch is successful, that is, it is able to switch from the activated unit to the inactivated unit, it means that the vehicle power supply can operate normally after the upgrade operation. At this time, the information indicating that the vehicle power supply can operate normally after the upgrade operation is sent to the diagnostic instrument through the communication module. The diagnostic instrument generates a control message containing control instructions for controlling the inactivated unit to run the new firmware program based on the information, and transmits the control message to the communication module.

[0111] The communication module parses the control message, and transmits the obtained control instruction to the inactive unit through the connection relationship between the upgrade module and the inactive unit. The inactive unit runs the new firmware program stored therein according to the control instruction.

[0112] In this embodiment, through the communication module, the new firmware data extracted from the firmware upgrade instruction is transmitted to the non-activated unit via the upgrade module, and the non-activated unit is controlled to perform the upgrade operation of the vehicle power supply according to the new firmware data, so that the microcontroller still runs on the firmware upgrade system. Therefore, the central processing module set on the firmware upgrade system can output the power supply based on the control of the microcontroller, avoiding the additional operation of additionally configuring the power supply to power the entire vehicle load.

[0113] The present application also proposes a vehicle-mounted power supply firmware upgrade system, which refers to Figure 1 As shown, it includes a storage module and a central processing module;

[0114] The storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program;

[0115] The central processing module includes a communication module, an upgrade module and a power module connected in sequence. The upgrade module is also connected to the storage module. The communication module is connected to the diagnostic instrument. The upgrade module is used to:

[0116] Receive the firmware upgrade instruction sent by the diagnostic instrument through the communication module;

[0117] According to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

[0118] Among them, the upgrade module is also used for:

[0119] Run the current firmware program corresponding to the vehicle power supply in the activation unit, enter the programming session of the current firmware program through the default session of the current firmware program, and perform identity authentication in the programming session;

[0120] When the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to upgrade the firmware in the non-activated unit according to the firmware upgrade instruction.

[0121] It should be noted that the upgrade module is specifically used for:

[0122] After erasing the current firmware program stored in the non-activated unit, a new firmware program is written into the non-activated unit;

[0123] Determine whether the upgrade process fails;

[0124] If the upgrade process fails, continue to run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0125] If the upgrade is successful, switch to the non-activated unit and run the new firmware program in the non-activated unit.

[0126] The upgrade module is also used to:

[0127] Determine whether the switching fails;

[0128] If the switching fails, re-run the current firmware program in the activation unit and control the power module to maintain power output; and / or,

[0129] If the switch is successful, the new firmware program will be run.

[0130] For detailed description of the above contents, please refer to the description of the corresponding firmware upgrade method, which will not be repeated here.

[0131] For example, in order to help understand the implementation process of the vehicle power supply firmware upgrade method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 4 , Figure 4 A brief flowchart of a method for upgrading the firmware of a vehicle power supply is provided, specifically:

[0132] After the vehicle power software that needs to be updated is loaded through the customer's host computer, the control firmware upgrade system enters the upgrade state (corresponding to Figure 4 Step S1 in the firmware upgrade system), the power module on the firmware upgrade system outputs power to the vehicle load for power supply (corresponding to Figure 4 At the same time, the default session of the current firmware program is entered through the firmware upgrade system, and the default session is jumped to the programming session of the current firmware program to wipe the non-activated unit on the firmware upgrade system and write the new firmware data (corresponding to Figure 4 and unlock security access in the programming session (corresponding to step S3 in Figure 4 Step S4 in the programming session), after determining that the writing is completed, it is determined whether the new firmware data is written successfully (corresponding to Figure 4 If yes, then the operation of switching from the active unit to the inactive unit is performed, and it is determined whether the switching operation can be performed normally (corresponding to Figure 4 If the step S6 in the above example can be executed normally, a new firmware program (corresponding to the new firmware program) based on the new firmware data is run in the inactive unit. Figure 4 Step S7 in ).

[0133] If it is determined that the new firmware data writing fails, the current firmware program (corresponding to Figure 4 Step S8 in the process).

[0134] If it is determined that the new firmware data is written successfully, but the switching operation fails, the current firmware program (corresponding to Figure 4 Step S9 in the process).

[0135] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the firmware upgrade method of the vehicle power supply of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0136] The present application provides a vehicle-mounted charger, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the firmware upgrade method of the vehicle-mounted power supply in the above-mentioned embodiment 1.

[0137] Reference below Figure 5 , which shows a schematic diagram of the structure of a vehicle charger suitable for implementing the embodiment of the present application. The vehicle charger in the embodiment of the present application may include but is not limited to mobile terminals such as PDA (Personal Digital Assistant), PAD (Portable Application Description), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TV, desktop computers, etc. Figure 5 The vehicle-mounted charger shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0138] like Figure 5As shown, the on-board charger may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the on-board charger are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the on-board charger to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an on-board charger with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0139] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0140] The on-board charger provided by the present application adopts the on-board power supply firmware upgrade method in the above embodiment, which can solve the technical problem of the additional power supply cost generated by the need to configure a power supply to maintain the whole vehicle upgrade during the upgrade process of the conventional on-board power supply. Compared with the prior art, the beneficial effects of the on-board charger provided by the present application are the same as the beneficial effects of the on-board power supply firmware upgrade method provided by the above embodiment, and the other technical features of the on-board charger are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0141] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0142] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0143] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the firmware upgrade method of the vehicle-mounted power supply in the above-mentioned embodiment.

[0144] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0145] The computer-readable storage medium may be included in the on-board charger; or may exist independently without being installed in the on-board charger.

[0146] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the on-board charger, the on-board charger: upon receiving a firmware upgrade instruction, controls the central processing module to output power to the load; at the same time, sends the new firmware data in the firmware upgrade instruction to the storage module, and controls the storage module to upgrade the on-board power supply based on the new firmware data.

[0147] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0148] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0150] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle-mounted power supply firmware upgrade method, and can solve the technical problem of the additional power supply cost generated by the need to configure a power supply to maintain the whole vehicle upgrade during the upgrade process of the conventional vehicle-mounted power supply. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle-mounted power supply firmware upgrade method provided by the above-mentioned embodiment, and will not be repeated here.

[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for upgrading the firmware of a vehicle power supply, characterized in that: The vehicle-mounted power supply firmware upgrade method is applied to a vehicle-mounted power supply firmware upgrade system, and the firmware upgrade system includes a storage module and a central processing module; The storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program; The central processing module includes a communication module, an upgrade module and a power module connected in sequence, the upgrade module is also connected to the storage module, and the communication module is connected to the external diagnostic instrument for communication; The firmware upgrade method of the vehicle power supply comprises executing the following steps by the upgrade module: Receiving a firmware upgrade instruction issued by the diagnostic instrument through the communication module; According to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power supply; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

2. The method for upgrading the firmware of the vehicle power supply according to claim 1, characterized in that: Before the step of upgrading the firmware in the inactive unit according to the firmware upgrade instruction, the step further includes: Running the current firmware program corresponding to the vehicle-mounted power supply in the activation unit, entering the programming session of the current firmware program through the default session of the current firmware program, and performing identity authentication in the programming session; When the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to execute the step of upgrading the firmware in the non-activated unit according to the firmware upgrade instruction.

3. The method for upgrading the firmware of the vehicle power supply according to claim 1, characterized in that: The step of upgrading the firmware in the non-activated unit according to the firmware upgrade instruction includes: After erasing the current firmware program stored in the inactive unit, new firmware data is written into the inactive unit; Determine whether the upgrade process fails; If the upgrade process fails, continue to run the current firmware program in the activation unit and control the power module to maintain power output; and / or, If the upgrade is successful, the system switches to the inactive unit and runs the new firmware program in the inactive unit.

4. The method for upgrading the firmware of the vehicle power supply according to claim 3, characterized in that: If the upgrade is successful, switching to the inactive unit, and after running the new firmware program in the inactive unit, the method further includes: Determine whether the switching fails; If the switching fails, re-running the current firmware program in the activation unit and controlling the power module to maintain power output; and / or, If the switch is successful, the new firmware program is run.

5. A firmware upgrade system for a vehicle power supply, characterized in that: It includes a storage module and a central processing module; The storage module includes an activation unit and an inactivation unit, and the activation unit and the inactivation unit both store the current firmware program; The central processing module includes a communication module, an upgrade module and a power module connected in sequence, the upgrade module is also connected to the storage module, the communication module is connected to the external diagnostic instrument, and the upgrade module is used to: Receiving a firmware upgrade instruction issued by the diagnostic instrument through the communication module; According to the firmware upgrade instruction, an enable signal is sent to the power module to enable the power module to output power supply; at the same time, according to the firmware upgrade instruction, the firmware in the non-activated unit is upgraded.

6. The vehicle-mounted power supply firmware upgrade system as claimed in claim 5, characterized in that: The upgrade module is also used for: Running the current firmware program corresponding to the vehicle-mounted power supply in the activation unit, entering the programming session of the current firmware program through the default session of the current firmware program, and performing identity authentication in the programming session; When the identity authentication is passed, the non-activated unit is accessed and edited in the programming session to upgrade the firmware in the non-activated unit according to the firmware upgrade instruction.

7. The vehicle-mounted power source firmware upgrade system as claimed in claim 6, characterized in that: The upgrade module is specifically used for: After erasing the current firmware program stored in the inactive unit, writing a new firmware program into the inactive unit; Determine whether the upgrade process fails; If the upgrade process fails, continue to run the current firmware program in the activation unit and control the power module to maintain power output; and / or, If the upgrade is successful, the system switches to the inactive unit and runs the new firmware program in the inactive unit.

8. The vehicle-mounted power source firmware upgrade system as claimed in claim 7, characterized in that: The upgrade module is also used for: Determine whether the switching fails; If the switching fails, re-running the current firmware program in the activation unit and controlling the power module to maintain power output; and / or, If the switch is successful, the new firmware program is run.

9. A vehicle-mounted charger, characterized in that: The on-board charger comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the on-board power supply firmware upgrade method according to any one of claims 1 to 4.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the firmware upgrade method of the vehicle power supply according to any one of claims 1 to 4 are implemented.