Vehicle OTA upgrade checking method, device, equipment and storage medium

文档序号:107702 发布日期:2021-10-15 浏览:21次 中文

阅读说明:本技术 车辆ota升级检查方法、装置、设备及存储介质 (Vehicle OTA upgrade checking method, device, equipment and storage medium ) 是由 余亮 陈秀 钱亚容 于 2021-06-30 设计创作,主要内容包括:本发明公开了一种车辆OTA升级检查方法、装置、设备及存储介质,所述方法通过获取目标车辆在整车OTA升级中的升级依赖关系图;从所述升级依赖关系图中获得各电子器件的升级路径,通过令牌跟踪所述升级路径;统计所有令牌的累计值,将所述累计值与预设特定值进行比较,判断所述目标车辆的各电子器件是否完成升级,能够在升级完毕同时,就能确定本次升级的所有的电子器件是否全部完成升级,而不需要事后检查,避免了升级结束时刻存在的遗漏问题,提高了整车OTA升级的升级检查效率和速度,节省了OTA升级检查的时间,保证了OTA升级的全面性和精确性。(The invention discloses a vehicle OTA upgrade check method, a device, equipment and a storage medium, wherein the method comprises the steps of obtaining an upgrade dependency graph of a target vehicle in the whole vehicle OTA upgrade; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether all electronic devices of a target vehicle are upgraded or not, determining whether all the electronic devices of the current upgrade are upgraded or not when the upgrade is finished, and avoiding omission at the moment of finishing the upgrade without post-inspection, thereby improving the upgrade inspection efficiency and speed of OTA upgrade of the whole vehicle, saving the OTA upgrade inspection time, and ensuring the comprehensiveness and accuracy of the OTA upgrade.)

1. A vehicle OTA upgrade checking method is characterized by comprising the following steps:

acquiring an upgrading dependency relationship graph of a target vehicle in OTA (on-board technology) upgrading of the whole vehicle;

obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token;

and counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

2. The OTA upgrade inspection method for vehicles according to claim 1, wherein the obtaining of the upgrade dependency graph of the target vehicle in the OTA upgrade for entire vehicles includes:

acquiring the sequential dependency relationship between electronic devices of a target vehicle in the OTA upgrade of the whole vehicle;

and representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

3. The OTA upgrade inspection method for vehicle according to claim 2, wherein the generating of the upgrade dependency graph of the target vehicle in the OTA upgrade of the entire vehicle by using the arrowed line segment to represent the precedence dependency comprises:

representing the precedence dependency relationship by using a line segment with an arrow, wherein a device without the arrow end of the line segment is used as a precursor of the device without the arrow end of the line segment, the device without the arrow end of the line segment is used as a successor of the device without the arrow end of the line segment, and the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment;

and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

4. The vehicle OTA upgrade checking method according to claim 3, wherein obtaining an upgrade path for each electronic device from the upgrade dependency graph, tracking the upgrade path via a token, comprises:

obtaining the upgrading paths of the electronic devices from the upgrading dependency relationship graph, and distributing a token for each upgrading path from a virtual starting point;

and tracking and recording the upgrade path through the token.

5. The vehicle OTA upgrade check method according to claim 4, wherein prior to tracking and recording the upgrade path via the token, the vehicle OTA upgrade check method further comprises:

and connecting a virtual starting point to the head end of each upgrading path, and connecting a virtual ending point to the tail end of each upgrading path, wherein the virtual starting point points to all device nodes without predecessors, and the virtual ending point is pointed to by all device nodes without successors.

6. The OTA inspection method for vehicle according to claim 5, wherein the counting the accumulated value of all the tokens, comparing the accumulated value with a predetermined value, and determining whether the electronic devices of the target vehicle are upgraded comprises:

recording the value of all tokens entering any upgrading path and entering each segment of arrowed line segment, generating an accumulated token entering record, recording the value of all tokens entering any upgrading path and leaving each segment of arrowed line segment, and generating an accumulated token record;

taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal;

and comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle is upgraded or not.

7. The OTA inspection method for vehicle according to claim 6, wherein the comparing the accumulated value with the predetermined specific value to determine whether the electronic devices of the target vehicle are upgraded comprises:

comparing the accumulated value with a preset specific value to generate a comparison result;

when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading;

and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

