Vehicle upgrade power supply strategy determination method, device, equipment and medium

By obtaining the remaining power of the power battery and battery when the vehicle OTA is upgraded, and determining the power supply strategy and OTA upgrade strategy are solved, the problem of failure caused by insufficient power during OTA is solved, achieving a more efficient upgrade process and a better user experience.

CN118306213BActive Publication Date: 2025-03-28CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410316551.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2025-03-28
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

In the prior art, there is a problem that the upgrade failed due to insufficient residual power of the vehicle during the upgrade of OTA.

Method used

When the vehicle is undergoing OTA upgrade, it uses VBOX to send diagnostic messages to obtain the remaining power of the power battery and the battery, determine the power supply strategy and the OTA upgrade strategy, ensure that the battery is introduced to supplement the power supply when the power battery and the battery are insufficient, and the OTA upgrade is suspended when the power battery and the battery are insufficient.

Benefits of technology

It effectively avoids the failure of ECU parts upgrade and writes due to vehicle power outage, improves the upgrade efficiency and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118306213B_ABST
    Figure CN118306213B_ABST
Patent Text Reader

Abstract

The present application relates to the field of vehicle control technology, and provides a method, device, equipment and medium for determining a vehicle upgrade power supply strategy. The method is to send a diagnostic message from VBOX to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery when the vehicle is undergoing an OTA upgrade and the application message communication is in a closed state, and to send a diagnostic message to the body control unit to obtain the remaining power of the vehicle's storage battery, and then determine the vehicle's power supply strategy and the vehicle's OTA upgrade strategy based on the acquired remaining power of the power battery and the remaining power of the storage battery, so that the vehicle's battery remaining power can still be monitored during the vehicle's OTA upgrade, so as to reasonably select the vehicle's power supply strategy and OTA upgrade strategy, avoid the failure of ECU upgrade flashing due to vehicle power outage, improve the upgrade efficiency, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a method, device, equipment and medium for determining a vehicle upgrade power supply strategy. Background Art

[0002] Over-the-Air Technology (OTA) upgrades for vehicles refer to the use of OTA for firmware and software upgrades. OTA not only brings a more convenient way to upgrade vehicles, but also allows consumers to experience a smarter and more convenient car experience. By downloading new software update packages from a remote server over the network to upgrade the system itself, vehicle system defects can be quickly repaired, products can be upgraded quickly, and user experience can be improved, saving time and money for both vehicle suppliers and users.

[0003] The OTA master can upgrade and flash the target electronic control unit (ECU) component (the component to be flashed). For the entire vehicle system, the number of ECU components is usually as many as dozens, and the upgrade takes a long time. If some ECU components have abnormalities during the upgrade process and need to be re-flashed, it may take longer and consume more power, which may cause the power supply battery to run low, resulting in upgrade failure. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a method, device, equipment and medium for determining a vehicle upgrade power supply strategy to solve the problem of upgrade failure due to insufficient remaining power of the vehicle during OTA upgrade in the prior art.

[0005] In a first aspect of an embodiment of the present application, a method for determining a vehicle upgrade power supply strategy is provided, the method being used to determine a vehicle power supply strategy when the vehicle is upgraded using an over-the-air download technology OTA, the method comprising:

[0006] In response to the detection determining that the vehicle meets the OTA upgrade conditions, controlling the vehicle to enter the OTA upgrade mode and shutting down the application message communication;

[0007] Control the on-board measurement and data recording device VBOX to send diagnostic messages to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery;

[0008] Control VBOX to send diagnostic messages to the vehicle's body control unit to obtain the vehicle's battery remaining power;

[0009] Determine the vehicle's power supply strategy and vehicle OTA upgrade strategy based on the remaining power of the power battery and the remaining power of the storage battery;

[0010] The power supply strategies of the vehicle include powering the vehicle by the vehicle's power battery, powering the vehicle by the vehicle's storage battery, and powering the vehicle by the vehicle's power battery and storage battery together;

[0011] The vehicle's OTA upgrade strategy is to upgrade each electronic control unit ECU of the vehicle in sequence and suspend the OTA upgrade after the currently being processed ECU upgrade is completed.

[0012] In a second aspect of an embodiment of the present application, a device for determining a vehicle upgrade power supply strategy is provided, wherein the vehicle is a vehicle undergoing an over-the-air (OTA) upgrade, and the device comprises:

[0013] An upgrade start module is configured to control the vehicle to enter an OTA upgrade mode and disable application message communication in response to detecting that the vehicle meets OTA upgrade conditions;

[0014] An acquisition module is configured to control the vehicle-mounted measurement and data recording device VBOX to send a diagnostic message to the battery management system of the vehicle to obtain the remaining power of the power battery of the vehicle;

[0015] The acquisition module is further configured to control the VBOX to send a diagnostic message to a body control unit of the vehicle to obtain the remaining battery power of the vehicle;

[0016] A determination module is configured to determine a power supply strategy of the vehicle and an OTA upgrade strategy of the vehicle according to the remaining power of the power battery and the remaining power of the storage battery;

[0017] The power supply strategies of the vehicle include powering the vehicle by the vehicle's power battery, powering the vehicle by the vehicle's storage battery, and powering the vehicle by the vehicle's power battery and storage battery together;

[0018] The vehicle's OTA upgrade strategy is to upgrade each electronic control unit ECU of the vehicle in sequence and suspend the OTA upgrade after the currently being processed ECU upgrade is completed.

