Software flashing process determination method and related device

By automatically combining the solution and communication protocol of vehicle brushing related information, the problems of low efficiency and wrong selection of traditional software brushing process are solved, and an efficient and accurate software brushing process is achieved.

CN118916060APending Publication Date: 2024-11-08GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411212546.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The traditional software flashing process requires a lot of manual intervention, which is inefficient and prone to selection errors, resulting in lost or failed flashing data and damaging the entire vehicle software.

Method used

By obtaining the relevant information of the vehicle's brush writing, preprocessing and solving based on the current vehicle communication protocol, determining the brush writing path and demand version, and automatically combining to determine the software brush writing process, the entire process does not require manual intervention.

Benefits of technology

It improves the overall efficiency of the software brushing process, avoids selection errors caused by manual intervention, and ensures the accuracy of the brushing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916060A_ABST
    Figure CN118916060A_ABST
Patent Text Reader

Abstract

The invention discloses a software flashing process determination method and a related device, and the method comprises the steps: obtaining the flashing related information of a vehicle, carrying out the preprocessing of the flashing related information based on a current vehicle communication protocol, obtaining the target flashing related information, resolving the target flashing related information to obtain a flashing path, and determining the flashing process according to the flashing path. And extracting the flashing demand version from the target flashing related information, and determining the software flashing process by combining the flashing path with the flashing demand version. According to the method, the final software flashing process can be determined by processing the flashing related information of the vehicle based on the current vehicle communication protocol, manual intervention is not needed in the whole process, and therefore the overall efficiency of the software flashing process is improved, the situation that the software flashing process is mistakenly selected due to manual intervention is effectively avoided, and the user experience is improved. And the accuracy of the software flashing process is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software flashing, and more particularly to a method for determining a software flashing process and a related device. Background Art

[0002] With the development of the automobile industry, the functions carried by automobile controllers are becoming more and more abundant. In the process of updating and iterating automobile controllers, software updates and iterations play an extremely important role. At present, the software update of automobile controllers is mainly achieved by software flashing.

[0003] However, the traditional software flashing process requires a lot of manual intervention, which is not only inefficient but also prone to incorrect software flashing process selection, resulting in flashing data loss or flashing failure during the software flashing process, which can easily cause damage to the vehicle software. Summary of the invention

[0004] In view of this, the present invention discloses a method for determining a software flashing process and related devices, so that the final software flashing process can be determined by processing the flashing related information of the vehicle based on the current vehicle communication protocol. The entire process does not require human intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation where the software flashing process is selected incorrectly due to human intervention, thereby ensuring the accuracy of the software flashing process.

[0005] A method for determining a software flashing process, comprising:

[0006] Get the flashing related information of the vehicle;

[0007] Based on the current vehicle communication protocol, preprocessing the flashing related information to obtain target flashing related information;

[0008] Solving the target flashing related information to obtain a flashing path;

[0009] Extracting the required flashing version from the target flashing related information;

[0010] The flashing path and the flashing requirement version are combined to determine the software flashing process.

[0011] Optionally, combining the flashing path and the flashing requirement version to determine the software flashing process includes:

[0012] Extracting a version number from the flashing requirement version according to the flashing path;

[0013] Associating the version number with the flashing path to obtain a flashing process index;

[0014] The flashing process index is used to search for the corresponding software flashing process from the flashing process library.

[0015] Optionally, extracting a version number from the flashing requirement version according to the flashing path includes:

[0016] Splitting the flashing requirement version according to the flashing path to obtain multiple fields, the multiple fields including: a communication protocol type, a fixed field, a version field and the version number;

[0017] The version number is extracted from the plurality of fields.

[0018] Optionally, preprocessing the flashing related information to obtain target flashing related information based on the current vehicle communication protocol includes:

[0019] determining the current vehicle communication protocol;

[0020] The flashing related information is converted into an information format recognized by the current vehicle communication protocol to obtain the target flashing related information.

[0021] Optionally, the step of solving the target flashing related information to obtain a flashing path includes:

[0022] Acquire a flashing method from the target flashing related information;

[0023] Based on the current vehicle communication protocol, a target flashing path matching the flashing method is searched from a flashing path library as a solution to obtain the flashing path.

[0024] Optionally, the step of solving the target flashing related information to obtain a flashing path includes:

[0025] If the current vehicle communication protocol adopts the Ethernet protocol, the flash path obtained by the solution is: used to identify the flash path adopting the Ethernet protocol;