8. A vehicle OTA upgrade check device, characterized in that, vehicle OTA upgrade check device includes:

the acquisition module is used for acquiring an upgrading dependency graph of a target vehicle in OTA (on-board technology area) upgrading of the whole vehicle;

the tracking module is used for acquiring the upgrading path of each electronic device from the upgrading dependency relationship graph and tracking the upgrading path through a token;

and the judging module is used for counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value and judging whether the electronic devices of the target vehicle are upgraded or not.

9. A vehicle OTA upgrade check device, comprising: memory, a processor and a vehicle OTA upgrade check program stored on the memory and executable on the processor, the vehicle OTA upgrade check program configured to implement the steps of the vehicle OTA upgrade check method according to any one of claims 1 to 7.

10. A storage medium having a vehicle OTA upgrade check program stored thereon which, when executed by a processor, implements the steps of the vehicle OTA upgrade check method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of vehicle remote upgrading, in particular to a vehicle OTA upgrading checking method, device, equipment and storage medium.

Background

The Over the Air technology (OTA) refers to any process of transmitting data in a wireless manner, not in a cable or other local connection manner, the OTA of an automobile generally refers to a process of connecting to a background server in a wireless manner to perform software downloading and upgrading, that is, an upgrade group is specified, and includes a specific plurality of Electronic Control Units (ECUs) to be upgraded and associated with each other, and after the ECUs to be upgraded are sequentially upgraded according to a specified topological order, whether the ECUs to be upgraded have upgraded the software is checked one by one, but the method has an objective disadvantage: after upgrading is finished, whether all the software of each ECU to be upgraded is required to be checked one by one, and whether all the software is upgraded can not be determined at the same time when the upgrading is finished without omission.

Disclosure of Invention

The invention mainly aims to provide a vehicle OTA upgrade check method, a vehicle OTA upgrade check device, vehicle OTA upgrade check equipment and a storage medium, and aims to solve the technical problems that in the prior art, the whole vehicle OTA upgrade check is complicated, and omission exists after the upgrade is finished.

In a first aspect, the invention provides a vehicle OTA upgrade checking method, which includes the following steps:

acquiring an upgrading dependency relationship graph of a target vehicle in OTA (on-board technology) upgrading of the whole vehicle;

obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token;

and counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

Optionally, the obtaining of the upgrade dependency graph of the target vehicle in the OTA upgrade of the entire vehicle includes:

acquiring the sequential dependency relationship between electronic devices of a target vehicle in the OTA upgrade of the whole vehicle;

and representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

Optionally, the representing the precedence dependency relationship by a line segment with an arrow to generate an upgrade dependency relationship diagram of the target vehicle in the OTA upgrade of the entire vehicle includes:

representing the precedence dependency relationship by using a line segment with an arrow, wherein a device without the arrow end of the line segment is used as a precursor of the device without the arrow end of the line segment, the device without the arrow end of the line segment is used as a successor of the device without the arrow end of the line segment, and the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment;

and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

Optionally, the obtaining an upgrade path of each electronic device from the upgrade dependency graph, and tracking the upgrade path through a token includes:

obtaining the upgrading paths of the electronic devices from the upgrading dependency relationship graph, and distributing a token for each upgrading path from a virtual starting point;

and tracking and recording the upgrade path through the token.

Optionally, before tracking and recording the upgrade path through the token, the vehicle OTA upgrade checking method further includes:

and connecting a virtual starting point to the head end of each upgrading path, and connecting a virtual ending point to the tail end of each upgrading path, wherein the virtual starting point points to all device nodes without predecessors, and the virtual ending point is pointed to by all device nodes without successors.

Optionally, the counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value, and determining whether each electronic device of the target vehicle is upgraded includes:

recording the value of all tokens entering any upgrading path and entering each segment of arrowed line segment, generating an accumulated token entering record, recording the value of all tokens entering any upgrading path and leaving each segment of arrowed line segment, and generating an accumulated token record;

taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal;

and comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle is upgraded or not.

Optionally, the comparing the accumulated value with a preset specific value to determine whether each electronic device of the target vehicle is upgraded includes:

comparing the accumulated value with a preset specific value to generate a comparison result;

when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading;

and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

In a second aspect, to achieve the above object, the present invention further provides a vehicle OTA upgrade checking device, including:

the acquisition module is used for acquiring an upgrading dependency graph of a target vehicle in OTA (on-board technology area) upgrading of the whole vehicle;

the tracking module is used for acquiring the upgrading path of each electronic device from the upgrading dependency relationship graph and tracking the upgrading path through a token;

and the judging module is used for counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value and judging whether the electronic devices of the target vehicle are upgraded or not.

In a third aspect, to achieve the above object, the present invention further provides a vehicle OTA upgrade checking device, including: a memory, a processor, and a vehicle OTA upgrade check program stored on the memory and executable on the processor, the vehicle OTA upgrade check program configured to implement the steps of the vehicle OTA upgrade check method as described above.

In a fourth aspect, to achieve the above object, the present invention further provides a storage medium having a vehicle OTA upgrade check program stored thereon, which when executed by a processor implements the steps of the vehicle OTA upgrade check method as described above.

The OTA upgrade checking method for the vehicle, provided by the invention, comprises the steps of obtaining an upgrade dependency graph of a target vehicle in OTA upgrade of the whole vehicle; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether all electronic devices of a target vehicle are upgraded or not, determining whether all the electronic devices of the current upgrade are upgraded or not when the upgrade is finished, and avoiding omission at the moment of finishing the upgrade without post-inspection, thereby improving the upgrade inspection efficiency and speed of OTA upgrade of the whole vehicle, saving the OTA upgrade inspection time, and ensuring the comprehensiveness and accuracy of the OTA upgrade.

Drawings

FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart of a first embodiment of the OTA upgrade checking method for a vehicle according to the present invention;

FIG. 3 is a flowchart illustrating a second embodiment of the OTA upgrade checking method for a vehicle according to the present invention;

FIG. 4 is a flowchart illustrating a vehicle OTA upgrade checking method according to a third embodiment of the present invention;

FIG. 5 is a flowchart illustrating a vehicle OTA upgrade checking method according to a fourth embodiment of the present invention;

FIG. 6 is a flowchart illustrating a fifth embodiment of the OTA upgrade checking method for a vehicle according to the present invention;

FIG. 7 is a schematic diagram illustrating the token value exclusive or pair cancellation in the OTA upgrade checking method for vehicles according to the present invention;

FIG. 8 is a schematic diagram illustrating the cancellation of the positive and negative pairs of token values in the OTA upgrade checking method for vehicles according to the present invention;

fig. 9 is a functional block diagram of a first embodiment of the OTA upgrade checking device for vehicle according to the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The solution of the embodiment of the invention is mainly as follows: obtaining an upgrading dependency graph of a target vehicle in OTA upgrading of a whole vehicle; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether each electronic device of a target vehicle finishes upgrading, determining whether all the electronic devices upgraded at this time finish upgrading when upgrading is finished, avoiding missing problems existing at the moment of finishing upgrading without post-inspection, improving the upgrading inspection efficiency and speed of OTA upgrading of the whole vehicle, saving the time for OTA upgrading inspection, ensuring the comprehensiveness and accuracy of OTA upgrading, and solving the technical problems that the OTA upgrading inspection is complicated and the missing exists after upgrading in the prior art.

Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.

As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface). The Memory 1005 may be a high-speed RAM Memory or a Non-Volatile Memory (Non-Volatile Memory), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.

Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a vehicle OTA upgrade check program.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005 and performs the following operations:

acquiring an upgrading dependency relationship graph of a target vehicle in OTA (on-board technology) upgrading of the whole vehicle;

obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token;

and counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

acquiring the sequential dependency relationship between electronic devices of a target vehicle in the OTA upgrade of the whole vehicle;

and representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

representing the precedence dependency relationship by using a line segment with an arrow, wherein a device without the arrow end of the line segment is used as a precursor of the device without the arrow end of the line segment, the device without the arrow end of the line segment is used as a successor of the device without the arrow end of the line segment, and the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment;

and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

obtaining the upgrading paths of the electronic devices from the upgrading dependency relationship graph, and distributing a token for each upgrading path from a virtual starting point;

and tracking and recording the upgrade path through the token.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

and connecting a virtual starting point to the head end of each upgrading path, and connecting a virtual ending point to the tail end of each upgrading path, wherein the virtual starting point points to all device nodes without predecessors, and the virtual ending point is pointed to by all device nodes without successors.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