[0019] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0020] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0021] Compared with the prior art, the beneficial effect of the embodiments of the present application is as follows: when the vehicle is undergoing OTA upgrade and the application message communication is in a closed state, the VBOX sends a diagnostic message to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery, and sends a diagnostic message to the body control unit to obtain the remaining power of the vehicle's storage battery, and then determines the vehicle's power supply strategy and the vehicle's OTA upgrade strategy based on the acquired remaining power of the power battery and the remaining power of the storage battery, thereby achieving the ability to monitor the remaining power of the vehicle's battery during the vehicle's OTA upgrade, so that the storage battery can be introduced to supplement the power supply when the remaining power of the vehicle's power battery is insufficient, and suspending the OTA upgrade after the currently flashed ECU upgrade is completed when the remaining power of both the power battery and the storage battery is insufficient, thereby avoiding the failure of ECU component upgrade flashing due to vehicle power outage, improving the upgrade efficiency, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 It is a scenario diagram of an application scenario of an embodiment of the present application.

[0024] Figure 2 It is a schematic diagram of the signal transmission method between various communication units during vehicle OTA provided in an embodiment of the present application.

[0025] FIG3(A) is a schematic diagram of the frame structure of a diagnostic request CAN message provided in an embodiment of the present application.

[0026] FIG3(B) is a schematic diagram of the frame structure of a diagnostic response CAN message provided in an embodiment of the present application.

[0027] Figure 4 It is a flow chart of a method for determining a vehicle upgrade power supply strategy provided in an embodiment of the present application.

[0028] Figure 5 It is a flow chart of a method for determining a vehicle's power supply strategy based on the remaining power of a power battery and the remaining power of a storage battery provided in an embodiment of the present application.

[0029] FIG. 6(A) is a schematic diagram of a vehicle supplying power to each ECU component via a power battery and / or a storage battery.

[0030] FIG. 6(B) is a schematic diagram of another method in which a vehicle supplies power to each ECU component through a power battery and / or a storage battery.

[0031] Figure 7 It is a schematic diagram of the manner in which the vehicle provided in the embodiment of the present application supplies power to each ECU component through a power battery and / or a storage battery.

[0032] Figure 8 It is a schematic diagram of a vehicle upgrade power supply strategy determination device provided in an embodiment of the present application.

[0033] Fig. 9 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0035] A method and device for determining a vehicle upgrade power supply strategy according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0036] Figure 1 Schematic diagram of the application scenario of the embodiment of the present application. The application scenario may include an upgrade master control unit UMC, an upgrade agent unit UA and an upgrade slave control unit US. Among them, UMC may be a vehicle-mounted measurement and data recording device VBOX, UA may be a vehicle gateway (VGW), and US may be each ECU in the vehicle.

[0037] like Figure 1 As shown, VBOX and VGW can be connected via 100M or 1000M Ethernet ETH. VGW and its subordinate ECUs can also be connected via 100M or 1000M ETH, or via CAN bus. Each VGW can be connected to multiple ECUs, such as ECU1-1 to ECU1-n, ECU2-1 to ECU2-n, and ECUm-1 to ECUm-n. Among them, ECU2-1 to ECU2-n are connected to VGW via CAN bus, and ECU1-1 to ECU1-n and ECUm-1 to ECUm-n are connected to VGW via ETH.

[0038] Figure 2 Schematic diagram of the signal transmission method between the communication units during vehicle OTA provided by the embodiment of the present application. Figure 2As shown in the figure, when the vehicle is OTA upgraded, the UMC upgrades and flashes each target ECU. For ECUs that support Ethernet, the UMC establishes a TCP communication connection with the target ECU through VGW transparent transmission, and uses the DOIP protocol for data communication to achieve the upgrade and flashing of the target ECU; for ECUs that do not support Ethernet, the OTA master establishes a TCP communication connection with the VGW, and the VGW parses the ECU target address of the message, converts the ETH message format to the UDS message, and then forwards the converted UDS message to the target ECU for data communication to achieve the upgrade and flashing of the target ECU.

[0039] Figure 3(A) is a schematic diagram of the frame structure of the diagnostic request CAN message provided in the embodiment of the present application, and Figure 3(B) is a schematic diagram of the frame structure of the diagnostic response CAN message provided in the embodiment of the present application. As shown in Figures 3(A) and 3(B), the OTA upgrade is based on the diagnostic mode for communication and upgrade flashing. The CANID field is the physical address (0x7xx) and functional address (0x7df) of the ECU device, and the physical address is unique in the entire network. The UDSDATA field is a UDS message, that is, a diagnostic message. The diagnostic message is divided into a diagnostic request message and a diagnostic response message. Figure 3(A) shows a diagnostic request message, and Figure 3(B) shows a diagnostic response message.

[0040] The method of converting Ethernet messages into CAN messages can be executed by UA, i.e., VGW. In some cases, it can also be executed by US, i.e., ECU. The IP data packet in the Ethernet message sent by the source end can be input through the Ethernet input port INETHPORT of UA / US, and the judgment module determines whether the destination end needs to output an IP data packet or a CAN data packet. If the IP data packet needs to be output, the destination end of the IP data packet is directly set through the ETH XChange operation, and the IP data packet is output to the destination end through the Ethernet output port OUTETHPORT of UA / US. If the CAN data packet needs to be output, the IP data packet is first parsed through the ETH Packet operation, and then the parsed data is encapsulated in the UDS format, that is, the ETH format is converted into the UDS data format, and the converted CAN data packet is output to the destination end through the Ethernet output port OUTETHPORT of UA / US. Among them, the CAN data packet encapsulated in the UDS data format includes the logical address of the ECU that needs to perform the operation in this message.

