A refreshing method, system, medium and electronic device for a vehicle controller

By installing multiple units in the diagnostic instrument to refresh the script dataset and using the flexible combination of preset service indication files, the problem of low software update efficiency of vehicle controllers is solved, and a more efficient and convenient refresh process is achieved.

CN116841582BActive Publication Date: 2025-04-18CHINA FAW CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310732290.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2025-04-18
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

In the prior art, the software update efficiency of vehicle controllers is low, and it is necessary to write dedicated flash scripts for each controller, which is time-consuming and labor-intensive.

Method used

Provides a refresh method of the vehicle computer controller, by installing a script data set in the diagnostic instrument, including multiple unit refresh scripts, each unit refresh script completes a minimum refresh function. According to the refresh characteristics of the controller, the call information of the unit refresh script is collected as refresh service information in the preset service indication file, and the diagnostic device refreshes the controller by sequentially traversing the preset service indication file.

Benefits of technology

Through the flexible combination of refresh service information, different refresh tasks can be implemented for different controllers, improving the flexibility, adaptability and convenience of refresh, and reducing the time and cost of writing refresh scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116841582B_ABST
    Figure CN116841582B_ABST
Patent Text Reader

Abstract

The present application provides a refresh method, system, medium and electronic device for a vehicle controller. The present application installs a script data set in a diagnostic instrument, and the script data set includes multiple unit refresh scripts. Each unit refresh script can complete a minimum refresh function. Before each refresh of the controller, according to the refresh characteristics of the controller, the call information of multiple unit refresh scripts related to the controller in the script data set is collected as refresh service information in a preset service indication file. The arrangement order of the refresh service information in each line of the preset service indication file is also the order of the refresh steps. The diagnostic instrument refreshes the controller in sequence by sequentially traversing the refresh service information in each line of the preset service indication file. The flexibility, adaptability and convenience of the refresh are improved by configuring the preset service indication file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a refreshing method, system, medium and electronic device for a vehicle controller. Background Art

[0002] When a software problem occurs in the vehicle controller, it needs to be resolved by updating the software.

[0003] Diagnostic service (full name Unified Diagnostic Services, referred to as UDS) refers to the diagnostic instrument flashing the upgrade software to the controller through the flashing script to complete the upgrade task.

[0004] However, since the flashing process of each controller is different, the flashing script of the diagnostic instrument for each controller is also different. Usually, it is necessary to test the flashing process of each controller before writing the flashing script for each controller, and then develop the corresponding flashing script. This way of updating software is very inefficient.

[0005] Therefore, the present application provides a refresh method for a vehicle controller to solve the above technical problems. Summary of the invention

[0006] The purpose of this application is to provide a method, system, medium and electronic device for refreshing a vehicle controller, which can solve at least one of the above-mentioned technical problems. The specific solution is as follows:

[0007] According to a specific implementation of the present application, in a first aspect, the present application provides a method for refreshing a vehicle controller, comprising:

[0008] Acquire a preset service instruction file for refreshing the controller, wherein each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information, and at least one line of the refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is stored in the script data set;

[0009] Traverse each line in the preset service indication file in turn to obtain the refresh service information of the corresponding line;

[0010] The controller is refreshed based on the refresh service information of each row.

[0011] Optionally, each line in the preset service indication file includes multiple indication items, wherein the multiple indication items include at least a service item, and the service item includes task information of a refresh service.

[0012] Optionally, the multiple indication items also include addressing mode information; the addressing mode information includes functional addressing information and physical addressing information.

[0013] Optionally, the multiple indication items also include a communication duration for transmitting a group of continuous frames, and the communication duration matches the task information.

[0014] Optionally, the multiple indication items also include the unit refresh script.

[0015] Optionally, the method further includes:

[0016] Before sequentially traversing each line in the preset service instruction file, when it is detected that the controller is in the off state, the power-on script corresponding to the controller in the script data set is called to enable the programmable power supply to power the controller.

[0017] Optionally, the method further includes:

[0018] During the refresh idle time, the session state with the controller is maintained based on preset heartbeat information.

[0019] According to a specific implementation of the present application, in a second aspect, the present application provides a refresh system for a vehicle controller, including: a diagnostic instrument, a CAN transceiver and a controller;

[0020] The diagnostic instrument is communicatively connected to the controller via the CAN transceiver, and is configured to: obtain a preset service instruction file for refreshing the controller, wherein each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information, and at least one line of the refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is stored in a script data center; traverse each line in the preset service instruction file in turn to obtain the refresh service information of the corresponding line; and refresh the controller based on the refresh service information of each line.

[0021] Optionally, each line in the preset service indication file includes multiple indication items, wherein the multiple indication items include at least a service item, and the service item includes task information of a refresh service.

[0022] Optionally, the multiple indication items also include addressing mode information; the addressing mode information includes functional addressing information and physical addressing information.

[0023] Optionally, the multiple indication items also include a communication duration for transmitting a group of continuous frames, and the communication duration matches the task information.

[0024] Optionally, the multiple indication items also include the unit refresh script.

[0025] Optionally, the system further comprises a programmable power supply; the programmable power supply is connected to the controller for power supply;

[0026] The diagnostic instrument is communicatively connected to the programmable power supply, and is further configured to: before sequentially traversing each line in the preset service instruction file, when it is detected that the controller is in a closed state, call the power-on script corresponding to the controller in the script data set to enable the programmable power supply to power the controller.

[0027] Optionally, the diagnostic instrument is further configured to maintain a session state with the controller based on preset heartbeat information during idle time of refresh.

[0028] According to the specific implementation of the present application, in a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method for refreshing the vehicle controller as described in any of the above items is implemented.

[0029] According to the specific implementation of the present application, in a fourth aspect, the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the refresh method of the vehicle controller as described in any of the above items.

[0030] Compared with the prior art, the above solution of the embodiment of the present application has at least the following beneficial effects:

[0031] The present application provides a refresh method, system, medium and electronic device for a vehicle controller. The present application installs a script data set in a diagnostic instrument, and the script data set includes multiple unit refresh scripts. Each unit refresh script can complete a minimum refresh function. Before each refresh of the controller, according to the refresh characteristics of the controller, the call information of multiple unit refresh scripts related to the controller in the script data set is collected as refresh service information in a preset service instruction file. The arrangement order of the refresh service information in each line of the preset service instruction file is also the order of the refresh steps. The diagnostic instrument refreshes the controller in sequence by sequentially traversing the refresh service information in each line of the preset service instruction file. Through the flexible combination of refresh service information, different refresh tasks can be implemented for different controllers while the unit refresh script in the script data set remains unchanged. The flexibility, adaptability and convenience of the refresh are improved by configuring the preset service instruction file. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1A flow chart of a method for refreshing a vehicle controller according to an embodiment of the present application is shown;

[0033] Figure 2 A schematic diagram of a refresh system for a vehicle controller according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0035] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0036] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0037] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0038] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0039] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity 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 commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.

[0040] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.

[0041] The optional embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0042] The embodiment provided in the present application, that is, an embodiment of a method for refreshing a vehicle controller, is applied to a diagnostic instrument on a vehicle controller.

[0043] Combine the following Figure 1 The embodiments of the present application are described in detail.

[0044] Step S101, obtaining a preset service instruction file for refreshing the controller.

[0045] Among them, each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information. At least one line of refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is saved in the script data set.

[0046] A vehicle includes multiple controllers, and each controller performs different tasks in the vehicle. However, the flashing processes of each controller are not the same, so the flashing scripts of the diagnostic instrument for each controller are also different. In the prior art, it is necessary to write a dedicated flashing script for each controller, which is very time-consuming and labor-intensive. To this end, in an embodiment of the present application, a script data set is installed in the diagnostic instrument, and a plurality of unit refresh scripts are included in the script data set. Each unit refresh script can complete a minimum refresh function. The embodiment of the present application decomposes the original refresh scripts of each controller into a plurality of universal unit refresh scripts. Before refreshing the controller each time, according to the refresh characteristics of the controller, the call information of the plurality of unit refresh scripts related to the controller in the script data set is collected as refresh service information in the preset service instruction file, and the diagnostic instrument calls the corresponding unit refresh script through the refresh service information set in the preset service instruction file to refresh the controller.

