Search

CN-117278353-B - Variable-rate OTA upgrading method and device and VBOX

CN117278353BCN 117278353 BCN117278353 BCN 117278353BCN-117278353-B

Abstract

The application relates to the field of intelligent networking automobiles, and provides a variable-rate OTA upgrading method, a variable-rate OTA upgrading device and a variable-rate VBOX. The method includes the steps of sending a first message frame to a target flashing ECU at a first master control bus rate, determining a second slave control bus rate and a second master control bus code according to a first slave control load rate and the first slave control bus rate which are extracted from a first response message, sending the second slave control bus code to the target flashing ECU so that the target flashing ECU adjusts the first slave control bus rate to a second slave control bus rate corresponding to the second slave control bus code, adjusting the first master control bus rate to a second master control bus rate consistent with the second slave control bus rate, and sending a second message frame to the target flashing ECU at the second master control bus rate. The application can realize variable-rate data transmission and upgrade refreshing according to the refreshing capability and the load rate of the ECU, thereby realizing optimal upgrade refreshing and having higher efficiency.

Inventors

  • HAN BO
  • TANG RUYI
  • WANG XINGXING
  • Deng Lingtian
  • CHEN JIANWEI

Assignees

  • 重庆赛力斯新能源汽车设计院有限公司

Dates

Publication Date
20260505
Application Date
20230928

Claims (10)

  1. 1. A method of variable rate OTA upgrades comprising: Determining the maximum slave control bus rate of a target flash ECU, and sending a first message frame to the target flash ECU at a first master control bus rate, wherein the first message frame comprises the first master control bus rate and a first master control bus code corresponding to the first master control bus rate, and the first master control bus rate is smaller than the maximum slave control bus rate; Receiving a first response message fed back by the target flashing ECU aiming at the first message frame, and extracting a first slave control load rate and a first slave control bus rate of the target flashing ECU from the first response message; Determining a second slave control bus rate and a corresponding second master control bus code according to the first slave control load rate and the first slave control bus rate; sending a rate adjustment message to the target flashing ECU, wherein the rate adjustment message comprises the second slave bus code, so that the target flashing ECU determines a second slave bus rate based on the second slave bus code, and adjusts the first slave bus rate to the second slave bus rate; when a second response message fed back by the target handwriting ECU is received, determining a second master control bus rate, and adjusting the first master control bus rate to the second master control bus rate, wherein the second slave control bus rate is consistent with the second master control bus rate; And sending a second message frame to the target flashing ECU at the second master control bus rate.
  2. 2. The method of claim 1, wherein determining a second slave bus rate and its corresponding second master bus code based on the first slave load rate and first slave bus rate comprises: if the first slave control load rate is in a first set load range, calculating a first brushing rate corresponding to a first end value of the first slave control load rate which is downwards regulated to a second set load range, and a second brushing rate corresponding to a second end value of the second set load range; Executing a rate downregulation strategy to gradually downregulate the first slave bus rate to the first brushing rate, the second brushing rate, or any rate value between the first brushing rate and the second brushing rate if the first slave bus rate is greater than the second brushing rate, and determining a second slave bus rate; And calculating a second slave bus code according to the second slave bus rate.
  3. 3. The method of claim 2, wherein prior to calculating a second slave bus code based on the second slave bus rate, further comprising: And if the first slave load rate is within a third set load range, executing a rate up-regulation strategy to up-regulate the first slave bus rate to the first or second brushing rate or any rate value between the first and second brushing rates, and determining a second slave bus rate.
  4. 4. The method of claim 2, wherein executing a rate downregulation strategy to gradually downregulate the first slave bus rate to the first flush rate, or the second flush rate, or any rate value between the first flush rate and the second flush rate, and determining a second slave bus rate comprises: calculating an ith down-regulating bus rate according to a preset down-regulating rate step length and the first slave control bus rate, wherein i is a positive integer; If the ith down-regulating bus rate is greater than the second brushing rate, making i=i+1, and continuously calculating the ith down-regulating bus rate according to a preset down-regulating rate step length and the ith down-regulating bus rate; And if the ith down-regulating bus rate is equal to the second brushing rate, or is larger than the first brushing rate and smaller than the second brushing rate, or is equal to the first brushing rate, determining the ith down-regulating bus rate as a second slave bus rate.
  5. 5. The method of claim 2, wherein gradually adjusting the first slave bus rate down to the first flush rate and determining a second slave bus rate comprises: calculating a first rate difference between the first slave bus rate and the first flush rate; And taking the first rate difference value as a one-time down-regulating amplitude, down-regulating the first slave bus rate to the first brushing rate at one time, and determining the first brushing rate as a second slave bus rate.
  6. 6. The method of claim 2, wherein calculating a second slave bus code based on the second slave bus rate comprises: calculating a rate difference between the first slave bus rate and the second slave bus rate; And calculating a second slave control bus code corresponding to the second slave control bus rate according to the rate difference value and the first set step length.
  7. 7. The method of claim 1, wherein adjusting the first master bus rate to a second master bus rate comprises: Calculating a second rate difference between the first master bus rate and the second master bus rate; And adjusting the first master bus rate up or down according to the second rate difference value so as to adjust the first master bus rate to be consistent with the second master bus rate.
  8. 8. A variable rate OTA upgrade apparatus comprising: The first determining module is configured to determine a maximum slave control bus rate of the target flash ECU, and send a first message frame to the target flash ECU at a first master control bus rate, wherein the first message frame comprises the first master control bus rate and a first master control bus code corresponding to the first master control bus rate, and the first master control bus rate is smaller than the maximum slave control bus rate; The receiving module is configured to receive a first response message fed back by the target flashing ECU aiming at the first message frame, and extract a first slave control load rate and a first slave control bus rate of the target flashing ECU from the first response message; A second determining module configured to determine a second slave bus rate and its corresponding second master bus code according to the first slave load rate and the first slave bus rate; A first sending module configured to send a rate adjustment message to the target flush ECU, the rate adjustment message including the second slave bus code, to cause the target flush ECU to determine a second slave bus rate based on the second slave bus code, and adjust the first slave bus rate to the second slave bus rate; the adjusting module is configured to determine a second master control bus rate when receiving a second response message fed back by the target brush ECU, and adjust the first master control bus rate to the second master control bus rate, wherein the second slave control bus rate is consistent with the second master control bus rate; And the second sending module is configured to send a second message frame to the target flashing ECU at the second master bus rate.
  9. 9. A VBOX comprising a variable rate OTA upgrade apparatus as defined in claim 8.
  10. 10. A readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 7.