[0041] Furthermore, the Ethernet message composed of the IP data packet may include an Ethernet message header EthHead, an Internet Protocol (IP) message header IpHead, and the IpHead further includes a source IP and a destination IP, a Transmission Control Protocol (TCP) / User Datagram Protocol (UDP) message header, a DoIP message header, a source address SA, a destination address TA, and DoIP data. Among them, the logical address can be stored in SA and TA, and the UDS data can be stored in the DoIP data.

[0042] The Ethernet message can be converted into a CAN message through UA or US. The CAN message includes a CAN identifier (CANID), which can be a request ID, determined according to the TA in the Ethernet message. The CAN message can also include a data length code (Data Length Code, DLC), CAN bus DoCAN PCI, and UDS data. Among them, DoCAN PCI can include frame type and data length Data len.

[0043] There are two types of diagnostic request messages: SID+sub function+parameter; and SID+parameter. The number of bytes of the parameter is greater than or equal to 0. The length of the diagnostic service identifier (Service Identifier, SID) is fixed at 1 byte, which represents the function performed by this diagnostic command. The length of the sub-function is also 1 byte, which usually indicates the specific operation of this diagnostic service, such as starting, stopping or querying this diagnostic service. The parameter can be set with different contents according to the different diagnostic services, and there is no unified specification for its length and format. It is used to limit the conditions for the execution of diagnostic services, such as the execution time of a certain diagnostic service. An important application of parameter is as an identifier to identify the data content to be read by the diagnostic request.

[0044] It should be noted that sub-function is actually 7 bits, not 1 byte, because its highest bit is used to suppress positive response (SPR). If the highest bit is set to 1, the ECU will not give a positive response; conversely, if the highest bit is set to 0, the ECU will give a positive response. In this way, the ECU can be told not to send unnecessary responses to save communication resources.

[0045] On the other hand, the structure of the diagnostic response message is basically the same as that of the diagnostic request message, the only difference being that the CANID of the former may be a response ID, which is determined by the SA in the Ethernet message.

[0046] Furthermore, the diagnostic response message can also be divided into two categories: positive response and negative response. A positive response means that the diagnostic request sent by the diagnostic instrument has been executed. Its format is: response SID+sub function+parameter or response SID+parameter. Among them, the number of bytes of parameter is greater than or equal to 0, and the response SID is the SID of the diagnostic request+0x40. A negative response means that the current ECU cannot execute the diagnostic request sent by the diagnostic instrument for some reason, and the reason for the inability to execute is contained in the negative response message, and the format is: negative response SID+request SID+negative response code. Among them, the negative response is fixed to 3 bytes, the negative response SID is fixed to 7F, the request SID is the SID of the diagnostic request, and the negative response code is the reason for the negative response.

[0047] As mentioned above, the OTA master can upgrade and flash the target electronic control unit (ECU) component (the component to be flashed). For the entire vehicle system, the number of ECU components is usually as many as dozens, and the upgrade takes a long time, which may be as long as 120 to 150 minutes in some cases. If some ECU components have abnormalities during the upgrade process and need to be re-flashed, it may take longer and consume more power, which may cause the power supply battery to be insufficient, resulting in the failure of the upgrade.

[0048] In view of this, an embodiment of the present application provides a method for determining a vehicle upgrade power supply strategy. When the vehicle is undergoing OTA upgrade and application message communication is in a closed state, VBOX sends a diagnostic message to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery, and sends a diagnostic message to the body control unit to obtain the remaining power of the vehicle's storage battery. The vehicle power supply strategy and the vehicle's OTA upgrade strategy are then determined based on the acquired remaining power of the power battery and the remaining power of the storage battery. This ensures that the vehicle's battery remaining power can still be monitored during the vehicle OTA upgrade, so that the storage battery can be introduced to supplement the power supply when the remaining power of the vehicle's power battery is insufficient, and the OTA upgrade is suspended after the currently flashed ECU upgrade is completed when the remaining power of both the power battery and the storage battery is insufficient, thereby avoiding the failure of ECU component upgrade flashing due to vehicle power outages, improving the upgrade efficiency, and enhancing the user experience.

[0049] Figure 4 FIG. 1 is a flow chart of a method for determining a vehicle upgrade power supply strategy provided by an embodiment of the present application. Figure 4 As shown, the method comprises the following steps:

[0050] In step S401, in response to the detection determining that the vehicle meets the OTA upgrade conditions, the vehicle is controlled to enter the OTA upgrade mode and the application message communication is closed.

[0051] In step S402 , the vehicle-mounted measurement and data recording device VBOX is controlled to send a diagnostic message to the battery management system of the vehicle to obtain the remaining power of the power battery of the vehicle.

[0052] In step S403, the vehicle-mounted measurement and data recording device VBOX is controlled to send a diagnostic message to the battery management system of the vehicle to obtain the remaining power of the power battery of the vehicle.

[0053] In step S404, the power supply strategy of the vehicle and the OTA upgrade strategy of the vehicle are determined according to the remaining power of the power battery and the remaining power of the storage battery.

[0054] The vehicle power supply strategy includes powering the vehicle by the vehicle's power battery, powering the vehicle by the vehicle's storage battery, and powering the vehicle by both the vehicle's power battery and storage battery. The vehicle's OTA upgrade strategy is to upgrade each electronic control unit ECU of the vehicle in sequence and suspend OTA upgrade after the currently being processed ECU upgrade is completed.

[0055] The vehicle upgrade power supply strategy determination method provided in the embodiment of the present application can be used in the vehicle. Figure 1 The power supply strategy of the vehicle is determined during the OTA upgrade shown.