[0047] For example, the preset service instruction file is a configuration file, which includes multiple lines, each line is configured with a refresh service information, when each line of refresh service information is read sequentially, that is, the steps of refreshing the service information are executed sequentially; the refresh service information is edited according to the prescribed format; when used, the refresh service information is decomposed according to the prescribed format to obtain the necessary execution information.

[0048] In some specific embodiments, each line in the preset service indication file includes a plurality of indication items, wherein the plurality of indication items include at least a service item, and the service item includes task information of a refresh service.

[0049] For example, the preset service indication file is a spreadsheet file, and the table in the spreadsheet file is used to save the contents of the indication items, wherein one column of the indication items is the service items, and the task information is saved in the table of the service items; the task information includes: long frame data information, short frame data information, "36" and "WT xxxx ms"; the long frame data information means transmitting the long frame data information to the controller; the short frame data information means transmitting the short frame data information to the controller; "36" represents refreshing the controller through the unit refresh script, and "WT 1000ms" means maintaining the session status with the controller during the idle time within 1000ms.

[0050] This specific embodiment can implement different refresh tasks for different controllers through the indication items of the service items and the flexible combination of the service items.

[0051] In some specific embodiments, the multiple indication items also include addressing mode information; the addressing mode information includes functional addressing information and physical addressing information.

[0052] The function addressing information indicates that all controllers in the vehicle are refreshed this time.

[0053] The physical addressing information indicates that a refresh is performed on a specific controller in the vehicle.

[0054] For example, a table of a column of indicator items in a spreadsheet file is used to record addressing mode information, where "F" represents functional addressing information; and "P" represents physical addressing information.

[0055] This specific embodiment enables the refresh work to flexibly adapt to various refresh requirements through the indication items of the addressing mode information.

[0056] In some specific embodiments, the multiple indication items also include a communication duration for transmitting a group of continuous frames, and the communication duration matches the task information.

[0057] Usually, after the diagnostic instrument shakes hands with the controller, the controller will feedback the communication duration of a group of continuous frames to the diagnostic instrument, and the diagnostic instrument will transmit a group of continuous frames according to the feedback communication duration. However, the communication duration fed back by some special processors is inaccurate, or the communication rate of the processor does not match the communication rate of the diagnostic instrument, resulting in loss of communication data. In order to ensure the security and reliability of data communication, this specific embodiment provides an indication of the communication duration.

[0058] In some specific embodiments, the plurality of indication items also include the unit refresh script.

[0059] For example, the service item in the i-th line in the preset service indication file is "36", the communication duration is 10ms, and the unit refresh script is "Script A" in the script data set. The refresh service information indicates that "Script A" in the script data set will be transmitted to the controller within 10ms.

[0060] Step S102, traverse each line in the preset service indication file in sequence, and obtain refresh service information of the corresponding line.

[0061] Step S103: Refresh the controller based on the refresh service information of each row.

[0062] In an embodiment of the present application, a script data set is installed in the diagnostic instrument, and the script data set includes multiple unit refresh scripts. Each unit refresh script can complete a minimum refresh function. Before refreshing the controller each time, according to the refresh characteristics of the controller, the call information of multiple unit refresh scripts related to the controller in the script data set is collected as refresh service information in a preset service instruction file. The arrangement order of the refresh service information in each line of the preset service instruction file is also the order of the refresh steps. The diagnostic instrument refreshes the controller in sequence by sequentially traversing the refresh service information in each line of the preset service instruction file. Through the flexible combination of refresh service information, different refresh tasks can be implemented for different controllers while the unit refresh script in the script data set remains unchanged. The flexibility, adaptability and convenience of the refresh are improved through the configuration of the preset service instruction file.

[0063] In some specific embodiments, the method further comprises the following steps:

[0064] Step S100, before sequentially traversing each line in the preset service instruction file, when it is detected that the controller is in a turned-off state, calling the power-on script corresponding to the controller in the script data set to enable the programmable power supply to power the controller.

[0065] This specific embodiment manages the program-controlled power supply before refreshing the controller to ensure that the refreshed controller can enter the power-on state, so that the controller can always communicate with the diagnostic instrument. No matter what state the vehicle is in, the controller can always be refreshed.

[0066] In some specific embodiments, the method further comprises the following steps:

[0067] During the refresh idle time, the session state with the controller is maintained based on preset heartbeat information.

[0068] For example, continuing the above example, the preset service instruction file is a spreadsheet file, and the record content of the spreadsheet file is:

[0069]

[0070] First, download the edited spreadsheet file to the diagnostic instrument;

[0071] Second, the power connection method of each controller in the vehicle is different. Before starting to traverse the preset service instruction file, if it is detected that the refreshed controller is in a closed state, the power connection script corresponding to the controller in the script data set is called to enable the program-controlled power supply to power the controller;

[0072] Third, read multiple indication items in the first row of the spreadsheet file, where the addressing mode information is "F", the service item is "Data1", and the communication duration is blank, indicating that the communication duration fed back by the controller is used by default to send "Data1" data to all controllers in the vehicle;

[0073] Fourth, read multiple indication items in the second row of the spreadsheet file, where the addressing mode information is "F", the service item is "Data2", and the communication duration is blank, indicating that the communication duration fed back by the controller is used by default to communicate and send "Data2" data to all controllers in the vehicle;

[0074] Fifth, read multiple indication items in the third row of the electronic spreadsheet file, among which only the service item "WT 1000ms" indicates that the session state with the controller is maintained through the preset heartbeat information "3E80" during the idle time within 1000ms;

[0075] Sixth, read multiple indication items in the fourth row of the spreadsheet file, where the addressing mode information is "P", the service item is "36", the communication duration is 10ms, and the unit refresh script is "script A", indicating that "script A" in the script data set is transmitted to the refreshed controller within 10ms to refresh the controller;

[0076] Seventh, read multiple indication items in the fifth row of the electronic spreadsheet file, where the addressing mode information is "P", the service item is "Data3", and the communication duration is 20ms, indicating that the "Data3" data is transmitted to the refreshed controller within 20ms;

[0077] ...until you reach the end of the spreadsheet file.

[0078] The present application also provides an apparatus embodiment that is consistent with the above-mentioned embodiment, which is used to implement the method steps described in the above-mentioned embodiment. The explanation based on the same name meaning is the same as that of the above-mentioned embodiment, and has the same technical effect as that of the above-mentioned embodiment, and will not be repeated here.

[0079] like Figure 2 As shown, the present application provides a refresh system for a vehicle controller, including: a diagnostic instrument, a CAN transceiver and a controller;

[0080] The diagnostic instrument is communicatively connected to the controller via the CAN transceiver, and is configured to: obtain a preset service instruction file for refreshing the controller, wherein each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information, and at least one line of the refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is stored in a script data center; traverse each line in the preset service instruction file in turn to obtain the refresh service information of the corresponding line; and refresh the controller based on the refresh service information of each line.

[0081] Optionally, each line in the preset service indication file includes multiple indication items, wherein the multiple indication items include at least a service item, and the service item includes task information of a refresh service.

[0082] Optionally, the multiple indication items also include addressing mode information; the addressing mode information includes functional addressing information and physical addressing information.

[0083] Optionally, the multiple indication items also include a communication duration for transmitting a group of continuous frames, and the communication duration matches the task information.

[0084] Optionally, the multiple indication items also include the unit refresh script.

[0085] Optionally, the system further comprises a programmable power supply; the programmable power supply is connected to the controller for power supply;

[0086] The diagnostic instrument is communicatively connected to the programmable power supply, and is further configured to: before sequentially traversing each line in the preset service instruction file, when it is detected that the controller is in a closed state, call the power-on script corresponding to the controller in the script data set to enable the programmable power supply to power the controller.

