CN117193603A - Upgrade progress display method and device, computer equipment and storage medium - Google Patents

Upgrade progress display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117193603A
CN117193603A CN202311352067.7A CN202311352067A CN117193603A CN 117193603 A CN117193603 A CN 117193603A CN 202311352067 A CN202311352067 A CN 202311352067A CN 117193603 A CN117193603 A CN 117193603A
Authority
CN
China
Prior art keywords
progress
refreshed
display
refreshing
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311352067.7A
Other languages
Chinese (zh)
Inventor
王新华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mgjia Beijing Technology Co ltd
Original Assignee
Mgjia Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mgjia Beijing Technology Co ltd filed Critical Mgjia Beijing Technology Co ltd
Priority to CN202311352067.7A priority Critical patent/CN117193603A/en
Publication of CN117193603A publication Critical patent/CN117193603A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to the technical field of whole vehicle upgrading and discloses an upgrading progress display method, an upgrading progress display device, computer equipment and a storage medium. Wherein the method comprises the following steps: acquiring nodes to be refreshed, a refreshing sequence of each node to be refreshed and sample refreshing time; determining the residual refreshing time of each node to be refreshed; based on the sample brushing time, obtaining the progress points of the display bars of the nodes to be brushed; determining a target node to be refreshed based on the refreshing sequence, and refreshing the target node to be refreshed; determining a progress point of a target display bar corresponding to a target node to be refreshed; updating the progress of the display progress bar based on the allowance refreshing time of the target node to be refreshed and the progress point of the target display progress bar; and when the target node to be refreshed finishes the refreshing, synchronizing the progress of the display progress bar to the progress point of the target display progress bar. The problem that the estimated upgrading percentage and time of the overall upgrading progress and actual upgrading generate larger deviation due to the fact that the progress deviation of each brushing node is accumulated is avoided.

Description