recording the value of all tokens entering any upgrading path and entering each segment of arrowed line segment, generating an accumulated token entering record, recording the value of all tokens entering any upgrading path and leaving each segment of arrowed line segment, and generating an accumulated token record;

taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal;

and comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle is upgraded or not.

The device of the invention calls, through the processor 1001, the vehicle OTA upgrade check program stored in the memory 1005, and also performs the following operations:

comparing the accumulated value with a preset specific value to generate a comparison result;

when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading;

and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

According to the scheme, the upgrading dependency graph of the target vehicle in the OTA upgrading of the whole vehicle is obtained; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether all electronic devices of a target vehicle are upgraded or not, determining whether all the electronic devices of the current upgrade are upgraded or not when the upgrade is finished, and avoiding omission at the moment of finishing the upgrade without post-inspection, thereby improving the upgrade inspection efficiency and speed of OTA upgrade of the whole vehicle, saving the OTA upgrade inspection time, and ensuring the comprehensiveness and accuracy of the OTA upgrade.

Based on the hardware structure, the embodiment of the vehicle OTA upgrade checking method is provided.

Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the vehicle OTA upgrade checking method according to the present invention.

In a first embodiment, the vehicle OTA upgrade checking method comprises the following steps:

and step S10, obtaining an upgrade dependency graph of the target vehicle in the OTA upgrade of the whole vehicle.

It should be noted that the upgrade dependency graph is a schematic diagram of dependencies corresponding to a plurality of electronic devices of a vehicle when a preset vehicle OTA is upgraded, vehicles corresponding to different vehicle types correspond to different electronic devices and further correspond to different upgrade dependency graphs, and the upgrade dependency graph may be obtained by finding a relationship graph corresponding to a target vehicle to be upgraded in a preset database, or may be obtained by temporarily constructing a dependency graph after determining a corresponding electronic device, which is not limited in this embodiment.

And step S20, obtaining the upgrade path of each electronic device from the upgrade dependency relationship diagram, and tracking the upgrade path through a token.

It is understood that in the upgrade dependency graph, a plurality of electronic devices having a dependency relationship with each other are embodied as a continuous upgrade path including nodes, the upgrade path of each electronic device is obtained from the dependency graph, and can be tracked by a token, and the token may be a segment of storage space for storing a number or a character string.

And step S30, counting the accumulated value of all the tokens, comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

It should be understood that the accumulated value of all tokens can be counted by an accumulated calculation method, the preset specific value is a preset expected accumulated specific threshold, and whether each electronic device of the target vehicle is upgraded or not can be judged according to the corresponding comparison result by comparing the accumulated value with the preset specific value.

According to the scheme, the upgrading dependency graph of the target vehicle in the OTA upgrading of the whole vehicle is obtained; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether all electronic devices of a target vehicle are upgraded or not, determining whether all the electronic devices of the current upgrade are upgraded or not when the upgrade is finished, and avoiding omission at the moment of finishing the upgrade without post-inspection, thereby improving the upgrade inspection efficiency and speed of OTA upgrade of the whole vehicle, saving the OTA upgrade inspection time, and ensuring the comprehensiveness and accuracy of the OTA upgrade.

Further, fig. 3 is a schematic flow chart of a second embodiment of the vehicle OTA upgrade checking method according to the present invention, and as shown in fig. 3, the second embodiment of the vehicle OTA upgrade checking method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S10 specifically includes the following steps:

and step S11, acquiring the precedence dependency relationship among the electronic devices of the target vehicle in the OTA upgrade of the whole vehicle.

It should be noted that, the target vehicle has a dependency relationship between the electronic devices in the whole vehicle OTA upgrade, and corresponding dependency relationship data may be acquired from the upgrade dependency relationship diagram.

And step S12, representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

It can be understood that the sequence dependency relationship between the electronic devices can be represented by a line segment with an arrow, so that a schematic diagram of the dependency relationship between the electronic devices of the target vehicle in the OTA upgrade of the whole vehicle can be generated.

Further, the step S12 specifically includes the following steps:

representing the precedence dependency relationship by using a line segment with an arrow, wherein a device without the arrow end of the line segment is used as a precursor of the device without the arrow end of the line segment, the device without the arrow end of the line segment is used as a successor of the device without the arrow end of the line segment, and the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment;

and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

