Method, system and equipment for acquiring upgrading strategy of vehicle firmware
By obtaining the upgrade list and decoding table, the efficient upgrade strategy of vehicle firmware is solved, and the problem of time-consuming detection process in the existing technology is improved, and high concurrency performance is improved.
Patent Information
- Application Number
- CN202311844674.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-08
AI Technical Summary
The existing FOTA upgrade detection process has a long and time-consuming process link, which cannot meet the performance requirements of massive detection requests.
By obtaining the upgrade list of the target vehicle and the upgrade summary of each preset firmware, judging the summary consistency and obtaining the preset decoding table, decoding the upgrade data packets to obtain the upgrade strategy, and simplifying the high-concurrency real-time upgrade detection process.
It reduces the complexity of real-time detection services, reduces operation and maintenance difficulties and costs, and improves the concurrent performance of real-time upgrade detection.
Smart Images

Figure CN120276744A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicle firmware upgrade, and particularly relates to a method, system and device for obtaining an upgrade strategy of vehicle firmware. Background Art
[0002] The cloud performs a full - scale OTA (On The Air) upgrade on the vehicle by releasing FOTA (Firmware On The Air) upgrade activities. The most important of these is the upgrade of the system firmware. For example, the firmware upgrade of the automotive electronic control unit ECU, that is, without changing the vehicle hardware, remotely upgrade the vehicle's driving assistance functions, chassis suspension, body control, etc.
[0003] The main processes of FOTA upgrade are vehicle information management, FOTA firmware package management, FOTA upgrade activity release management, and FOTA upgrade detection in sequence. Among them, processes such as vehicle information management, FOTA firmware package management, and FOTA upgrade activity release and management are the pre - processes of the FOTA upgrade detection process.
[0004] The existing FOTA upgrade detection process usually requires the cloud to obtain and verify the vehicle's basic information, vehicle part information, vehicle part version information, etc. according to the vehicle request parameters. After completing the vehicle information verification, it is also necessary to obtain the vehicle activities, and then obtain the vehicle upgrade activity information according to the vehicle information. Finally, the corresponding upgrade strategy information and ECU upgrade version information are obtained through the associated query of the upgrade activity information. Obviously, the current FOTA detection processing link is long and time - consuming, and it is necessary to interact with the data storage middleware multiple times to obtain data; this method cannot meet the performance requirements of a large number of detection requests under the control of server costs. Summary of the Invention
[0005] This application provides a method, system and device for obtaining an upgrade strategy of vehicle firmware to solve the technical problem that the upgrade detection process in the prior art has a long processing link and is time - consuming, so that it cannot meet the performance requirements of a large number of detection requests.
[0006] Specifically, this application provides a method for obtaining an upgrade strategy of vehicle firmware, including the following steps: S100: In response to an upgrade signal, obtain an upgrade list of the target vehicle and upgrade digests of each preset firmware; the upgrade list includes at least a list digest and an upgrade data packet.
[0007] S200: Determine whether the upgrade digest is consistent with the list digest. If they are consistent, obtain a preset decoding table; otherwise, perform exception handling.
[0008] S300: Decode the upgrade data packet according to the preset decoding table to obtain the upgrade strategies for each preset firmware.
[0009] In the above technical solution, the whole process focuses on the comparison of the digest value of the list and the efficient extraction of data decoding, greatly simplifying the high-concurrency real-time upgrade detection process, reducing the complexity of the real-time detection service, and thus reducing the subsequent operation and maintenance difficulty and cost, and greatly improving the concurrency performance of the real-time upgrade detection.
[0010] Further, before executing step S100, it includes: Obtain the current version information of each preset firmware and send an upgrade signal according to the current version information.
[0011] In the above technical solution, there is only this one network request throughout the process, making the entire upgrade process simpler and more efficient, saving time and resources, and reducing costs at the same time; in addition, obtaining the version information of each preset firmware can accurately determine whether there is an upgrade requirement, providing a reliable data basis for subsequent upgrade detection.
[0012] Further, step S100 further includes: Judge whether the upgrade list is successfully obtained. If successful, obtain the upgrade digest; otherwise, perform exception handling.
[0013] In the above technical solution, by judging whether the upgrade list is successfully obtained, it is possible to timely discover the situation where the list acquisition fails during the upgrade process. If the list acquisition fails, exception handling can be carried out in a timely manner, which can ensure the reliability and stability of the system.
[0014] Further, the obtaining of the upgrade digest in step S100 includes: Generate an upgrade digest according to the current version information.
[0015] In the above technical solution, the digest can be used as a summary of the version information, containing the key content of the version information. It can be used as a simplified representation of the version information, converting complex version information into a unique digest value, which can simplify the processing and storage of data, improve the manageability and usability of the system; and since the length of the digest value is shorter, compared with carrying a large amount of version information, the speed of transmitting and processing the digest is faster, which can improve the efficiency of upgrade detection and reduce resource consumption.
[0016] Further, the upgrade list at least further includes a version number. The obtaining of the preset decoding table in step S200 includes: Obtain the upgrade data packet and determine whether the obtaining is successful. If successful, obtain the version number according to the upgrade data packet, so as to obtain a preset decoding table according to the version number; otherwise, perform exception handling.
[0017] In the above technical solution, by obtaining the preset decoding table, the subsequent decoding process can be ensured to be accurate and error-free. The decoding rules and algorithms corresponding to the version number are stored in the decoding table, which can correctly convert the upgrade data packet into readable content; the preset decoding table is stored in the local cache. Using the decoding table in the local cache can avoid the operation of obtaining the decoding table from the external each time, reduce the network transmission and processing time, and thus improve the processing speed and optimize the system performance; in addition, if the upgrade data packet does not exist, corresponding actions can be taken through the corresponding exception handling to ensure the reliability of the system.
[0018] Further, the exception handling includes: Real-time monitor the upgrade activities of the target vehicle, so as to initialize the upgrade list according to the upgrade activities when the upgrade activities are monitored and the upgrade list obtaining fails.
[0019] And when the upgrade activities are monitored and the obtaining of the upgrade data packet fails, update the upgrade list according to the upgrade activities.
[0020] In the above technical solution, when the obtaining of the upgrade list fails, by real-time monitoring the vehicle upgrade activities and initializing or updating the upgrade list according to the upgrade activities, specific handling can be carried out for this situation, and specific solutions can be provided; and by automatically initializing or updating the upgrade list, the operation difficulty and cost can be greatly reduced, and manual intervention and errors can be reduced; in addition, by real-time monitoring the upgrade process, problems can be quickly discovered or responded to, and corresponding controls can be carried out to improve the stability and reliability of the system.
[0021] Based on the same concept, the present application also provides a system for obtaining an upgrade strategy of vehicle firmware, and the system includes: The first obtaining module: used to obtain the upgrade list of the target vehicle in response to the upgrade signal; the upgrade list at least includes a list summary and an upgrade data packet.
[0022] The second obtaining module: used to obtain the upgrade summaries of each preset firmware.
[0023] The first judgment module: used to judge whether the upgrade summary is consistent with the list summary, and when they are consistent, transfer to the third obtaining module; and when they are inconsistent, transfer to the exception handling module.
[0024] The third obtaining module: used to obtain a preset decoding table.
[0025] Fourth acquisition module: configured to decode the upgrade data packet according to the acquisition result of the third acquisition module, so as to obtain the upgrade strategies of each preset firmware.
[0026] In the above technical solution, through the comparison of the digest value of the manifest and the efficient data decoding and extraction, the whole process greatly simplifies the high-concurrency real-time upgrade detection process. This simplification reduces the complexity of the real-time detection service and further reduces the subsequent operation and maintenance difficulty and cost; at the same time, this simplification process also greatly improves the concurrency performance of the real-time upgrade detection, enabling the system to effectively handle a large number of upgrade detection requests, improving the overall upgrade detection efficiency and user experience.
[0027] Further, the third acquisition module includes: First acquisition unit: configured to acquire the upgrade data packet.
[0028] Judgment unit: configured to judge whether the upgrade data packet is successfully acquired. When successful, it transfers to the second acquisition unit; and when not successful, it transfers to the exception handling module.
[0029] Second acquisition unit: configured to obtain the version number according to the upgrade data packet, and obtain the preset decoding table according to the version number.
[0030] In the above technical solution, the system can directly obtain the required upgrade data packet from the upgrade manifest without additional network requests or consuming time and resources; by obtaining the version number, the system can accurately locate the corresponding preset decoding table for subsequent data decoding, which can ensure that the system adopts the correct decoding rules and algorithms, providing the accuracy and reliability of subsequent decoding; and when the upgrade data packet acquisition fails, it will transfer to exception handling, thus ensuring the stability and reliability of the system.
[0031] Further, the system further includes: Signal module: configured to obtain the current version information of each preset firmware and send an upgrade signal according to the current version information.
[0032] Second judgment module: configured to judge whether the upgrade manifest is successfully acquired. When successful, it transfers to the second acquisition module; and when not successful, it transfers to the exception handling module.
[0033] Exception handling module: configured to monitor the upgrade activities of the target vehicle in real time. When an upgrade activity is monitored and the upgrade manifest acquisition fails, initialize the upgrade manifest according to the upgrade activity; and when an upgrade activity is monitored and the upgrade data packet acquisition fails, update the upgrade manifest according to the upgrade activity.
[0034] In the above technical solution, there is only one network request to send the upgrade signal throughout the process, making the entire upgrade process simpler and more efficient, saving time and resources while reducing costs; by determining whether the upgrade list is successfully obtained, the system can promptly detect the situation of failed list acquisition and take corresponding exception handling measures to provide reliable and stable services; by initializing or updating the upgrade list in a timely manner, problems can be quickly discovered or responded to, and corresponding controls can be carried out to improve the stability and reliability of the system.
[0035] Based on the same concept, the present application also provides a device, which includes a processor and a memory. At least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for obtaining the upgrade strategy of the vehicle firmware as described above.
[0036] Compared with the prior art, the beneficial effects of the present application are as follows: The present application first responds to the upgrade signal to obtain the upgrade list of the target vehicle and the upgrade summaries of each preset firmware; then determines whether the upgrade summary is the same as the list summary in the upgrade list, and then obtains the preset decoding table when they are the same; then decodes the upgrade data packets in the upgrade list through the preset decoding table to obtain the upgrade strategies of each preset firmware. The whole process of the present application revolves around the comparison of the summary values of the list and the efficient extraction of data decoding, greatly simplifying the high-concurrency real-time upgrade detection process, reducing the complexity of the real-time detection service, and further reducing the subsequent operation and maintenance difficulty and cost, and greatly improving the concurrency performance of the real-time upgrade detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flowchart of the method for obtaining the upgrade strategy of the vehicle firmware as described in the present application.
[0038] Figure 2 is Figure 1 The system framework diagram of the method for obtaining the upgrade strategy of the vehicle firmware as described above. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0039] The present application provides a method, a system and a device for obtaining the upgrade strategy of vehicle firmware to solve the technical problem that the processing link of the upgrade detection process in the prior art is long and time-consuming, resulting in the inability to meet the performance requirements of a large number of detection requests.
[0040] The following further describes in detail a method, a system and a device for obtaining the upgrade strategy of vehicle firmware according to the present application with reference to specific embodiments and the accompanying drawings.
[0041] Embodiment 1:
[0042] Please refer toFigure 1 The present application provides a method for obtaining an upgrade strategy for vehicle firmware, comprising the following steps: S100: In response to the upgrade signal, an upgrade list of the target vehicle and an upgrade summary of each preset firmware are obtained.
[0043] Furthermore, before executing step S100, the following steps are included: Obtain the current version information of each preset firmware, and send an upgrade signal according to the current version information.
[0044] In this embodiment, the preset firmware is set to ECU, and the vehicle side obtains the current version information of each ECU in the vehicle through the in-vehicle diagnostic protocol; then the vehicle side carries the current version information of each ECU in the vehicle to initiate a FOTA upgrade detection request to the cloud FOTA upgrade detection service, which is the upgrade signal.
[0045] In the above technical solution, the entire process only requires this one network request, making the entire upgrade process simpler and more efficient, saving time and resources while reducing costs; in addition, obtaining the version information of each preset firmware can accurately determine whether there is an upgrade requirement, providing a reliable data basis for subsequent upgrade detection.
[0046] Furthermore, the step S100 further includes: Determine whether the upgrade list is obtained successfully. If successful, obtain the upgrade summary; otherwise, perform exception handling.
[0047] In this embodiment, in response to the FOTA upgrade detection request, the cloud FOTA upgrade detection service obtains the upgrade list of the shared cache through the VIN, and determines whether the upgrade list has been successfully obtained. If successful, it will further obtain the upgrade summary; otherwise, it will perform exception handling. Among them, VIN (Vehicle Identification Number) is a unique identifier used to identify a specific vehicle. VIN usually consists of 17 characters and contains information about the vehicle manufacturer, production location, production year, etc.
[0048] Among them, the predecessor of the upgrade list is the vehicle FOTA upgrade detection topology list, which includes vehicle basic information (VIN, vehicle model information, etc.), vehicle extended information (vehicle test identification, encryption scheme material data), vehicle current parts version information list and vehicle current parts available version information list; by encoding the topology list, the upgrade list is obtained, and the upgrade list is stored in a shared cache.
[0049] The upgrade list at least includes a list summary, a topology list data dictionary code table version number (i.e., the version number described below), and list data (the same as the upgrade data packet described below).
[0050] It should be noted that the topology list data dictionary code table version number can be designed according to the actual situation of specific projects. The principle is to extract the common parts as much as possible and form a dictionary table, and compress the list data in the shared cache as much as possible to ensure that more ECU upgrade version data can be accommodated. Compared with the traditional JSON data storage structure in the past, the data volume is smaller and lighter, and under certain network bandwidth limitations, it can accommodate more ECU upgrade version information than the JSON data structure. That is, on the premise of meeting high-concurrency performance, it can easily handle the upgrade activity scenarios of more ECUs in the vehicle being upgraded simultaneously in the future, avoiding multiple queries involved in traditional multi-module data storage, and thus improving the high throughput of the shared cache service.
[0051] In the above technical solution, by determining whether the upgrade list is successfully obtained, it is possible to timely detect the situation of failure to obtain the list during the upgrade process. If the list acquisition fails, exception handling can be carried out in a timely manner, which can ensure the reliability and stability of the system.
[0052] Further, the obtaining of the upgrade summary in step S100 includes: Generating an upgrade summary based on the current version information.
[0053] In this embodiment, an upgrade summary is generated based on the current version information carried by the vehicle.
[0054] In the above technical solution, the summary can be used as a summary of the version information, containing the key content of the version information. It can be used as a simplified representation of the version information, converting complex version information into a unique summary value, which can simplify the processing and storage of data, improve the manageability and usability of the system; and since the length of the summary value is shorter, compared with carrying a large amount of version information, the speed of transmitting and processing the summary is faster, which can improve the efficiency of upgrade detection and reduce resource consumption.
[0055] After obtaining the upgrade list and the upgrade summary, step S200 can be executed.
[0056] S200: Determine whether the upgrade summary is consistent with the list summary. If they are consistent, obtain a preset decoding table; otherwise, perform exception handling.
[0057] Further, the upgrade list at least further includes a version number. The obtaining of the preset decoding table in step S200 includes: Obtain the upgrade data packet and determine whether the acquisition is successful. If successful, obtain the version number according to the upgrade data packet, so as to obtain a preset decoding table according to the version number; otherwise, perform exception handling.
[0058] In this embodiment, obtain the upgrade data packet in the upgrade list and determine whether the acquisition is successful. If successful, retrieve the preset decoding table in the local cache according to the version number of the dictionary code table.
[0059] It should be noted that the preset decoding table is stored in the local cache. Using the decoding table in the local cache can avoid the operation of obtaining the decoding table from the external every time, reduce the network transmission and processing time, and thus improve the processing speed and optimize the system performance; among them, multiple decoding tables are stored in the list data code table of the local cache, and each decoding table includes information such as attribute codes, value types, and value lengths corresponding to different version numbers.
[0060] In the above technical solution, by obtaining the preset decoding table, the subsequent decoding process can be ensured to be accurate and error-free. The decoding table stores the decoding rules and algorithms corresponding to the version number, and can correctly convert the upgrade data packet into readable content; in addition, if the upgrade data packet does not exist, corresponding actions can be taken through corresponding exception handling to ensure the reliability of the system.
[0061] Further, the exception handling includes: Real-time monitor the upgrade activities of the target vehicle, so as to initialize the upgrade list according to the upgrade activities when the upgrade activities are monitored and the acquisition of the upgrade list fails.
[0062] And when the upgrade activities are monitored and the acquisition of the upgrade data packet fails, update the upgrade list according to the upgrade activities.
[0063] In this embodiment, if the acquisition of the upgrade list or the upgrade data packet fails, the initialization or update process of the list will be initiated asynchronously, and an upgrade version update response message without an upgrade will be immediately responded to the vehicle end.
[0064] Among them, the update of the upgrade list depends on the FOTA upgrade detection service to monitor relevant FOTA upgrade detection activities, and then complete the update of the FOTA upgrade detection list of relevant vehicles.
[0065] In the above technical solution, when the acquisition of the upgrade list fails, by real-time monitoring the vehicle upgrade activities and initializing or updating the upgrade list according to the upgrade activities, specific handling can be carried out for this situation, and specific solutions can be provided; and by automatically initializing or updating the upgrade list, the operation difficulty and cost can be greatly reduced, and manual intervention and errors can be reduced; in addition, by real-time monitoring the upgrade process, problems can be quickly discovered or responded to, and corresponding control can be carried out to improve the stability and reliability of the system.
[0066] After obtaining the preset decoding table, step S300 can be executed.
[0067] S300: Decode the upgrade data packet according to the preset decoding table to obtain the upgrade strategies for each preset firmware.
[0068] In this embodiment, the obtained upgrade data packet is decoded by the obtained preset decoding table to obtain the current upgraded ECU version data and upgrade strategy information, and an upgrade detection response message is returned to the vehicle terminal according to specific project requirements, so that the vehicle terminal can perform further firmware upgrade work according to the obtained upgrade strategy information.
[0069] Embodiment Two:
[0070] Please refer to Figure 2 , this application also provides an upgrade strategy acquisition system for vehicle firmware, and the system includes: Signal module: used to obtain the current version information of each preset firmware and send an upgrade signal according to the current version information.
[0071] In this embodiment, the vehicle terminal obtains the current version information of each ECU in the vehicle through the on-board diagnostic protocol, and the vehicle terminal carries the current version information of each ECU in the vehicle to initiate a FOTA upgrade detection request (i.e., the upgrade signal) to the cloud FOTA upgrade detection service.
[0072] Among them, there is only one network request for sending the upgrade signal in the whole process, making the whole upgrade process simpler and more efficient, so as to save time and resources and reduce costs at the same time.
[0073] First acquisition module: used to obtain the upgrade list of the target vehicle in response to the upgrade signal; the upgrade list at least includes a list summary and an upgrade data packet.
[0074] In this embodiment, the cloud FOTA upgrade detection service obtains the upgrade list from the shared cache through the VIN.
[0075] Second judgment module: used to judge whether the upgrade list is obtained successfully, and when it is successful, transfer to the second acquisition module; and when it is not successful, transfer to the exception handling module.
[0076] Among them, the cloud FOTA upgrade detection service can timely detect the situation of failure to obtain the list by judging whether the upgrade list is obtained successfully, and take corresponding exception handling measures to provide a reliable and stable service; Second acquisition module: used to obtain the upgrade summary of each preset firmware.
[0077] Among them, the upgrade summary is generated from the current version information of each ECU.
[0078] The first judgment module: used to judge whether the upgrade summary is consistent with the list summary, and when they are consistent, transfer to the third acquisition module; and when they are inconsistent, transfer to the exception handling module.
[0079] The third acquisition module: used to acquire a preset decoding table.
[0080] Furthermore, the third acquisition module includes: The first acquisition unit: used to acquire an upgrade data packet.
[0081] The judgment unit: used to judge whether the acquisition of the upgrade data packet is successful, and when it is successful, transfer to the second acquisition unit; and when it is not successful, transfer to the exception handling module.
[0082] The second acquisition unit: used to acquire a version number according to the upgrade data packet, and acquire a preset decoding table according to the version number.
[0083] In this embodiment, the preset decoding table in the local cache is retrieved according to the dictionary code table version number (i.e., the version number).
[0084] In the above technical solution, the system can directly acquire the required upgrade data packet from the upgrade list without additional network requests or consuming time and resources; by acquiring the version number, the system can accurately locate the corresponding preset decoding table for subsequent data decoding, which can ensure that the system adopts the correct decoding rules and algorithms, providing the accuracy and reliability of subsequent decoding; and when the acquisition of the upgrade data packet fails, it will transfer to exception handling, thus ensuring the stability and reliability of the system.
[0085] The fourth acquisition module: used to decode the upgrade data packet according to the acquisition result of the third acquisition module to acquire the upgrade strategies of each preset firmware.
[0086] In this embodiment, the acquired upgrade data packet is decoded by the acquired preset decoding table to obtain the current upgraded ECU version data and upgrade strategy information, and an upgrade detection response message is returned to the vehicle end according to specific project requirements, so that the vehicle end can perform further firmware upgrade work according to the acquired upgrade strategy information.
[0087] The system further includes: The exception handling module: used to monitor the upgrade activities of the target vehicle in real time, and when an upgrade activity is monitored and the acquisition of the upgrade list fails, initialize the upgrade list according to the upgrade activity; and when an upgrade activity is monitored and the acquisition of the upgrade data packet fails, update the upgrade list according to the upgrade activity.
[0088] In this embodiment, if the upgrade list or the upgrade data packet fails to be obtained, the initialization or update process of the list will be initiated asynchronously, and the vehicle-end response message indicating no upgrade version update will be immediately sent in response.
[0089] Among them, the update of the upgrade list depends on the FOTA upgrade detection service listening to relevant FOTA upgrade detection activities to complete the update of the relevant vehicle FOTA upgrade detection list.
[0090] In the above technical solution, by initializing or updating the upgrade list in a timely manner, problems can be quickly discovered or responded to, and corresponding control can be carried out, improving the stability and reliability of the system.
[0091] Embodiment Three:
[0092] This application also provides a device, which includes a processor and a memory. At least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for obtaining the upgrade strategy of the vehicle firmware.
[0093] In this embodiment, the memory and the processor are connected to each other through a bus; the processor can be one or more CPUs. When the processor is a single CPU, the CPU can be a single-core CPU or a multi-core CPU, and the processor is used to control each functional module of the device and process signals.
[0094] The device in this embodiment includes an OTA cloud and a vehicle end. The OTA cloud at least includes an OTA management platform and a FOTA vehicle-cloud access end. The FOTA upgrade detection service is set at the FOTA vehicle-cloud access end, and the monitored upgrade activities mainly monitor the FOTA upgrade activity management module in the OTA management platform; in addition, the OTA cloud also includes a shared cache and a local cache; the vehicle end is mainly provided with the vehicle firmware to be upgraded and a TBOX, and the TBOX is used to send out an upgrade signal.
[0095] The memory includes but is not limited to RAM (Random Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read-Only Memory). The memory is used to store computer programs, operating systems, various applications and data, such as storing the computer program for implementing the method for obtaining the upgrade strategy of the vehicle firmware.
[0096] In summary, the present application provides a method, a system, and a device for obtaining an upgrade strategy of vehicle firmware. First, in response to an upgrade signal, an upgrade list of a target vehicle and upgrade summaries of each preset firmware are obtained. Then, it is determined whether the upgrade summary is the same as the list summary in the upgrade list, and when they are the same, a preset decoding table is obtained. Then, the upgrade data packets in the upgrade list are decoded through the preset decoding table to obtain the upgrade strategies of each preset firmware. The whole process of the present application focuses on the comparison of the summary values of the list and the efficient decoding and extraction of data, greatly simplifying the high-concurrency real-time upgrade detection process, reducing the complexity of the real-time detection service, and thus reducing the subsequent operation and maintenance difficulty and cost, and greatly improving the concurrency performance of the real-time upgrade detection.
[0097] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application thereto. Those of ordinary skill in the art can make various changes and modifications therein without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as claimed in the appended claims.
[0098] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0099] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
[0100] Each component embodiment of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some modules according to the embodiments of the present application. The present application can also be implemented as a device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier signal, or in any other form.
[0101] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the said element.
[0102] Although the description of the present application is made in conjunction with the above specific embodiments, it is obvious that those skilled in the art can make many substitutions, modifications and variations based on the above content. Therefore, all such substitutions, improvements and variations are included within the spirit and scope of the appended claims.
Claims
1. A method for obtaining an upgrade strategy of vehicle firmware, characterized in that It includes the following steps: S100: In response to an upgrade signal, obtain the upgrade list of the target vehicle and the upgrade summary of each preset firmware; The upgrade list at least includes a list summary and an upgrade data packet; S200: Determine whether the upgrade summary is consistent with the list summary. When they are consistent, obtain a preset decoding table; Otherwise, perform exception handling; S300: Decode the upgrade data packet according to the preset decoding table to obtain the upgrade strategy of each preset firmware.
2. The method for obtaining the upgrade strategy of vehicle firmware according to claim 1, wherein, Before executing step S100, it includes: Obtain the current version information of each preset firmware and send an upgrade signal according to the current version information.
3. The method for obtaining the upgrade strategy of vehicle firmware according to claim 2, wherein Step S100 further includes: Determine whether the upgrade list is successfully obtained. If successful, obtain the upgrade summary; otherwise, perform exception handling.
4. The method for obtaining the vehicle firmware upgrade strategy according to claim 3, wherein, Obtaining the upgrade summary in step S100 includes: Generate an upgrade summary according to the current version information.
5. The method for obtaining the upgrade strategy of vehicle firmware according to claim 4, wherein The upgrade list at least further includes a version number. Obtaining the preset decoding table in step S200 includes: Obtain the upgrade data packet and determine whether it is successfully obtained. If successful, obtain the version number according to the upgrade data packet, and obtain the preset decoding table according to the version number; otherwise, perform exception handling.
6. The method for obtaining the upgrade strategy of vehicle firmware according to claim 5, characterized in that, The exception handling includes: Real-time monitor the upgrade activity of the target vehicle. When an upgrade activity is monitored and the upgrade list acquisition fails, initialize the upgrade list according to the upgrade activity; And when an upgrade activity is monitored and the upgrade data packet acquisition fails, update the upgrade list according to the upgrade activity.
7. A system adopting the method for obtaining the vehicle firmware upgrade strategy described in any one of claims 1-6, characterized in that, The system includes: The first acquisition module: used to obtain the upgrade list of the target vehicle in response to an upgrade signal; the upgrade list at least includes a list summary and an upgrade data packet; The second acquisition module: used to obtain the upgrade summary of each preset firmware; The first judgment module: used to judge whether the upgrade summary is consistent with the list summary. When they are consistent, transfer to the third acquisition module; when they are inconsistent, transfer to the exception handling module; The third acquisition module: used to obtain a preset decoding table; The fourth acquisition module: used to decode the upgrade data packet according to the acquisition result of the third acquisition module to obtain the upgrade strategy of each preset firmware.
8. The system according to claim 7, wherein, The third acquisition module includes: The first acquisition unit: used to obtain the upgrade data packet; The judgment unit: used to judge whether the upgrade data packet is successfully obtained. When successful, transfer to the second acquisition unit; when not successful, transfer to the exception handling module; The second acquisition unit: used to obtain the version number according to the upgrade data packet and obtain the preset decoding table according to the version number.
9. The system according to claim 8, wherein The system further includes: The signal module: used to obtain the current version information of each preset firmware and send an upgrade signal according to the current version information; The second judgment module: used to judge whether the upgrade list is successfully obtained. When successful, transfer to the second acquisition module; when not successful, transfer to the exception handling module; Abnormal handling module: It is used to monitor the upgrade activities of the target vehicle in real time, so as to initialize the upgrade list according to the upgrade activities when the upgrade activities are monitored and the acquisition of the upgrade list fails; and update the upgrade list according to the upgrade activities when the upgrade activities are monitored and the acquisition of the upgrade upgrade data packet fails.
10. An apparatus, characterized in that, The device includes a processor and a memory, and at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for obtaining the upgrade strategy of the vehicle firmware according to any one of claims 1-6.