Upgrade progress display method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of whole vehicle upgrading, in particular to an upgrading progress display method, an upgrading progress display device, computer equipment and a storage medium.
Background
In the whole vehicle upgrading process, in order to make the upgrading process more visual, an upgrading progress bar needs to be displayed to a vehicle owner, wherein the upgrading progress bar comprises a downloading stage and a brushing stage. In order to achieve the above purpose, it is necessary to evaluate and confirm the time of the actual upgrading process of the whole vehicle by using different formulas or calculation methods, and then display the time to the vehicle owner in a reasonable manner.
The current method commonly used in the industry adopts a timer mode, namely the progress of the progress bar is always displayed at a constant speed according to the estimated speed, and the situation that the card is stopped at 99% usually occurs. By adopting the method, only the final upgrade success is analyzed, and the upgrade progress of different refreshing nodes in the upgrade process is not analyzed, so that the progress deviation of each refreshing node is accumulated, and the estimated upgrade percentage and time of the overall upgrade progress are greatly deviated from the actual upgrade.
Disclosure of Invention
In view of the above, the present invention provides an upgrade progress display method, apparatus, computer device and storage medium, so as to solve the problem that the upgrade progress of different nodes is not analyzed in the upgrade process, and the progress deviation of each node is accumulated, resulting in larger deviation between the estimated upgrade percentage and time of the overall upgrade progress and the actual upgrade, because only the final upgrade is analyzed in a timer manner.
In a first aspect, the present invention provides a method for displaying an upgrade progress, where the method includes: acquiring nodes to be refreshed in a task configuration file, a refreshing sequence of each node to be refreshed and sample refreshing time; determining the residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed; based on the sample brushing time, obtaining the progress points of the display bars of the nodes to be brushed; determining a target node to be refreshed based on the refreshing sequence, and refreshing the target node to be refreshed; determining a target display bar progress point corresponding to the target node to be refreshed; updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar; and when the target node to be refreshed finishes the refreshing, synchronizing the progress of the display progress bar to a target display progress bar progress point.
According to the upgrade progress display method provided by the embodiment, firstly, the to-be-refreshed nodes in the task configuration file, the refreshing sequence and the sample refreshing time of each to-be-refreshed node are obtained, the residual refreshing time of each to-be-refreshed node is respectively determined based on the sample refreshing time of each to-be-refreshed node, the upgrade progress of each refreshing node in the upgrade process is analyzed, the proper residual refreshing time of each refreshing node is determined, and the residual time is reserved for the refreshing node to refresh on the basis of considering the actual upgrade time, so that the accuracy of upgrade progress display is improved; and secondly, obtaining the progress point of a display bar of each node to be refreshed based on the sample refreshing time, determining a target node to be refreshed based on the refreshing sequence, refreshing the target node to be refreshed, determining the progress point of the target display bar corresponding to the target node to be refreshed, updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display bar, refreshing and displaying each refreshing node in sections, avoiding the problem that the accumulated progress deviation of each refreshing node causes the estimated upgrading percentage and time of the overall upgrading progress to generate larger deviation with the actual upgrading, and finally, synchronizing the progress of the display progress bar to the progress point of the target display bar when the refreshing of the target node to be refreshed is finished, and smoothing the residual progress before the progress point of the target display bar while reflecting the actual refreshing progress by setting the residual refreshing time, thereby improving the user experience.
In an optional implementation manner, the determining the margin brushing time of each node to be brushed based on the sample brushing time of each node to be brushed includes obtaining a margin coefficient of each node to be brushed; and respectively determining the residual refreshing time of each node to be refreshed based on the sample refreshing time and the residual coefficient.
According to the upgrade progress display method provided by the embodiment, the margin coefficients of all nodes to be refreshed are obtained; and based on the sample refreshing time and the margin coefficient, respectively determining the margin refreshing time of each node to be refreshed, setting an appropriate margin coefficient, preventing the delay of a refreshing task, and when an unexpected situation or unpredictable event occurs, the margin can provide additional time for processing and adjusting, ensuring the refreshing to be completed on time and improving the fault tolerance of the upgrade progress display.
In an optional implementation manner, the obtaining, based on the sample brushing time, a progress point of a display bar of each node to be brushed includes: determining a brushing progress weight based on the sample brushing time; and distributing the display progress bar based on the brushing progress weight to obtain the progress points of the display bars of the nodes to be brushed.
According to the upgrade progress display method provided by the embodiment, the brushing progress weight is determined based on the sample brushing time; based on the brushing progress weight, the display progress bar is distributed, the progress points of the display bars of the nodes to be brushed are obtained, the progress of the nodes to be brushed is displayed in a visual mode, a user can know the completion condition of the nodes at a glance, uncertainty and anxiety in the waiting process are avoided, and the user experience of upgrading progress display is further improved.
In an optional implementation manner, the updating the progress of the display progress bar based on the remaining refreshing time of the target node to be refreshed and the target progress point of the display progress bar includes: determining the display speed of a progress bar based on the margin writing time and the target progress point of the display bar; and updating the progress of the display progress bar based on the display speed.
According to the upgrade progress display method provided by the embodiment, the display speed of the progress bar is determined based on the margin brushing time and the target progress point of the display bar; based on the display speed, the progress of the display progress bar is updated, so that the real brushing progress is reflected, and the updating smoothness of the display progress bar is ensured.
In an alternative embodiment, the sample refresh time is a refresh time of the node to be refreshed tested in the subject.
According to the upgrade progress display method, the sample refreshing time is taken as the refreshing time of the nodes to be refreshed in the test of the experimental object, the actual refreshing time of the nodes to be refreshed is considered, and the upgrade progress display accuracy is improved.
In an alternative embodiment, the flushing the target node to be flushed includes parallel flushing and serial flushing.
According to the upgrade progress display method, the target node to be refreshed includes parallel refreshing and serial refreshing, the parallel refreshing can simultaneously refresh a plurality of nodes, the refreshing time is greatly shortened, each node can be ensured to be refreshed in sequence through the serial refreshing, data collision and errors are avoided, and the refreshing efficiency is improved through the simultaneous parallel refreshing and serial refreshing.
In an alternative embodiment, the method further comprises: when the allowance refreshing time passes, determining the refreshing progress of the target node to be refreshed; if the target node to be refreshed is not refreshed, generating a refresh timeout failure report; and adjusting the margin coefficient of the target node to be refreshed based on the refresh timeout failure report.
According to the upgrade progress display method provided by the embodiment, the node with overtime of the refreshing operation can be found in time and processed by generating the failure report of the refreshing overtime. For nodes which cannot finish the writing in the specified time, performance or fault problems may exist, and the stability and reliability of the upgrade progress display system can be improved by timely adjusting the margin coefficients of the nodes.
In a second aspect, the present invention provides an upgrade progress display apparatus, the apparatus comprising: the first acquisition module is used for acquiring nodes to be refreshed in the task configuration file, the refreshing sequence of each node to be refreshed and the sample refreshing time; the determining module is used for determining the residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed; the segmentation module is used for obtaining the progress points of the display bars of the nodes to be refreshed based on the sample refreshing time; the refreshing module is used for determining a target node to be refreshed based on the refreshing sequence and refreshing the target node to be refreshed; the second acquisition module is used for determining a target display bar progress point corresponding to the target node to be refreshed; the updating module is used for updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar; and the synchronization module is used for synchronizing the progress of the display progress bar to the progress point of the target display progress bar when the target node to be refreshed finishes the refreshing.
In a third aspect, the present invention provides a computer device comprising: the device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the upgrade progress display method of the first aspect or any implementation mode corresponding to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the upgrade progress display method of the first aspect or any one of the embodiments corresponding thereto.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an upgrade progress display method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a display bar progress point according to an embodiment of the invention;
FIG. 3 is a flow chart of another upgrade progress display method according to an embodiment of the present invention;
fig. 4 is a block diagram showing the structure of an upgrade progress display apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the development of technology, modern automobiles have become highly intelligent vehicles, and software systems therein play a vital role. The whole vehicle software upgrade refers to the update and upgrade of the vehicle software of an automobile or other vehicles. The software upgrades may update the functions and features of the vehicle, such as adding new navigation systems, intelligent driving assistance functions, automatic parking, etc. These new features may provide a more convenient, safe and comfortable driving experience. The whole vehicle software upgrade usually needs to be carried out by a vehicle manufacturer or an authorized service center, and the vehicle manufacturer or the authorized service center can push out corresponding software update packages according to vehicle types and versions, wherein the software update packages comprise all nodes to be refreshed, namely software to be updated.
In the whole vehicle upgrading process, in order to make the upgrading process more visual, an upgrading progress bar needs to be displayed to a vehicle owner, wherein the upgrading progress bar comprises a downloading stage and a brushing stage. In order to achieve the above purpose, it is necessary to evaluate and confirm the time of the actual upgrading process of the whole vehicle by using different formulas or calculation methods, and then display the time to the vehicle owner in a reasonable manner. The current method commonly used in the industry adopts a timer mode, namely the progress of the progress bar is always displayed at a constant speed according to the estimated speed, and the situation that the card is stopped at 99% usually occurs. By adopting the method, only the final upgrade success is analyzed, and the upgrade progress of different refreshing nodes in the upgrade process is not analyzed, so that the progress deviation of each refreshing node is accumulated, and the estimated upgrade percentage and time of the overall upgrade progress are greatly deviated from the actual upgrade.
According to the upgrade progress display method provided by the embodiment, firstly, the to-be-refreshed nodes in the task configuration file, the refreshing sequence and the sample refreshing time of each to-be-refreshed node are obtained, the residual refreshing time of each to-be-refreshed node is respectively determined based on the sample refreshing time of each to-be-refreshed node, the upgrade progress of each refreshing node in the upgrade process is analyzed, the proper residual refreshing time of each refreshing node is determined, and the residual time is reserved for the refreshing node to refresh on the basis of considering the actual upgrade time, so that the accuracy of upgrade progress display is improved; and secondly, obtaining the progress point of a display bar of each node to be refreshed based on the sample refreshing time, determining a target node to be refreshed based on the refreshing sequence, refreshing the target node to be refreshed, determining the progress point of the target display bar corresponding to the target node to be refreshed, updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display bar, refreshing and displaying each refreshing node in sections, avoiding the problem that the accumulated progress deviation of each refreshing node causes the estimated upgrading percentage and time of the overall upgrading progress to generate larger deviation with the actual upgrading, and finally, synchronizing the progress of the display progress bar to the progress point of the target display bar when the refreshing of the target node to be refreshed is finished, and smoothing the residual progress before the progress point of the target display bar while reflecting the actual refreshing progress by setting the residual refreshing time, thereby improving the user experience.
According to an embodiment of the present invention, there is provided an upgrade progress display method embodiment, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
In this embodiment, an upgrade progress display method is provided, and fig. 1 is a flowchart of an upgrade progress display method according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
step S101, obtaining nodes to be refreshed in a task configuration file, a refreshing sequence of each node to be refreshed and sample refreshing time.
Specifically, the software update progress display means that when the software update is performed, the updated progress information is displayed to the user, so that the user can clearly know the current updated state, and better user experience is provided. Typically, the software update progress display will be presented in the form of a progress bar, displaying a percentage of updates or a specific progress value. In addition, the status of the update may also be displayed by means of a text description or an icon, etc., for example, an update file is being downloaded, an update is being installed, etc. In order to ensure the accuracy and stability of the software update progress display, a developer needs to provide reasonable update progress information, ensure the accurate display of the update progress and avoid confusion or misleading to a user. In this embodiment, the node to be refreshed refers to software to be updated, the software is stored in a task configuration file, the refreshing sequence of each node to be refreshed is preconfigured by a staff of a vehicle factory, and the sample refreshing time is the refreshing time of the node to be refreshed in the test of the experimental object. The test object refers to a subject needing to be subjected to software upgrade, such as a smart car system, a computer system and the like.
Step S102, determining the residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed.
Specifically, the margin flush time is to ensure that the node to be flushed is sufficient to flush to end within the margin flush time from the beginning of the flush.
Step S103, based on the sample refreshing time, the progress points of the display bars of the nodes to be refreshed are obtained.
Specifically, the display progress bar is allocated based on the sample brushing time. As shown in fig. 2, when there are 4 nodes to be refreshed, the progress bar is displayed in proportion based on the sample refresh time of the 4 nodes to be refreshed, and the progress point of the progress bar is the position where the progress of the progress bar needs to reach when the refresh of the nodes to be refreshed is completed.
Step S104, determining a target node to be refreshed based on the refreshing sequence, and refreshing the target node to be refreshed.
Specifically, based on the flushing order, the next node to be flushed that needs to start flushing is determined to be the target node to be flushed, and in an alternative manner of some embodiments, the number of next nodes to be flushed that need to start flushing may be two or more.
Step S105, determining a target display bar progress point corresponding to the target node to be refreshed.
Specifically, traversing the display progress bar, and determining the position of a target display progress bar progress point corresponding to the target node to be refreshed on the display progress bar and the starting point position of the target node to be refreshed on the display progress bar.
Step S106, updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar.
Specifically, in the remaining refreshing time of the target node to be refreshed, the progress of the display progress bar is updated from the starting point position of the target node to be refreshed on the display progress bar to the position of the target node to be refreshed.
In step S107, when the target node to be refreshed is finished, the progress of the display progress bar is synchronized to the target display progress point.
Specifically, when the target node to be refreshed is finished, the progress of the display progress bar is updated based on the margin refreshing time, so that the current progress of the display progress bar does not reach the target display progress point, but the current progress of the display progress bar is very small in distance from the target display progress point, the progress of the display progress bar is synchronized to the target display progress point, and no abrupt sense is visually felt.
According to the upgrade progress display method provided by the embodiment, firstly, the node to be refreshed in the task configuration file, the refreshing sequence of each node to be refreshed and the sample refreshing time are obtained, the residual refreshing time of each node to be refreshed is respectively determined based on the sample refreshing time of each node to be refreshed, the upgrade progress of each node to be refreshed in the upgrade process is analyzed, the proper residual refreshing time of each node to be refreshed is determined, and the residual time is reserved for the refreshing node to refresh on the basis of considering the actual upgrade time, so that the upgrade progress display accuracy is improved; and secondly, obtaining the progress points of the display bars of each node to be refreshed based on sample refreshing time, determining target nodes to be refreshed based on the refreshing sequence, refreshing the target nodes to be refreshed, determining the corresponding target progress points of the display bars of the target nodes to be refreshed, updating the progress of the display bars based on the residual refreshing time of the target nodes to be refreshed and the target progress points of the display bars, segmenting each refreshing node to be refreshed and displayed, avoiding the problem that the accumulated progress deviation of each refreshing node causes larger deviation between the estimated upgrading percentage and time of the overall upgrading progress and the actual upgrading, and finally, synchronizing the progress of the display progress bars to the progress points of the target display bars when the refreshing of the target nodes to be refreshed is finished, and smoothing the residual progress before the progress points of the target display bars while reflecting the real refreshing progress by setting residual refreshing time, thereby improving the user experience.
In this embodiment, an upgrade progress display method is provided, and fig. 3 is a flowchart of an upgrade progress display method according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, obtaining nodes to be refreshed in the task configuration file, a refresh sequence of each node to be refreshed, and a sample refresh time. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S302, determining a residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed.
Specifically, step S302 includes:
in step S3021, a margin coefficient of each node to be refreshed is obtained.
Specifically, the margin coefficient of each node to be refreshed may be preconfigured by a staff member of the vehicle factory, which is used to represent an expansion multiple of the sample refresh time. In an alternative manner of some embodiments, the default value of the margin coefficient is 1.5, and the margin coefficient can be adjusted according to actual conditions in the upgrading process.
In step S3022, the margin flush time of each node to be flushed is determined based on the sample flush time and the margin coefficient.
Specifically, the calculation method of the residual refreshing time of each node to be refreshed comprises the following steps: residual flush time = residual coefficient x sample flush time, which is the flush time for a node to be flushed to test at the subject.
According to the upgrade progress display method provided by the embodiment, the margin coefficients of all nodes to be refreshed are obtained; based on the sample refreshing time and the margin coefficient, the margin refreshing time of each node to be refreshed is respectively determined, an appropriate margin coefficient is set, the delay of a refreshing task is prevented, when an unexpected situation or an unpredictable event occurs, the margin can provide additional time for processing and adjusting, the refreshing is completed on time, and the fault tolerance of the upgrade progress display is improved.
Step S303, based on the sample brushing time, the progress point of the display bar of each node to be brushed is obtained.
Specifically, step S303 includes:
step S3031, a swiping progress weight is determined based on the sample swiping time.
Specifically, the swiping progress weight is a direct proportional function of the sample swiping time. The swiping progress weight may be used to represent a proportion of a sample swiping time of each node to be swiped to a total swiping time.
Step S3032, a display progress bar is distributed based on the brushing progress weight, and the progress points of the display bars of the nodes to be brushed are obtained.
Specifically, the total progress of the display progress bar is 100%, the progress of the display progress bar is distributed based on the flashing progress weight, and the progress points of the display progress bar of each node to be flashed are arranged on the display progress bar according to the flashing sequence.
According to the upgrade progress display method provided by the embodiment, the brushing progress weight is determined based on the sample brushing time; based on the progress weight distribution display progress bar, the progress points of the display bars of the nodes to be refreshed are obtained, the progress of the nodes to be refreshed is displayed in a visual mode, a user can know the completion condition of the nodes at a glance, uncertainty and anxiety in the waiting process are avoided, and the user experience of upgrading progress display is further improved.
Step S304, determining a target node to be refreshed based on the refreshing sequence, and refreshing the target node to be refreshed. Please refer to step S104 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S305, determining a progress point of the target display bar corresponding to the target node to be refreshed. Please refer to step S105 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S306, updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar.
Specifically, step S206 includes:
step S3061, determining a display speed of the progress bar based on the margin writing time and the target display bar progress point.
Specifically, the distance from the current progress of the display progress bar to the target display progress point is the brushing distance of the target node to be brushed, and the display speed=the brushing distance +..
Step S3062, based on the display speed, updates the progress of the display progress bar.
Specifically, the progress of the display progress bar is updated at a constant speed based on the display speed calculated in step S3061.
According to the upgrade progress display method provided by the embodiment, the display speed of the progress bar is determined based on the allowance writing time and the target progress point of the display bar; based on the display speed, the progress of the display progress bar is updated, so that the real brushing progress is reflected, and the updating smoothness of the display progress bar is ensured.
In step S307, when the target node to be refreshed is finished, the progress of the display progress bar is synchronized to the target display progress point.
Specifically, when the target node to be refreshed finishes the refreshing, the progress of the current display progress bar is obtained, and the progress of the display progress bar is synchronized to the progress point of the target display progress bar.
In an alternative to some embodiments, the target node to be flushed includes both parallel flushing and serial flushing.
Specifically, when serial refreshing is performed, only one node to be refreshed is refreshed at the same time, the progress of the progress bar is updated from the starting point of the one node to be refreshed to the end point of the one node to be refreshed, when parallel refreshing is performed, at least two nodes to be refreshed are refreshed at the same time, and the progress of the progress bar is respectively updated from the starting point of each node to be refreshed to the end point of the same node to be refreshed.
According to the upgrade progress display method, the target node to be refreshed includes parallel refreshing and serial refreshing, the parallel refreshing can simultaneously refresh a plurality of nodes, the refreshing time is greatly shortened, the serial refreshing can ensure that each node is refreshed in sequence, data collision and errors are avoided, and the refreshing efficiency is improved by simultaneously performing the parallel refreshing and the serial refreshing.
In an alternative manner of some embodiments, when the margin flush time passes, determining a flush progress of the target node to be flushed; if the target node to be refreshed is not refreshed, generating a refresh timeout failure report; and adjusting the margin coefficient of the target node to be refreshed based on the refresh timeout failure report.
Specifically, when the allowance writing time passes, if it is determined that the writing progress of the target node to be written is the end of writing, checking the current writing speed, if the writing speed is zero, indicating that the writing on the vehicle is faulty, and if the writing speed is not zero, indicating that the allowance coefficient setting is faulty. And generating a brushing overtime failure report based on the brushing progress and the brushing speed, sending the report to a background of a vehicle factory, and adjusting the margin coefficient of the target node to be brushed.
According to the upgrade progress display method provided by the embodiment, the node with overtime of the refreshing operation can be found in time and processed by generating the failure report of the refreshing overtime. For nodes which cannot finish the writing in the specified time, performance or fault problems may exist, and the stability and reliability of the upgrade progress display system can be improved by timely adjusting the margin coefficients of the nodes.
In this embodiment, an upgrade progress display device is further provided, and the upgrade progress display device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides an upgrade progress display device, as shown in fig. 4, including:
the first obtaining module 401 is configured to obtain a node to be refreshed in the task configuration file, a refresh sequence of each node to be refreshed, and a sample refresh time.
A determining module 402, configured to determine a remaining flushing time of each node to be flushed based on the sample flushing time of each node to be flushed.
The segmentation module 403 is configured to obtain progress points of the display bars of the nodes to be refreshed based on the sample refresh time.
And the flushing module 404 is configured to determine a target node to be flushed based on the flushing sequence, and flush the target node to be flushed.
And the second obtaining module 405 is configured to determine a progress point of the target display bar corresponding to the target node to be refreshed.
And an updating module 406, configured to update the progress of the display progress bar based on the remaining swiping time of the target node to be swiped and the target progress point of the display progress bar.
And the synchronization module 407 is configured to synchronize the progress of the display progress bar to the progress point of the target display progress bar when the target node to be refreshed is finished.
According to the upgrade progress display system provided by the embodiment, firstly, the to-be-refreshed nodes in the task configuration file, the refreshing sequence and the sample refreshing time of each to-be-refreshed node are obtained, the residual refreshing time of each to-be-refreshed node is respectively determined based on the sample refreshing time of each to-be-refreshed node, the upgrade progress of each refreshing node in the upgrade process is analyzed, the proper residual refreshing time of each refreshing node is determined, and the residual time is reserved for the refreshing node to refresh on the basis of considering the actual upgrade time, so that the accuracy of upgrade progress display is improved; and secondly, obtaining the progress points of the display bars of each node to be refreshed based on sample refreshing time, determining target nodes to be refreshed based on the refreshing sequence, refreshing the target nodes to be refreshed, determining the corresponding target progress points of the display bars of the target nodes to be refreshed, updating the progress of the display bars based on the residual refreshing time of the target nodes to be refreshed and the target progress points of the display bars, segmenting each refreshing node to be refreshed and displayed, avoiding the problem that the accumulated progress deviation of each refreshing node causes larger deviation between the estimated upgrading percentage and time of the overall upgrading progress and the actual upgrading, and finally, synchronizing the progress of the display progress bars to the progress points of the target display bars when the refreshing of the target nodes to be refreshed is finished, and smoothing the residual progress before the progress points of the target display bars while reflecting the real refreshing progress by setting residual refreshing time, thereby improving the user experience.
In some alternative embodiments, the determining module 402 includes:
and the margin coefficient acquisition unit is used for acquiring the margin coefficient of each node to be refreshed.
And determining the residual refreshing time, and respectively determining the residual refreshing time of each node to be refreshed based on the sample refreshing time and the residual coefficient.
According to the upgrade progress display system provided by the embodiment, the margin coefficients of all nodes to be refreshed are obtained; based on the sample refreshing time and the margin coefficient, the margin refreshing time of each node to be refreshed is respectively determined, an appropriate margin coefficient is set, the delay of a refreshing task is prevented, when an unexpected situation or an unpredictable event occurs, the margin can provide additional time for processing and adjusting, the refreshing is completed on time, and the fault tolerance of the upgrade progress display is improved.
In some alternative embodiments, segmentation module 403 includes:
and the writing progress weight determining unit is used for determining writing progress weight based on the sample writing time.
And the display bar progress point distribution unit is used for distributing the display progress bars based on the brushing progress weight to obtain the display bar progress points of the nodes to be brushed.
According to the upgrade progress display system provided by the embodiment, the brushing progress weight is determined based on the sample brushing time; based on the progress weight distribution display progress bar, the progress points of the display bars of the nodes to be refreshed are obtained, the progress of the nodes to be refreshed is displayed in a visual mode, a user can know the completion condition of the nodes at a glance, uncertainty and anxiety in the waiting process are avoided, and the user experience of upgrading progress display is further improved.
In some alternative embodiments, the update module 406 includes:
and a display speed determining unit of the progress bar for determining the display speed of the progress bar based on the margin writing time and the target display bar progress point.
And updating the progress unit of the display progress bar, wherein the progress unit is used for updating the progress of the display progress bar based on the display speed.
According to the upgrade progress display system provided by the embodiment, the display speed of the progress bar is determined based on the margin writing time and the target progress point of the display bar; based on the display speed, the progress of the display progress bar is updated, so that the real brushing progress is reflected, and the updating smoothness of the display progress bar is ensured.
In an alternative to some embodiments, the sample flush time is the flush time at which the node to be flushed is tested at the subject.
According to the upgrade progress display system provided by the embodiment, the sample refreshing time is taken as the refreshing time of the node to be refreshed in the test of the experimental object, the actual refreshing time of the node to be refreshed is considered, and the upgrade progress display accuracy is improved.
In an alternative to some embodiments, flushing the target node to be flushed includes parallel flushing and serial flushing.
According to the upgrade progress display system, the target node to be refreshed includes parallel refreshing and serial refreshing, the parallel refreshing can simultaneously refresh a plurality of nodes, the refreshing time is greatly shortened, the serial refreshing can ensure that each node is refreshed in sequence, data collision and errors are avoided, and the refreshing efficiency is improved by simultaneously performing the parallel refreshing and the serial refreshing.
In an alternative manner of some embodiments, the upgrade progress display apparatus further includes:
and the refreshing progress checking module is used for determining the refreshing progress of the target node to be refreshed when the allowance refreshing time passes.
And the brushing overtime failure report generating module is used for generating a brushing overtime failure report if the target node to be brushed is not finished.
And the margin coefficient adjusting module is used for adjusting the margin coefficient of the target node to be refreshed based on the refresh timeout failure report.
According to the upgrade progress display system provided by the embodiment, the node with overtime of the refreshing operation can be found in time and processed by generating the failure report of the refreshing overtime. For nodes which cannot finish the writing in the specified time, performance or fault problems may exist, and the stability and reliability of the upgrade progress display system can be improved by timely adjusting the margin coefficients of the nodes.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The progress display device in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit ) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the functionality described above.
The embodiment of the invention also provides computer equipment, which is provided with the progress display device shown in the figure 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 5, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 5.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. An upgrade progress display method, comprising:
acquiring nodes to be refreshed in a task configuration file, a refreshing sequence of each node to be refreshed and sample refreshing time;
determining the residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed;
based on the sample brushing time, obtaining the progress points of the display bars of the nodes to be brushed;
determining a target node to be refreshed based on the refreshing sequence, and refreshing the target node to be refreshed;
determining a target display bar progress point corresponding to the target node to be refreshed;
updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar;
and when the target node to be refreshed finishes the refreshing, synchronizing the progress of the display progress bar to a target display progress bar progress point.
2. The method of claim 1, wherein the determining the remaining flush time for each node to be flushed based on the sample flush time for each node to be flushed, respectively, comprises:
obtaining the margin coefficient of each node to be refreshed;
and respectively determining the residual refreshing time of each node to be refreshed based on the sample refreshing time and the residual coefficient.
3. The method of claim 1, wherein the obtaining a progress point of a display bar for each node to be refreshed based on the sample refresh time comprises:
determining a brushing progress weight based on the sample brushing time;
and distributing the display progress bar based on the brushing progress weight to obtain the progress points of the display bars of the nodes to be brushed.
4. The method of claim 1, wherein updating the progress of the display progress bar based on the target remaining swiping time of the target node to be swiped and the target display progress point comprises:
determining the display speed of a progress bar based on the margin writing time and the target progress point of the display bar;
and updating the progress of the display progress bar based on the display speed.
5. The method of claim 1, wherein the sample flush time is a flush time at which the node to be flushed is tested in a subject.
6. The method of claim 1, wherein the swiping the target node to be flushed comprises a parallel flush and a serial flush.
7. The method according to claim 1, wherein the method further comprises:
when the allowance refreshing time passes, determining the refreshing progress of the target node to be refreshed;
if the target node to be refreshed is not refreshed, generating a refresh timeout failure report;
and adjusting the margin coefficient of the target node to be refreshed based on the refresh timeout failure report.
8. An upgrade progress display apparatus, comprising:
the first acquisition module is used for acquiring nodes to be refreshed in the task configuration file, the refreshing sequence of each node to be refreshed and the sample refreshing time;
the determining module is used for determining the residual refreshing time of each node to be refreshed based on the sample refreshing time of each node to be refreshed;
the segmentation module is used for obtaining the progress points of the display bars of the nodes to be refreshed based on the sample refreshing time;
the refreshing module is used for determining a target node to be refreshed based on the refreshing sequence and refreshing the target node to be refreshed;
the second acquisition module is used for determining a target display bar progress point corresponding to the target node to be refreshed;
the updating module is used for updating the progress of the display progress bar based on the residual refreshing time of the target node to be refreshed and the progress point of the target display progress bar;
and the synchronization module is used for synchronizing the progress of the display progress bar to the progress point of the target display progress bar when the target node to be refreshed finishes the refreshing.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the upgrade progress display method of any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the upgrade progress display method of any one of claims 1 to 7.
CN202311352067.7A 2023-10-18 2023-10-18 Upgrade progress display method and device, computer equipment and storage medium Pending CN117193603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311352067.7A CN117193603A (en) 2023-10-18 2023-10-18 Upgrade progress display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311352067.7A CN117193603A (en) 2023-10-18 2023-10-18 Upgrade progress display method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117193603A true CN117193603A (en) 2023-12-08

