Vehicle upgrade progress display method, proxy node and master node
By calculating upgrade weights and combining upgrade progress, package size, and network speed, the problem of inaccurate calculation of vehicle software upgrade progress was solved, achieving accurate display of the upgrade process and improving user experience.
Patent Information
- Application Number
- CN202510095201.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-01-21
AI Technical Summary
In the existing technology, the calculation of the vehicle software upgrade progress is inaccurate, resulting in poor user judgment and experience of the upgrade process.
By acquiring the upgrade progress, upgrade package size, and network transmission rate of the proxy nodes and the devices to be upgraded, the upgrade weight is calculated to achieve accurate display of the total upgrade progress.
It improves the real-time performance and accuracy of upgrade progress, reduces the gap between expectations and reality caused by uneven progress rates, and enhances the user upgrade experience.
Smart Images

Figure CN119893498B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software update technology, specifically to a method for displaying vehicle upgrade progress, an agent node, and a master node. Background Technology
[0002] With the application of Over-the-Air (OTA) programming technology in the automotive field, it has become possible to push the latest software to the vehicle via wireless communication, enabling vehicle software upgrades. The vehicle's display can also show the upgrade progress. However, existing technologies suffer from inaccurate calculations of the upgrade progress. Summary of the Invention
[0003] The purpose of this invention is to provide a method for displaying the upgrade progress of a vehicle, so as to solve the problem of inaccurate calculation of the upgrade progress of the whole vehicle software in the prior art.
[0004] In a first aspect, embodiments of this application provide a method for displaying the upgrade progress of a vehicle. The method is applied to a proxy node, wherein a master node and at least one proxy node are deployed in the vehicle, the master node is connected to the proxy node, and the proxy node is connected to at least one device to be upgraded. The method includes:
[0005] During the upgrade process using the upgrade package sent by the master node, the first upgrade progress, upgrade package size, and network transmission rate of the proxy node performing the upgrade or the device to be upgraded connected to the proxy node are obtained;
[0006] The second upgrade progress of the proxy node is determined based on the first upgrade progress, upgrade package size, and network transmission rate of the proxy node performing the upgrade and / or the device to be upgraded connected to the proxy node;
[0007] The second upgrade progress of the proxy node is sent to the master node; wherein the second upgrade progress is used to determine and display the total upgrade progress of the upgrade package.
[0008] Secondly, embodiments of this application provide a method for displaying the upgrade progress of a vehicle. The method is applied to a master node, the vehicle having a master node and at least one proxy node deployed thereon. The master node is connected to the proxy node, and the proxy node is connected to at least one device to be upgraded. The method includes:
[0009] The upgrade package is distributed to the proxy node based on the proxy node and the device to be upgraded connected to the proxy node;
[0010] Obtain the second upgrade progress sent by the proxy node; wherein the second upgrade progress is determined based on the first upgrade progress of the proxy node performing the upgrade and / or the upgradeable device connected to the proxy node, the upgrade package size, and the network transmission rate;
[0011] Based on the second upgrade progress and upgrade package size of each agent node, the total upgrade progress of the upgrade package is determined and displayed.
[0012] Thirdly, embodiments of this application provide a second upgrade progress display device for a vehicle. The method is applied to an agent node, wherein a master node and at least one agent node are deployed in the vehicle, the master node is connected to the agent node, and the agent node is connected to at least one device to be upgraded. The method includes:
[0013] The acquisition module is used to acquire the first upgrade progress, upgrade package size, and network transmission rate of the proxy node performing the upgrade or the device to be upgraded connected to the proxy node during the upgrade process using the upgrade package sent by the master node;
[0014] The processing module is configured to determine the second upgrade progress of the proxy node based on the first upgrade progress of the proxy node performing the upgrade and / or the upgrade progress of the device to be upgraded connected to the proxy node, the upgrade package size, and the network transmission rate; and send the second upgrade progress of the proxy node to the master node; wherein the second upgrade progress is used to determine and display the total upgrade progress of the upgrade package.
[0015] Fourthly, embodiments of this application provide a method for displaying the upgrade progress of a vehicle. The method is applied to a master node, and the vehicle has a master node and at least one proxy node deployed thereon. The master node is connected to the proxy node, and the proxy node is connected to at least one device to be upgraded. The method includes:
[0016] The distribution module is used to distribute the upgrade package to the proxy node based on the proxy node and the device to be upgraded connected to the proxy node;
[0017] The acquisition module is used to acquire the second upgrade progress sent by the proxy node; wherein the second upgrade progress is determined based on the first upgrade progress of the proxy node performing the upgrade and / or the upgradeable device connected to the proxy node, the upgrade package size, and the network transmission rate;
[0018] The processing module is used to determine and display the total upgrade progress of the upgrade package based on the second upgrade progress of each agent node and the size of the upgrade package.
[0019] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect as described above, or, when executed by a processor, are used to implement the second aspect and / or various possible implementations of the second aspect as described above.
[0020] In a sixth aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect as described above, or the computer execution instructions, when executed by a processor, are used to implement the second aspect and / or various possible implementations of the second aspect as described above.
[0021] The beneficial effects of this invention are:
[0022] This application improves the real-time performance of the overall upgrade progress by acquiring the initial upgrade progress of the device under upgrade. Furthermore, by using network transmission rate and upgrade packet size to calculate upgrade weights, the calculated upgrade progress changes more evenly over time, allowing users to accurately estimate upgrade time and reducing discrepancies between expectations and reality caused by uneven progress rates, thus effectively enhancing the user's upgrade experience. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a graph showing the upgrade progress of a proxy node proposed in this invention.
[0025] Figure 2 This is a schematic diagram illustrating the information of a device to be upgraded according to the present invention;
[0026] Figure 3 This is a schematic diagram illustrating the calculation of the upgrade progress of a proxy node proposed in this invention. Figure 1 ;
[0027] Figure 4 This is a schematic diagram illustrating the calculation of the upgrade progress of a proxy node proposed in this invention. Figure 2 ;
[0028] Figure 5 This is a schematic diagram illustrating the calculation of the upgrade progress of a proxy node proposed in this invention. Figure 3 ;
[0029] Figure 6 This is a graph showing the upgrade progress of a proxy node proposed in this invention.
[0030] Figure 7 This is a schematic diagram of the structure of a vehicle proposed in this invention;
[0031] Figure 8 Signaling interaction for a vehicle upgrade progress display method proposed in this invention Figure 1 ;
[0032] Figure 9 This invention proposes a method for displaying the upgrade progress of a vehicle. Figure 1 ;
[0033] Figure 10 This invention proposes a method for displaying the upgrade progress of a vehicle. Figure 2 ;
[0034] Figure 11 This invention proposes a method for displaying the upgrade progress of a vehicle. Figure 3 ;
[0035] Figure 12 This invention proposes a method for displaying the upgrade progress of a vehicle. Figure 4 ;
[0036] Figure 13 Signaling interaction for a vehicle upgrade progress display method proposed in this invention Figure 2 ;
[0037] Figure 14 This is a schematic diagram of the structure of a vehicle upgrade progress display device proposed in this invention. Figure 1 ;
[0038] Figure 15 This is a schematic diagram of the structure of a vehicle upgrade progress display device proposed in this invention. Figure 2 ;
[0039] Figure 16 This is a schematic diagram of the structure of a proxy node provided in this application, as proposed by the present invention. Figure 1 ;
[0040] Figure 17 This is a schematic diagram of the structure of a proxy node provided in this application, as proposed by the present invention. Figure 2 . Detailed Implementation
[0041] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0042] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0043] With the application of Over-the-Air (OTA) programming technology in the automotive field, it has become possible to upgrade the entire vehicle's software by pushing the latest software to the vehicle via wireless communication. This upgrade can include updating and upgrading the system, software, and data of various domain controllers, sensors, and upgrade-enabled ECUs within the vehicle. The vehicle's display can also show the progress of the software upgrade. Currently, during the upgrade process, a log of the OTA upgrade process can be created, and based on the log, the execution stage and progress of the current events during the OTA upgrade can be located, displaying the upgrade progress of each sensor and the upgrade progress corresponding to each sensor's upgrade weight, as well as the overall OTA upgrade progress. However, the OTA upgrade progress obtained by this method is a stage progress, which suffers from low accuracy in progress calculation during stage execution.
[0044] Currently, the upgrade progress of a single upgrade object only has two states: 0% and 100%. The vehicle's infotainment system can update the upgrade progress when it determines that a controller has completed the upgrade. For example, taking the upgrade of three controllers as an example, the upgrade progress curve can be as follows: Figure 1 As shown, the progress updates to 33% upon completion of one controller upgrade. The progress updates to 66% upon completion of two controller upgrades. The progress updates to 100% upon completion of all three controller upgrades. However, during this process, the upgrade progress may stagnate at a certain point for a long time or increase significantly in a short period, affecting the user's judgment of the overall upgrade progress and the upgrade experience.
[0045] To address the aforementioned problems, this application proposes a method for displaying vehicle upgrade progress. This application can set upgrade weights based on upgrade package size and network transmission rate during a single upgrade task, and calculate the total upgrade progress. Optionally, as... Figure 2 As shown, each controller can include two pieces of information: upgrade package size and network transmission rate. The network transmission rate can affect the controller's upgrade rate.
[0046] The overall upgrade progress is the sum of the products of the upgrade progress of each controller and its upgrade weight during the upgrade process. For example, such as... Figure 3 As shown, when there are three controllers to be upgraded, the total upgrade progress can be calculated by summing the products of the upgrade progress and the upgrade weight of each controller after obtaining their upgrade progress and upgrade weight. The upgrade progress of each controller is the ratio of the upgrade package size to the amount of data received by that controller. Figure 3 The three controllers shown are for parallel upgrade execution. However, in actual vehicles, there may also be situations requiring serial upgrades. When both serial and parallel upgrades coexist in an upgrade task, the calculation method for the overall upgrade progress differs from... Figure 3 The parallel upgrade method shown is consistent. The calculation method for the total upgrade progress of this concurrent serial and parallel upgrade can be as follows: Figure 4 As shown in the diagram. Controllers 2 and 3 are upgraded in parallel, while controller 1 is upgraded serially alongside controllers 2 and 3. That is, controllers 2 and 3 can only be upgraded after controller 1 has completed its upgrade. Once controller 1 has completed its upgrade, controllers 2 and 3 can be upgraded in parallel. For example, when controller 1 has completed its upgrade, the calculation method for the total upgrade progress during the upgrade of controllers 2 and 3 can be as follows: Figure 5 As shown. Optionally, Figure 3 , Figure 4 and Figure 5 A progress bar for the overall upgrade progress can be displayed on the screen, allowing users to obtain accurate upgrade progress and improving user experience. The calculation method for the overall upgrade progress used in this application makes the changes in the overall upgrade progress smoother and more uniform over time, thereby helping users to better estimate upgrade time and reducing the gap between expectations and reality caused by uneven progress rates, effectively improving the user upgrade experience. For example, the curve of the overall upgrade progress can be as follows: Figure 6 As shown.
[0047] Figure 7 This is a schematic diagram illustrating the node interaction relationships of the vehicle during the upgrade process provided in this application. Figure 7 As shown, an OTA server can be set up in the cloud. The vehicle-side can include a master node and a submaster node.
[0048] The master control node can specifically include the vehicle infotainment system (Client) and the upgrade master control node. The vehicle infotainment system interacts with the OTA server to obtain and download the main upgrade package. After downloading the main upgrade package, the vehicle infotainment system can split it into multiple upgrade packages. It can also distribute the upgrade packages to various agent nodes according to their needs. The vehicle infotainment system can also display the upgrade progress for user monitoring. The upgrade master control node obtains upgrade instructions, converts them into installation instructions, and distributes them to each agent node. It can also obtain the upgrade progress of each agent node and calculate the total upgrade progress. This total upgrade progress can be reported to the vehicle infotainment system. The upgrade master control node can be a process running on the vehicle infotainment system. Alternatively, it can execute on a separate controller. The upgrade master control node can be located within the gateway, performing pre-installation condition checks; executing installation strategies and initiating installation; determining software dependencies; and initiating version rollbacks for related software if some software upgrades fail.
[0049] The agent node can possess file read / write capabilities, self-installation capabilities, and the ability to flash connected modules. Specifically, the agent node can include a controller with an intelligent operating system and a gateway. Optionally, the controller with this intelligent operating system will be referred to as the Intelligent Operating System (IOS), or simply Intelligent OS. The Intelligent OS is used to update the software of the controller's internal microprocessor unit / system-on-chip (MPU / SOC) operating system, as well as to install software on the peripheral hardware modules controlled by the MPU / SOC. The gateway enables software flashing of the controller on Controller Area Network (CAN), CAN with Flexible Data-Rate (CANFD), and Ethernet buses via standard diagnostic protocols. Each agent node can connect to multiple devices to be upgraded. These devices can be controllers or sensors, etc. The agent node can flash the upgrade package to the devices to be upgraded, thus upgrading them. The agent node can also calculate its own upgrade progress based on the upgrade progress and upgrade weight of the devices to be upgraded. The proxy node can report the upgrade progress to the master node.
[0050] The vehicle may also include Unified Diagnostic Services (UDS). This UDS can define various services for different upgrade scenarios. These services may include 34 (request download), 35 (request upload), 36 (data transfer), 37 (request to exit transfer), and 38 (request file transfer). Furthermore, the UDS can include services for scenarios with and without file systems. Additionally, the UDS can be combined with services such as 22 (read data via ID), 2E (write data via ID), 27 (secure access), 28 (communication control), 85 (DTC control), and 31 (routine control) to assist OTA in completing the overall upgrade process.
[0051] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0052] Figure 8 Signaling interaction for the vehicle upgrade progress display method provided in this application Figure 1 The vehicle is equipped with a master node and at least one agent node. The master node is connected to the agent node, and the agent node is connected to at least one device to be upgraded. Figure 7 Based on the illustrated embodiments, as Figure 8 As shown, the method includes:
[0053] S101. The master node distributes the upgrade package to the agent node based on the agent node and the device to be upgraded connected to the agent node.
[0054] In this embodiment, after downloading the main upgrade package, the master node can split the main upgrade package into multiple upgrade packages. Optionally, one upgrade package can correspond to one device to be upgraded and can be applied to the upgrade of that device. Alternatively, one upgrade package can correspond to one proxy node and can be applied to the upgrade of that proxy node. The master node can determine the proxy node corresponding to the upgrade package based on the information in the upgrade package. When the upgrade package corresponds to a proxy node, the upgrade package can be used for the upgrade of that proxy node or the upgrade of the device to be upgraded connected to the proxy node. The master node can send the upgrade package to the corresponding proxy node. After receiving the upgrade package, the proxy node can execute the upgrade of the proxy node and / or the device to be upgraded connected to the proxy node.
[0055] It's important to note that a single upgrade task may upgrade all devices connected to the proxy node. Alternatively, it may upgrade only some devices connected to the proxy node. Furthermore, the proxy node itself may also be upgraded in a single upgrade task. Alternatively, the proxy node itself may not be upgraded at all. Optionally, when an proxy node or a device to be upgraded needs an upgrade, the proxy node will obtain the upgrade package for that proxy node or device. Optionally, multiple upgrade packages may correspond to a single proxy node or device to be upgraded. Optionally, when upgrading both the proxy node and the device to be upgraded, the proxy node is typically upgraded first, followed by the upgrade of the devices connected to that proxy node.
[0056] S102. During the upgrade process using the upgrade package sent by the master node, obtain the first upgrade progress, upgrade package size, and network transmission rate of the proxy node performing the upgrade or the device to be upgraded connected to the proxy node.
[0057] In this embodiment, if the proxy node itself needs to be upgraded, it can first use its own corresponding upgrade package to upgrade after starting the upgrade. During the upgrade process, the proxy node can obtain its initial upgrade progress through a preset interface. Furthermore, the proxy node can also obtain the size of its upgrade package and its preset network transmission rate.
[0058] After the upgrade begins, if the proxy node does not need to upgrade or has completed its upgrade, it can send the upgrade package sent by the master node to the device to be upgraded. Optionally, the process of the proxy node sending the upgrade package to the device to be upgraded is also the process of the proxy node flashing the upgrade package to the device to be upgraded. Optionally, the proxy node may include a host computer that can flash the upgrade package for the device. After parsing the upgrade package, the proxy node can flash the parsed upgrade package to the device to be upgraded, thereby realizing the upgrade of the device to be upgraded.
[0059] During this process, the proxy node can obtain the initial upgrade progress of the upgrade package already received by the device to be upgraded. The proxy node can also obtain the size of the upgrade package to be sent to the device to be upgraded. Furthermore, the proxy node can obtain the network transmission rate during data transmission between the device to be upgraded and the proxy node. Here, the initial upgrade progress represents the proportion of data already sent by the proxy node to the device to be upgraded within the entire upgrade package. The upgrade package size represents the amount of data in the upgrade package required for the device to be upgraded. The network transmission rate represents the network transmission rate between the proxy node and the device to be upgraded. Optionally, the network transmission rate can be determined based on the network segment where the device to be upgraded is located. Alternatively, the network transmission rate can be obtained through testing. Or, the network transmission rate can be a set value.
[0060] Optionally, the first upgrade progress can be a percentage value. Specifically, the first upgrade progress can be the ratio of the amount of data already transmitted to the device to be upgraded to the size of the upgrade package to be transmitted to the device to be upgraded. This ratio can be displayed as a percentage. This first upgrade progress is the upgrade progress of the device to be upgraded. Alternatively, the first upgrade progress can be the upgrade progress of the proxy node obtained through the interface.
[0061] Optionally, each agent node can connect to multiple devices to be upgraded. Different devices can use different network bandwidths. This network bandwidth is the network transmission rate of the device to be upgraded.
[0062] Optionally, when the proxy node itself needs to be upgraded, the upgrade progress of the proxy node can be queried by calling its upgrade progress query interface. The upgrade of the proxy node itself is serialized with the upgrade of the device to be upgraded.
[0063] Optionally, upgrade progress is typically proportional to the upgrade package size and inversely proportional to the network transmission rate. Therefore, this application uses the upgrade package size and network transmission rate to calculate the upgrade weight, which makes the calculated upgrade progress change more evenly over time. This helps users accurately estimate the upgrade time, reduces the gap between expectations and reality caused by uneven progress rates, and effectively improves the user's upgrade experience.
[0064] In one implementation, the proxy node can determine the initial upgrade progress of the device to be upgraded based on the address offset when reading the upgrade package. The specific process may include:
[0065] Step 10: Obtain the address offset of the upgrade package read by the proxy node during the process of sending the upgrade package to the device to be upgraded.
[0066] In this step, the proxy node can directly parse the packaged upgrade file and read its address offset from the host computer. During the flashing process, the address offset is continuously updated as data is flashed, always pointing to the first piece of data that has not yet been read. Therefore, when the proxy node obtains this address offset, it can determine the amount of data that has been sent to the device to be upgraded.
[0067] Step 20: Determine the first upgrade progress of the device to be upgraded connected to the agent node based on the address offset.
[0068] In this step, the proxy node can determine the initial upgrade progress of the device connected to the proxy node based on the ratio of the amount of data already sent to the device to be upgraded to the size of the entire upgrade package. This initial upgrade progress is the upgrade progress of the device to be upgraded.
[0069] In another implementation, the agent node can determine the initial upgrade progress of the device to be upgraded by analyzing the data packets sent. The specific process may include:
[0070] Step 10: Obtain the number of data packets sent to the device to be upgraded. Each data packet includes a portion of the data from the upgrade package, and all data packets are the same size.
[0071] In this step, the Flash Bootloader (FBL) upgrade package consists entirely of data. Therefore, when flashing the node to be upgraded, the proxy node can parse the upgrade package and encapsulate it into multiple data packets. The proxy node can then sequentially send these multiple data packets to the device to be upgraded, thus achieving the flashing and upgrade of the device. The amount of data in each data packet is fixed; that is, all data packets are the same size. Therefore, the proxy node can obtain the number of data packets sent to the device to be upgraded.
[0072] Step 20: Determine the first upgrade progress of the device to be upgraded connected to the agent node based on the data packet size and the number of data packets sent.
[0073] In this step, the proxy node can determine the number of data packets the upgrade package is split into based on the size of the data packet. The proxy node can then determine the initial upgrade progress of the device connected to it based on the ratio of the number of data packets already sent to the number of split data packets.
[0074] S103. Determine the second upgrade progress of the agent node based on the first upgrade progress, upgrade package size, and network transmission rate of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0075] In this embodiment, after obtaining the upgrade package size and network transmission rate of the proxy node and / or each device to be upgraded connected to the proxy node, the proxy node can calculate the upgrade weight of the proxy node and / or each device to be upgraded based on the upgrade package size and network transmission rate. Furthermore, the proxy node can determine its second upgrade progress based on the first upgrade progress and upgrade weight of the proxy node and / or each device to be upgraded. Optionally, the calculation method for the second upgrade progress of the proxy node can be as follows: Figure 1 As shown, this is the sum of the products of the first upgrade progress and the upgrade weight for each device to be upgraded.
[0076] In one example, during the upgrade process, if the device to be upgraded fails, there are generally three scenarios: retrying the upgrade, rolling back, or failed rollback. When a retry occurs, the second upgrade progress of the proxy node performing the upgrade or the device to be upgraded will be reset or rolled back. The proxy node needs to save the first upgrade progress of the device to be upgraded before the reset or rollback. That is, before calculating the second upgrade progress, the proxy node can also determine whether the first upgrade progress of the proxy node performing the upgrade or the device to be upgraded at the current moment is less than the first upgrade progress at the previous moment. If the first upgrade progress at the current moment is less than the first upgrade progress at the previous moment, it indicates that the device to be upgraded has experienced a retry or rollback after an upgrade failure. In this case, to ensure that the second upgrade progress does not roll back, the proxy node can use the first upgrade progress at the previous moment as the first upgrade progress at the current moment for subsequent calculations of the second upgrade progress. During the calculation of the second upgrade progress, if a rollback occurs, the handling method is the same as for a retry upgrade.
[0077] In one example, if it is determined that the upgrade of the proxy node performing the upgrade or the device to be upgraded connected to the proxy node has failed, the proxy node can set the first upgrade progress of the failed proxy node or device to be upgraded to 100%. Alternatively, if it is determined that the rollback has failed, the proxy node can retain the maximum first upgrade progress reached by the proxy node or device to be upgraded. The proxy node can report the progress as complete after all other proxy nodes and devices to be upgraded have completed their upgrades. This progress reporting is equivalent to setting the second upgrade progress of the proxy node or device to be upgraded to 100%.
[0078] For example, an upgrade task might include a node to be upgraded. Suppose that the node's initial upgrade progress fails when it reaches 30%. At this point, the node retryes the upgrade, and its initial upgrade progress drops to 0%. The proxy node receives a 0% initial upgrade progress report, which is less than the previous 30%, so it doesn't update it. That is, the proxy node reports a 30% second upgrade progress report to the master node. The proxy node only updates the second upgrade progress report and reports the new progress to the master node when the node's initial upgrade progress exceeds 30%.
[0079] S104. The proxy node sends its second upgrade progress to the master node. This second upgrade progress is used to determine and display the total upgrade progress of the upgrade package.
[0080] S105, the master node obtains the second upgrade progress sent by the agent node. The second upgrade progress is determined based on the first upgrade progress of the agent node performing the upgrade and / or the upgrade-to-be-upgraded device connected to the agent node, the upgrade package size, and the network transmission rate.
[0081] S106. The master node determines and displays the total upgrade progress of the upgrade package based on the second upgrade progress of each agent node and the size of the upgrade package.
[0082] In this embodiment, the master node can determine the upgrade weight of each proxy node based on the size of the upgrade package distributed to each proxy node. Then, based on the second upgrade progress and upgrade weight reported by each proxy node, the master node can calculate the total upgrade progress.
[0083] Optionally, the overall upgrade progress can be displayed on the vehicle's infotainment system. This system can periodically request the overall upgrade progress from the master node after the upgrade begins. Optionally, this period can be once every 1 second.
[0084] The vehicle upgrade progress display method provided in this application embodiment allows the master node to send the upgrade package to the corresponding proxy node. After the upgrade begins, the proxy node sends the upgrade package from the master node to the device to be upgraded, and in this process, obtains the first upgrade progress, upgrade package size, and network transmission rate of the upgrade package already received by the device to be upgraded. The proxy node can calculate its second upgrade progress based on the upgrade package size and network transmission rate of the device to be upgraded. The proxy node then sends its second upgrade progress to the master node. The master node can calculate the total upgrade progress based on the upgrade package size distributed to each proxy node and the second upgrade progress of each proxy node. This application improves the accuracy of the total upgrade progress calculation by obtaining the first upgrade progress, network transmission rate, and upgrade package size of the device to be upgraded during the upgrade process. Furthermore, this application avoids the situation in existing solutions where the second upgrade progress of the device to be upgraded only has two states: 0% and 100%, allowing the second upgrade progress of the device to be upgraded to be updated in real time as the upgrade process progresses.
[0085] Based on the above embodiments, for this type of retry upgrade scenario, the execution steps of the proxy node can be as follows: Figure 9 As shown. It includes the following steps:
[0086] S201. Start Upgrade. In this step, the agent node can begin flashing the upgrade package to the device to be upgraded, thus upgrading the device.
[0087] S202, Flashing failed. In this step, if an error occurs during the flashing process after the device to be upgraded has started the upgrade, the agent node will determine that the flashing has failed.
[0088] S203. Retry Upgrade. In this step, if the flashing fails, the agent node can retry the upgrade operation for the device to be upgraded.
[0089] S204. Save the progress value before retry. In this step, before the retry process, the agent node can save the first upgrade progress of the device to be upgraded before the retry. For ease of description, the first upgrade progress of the device to be upgraded before the retry saved by the agent node can be recorded as the historical upgrade progress.
[0090] S205, Progress Reset. In this step, the agent node can set the first upgrade progress to 0. This 0 is the initial value.
[0091] S206. Re-parse the progress value. In this step, the agent node can recalculate the current upgrade progress based on the flashing status of the device to be upgraded during the retry upgrade process. This current upgrade progress is the first upgrade progress of the device to be upgraded at the current moment.
[0092] S207. Determine if the new progress value is greater than the retry progress value. In this step, the retry progress value is the historical upgrade progress. The new progress value is the current upgrade progress. The agent node can compare the historical upgrade progress with the current upgrade progress. If the historical upgrade progress is greater than the current upgrade progress, the agent node can execute S208. Otherwise, if the historical upgrade progress is less than or equal to the current upgrade progress, the agent node can return to step S206.
[0093] S208. Update the progress value. In this step, the agent node can use the current upgrade progress as the first upgrade progress for the device to be upgraded. Optionally, if the current upgrade progress is not used as the first upgrade progress for the device to be upgraded, the agent node can use the historical upgrade progress as the first upgrade progress for the device to be upgraded.
[0094] S209. Determine if the upgrade is complete. In this step, if the upgrade is complete, the agent node can execute step S210. If the upgrade is not complete, the agent node can return to step S206.
[0095] S210, Upgrade progress set to 100%. In this step, when the device to be upgraded completes the upgrade, the agent node can set the first upgrade progress of the device to be upgraded to 100%.
[0096] Based on the above embodiments, in the event of upgrade failure, the execution steps of the proxy node can be as follows: Figure 10 As shown. It includes the following steps:
[0097] S301. Start Upgrade. In this step, the agent node can begin flashing the upgrade package to the device to be upgraded, thus upgrading the device.
[0098] S302, Flashing failed. In this step, if an error occurs during the flashing process after the device to be upgraded has started the upgrade, the agent node will determine that the flashing has failed.
[0099] S303, Retry Upgrade. In this step, if the flashing fails, the agent node can retry the upgrade operation for the device to be upgraded.
[0100] S304, Retry Failed. In this step, if a write error occurs again during the retry upgrade process, the proxy node determines that the retry has failed.
[0101] S305. Rollback Failed. In this step, if the retry fails, the agent node will attempt to roll back. If the rollback fails, the agent node will continue to step S306. If the rollback is successful, the agent node will retry the upgrade based on the rolled-back device to be upgraded.
[0102] S306. Save the progress value when the rollback fails. In this step, the proxy node will obtain and save the progress value when the rollback fails. This progress value is the first upgrade progress of the node to be upgraded.
[0103] S307. Report that the upgrade of the device to be upgraded is complete and the rollback failed. In this step, after saving the progress when the rollback fails, the agent node will report that the upgrade of the device to be upgraded is complete. At the same time, the agent node will also report the rollback failure status.
[0104] S308. Wait for other devices to finish upgrading. In this step, the agent node can continue to perform upgrades on other devices until they have completed their upgrades.
[0105] S309. Set the upgrade progress to 100%. In this step, when all other devices to be upgraded have finished upgrading, the agent node can set the first upgrade progress of the device that failed to roll back to 100%.
[0106] Based on the above embodiments, after the master node sends the upgrade package to each agent node, each agent node can wait for the installation instruction sent by the master node. When an agent node receives the installation instruction sent by the master node, it can use the received upgrade package to begin upgrading the device to be upgraded. The installation instruction instructs the agent upgrade node to send the upgrade package to the corresponding device to be upgraded. Optionally, this process of sending the upgrade package is the process of flashing the upgrade package onto the device to be upgraded to achieve the upgrade. The installation instruction is generated by the master node and sent to the agent nodes when it receives the upgrade instruction.
[0107] Based on the above embodiments, when the OTA server determines that a software upgrade is needed, the master node establishes communication with the OTA server and obtains the vehicle's main upgrade package from the OTA server. Optionally, the OTA server may send an update broadcast when it needs to update the vehicle's software. The master node may determine that the vehicle's software needs to be updated upon detecting the update broadcast. After obtaining the main upgrade package sent by the OTA server, the master node may split the main upgrade package into at least one upgrade package. The master node may then send the upgrade package to the agent node connected to the device to be upgraded, based on the device corresponding to that upgrade package.
[0108] Figure 11 The process of the vehicle upgrade progress display method provided in this application Figure 3 ,exist Figures 7 to 10 Based on the illustrated embodiment, the proxy node is used as the execution entity. Figure 8 The specific implementation of step S103 can be as follows: Figure 11 As shown, it includes:
[0109] S401. Determine the upgrade weight of the device to be upgraded connected to the agent node based on the network transmission rate and upgrade package size of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0110] In this embodiment, the proxy node can obtain the upgrade package size of the proxy node performing the upgrade and / or the upgrade package size of each device to be upgraded connected to the proxy node. The proxy node can also determine the network transmission rate of each device to be upgraded based on the communication protocol of each device connected to the proxy node. Optionally, if the proxy node itself needs to be updated, its network transmission rate can be a set value. The proxy node can calculate the upgrade weight of each device to be upgraded based on the upgrade package size and the network transmission rate.
[0111] In one example, the calculation process for the upgrade weight may specifically include the following steps:
[0112] Step 10: Determine the first parameter value of the device to be upgraded connected to the agent node based on the network transmission rate and upgrade package size of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0113] In this step, the proxy node can determine the first parameter value of the device to be upgraded based on the network transmission rate and upgrade package size of the proxy node performing the upgrade and / or the device to be upgraded. That is, each proxy node performing the upgrade and / or the device to be upgraded can calculate this first parameter value.
[0114] The specific calculation process for the first parameter value may include the following steps:
[0115] Step 11: Determine the rate weight based on the network transmission rate of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0116] In this step, the proxy node can first determine the rate weight of each device to be upgraded based on the network transmission rate of the proxy node performing the upgrade and / or each device to be upgraded. Optionally, for example, Figure 2As shown, the network transmission rate can be a large value such as 100, 200, or 300. Furthermore, the devices to be upgraded connected to the agent node may belong to networks with different bandwidths. For example, common network segments include CAN 500K, CANFD 2M, and CANFD 5M. Therefore, to standardize the calculation unit and improve calculation efficiency, the agent node can first convert the network transmission rate into a rate weight. This rate weight can be a value such as 1, 2, or 3 for easy calculation. Specifically, the agent node can determine the rate weight based on the ratio of the network transmission rates of the agent node performing the upgrade and / or the devices to be upgraded connected to the agent node. For example, the agent node may be connected to three devices to be upgraded. These three devices may belong to the CAN 500K, CANFD 2M, and CANFD 5M network segments respectively. The agent node can determine the rate weight based on the ratio of the rates of these three network segments. For example, the formula for calculating this ratio can be:
[0117] CAN 500K: CANFD 2M: CANFD 5M=1:4:10
[0118] That is, the rate weight of the devices to be upgraded that are in the CAN 500K network segment is 1. The rate weight of the devices to be upgraded that are in the CANFD 2M network segment is 4. The rate weight of the devices to be upgraded that are in the CANFD 5M network segment is 10.
[0119] Optionally, the rate weight can be calculated based on the network transmission rate of each controller after the agent node determines the controller it is connected to. The agent node can then store the calculated rate weight in a configuration file corresponding to the weight information. In each upgrade task, the agent node can directly obtain the rate weight of each device to be upgraded from this configuration file. Alternatively, the agent node can also determine the devices to be upgraded for each upgrade task based on the upgrade packet sent by the master node. The agent node can then calculate the rate weight of each device to be upgraded based on the network transmission rate of that device.
[0120] Step 12: Determine the first parameter value of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node based on the ratio of the upgrade package size to the rate weight.
[0121] In this step, since the upgrade package size is directly proportional to the second upgrade progress and the network transmission rate is inversely proportional to the second upgrade progress, the proxy node can use the ratio of the upgrade package size to the rate weight as the first parameter.
[0122] Step 20: Calculate the sum of the first parameter values of the agent node performing the upgrade and / or each device to be upgraded connected to the agent node, to obtain the total parameter sum.
[0123] In this step, the proxy node can calculate the sum of the first parameter values of the proxy node performing the upgrade and / or each device to be upgraded connected to the proxy node. The proxy node can use this sum as the parameter total. This parameter total can be used as the denominator to calculate the upgrade weight. The sum of the upgrade weights of the devices to be upgraded connected to the proxy node is 1.
[0124] Step 30: Calculate the ratio of the first parameter value of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node to the total number of parameters, and obtain the upgrade weight of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0125] In this step, the proxy node can use the ratio of the first parameter value to the sum of the parameters as the upgrade weight for the node to be upgraded. Specifically, the calculation formula can be:
[0126]
[0127] Where, ω i This represents the upgrade weight of the i-th device to be upgraded. Here, i is a positive integer representing the i-th device among those connected to the agent node. N represents the number of devices connected to the agent node that are to be upgraded. i R represents the size of the upgrade package that the i-th device to be upgraded needs to receive. i This represents the rate weight of the i-th device to be upgraded.
[0128] Optionally, the device to be upgraded may contain multiple upgrade packages. In this case, one of the upgrade packages is the one used during the upgrade of the device. When the device to be upgraded experiences a rollback, or when the upgrade process requires a rollback operation, the upgrade package included in the device may also contain a rollback package. It should be noted that the upgrade package mentioned above only includes the upgrade package used during the upgrade of the device, and does not include other upgrade packages needed for rollback or other situations. The size of the upgrade package also only includes the size of the upgrade package used during the upgrade of the device, and does not include the size of other upgrade packages needed for rollback or other situations.
[0129] Optionally, when the device to be upgraded is the proxy node itself, the rate weight of the proxy node can be preset to 1. The proxy node itself also needs to be considered as one of the N devices to be upgraded to calculate its upgrade weight.
[0130] S402. Determine the second upgrade progress of the agent node based on the upgrade weight of the agent node performing the upgrade and / or the upgrade weight of each device to be upgraded connected to the agent node and the first upgrade progress.
[0131] In this embodiment, after obtaining the first upgrade progress of the proxy node performing the upgrade and / or each device to be upgraded connected to it, the proxy node can calculate the product of the first upgrade progress and the upgrade weight of the proxy node performing the upgrade and / or each device to be upgraded, based on the upgrade weights calculated in step S401. The proxy node can also accumulate the product of the first upgrade progress of each device to be upgraded connected to it to obtain the final second upgrade progress. The formula for calculating the second upgrade progress can be:
[0132]
[0133] Among them, PS j This represents the second upgrade progress of the j-th proxy node. PE i This represents the initial upgrade progress of the i-th device to be upgraded. This initial upgrade progress is a percentage value, such as 10%, 50%, 100%, etc. i This represents the upgrade weight of the i-th device to be upgraded. Here, i is a positive integer representing the i-th device among those connected to the proxy node. N represents the number of devices connected to the proxy node that are to be upgraded.
[0134] Specifically, for non-FBL flashing devices to be upgraded, such as self-upgrading controllers, their upgrade speed needs to be tested in advance. When self-upgrading controllers are being upgraded in parallel with other controllers, the upgrade speed test value of the self-upgrading controller needs to be compared with the upgrade rate of other controllers being upgraded in parallel. After simplification, the upgrade weight is calculated based on the ratio.
[0135] For example, suppose the agent node includes two devices to be upgraded: Controller 1 and Controller 2. Controller 1's upgrade package size is 1GB, its second upgrade progress is 70%, and it is located in the CANFD network segment. Controller 2's upgrade package size is 3GB, its second upgrade progress is 63%, and it is located in the CAN network segment. If the CANFD network segment:CAN network segment ratio is 2:1, then the rate weight of Controller 1 is 2, and the rate weight of Controller 2 is 1. According to Formulas 1 and 2 above, the calculation steps for the second upgrade progress of the agent node can be as follows:
[0136]
[0137] That is, the second upgrade progress of this proxy node is 64%. This proxy node can report this 64% second upgrade progress to the master node.
[0138] The vehicle upgrade progress display method provided in this application embodiment allows the proxy node to obtain the upgrade package size and network transmission rate of each upgrade package corresponding to the devices to be upgraded connected to the proxy node, and calculate the upgrade weight of each upgrade device based on the upgrade package size and network transmission rate. After obtaining the first upgrade progress of each connected device to be upgraded, the proxy node can calculate the cumulative sum of the products of the first upgrade progress and the upgrade weight of each device to obtain the second upgrade progress of the proxy node. This application, by calculating the upgrade weight of each device to be upgraded based on the upgrade package size and network transmission rate, can make the calculated second upgrade progress change more evenly over time, which is beneficial for users to accurately estimate the upgrade time, reduce the expectation gap caused by uneven progress change rate, and effectively improve the user's upgrade experience.
[0139] Figure 12 The process of the vehicle upgrade progress display method provided in this application Figure 4 ,exist Figures 7 to 11 Based on the illustrated embodiment, the master node is used as the execution entity. Figure 8 The specific implementation of step S106 can be as follows: Figure 12 As shown, it includes:
[0140] S501. Determine the second upgrade weight of each agent node based on the upgrade package size distributed to each agent node.
[0141] In this embodiment, the master node can calculate the data volume of the upgrade package distributed to each proxy node based on the distribution of upgrade packages to each proxy node. The master node can then calculate the proportion of the upgrade package data volume of that proxy node in the total data volume based on the data volume of the upgrade package distributed to each proxy node and the total data volume of all upgrade packages. The master node can use this proportion as the upgrade weight of that proxy node.
[0142] In one example, the calculation process for the upgrade weight of each proxy node may include:
[0143] Step 10: Calculate the total size of the first upgrade package for the agent node based on the size of the upgrade package distributed to the agent node.
[0144] In this step, the master node can accumulate the upgrade package sizes of at least one upgrade package distributed to a proxy node to obtain the total first upgrade package size distributed to that proxy node. Each proxy node can correspond to one total first upgrade package size. The formula for calculating this total first upgrade package size is as follows:
[0145]
[0146] Among them, SMj S represents the sum of the first upgrade packages for the j-th proxy node. Here, j is a positive integer representing the j-th proxy node connected to the master node. i is a positive integer representing the i-th device among those connected to the proxy node. N represents the number of devices connected to the proxy node that are to be upgraded. i This represents the size of the upgrade package that the i-th device to be upgraded needs to receive.
[0147] Step 20: Calculate the total size of the second upgrade package based on the total size of all upgrade packages.
[0148] In this step, the master node can calculate the sum of the upgrade package sizes of all upgrade packages in the master upgrade package to obtain the total size of the second upgrade package.
[0149] Step 30: Determine the upgrade weight of the proxy node based on the ratio of the sum of the first upgrade packages to the sum of the second upgrade packages.
[0150] In this step, the master node can calculate the upgrade weight of a proxy node based on the ratio of the sum of its first upgrade packages to the sum of its second upgrade packages. The master node can calculate the upgrade weight of each proxy node.
[0151] S502. Determine the total upgrade progress of the upgrade package based on the upgrade weight and second upgrade progress of each agent node.
[0152] In this embodiment, the master node can obtain the total upgrade progress by summing the products of the upgrade weight and the second upgrade progress of each proxy node when it obtains the second upgrade progress. Optionally, the second upgrade progress of the proxy node can be periodically reported to the master node. The master node can periodically update the total upgrade progress according to the reporting period of the second upgrade progress of the proxy node. Optionally, the period can be 1 second.
[0153] Specifically, the formula for calculating the overall upgrade progress of this master node can be:
[0154]
[0155] Among them, SM j This represents the sum of the first upgrade packages for the j-th proxy node. Here, j is a positive integer representing the j-th proxy node connected to this master node. PS j This indicates the second upgrade progress of the j-th proxy node. M indicates that the number of proxy nodes connected to this master node is M.
[0156] For example, suppose the master node is connected to two proxy nodes, proxy node 1 and proxy node 2. Proxy node 1 has a total upgrade package size of 1GB and a second upgrade progress of 80%. Proxy node 2 has a total upgrade package size of 3GB and a second upgrade progress of 40%. Then the master node's total upgrade progress is:
[0157] 1GB / (1GB+3GB)*80%+3GB / (1GB+3GB)*40%=46%
[0158] The vehicle upgrade progress display method provided in this application improves the accuracy of the overall upgrade progress calculation by using the proportion of each agent node's upgrade package in the total upgrade packages as the upgrade weight of each agent node.
[0159] Based on the above embodiments, the interaction process between the master node and the proxy node can be as follows: Figure 13 As shown, the vehicle's infotainment system can request the overall upgrade progress from the master node to display the total upgrade progress. Specifically, during this process, when the OTA application detects that the vehicle software is being updated, the master node can obtain the main upgrade package from the OTA server. After downloading the main upgrade package, the master node splits it into multiple upgrade packages. The master node can then deploy these upgrade packages to various agent nodes. When a user selects online upgrade for the vehicle software, the master node sends installation instructions to the agent nodes. The agent nodes parse the split upgrade packages deployed on that node and calculate the upgrade weight and first upgrade progress of the devices connected to that agent node. The agent nodes can then summarize the first upgrade progress of each device to obtain the second upgrade progress of that agent node. The master node can obtain the second upgrade progress of each agent node through a protocol, calculate the weight of each agent node's second upgrade progress, and perform a weighted average of the second upgrade progress of each agent node to obtain the total upgrade progress. The master node can then report this total upgrade progress to the vehicle's infotainment system, allowing the system to display this progress to the user.
[0160] Figure 14 Schematic diagram of the upgrade progress display device for the vehicle provided in this application Figure 1 ,like Figure 14 As shown, the vehicle upgrade progress display device 600 provided in this embodiment, applied to proxy nodes, includes:
[0161] The acquisition module 601 is used to acquire the first upgrade progress, upgrade package size, and network transmission rate of the proxy node performing the upgrade or the device to be upgraded connected to the proxy node during the upgrade process using the upgrade package sent by the master node.
[0162] The processing module 602 is used to determine the second upgrade progress of the agent node based on the first upgrade progress of the agent node performing the upgrade and / or the upgrade progress of the device to be upgraded connected to the agent node, the size of the upgrade package, and the network transmission rate; and to send the second upgrade progress of the agent node to the master node; wherein the second upgrade progress is used to determine and display the total upgrade progress of the upgrade package.
[0163] Optionally, the processing module 602 is used for:
[0164] The upgrade weight of the upgrade device connected to the agent node is determined based on the network transmission rate and upgrade package size of the agent node performing the upgrade and / or the upgrade device connected to the agent node.
[0165] The second upgrade progress of the agent node is determined based on the upgrade weight of the agent node performing the upgrade and / or the upgrade weight of each device to be upgraded connected to the agent node, and the first upgrade progress.
[0166] Optionally, the processing module 602 is used for:
[0167] Based on the network transmission rate and upgrade package size of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node, determine the first parameter value of the device to be upgraded connected to the agent node.
[0168] Calculate the sum of the first parameter values of the agent node performing the upgrade and / or each device to be upgraded connected to the agent node to obtain the total parameter;
[0169] Calculate the ratio of the first parameter value of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node to the total number of parameters, and obtain the upgrade weight of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node.
[0170] Optionally, the processing module 602 is used for:
[0171] Determine the rate weight based on the network transmission rate of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node;
[0172] The first parameter value of the agent node performing the upgrade and / or the device to be upgraded connected to the agent node is determined based on the ratio of the upgrade package size to the rate weight.
[0173] Optionally, the processing module 602 is used for:
[0174] Rate weights are determined based on the ratio of the network transmission rates of the agent node performing the upgrade and / or the various devices to be upgraded connected to the agent node.
[0175] Optionally, module 601 is used for:
[0176] Obtain the address offset of the upgrade package read by the proxy node during the process of sending the upgrade package to the device to be upgraded;
[0177] Based on the address offset, determine the first upgrade progress of the device to be upgraded connected to the agent node.
[0178] Optionally, module 601 is used for:
[0179] Get the number of data packets sent to the device to be upgraded; wherein the data packets include part of the data in the upgrade package, and each data packet is the same size;
[0180] The first upgrade progress of the device to be upgraded connected to the agent node is determined based on the data packet size and the number of data packets sent.
[0181] Optionally, the processing module 602 is used for:
[0182] If the first upgrade progress of the agent node performing the upgrade or the device to be upgraded connected to the agent node at the current moment is less than the first upgrade progress of the agent node performing the upgrade or the device to be upgraded connected to the agent node at the previous moment, then the first upgrade progress at the previous moment will be used as the first upgrade progress at the current moment.
[0183] Optionally, the processing module 602 is used for:
[0184] If it is determined that the upgrade of the agent node or the device to be upgraded connected to the agent node has failed, the first upgrade progress of the failed agent node or the device to be upgraded is set to 100%.
[0185] Optionally, module 601 is used for:
[0186] Obtain the installation instructions for the upgrade package; the installation instructions are used to instruct the agent upgrade node to send the upgrade package to the corresponding device to be upgraded; the installation instructions are sent by the master node to the agent node when the master node obtains the upgrade instructions.
[0187] The vehicle upgrade progress display device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0188] Figure 15 Schematic diagram of the upgrade progress display device for the vehicle provided in this application Figure 2 ,like Figure 15 As shown, the vehicle upgrade progress display device 700 provided in this embodiment, applied to the master node, includes:
[0189] The interaction module 701 is used to distribute the upgrade package to the proxy node according to the proxy node and the upgradeable device connected to the proxy node; and to obtain the second upgrade progress sent by the proxy node; wherein the second upgrade progress is determined based on the first upgrade progress of the proxy node performing the upgrade and / or the upgradeable device connected to the proxy node, the upgrade package size, and the network transmission rate;
[0190] The processing module 702 is used to determine and display the total upgrade progress of the upgrade package based on the second upgrade progress of each agent node and the size of the upgrade package.
[0191] Optionally, the processing module 702 is used for:
[0192] The second upgrade weight of each agent node is determined based on the size of the upgrade package distributed to each agent node;
[0193] The overall upgrade progress of the upgrade package is determined based on the upgrade weight and second upgrade progress of each agent node.
[0194] Optionally, the processing module 702 is used for:
[0195] The total size of the first upgrade package distributed to the agent node is calculated based on the size of the upgrade package.
[0196] The total size of the second upgrade package is calculated based on the total size of all upgrade packages.
[0197] The upgrade weight of the proxy node is determined by the ratio of the sum of the first upgrade packages to the sum of the second upgrade packages.
[0198] Optionally, the interaction module 701 is used for:
[0199] When a vehicle is detected as needing an update, the vehicle's master node obtains the vehicle's main upgrade package;
[0200] The main upgrade package is split into at least one upgrade package, and the upgrade packages are sent to the corresponding proxy upgrade nodes.
[0201] The vehicle upgrade progress display device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0202] Figure 16 Schematic diagram of the proxy node provided in this application Figure 1 .like Figure 16 As shown, the proxy node 800 provided in this embodiment includes at least one processor 801 and a memory 802. Optionally, the proxy node 800 further includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus.
[0203] In a specific implementation, at least one processor 801 executes computer execution instructions stored in memory 802, causing at least one processor 801 to perform the above-described method.
[0204] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0205] Figure 17 The structural diagram of the master node provided in this application Figure 2 .like Figure 17 As shown, the master node 900 provided in this embodiment includes at least one processor 901 and a memory 902. Optionally, the master node 900 further includes a communication component 903. The processor 901, memory 902, and communication component 903 are connected via a bus.
[0206] In a specific implementation, at least one processor 901 executes computer execution instructions stored in memory 902, causing at least one processor 901 to perform the above-described method.
[0207] The specific implementation process of processor 901 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0208] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0209] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0210] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0211] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0212] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0213] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0214] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0215] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0216] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0217] In addition, the functional units in the various embodiments of the present invention 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.
[0218] If a function is implemented as 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 technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0219] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0220] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
[0221] The above embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention.
Claims
1. A method for displaying the upgrade progress of a vehicle, characterized in that, The method is applied to a proxy node, wherein a master node and at least one proxy node are deployed in the vehicle, the master node is connected to the proxy node, and the method includes: During the upgrade process using the upgrade package sent by the master node, the first upgrade progress, upgrade package size, and network transmission rate of the device to be upgraded connected to the proxy node are obtained. The second upgrade progress of the proxy node is determined based on the first upgrade progress of the device to be upgraded connected to the proxy node, the upgrade package size, and the network transmission rate. The second upgrade progress of the proxy node is sent to the master node; wherein, the second upgrade progress is used to determine and display the total upgrade progress of the upgrade package; The second upgrade progress of the proxy node is determined based on the first upgrade progress of the device to be upgraded connected to the proxy node, the upgrade package size, and the network transmission rate, including: Based on the network transmission rate of the device to be upgraded connected to the proxy node, a rate weight is determined; based on the ratio of the upgrade package size of the device to be upgraded connected to the proxy node to the rate weight, a first parameter value of the device to be upgraded connected to the proxy node is determined. Calculate the sum of the first parameter values of each device to be upgraded connected to the agent node to obtain the total parameter sum; Calculate the ratio of the first parameter value of the device to be upgraded connected to the proxy node to the sum of the parameters, and obtain the upgrade weight of the device to be upgraded connected to the proxy node. The second upgrade progress of the agent node is determined based on the upgrade weights of each device to be upgraded connected to the agent node and the first upgrade progress.
2. The method according to claim 1, characterized in that, Based on the network transmission rate of the device to be upgraded connected to the proxy node, a rate weight is determined, including: The rate weight is determined based on the ratio of the network transmission rates of each device to be upgraded connected to the proxy node.
3. The method according to claim 1, characterized in that, Obtaining the first upgrade progress of the device to be upgraded connected to the agent node includes: The address offset of the upgrade package read by the proxy node during the process of sending the upgrade package to the device to be upgraded is obtained. Based on the address offset, the first upgrade progress of the device to be upgraded connected to the proxy node is determined.
4. The method according to claim 1, characterized in that, Obtaining the first upgrade progress of the device to be upgraded connected to the agent node includes: Obtain the number of data packets sent to the device to be upgraded; wherein the data packets include a portion of the data in the upgrade package, and each data packet is of the same size; The first upgrade progress of the device to be upgraded connected to the agent node is determined based on the data packet size and the number of data packets sent.
5. The method according to any one of claims 1-4, characterized in that, Before determining the second upgrade progress of the proxy node based on the first upgrade progress of the device to be upgraded connected to the proxy node, the upgrade package size, and the network transmission rate, the process further includes: If the first upgrade progress of the device to be upgraded connected to the agent node at the current time is less than the first upgrade progress of the device to be upgraded connected to the agent node at the previous time, then the first upgrade progress at the previous time will be used as the first upgrade progress at the current time.
6. The method according to any one of claims 1-4, characterized in that, The method includes: If it is determined that the upgrade of the device to be upgraded connected to the agent node fails, the first upgrade progress of the failed upgrade device is set to 100%.
7. The method according to any one of claims 1-4, characterized in that, Before performing the upgrade using the upgrade package sent by the master node, the following is also included: Obtain the installation instruction for the upgrade package; the installation instruction is used to instruct the agent node to send the upgrade package to the corresponding device to be upgraded; the installation instruction is sent by the master node to the agent node when the master node obtains the upgrade instruction.
8. A method for displaying the upgrade progress of a vehicle, characterized in that, The method is applied to a master node, wherein the vehicle is equipped with a master node and at least one proxy node, the master node being connected to the proxy node, and the method comprising: The upgrade package is distributed to the proxy node based on the proxy node and the device to be upgraded connected to the proxy node; The proxy node acquires a second upgrade progress sent by the proxy node. This second upgrade progress is determined by the proxy node based on the upgrade weights of each device connected to the proxy node and the first upgrade progress, the upgrade package size, and the network transmission rate during data transmission between the device and the proxy node. The upgrade weight is the ratio of the first parameter value of each device connected to the proxy node to the sum of its parameters. The first parameter value is determined by the proxy node based on the ratio of the upgrade package size to the rate weight of each device connected to the proxy node. The total parameter sum is the sum of the first parameter values of each device connected to the proxy node. The rate weight is determined by the proxy node based on the network transmission rate of each device connected to the proxy node. Based on the second upgrade progress and upgrade package size of each agent node, the total upgrade progress of the upgrade package is determined and displayed.
9. The method according to claim 8, characterized in that, Based on the second upgrade progress of each proxy node and the upgrade package size, determine and display the total upgrade progress of the upgrade package, including: The second upgrade weight of each agent node is determined based on the upgrade package size distributed to each agent node; The total upgrade progress of the upgrade package is determined based on the second upgrade weight and the second upgrade progress of each proxy node.
10. The method according to claim 9, characterized in that, Based on the size of the upgrade package distributed to each proxy node, a second upgrade weight is determined for each proxy node, including: The total size of the first upgrade packages distributed to the agent nodes is calculated based on the size of the upgrade packages distributed to the agent nodes. The total size of the second upgrade package is calculated based on the upgrade package size of all the aforementioned upgrade packages; The second upgrade weight of the proxy node is determined based on the ratio of the sum of the first upgrade packages to the sum of the second upgrade packages of the proxy node.
11. The method according to any one of claims 8-10, characterized in that, The method further includes: When the vehicle is detected to be in need of an update, the vehicle's master node obtains the vehicle's main upgrade package; The main upgrade package is split into at least one upgrade package, and the upgrade packages are sent to the corresponding proxy nodes.
12. A proxy node, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
13. A master node, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 8-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method applied to a proxy node as described in any one of claims 1-7, or, when executed by a processor, are used to implement the method applied to a master node as described in any one of claims 8-11.
15. A computer program product comprising a computer program that, when executed by a processor, implements the method applied to a proxy node as described in any one of claims 1-7, or, when executed by a processor, the computer program is used to implement the method applied to a master node as described in any one of claims 8-11.
Citation Information
Patent Citations
Upgrade progress display method and device, equipment and medium
CN113515247A
System upgrading method and device, storage medium and program product
CN115080099A
Display method and device of thread progress bar, equipment and storage medium
CN118193106A
Controller upgrading method, vehicle, equipment and medium
CN118394395A
