Digital key version upgrading method and device and computer readable storage medium
By downloading and storing the software packages corresponding to the controller, analyzing and identifying the software packages, and determining the write solution based on the hardware version, the problems of cumbersome upgrade steps, high environmental dependence, and poor versatility in the existing technology are solved, and a higher compatibility and simplified upgrade process is achieved.
Patent Information
- Application Number
- CN202510173835.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-06-03
AI Technical Summary
The existing digital key-related upgrade plans have problems such as cumbersome upgrade steps, high environmental dependence, and poor upgrade versatility.
A digital key version upgrade method is proposed. By downloading and storing the software package corresponding to the controller, analyzing and identifying the software packages, and determining which software write scheme is performed based on the hardware version.
A digital key version upgrade solution with higher compatibility is realized, which simplifies the upgrade steps, reduces the degree of environmental dependence, improves the universality of upgrades, and saves manpower and material resources and development costs.
Smart Images

Figure CN120085890A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle electronic technology, and particularly to a method, device and computer-readable storage medium for upgrading a digital key version. Background Art
[0002] In the prior art, the degree of vehicle intelligence and integration is getting higher and higher, which has promoted the birth of many new concepts and solutions. For example, the implementation of multiple intelligent solutions such as intelligent cockpits and third spaces. Among them, the intelligent cockpit has multiple subsystems, including central control, entertainment, voice interaction, monitoring and digital keys. The digital key is generated in a digital manner and can remotely control and start the vehicle.
[0003] Currently, the following problems exist in the current digital key related upgrade solutions:
[0004] First, the digital key solution often requires the software cooperation of multiple ECUs (Electronic Control Units) to achieve. Therefore, the implementation of a new function requires the simultaneous upgrade of different controllers, and the upgrade steps are complex and cumbersome.
[0005] Second, it is necessary to develop and adapt more controller upgrade tools or host computers to meet the upgrade requirements of different intelligent digital key controllers.
[0006] Third, the new and old hardware upgrade methods for WPC (Wireless Power Charging module), NFC (Near Field Communication), high-precision positioning controller UWB (Ultra-Wideband) and other controllers of different manufacturers cannot be made consistent. Therefore, the vehicle networking terminal needs to perform different logic processing on the hardware of digital key controllers of different manufacturers.
[0007] In summary, the current digital key related upgrade solutions have the problems of cumbersome upgrade steps, high environmental dependence and poor upgrade generality. Summary of the Invention
[0008] In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide a method, device and computer-readable storage medium for upgrading a digital key version, so as to solve the problems of cumbersome upgrade steps, high environmental dependence and poor upgrade generality existing in the current digital key related upgrade solutions.
[0009] The present invention proposes a method for upgrading a digital key version, which is applied to a network access device in a vehicle networking terminal. The method includes:
[0010] Download and store the software package corresponding to the controller;
[0011] Parse and identify the software package, where
[0012] if the software package only includes the software corresponding to the old hardware of the controller, then execute a preset first software flashing scheme for the controller;
[0013] if the software package includes the software corresponding to the old hardware and the software corresponding to the new hardware of the controller, then determine whether to execute the first software flashing scheme or a preset second software flashing scheme for the controller according to the hardware version of the controller.
[0014] Optionally, the downloading and storing the software package corresponding to the controller specifically includes:
[0015] Establish a communication link with the host computer or the background server;
[0016] Download the software package through the communication link, where the software package includes the software of at least one hardware type.
[0017] Optionally, the parsing and identifying the software package specifically includes:
[0018] Identify the software type in the software package;
[0019] Determine the number of software packages and / or the size of the software package of the software package as the current software judgment condition according to the software type.
[0020] Optionally, the parsing and identifying the software package further includes:
[0021] Detect the software package according to the software judgment condition;
[0022] Determine whether the software package only includes the software corresponding to the old hardware or includes the software corresponding to both the old hardware and the new hardware according to the detection result.
[0023] Optionally, taking the number of software packages as the current software judgment condition, the determining whether the software package only includes the software corresponding to the old hardware or includes the software corresponding to both the old hardware and the new hardware according to the detection result specifically includes:
[0024] Judge whether the number of software packages exceeds a preset first threshold;
[0025] If the number of software packages exceeds the first threshold, then determine that the software package includes the software corresponding to both the old hardware and the new hardware, otherwise, determine that the software package only includes the software corresponding to the old hardware.
[0026] Optionally, using the software package size as the current software judgment condition, and determining that the software package only includes software corresponding to the old hardware or includes software corresponding to both the old hardware and the new hardware according to the detection result, specifically including:
[0027] Judging whether the software package size exceeds a preset second threshold;
[0028] If the software package quantity exceeds the second threshold, it is determined that the software package includes software corresponding to both the old hardware and the new hardware, otherwise, it is determined that the software package only includes software corresponding to the old hardware.
[0029] Optionally, if the software package only includes software corresponding to the old hardware of the controller, then execute a preset first software flashing scheme on the controller, specifically including:
[0030] Set the first software flashing scheme as the flashing of the old hardware;
[0031] Use the software package as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, execute the upgrade process on the controller.
[0032] Optionally, if the software package includes software corresponding to the old hardware and software corresponding to the new hardware of the controller, then determine to execute the first software flashing scheme or a preset second software flashing scheme on the controller according to the hardware version of the controller, specifically including:
[0033] Set the flashing corresponding to the hardware version. Among them, if it is the flashing of the old hardware, use the software package as the flashing package for upgrading the controller; if it is the flashing of the new hardware, use at least a part of the software package as the flashing package for upgrading the controller;
[0034] Use the software package as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, execute the upgrade process on the controller.
[0035] The present invention also provides a digital key version upgrade device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the digital key version upgrade method described in any one of the above are implemented.
[0036] The present invention also provides a computer-readable storage medium, on which a digital key version upgrade program is stored. When the digital key version upgrade program is executed by a processor, the steps of the digital key version upgrade method described in any one of the above are implemented.
[0037] Implement the digital key version upgrade method, device and computer-readable storage medium of the present invention by downloading and storing a software package corresponding to the controller; parsing and identifying the software package. Among them, if the software package only includes software corresponding to the old hardware of the controller, execute a preset first software flashing scheme for the controller; if the software package includes software corresponding to the old hardware and software corresponding to the new hardware of the controller, determine to execute the first software flashing scheme or a preset second software flashing scheme for the controller according to the hardware version of the controller. A digital key version upgrade scheme with higher compatibility is realized, effectively simplifying the upgrade steps, reducing the degree of environmental dependence, improving the upgrade versatility, and saving manpower, material resources and development costs. Description of the Drawings
[0038] The present invention will be further described below in conjunction with the drawings and embodiments. In the drawings:
[0039] Figure 1 is the first flowchart of the digital key version upgrade method of the present invention;
[0040] Figure 2 is the second flowchart of the digital key version upgrade method of the present invention;
[0041] Figure 3 is the third flowchart of the digital key version upgrade method of the present invention;
[0042] Figure 4 is the fourth flowchart of the digital key version upgrade method of the present invention;
[0043] Figure 5 is the fifth flowchart of the digital key version upgrade method of the present invention;
[0044] Figure 6 is the sixth flowchart of the digital key version upgrade method of the present invention;
[0045] Figure 7 is the seventh flowchart of the digital key version upgrade method of the present invention;
[0046] Figure 8 is the eighth flowchart of the digital key version upgrade method of the present invention;
[0047] Figure 9 is the ninth flowchart of the digital key version upgrade method of the present invention. Detailed Embodiments
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] In the following description, suffixes such as "module", "component", or "unit" used to represent elements are only for facilitating the description of the present invention and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.
[0050] Figure 1 is the first flowchart of the method for upgrading the digital key version of the present invention. In this embodiment, a method for upgrading the digital key version is proposed, which is applied to a network access device in a vehicle networking terminal. The method includes:
[0051] S1. Download and store the software package corresponding to the controller;
[0052] S2. Analyze and identify the software package, where
[0053] S3. If the software package only includes the software corresponding to the old hardware of the controller, execute a preset first software flashing scheme for the controller;
[0054] S3`. If the software package includes the software corresponding to the old hardware and the software corresponding to the new hardware of the controller, determine to execute the first software flashing scheme or a preset second software flashing scheme for the controller according to the hardware version of the controller.
[0055] In this embodiment, a TBOX (Telematics Box, vehicle networking terminal) is used as the gateway entry for the digital key-related controller, and provides routing and processing of relevant diagnostic signals. Specifically, the vehicle networking terminal serves as the gateway entry for the digital key-related controller. When the vehicle needs to update the digital key-related controller, software download and flashing work are uniformly carried out through the vehicle networking terminal. Among them, first, the software of the controller that needs to be flashed is downloaded to the NAD (Network Access Device) module of the vehicle networking terminal through the upper computer or / and the background; then, the software package is analyzed and identified. If the software package only includes the software corresponding to the old hardware of the controller, execute a preset first software flashing scheme for the controller; if the software package includes the software corresponding to the old hardware and the software corresponding to the new hardware of the controller, determine to execute the first software flashing scheme or a preset second software flashing scheme for the controller according to the hardware version of the controller.
[0056] Please refer to Figure 9 , specifically, in this embodiment, before performing the flashing, first perform the judgment of the new and old software packages and the judgment of the new and old hardware, and then perform the flashing of the intelligent digital key-related controller according to the target process, mainly including:
[0057] Step 1, Hardware version judgment: The intelligent digital key-related controller notifies the vehicle networking terminal whether it is old hardware or new hardware through fixed CAN messages. For example, in a certain CAN ID definition, 0x01 represents the old hardware of manufacturer A, 0x02 represents the new hardware of manufacturer A, 0x03 represents the old hardware of manufacturer B, and 0x04 represents the new hardware of manufacturer B;
[0058] Step 2, Software download: Download the software of the controller ECU1 that needs to be flashed to the NAD module in the vehicle networking terminal for storage through the upper computer or / and the background;
[0059] Step 3, Software package judgment: NAD judges whether the software package downloaded and stored in Step 2 contains only the software package for old hardware or both the software packages for old hardware and new hardware. For example, it is judged by the number of HEX (hexadecimal) packages or the size;
[0060] Step 4, NAD module flashing scheme judgment: When the NAD module judges in Step 3 that the target software package contains only the software for old hardware, it directly executes the flashing according to the old scheme. However, when the NAD module judges in Step 3 that the target software package contains the software for both old hardware and new hardware, the NAD needs to execute the flashing of the old scheme or the new scheme according to the actual vehicle hardware version status in Step 1;
[0061] Step 5, The NAD module sends the instruction to upgrade ECU1 to the microprocessor MCU of the vehicle networking terminal, and the MCU feeds back the upgrade request to the target ECU1 controller through CAN FD messages;
[0062] Step 6, After the target ECU1 controller responds and feedbacks, the NAD module starts to unpack and send the software sub-packages to the MCU;
[0063] Step 7, The MCU and the target ECU1 perform multi-pack CAN FD message interaction data transmission;
[0064] Step 8, After the upgrade transmission is completed, the target ECU feeds back the upgrade result to the MCU, and the MCU forwards it to the NA module to report the upgrade result;
[0065] Subsequently, the above steps can be repeated for the upgrade method of the same ECU; for ECU2, it is as follows:
[0066] Step 9, Software download: Download the software of the controller ECU2 that needs to be flashed to the NAD module in the vehicle networking terminal for storage through the upper computer or / and the background;
[0067] Step 10: The NAD module sends the instruction to upgrade ECU2 to the microprocessor MCU of the vehicle networking terminal, and the MCU feeds back the upgrade request to the target ECU2 controller through a CAN FD message;
[0068] Step 11: After the target ECU2 controller responds, the NAD module starts to unpack and send the software sub-package to the MCU;
[0069] Step 12: The MCU and the target ECU2 perform multi-packet CAN FD message interactive data transmission;
[0070] Step 13: After the upgrade transmission is completed, the target ECU feeds back the upgrade result to the MCU, and the MCU transparently transmits it to the NA module to report the upgrade result;
[0071] Subsequently, the above steps can be repeated for the upgrade methods of other ECUs.
[0072] The beneficial effect of this embodiment is that by downloading and storing the software package corresponding to the controller; parsing and identifying the software package, wherein, if the software package only includes the software corresponding to the old hardware of the controller, then execute a preset first software flashing scheme for the controller; if the software package includes the software corresponding to the old hardware and the software corresponding to the new hardware of the controller, then determine to execute the first software flashing scheme or a preset second software flashing scheme for the controller according to the hardware version of the controller. A digital key version upgrade scheme with higher compatibility is realized, effectively simplifying the upgrade steps, reducing the environmental dependence, improving the upgrade versatility, and saving manpower, material resources and development costs.
[0073] Figure 2 This is the second flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, the downloading and storing the software package corresponding to the controller specifically includes:
[0074] S11: Establish a communication link with the host computer or the background server;
[0075] S12: Download the software package through the communication link, wherein the software package includes software of at least one hardware type.
[0076] In this embodiment, considering that there are two different pieces of hardware from the same supplier on a vehicle model, correspondingly, there will be two HEX software that need to be flashed. Before the upgrade in this embodiment, when downloading software, the upgrade software corresponding to the new hardware and the upgrade software corresponding to the old hardware are downloaded together. However, specifically, whether it is the upgrade software corresponding to the new hardware or the upgrade software corresponding to the old hardware is identified according to the CAN messages periodically broadcast by the intelligent digital key (UWB&WPC&NFC&other ECUs) controller. For example, in CAN ID = 0x300, 0 in the first byte represents the old hardware of supplier A, 1 represents the new hardware of supplier A, 2 represents the old hardware of supplier B, 3 represents the new hardware of supplier B, and so on.
[0077] The beneficial effect of this embodiment is that by downloading the software package as a whole, the complexity of the preparatory work before the upgrade is greatly reduced. And through subsequent periodic broadcasts for differential upgrade division, targeted upgrades for new and old hardware can be effectively carried out, improving the compatibility of the software package.
[0078] Figure 3 It is the third flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, parsing and identifying the software package specifically includes:
[0079] S21. Identify the software type in the software package;
[0080] S22. Determine the number of software packages and / or the size of the software package of the software package as the current software judgment condition according to the software type.
[0081] In this embodiment, considering that there are two different pieces of hardware from the same supplier on a vehicle model, correspondingly, there will be two HEX software that need to be flashed. Further, in this embodiment, the number of software packages and / or the size of the software package of the software package are determined as the current software judgment condition according to the software type, and this software judgment condition is used to determine the flashing type corresponding to the above uniformly downloaded software package.
[0082] The beneficial effect of this embodiment is that by identifying the software type in the software package and determining the number of software packages and / or the size of the software package of the software package as the current software judgment condition according to the software type, the above uniformly downloaded software package can be effectively identified and divided, avoiding the situation of confusion in flashing new and old hardware.
[0083] Figure 4 It is the fourth flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, parsing and identifying the software package further includes:
[0084] S23. Detect the software package according to the software judgment condition;
[0085] S24. Determine whether the software package only includes the software corresponding to the old hardware or includes the software corresponding to both the old hardware and the new hardware according to the detection result.
[0086] In this embodiment, if it is determined according to the detection result that the software package only includes the software corresponding to the old hardware, then the old solution is flashed, that is, the first software flashing solution. If it is determined that the software package includes the software corresponding to both the old hardware and the new hardware, then it is necessary to first judge whether to flash the new and old solutions, that is, to determine whether to adopt the first or second software flashing solution.
[0087] Specifically, the new solution or the old solution refers to the software update solution for the new hardware or the old hardware. For example, there are 2 HEX file packages to be flashed for the new hardware software, and 3 HEX file packages to be flashed for the old hardware software; further, the starting address of the flashed software is the same, but the number of HEX software packages to be flashed for the new hardware is less, which can also be understood as the number of software code lines is less.
[0088] The beneficial effect of this embodiment is that by detecting the software package and then determining whether the software package only includes the software corresponding to the old hardware or includes the software corresponding to both the old hardware and the new hardware according to the detection result, the first or second software flashing solution is made to conform to the actual package status of the software package, without the need to distinguish in the software package download stage, which is suitable for the application scenario of batch operation.
[0089] Figure 5 It is the fifth flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, taking the number of software packages as the current software judgment condition, the step of determining whether the software package only includes the software corresponding to the old hardware or includes the software corresponding to both the old hardware and the new hardware according to the detection result specifically includes:
[0090] S25. Judge whether the number of software packages exceeds a preset first threshold;
[0091] S26. If the number of software packages exceeds the first threshold, it is determined that the software package includes the software corresponding to both the old hardware and the new hardware; otherwise, it is determined that the software package only includes the software corresponding to the old hardware.
[0092] In this embodiment, the above threshold is determined according to the current hardware type, or according to the version of the current controller.
[0093] The beneficial effect of this embodiment is that by determining whether the number of software packages exceeds a preset first threshold, if the number of software packages exceeds the first threshold, it is determined that the software packages include software corresponding to both the old hardware and the new hardware, otherwise, it is determined that the software packages only include software corresponding to the old hardware, thereby realizing the identification of different software packages and subsequent upgrade matching, and reducing the workload of manual identification or individual operations.
[0094] Figure 6 It is the sixth flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, taking the software package size as the current software judgment condition, and determining whether the software packages only include software corresponding to the old hardware or include software corresponding to both the old hardware and the new hardware according to the detection result, specifically including:
[0095] S27. Determine whether the software package size exceeds a preset second threshold;
[0096] S28. If the software package size exceeds the second threshold, it is determined that the software packages include software corresponding to both the old hardware and the new hardware, otherwise, it is determined that the software packages only include software corresponding to the old hardware.
[0097] In this embodiment, the above threshold is determined according to the current hardware type, or according to the version of the current controller.
[0098] The beneficial effect of this embodiment is that by determining whether the software package size exceeds a preset second threshold, if the software package size exceeds the second threshold, it is determined that the software packages include software corresponding to both the old hardware and the new hardware, otherwise, it is determined that the software packages only include software corresponding to the old hardware, thereby realizing the identification of different software packages and subsequent upgrade matching, and reducing the workload of manual identification or individual operations.
[0099] Figure 7 It is the seventh flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, if the software packages only include software corresponding to the old hardware of the controller, a preset first software flashing scheme is executed on the controller, specifically including:
[0100] S31. Set the first software flashing scheme as flashing the old hardware;
[0101] S32. Use the software packages as the flashing packages for upgrading the controller, and after the controller gives a positive response feedback, execute the upgrade process on the controller.
[0102] In this embodiment, considering that there are two different pieces of hardware from the same supplier on a vehicle model, correspondingly, there will be two HEX software that need to be flashed. Before the upgrade in this embodiment, when downloading the software, the upgrade software corresponding to the new hardware and the upgrade software corresponding to the old hardware are downloaded together. However, specifically, whether it is the upgrade software corresponding to the new hardware or the upgrade software corresponding to the old hardware to be upgraded is identified based on the CAN messages periodically broadcast by the intelligent digital key (UWB&WPC&NFC&other ECUs) controller. For example, in CAN ID = 0x300, 0 in the first byte represents the old hardware of supplier A, 1 represents the new hardware of supplier A, 2 represents the old hardware of supplier B, 3 represents the new hardware of supplier B, and so on. Based on this, this embodiment sets the first software flashing scheme to flash the old hardware, uses the software package as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, executes the upgrade process for the controller.
[0103] The beneficial effect of this embodiment is that by setting the first software flashing scheme to flash the old hardware, using the software package as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, executing the upgrade process for the controller, a differentiated and adaptive flashing strategy for controllers with different hardware versions is achieved, greatly improving the flashing efficiency.
[0104] Figure 8 It is the eighth flowchart of the digital key version upgrade method of the present invention. Based on the above embodiment, if the software package includes the software corresponding to the old hardware and the software corresponding to the new hardware of the controller, then according to the hardware version of the controller, determine to execute the first software flashing scheme or the preset second software flashing scheme for the controller, which specifically includes:
[0105] S33. Set the flashing corresponding to the hardware version. Among them, if it is to flash the old hardware, use the software package as the flashing package for upgrading the controller; if it is to flash the new hardware, use at least a part of the software package as the flashing package for upgrading the controller;
[0106] S34. Use the software package as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, execute the upgrade process for the controller.
[0107] In this embodiment, considering that there are two different types of hardware from the same supplier on a vehicle of a certain model, accordingly, there will be two HEX software to be flashed. Before the upgrade in this embodiment, when downloading the software, the upgrade software corresponding to the new hardware and the upgrade software corresponding to the old hardware are downloaded together. However, specifically, whether it is the upgrade software corresponding to the new hardware or the upgrade software corresponding to the old hardware to be upgraded is identified according to the CAN message periodically broadcast by the intelligent digital key (UWB&WPC&NFC&other ECUs) controller. For example, in CAN ID = 0x300, 0 in the first byte represents the old hardware of supplier A, 1 represents the new hardware of supplier A, 2 represents the old hardware of supplier B, 3 represents the new hardware of supplier B, and so on. Based on this, this embodiment sets the flashing corresponding to the hardware version. Among them, if it is the flashing of the old hardware, the software package is used as the flashing package for upgrading the controller. If it is the flashing of the new hardware, at least a part of the software package is used as the flashing package for upgrading the controller; the software package is used as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, the upgrade process is executed for the controller.
[0108] The beneficial effect of this embodiment is that by setting the flashing corresponding to the hardware version, among which, if it is the flashing of the old hardware, the software package is used as the flashing package for upgrading the controller. If it is the flashing of the new hardware, at least a part of the software package is used as the flashing package for upgrading the controller. The software package is used as the flashing package for upgrading the controller, and after the controller gives a positive response feedback, the upgrade process is executed for the controller, thus realizing a differential and adaptive flashing strategy for controllers of different hardware versions, and greatly improving the flashing efficiency.
[0109] Based on the above embodiment, the present invention also proposes a digital key version upgrade device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, the steps of the digital key version upgrade method described in any one of the above are implemented.
[0110] It should be noted that the above device embodiment and method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are all correspondingly applicable in the device embodiment, so they will not be elaborated here.
[0111] Based on the above embodiment, the present invention also proposes a computer-readable storage medium, on which a digital key version upgrade program is stored. When the digital key version upgrade program is executed by a processor, the steps of the digital key version upgrade method described in any one of the above are implemented.
[0112] It should be noted that the above medium embodiments and method embodiments belong to the same concept. For the specific implementation process, please refer to the method embodiments in detail. Moreover, the technical features in the method embodiments are all correspondingly applicable to the medium embodiments, so they will not be elaborated here.
[0113] Implementing the digital key version upgrade method, device and computer-readable storage medium of the present invention, by downloading and storing a software package corresponding to the controller; parsing and identifying the software package, wherein, if the software package only includes software corresponding to the old hardware of the controller, then executing a preset first software flashing scheme on the controller; if the software package includes software corresponding to the old hardware and software corresponding to the new hardware of the controller, then determining to execute the first software flashing scheme or a preset second software flashing scheme on the controller according to the hardware version of the controller. A digital key version upgrade scheme with higher compatibility is realized, effectively simplifying the upgrade steps, reducing the degree of environmental dependence, improving the upgrade versatility, and saving manpower, material resources and development costs.
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that the above method embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0115] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including that element.
[0116] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit and scope protected by the claims of the present invention. All of these are within the protection scope of the present invention.
Claims
1. A digital key version upgrade method, applied to a network access device in a vehicle networking terminal, characterized in that: The method comprises: Download and store the software package corresponding to the controller; Parse and identify the software package, wherein: If the software package only includes software corresponding to the old hardware of the controller, executing a preset first software flashing solution on the controller; If the software package includes software corresponding to the old hardware and software corresponding to the new hardware of the controller, it is determined whether to execute the first software flashing scheme or the preset second software flashing scheme on the controller according to the hardware version of the controller.
2. The digital key version upgrade method according to claim 1, characterized in that: The downloading and storing of the software package corresponding to the controller specifically includes: Establish a communication link with the host computer or background server; The software package is downloaded via the communication link, wherein the software package includes software for at least one hardware type.
3. The digital key version upgrade method according to claim 2, characterized in that: The parsing and identifying the software package specifically includes: Identify the software type in the software package; Determine, according to the software type, the software package quantity and / or software package size of the software package as the current software judgment condition.
4. The digital key version upgrade method according to claim 3, characterized in that: The parsing and identifying the software package further comprises: detecting the software package according to the software judgment condition; It is determined according to the detection result whether the software package includes only the software corresponding to the old hardware, or includes the software corresponding to both the old hardware and the new hardware.
5. The digital key version upgrade method according to claim 4, characterized in that: Taking the number of software packages as the current software judgment condition, determining according to the detection result that the software package includes only software corresponding to the old hardware, or includes software corresponding to both the old hardware and the new hardware, specifically includes: Determining whether the number of software packages exceeds a preset first threshold; If the number of the software packages exceeds the first threshold, it is determined that the software package includes software corresponding to both the old hardware and the new hardware; otherwise, it is determined that the software package includes only software corresponding to the old hardware.
6. The digital key version upgrade method according to claim 4, characterized in that: The software package size is used as the current software judgment condition, and determining, according to the detection result, that the software package includes only the software corresponding to the old hardware, or includes the software corresponding to both the old hardware and the new hardware, specifically includes: Determining whether the size of the software package exceeds a preset second threshold; If the number of the software packages exceeds the second threshold, it is determined that the software package includes software corresponding to both the old hardware and the new hardware; otherwise, it is determined that the software package includes only software corresponding to the old hardware.
7. The digital key version upgrade method according to claim 4, characterized in that: If the software package only includes software corresponding to the old hardware of the controller, a preset first software flashing scheme is executed on the controller, specifically including: Setting the first software flashing solution to flashing the old hardware; The software package is used as a flash package for upgrading the controller, and after a positive response feedback is received from the controller, an upgrade process is performed on the controller.
8. The digital key version upgrade method according to claim 4, characterized in that: If the software package includes software corresponding to the old hardware and software corresponding to the new hardware of the controller, determining whether to execute the first software flashing scheme or the preset second software flashing scheme on the controller according to the hardware version of the controller specifically includes: Setting a flash corresponding to the hardware version, wherein if the flash is for the old hardware, the software package is used as a flash package for upgrading the controller, and if the flash is for the new hardware, at least a part of the software package is used as a flash package for upgrading the controller; The software package is used as a flash package for upgrading the controller, and after a positive response feedback is received from the controller, an upgrade process is performed on the controller.
9. A digital key version upgrade device, characterized in that: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the digital key version upgrade method as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a digital key version upgrade program, which, when executed by a processor, implements the steps of the digital key version upgrade method according to any one of claims 1 to 8.