It should be understood that the precedence dependency relationship between the devices is represented by a line segment with an arrow, the device without the arrow end of the line segment is called a front driver of the device without the arrow end, the device without the arrow end of the line segment is called a back driver of the device without the arrow end, the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment, and after drawing and associating the line segments of the arrow, an upgrade dependency relationship graph of the target vehicle in OTA upgrade of the whole vehicle can be generated.

According to the scheme, the sequence dependency relationship among the electronic devices of the target vehicle in the OTA upgrading of the whole vehicle is obtained; representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle; the method can generate a detailed upgrade dependency graph, ensures the upgrade precision, and improves the speed and efficiency of the whole OTA upgrade.

Further, fig. 4 is a schematic flow chart of a third embodiment of the vehicle OTA upgrade checking method according to the present invention, and as shown in fig. 4, the third embodiment of the vehicle OTA upgrade checking method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S20 specifically includes the following steps:

step S21, obtaining the upgrade path of each electronic device from the upgrade dependency graph, and assigning a token to each upgrade path from a virtual starting point.

It should be noted that, path extraction may be performed from the upgrade dependency graph, so as to obtain upgrade paths of the electronic devices, where the upgrade paths corresponding to different electronic devices may be the same or different, and generally, a token may be allocated to each upgrade path from a virtual starting point, where the virtual starting point is a point with a preset virtual point as a starting point.

And step S22, tracking and recording the upgrade path through the token.

It can be understood that the token can pass through each upgrade node of the path along the path to finally reach the virtual end point, so that the upgrade path tracking recording function can be realized.

In this embodiment, by the above scheme, the upgrade path of each electronic device is obtained from the upgrade dependency graph, and a token is allocated to each upgrade path from a virtual starting point; the upgrading paths are tracked and recorded through the token, the upgrading states of all the upgrading paths can be tracked and recorded, the problem of omission at the moment of finishing upgrading is avoided, and the upgrading checking efficiency and speed of OTA upgrading of the whole vehicle are improved.

Further, fig. 5 is a schematic flow chart of a fourth embodiment of the vehicle OTA upgrade checking method according to the present invention, and as shown in fig. 5, the fourth embodiment of the vehicle OTA upgrade checking method according to the present invention is proposed based on the third embodiment, in this embodiment, before the step S22, the vehicle OTA upgrade checking method further includes the following steps:

step S221, connecting a virtual start point to the head end of each upgrade path, and connecting a virtual end point to the tail end of each upgrade path, where the virtual start point points to all device nodes without predecessors, and the virtual end point is pointed to by all device nodes without successors.

It should be noted that before the upgrade path is tracked and recorded, a virtual start point needs to be connected to the head end of each upgrade path, and a virtual end point needs to be connected to the tail end of each upgrade path, that is, the virtual start point points to all device nodes without predecessors, and the virtual end point points to device nodes without successors.

In a specific implementation, starting from a virtual starting point, a token (which may be understood as a segment of storage space that may store a number or a character string) is allocated for each upgrade path; the token passes through each upgrading node of the upgrading path along the upgrading path and finally reaches a virtual terminal.

According to the scheme, the head end of each upgrading path is connected with the virtual starting point, the tail end of each upgrading path is connected with the virtual terminal point, the virtual starting point points to all device nodes without predecessors, and the virtual terminal point is pointed by all device nodes without successors, so that the upgrading paths can be traced more clearly and conveniently, and the OTA upgrading speed and efficiency of the vehicle are improved.

Further, fig. 6 is a schematic flow chart of a fifth embodiment of the vehicle OTA upgrade checking method according to the present invention, and as shown in fig. 6, the fifth embodiment of the vehicle OTA upgrade checking method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S30 specifically includes the following steps:

and step S31, recording the value of all tokens entering any upgrading path and entering each section of arrowed line segment, generating an accumulated token entering record, recording the value of all tokens entering any upgrading path and leaving each section of arrowed line segment, and generating an accumulated token record.

It should be noted that, when each token passes through each segment along any upgrade path, the values of the entering segment and the leaving segment are accumulated into the token record and accumulator, and by recording the values of all the tokens entering into each segment of the arrowed segment and leaving from each segment of the arrowed segment, the corresponding accumulated token record and accumulated token record can be obtained.

And step S32, taking the cumulative token record and the cumulative token record as a token-contained cumulative value, wherein the values in the cumulative token record and the cumulative token record are pairwise cancelled when equal.