[0026] If the current vehicle communication protocol adopts the Ethernet protocol and the controller area network (CAN) protocol, the calculated flash path is: used to identify the flash path for converting the Ethernet protocol to the CAN protocol;

[0027] If the current vehicle communication protocol adopts the CAN protocol, the calculated flash path is: used to identify the flash path adopting the CAN protocol.

[0028] Optionally, it also includes:

[0029] Output the software flashing process.

[0030] A software flashing process determination device, comprising:

[0031] An information acquisition unit, used to acquire flashing related information of the vehicle;

[0032] A preprocessing unit, configured to preprocess the flashing related information to obtain target flashing related information based on the current vehicle communication protocol;

[0033] A solving unit, used for solving the target flashing related information to obtain a flashing path;

[0034] An extraction unit, used for extracting the flashing required version from the target flashing related information;

[0035] The flashing process determining unit is used to determine the software flashing process by combining the flashing path and the flashing requirement version.

[0036] A computer storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the software flashing process determination method described above is implemented.

[0037] An electronic device comprising: a memory and a processor;

[0038] The memory is used to store at least one instruction;

[0039] The processor is used to execute the at least one instruction to implement the software flashing process determination method described above.

[0040] From the above technical solution, it can be known that the present invention discloses a method and related device for determining a software flashing process, obtains the flashing related information of the vehicle, and pre-processes the flashing related information based on the current vehicle communication protocol to obtain the target flashing related information, solves the target flashing related information to obtain the flashing path, and extracts the flashing requirement version from the target flashing related information, and by combining the flashing path and the flashing requirement version, the software flashing process can be determined. The present invention can determine the final software flashing process by processing the flashing related information of the vehicle based on the current vehicle communication protocol, and the whole process does not require manual intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation of incorrect software flashing process selection caused by manual intervention, and ensures the accuracy of the software flashing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying creative work.

[0042] Figure 1 A flow chart of a method for determining a software flashing process disclosed in an embodiment of the present invention;

[0043] Figure 2 A flowchart of a method for combining a flashing path and a flashing requirement version to determine a software flashing process disclosed in an embodiment of the present invention;

[0044] Figure 3 A flow chart of a method for solving target flashing related information to obtain a flashing path disclosed in an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of the structure of a device for determining a software flashing process disclosed in an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of the structure of a flashing process determination unit disclosed in an embodiment of the present invention;

[0047] Figure 6 A schematic diagram of the structure of a solution unit disclosed in an embodiment of the present invention;

[0048] Figure 7 The present invention is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] At present, there are different communication protocols in the whole vehicle, and the software flashing process is complicated and diverse. The traditional software flashing process requires a lot of manual intervention, so it is not only inefficient, but also prone to the situation where the software flashing process is selected incorrectly. During the software flashing process, if the software flashing process is selected incorrectly, the flashing data is prone to loss or flashing failure, which can easily cause damage to the vehicle software.

[0051] To solve this problem, an embodiment of the present invention discloses a method for determining a software flashing process and a related device, so that the final software flashing process can be determined by processing the flashing related information of the vehicle based on the current vehicle communication protocol. The entire process does not require human intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation where the software flashing process is selected incorrectly due to human intervention, thereby ensuring the accuracy of the software flashing process.

[0052] See also Figure 1 , a flow chart of a method for determining a software flashing process disclosed in an embodiment of the present invention, the method comprising:

[0053] Step S101, obtaining vehicle flashing related information.

[0054] In actual applications, the flashing related information of the vehicle can be obtained from an online system (such as the vehicle's backend server). The flashing related information includes but is not limited to the flashing method, the flashing required version, etc.

[0055] Flashing methods may include: UDS (Unified Diagnostic Services) flashing, OTA (Over-The-Air) flashing, and debugging tool flashing.

[0056] UDS flashing is a unified diagnostic service that is widely used in the diagnosis and flashing of automotive electronic control units.

[0057] OTA flashing is a wireless technology used to deliver updates, patches or new versions of software to mobile devices or IoT devices without touching the device. In automotive systems, OTA flashing allows vehicles to receive and install new software versions over the wireless network.

[0058] In addition to using UDS flashing and OTA flashing, you can also use specialized debugging tools (such as Lauterbach, etc.) to flash the software of the automotive electronic control unit. These debugging tools usually have powerful debugging and flashing functions and are suitable for complex software development and testing scenarios.

[0059] The flashing requirement version of a vehicle usually contains multiple key information points to ensure the accuracy and effectiveness of the flashing process.

[0060] The vehicle's flashing requirement version may include: ECU (Electronic Control Unit) version information, vehicle identification code, flashing file, security access requirements, flashing prerequisites, protocol type, version number, etc.

[0061] The ECU version information may include: the boot program version running when the ECU starts, the software version currently running on the ECU, and the hardware platform version of the ECU.

[0062] Step S102: Based on the current vehicle communication protocol, pre-process the flashing related information to obtain target flashing related information.

[0063] Among them, the current vehicle communication protocol may be an Ethernet protocol, a CAN (Controller Area Network) protocol, and the like.

[0064] Specifically, the current vehicle communication protocol is first determined, and then the flashing related information is converted into an information format recognized by the current vehicle communication protocol to obtain the target flashing related information.

[0065] After acquiring the vehicle's flashing related information, this embodiment needs to pre-process the flashing related information first, and convert the flashing related information into an information format recognized by the current vehicle communication protocol to ensure that the subsequent processing of the flashing related information meets the requirements of the current vehicle communication protocol.

[0066] Step S103: Calculate the target flashing related information to obtain a flashing path.

[0067] The flash path refers to the entire route from the starting point to the end point during the ECU software flashing process. Specifically, in the ECU flashing operation, the flashing path involves multiple steps and stages to ensure that the correct flashing file is downloaded to the ECU.

[0068] It should be noted that the flashing path obtained by solving the target flashing related information in this application is related to the current vehicle communication protocol, and can be compatible with the two main communication methods of CAN protocol and Ethernet protocol at the same time. Of course, it can also be compatible with protocols other than CAN protocol and Ethernet protocol according to actual needs.

[0069] Step S104: extracting the flashing requirement version from the target flashing related information.

[0070] The flashing requirement version of a vehicle usually refers to the process of updating or modifying the software version of the ECU or vehicle system. This operation can be to solve known software problems, improve vehicle performance, add new features, improve fuel economy, meet new emission standards, or support new vehicle configurations.

[0071] The flashing related information obtained in this embodiment includes the flashing requirement version, so the target flashing related information obtained by preprocessing the flashing related information also includes the flashing requirement version. This embodiment directly extracts the flashing requirement version from the target flashing related information.

[0072] Step S105: Combining the flashing path and the flashing requirement version to determine the software flashing process.

[0073] It should be noted that the flashing path and the flashing requirement version in this application correspond to each other. By combining the flashing path and the flashing requirement version, the software flashing process can be determined.

[0074] In summary, the present invention discloses a method for determining a software flashing process, which obtains flashing-related information of a vehicle, and pre-processes the flashing-related information based on the current vehicle communication protocol to obtain target flashing-related information, solves the target flashing-related information to obtain a flashing path, and extracts the flashing requirement version from the target flashing-related information, and by combining the flashing path and the flashing requirement version, the software flashing process can be determined. The present invention can determine the final software flashing process by processing the flashing-related information of the vehicle based on the current vehicle communication protocol, and the entire process does not require manual intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation where the software flashing process selection error caused by manual intervention is caused, and ensures the accuracy of the software flashing process.

[0075] To further optimize the above embodiment, see Figure 2 , a flowchart of a method for combining a flashing path and a flashing requirement version to determine a software flashing process is disclosed in an embodiment of the present invention, the method comprising:

[0076] Step S201: extract the version number from the flashing requirement version according to the flashing path.

[0077] Specifically, the flashing requirement version is split according to the flashing path to obtain multiple fields, and the version number is extracted from the multiple fields. The multiple fields include: communication protocol type, fixed field, version field and version number.

[0078] In practical applications, the flashing path determines the splitting positions of the four fields of the communication protocol type, fixed field, version field and version number in the flashing requirement version. Different flashing paths will result in different fields split from the same flashing requirement version. Therefore, this embodiment extracts the version number from the flashing requirement version according to the flashing path.

[0079] For example, when the flashing path is an ETH to ETH path, it is used to identify the flashing path using the Ethernet protocol, ETH represents Ethernet, and according to the ETH to ETH path, the version number extracted from the flashing requirement version for the Ethernet protocol process can be 1.0 / 2.0 and other information.

[0080] When the flashing path is the ETH to CAN path, it is used to identify the flashing path that uses the Ethernet protocol to CAN protocol. According to the ETH to CAN path, the version number extracted from the flashing requirement version for the CAN protocol process can be 1.0 / 2.0 and other information.

[0081] When the flashing path is CAN to CAN, it is used to identify the flashing path using the CAN protocol. For the CAN protocol process or the protocol process other than the CAN protocol and the Ethernet protocol, the version number extracted from the flashing requirement version can be 1.8 / 2.0, ECM (Engine Control Module) and other information.

[0082] Step S202: Associating the version number with the flashing path to obtain a flashing process index.

[0083] In actual applications, the version number and the flashing path can be associated with each other through the separator "_" to obtain the flashing process index.

[0084] Step S203: Use the flashing process index to search for the corresponding software flashing process from the flashing process library.

[0085] The flash process library of the present application stores many software flash processes, and the corresponding software flash process can be found from the flash process library using the flash process index.

[0086] In summary, the present invention extracts the version number from the flashing requirement version according to the flashing path, obtains the flashing process index by associating the version number with the flashing path, and uses the flashing process index to find the corresponding software flashing process from the flashing process library. The present invention realizes the automatic determination of the software flashing process, and the whole process does not require manual intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation of incorrect software flashing process selection caused by manual intervention, and ensures the accuracy of the software flashing process.

[0087] To further optimize the above embodiment, see Figure 3 , a flow chart of a method for calculating target flashing related information to obtain a flashing path disclosed in an embodiment of the present invention, the method comprising:

[0088] Step S301: Obtain the flashing method from target flashing related information.

[0089] The flashing related information obtained in this embodiment includes the flashing method, so the target flashing related information obtained by preprocessing the flashing related information also includes the flashing method. In this embodiment, the flashing method is directly obtained from the target flashing related information.

[0090] Step S302: Based on the current vehicle communication protocol, a target flashing path matching the flashing method is searched from a flashing path library as a solution to obtain the flashing path.

[0091] The flash path library of the present application stores various flash modes and their corresponding flash paths. The flash paths stored in the flash path library include but are not limited to: flash paths for identifying the use of Ethernet protocol, flash paths for identifying the use of Ethernet to CAN protocol, and flash paths for identifying the use of CAN protocol.

[0092] Therefore, by matching the acquired flashing method with the flashing method stored in the flashing database and combining it with the current vehicle communication protocol, a unique corresponding target flashing path can be matched and used as the solved flashing path.

[0093] Among them, if the current vehicle communication protocol adopts the Ethernet protocol, the flash path obtained by solution is: used to identify the flash path using the Ethernet protocol, which can be referred to as: ETH to ETH path, ETH stands for Ethernet, Ethernet is a computer local area network technology, which is widely used in the interconnection of vehicle-mounted local area network devices.

[0094] If the current vehicle communication protocol uses the Ethernet protocol and the CAN protocol, the calculated flash path is: used to identify the flash path that uses the Ethernet protocol to convert to the CAN protocol, which can be referred to as: ETH to CAN path.

[0095] If the current vehicle communication protocol uses the CAN protocol, the calculated flash path is: used to identify the flash path using the CAN protocol, which can be abbreviated as: CAN to CAN.

[0096] Among them, you can only choose one of the three flashing paths mentioned above, and there is no multiple selection.

[0097] Among them, the flashing path includes but is not limited to the three flashing paths shown above. If the current vehicle communication protocol is a protocol other than the Ethernet protocol and the CAN protocol, the corresponding flashing path will also change.

[0098] In summary, after obtaining the flashing method from the target flashing related information, the present invention can find the target flashing path matching the flashing method from the flashing path library based on the current vehicle communication protocol as the flashing path obtained by calculation. Since the current vehicle communication protocol can be CAN protocol, Ethernet protocol and other protocols, this application can be compatible with multiple communication methods such as CAN and Ethernet, so as to adapt to the software flashing requirements of different communication protocols of the whole vehicle.

[0099] To further optimize the above embodiment, the method for determining the software flashing process may further include:

[0100] Output software flashing process.

[0101] After determining the software flashing process, this application facilitates the execution of subsequent vehicle software processes by outputting the software flashing process.

[0102] Corresponding to the above method embodiment, the present invention also discloses a software flashing process determination device.

[0103] See also Figure 4 , a schematic diagram of a structure of a software flashing process determination device disclosed in an embodiment of the present invention, the device may include:

[0104] The information acquisition unit 401 is used to acquire the flashing related information of the vehicle.

[0105] In actual applications, the flashing related information of the vehicle can be obtained from an online system (such as the vehicle's backend server). The flashing related information includes but is not limited to the flashing method, the flashing required version, etc.

[0106] Flashing methods may include: UDS flashing, OTA flashing, and debugging tool flashing.

[0107] The flashing requirement version of a vehicle usually contains multiple key information points to ensure the accuracy and effectiveness of the flashing process.

[0108] The vehicle's flashing requirement version may include: ECU version information, vehicle identification code, flashing file, security access requirements, flashing prerequisites, protocol type, version number, etc.

[0109] The ECU version information may include: the boot program version running when the ECU starts, the software version currently running on the ECU, and the hardware platform version of the ECU.

[0110] The preprocessing unit 402 is used to preprocess the flashing related information to obtain target flashing related information based on the current vehicle communication protocol.

[0111] Among them, the current vehicle communication protocol may be an Ethernet protocol, a CAN (Controller Area Network) protocol, and the like.

[0112] The pre-processing unit 402 is further used for:

[0113] determining the current vehicle communication protocol;

[0114] The flashing related information is converted into an information format recognized by the current vehicle communication protocol to obtain the target flashing related information.

[0115] After acquiring the vehicle's flashing related information, this embodiment needs to pre-process the flashing related information first, and convert the flashing related information into an information format recognized by the current vehicle communication protocol to ensure that the subsequent processing of the flashing related information meets the requirements of the current vehicle communication protocol.

[0116] The solving unit 403 is used to solve the target flashing related information to obtain a flashing path.

[0117] The flash path refers to the entire route from the starting point to the end point during the ECU software flashing process. Specifically, in the ECU flashing operation, the flashing path involves multiple steps and stages to ensure that the correct flashing file is downloaded to the ECU.

[0118] It should be noted that the flashing path obtained by solving the target flashing related information in this application is related to the current vehicle communication protocol, and can be compatible with the two main communication methods of CAN protocol and Ethernet protocol at the same time. Of course, it can also be compatible with protocols other than CAN protocol and Ethernet protocol according to actual needs.

[0119] The extraction unit 404 is used to extract the flashing required version from the target flashing related information.

[0120] The flashing requirement version of a vehicle usually refers to the process of updating or modifying the software version of the ECU or vehicle system. This operation can be to solve known software problems, improve vehicle performance, add new features, improve fuel economy, meet new emission standards, or support new vehicle configurations.

[0121] The flashing related information obtained in this embodiment includes the flashing requirement version, so the target flashing related information obtained by preprocessing the flashing related information also includes the flashing requirement version. This embodiment directly extracts the flashing requirement version from the target flashing related information.

[0122] The flashing process determining unit 405 is used to determine the software flashing process by combining the flashing path and the flashing requirement version.

[0123] It should be noted that the flashing path and the flashing requirement version in this application correspond to each other. By combining the flashing path and the flashing requirement version, the software flashing process can be determined.

[0124] In summary, the present invention discloses a device for determining a software flashing process, which obtains flashing-related information of a vehicle, and pre-processes the flashing-related information based on the current vehicle communication protocol to obtain target flashing-related information, solves the target flashing-related information to obtain a flashing path, and extracts the flashing requirement version from the target flashing-related information, and by combining the flashing path and the flashing requirement version, the software flashing process can be determined. The present invention can determine the final software flashing process by processing the flashing-related information of the vehicle based on the current vehicle communication protocol, and the entire process does not require manual intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation where the software flashing process selection error caused by manual intervention is caused, and ensures the accuracy of the software flashing process.

[0125] To further optimize the above embodiment, see Figure 5 , a schematic diagram of a flashing process determination unit disclosed in an embodiment of the present invention, the flashing process determination unit may include:

[0126] The extraction subunit 501 is used to extract the version number from the flashing requirement version according to the flashing path.

[0127] In practical applications, the flashing path determines the splitting positions of the four fields of the communication protocol type, fixed field, version field and version number in the flashing requirement version. Different flashing paths will result in different fields split from the same flashing requirement version. Therefore, this embodiment extracts the version number from the flashing requirement version according to the flashing path.

[0128] Therefore, the extraction subunit 501 is further used for:

[0129] Splitting the flashing requirement version according to the flashing path to obtain multiple fields, the multiple fields including: a communication protocol type, a fixed field, a version field and the version number;

[0130] The version number is extracted from the plurality of fields.

[0131] For example, when the flashing path is an ETH to ETH path, it is used to identify the flashing path using the Ethernet protocol, ETH represents Ethernet, and according to the ETH to ETH path, the version number extracted from the flashing requirement version for the Ethernet protocol process can be 1.0 / 2.0 and other information.

[0132] When the flashing path is the ETH to CAN path, it is used to identify the flashing path that uses the Ethernet protocol to CAN protocol. According to the ETH to CAN path, the version number extracted from the flashing requirement version for the CAN protocol process can be 1.0 / 2.0 and other information.

[0133] When the flashing path is CAN to CAN, it is used to identify the flashing path using the CAN protocol. For the CAN protocol process or the protocol process other than the CAN protocol and the Ethernet protocol, the version number extracted from the flashing requirement version can be 1.8 / 2.0, ECM (Engine Control Module) and other information.

[0134] The association subunit 502 is used to associate the version number with the flashing path to obtain a flashing process index.

[0135] In actual applications, the version number and the flashing path can be associated with each other through the separator "_" to obtain the flashing process index.

[0136] The flashing process search subunit 503 is used to use the flashing process index to search for the corresponding software flashing process from the flashing process library.

[0137] The flash process library of the present application stores many software flash processes, and the corresponding software flash process can be found from the flash process library using the flash process index.

[0138] In summary, the present invention extracts the version number from the flashing requirement version according to the flashing path, obtains the flashing process index by associating the version number with the flashing path, and uses the flashing process index to find the corresponding software flashing process from the flashing process library. The present invention realizes the automatic determination of the software flashing process, and the whole process does not require manual intervention. Therefore, it not only improves the overall efficiency of the software flashing process, but also effectively avoids the situation of incorrect software flashing process selection caused by manual intervention, and ensures the accuracy of the software flashing process.

[0139] To further optimize the above embodiment, see Figure 6 , a schematic diagram of a structure of a solution unit disclosed in an embodiment of the present invention, the solution unit may include:

[0140] The flashing mode acquisition subunit 601 is used to acquire the flashing mode from the target flashing related information.

[0141] The flashing related information obtained in this embodiment includes the flashing method, so the target flashing related information obtained by preprocessing the flashing related information also includes the flashing method. In this embodiment, the flashing method is directly obtained from the target flashing related information.

[0142] The flashing path searching subunit 602 is used to search for a target flashing path matching the flashing method from a flashing path library based on the current vehicle communication protocol to obtain the flashing path by solution.

[0143] The flash path library of the present application stores various flash modes and their corresponding flash paths. The flash paths stored in the flash path library include but are not limited to: flash paths for identifying the use of Ethernet protocol, flash paths for identifying the use of Ethernet to CAN protocol, and flash paths for identifying the use of CAN protocol.

[0144] Therefore, by matching the acquired flashing method with the flashing method stored in the flashing database and combining it with the current vehicle communication protocol, a unique corresponding target flashing path can be matched and used as the solved flashing path.

[0145] Among them, if the current vehicle communication protocol adopts the Ethernet protocol, the flash path obtained by solution is: used to identify the flash path using the Ethernet protocol, which can be referred to as: ETH to ETH path, ETH stands for Ethernet, Ethernet is a computer local area network technology, which is widely used in the interconnection of vehicle-mounted local area network devices.

[0146] If the current vehicle communication protocol uses the Ethernet protocol and the CAN protocol, the calculated flash path is: used to identify the flash path that uses the Ethernet protocol to convert to the CAN protocol, which can be referred to as: ETH to CAN path.

[0147] If the current vehicle communication protocol uses the CAN protocol, the calculated flash path is: used to identify the flash path using the CAN protocol, which can be abbreviated as: CAN to CAN.

[0148] Among them, you can only choose one of the three flashing paths mentioned above, and there is no multiple selection.

[0149] Among them, the flashing path includes but is not limited to the three flashing paths shown above. If the current vehicle communication protocol is a protocol other than the Ethernet protocol and the CAN protocol, the corresponding flashing path will also change.

[0150] In summary, after obtaining the flashing method from the target flashing related information, the present invention can find the target flashing path matching the flashing method from the flashing path library based on the current vehicle communication protocol as the flashing path obtained by calculation. Since the current vehicle communication protocol can be CAN protocol, Ethernet protocol and other protocols, this application can be compatible with multiple communication methods such as CAN and Ethernet, so as to adapt to the software flashing requirements of different communication protocols of the whole vehicle.

[0151] To further optimize the above embodiment, the software flashing process determination device may further include:

[0152] The output unit is used to output the software flashing process.

[0153] After determining the software flashing process, this application facilitates the execution of subsequent vehicle software processes by outputting the software flashing process.

[0154] Corresponding to the above-mentioned embodiment, the present invention further discloses a computer storage medium, which stores at least one instruction, and when the at least one instruction is executed by a processor, the steps shown in the embodiment of the method for determining the software flashing process are implemented.

[0155] Computer storage media may be tangible media that may contain or store programs for use by or in conjunction with an instruction execution system, device, or apparatus. Computer storage media may be machine-readable signal media or machine-readable storage media. Computer storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0156] Corresponding to the above embodiment, see Figure 7 , a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention, the electronic device includes: a processor 1 and a memory 2;

[0157] The processor 1 and the memory 2 communicate with each other via a communication bus 3;

[0158] Processor 1, configured to execute at least one instruction;

[0159] Memory 2, used to store at least one instruction;

[0160] The processor 1 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0161] The memory 2 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0162] The processor executes at least one instruction to implement the steps shown in the software flashing process determination method embodiment.