[0056] In the embodiment of the present application, when it is detected that the vehicle meets the OTA upgrade conditions, the vehicle can be controlled to enter the OTA upgrade mode and the application message communication can be turned off. At this time, the vehicle's VBOX cannot query the remaining power of the vehicle battery by sending application messages to the vehicle's battery management system (Battery Management System, BMS) or the vehicle's body control module (Body Control Module, BCM).

[0057] In an embodiment of the present application, the VBOX of the vehicle can be controlled to send a diagnostic message to the BMS to obtain the remaining power of the vehicle's power battery. On the other hand, the VBOX of the vehicle can also be controlled to send a diagnostic message to the BCM to obtain the remaining battery power of the vehicle. In one example, the VBOX can send 7E2 22F901 to the BMS to read the remaining percentage of the power battery power, and can also send 701 22F9 02 to the BCM to read the remaining percentage of the battery power. Among them, 7xx is a diagnostic message, which is used for communication in OTA mode, 0x701 is the BCM address, and 0x702 is the BMS address.

[0058] In the embodiment of the present application, after obtaining the remaining power of the power battery and the remaining power of the storage battery, the vehicle can determine the power supply strategy of the vehicle and the OTA upgrade strategy of the vehicle according to the remaining power of the power battery and the remaining power of the storage battery, so as to determine whether to use the power battery or the storage battery to power the vehicle alone, or to use the power battery and the storage battery to power the vehicle together, when the power battery and the storage battery of the vehicle meet different remaining power conditions respectively. Furthermore, under different power supply strategies, different OTA upgrade strategies can also be adopted, including upgrading each ECU of the vehicle in sequence when the power battery or the storage battery has sufficient power, and pausing the OTA upgrade after the ECU upgrade currently being processed is completed when the power battery and the storage battery are insufficient, so as to avoid the failure of the ECU upgrade caused by the power failure of the vehicle.

[0059] According to the technical solution provided in the embodiment of the present application, when the vehicle is undergoing OTA upgrade and the application message communication is in a closed state, VBOX sends a diagnostic message to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery, and sends a diagnostic message to the body control unit to obtain the remaining power of the vehicle's storage battery, and then determines the vehicle's power supply strategy and the vehicle's OTA upgrade strategy based on the acquired remaining power of the power battery and the remaining power of the storage battery. This ensures that the vehicle's battery remaining power can still be monitored during the vehicle's OTA upgrade, so that the storage battery can be introduced to supplement the power supply when the remaining power of the vehicle's power battery is insufficient, and suspends the OTA upgrade after the currently flashed ECU upgrade is completed when the remaining power of both the power battery and the storage battery is insufficient, thereby avoiding the failure of ECU component upgrade flashing due to vehicle power outages, improving upgrade efficiency, and enhancing user experience.

[0060] Figure 5 1 is a flow chart of a method for determining a vehicle power supply strategy based on the remaining power of the power battery and the remaining power of the storage battery provided in an embodiment of the present application. Figure 5 As shown, the method comprises the following steps:

[0061] In step S501, in response to the remaining power of the power battery being greater than a first preset threshold, the power battery is used to power the vehicle, and each ECU of the vehicle is upgraded in sequence.

[0062] In step S502, in response to the remaining power of the power battery being greater than the second preset threshold and less than or equal to the first preset threshold, and the remaining power of the storage battery being greater than the third preset threshold, the power battery and the storage battery are used together to power the vehicle, and each ECU of the vehicle is upgraded in turn.

[0063] In step S503, in response to the remaining power of the power battery being less than or equal to the second preset threshold and the remaining power of the storage battery being greater than the third preset threshold, the storage battery is used to power the vehicle and each ECU of the vehicle is upgraded in sequence.

[0064] In step S504, in response to the remaining power of the power battery being less than or equal to the second preset threshold, and the remaining power of the battery being less than or equal to the third preset threshold and greater than the fourth preset threshold, the battery is used to power the vehicle, and the OTA upgrade is suspended after the ECU upgrade currently being processed is completed.

[0065] In step S505, in response to the remaining power of the power battery being less than or equal to the second preset threshold and the remaining power of the storage battery being less than or equal to the fourth preset threshold, the power battery and the storage battery are used together to power the vehicle, and the OTA upgrade is suspended after the ECU upgrade currently being processed is completed.

[0066] In the embodiment of the present application, when it is determined that the remaining power of the power battery is greater than the first preset threshold, the power battery can be used to power the vehicle, and each ECU of the vehicle can be upgraded in sequence. When it is determined that the remaining power of the power battery is greater than the second preset threshold and less than or equal to the first preset threshold, and the remaining power of the storage battery is greater than the third preset threshold, the power battery and the storage battery can be used together to power the vehicle, and each ECU of the vehicle can be upgraded in sequence. When it is determined that the remaining power of the power battery is less than or equal to the second preset threshold, and the remaining power of the storage battery is greater than the third preset threshold, the storage battery can be used to power the vehicle, and each ECU of the vehicle can be upgraded in sequence. When it is determined that the remaining power of the power battery is less than or equal to the second preset threshold, and the remaining power of the storage battery is less than or equal to the third preset threshold and greater than the fourth preset threshold, the storage battery can be used to power the vehicle, and the OTA upgrade can be suspended after the ECU upgrade currently being processed is completed. When it is determined that the remaining power of the power battery is less than or equal to the second preset threshold, and the remaining power of the storage battery is less than or equal to the fourth preset threshold, the power battery and the storage battery can be used together to power the vehicle, and the OTA upgrade can be suspended after the ECU upgrade currently being processed is completed.