Family

ID=88992628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311352067.7A Pending CN117193603A (en) 2023-10-18 2023-10-18 Upgrade progress display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117193603A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170123782A1 (en) * 2015-10-29 2017-05-04 Hyundai Motor Company Terminal, vehicle, and method for controlling the same
US20200342693A1 (en) * 2019-04-29 2020-10-29 Baidu Usa Llc Data collection automation system
CN111897546A (en) * 2020-06-30 2020-11-06 吉利汽车研究院(宁波)有限公司 Vehicle software flashing method, system, equipment and storage medium
CN111966376A (en) * 2020-08-17 2020-11-20 深圳市元征科技股份有限公司 Data flashing method and related equipment
CN112882768A (en) * 2021-02-07 2021-06-01 深圳市来玩科技有限公司 Progress bar loading method, device and equipment and computer readable storage medium
CN113515247A (en) * 2021-05-19 2021-10-19 宝能(广州)汽车研究院有限公司 Upgrade progress display method, device, equipment and medium
CN113902411A (en) * 2021-10-11 2022-01-07 国网河北省电力有限公司衡水供电分公司 Project time progress display method and device, terminal and storage medium
CN114860289A (en) * 2022-05-30 2022-08-05 中国科学院空天信息创新研究院 Software automatic update management method, device, equipment and medium
CN115221069A (en) * 2022-07-29 2022-10-21 重庆长安汽车股份有限公司 Electronic control unit upgrade test method, system, electronic device and storage medium
CN116382735A (en) * 2023-04-04 2023-07-04 合众新能源汽车股份有限公司 Progress display and exception handling method for domain controller upgrading, system and equipment thereof
CN116610095A (en) * 2023-05-11 2023-08-18 埃诺威(苏州)新能源科技有限公司 Monitoring method, controller, storage medium and monitoring system for ECU (electronic control Unit) refreshing process
CN116643775A (en) * 2023-06-20 2023-08-25 岚图汽车科技有限公司 Vehicle OTA upgrading control method and related equipment
CN116775079A (en) * 2023-06-29 2023-09-19 重庆长安汽车股份有限公司 Vehicle part refreshing method and device, electronic equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170123782A1 (en) * 2015-10-29 2017-05-04 Hyundai Motor Company Terminal, vehicle, and method for controlling the same
US20200342693A1 (en) * 2019-04-29 2020-10-29 Baidu Usa Llc Data collection automation system
CN111897546A (en) * 2020-06-30 2020-11-06 吉利汽车研究院(宁波)有限公司 Vehicle software flashing method, system, equipment and storage medium
CN111966376A (en) * 2020-08-17 2020-11-20 深圳市元征科技股份有限公司 Data flashing method and related equipment
CN112882768A (en) * 2021-02-07 2021-06-01 深圳市来玩科技有限公司 Progress bar loading method, device and equipment and computer readable storage medium
CN113515247A (en) * 2021-05-19 2021-10-19 宝能(广州)汽车研究院有限公司 Upgrade progress display method, device, equipment and medium
CN113902411A (en) * 2021-10-11 2022-01-07 国网河北省电力有限公司衡水供电分公司 Project time progress display method and device, terminal and storage medium
CN114860289A (en) * 2022-05-30 2022-08-05 中国科学院空天信息创新研究院 Software automatic update management method, device, equipment and medium
CN115221069A (en) * 2022-07-29 2022-10-21 重庆长安汽车股份有限公司 Electronic control unit upgrade test method, system, electronic device and storage medium
CN116382735A (en) * 2023-04-04 2023-07-04 合众新能源汽车股份有限公司 Progress display and exception handling method for domain controller upgrading, system and equipment thereof
CN116610095A (en) * 2023-05-11 2023-08-18 埃诺威(苏州)新能源科技有限公司 Monitoring method, controller, storage medium and monitoring system for ECU (electronic control Unit) refreshing process
CN116643775A (en) * 2023-06-20 2023-08-25 岚图汽车科技有限公司 Vehicle OTA upgrading control method and related equipment
CN116775079A (en) * 2023-06-29 2023-09-19 重庆长安汽车股份有限公司 Vehicle part refreshing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
Abts et al. COCOTS: A COTS software integration lifecycle cost model-model overview and preliminary data collection findings
CN109491671B (en) Diagnostic software downloading method and device, terminal equipment and storage medium
CN102270144B (en) Embedded network equipment and method for upgrading firmware by using same
CN106484456B (en) Method and subsystem for installing software updates in a vehicle
US20170147470A1 (en) Method and system for time-based data generation
DE102020112530A1 (en) Technologies to ensure the functional safety of an electronic device
CN107992420B (en) Management method and system for test item
CN117193603A (en) Upgrade progress display method and device, computer equipment and storage medium
US20180074484A1 (en) Method and apparatus for generating a fault tree for a failure mode of a complex system
KR100276848B1 (en) A method of adding constrained cluster points to interconnection nets in integrated circuit chips and packages
CN116009922A (en) Vehicle, software flashing method and device for vehicle and storage medium
CN112559373B (en) Software compatibility management method and system
CN104866380A (en) Method and device for processing state transition of cluster management system
CN109324802B (en) Method and device for configuring server
CN114328126A (en) Automatic testing method and device, storage medium and electronic equipment
CN110399157B (en) Method and development machine for developing Ambari tool page
RU2678512C1 (en) Related to motor vehicles data processing method for the purpose of the subsequent electrical systems electrical diagrams graphic construction
CN108804254A (en) Method and system for troubleshooting during vehicle medium-long range installation software
CN116775083B (en) Brushing method and device of vehicle-mounted controller and electronic equipment
CN116662123B (en) Method and device for monitoring server component, electronic equipment and storage medium
CN112468614B (en) Method for automatically identifying access style supported by object storage
US20230098608A1 (en) Dynamic immutable security personalization for enterprise products
CN110674622B (en) Visual chart generation method and system, storage medium and electronic equipment
CN108763247B (en) Method and device for processing user request in data migration process
JP6403407B2 (en) Data update method, data update system, and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination