Vehicle controller upgrade method, system and electronic equipment
Through the process recommendation model and the time loop network model, the compatibility problems in vehicle controller upgrades are automatically identified and solved, and a more efficient and flexible upgrade process is achieved, and the problem of high upgrade error rate in the existing technology is solved.
Patent Information
- Application Number
- CN202411147474.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-21
AI Technical Summary
When facing diverse vehicle models and complex vehicle systems, the existing vehicle controller upgrade method lacks flexibility and adaptability, resulting in high upgrade error rates and affecting efficiency.
The process recommendation model is adopted to identify compatibility issues between the controller and the upgrade process through training the model, and automatically complete the prediction and configuration of the upgrade process. The time loop network model is used to customize and optimize the upgrade process with user editing instructions.
It reduces the vehicle controller upgrade error rate, improves upgrade efficiency and flexibility, and enhances the system's adaptability and user experience.
Smart Images

Figure CN118656099B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle controllers, and in particular to a vehicle controller upgrading method, system and electronic equipment. Background Art
[0002] With the rapid development of the automobile industry and the increasing maturity of automotive electronic technology, the functional complexity of the vehicle controller (ECU, Electronic Control Unit) as the core of the automobile intelligent control system has increased dramatically. The vehicle controller is not only responsible for basic functions such as engine ignition, fuel injection, and emission control, but also gradually integrates multiple advanced functions such as body control, driving assistance, entertainment system control, and network communication. This high degree of integration and intelligence makes the vehicle controller play an irreplaceable role in improving automobile performance, safety, and driving experience.
[0003] At present, with the continuous expansion of vehicle controller functions, the demand for software upgrades and maintenance has also increased. In order to cope with the addition of new functions, the repair of software defects and the optimization of controller performance, regular or on-demand software upgrades of vehicle controllers have become an indispensable part. In this process, the UDS (Unified Diagnostic Services) communication protocol has been widely used in the automotive industry due to its high efficiency and standardization. The UDS protocol provides a stable and reliable communication bridge between vehicle controllers and diagnostic tools, supports a variety of diagnostic services including data transmission, fault diagnosis, and software upgrades, and greatly facilitates the upgrade and maintenance of vehicle controllers.
[0004] However, faced with the increasingly diverse vehicle models and constantly iterating vehicle controller models on the market, the existing vehicle controller upgrade processes and methods have gradually revealed their limitations. Traditional upgrade methods often rely on preset, relatively fixed upgrade steps. Although these steps can meet the upgrade needs of some vehicle controllers to a certain extent, their flexibility and adaptability are insufficient when faced with complex vehicle systems and ever-changing software environments. Specifically, when there are incompatibility or adaptability issues between the vehicle controller and the preset upgrade process, the upgrade process may be hindered or even lead to upgrade failure. In the current context of a wide variety of vehicle models and complex vehicle controller models, the error rate of vehicle controller upgrades is high, which in turn affects the upgrade efficiency. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] In view of the above-mentioned shortcomings of the prior art, the present application discloses a vehicle controller upgrade method, system and electronic device to improve the upgrade efficiency of the vehicle controller.
[0007] The present application discloses a vehicle controller upgrade method, which is applied to a server side, wherein the server side is connected to a vehicle terminal, and the method comprises: presetting a process recommendation model, wherein the process recommendation model is obtained by model training based on multiple target feature samples with upgrade process labels, and the target feature samples include controller information and / or vehicle information; obtaining a current target feature corresponding to a target controller, wherein the target controller is set at the vehicle terminal; predicting according to the current target feature through the process recommendation model to obtain a current upgrade process composed of upgrade service nodes; mapping each of the upgrade service nodes to a service request respectively to generate a target data stream composed of the service requests, and upgrading the target controller through the target data stream.
[0008] In one embodiment of the present application, a process recommendation model is obtained by training in the following manner: obtaining multiple target feature samples and upgrade process labels corresponding to each of the target feature samples, wherein the upgrade process labels include historical upgrade processes and upgrade time series, and the upgrade time series consists of upgrade times corresponding to the historical upgrade processes; constructing a time recurrent network model according to the upgrade process labels and the target feature samples; training the time recurrent network model according to each target feature sample with the upgrade process label, and using the trained time recurrent network model as a process recommendation model.
[0009] In one embodiment of the present application, after the current upgrade process is obtained by predicting according to the current target features through the process recommendation model, the method also includes: obtaining a process editing page; displaying the current upgrade process to the user through the process editing page, and monitoring the user's target page events corresponding to any upgrade service node, wherein the target page event is composed of one or more of a click event, a drag event, and an edit event; generating a user editing instruction based on the monitored target page event, and editing the current upgrade process through the user editing instruction.
[0010] In one embodiment of the present application, the current upgrade process is edited through the user editing instruction, including: if the upgrade service node includes a core node, the node function corresponding to any core node is edited through the user editing instruction, wherein the node function includes one or more of reading data blocks, writing data blocks, identity authentication, permission management, managing communication sessions, requesting uploads, and requesting downloads; if the upgrade service node includes a conditional judgment node, the condition information corresponding to any conditional judgment node is edited through the user editing instruction, wherein the condition information includes an upgrade service node corresponding to a preset condition, and the conditional judgment node is used to execute the upgrade service node corresponding to the preset condition when the preset condition is met; the loop execution information corresponding to at least a part of the upgrade service nodes is edited through the user editing instruction.
[0011] In one embodiment of the present application, a target data stream is obtained in the following manner: a target communication protocol is obtained, and each of the upgrade service nodes is respectively determined as a target node, wherein the server side and the target controller are upgraded through the target communication protocol; in response to the target node, node information corresponding to the target node is obtained, wherein the node information includes a node serial number, a service identifier, and service parameters; a compatibility check is performed on the service identifier according to the target communication protocol to obtain a compatibility check result; if the compatibility check result includes qualified compatibility, a service request is constructed according to the service identifier and the service parameters; if the node information corresponding to the target node also includes a mapping condition, the mapping condition is evaluated; if the mapping condition is met, the service request is stored in a preset node mapping list according to the node serial number; if the node information corresponding to the target node does not include a mapping condition, the service request is stored in a preset node mapping list according to the node serial number; a target data stream is constructed according to each service request in the node mapping list.
[0012] In one embodiment of the present application, the target controller is upgraded through the target data stream, including: establishing a diagnostic session between the server and the target controller; executing the service request in the target data stream through the diagnostic session to upgrade the target controller; monitoring the response information fed back by the target controller, and generating a request result corresponding to the service request; if the request result corresponding to the service request includes an execution error, executing a preset recovery strategy; if the request results corresponding to each of the service requests include execution completion, closing the diagnostic session and generating an execution result corresponding to the target data stream.
[0013] In one embodiment of the present application, a preset recovery strategy is executed, including at least one of the following: clearing resources on the server side; exiting the execution step of the target data stream; generating an error message and prompting the user according to the error message; if the cause of the error is a transient error, re-executing the target data stream according to a preset number of retries; if the cause of the error is a configuration error, data configuration is performed on the target data stream, and the target data stream after data configuration is re-executed; replacing the current request in the target data stream with an alternative request, and re-executing the target data stream, wherein the current request is at least a part of the service request in the target data stream, and there is a preset replacement relationship between the current request and the alternative request.
[0014] In one embodiment of the present application, the method also includes: obtaining a result prediction model, wherein the result prediction model is obtained by model training using upgrade condition samples with execution result labels; in response to executing the target data flow, obtaining current environmental parameters of the target data flow during execution, and extracting data flow parameters from the target data flow; inputting the current environmental parameters and the data flow parameters into the result prediction model as current upgrade conditions to obtain a prediction result corresponding to the target data flow, wherein the prediction result includes an error probability and / or an error type.
[0015] The present application discloses a vehicle controller upgrade system, which is applied to a server side, and the server side is connected to a vehicle terminal. The vehicle controller upgrade system includes: a setting module, which is used to set a process recommendation model, and the process recommendation model is obtained by model training based on multiple target feature samples with upgrade process labels; an acquisition module, which is used to obtain current target features corresponding to a target controller, and the target controller is set at the vehicle terminal, and the feature samples include controller information and vehicle information; a recommendation module, which is used to predict according to the current target features through the process recommendation model to obtain a current upgrade process composed of upgrade service nodes; an upgrade module, which is used to map each of the upgrade service nodes to a service request respectively to generate a target data stream composed of the service requests, and upgrade the target controller through the target data stream.
[0016] The present application discloses an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above method.
[0017] Beneficial effects of this application:
[0018] The process recommendation model is obtained by training the model with multiple target feature samples with upgrade process labels, and then the current target features including controller information and vehicle information are input into the process recommendation model, so that the process recommendation model makes predictions based on the current target features to obtain the current upgrade process, and then maps the upgrade service nodes in the current upgrade process to service requests, and upgrades the target controller through the generated target data stream. In this way, compared with matching through fixed upgrade steps, the process recommendation model is trained based on actual data, can accurately identify compatibility issues between the controller and the upgrade process, automatically complete the prediction and configuration of the upgrade process, and has higher flexibility and adaptability, thereby reducing the upgrade error rate of the vehicle controller and improving the upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a structural schematic diagram of an application scenario for implementing a vehicle controller upgrade method in an embodiment of the present invention;
[0020] Figure 2 is a structural diagram of a system framework for implementing a vehicle controller upgrade method in an embodiment of the present invention;
[0021] Figure 3 is a flow chart of a vehicle controller upgrade method in an embodiment of the present invention;
[0022] Figure 4 It is a flowchart of a method for constructing a target data stream in an embodiment of the present invention;
[0023] Figure 5 is a flowchart of a method for upgrading a target controller in an embodiment of the present invention;
[0024] Figure 6 is a flow chart of another vehicle controller upgrade method according to an embodiment of the present invention;
[0025] Figure 7 is a schematic diagram of the structure of a vehicle controller upgrade system in an embodiment of the present invention;
[0026] Figure 8 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other without conflict.
[0028] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present invention in a schematic manner, and thus the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0029] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0030] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0031] Unless otherwise stated, the term "plurality" means two or more.
[0032] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0033] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0034] Combination Figure 1 As shown, an embodiment of the present disclosure provides an application scenario for implementing a vehicle controller upgrade method, including a vehicle terminal 101 and a server 102, wherein the vehicle terminal 101 and the server 102 are connected via a network.
[0035] The vehicle terminal 101 includes a vehicle controller, wherein the target controller is any vehicle controller.
[0036] The server side 102 includes a process recommendation model, wherein the process recommendation model is obtained by model training based on a plurality of target feature samples with upgrade process labels, and the target feature samples include controller information and / or vehicle information.
[0037] The server end 102 is used to execute at least part of the following user instructions: obtaining the current target characteristics corresponding to the target controller, wherein the target controller is set at the vehicle terminal; making predictions based on the current target characteristics through the process recommendation model to obtain the current upgrade process composed of upgrade service nodes; mapping each upgrade service node to a service request to generate a target data stream composed of service requests, and upgrading the target controller through the target data stream.
[0038] Combination Figure 2 As shown, an embodiment of the present disclosure provides a system framework for implementing a vehicle controller upgrade method, including a process recommendation module, a customization module, a node mapping module, an error analysis module, and an upgrade execution module.
[0039] The process recommendation module is used to obtain the current target features corresponding to the target controller; the process recommendation model is used to make predictions based on the current target features to obtain the current upgrade process consisting of upgrade service nodes.
[0040] The custom module is used by users to edit the current upgrade process.
[0041] The node mapping module is used to map each upgrade service node to a service request to generate a target data stream composed of the service requests.
[0042] The error analysis module is used to extract data flow parameters from the target data flow; the current environment parameters and data flow parameters are input into the result prediction model as the current upgrade conditions to obtain the prediction results corresponding to the target data flow.
[0043] The upgrade execution module is used to upgrade the target controller through the target data stream.
[0044] In some embodiments, the system framework for implementing the vehicle controller upgrade method does not rely on the error analysis module and its result prediction model, that is, even if there is no error analysis module, the system framework can still implement the ECU upgrade of the vehicle terminal.
[0045] In some embodiments, the core of ECU upgrade lies in the precise coordination between the process recommendation module, custom module, node mapping module, error analysis module and upgrade execution module. These modules jointly build a highly automated and intelligent ECU flashing system, which fundamentally solves the problems of low efficiency and frequent errors that are common in the traditional flashing process. The system framework not only significantly improves the flashing efficiency and greatly reduces the error rate, but also provides engineers in the field of automotive electronic control with an unprecedented efficient working method. By reducing manual operations, the risk of human errors is reduced, thereby effectively reducing the overall maintenance cost. The process recommendation module intelligently recommends the optimal upgrade process based on best practices and preset logic to ensure that each step of the operation is accurate and efficient. The custom module gives users the ability to adjust and optimize the flashing process according to actual needs, enhancing the flexibility and adaptability of the system. The node mapping module ensures the precise matching of each functional node inside the ECU with the corresponding elements in the upgrade data package, providing a solid foundation for accurate flashing. The error analysis module can quickly identify the root cause of the problem when an error occurs, provide detailed error reports and solution suggestions, and help engineers quickly locate and solve the problem. The upgrade execution module, as the execution engine of the entire system, is responsible for accurately executing the upgrade operation according to the established process. Through close cooperation with other modules, this module ensures the smooth progress of the upgrade process and can respond flexibly and take appropriate recovery measures when encountering problems. The collaborative work between these modules not only realizes the comprehensive optimization of the ECU flashing process, but also significantly improves the overall performance of the system. This revolutionary change has brought unprecedented convenience and efficiency to software upgrades and fault repairs in the automotive industry, and promoted the continuous progress and development of automotive electronic control technology.
[0046] Combination Figure 3 As shown, the embodiment of the present disclosure provides a vehicle controller upgrade method, which is applied to a server side, and the method includes:
[0047] Step S301, pre-setting a process recommendation model;
[0048] The process recommendation model is trained based on multiple target feature samples with upgrade process labels;
[0049] Step S302, obtaining the current target feature corresponding to the target controller;
[0050] Wherein, the target controller is arranged at the vehicle terminal;
[0051] Among them, the feature samples include controller information and vehicle information;
[0052] Step S303, predicting according to the current target features through the process recommendation model to obtain the current upgrade process consisting of upgrade service nodes;
[0053] Step S304: Map each upgrade service node to a service request to generate a target data stream composed of the service requests, and upgrade the target controller through the target data stream.
[0054] The vehicle controller upgrade method provided by the embodiment of the present disclosure is adopted, and a process recommendation model is obtained by model training through multiple target feature samples with upgrade process labels, and then the current target features including controller information and vehicle information are input into the process recommendation model, so that the process recommendation model makes predictions based on the current target features to obtain the current upgrade process, and then the upgrade service nodes in the current upgrade process are mapped to service requests, and the target controller is upgraded through the generated target data stream. In this way, compared with matching through fixed upgrade steps, the process recommendation model is trained based on actual data, can accurately identify compatibility issues between the controller and the upgrade process, automatically complete the prediction and configuration of the upgrade process, and has higher flexibility and adaptability, thereby reducing the upgrade error rate of the vehicle controller and improving the upgrade efficiency.
[0055] Optionally, the process recommendation model is trained by: obtaining multiple target feature samples and upgrade process labels corresponding to each target feature sample, wherein the upgrade process label includes a historical upgrade process and an upgrade time series, and the upgrade time series consists of the upgrade time corresponding to the historical upgrade process; constructing a time recurrent network model according to the upgrade process label and the target feature samples; training the time recurrent network model according to each target feature sample with the upgrade process label, and using the trained time recurrent network model as the process recommendation model.
[0056] In some embodiments, the process recommendation model collects and organizes a large number of historical upgrade cases as target feature samples and upgrade process labels, where these cases cover various complex scenarios of different vehicle models, ECU models and upgrade tasks. The upgrade process labels include but are not limited to the selection order of service nodes, parameter configuration, execution time, success rate, and final ECU response, etc.; deep learning algorithms are used to train these data to identify the optimal service node sequence and parameter configuration mode under different conditions.
[0057] In some embodiments, by collecting and organizing detailed records of past upgrade operations, these records include not only successful cases but also failed experiences, ensuring that the model learns a wide range of knowledge, extracting key features from historical cases, such as vehicle features, ECU information historical upgrade records, time features, etc., to provide rich and multi-dimensional input for deep learning algorithms. Then, the model is trained using labeled data (successful and failed cases) to learn which service node combinations and parameter configurations are most likely to lead to successful upgrades.
[0058] In some embodiments, vehicle information includes static information such as vehicle model, year, and manufacturer. ,in, is the number of sub-information in vehicle information; controller information includes ECU model, version, hardware specifications, etc., and controller information is recorded as ,in, is the number of sub-information in the controller information; the historical upgrade process includes the service nodes used, parameter configuration, success / failure marks, etc., and the historical upgrade process is recorded as ,in, is the number of historical upgrade processes, each is a vector that represents the characteristics of a single upgrade process; the upgrade time series includes the upgrade times corresponding to the past k historical upgrade processes, and the upgrade time series is recorded as ; According to the vehicle information, controller information, historical upgrade process and upgrade time series, the target feature samples with upgrade process labels are formed, and the target feature samples with upgrade process labels are recorded as ,in, is the time step The complete feature vector of the vehicle, ECU, historical behavior and environmental information is integrated, providing a rich contextual understanding basis for the LSTM model.
[0059] In some embodiments, an LSTM (Long Short-Term Memory) network is used to process sequence data, especially those features with time dependence, such as the vehicle's ECU upgrade history, the upgrade success rate within a specific time period, etc. LSTM solves the long-term dependency problem, can remember past inputs and use these memories to predict future outputs, and is very suitable for serialization and time series prediction tasks.
[0060] In some embodiments, the basic unit of the LSTM network consists of an input gate, a forget gate, a cell state, and an output gate; The corresponding input feature vector , set the input gate, forget gate, cell state and output gate; the input gate is used to determine which new information needs to be updated to the cell state, and the input gate is represented as ; The forget gate is used to decide which old information needs to be forgotten. The forget gate is expressed as ; The cell state is used to update according to the results of the input gate and the forget gate. The cell state is expressed as The output gate is used to determine which information needs to be output to the hidden state, thereby affecting the output of the next time step. The output gate is expressed as ; In the formula, represents the sigmoid activation function, is the hyperbolic tangent function, is element-wise multiplication, , , and is the weight matrix, , , and is the bias term, is the current input and the hidden state of the previous time step.
[0061] In some embodiments, a fully connected layer and a Softmax layer are sequentially connected after the LSTM network, and the network is represented as , where is the recommendation probability corresponding to each service node, and is the fully connected layer parameter; the input feature vector Input LSTM network, the last state of LSTM network output As the feature representation of the entire sequence, it is used for subsequent classification tasks or regression tasks to obtain the most suitable service node sequence and service parameters for the next upgrade.
[0062] In this way, under the interaction of vehicle information, controller information, historical upgrade process and upgrade time series, a multi-dimensional, dynamic process recommendation model with time series characteristics is obtained through model training, which can make more accurate and personalized service node and parameter recommendations. When the user designs the upgrade process, the process recommendation model predicts and recommends the best service node sequence and parameter configuration based on the basic information entered by the user and the service nodes initially selected, and provides a success probability prediction to assist the user in making decisions.
[0063] Optionally, after the current upgrade process is obtained by predicting according to the current target features through the process recommendation model, the method also includes: obtaining a process editing page; displaying the current upgrade process to the user through the process editing page, and monitoring the user's target page events corresponding to any upgrade service node, wherein the target page event is composed of one or more of a click event, a drag event, and an edit event; generating a user editing instruction based on the monitored target page event, and editing the current upgrade process through the user editing instruction.
[0064] In some embodiments, the process editing page allows users to freely select and configure upgrade service nodes, such as reading data blocks, writing data blocks, requesting control, etc.; users can also customize the order of service execution and set specific conditional logic to adapt to the personalized needs of different vehicle models and ECUs, thereby giving users full control over the upgrade process and enhancing the flexibility of the upgrade process.
[0065] In some embodiments, through intuitive drag-and-drop operations, it is easy to add upgraded service nodes on the canvas on the process editing page, and use connecting lines to accurately build the logical relationship between services. This innovative method greatly simplifies the complex process design process. The platform provides a rich library of UDS service node icons. Users can easily select the required service nodes from the library and drag and drop them directly onto the canvas for quick layout. The editing tool also has a built-in editing history function, and users can freely undo or redo previous operations, effectively preventing the loss of time and energy caused by misoperation. This humanized design improves work efficiency and enhances user experience; users can save their own custom flowcharts, which provides great convenience whether for future use or for sharing and collaboration with team members. This function not only promotes the standardization of personal workflows, but also promotes knowledge sharing and collaboration efficiency between teams.
[0066] In some embodiments, on the process editing page, users can use the node property panel to configure detailed service parameters for each upgrade service node. This process covers setting various key parameters, such as data block address, data length, control commands, etc., to ensure that the service can run as expected. For complex parameter configurations, the system provides clear instructions and examples to help users deeply understand the role and configuration method of each parameter, so as to ensure the accuracy and efficiency of the configuration; for the setting of custom conditions and loop parameters, users can also flexibly operate in the property panel to meet diverse process control needs. In order to improve the convenience of operation, the system also presets multiple option values for commonly used parameters, and users can directly select from the list, which greatly reduces the burden of manual input and improves work efficiency.
[0067] In some embodiments, during the editing process, the process editing page will display and update the flowchart in real time, clearly presenting the current logical structure. This instant feedback mechanism enables users to intuitively discover and adjust potential problems during the design phase, thereby ensuring the accuracy and efficiency of process design. In order to further enhance the user experience and ensure the reliability of the process, the system also provides a simulation run function. With this function, users can test the logical correctness of the process without actually performing upgrades or other risky operations, effectively reducing the actual execution risk caused by incorrect configuration or logical problems; during the preview and simulation run phases, the system will automatically perform a strict inspection process to ensure the integrity and consistency of the designed process. Once any possible errors or inconsistencies are detected, the system will immediately issue a prompt to the user, clearly pointing out the problem, thereby helping users quickly locate and solve the problem and optimize the process design.
[0068] Optionally, the current upgrade process is edited through user editing instructions, including: updating the current upgrade process according to the node editing instructions, including at least one of the following: if the upgrade service node includes a core node, editing the node function corresponding to any core node through user editing instructions; if the upgrade service node includes a conditional judgment node, editing the condition information corresponding to any conditional judgment node through user editing instructions, wherein the condition information includes an upgrade service node corresponding to a preset condition, and the conditional judgment node is used to execute the upgrade service node corresponding to the preset condition when the preset condition is met; editing the loop execution information corresponding to at least a part of the upgrade service nodes through user editing instructions.
[0069] In some embodiments, the node functions of the core node include one or more of reading data blocks (for example, allowing the user to specify the ECU memory address to read a specific data block), writing data blocks (for example, the user can specify the data source to write data to a specific address of the ECU), authentication, permission management, managing communication sessions (for example, starting, terminating, switching session types), requesting uploads (for example, batch transmission of firmware or configuration data, supporting breakpoint resumption and error recovery), and requesting downloads.
[0070] In some embodiments, the preset conditions of the conditional judgment node include comparison operations (e.g., equal to, not equal to, greater than, less than, etc.) and / or multiple condition combinations (e.g., AND and OR); the direction of the upgrade process is determined based on the satisfaction status corresponding to the preset conditions.
[0071] In some embodiments, the loop execution information includes loop nodes (for example, a user can set the number of loops or duration to repeatedly execute a service or a group of services), counter nodes (for example, to track and control the number of loops, which can be combined with condition nodes to implement condition-triggered loops), and timer nodes (for example, to wait for a specified time before executing subsequent operations, which is suitable for situations where it is necessary to wait for an ECU response or delay an operation).
[0072] Optionally, the target data stream is obtained in the following manner: a target communication protocol is obtained, and each upgraded service node is respectively determined as a target node, wherein the server side and the target controller are upgraded through the target communication protocol; in response to the target node, node information corresponding to the target node is obtained, wherein the node information includes a node serial number, a service identifier, and service parameters; a compatibility check is performed on the service identifier according to the target communication protocol to obtain a compatibility check result; if the compatibility check result includes qualified compatibility, a service request is constructed according to the service identifier and the service parameters; if the node information corresponding to the target node also includes a mapping condition, the mapping condition is evaluated; if the mapping condition is met, the service request is stored in a preset node mapping list according to the node serial number; if the node information corresponding to the target node does not include a mapping condition, the service request is stored in a preset node mapping list according to the node serial number; and the target data stream is constructed according to each service request in the node mapping list.
[0073] In some embodiments, if the node information corresponding to the target node does not include a mapping condition, the service request is stored in a preset node mapping list according to the node sequence number, and the target data stream is constructed according to each service request in the node mapping list.
[0074] In some embodiments, the target communication protocol comprises the UDS protocol.
[0075] In some embodiments, in the current upgrade process after user editing, the upgrade service node is mapped to the corresponding UDS request code to ensure compatibility with the communication protocol of the target ECU; during the node mapping process, the system performs strict compatibility checks to ensure that each service request can be correctly mapped to the UDS standard to reduce errors caused by communication protocol mismatch; after the mapping is completed, the system generates a continuous UDS data stream as the target data stream, which contains all service requests arranged in a user-defined order, wherein each service request in the data stream contains the correct parameters and control information to ensure that it can be correctly understood and executed in actual communication.
[0076] In some embodiments, a node mapping list (UDS_list) and a dictionary service mapping table are created, wherein the node mapping list is used to store service requests after mapping, and the dictionary service mapping table is used to store service identifiers that have been mapped; each upgraded service node is traversed to determine as a target node respectively, so as to construct a UDS request (SID, Params) according to the information carried by the target node, and the UDS request is stored in the node mapping list; wait for the traversal to be completed, and construct a target data stream according to each service request in the node mapping list.
[0077] In some embodiments, a compatibility check is performed on the service identifier according to the target communication protocol to obtain a compatibility check result, including: loading a predefined list that contains all standard, possible extensions, and vendor-specific service identifiers (SIDs) in detail. This list is compiled in accordance with the ISO-14229 standard and other relevant official or vendor documents, and is intended to cover all legal SIDs and their associated information to ensure comprehensiveness and accuracy; confirming whether the received SID meets the basic format requirements, that is, it is a valid single-byte value, usually in the range of 0x01 to 0x7F, and does not belong to any reserved or undefined interval specified in the UDS (Unified Diagnostic Service) protocol; comparing the received SID with the service IDs in the predefined list one by one. If there is a matching item in the list, the SID is considered valid and its corresponding diagnostic service function is confirmed. If no match is found, continue to perform subsequent verification steps, or directly mark the SID as invalid; for those services that support sub-functions, it is also necessary to verify whether the provided sub-function ID is within the valid range allowed by the corresponding service to ensure the legality and applicability of the sub-function; according to the diagnostic service requirements corresponding to the SID, check whether the status of the current diagnostic session (such as default session, programming session, etc.) allows the execution of the service. At the same time, verify whether the system has reached or exceeded the minimum security access level required to execute the service to ensure the safety and compliance of the operation; considering the specific information of the target ECU (electronic control unit), such as model, software version, manufacturer, etc., use the ECU's characteristic file or database to further verify whether the SID is applicable to the specific ECU. This process ensures the compatibility of the SID and the pertinence of the target ECU, thereby avoiding unnecessary errors or operational risks.
[0078] In some embodiments, the service node carries a parameter identifier (params); based on the parameter identifier, the detailed service parameters of the corresponding service are obtained from a database or a configuration file.
[0079] In some embodiments, before performing a mapping condition evaluation, the first task is to ensure that all variables or state information involved in the condition judgment are ready, which usually involves extracting necessary data from the current context, including but not limited to the service ID parsed from the service request, checking and confirming the current diagnostic session type, and verifying whether any necessary security authentication has been passed, etc.; clarifying the content of the mapping conditions is a crucial step, and these conditions should be closely related to specific business logic or system status requirements. For example, the mapping conditions may include checking whether the service ID is within a certain allowed range, evaluating whether the current session type is suitable for executing the service, or confirming whether all security requirements required for executing the service have been met, etc.; based on these clear mapping conditions, the system will then pass the necessary parameters to the evaluation logic to determine whether the current situation meets the conditions for adding the data packet to the node mapping list. This process ensures that the data packet will be correctly added to the mapping list only when the conditions are fully met, thereby maintaining the accuracy of data processing and the effectiveness of the process; once the condition evaluation result is satisfied, the system will perform the corresponding operation, that is, securely add the data packet to the node mapping list for subsequent processing or transmission. This process ensures the orderly flow and accurate mapping of data in the system, providing a solid foundation for the stable operation of the entire system.
[0080] In some embodiments, the data packets in the node mapping list are adapted according to the communication protocol and configuration information of the ECU, wherein the communication protocol includes CAN, DOIP, etc., and the configuration information includes baud rate, transmission type, etc.
[0081] In some embodiments, during the mapping process, if an invalid service identifier or service parameter is encountered, an error is recorded, a default value is provided, or processing is interrupted; for services that do not meet the conditions, relevant information is recorded to convert the node mapping list into a continuous UDS data stream to ensure the order and integrity of the data packet.
[0082] Combination Figure 4 As shown, the embodiment of the present disclosure provides a method for constructing a target data stream, including:
[0083] Step S401, traverse each upgrade service node;
[0084] Among them, the upgrade service node carries the service identifier, parameter identifier, mapping condition and node serial number;
[0085] Step S402, performing compatibility check on the service identifier in the upgrade service node;
[0086] Step S403: If the compatibility check result includes that the compatibility is qualified, construct a service request according to the service identifier and the service parameters;
[0087] Step S404, determine whether the mapping condition is met, if yes, jump to step S405, if no, jump to step S410;
[0088] Step S405, storing the service request in a preset node mapping list according to the node sequence number;
[0089] Step S406, adapting the service request in the node mapping list according to the communication protocol and configuration information of the ECU;
[0090] Step S407, processing the mapping anomaly existing in the service request in the node mapping list;
[0091] Step S408, constructing a target data stream according to each service request in the node mapping list;
[0092] Step S409: verify the target data stream.
[0093] Step S410, record mapping exception information and jump to step S407.
[0094] Optionally, the method also includes: obtaining a result prediction model, wherein the result prediction model is obtained by model training using upgrade condition samples with execution result labels; in response to executing a target data flow, obtaining current environmental parameters of the target data flow during execution, and extracting data flow parameters from the target data flow; inputting the current environmental parameters and data flow parameters into the result prediction model as current upgrade conditions to obtain a prediction result corresponding to the target data flow, wherein the prediction result includes an error probability and / or an error type.
[0095] In some embodiments, based on historical error logs and success cases, a neural network is used to build a result prediction model, which is used to identify errors that may occur during the upgrade process; when training the result prediction model, the input includes relevant parameters and environmental variables in the upgrade process, and the output is the probability of an error occurring or the specific error type.
[0096] In some embodiments, in order to optimize the ECU upgrade process and reduce the occurrence of errors, the following systematic data processing and model building strategies are adopted: First, historical data is integrated and detailed logs from past upgrade operations are widely collected. These logs include both successful cases and failed cases, with rich data dimensions, involving vehicle models, ECU models, upgrade task types, specific service nodes, parameter configurations, execution time, environmental variables, error codes, and error descriptions. Such a data set provides a solid foundation for subsequent analysis; the collected data is carefully cleaned and invalid or incomplete records are removed to ensure the accuracy and completeness of the data. At the same time, for error cases, we carefully annotate and clarify the error type and cause. This step is crucial to improving data quality; based on the cleaned high-quality data, features are extracted that help predict errors that may occur during the upgrade process. These features include but are not limited to the specific execution order of service nodes, key parameter values, ECU response time, and specific combinations of vehicle models and ECU models. These features are selected based on their contribution to error prediction, aiming to improve the model The prediction accuracy is high. Considering the temporal dependency between service nodes during the ECU upgrade process, the LSTM network is selected as the result prediction model. The LSTM network is particularly good at processing long-term dependencies in sequence data and is very suitable for applications in this scenario. We divide the data set into training set, validation set and test set to ensure that the model can also show good generalization ability on unseen data. In the model training stage, the training set data is used to continuously adjust the model parameters through algorithms such as back propagation to minimize the prediction error. At the same time, the validation set is used to select and tune the model to avoid overfitting of the model. This process ensures that the model can accurately capture the patterns in the data and has the ability to effectively predict new data. In the actual execution of the ECU upgrade, the parameters and environmental information of the current upgrade task are collected in real time and input into the trained result prediction model. The model will output the probability of error occurrence or the prediction of a specific error type. When the predicted error probability exceeds the preset threshold, an early warning is immediately issued to the user so that the user can take timely measures to avoid potential problems. The implementation of this process significantly improves the safety and reliability of the ECU upgrade operation.
[0097] Optionally, the target controller is upgraded through the target data stream, including: establishing a diagnostic session between the server and the target controller; executing the service request in the target data stream through the diagnostic session to upgrade the target controller; monitoring the response information fed back by the target controller, and generating a request result corresponding to the service request; if the request result corresponding to the service request includes an execution error, executing a preset recovery strategy; if the request results corresponding to each service request include execution completion, closing the diagnostic session and generating an execution result corresponding to the target data stream.
[0098] In some embodiments, the server communicates with the ECU through a diagnostic interface and executes service requests in a user-defined order; during the upgrade execution process, the communication status is monitored in real time, and the response of the ECU (for example, confirmation, denial or other feedback) is processed to ensure the continuity and correctness of the service; if an error occurs during the upgrade process, the error handling mechanism is used to retry, skip or interrupt the process to ensure the stability and reliability of the upgrade process.
[0099] In some embodiments, the target controller is upgraded through the target data stream, including: establishing a stable diagnostic connection with the ECU according to the specific communication protocol and baud rate of the ECU, which is the basis for data exchange; after the connection is established, performing the necessary identity authentication process to ensure the security of communication, then starting the session and selecting the appropriate session type (such as default session, extended session, secure access session, etc.) to adapt to different operation requirements; carefully extracting each service request from the target data stream and sending it one by one in a pre-set order. Each service request contains a clear service identifier (SID), necessary service parameters, and possible control information. This information is accurately encapsulated into a data packet that meets the requirements of the ECU communication protocol; continuously monitoring the response of the ECU, which may include confirmation, negative response, request confirmation or error report, etc. For each response received, real-time parsing is performed to verify the correctness and integrity of the data. This step is very important to ensure the smoothness and Accuracy is critical; if the UDS data stream contains conditional logic, the next operation will be dynamically adjusted according to the actual feedback from the ECU. If a condition is not met, the system will intelligently skip or modify the relevant service request to adapt to the current actual situation, ensuring the flexibility and adaptability of the flashing process; during the entire flashing process, the execution of each step is recorded in detail, including successful services, failed services, and currently executing services, etc. At the same time, real-time information on the flashing progress is provided to the user so that they can understand the current status at any time; after all scheduled service requests are successfully executed, the communication connection with the ECU is closed and all occupied resources are released. This step ensures the effective use of system resources and the smooth progress of subsequent operations; finally, detailed flashing logs and reports are generated. These documents record in detail every step of the entire operation process, the parameters used, the results of the execution, and any possible errors or abnormal information. They provide valuable basis for future data analysis, troubleshooting and auditing.
[0100] In some embodiments, when the ECU is upgraded, the following errors may occur: communication errors (involving problems on the communication link such as network interruption, timeout, packet loss or corruption, which may cause data transmission failure or delay), protocol errors (referring to responses that do not comply with the Unified Diagnostic Service (UDS) standard, such as incorrect service ID, invalid parameters or illegal control information, which may originate from protocol implementation problems of the ECU or the sender), ECU errors (including access permission errors, data inconsistency or ECU internal errors, which are usually related to the hardware or software status of the ECU) and application errors (covering problems within the system, such as memory overflow, program crash, etc., which may affect the stability and reliability of the flashing process).
[0101] In some embodiments, the following response measures are taken for errors during ECU upgrades: retry mechanism (for temporary errors, such as timeout or data loss, the system implements a preset number of retry operations to try to restore communication or resend data packets, thereby increasing the possibility of successful operations), rollback operation (once an error that may lead to unacceptable flashing results is found, such as an ECU internal error caused by data inconsistency or illegal control information, the system immediately performs a rollback operation to restore the state to the last successful execution node to ensure system stability and data consistency) and pause and resume (for complex errors that require manual intervention, such as internal system crashes or communication problems that cannot be automatically resolved, the system pauses the flashing process and notifies the operator to intervene. After the problem is resolved, the system can continue to execute the remaining flashing tasks).
[0102] In some embodiments, in order to enhance the fault tolerance capability during ECU upgrades, redundant communication paths (using backup communication channels, such as additional CAN channels or network interfaces, to establish redundant communication paths to improve the reliability and stability of communications and reduce flashing interruptions caused by failures of a single communication link) and backup data storage (saving the original data of the ECU before flashing as a backup. In this way, when the flashing fails or needs to be restored to the original state, the data can be restored quickly and accurately to ensure the recoverability of the system and the security of the data) are designed.
[0103] Combination Figure 5 As shown, the embodiment of the present disclosure provides a method for upgrading a target controller, including:
[0104] Step S501, establishing a diagnostic session between the server and the target controller;
[0105] Step S502, executing the service requests in the target data stream in sequence through the diagnostic session to upgrade the target controller;
[0106] Step S503, determine whether the service request is executed successfully, if yes, jump to step S504, if no, jump to step S508;
[0107] Step S504, sending a data packet corresponding to the service request to the target controller;
[0108] Step S505, if the request condition in the data packet is met, responding to the service request according to the data packet corresponding to the service request;
[0109] Step S506, determine whether all service requests have been executed, if so, jump to step S507, if not, jump to step S502;
[0110] Step S507, closing the diagnostic session and generating an execution result corresponding to the target data flow.
[0111] Step S508: executing response measures corresponding to the request error.
[0112] Optionally, a preset recovery strategy is executed, including at least one of the following: clearing resources on the server side; exiting the execution step of the target data stream; generating an error message and prompting the user according to the error message; if the cause of the error is a transient error, re-executing the target data stream according to a preset number of retries; if the cause of the error is a configuration error, performing data configuration on the target data stream, and re-executing the target data stream after the data configuration; replacing the current request in the target data stream with an alternative request, and re-executing the target data stream, wherein the current request is at least a part of the service request in the target data stream, and there is a preset replacement relationship between the current request and the alternative request.
[0113] In some embodiments, for transient errors such as temporary communication interruptions, the system will automatically perform a retry operation to reduce upgrade interruptions caused by short-term failures. To avoid infinite loops, we set an upper limit on the number of retries. Once the upper limit is reached and it is still unsuccessful, it will enter other error handling processes; if the error is caused by improper parameter configuration, such as incorrect data packet size setting or unreasonable timeout setting, the system or operator can adjust the corresponding parameters according to the error prompt and try to perform the upgrade operation again. This step is intended to solve the upgrade failure caused by configuration errors through simple parameter adjustment; if the currently executed service request cannot be completed for some reason, the system will try to perform a simplified or alternative operation based on the preset replacement relationship. These alternative requests are intended to achieve partial The upgrade process is carried out in a safe and consistent manner, and the upgrade process is carried out in a safe and consistent manner. ...
[0114] In this way, through this series of perfect error handling mechanisms, the smooth progress of the ECU upgrade process is ensured, while the stability and reliability of the system are improved.
[0115] Combination Figure 6 As shown, the embodiment of the present disclosure provides a vehicle controller upgrade method, comprising:
[0116] Step S601, obtaining the current target feature corresponding to the target controller;
[0117] Step S602, predicting according to the current target features through the process recommendation model to obtain the current upgrade process composed of upgrade service nodes;
[0118] Step S603, mapping each upgrade service node to a service request to generate a target data stream composed of service requests;
[0119] Step S604, predicting the target data flow through the result prediction model, and adjusting the target data flow according to the prediction result;
[0120] Step S605, upgrading the target controller through the target data stream;
[0121] Step S606, determine whether the target controller is upgraded successfully, if yes, jump to step S607, if no, jump to step S608;
[0122] Step S607, generating execution results.
[0123] Step S608, determine whether the upgrade error can be repaired, if so, jump to step S609, if not, jump to step S607;
[0124] Step S609, repair the error and jump to step S605.
[0125] Combination Figure 7 As shown, an embodiment of the present disclosure provides a vehicle controller upgrade system, which is applied to a server side, and the server side is connected to a vehicle terminal. The vehicle controller upgrade system includes a setting module 701, an acquisition module 702, a recommendation module 703 and an upgrade module 704.
[0126] The setting module 701 is used to set a process recommendation model, and the process recommendation model is obtained by model training based on multiple target feature samples with upgrade process labels.
[0127] The acquisition module 702 is used to acquire the current target feature corresponding to the target controller. The target controller is set in the vehicle terminal, and the feature sample includes controller information and vehicle information.
[0128] The recommendation module 703 is used to make predictions based on the current target features through the process recommendation model to obtain the current upgrade process composed of upgrade service nodes.
[0129] The upgrade module 704 is used to map each upgrade service node to a service request to generate a target data stream composed of the service requests, and upgrade the target controller through the target data stream.
[0130] An embodiment of the present disclosure further provides an electronic device, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the above method.
[0131] Figure 8 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0132] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part 808 to the random access memory (RAM), such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through the bus 804. The input / output (I / O) interface is also connected to the bus 804.
[0133] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0134] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 809, and / or installed from a removable medium 811. When the computer program is executed by the central processing unit 801, various functions defined in the system of the present application are executed.
[0135] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and sub-samples of some embodiments may be included in or replace parts and sub-samples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated sub-samples, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0136] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0137] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0138] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A vehicle controller upgrade method, characterized in that: Applied to a server side, the server side is connected to a vehicle terminal, and the method includes: A process recommendation model is pre-set, and the process recommendation model is obtained by model training based on multiple target feature samples with upgrade process labels; Acquire a current target feature corresponding to a target controller, wherein the target controller is arranged at the vehicle terminal, and the feature sample includes controller information and vehicle information; Predicting according to the current target feature by the process recommendation model, obtaining a current upgrade process consisting of upgrade service nodes; Mapping each of the upgrade service nodes to a service request respectively to generate a target data stream consisting of the service requests, and upgrading the target controller through the target data stream; The target data stream is obtained in the following manner, the target communication protocol is obtained, and each of the upgraded service nodes is determined as a target node, wherein the server side and the target controller are upgraded through the target communication protocol; in response to the target node, the node information corresponding to the target node is obtained, wherein the node information includes a node serial number, a service identifier and a service parameter; a compatibility check is performed on the service identifier according to the target communication protocol to obtain a compatibility check result; if the compatibility check result includes qualified compatibility, a service request is constructed according to the service identifier and the service parameter; if the node information corresponding to the target node also includes a mapping condition, the mapping condition is evaluated; if the mapping condition is met, the service request is stored in a preset node mapping list according to the node serial number; if the node information corresponding to the target node does not include a mapping condition, the service request is stored in a preset node mapping list according to the node serial number; and a target data stream is constructed according to each service request in the node mapping list.
2. The method according to claim 1, characterized in that The process recommendation model is trained in the following way: Acquire multiple target feature samples and upgrade process labels corresponding to the target feature samples, wherein the upgrade process labels include historical upgrade processes and upgrade time sequences, and the upgrade time sequences are composed of upgrade times corresponding to the historical upgrade processes; Constructing a time-recurrent network model according to the upgrade process label and the target feature sample; The time cycle network model is trained according to each target feature sample with an upgrade process label, and the trained time cycle network model is used as a process recommendation model.
3. The method according to claim 1, characterized in that After obtaining the current upgrade process by predicting according to the current target feature through the process recommendation model, the method further includes: Get the process editing page; The current upgrade process is displayed to the user through the process editing page, and the target page event corresponding to any upgrade service node of the user is monitored, wherein the target page event is composed of one or more of a click event, a drag event and an edit event; A user editing instruction is generated according to the monitored target page event, and the current upgrade process is edited through the user editing instruction.
4. The method according to claim 3, characterized in that Editing the current upgrade process through the user editing instruction includes: If the upgrade service node includes a core node, the node function corresponding to any core node is edited through the user editing instruction, wherein the node function includes one or more of reading data blocks, writing data blocks, identity authentication, authority management, managing communication sessions, requesting uploads, and requesting downloads; If the upgrade service node includes a condition judgment node, the condition information corresponding to any condition judgment node is edited through the user editing instruction, wherein the condition information includes an upgrade service node corresponding to a preset condition, and the condition judgment node is used to execute the upgrade service node corresponding to the preset condition when the preset condition is met; The loop execution information corresponding to at least a portion of the upgrade service nodes is edited through the user editing instruction.
5. The method according to claim 1, characterized in that Upgrading the target controller through the target data stream includes: Establishing a diagnostic session between the server and the target controller; executing the service request in the target data stream through the diagnostic session to upgrade the target controller; Monitor the response information fed back by the target controller, and generate a request result corresponding to the service request; If the request result corresponding to the service request includes an execution error, executing a preset recovery strategy; If the request results corresponding to the service requests all include execution completion, the diagnostic session is closed, and the execution results corresponding to the target data flow are generated.
6. The method according to claim 5, characterized in that Execute a preset recovery strategy, including at least one of the following: Cleaning up resources on the server side; Exit the execution step of the target data flow; Generate an error message and prompt the user according to the error message; If the error cause is a transient error, re-execute the target data flow according to a preset number of retries; If the cause of the error is a configuration error, data configuration is performed on the target data stream, and the target data stream after data configuration is re-executed; The current request in the target data stream is replaced with an alternative request, and the target data stream is re-executed, wherein the current request is at least a portion of the service request in the target data stream, and there is a preset replacement relationship between the current request and the alternative request.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Obtaining a result prediction model, wherein the result prediction model is obtained by training the upgrade condition samples with execution result labels; In response to executing the target data flow, obtaining current environment parameters of the target data flow when executing, and extracting data flow parameters from the target data flow; The current environment parameters and the data flow parameters are input into the result prediction model as current upgrade conditions to obtain a prediction result corresponding to the target data flow, wherein the prediction result includes an error occurrence probability and / or an error type.
8. A vehicle controller upgrade system, characterized in that: Applied to a server side, the server side is connected to a vehicle terminal, and the vehicle controller upgrade system includes: A setting module, used to set a process recommendation model, wherein the process recommendation model is obtained by model training based on multiple target feature samples with upgrade process labels; An acquisition module, used for acquiring current target features corresponding to a target controller, wherein the target controller is arranged at the vehicle terminal, and the feature sample includes controller information and vehicle information; A recommendation module, configured to predict according to the current target feature through the process recommendation model to obtain a current upgrade process consisting of upgrade service nodes; An upgrade module, used for mapping each of the upgrade service nodes into a service request respectively, so as to generate a target data stream consisting of the service requests, and upgrading the target controller through the target data stream; The upgrade module obtains the target data stream, obtains the target communication protocol, and determines each of the upgrade service nodes as the target node in the following manner, wherein the server side and the target controller are upgraded through the target communication protocol; in response to the target node, obtains the node information corresponding to the target node, wherein the node information includes a node serial number, a service identifier and a service parameter; performs a compatibility check on the service identifier according to the target communication protocol to obtain a compatibility check result; if the compatibility check result includes qualified compatibility, constructs a service request according to the service identifier and the service parameter; if the node information corresponding to the target node also includes a mapping condition, the mapping condition is evaluated; if the mapping condition is met, the service request is stored in a preset node mapping list according to the node serial number; if the node information corresponding to the target node does not include a mapping condition, the service request is stored in a preset node mapping list according to the node serial number; and constructs a target data stream according to each service request in the node mapping list.
9. An electronic device, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Internet of vehicles node forwarding utility learning method based on double-update strategy
CN113726664A
Vehicle OTA upgrading system and vehicle OTA upgrading method
CN115175171A
Vehicle remote automatic upgrading method and device, server, equipment and medium
CN116048587A
Software upgrading method and device, server and storage medium
CN116627464A
Automobile remote upgrading method and device
CN117234560A