[0067] Among them, the specific values ​​of the first preset threshold, the second preset threshold, the third preset threshold and the fourth preset threshold can be determined according to actual needs and are not limited here.

[0068] In one example, the first preset threshold value can be set to 7%, the second preset threshold value to 3%, the third preset threshold value to 25%, and the fourth preset threshold value to 10%. When the remaining power percentage of the power battery is greater than 7%, the vehicle is powered by the power battery and the OTA upgrade can continue. When the remaining power percentage of the power battery is greater than 3% and less than or equal to 7%, the remaining power percentage of the storage battery can be further determined. If the remaining power percentage of the storage battery is greater than 25%, the vehicle can be powered by the power battery and the storage battery together, and the OTA upgrade can still continue.

[0069] When the remaining power percentage of the power battery is less than or equal to 3%, it means that the current remaining power of the power battery is too low. At this time, if the remaining power percentage of the battery is still greater than 25%, the power battery can be disconnected and only the battery can be used to power the vehicle. At the same time, OTA upgrades can still continue.

[0070] When the remaining power percentage of the power battery is less than or equal to 3%, and the remaining power percentage of the storage battery is greater than 10% and less than or equal to 25%, the vehicle can still be powered by the storage battery alone. At this time, since the remaining power of the storage battery is not sufficient, the OTA upgrade can be paused after the currently processing ECU upgrade is completed.

[0071] When the remaining power percentage of the power battery is less than or equal to 3%, and the remaining power percentage of the storage battery is less than or equal to 10%, since the remaining power of both the power battery and the storage battery is insufficient, the power battery and the storage battery can be used again to power the vehicle to ensure that the ECU currently being processed can complete the upgrade and flash, and the OTA upgrade will be suspended after the upgrade is completed.

[0072] In an embodiment of the present application, when the OTA upgrade is suspended, the ECU components that have been upgraded and those that have not been upgraded can be recorded, and when the vehicle is recharged and the OTA main control is started again, the upgrade operation can be continued for the ECU components that have not been upgraded.

[0073] That is to say, in an embodiment of the present application, after pausing the OTA upgrade, when a start OTA signal is detected that the vehicle resends after charging is completed, the power battery can be used again to power the vehicle and upgrade the remaining ECUs of the vehicle in turn.

[0074] In the embodiment of the present application, the vehicle meets the OTA upgrade conditions when the vehicle is stationary, the vehicle gear is in the parking gear, the vehicle electronic parking EPB control unit is in a clamped state, and the remaining power of the vehicle's power battery is greater than the fifth preset threshold, and the remaining power of the vehicle's battery is greater than the sixth preset threshold. Among them, the fifth preset threshold is greater than the first preset threshold, and the sixth preset threshold is greater than the third preset threshold. In an example, the fifth preset threshold is, for example, 15%, and the sixth preset threshold is, for example, 65%.

[0075] That is to say, the vehicle can determine that it meets the OTA upgrade conditions after completing the following judgments:

[0076] VBOX sends the application message ESP_VehicleSpeedValid to the Electronic Stability Program (ESP) to query the vehicle status and confirm that the vehicle is stationary.

[0077] VBOX sends the application message VCU_actualGear to the vehicle control unit (VCU) to query whether the gear is in the parking gear (P gear);

[0078] VBOX sends the application message EPB_States to the Electronic Park Brake (EPB) brake unit to query whether the EPB state is in the clamping state;

[0079] VBOX sends the application message BMS_SOC to BMS to query whether the remaining power of the power battery is greater than 15%, and sends the application message BCM_ebs_SOC to BCM to query whether the battery power is greater than 65%.

[0080] In the embodiment of the present application, when it is determined that the vehicle meets the above OTA upgrade conditions, VBOX can send an OTA_ON maintenance state signal (Tbox_OTAPowerCtrlReq=0x1:OTA_ON) to BCM to put the vehicle into OTA mode. At this time, the vehicle can be set to be powered by a power battery, and VBOX can be controlled to periodically send 3E 80 to maintain OTA mode to BCM to keep the vehicle in OTA mode.

[0081] In the embodiment of the present application, after the vehicle enters the OTA mode, the vehicle can close the application message communication and only open the network management communication. In one example, the DTC recording prohibition can be configured through the TBOX function addressing 85 82, the communication control closing 1 can be configured through the TBOX function addressing 28 83 01, the communication control closing 2 can be configured through the TBOX function addressing 28 83 03, and the TBOX physical addressing can be sent to the GW 28 80 02 to open the network management message.

[0082] In the embodiment of the present application, controlling VBOX to send a diagnostic message to the battery management system may be to control VBOX to periodically send a diagnostic message to the battery management system; or in response to receiving a power battery remaining power query instruction, controlling VBOX to send a diagnostic message to the battery management system. On the other hand, controlling VBOX to send a diagnostic message to the vehicle body control unit may be to control VBOX to periodically send a diagnostic message to the vehicle body control unit; or in response to receiving a battery remaining power query instruction, controlling VBOX to send a diagnostic message to the vehicle body control unit.

[0083] That is to say, VBOX can periodically send diagnostic messages to BMS to obtain the remaining power of the power battery, or send diagnostic messages to BMS to obtain the remaining power of the power battery after receiving the remaining power battery query command sent by the user. Similarly, VBOX can periodically send diagnostic messages to BCM to obtain the remaining power of the battery, or send diagnostic messages to BCM to obtain the remaining power of the battery after receiving the remaining power battery query command sent by the user.