It will be appreciated that the running token record and the running token record may be referred to as running tokens, and in actual practice, the token record and the totalizer keep only one running token throughout.

In a specific implementation, the values in the cumulative incoming token record and the cumulative outgoing token record are pairwise cancelled when they are equal, that is, all tokens in all paths, and at each time when a token enters and leaves a segment with an arrow, the two times (entering segment and leaving segment) the token has a value that satisfies the property of pairwise cancellation, for example, for the exclusive or calculation, as shown in fig. 7, fig. 7 is a schematic diagram illustrating the pairwise cancellation of the exclusive or of the token values in the vehicle OTA upgrade checking method of the present invention, and the equal values can be pairwise cancelled; for example, for the summation calculation, as shown in fig. 8, fig. 8 is a schematic diagram illustrating pairs of positive and negative cancellation of token values in the vehicle OTA upgrade checking method of the present invention, and equal and opposite values can be cancelled in pairs.

Correspondingly, for a line segment with an arrow (from an end without an arrow to an end with an arrow) passed by the token, the value of the token before entering the line segment is given by the node without the arrow after the upgrading of the node is finished; the value after the token leaves the line segment and the value before the token enters the line segment satisfy the property of pair-wise cancellation according to a specific accumulative calculation method.

And step S33, comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

It should be understood that by comparing the accumulated value with a preset specific value, a corresponding comparison result can be generated, and whether each electronic device of the target vehicle is upgraded can be judged according to the comparison result.

Further, the step S33 specifically includes the following steps:

comparing the accumulated value with a preset specific value to generate a comparison result;

when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading;

and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

It can be understood that, if the accumulated value of all tokens in the token record and the accumulator is equal to a certain specific value, it is generally 0, and of course, it may also be other values, which is not limited in this embodiment, and when the comparison result is that the accumulated value is equal to a preset specific value, it may be necessary to insufficiently determine that the whole upgrade process is normal; if the number of the nodes is not equal to the preset specific value, the upgrading is inevitably incomplete, and some or some nodes are not upgraded successfully; the effect that whether all the electronic devices of the upgrade are completely upgraded can be determined without checking afterwards is achieved when the upgrade is finished.

According to the scheme, the accumulated token entering record is generated by recording the value of all tokens entering any upgrading path and entering each section of line segment with an arrow, the value of all tokens entering any upgrading path and leaving each section of line segment with an arrow is recorded, and the accumulated token record is generated; taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal; and comparing the accumulated value with a preset specific value, judging whether each electronic device of the target vehicle finishes upgrading, determining whether all the electronic devices of the upgrading finish upgrading or not at the same time of finishing upgrading without checking afterwards, avoiding the missing problem existing at the moment of finishing upgrading, improving the upgrading checking efficiency and speed of the OTA upgrading of the whole vehicle, saving the time of OTA upgrading checking, and ensuring the comprehensiveness and accuracy of the OTA upgrading.

Correspondingly, the invention further provides a vehicle OTA upgrade checking device.

Referring to fig. 9, fig. 9 is a functional block diagram of a first embodiment of the OTA upgrade checking device for vehicle according to the present invention.

In a first embodiment of the OTA upgrade inspection apparatus for a vehicle according to the present invention, the OTA upgrade inspection apparatus for a vehicle includes:

the obtaining module 10 is configured to obtain an upgrade dependency graph of the target vehicle in the OTA upgrade of the entire vehicle.

And the tracking module 20 is configured to obtain an upgrade path of each electronic device from the upgrade dependency graph, and track the upgrade path through a token.

And the judging module 30 is configured to count the accumulated values of all the tokens, compare the accumulated values with a preset specific value, and judge whether each electronic device of the target vehicle is upgraded.

The obtaining module 10 is further configured to obtain a sequential dependency relationship between electronic devices of the target vehicle in the OTA upgrade of the whole vehicle; and representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

The obtaining module 10 is further configured to represent the precedence dependency relationship by using a line segment with an arrow, where a device of the line segment without the arrow end is used as a precursor of the device of the line segment arrow end, the device of the line segment arrow end is used as a successor of the device of the line segment without the arrow end, and an OTA upgrade priority of the device of the line segment without the arrow end is higher than that of the device of the line segment arrow end; and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