[0163] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0164] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0165] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining a software flashing process, characterized in that: include: Get the flashing related information of the vehicle; Based on the current vehicle communication protocol, preprocessing the flashing related information to obtain target flashing related information; Solving the target flashing related information to obtain a flashing path; Extracting the required flashing version from the target flashing related information; The flashing path and the flashing requirement version are combined to determine the software flashing process.

2. The method for determining the software flashing process according to claim 1, characterized in that: The step of combining the flashing path with the flashing requirement version to determine the software flashing process includes: Extracting a version number from the flashing requirement version according to the flashing path; Associating the version number with the flashing path to obtain a flashing process index; The flashing process index is used to search for the corresponding software flashing process from the flashing process library.

3. The method for determining the software flashing process according to claim 2, characterized in that: The extracting the version number from the flashing requirement version according to the flashing path includes: Splitting the flashing requirement version according to the flashing path to obtain multiple fields, the multiple fields including: a communication protocol type, a fixed field, a version field and the version number; The version number is extracted from the plurality of fields.

4. The method for determining the software flashing process according to claim 1, characterized in that: The preprocessing of the flashing related information based on the current vehicle communication protocol to obtain target flashing related information includes: determining the current vehicle communication protocol; The flashing related information is converted into an information format recognized by the current vehicle communication protocol to obtain the target flashing related information.