[0084] In the embodiment of the present application, after the vehicle is detected and determined to meet the OTA upgrade conditions and the vehicle is controlled to enter the OTA upgrade mode, the power battery can be used to power the vehicle, and each ECU of the vehicle can be upgraded in sequence. That is to say, after the vehicle is determined to meet the OTA upgrade conditions and the vehicle is controlled to enter the OTA upgrade mode, since the vehicle OTA upgrade conditions include that the remaining power of the vehicle power battery is greater than the fifth preset threshold, and the fifth preset threshold is greater than the third preset threshold, it can be directly determined that the vehicle power supply strategy can use the power battery to power the vehicle, and the OTA upgrade strategy is to upgrade each ECU of the vehicle in sequence.

[0085] In the embodiment of the present application, switching of different vehicle power supply strategies can be achieved by switching the vehicle's KL15 power switch.

[0086] FIG6(A) and FIG6(B) are schematic diagrams of two types of vehicles supplying power to each ECU through a power battery and / or a storage battery. As shown in FIG6(A), each ECU is connected to the VGW through an Ethernet bus or a CAN bus, and communicates through Ethernet or CAN. The power supply voltage of each ECU is 12 volts (V). The battery directly provides a 12V voltage, and the power battery needs to be stepped down to 12V through a direct current transformer (DCDC) to supply power to each ECU. VBOX, vehicle control unit (VCU), BMS, BCM and other ECUs are connected to the battery or power battery through the K1 relay switch for power supply. These ECUs are powered by the battery by default. When the vehicle power is turned off, the adaptive cruise control (ACC) is powered by the battery, and when the vehicle power is turned on, it is switched to the power battery. When the vehicle power is turned on, the other ECUs are powered by the ignition switch relay (IGN) closed by the BCM and switched to the K2 switch, and the power battery is powered by the 12V power supply through the DCDC. When the vehicle power is turned on, VBOX, VCU, BMS, BCM and other ECU components are also switched from battery power to power battery to save battery power. At this time, the battery is also charged by DCDC.

[0087] The power supply method shown in FIG6(B) is basically the same as that in FIG6(A), except that switches K1 and K2 are replaced by K15-1 and K15-2 respectively. VBOX, VCU, BMS, and BCM still default to the ACC gear being powered by the battery when the vehicle power gear is off, and switching from the battery power to the power battery when the vehicle power gear is on. Other ECU components are powered by the power battery when the vehicle power gear is on.

[0088] Figure 7 Schematic diagram of the method of providing power to each ECU by a power battery and / or storage battery provided by the vehicle in the embodiment of the present application. Figure 7As shown, when the vehicle is in OTA upgrade mode, VBOX communicates with VGW via CAN bus or ETH, and VGW communicates with BCM, VCU, BMS and other ECU components via CAN bus. VBOX obtains the remaining power of the power battery from BMS through diagnostic messages, and obtains the remaining power of the storage battery from BCM through diagnostic messages. Based on the obtained remaining power of the power battery and the remaining power of the storage battery, the vehicle determines the power supply strategy, and controls the switch K to be connected to the power battery through relay KL15 according to the determined power supply strategy, so that the power battery alone supplies power to the vehicle, or to be connected to the storage battery through relay KL30, so that the storage battery alone supplies power to the vehicle, or to be connected to the power battery and the storage battery at the same time through relay KL15 and relay KL30, so that the power battery and the storage battery jointly supply power to the vehicle.

[0089] The technical solution of the embodiment of the present application is that when the power battery is low on power, the storage battery replenishes power for upgrading and flashing to ensure the success of upgrading and flashing; when the storage battery is low on power, the power battery replenishes power for upgrading and flashing to ensure the success of upgrading and flashing. It can support querying the power of BMS and EBS in OTA mode, support power supply by power battery and storage battery together, support power supply by storage battery in high-voltage flashing mode, and support power battery supplementary power supply in low-voltage flashing mode.

[0090] By adopting the technical solution of the embodiment of the present application, when the communication of OTA mode applications is disabled, the problem of normal communication between the ECU components is diagnosed, the battery power is obtained by using the diagnostic message, and the relays are controlled to be combined according to the power status. When the power supply battery is insufficient, the power is supplemented by the combination of the power battery and the battery switch, thereby ensuring that the power supply battery will not fail to upgrade due to power loss.

[0091] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0092] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0093] Figure 8 Schematic diagram of a vehicle upgrade power supply strategy determination device provided in an embodiment of the present application. Figure 8 As shown, the device comprises:

[0094] The upgrade start module 801 is configured to control the vehicle to enter the OTA upgrade mode and close the application message communication in response to the detection that the vehicle meets the OTA upgrade conditions.

[0095] The acquisition module 802 is configured to control the vehicle-mounted measurement and data recording device VBOX to send a diagnostic message to the battery management system of the vehicle to obtain the remaining power of the power battery of the vehicle.

[0096] The acquisition module 802 is further configured to control the VBOX to send a diagnostic message to the vehicle body control unit to acquire the remaining battery power of the vehicle.

[0097] The determination module 803 is configured to determine the vehicle's power supply strategy and the vehicle's OTA upgrade strategy according to the remaining power of the power battery and the remaining power of the storage battery.

[0098] Among them, the vehicle's power supply strategies include powering the vehicle by the vehicle's power battery, powering the vehicle by the vehicle's storage battery, and powering the vehicle by the vehicle's power battery and storage battery together; the vehicle's OTA upgrade strategy is to upgrade each electronic control unit ECU of the vehicle in sequence and suspend OTA upgrade after the currently being processed ECU upgrade is completed.