[0087] Optionally, the diagnostic instrument is further configured to maintain a session state with the controller based on preset heartbeat information during idle time of refresh.

[0088] In an embodiment of the present application, a script data set is installed in the diagnostic instrument, and the script data set includes multiple unit refresh scripts. Each unit refresh script can complete a minimum refresh function. Before refreshing the controller each time, according to the refresh characteristics of the controller, the call information of multiple unit refresh scripts related to the controller in the script data set is collected as refresh service information in a preset service instruction file. The arrangement order of the refresh service information in each line of the preset service instruction file is also the order of the refresh steps. The diagnostic instrument refreshes the controller in sequence by sequentially traversing the refresh service information in each line of the preset service instruction file. Through the flexible combination of refresh service information, different refresh tasks can be implemented for different controllers while the unit refresh script in the script data set remains unchanged. The flexibility, adaptability and convenience of the refresh are improved through the configuration of the preset service instruction file.

[0089] This embodiment provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method steps described in the above embodiment.

[0090] An embodiment of the present application provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method steps described in the above embodiment.

[0091] Finally, it should be noted that 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 referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0092] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for refreshing a vehicle controller, characterized in that: include: Acquire a preset service instruction file for refreshing the controller, wherein each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information, and at least one line of refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is stored in a script data set; Traverse each line in the preset service indication file in turn to obtain the refresh service information of the corresponding line; Refreshing the controller based on the refresh service information of each row; Wherein, each line in the preset service indication file includes multiple indication items; The multiple indication items include addressing mode information and service items; the addressing mode information includes functional addressing information and physical addressing information; The function addressing information indicates refreshing of all controllers in the vehicle; The physical addressing information indicates refreshing of a specific controller in the vehicle; The service item includes task information of refreshing service; The task information includes: Transmitting long frame data information to the controller; transmitting the short frame data information to the controller; Refresh the controller using the unit refresh script; Maintain the session state with the controller during the preset idle time in milliseconds.

2. The method according to claim 1, characterized in that The multiple indication items also include a communication duration for transmitting a group of continuous frames, and the communication duration matches the task information.

3. The method according to claim 1, characterized in that The multiple indication items also include the unit refresh script.

4. The method according to claim 1, characterized in that: Before the controller is refreshed, the original refresh scripts of each controller are decomposed into multiple universal unit refresh scripts. According to the refresh characteristics of the controller, the call information of the unit refresh script related to the controller in the script data set is collected as the refresh service information set in the preset service indication file.

5. The method according to claim 1, characterized in that The method further comprises: Before sequentially traversing each line in the preset service instruction file, when it is detected that the controller is in the off state, the power-on script corresponding to the controller in the script data set is called to enable the programmable power supply to power the controller.

6. The method according to claim 1, characterized in that The method further comprises: During the refresh idle time, the session state with the controller is maintained based on preset heartbeat information.

7. A vehicle controller refresh system, characterized in that: include: Diagnostic instruments, CAN transceivers and controllers; The diagnostic instrument is connected to the controller through the CAN transceiver, and is configured to: obtain a preset service instruction file for refreshing the controller, wherein each line in the preset service instruction file includes a refresh service information, and the arrangement order of each line matches the execution step order of the refresh service information, and at least one line of the refresh service information includes instruction information for calling a unit refresh script, and the unit refresh script is stored in a script data set; traverse each line in the preset service instruction file in turn to obtain the refresh service information of the corresponding line; refresh the controller based on the refresh service information of each line; Wherein, each line in the preset service indication file includes multiple indication items; The multiple indication items include addressing mode information and service items; the addressing mode information includes functional addressing information and physical addressing information; The function addressing information indicates refreshing of all controllers in the vehicle; The physical addressing information indicates refreshing of a specific controller in the vehicle; The service item includes task information of refreshing service; The task information includes: Transmitting long frame data information to the controller; transmitting the short frame data information to the controller; Refresh the controller using the unit refresh script; Maintain the session state with the controller during the preset idle time in milliseconds.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for adaptively refreshing BIOS firmware of server

    CN110096292A

  • Design method and device for flashing environment

    CN114253578A