The tracking module 20 is further configured to obtain an upgrade path of each electronic device from the upgrade dependency graph, and allocate a token to each upgrade path from a virtual starting point; and tracking and recording the upgrade path through the token.

The tracking module 20 is further configured to connect a virtual start point to a head end of each upgrade path, and connect a virtual end point to a tail end of each upgrade path, where the virtual start point points to all device nodes without predecessors, and the virtual end point is pointed to by all device nodes without successors.

The judging module 30 is further configured to record values of all tokens entering any upgrade path and entering each segment of arrowed line segment, generate an accumulated token entering record, record values of all tokens entering any upgrade path and leaving each segment of arrowed line segment, and generate an accumulated token record; taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal; and comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle is upgraded or not.

The judging module 30 is further configured to compare the accumulated value with a preset specific value, and generate a comparison result; when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading; and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

The steps implemented by each functional module of the vehicle OTA upgrade checking device can refer to each embodiment of the vehicle OTA upgrade checking method of the present invention, and are not described herein again.

In addition, an embodiment of the present invention further provides a storage medium, where a vehicle OTA upgrade check program is stored on the storage medium, and when executed by a processor, the vehicle OTA upgrade check program implements the following operations:

acquiring an upgrading dependency relationship graph of a target vehicle in OTA (on-board technology) upgrading of the whole vehicle;

obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token;

and counting the accumulated values of all the tokens, comparing the accumulated values with a preset specific value, and judging whether each electronic device of the target vehicle finishes upgrading.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

acquiring the sequential dependency relationship between electronic devices of a target vehicle in the OTA upgrade of the whole vehicle;

and representing the precedence dependency relationship by using a line segment with an arrow, and generating an upgrade dependency relationship graph of the target vehicle in the OTA upgrade of the whole vehicle.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

representing the precedence dependency relationship by using a line segment with an arrow, wherein a device without the arrow end of the line segment is used as a precursor of the device without the arrow end of the line segment, the device without the arrow end of the line segment is used as a successor of the device without the arrow end of the line segment, and the OTA upgrade priority of the device without the arrow end of the line segment is prior to the device without the arrow end of the line segment;

and drawing and associating the arrow line segments to generate an upgrading dependency relationship diagram of the target vehicle in the OTA upgrading of the whole vehicle.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

obtaining the upgrading paths of the electronic devices from the upgrading dependency relationship graph, and distributing a token for each upgrading path from a virtual starting point;

and tracking and recording the upgrade path through the token.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

and connecting a virtual starting point to the head end of each upgrading path, and connecting a virtual ending point to the tail end of each upgrading path, wherein the virtual starting point points to all device nodes without predecessors, and the virtual ending point is pointed to by all device nodes without successors.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

recording the value of all tokens entering any upgrading path and entering each segment of arrowed line segment, generating an accumulated token entering record, recording the value of all tokens entering any upgrading path and leaving each segment of arrowed line segment, and generating an accumulated token record;

taking the accumulated token record and the accumulated token record as accumulated values with tokens, wherein the values in the accumulated token record and the accumulated token record are subjected to pair cancellation when being equal;

and comparing the accumulated value with a preset specific value, and judging whether each electronic device of the target vehicle is upgraded or not.

Further, the vehicle OTA upgrade check program when executed by the processor further performs the following operations:

comparing the accumulated value with a preset specific value to generate a comparison result;

when the comparison result is that the accumulated value is equal to a preset specific value, judging that each electronic device of the target vehicle finishes upgrading;

and when the comparison result is that the accumulated value is not equal to a preset specific value, judging that the upgrading of each electronic device of the target vehicle is not completed.

According to the scheme, the upgrading dependency graph of the target vehicle in the OTA upgrading of the whole vehicle is obtained; obtaining an upgrading path of each electronic device from the upgrading dependency relationship graph, and tracking the upgrading path through a token; the method comprises the steps of counting the accumulated values of all tokens, comparing the accumulated values with preset specific values, judging whether all electronic devices of a target vehicle are upgraded or not, determining whether all the electronic devices of the current upgrade are upgraded or not when the upgrade is finished, and avoiding omission at the moment of finishing the upgrade without post-inspection, thereby improving the upgrade inspection efficiency and speed of OTA upgrade of the whole vehicle, saving the OTA upgrade inspection time, and ensuring the comprehensiveness and accuracy of the OTA upgrade.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:车联网通信方法与装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类