[0099] According to the technical solution provided in the embodiment of the present application, when the vehicle is undergoing OTA upgrade and the application message communication is in a closed state, VBOX sends a diagnostic message to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery, and sends a diagnostic message to the body control unit to obtain the remaining power of the vehicle's storage battery, and then determines the vehicle's power supply strategy and the vehicle's OTA upgrade strategy based on the acquired remaining power of the power battery and the remaining power of the storage battery. This ensures that the vehicle's battery remaining power can still be monitored during the vehicle's OTA upgrade, so that the storage battery can be introduced to supplement the power supply when the remaining power of the vehicle's power battery is insufficient, and suspends the OTA upgrade after the currently flashed ECU upgrade is completed when the remaining power of both the power battery and the storage battery is insufficient, thereby avoiding the failure of ECU component upgrade flashing due to vehicle power outages, improving upgrade efficiency, and enhancing user experience.

[0100] In an embodiment of the present application, a power supply strategy for a vehicle is determined based on the remaining power of the power battery and the remaining power of the storage battery, including: in response to the remaining power of the power battery being greater than a first preset threshold, using the power battery to power the vehicle, and upgrading each ECU of the vehicle in sequence; in response to the remaining power of the power battery being greater than a second preset threshold and less than or equal to the first preset threshold, and the remaining power of the storage battery being greater than a third preset threshold, using the power battery and the storage battery together to power the vehicle, and upgrading each ECU of the vehicle in sequence; in response to the remaining power of the power battery being less than or equal to the second preset threshold, and the remaining power of the storage battery being greater than the third preset threshold, using the storage battery to power the vehicle, and upgrading each ECU of the vehicle in sequence; in response to the remaining power of the power battery being less than or equal to the second preset threshold, and the remaining power of the storage battery being less than or equal to the third preset threshold and greater than the fourth preset threshold, using the storage battery to power the vehicle, and suspending the OTA upgrade after the ECU upgrade currently being processed is completed; in response to the remaining power of the power battery being less than or equal to the second preset threshold, and the remaining power of the storage battery being less than or equal to the fourth preset threshold, using the power battery and the storage battery together to power the vehicle, and suspending the OTA upgrade after the ECU upgrade currently being processed is completed.

[0101] In an embodiment of the present application, after pausing the OTA upgrade, it also includes: in response to detecting a start OTA signal resent by the vehicle after charging is completed, using a power battery to power the vehicle, and upgrading the remaining ECUs of the vehicle in turn.

[0102] In an embodiment of the present application, the vehicle meets the OTA upgrade conditions, including: the vehicle is in a stationary state; the vehicle gear is in the parking gear; the vehicle electronic parking EPB control unit is in a clamped state; the remaining power of the vehicle's power battery is greater than the fifth preset threshold; and the remaining power of the vehicle's battery is greater than the sixth preset threshold; wherein the fifth preset threshold is greater than the first preset threshold, and the sixth preset threshold is greater than the third preset threshold.

[0103] In an embodiment of the present application, controlling VBOX to send a diagnostic message to a battery management system includes: controlling VBOX to periodically send a diagnostic message to the battery management system; or in response to receiving a power battery remaining power query instruction, controlling VBOX to send a diagnostic message to the battery management system; controlling VBOX to send a diagnostic message to a vehicle body control unit includes: controlling VBOX to periodically send a diagnostic message to a vehicle body control unit; or in response to receiving a battery remaining power query instruction, controlling VBOX to send a diagnostic message to the vehicle body control unit.

[0104] In an embodiment of the present application, it also includes: in response to detecting and determining that the vehicle meets the OTA upgrade conditions, after controlling the vehicle to enter the OTA upgrade mode, using a power battery to power the vehicle, and upgrading each ECU of the vehicle in turn.

[0105] In the embodiment of the present application, switching of different vehicle power supply strategies is achieved by switching the KL15 power switch of the vehicle.

[0106] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0107] Fig. 9 Schematic diagram of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device 9 of this embodiment includes: a processor 901, a memory 902, and a computer program 903 stored in the memory 902 and executable on the processor 901. When the processor 901 executes the computer program 903, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 901 executes the computer program 903, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0108] The electronic device 9 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 9 may include, but is not limited to, a processor 901 and a memory 902. Those skilled in the art will appreciate that Fig. 9 The electronic device 9 is merely an example and does not limit the electronic device 9 , and may include more or less components than those shown in the figure, or different components.

[0109] The processor 901 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0110] The memory 902 may be an internal storage unit of the electronic device 9, for example, a hard disk or memory of the electronic device 9. The memory 902 may also be an external storage device of the electronic device 9, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 9. The memory 902 may also include both an internal storage unit of the electronic device 9 and an external storage device. The memory 902 is used to store computer programs and other programs and data required by the electronic device.