5. The method for determining the software flashing process according to claim 1, characterized in that: The step of calculating the target flashing related information to obtain the flashing path includes: Acquire a flashing method from the target flashing related information; Based on the current vehicle communication protocol, a target flashing path matching the flashing method is searched from a flashing path library as a solution to obtain the flashing path.

6. The method for determining the software flashing process according to claim 1 or 5, characterized in that: The step of calculating the target flashing related information to obtain the flashing path includes: If the current vehicle communication protocol adopts the Ethernet protocol, the flash path obtained by the solution is: used to identify the flash path adopting the Ethernet protocol; If the current vehicle communication protocol adopts the Ethernet protocol and the controller area network (CAN) protocol, the calculated flash path is: used to identify the flash path for converting the Ethernet protocol to the CAN protocol; If the current vehicle communication protocol adopts the CAN protocol, the calculated flash path is: used to identify the flash path adopting the CAN protocol.

7. The method for determining the software flashing process according to any one of claims 1 to 6, characterized in that: Also includes: Output the software flashing process.

8. A software flashing process determination device, characterized in that: include: An information acquisition unit, used to acquire flashing related information of the vehicle; A preprocessing unit, configured to preprocess the flashing related information to obtain target flashing related information based on the current vehicle communication protocol; A solving unit, used for solving the target flashing related information to obtain a flashing path; An extraction unit, used for extracting the flashing required version from the target flashing related information; The flashing process determining unit is used to determine the software flashing process by combining the flashing path and the flashing requirement version.

9. A computer storage medium, characterized in that The computer storage medium stores at least one instruction, and when the at least one instruction is executed by the processor, the method for determining the software flashing process according to any one of claims 1 to 6 is implemented.

10. An electronic device, characterized in that: include: Memory and processor; The memory is used to store at least one instruction; The processor is used to execute the at least one instruction to implement the software flashing process determination method according to any one of claims 1 to 7.