Search

CN-122001748-A - Log acquisition method and system for OTA upgrading

CN122001748ACN 122001748 ACN122001748 ACN 122001748ACN-122001748-A

Abstract

The invention discloses a log acquisition method and a system for OTA upgrading, wherein a cloud platform issues an upgrading task, a log acquisition point and a log acquisition item to a vehicle-mounted terminal, and configures a refreshing flow information acquisition switch, if the refreshing flow information acquisition switch is configured to be closed, the completion of the refreshing flow information acquisition is indicated, the vehicle-mounted terminal executes the refreshing flow according to the upgrading task, in the execution process, the log is generated based on the log acquisition point and the log acquisition item and is sent to the cloud platform, the cloud platform carries out visual display on the log, the log can be acquired automatically as required in the upgrading process, and after the log is acquired, the cloud platform carries out visual display on the log even if problems occur in the upgrading process, and as the different flows in the upgrading process acquire the log, the problem points can be intuitively known, so that the problem points in the upgrading process can be intuitively and accurately positioned.

Inventors

  • KE WEI
  • ZHANG FENG
  • YU JIANCHENG
  • WU XIAOQIAN

Assignees

  • 厦门雅迅智联科技股份有限公司

Dates

Publication Date
20260508
Application Date
20241106

Claims (10)

  1. 1. The log acquisition method for OTA upgrading is characterized by comprising the following steps: the cloud platform transmits an upgrade task, a log acquisition point and a log acquisition item to the vehicle-mounted terminal, and configures a refreshing flow information acquisition switch; If the refreshing flow information acquisition switch is configured to be closed, the vehicle-mounted terminal executes a refreshing flow according to the upgrading task, generates a log based on the log acquisition point and the log acquisition item in the execution process, and sends the log to the cloud platform; and the cloud platform performs visual display on the log.
  2. 2. The method for collecting logs of OTA upgrades according to claim 1, wherein before the cloud platform issues upgrade tasks, log collection points and log collection items to the vehicle-mounted terminal, the method further comprises: the cloud platform analyzes the program source code for OTA upgrading to obtain the flow name of the refreshing flow of the electric control unit and the acquisition point name under the refreshing flow; and the cloud platform generates the brushing flow information according to the flow name of the brushing flow and the collecting roll name under the brushing flow.
  3. 3. The method for collecting logs of OTA upgrades according to claim 1, wherein the cloud platform issues upgrade tasks, log collection points and log collection items to the vehicle-mounted terminal, and before configuring the flashing process information collection switch, the method further comprises: the cloud platform transmits an upgrading task with a brushing flow information acquisition instruction to the same type of vehicle-mounted terminals corresponding to the vehicle-mounted terminals; the vehicle-mounted terminals of the same type execute the refreshing flow according to the upgrading task, and acquire the flow names of the refreshing flows and the acquisition point names under the refreshing flows according to the execution sequence in the executing process; the vehicle-mounted terminals of the same type generate brushing flow information according to the flow names of the brushing flows and the collecting roll names of the brushing flows; the cloud platform issues a reporting instruction to the same type of vehicle-mounted terminal; the vehicle-mounted terminals of the same type send the brushing flow information to the cloud platform; and the cloud platform stores the brushing flow information.
  4. 4. The method for collecting log of OTA upgrade according to claim 2 or 3, wherein the cloud platform issues upgrade tasks, log collection points and log collection items to the vehicle-mounted terminal, and before configuring the flashing process information collection switch, the method further comprises: The cloud platform configures a log acquisition switch for each brushing flow according to the flow name in the brushing flow information; The cloud platform configures each log acquisition point under each brushing flow and parameter values required by each log acquisition point according to the acquisition roll names in the brushing flow information; And the cloud platform configures log acquisition items of the log acquisition points.
  5. 5. The method of claim 4, wherein generating a log based on the log collection point and the log collection item during execution comprises: And in the executing process of the vehicle-mounted terminal, judging whether a log acquisition switch of each writing process is on, if so, judging whether the current log acquisition conditions are met according to each log acquisition point under each writing process and the parameter values required by each log acquisition point, and if so, generating log content according to the log acquisition items of each log acquisition point and obtaining a log according to the log content.
  6. 6. The method of claim 1, wherein the sending the log to the cloud platform comprises: The vehicle-mounted terminal judges whether the size of the log content in the log is larger than a preset size, if yes, the log is sent to the cloud platform in a file mode, and if not, the log is sent to the cloud platform in a content mode.
  7. 7. The method for collecting logs of OTA upgrades according to claim 6, wherein the sending the logs to the cloud platform further comprises: the vehicle-mounted terminal obtains a unique code of the upgrading task corresponding to the log and a unique code of the log acquisition point; And the vehicle-mounted terminal sends the unique code of the upgrading task and the unique code of the log acquisition point to the cloud platform.
  8. 8. The method for collecting logs of OTA upgrades of claim 7, further comprising: if the log is in a content form, the cloud platform stores the unique codes of the log, the upgrading task and the unique codes of the log acquisition points into a database; If the log is in a file form, the cloud platform stores the log in a server in a file form, and stores a file path of the log, a unique code of the upgrading task and a unique code of the log acquisition point in a database.
  9. 9. The method of claim 8, wherein the visually displaying the log by the cloud platform comprises: The cloud platform loads the refreshing flow of the electric control unit corresponding to the upgrading task, the flow names of the refreshing flows and the log acquisition points under the refreshing flows by using a visualization engine; The cloud platform determines the unique code of the log acquisition point corresponding to the unique code of the upgrading task from the database according to the unique code of the upgrading task; The cloud platform is matched with each log acquisition point under each brushing flow according to the unique code of the log acquisition point, and the log corresponding to the unique code of the log acquisition point is displayed on the matched log acquisition point.
  10. 10. An OTA upgraded log collection system comprising a cloud platform and a vehicle-mounted terminal, wherein the cloud platform comprises a first memory, a first processor and a first computer program stored on the first memory and capable of running on the first processor, and the vehicle-mounted terminal comprises a second memory, a second processor and a second computer program stored on the second memory and capable of running on the second processor, and the method is characterized in that the cloud platform executes the steps in the OTA upgraded log collection method according to any one of claims 1-9 when the first processor executes the first computer program; the second processor implements the steps executed by the vehicle-mounted terminal in the log collection method for OTA upgrade according to any one of claims 1 to 9 when executing the second computer program.

Description

Log acquisition method and system for OTA upgrading Technical Field The invention relates to the technical field of log acquisition, in particular to a log acquisition method and system for OTA (over the air) upgrading. Background With The increasing popularity of Over-The-Air (OTA) technology, the OTA upgrading program of The vehicle-mounted terminal is more and more, and The upgrading problem encountered during OTA upgrading is more and more, when The vehicle encounters a problem during OTA upgrading, such as The vehicle OTA upgrading, the upgrading task is always processed in downloading, brushing or upgrading failure, the existing checking method usually checks through The reported fault code or reports The whole brushing log, so that The processing mode cannot intuitively find The problem, and The log information of The specific code point of The problem cannot be acquired in a targeted manner. Disclosure of Invention The invention aims to solve the technical problem of providing a log acquisition method and a system for OTA upgrading, which can intuitively and accurately locate the problem points in the upgrading process. In order to solve the technical problems, the invention adopts a technical scheme that: An OTA upgrading log acquisition method comprises the following steps: the cloud platform transmits an upgrade task, a log acquisition point and a log acquisition item to the vehicle-mounted terminal, and configures a refreshing flow information acquisition switch; If the refreshing flow information acquisition switch is configured to be closed, the vehicle-mounted terminal executes a refreshing flow according to the upgrading task, generates a log based on the log acquisition point and the log acquisition item in the execution process, and sends the log to the cloud platform; and the cloud platform performs visual display on the log. In order to solve the technical problems, the invention adopts another technical scheme that: The cloud platform comprises a first memory, a first processor and a first computer program which is stored in the first memory and can run on the first processor, the vehicle-mounted terminal comprises a second memory, a second processor and a second computer program which is stored in the second memory and can run on the second processor, and the first processor executes the first computer program to realize the steps executed by the cloud platform in the log acquisition method for OTA upgrade; And the second processor executes the second computer program to realize the steps executed by the vehicle-mounted terminal in the log acquisition method for OTA upgrading. The method has the advantages that the cloud platform issues the upgrade task, the log acquisition point and the log acquisition item to the vehicle-mounted terminal, and configures the refreshing flow information acquisition switch, if the refreshing flow information acquisition switch is configured to be closed, the completion of the refreshing flow information acquisition is indicated, the vehicle-mounted terminal executes the refreshing flow according to the upgrade task, the log is generated based on the log acquisition point and the log acquisition item in the execution process and is sent to the cloud platform, the cloud platform carries out visual display on the log, the log is generated based on the configured log acquisition point and the log acquisition item in the execution process of the refreshing flow, the log can be automatically acquired as required after acquisition, the cloud platform carries out visual display on the log, even if a problem occurs in the upgrading process, the problem point can be intuitively known in the visual display due to the fact that the log is acquired in different flows in the upgrading process, and thus the problem point in the upgrading process can be intuitively and accurately positioned. Drawings Fig. 1 is a flowchart illustrating steps of an OTA upgrade log collection method according to an embodiment of the present invention; fig. 2 is a schematic structural diagram of an OTA upgraded log collection system according to an embodiment of the present invention; Fig. 3 is a flowchart of an overall collection in an OTA upgrade log collection method according to an embodiment of the present invention; Fig. 4 is a log collection flow chart when a brushing flow is performed in the log collection method for OTA upgrading according to the embodiment of the invention. Detailed Description In order to describe the technical contents, the achieved objects and effects of the present invention in detail, the following description will be made with reference to the embodiments in conjunction with the accompanying drawings. Referring to fig. 1, an OTA upgrade log collection method includes the steps of: the cloud platform transmits an upgrade task, a log acquisition point and a log acquisition item to the vehicle-mounted terminal, and configures a refreshing flow information acqu