[0111] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules 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 above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0112] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0113] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for determining a vehicle upgrade power supply strategy, characterized in that: The method is used to determine the power supply strategy of the vehicle when the vehicle is upgraded by over-the-air download technology OTA, and the method includes: In response to the detection determining that the vehicle meets the OTA upgrade conditions, controlling the vehicle to enter the OTA upgrade mode and shutting down the application message communication; Control the on-board measurement and data recording device VBOX to send diagnostic messages to the vehicle's battery management system to obtain the remaining power of the vehicle's power battery; Control VBOX to send diagnostic messages to the vehicle's body control unit to obtain the vehicle's battery remaining power; Determining a power supply strategy for the vehicle and an OTA upgrade strategy for the vehicle according to the remaining power of the power battery and the remaining power of the storage battery; The power supply strategy of the vehicle includes powering the vehicle by the power battery of the vehicle, powering the vehicle by the storage battery of the vehicle, and powering the vehicle by the power battery and the storage battery of the vehicle together; The OTA upgrade strategy of the vehicle is to upgrade each electronic control unit ECU of the vehicle in sequence or to suspend the OTA upgrade after the upgrade of the currently processed ECU is completed; Determining a power supply strategy of the vehicle and an OTA upgrade strategy of the vehicle according to the remaining power of the power battery and the remaining power of the storage battery, including: In response to the remaining power of the power battery being greater than a first preset threshold, using the power battery to power the vehicle, and upgrading each ECU of the vehicle in sequence; In response to the remaining power of the power battery being greater than a second preset threshold and less than or equal to the first preset threshold, and the remaining power of the storage battery being greater than a third preset threshold, using the power battery and the storage battery together to power the vehicle, and sequentially upgrading each ECU of the vehicle; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being greater than a third preset threshold, using the storage battery to power the vehicle, and sequentially upgrading each ECU of the vehicle; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being less than or equal to a third preset threshold and greater than a fourth preset threshold, using the storage battery to power the vehicle, and suspending the OTA upgrade after the ECU upgrade currently being processed is completed; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being less than or equal to a fourth preset threshold, the power battery and the storage battery are used together to power the vehicle, and the OTA upgrade is suspended after the ECU upgrade currently being processed is completed.

2. The method according to claim 1, characterized in that After pausing the OTA upgrade, the method further includes: In response to detecting a start OTA signal resent by the vehicle after charging is completed, the power battery is used to power the vehicle, and the remaining ECUs of the vehicle are upgraded in sequence.

3. The method according to claim 1, characterized in that The vehicle meets the OTA upgrade conditions, including: The vehicle is stationary; and The vehicle is in Park; and The vehicle's electronic parking brake (EPB) control unit is in a clamped state; and The remaining power of the vehicle's power battery is greater than a fifth preset threshold; and The remaining battery power of the vehicle is greater than a sixth preset threshold; Among them, the fifth preset threshold is greater than the first preset threshold, and the sixth preset threshold is greater than the third preset threshold.

4. The method according to claim 1, characterized in that Controlling VBOX to send diagnostic messages to the battery management system includes: Control VBOX to periodically send diagnostic messages to the battery management system; or In response to receiving a power battery remaining power query instruction, controlling VBOX to send a diagnostic message to a battery management system; Controlling VBOX to send diagnostic messages to the body control unit includes: Control VBOX to periodically send diagnostic messages to the body control unit; or In response to receiving the battery remaining power query instruction, VBOX is controlled to send a diagnostic message to the vehicle body control unit.

5. The method according to claim 1, characterized in that The method further comprises: In response to the detection determining that the vehicle meets the OTA upgrade conditions, after controlling the vehicle to enter the OTA upgrade mode, the power battery is used to power the vehicle, and each ECU of the vehicle is upgraded in sequence.

6. The method according to any one of claims 1 to 5, characterized in that Switching between different vehicle power supply strategies is achieved by switching the vehicle's KL15 power switch.

7. A vehicle upgrade power supply strategy determination device, characterized in that: The vehicle is a vehicle that is being upgraded using an over-the-air (OTA) technology, and the device includes: An upgrade start module is configured to control the vehicle to enter an OTA upgrade mode and disable application message communication in response to detecting that the vehicle meets OTA upgrade conditions; An acquisition module is configured to control the vehicle-mounted measurement and data recording device VBOX to send a diagnostic message to the battery management system of the vehicle to obtain the remaining power of the power battery of the vehicle; The acquisition module is further configured to control the VBOX to send a diagnostic message to a body control unit of the vehicle to obtain the remaining battery power of the vehicle; A determination module, configured to determine a power supply strategy for the vehicle and an OTA upgrade strategy for the vehicle according to the remaining power of the power battery and the remaining power of the storage battery; The power supply strategy of the vehicle includes powering the vehicle by the power battery of the vehicle, powering the vehicle by the storage battery of the vehicle, and powering the vehicle by the power battery and the storage battery of the vehicle together; The OTA upgrade strategy of the vehicle is to upgrade each electronic control unit ECU of the vehicle in sequence or to suspend the OTA upgrade after the upgrade of the currently processed ECU is completed; Determining a power supply strategy of the vehicle and an OTA upgrade strategy of the vehicle according to the remaining power of the power battery and the remaining power of the storage battery, including: In response to the remaining power of the power battery being greater than a first preset threshold, using the power battery to power the vehicle, and upgrading each ECU of the vehicle in sequence; In response to the remaining power of the power battery being greater than a second preset threshold and less than or equal to the first preset threshold, and the remaining power of the storage battery being greater than a third preset threshold, using the power battery and the storage battery together to power the vehicle, and sequentially upgrading each ECU of the vehicle; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being greater than a third preset threshold, using the storage battery to power the vehicle, and sequentially upgrading each ECU of the vehicle; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being less than or equal to a third preset threshold and greater than a fourth preset threshold, using the storage battery to power the vehicle, and suspending the OTA upgrade after the ECU upgrade currently being processed is completed; In response to the remaining power of the power battery being less than or equal to a second preset threshold, and the remaining power of the storage battery being less than or equal to a fourth preset threshold, the power battery and the storage battery are used together to power the vehicle, and the OTA upgrade is suspended after the ECU upgrade currently being processed is completed.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Upgrading method and device, readable storage medium, and vehicle

    CN113760326A

  • Vehicle upgrading method, system and device and vehicle

    CN116594656A

  • ECU remote upgrading method and system

    WO2023103552A1