Description

Variable-rate OTA upgrading method and device and VBOX Technical Field The application relates to the field of intelligent networking automobiles, in particular to a variable-rate OTA upgrading method and device and VBOX. Background At present, a scheme of updating and writing an ECU (Electronic Control Unit ) in a vehicle through CAN (UDS protocol) is based on OTA (Over-the-Air Technology) and the writing speed is fixed to be 250Kbps or 500Kbps. The refresh rate capability and requirements of different ECUs are different for numerous ECU components within the vehicle, for example, some ECU components may support a refresh rate of 1Mbps and some ECU components may support a refresh rate of only 250 Kbps. If the existing upgrade flushing scheme is adopted, only the mode supporting the minimum flushing rate can be selected to perform upgrade flushing on each ECU (electronic control unit) in the vehicle, and the upgrade flushing efficiency of the mode is low for the ECU supporting the higher flushing rate. Disclosure of Invention In view of this, the embodiments of the present application provide a variable-rate OTA upgrading method, apparatus, and VBOX, so as to solve the problem in the prior art that only a mode supporting a minimum refresh rate can be selected to upgrade and refresh each ECU part in a vehicle, and for an ECU supporting a higher refresh rate, upgrade and refresh efficiency is low. In a first aspect of an embodiment of the present application, there is provided a variable rate OTA upgrade method, including: determining the maximum slave control bus rate of the target flash ECU, and sending a first message frame to the target flash ECU at a first master control bus rate, wherein the first message frame comprises the first master control bus rate and a first master control bus code corresponding to the first master control bus rate, and the first master control bus rate is smaller than the maximum slave control bus rate; Receiving a first response message fed back by the target flashing ECU aiming at the first message frame, and extracting a first slave control load rate and a first slave control bus rate of the target flashing ECU from the first response message; Determining a second slave control bus rate and a corresponding second master control bus code according to the first slave control load rate and the first slave control bus rate; Sending a rate adjustment message to the target flashing ECU, wherein the rate adjustment message comprises a second slave bus code, so that the target flashing ECU determines a second slave bus rate based on the second slave bus code and adjusts the first slave bus rate to the second slave bus rate; When a second response message fed back by the target brushing ECU is received, determining a second master control bus rate, and adjusting the first master control bus rate to the second master control bus rate, wherein the second slave control bus rate is consistent with the second master control bus rate; And sending a second message frame to the target brush ECU at a second master bus rate. In a second aspect of an embodiment of the present application, there is provided a variable rate OTA upgrade apparatus, including: The first determining module is configured to determine a maximum slave control bus rate of the target flash ECU, and send a first message frame to the target flash ECU at a first master control bus rate, wherein the first message frame comprises the first master control bus rate and a first master control bus code corresponding to the first master control bus rate, and the first master control bus rate is smaller than the maximum slave control bus rate; The receiving module is configured to receive a first response message fed back by the target flashing ECU aiming at the first message frame, and extract a first slave control load rate and a first slave control bus rate of the target flashing ECU from the first response message; The second determining module is configured to determine a second slave control bus rate and a corresponding second master control bus code according to the first slave control load rate and the first slave control bus rate; the first sending module is configured to send a rate adjustment message to the target writing ECU, wherein the rate adjustment message comprises a second slave bus code, so that the target writing ECU determines a second slave bus rate based on the second slave bus code and adjusts the first slave bus rate to the second slave bus rate; The adjusting module is configured to determine a second master control bus rate when receiving a second response message fed back by the target brush ECU, and adjust the first master control bus rate to the second master control bus rate, wherein the second slave control bus rate is consistent with the second master control bus rate; And the second sending module is configured to send a second message frame to the target brushing ECU at a second master bus rate.