Operation log determination method, vehicle-mounted system, equipment and storage medium

By storing key run logs in the real running environment and determining effective run logs based on event identification, the problem of inaccurate error event location in complex network environments is solved, and high-accurate error event location is achieved.

CN119690711APending Publication Date: 2025-03-25DEEPAL AUTOMOBILE TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311246622.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, it is difficult to accurately obtain the key operation logs corresponding to error events in on-board systems in complex network environments, resulting in inaccurate positioning of error events.

Method used

Store critical run logs in the real run environment, and determine the valid run log from the pre-stored critical run log through the event identification of the error event.

Benefits of technology

Improve the accuracy and completeness of the effective operation log, enable accurate positioning of error events, and avoid errors in laboratory environment reproduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690711A_ABST
    Figure CN119690711A_ABST
Patent Text Reader

Abstract

The invention relates to a running log determination method, a vehicle-mounted system, equipment and a storage medium, and relates to the field of vehicle-mounted domain controllers. The method comprises the following steps: firstly, storing a key running log of a key chip core; wherein the key chip core comprises a microcontroller core and / or a protocol core. Subsequently, when an error event is monitored, an event identifier of the error event can be obtained, and the key operation log corresponding to the event identifier of the error event in the key operation logs is determined as an effective operation log. Therefore, the effective running log can be obtained from the real running environment, so that the accuracy of obtaining the effective running log is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted domain controllers, and in particular to the field of a method and system technology for collecting operation logs of key chips of a TBOX multi-core SOC, and specifically to an operation log determination method, a vehicle-mounted system, a device and a storage medium. Background Art

[0002] The telematics box (TBOX) is a controller with a heterogeneous architecture consisting of a microcontroller unit (MCU) and a multi-core system on chip (SOC), which is used to provide a network for vehicle systems such as the vehicle computer and the autonomous driving controller.

[0003] Due to the complexity of network links and the large number of network nodes, when error events such as network freeze and network disconnection occur, in addition to the application layer logs of the application core (A core) in the multi-core SOC, it is also necessary to combine the key operation logs of the underlying microcontroller core (M core) and protocol core (C core) to locate the problem of the error event.

[0004] However, the traffic of the underlying key operation logs is relatively large, and storing the full amount of key operation logs will cause excessive load, affecting the normal operation of the vehicle system. The general method is to reproduce the error event in the laboratory environment after detecting the error event, and capture the key operation log when the error event is reproduced as the effective operation log. However, as the degree of automobile intelligence and networking becomes higher and higher, the network environment of the vehicle system becomes more and more complex, and the technical difficulty of reproducing error events in the laboratory environment is relatively high, resulting in inaccurate effective operation logs and the inability to locate the problem of the error event. Summary of the invention

[0005] The present application provides an operation log determination method, a vehicle-mounted system, a device and a storage medium to at least solve the technical problem of low accuracy of effective operation logs obtained in the related art. The technical solution of the present application is as follows:

[0006] According to the first aspect of the present application, there is provided a method for determining an operation log, comprising: storing a key operation log of a key chip core; the key chip core comprises a microcontroller core and / or a protocol core; when an error event is detected, obtaining an event identifier of the error event; and determining the key operation log in the key operation log that corresponds to the event identifier of the error event as a valid operation log.

[0007] According to the above technical means, when an error event is monitored, the present application can store key operation logs in the real operation environment, and determine the key operation log corresponding to the error event from the pre-stored key operation logs based on the event identifier of the error event as the effective operation log. Compared with reproducing error events in a laboratory environment, the present application can effectively avoid the errors caused by the laboratory simulating the real operation environment, and improve the accuracy of the effective operation log, so that the captured effective operation log can be used to accurately locate the error event in combination with the application layer log.

[0008] In a possible implementation, the event identifier of the error event includes: the monitoring time when the error event is detected; the key operation log corresponding to the event identifier of the error event in the key operation log is determined as a valid operation log, including: based on the log generation strategy corresponding to the event type of the error event, according to the monitoring time, determining the log start time and the log end time of the error event; the log generation strategy includes: the delay between the monitoring time and the log start time, and the time interval between the log start time and the log end time; from the key operation log, the key operation log between the log start time and the log end time is determined as a valid operation log.

[0009] According to the above technical means, after the error event is monitored, the present application can determine the log start time and log end time of the error event according to the event type and monitoring time of the error event, so that the log start time and log end time can be used as retrieval conditions to accurately capture the effective operation log corresponding to the error event from the pre-stored key operation logs. Compared with the method of reproducing error events in a laboratory environment to capture effective operation logs, the present application can avoid the errors existing in the laboratory environment reproduction process, directly capture effective operation logs from the real operation environment, and can improve the accuracy of effective operation logs.

[0010] In a possible implementation, it also includes: determining whether the current time is equal to or later than the log end time; if the current time is equal to or later than the log end time, obtaining a valid running log at the current time; if the current time is earlier than the log end time, repeating the determination after a preset period of time to determine whether the current time is equal to or later than the log end time.

[0011] According to the above technical means, the present application can provide a method for obtaining a valid operation log after the log end time, thereby avoiding the incompleteness of the obtained valid operation log and improving the completeness and accuracy of the captured valid operation log.

[0012] In a possible implementation, before storing the key operation log of the key chip core, the method further includes: obtaining an initial operation log of the key chip core; and performing readable processing on the initial operation log to obtain the key operation log.

[0013] According to the above technical means, the present application can process the initial operation log generated by the key chip core to obtain a readable key operation log, so that the efficiency of locating problems based on the effective operation logs in the key operation log can be improved later.

[0014] In a possible implementation, the method further includes: when the storage time of the key operation log is greater than or equal to a preset storage time, deleting the key operation log.

[0015] According to the above technology, since the traffic of key operation logs is large, this application only stores key operation logs within a preset storage period, which can effectively control the storage amount of key operation logs, thereby reducing the pressure on the system load caused by storing key operation logs in the real operating environment and ensuring the normal operation of the vehicle system.

[0016] According to the second aspect provided by the present application, a vehicle-mounted system is provided, including a TBOX and a vehicle computer; the TBOX includes a key chip core; the key chip core includes a microcontroller core and / or a protocol core; the TBOX is connected to the vehicle computer through bus communication; the vehicle computer is used to store a key operation log of the key chip core; when the TBOX detects an error event, the TBOX is used to obtain an event identifier of the error event and send the event identifier of the error event to the vehicle computer; the vehicle computer is also used to determine the key operation log corresponding to the event identifier of the error event in the key operation log as a valid operation log; the valid operation log is used to locate the problem of the error event.

[0017] Based on the above technology, this application can take advantage of the higher processing power of the vehicle computer, and the vehicle computer can capture the effective operation logs in the key operation logs, which can avoid the problem of heavy TBOX load affecting the operation of the vehicle system, and realize the capture of effective operation logs in the real operation environment without affecting the normal operation of the vehicle system.

[0018] In a possible implementation, the vehicle computer includes: a host computer, a first memory, and a second memory; the first memory is used to store the initial operation log of the key chip core; the host computer is connected to the first memory to process the initial operation log to obtain the key operation log; the second memory is connected to the host computer to store the key operation log.

[0019] According to the above technology, on the one hand, compared with some technologies that deploy the host computer on an external personal computer (PC), this application deploys the host computer in the vehicle computer, which can directly use the existing components or servers of the vehicle without adding external equipment, reducing hardware costs, and is also convenient for mass production projects and large-scale use in running vehicles. On the other hand, due to the high computing power of the vehicle computer, the host computer and storage are deployed in the vehicle computer, and the vehicle computer performs storage, processing and other operations, which can avoid the problem of large TBOX load affecting the operation of the vehicle system and ensure the normal operation of the vehicle system.

[0020] In one possible implementation, the event identifier of the above-mentioned error event includes: the monitoring time when the error event is detected; TBOX is used to determine the log start time and the log end time of the error event according to the monitoring time based on the log generation strategy corresponding to the event type of the error event; the host computer is also used to determine the key operation logs between the log start time and the log end time from the key operation logs as valid operation logs.

[0021] According to the above technology, after TBOX detects an error event, it can determine the log start time and log end time of the error event, so that the subsequent host computer can use the log start time and log end time as retrieval conditions from the pre-stored key operation logs to accurately capture the effective operation log corresponding to the error event. Compared with the method of reproducing error events in a laboratory environment to capture effective operation logs, this application can directly use TBOX and the host computer deployed on the vehicle computer to capture effective operation logs from the real operation environment, avoiding errors in the laboratory environment reproduction process, and can improve the accuracy of effective operation logs.

[0022] In a possible implementation manner, the vehicle computer further includes: a third memory; the third memory is connected to the second memory and is used to store valid operation logs in the key operation logs.

[0023] According to the above technology, the present application can separately save effective operation logs in the third memory, avoid frequent refresh of the third memory, and extend the service life of the third memory.

[0024] In a possible implementation, the above-mentioned TBOX also includes an application core; the application core and the key chip core are connected through inter-core communication; the application core includes a fourth memory; the fourth memory is used to store the initial operation log of the key chip core; the application core is connected to the vehicle computer.

[0025] According to the above technology, the present application realizes the data transmission of the initial operation log in the key chip core to the external device, that is, the vehicle computer, through the application layer through the inter-core communication between the application core and the key chip core, so that the subsequent vehicle computer can process or store the initial operation log.

[0026] In a possible implementation, the TBOX further includes a first direct memory access module; the vehicle computer further includes a second direct memory access module; and the first direct memory access module is connected to the second direct memory access module.

[0027] According to the above technology, since the data transmission method of direct memory access can transmit large amounts of data without occupying the performance of the central processing unit, the present application can be connected with the second direct memory access module through the first direct memory access module to reduce the resource occupation of data transmission between TBOX and the vehicle computer.

[0028] In a possible implementation manner, the vehicle computer further includes a target interface; the target interface is used to transmit effective operation logs.

[0029] According to the above technology, the vehicle computer can transmit the effective operation log to the external device through the target interface to realize the export of the effective operation log in any way, so that the external device or staff can analyze the error event according to the effective operation log, determine the cause of the error and the improvement plan.

[0030] In a possible implementation, the vehicle-mounted system further includes: a cloud server; the cloud server is connected to the TBOX and / or the vehicle computer for providing remote services.

[0031] According to the above technology, access to remote services is achieved through a cloud server, which can create conditions for expanding the functions of the vehicle-mounted system, improve the functionality of the vehicle-mounted system of the present application, and the scope of application of the operation log determination method.

[0032] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.

[0033] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method of the above-mentioned first aspect and any possible implementation method thereof.

[0034] According to the fifth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method of the above-mentioned first aspect and any possible implementation manner thereof.

[0035] Therefore, the above technical features of the present application have the following beneficial effects:

[0036] (1) The key operation logs can be stored in the real operation environment, and the key operation logs corresponding to the error events can be determined from the pre-stored key operation logs based on the event identifiers of the error events as valid operation logs. Compared with reproducing error events in a laboratory environment, the present application can effectively avoid the errors caused by the laboratory simulating the real operation environment, and improve the accuracy of the valid operation logs, so that the captured valid operation logs can be used to accurately locate the error events in combination with the application layer logs.

[0037] (2) After an error event is detected, the log start time and log end time of the error event can be determined according to the event type and monitoring time of the error event, so that the log start time and log end time can be used as retrieval conditions to accurately capture the effective operation log corresponding to the error event from the pre-stored key operation logs. Compared with the method of reproducing error events in a laboratory environment to capture effective operation logs, the present application can avoid the errors existing in the laboratory environment reproduction process, directly capture effective operation logs from the real operation environment, and improve the accuracy of effective operation logs.

[0038] (3) A method for obtaining a valid operation log after the log end time can be provided, thereby avoiding the incompleteness of the obtained valid operation log and improving the completeness and accuracy of the captured valid operation log.

[0039] (4) The initial operation log generated by the key chip core can be processed to obtain a readable key operation log, so that the efficiency of locating problems based on the effective operation logs in the key operation log can be improved later.

[0040] (5) Since the flow of key operation logs is large, the present application only stores key operation logs within a preset storage period, which can effectively control the storage volume of key operation logs, thereby reducing the pressure on the system load caused by storing key operation logs in the actual operating environment and ensuring the normal operation of the vehicle system.

[0041] (6) The vehicle computer can take advantage of its high processing power and capture effective operation logs from key operation logs. This can avoid the problem of heavy TBOX load affecting the operation of the vehicle system and achieve the capture of effective operation logs in a real operating environment without affecting the normal operation of the vehicle system.

[0042] (7) On the one hand, compared with some technologies that deploy the host computer on an external personal computer (PC), this application deploys the host computer in the vehicle computer, which can directly use the existing components or servers of the vehicle without adding external equipment, reducing hardware costs, and is also convenient for mass production projects and large-scale use in running vehicles. On the other hand, due to the high computing power of the vehicle computer, the host computer and storage are deployed in the vehicle computer, and the vehicle computer performs storage, processing and other operations, which can avoid the problem of large TBOX load affecting the operation of the vehicle system and ensure the normal operation of the vehicle system.

[0043] (8) After TBOX detects an error event, it can determine the log start time and log end time of the error event, so that the subsequent host computer can use the log start time and log end time as retrieval conditions to accurately capture the effective operation log corresponding to the error event from the pre-stored key operation log. Compared with the method of reproducing error events in a laboratory environment to capture effective operation logs, this application can directly use TBOX and the host computer deployed on the vehicle computer to capture effective operation logs from a real operation environment, avoiding errors in the laboratory environment reproduction process, and can improve the accuracy of effective operation logs.

[0044] (9) The effective operation log can be saved separately in the third memory, so as to avoid frequent rewriting of the third memory and extend the service life of the third memory.

[0045] (10) Through inter-core communication between the application core and the key chip core, the initial operation log in the key chip core is transmitted to the external device, that is, the vehicle computer, through the application layer, so that the subsequent vehicle computer can process or store the initial operation log.

[0046] (11) Since the data transmission method of direct memory access can transmit large amounts of data without occupying the performance of the central processing unit, the present application can reduce the resource occupation of data transmission between TBOX and the vehicle computer by connecting the first direct memory access module with the second direct memory access module.

[0047] (12) The effective operation log can be transmitted to the external device through the target interface to realize the export of the effective operation log in any way, so that the external device or the staff can analyze the error event according to the effective operation log to determine the cause of the error and the improvement plan.

[0048] (13) Access to remote services through a cloud server can create conditions for expanding the functions of the vehicle-mounted system, thereby improving the functionality of the vehicle-mounted system of the present application and the scope of application of the operation log determination method.

[0049] It should be noted that the technical effects brought about by any implementation method in the third to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.

[0050] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0052] Figure 1 is a schematic diagram of a multi-core SOC structure according to an exemplary embodiment;

[0053] Figure 2 is a flow chart showing a method for determining an operation log according to an exemplary embodiment;

[0054] Figure 3 is a schematic structural diagram of a vehicle-mounted system according to an exemplary embodiment;

[0055] Figure 4 is a flow chart showing another method for determining an operation log according to an exemplary embodiment;

[0056] Figure 5 is a flow chart showing another method for determining an operation log according to an exemplary embodiment;

[0057] Figure 6 is a flow chart showing another method for determining an operation log according to an exemplary embodiment;

[0058] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0059] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0060] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0061] As shown in the background technology, Figure 1 When the vehicle-mounted system including the multi-core SOC 100 is running, it will generate the application layer log 101 of the A core and the key operation log 102 of the underlying M core / C core. Among them, the application layer log 101 includes the application log, system log and Ethernet log generated by the application layer. The key operation log 102 includes the application log and system log generated by the underlying layer. Among them, since the traffic of the underlying key operation log 102 is large, storing the full amount of the key operation log 102 will cause excessive load and affect the normal operation of the vehicle-mounted system.

[0062] In general technology, after an error event is detected, the error event is reproduced in the laboratory and the key operation logs during the reproduction are captured. However, as the network environment of the vehicle system becomes more and more complex, it is difficult to reproduce the error event in the laboratory and it is impossible to locate the problem of the error event.

[0063] In order to obtain log information in a real operating environment, there is a method that can achieve data interaction between the vehicle computer and TBOX, so that the vehicle computer obtains the application layer log stored in the TBOX and then transmits it to a USB flash drive inserted into the universal serial bus (USB) port. However, this method does not propose a method for obtaining the underlying key operating logs, and a method for capturing the key operating logs corresponding to error events. Therefore, this method cannot solve the problem of low accuracy in capturing the key operating logs corresponding to error events in a complex network environment.

[0064] In view of the above technical problems, the present application provides a method for determining an operation log, which first stores the key operation log of the key chip core. Subsequently, when an error event is detected, the event identifier of the error event is obtained, and the key operation log corresponding to the event identifier of the error event in the key operation log is determined as a valid operation log.

[0065] Key operation logs can be stored in the real operation environment, and from the pre-stored key operation logs, based on the event identifier of the error event, the key operation log corresponding to the error event can be determined as the effective operation log. Compared with reproducing the error event in the laboratory environment, the present application can effectively avoid the errors caused by the laboratory simulating the real operation environment, and improve the accuracy of the effective operation log, so that the captured effective operation log can be used to accurately locate the error event in combination with the application layer log.

[0066] For ease of understanding, the operation log determination method provided in this application is specifically introduced below with reference to the accompanying drawings.

[0067] Figure 2 is a flow chart of a method for determining an operation log according to an exemplary embodiment. Figure 2 As shown, the operation log determination method includes the following steps: S201-S203.

[0068] S201. The electronic device stores a key operation log of a key chip core.

[0069] Optionally, the location where the electronic device stores the key operation log may be a random access memory (RAM), a flash memory, or other memory.

[0070] Since RAM is an internal memory that directly exchanges data with the central processing unit (CPU), it can be taken out or stored at will as needed, and the storage and reading speed is very fast. In addition, RAM will lose its storage content when the power is off, so it is mainly used to store programs that are used for a short time. Therefore, before the valid operation log corresponding to the error event needs to be captured, the key operation log can be stored in RAM, thereby ensuring the system calculation speed.

[0071] In one possible implementation, Figure 3 As shown, the electronic device may be a device for implementing a multi-core SOC vehicle system 300, including TBOX1 and a vehicle computer 2. TBOX1 includes a key chip core 3, and TBOX1 is connected to the vehicle computer 2. The vehicle computer is used to store key operation logs of the key chip core 3.

[0072] It should be understood that TBOX1 and the vehicle computer 2 may be separate controllers, may be integrated into one controller, or may be separately integrated into other domain controllers.

[0073] Optionally, the key chip core 3 includes a microcontroller core and / or a protocol core, and may also be a bottom-layer chip core in any system.

[0074] It should be understood that the technical solution provided in S201 can realize the collection of the operation log of the M core / C core of the SOC chip in the TBOX, and the method is economical, simple, and can be applied industrially. With the key operation log of the M core / C core of the SOC chip, it is possible to support the analysis and solution of the vehicle network problems, thereby accelerating the solution of the vehicle software quality problems and improving the vehicle user experience.

[0075] In one achievable approach, combining Figure 2 ,like Figure 4 As shown, before caching the key operation log, the present application may also process the initial operation log generated by the bottom layer to obtain a readable key operation log, specifically including: S301-S302.

[0076] S301. The electronic device obtains an initial operation log of a key chip core.

[0077] like Figure 1 As shown, in the multi-core SOC 100, the A core and the M core / C core can be connected through inter-core communication (IOC), and the A core can realize data transmission with the external core device through bus communication.

[0078] Based on this, combined Figure 3 , TBOX1 also includes an application core 4. After the key chip core 3 in TBOX1 generates an initial operation log, the initial operation log is sent to the application core 4 through the IOC.

[0079] The application core 4 includes a fourth memory RAM5. After receiving the initial operation log, the initial operation log can be cached in the RAM5.

[0080] Optionally, the bus communication may be any high-speed bus communication such as USB communication, Ethernet communication, socket communication, etc., and data transmission is performed according to a preset communication protocol.

[0081] Because direct memory access (DMA) data transmission can transfer large amounts of data without occupying CPU performance. Figure 3 , bus communication can be achieved by connecting the first direct memory access module DMA6 of TBOX1 and the second direct memory access module DMA7 of the vehicle computer 2.

[0082] In a possible implementation, TBOX1 can hand over the bus control right to DMA6, which is driven by DMA6 to send the initial operation log in RAM5 to DMA7.

[0083] The vehicle computer 2 may include a first memory RAM8. After the vehicle computer 2 receives the initial operation log sent by TBOX1 through DMA7, the initial operation log may be stored in RAM8.

[0084] S302: The electronic device performs readable processing on the initial operation log to obtain a key operation log.

[0085] In one achievable manner, the method for making the initial operation log readable may include: compressing and organizing the initial operation log, for example, making the initial operation log readable based on the file size setting of the log in the configuration information, the naming requirements of the log file name, etc. Figure 3 The vehicle computer 2 may further include a host computer 9 and a second memory RAM 10 .

[0086] The host computer 9 is connected to the RAM 8 and is used to process the initial operation log to obtain the key operation log.

[0087] RAM 10 is connected to the host computer 9 and is used to store key operation logs.

[0088] It should be understood that the host computer 9 is deployed in the vehicle computer 2, and the vehicle computer 2 controls the configuration, start and stop of the host computer 9. After the vehicle computer 2 is started, the configuration information of the host computer 9 is set and the host computer 9 is started. After the host computer 9 is started, the configuration information is sent to the key chip core 3 in TBOX1 through the bus communication between the vehicle computer 2 and TBOX1. Correspondingly, the key chip core 3 starts to generate an initial operation log according to the configuration information.

[0089] It should be noted that, on the one hand, since both inter-core communication and bus communication are high-speed communications, when the host computer 9 is deployed in the vehicle computer 2, when pulling the initial operation log with a large amount of data, the load of TBOX1 increases within 1% in the actual operation environment. When the host computer 9 is deployed in TBOX1, the input / output (IO) operation of the memory and flash will increase the load of TBOX1 by more than 30%. Considering that the cost and resource utilization load in the actual operation environment have generally reached 60%, a 30% load increase will cause TBOX1 to fail to operate normally.

[0090] On the other hand, taking advantage of the high processing power of the vehicle computer 2, the host computer 9 performs log reading and storage operations in the vehicle computer 2, and the load of the vehicle computer 2 only increases by about 5%, which has little impact on the system.

[0091] Optionally, the configuration information of the host computer 9 may include: a threshold value of a file size of a single log, a naming requirement for a log file name, and a default storage path.

[0092] S202: When an error event is detected, the electronic device obtains an event identifier of the error event.

[0093] Optionally, the error event includes: network freeze, network disconnection, or any other network error.

[0094] Optionally, the event identifier of the error event includes any identification information such as the event name and event type of the error event, or the monitoring time when the error event is detected.

[0095] Combination Figure 3 ,When TBOX1 detects an error event, TBOX1 is used to obtain the event identifier of the error event.

[0096] S203: The electronic device determines, in the key operation log, the key operation log corresponding to the event identifier of the error event as a valid operation log.

[0097] In one practicable manner, the electronic device can determine the time after the monitoring time of any event, which is a first time length, such as 5 seconds (s), as the log start time of the event, and determine the time after the log start time, which is a second time length, such as 30 seconds, as the log end time of the event. Then, based on the log start time and log end time of the event, the valid operation log is determined from the key operation logs.

[0098] In one possible implementation, when the event identifier of an error event is the monitoring time, since different event types correspond to different log generation strategies, the time interval between the monitoring time when the event is detected and the start time of the log generation corresponding to the event is related to the log generation strategy. Figure 2 ,like Figure 5 As shown, the method for an electronic device to capture a valid operation log from a key operation log includes: S2031-S2032.

[0099] S2031: The electronic device determines a log start time and a log end time of the error event based on a log generation strategy corresponding to the event type of the error event and according to the monitoring time.

[0100] S2032: The electronic device determines, from the key operation logs, the key operation logs between the log start time and the log end time as valid operation logs.

[0101] In one possible implementation, after the electronic device determines the valid operation log, the electronic device may also determine whether the current time is equal to or later than the log end time. If the current time is equal to or later than the log end time, the valid operation log is acquired at the current time. On the contrary, if the current time is earlier than the log end time, the determination of whether the current time is equal to or later than the log end time is repeated after a preset period of time.

[0102] Specific, combined Figure 3 TBOX1 monitors the vehicle system 300. When an error event is detected, the monitoring time t0 is obtained, and the log start time t1 and the log end time t2 of the error event are calculated through t0. TBOX1 generates an instruction according to a pre-agreed communication protocol and sends the instruction to the vehicle computer 2.

[0103] After receiving the above instruction, the vehicle computer 2 parses t1 and t2 according to the pre-agreed communication protocol and obtains the current time t3. When t3 is earlier than t2, it means that the key operation log corresponding to the error event has not yet completed the generation process, and the valid operation log is incomplete at this time. Therefore, the host computer 9 can wait for a preset period of time Δt, and then, the host computer 9 obtains the key operation log of the time period t1 to t2 pre-stored in the RAM 10 after the preset period of time Δt, and determines it as a valid operation log.

[0104] Exemplarily, as shown in Table 1, the message fields agreed upon in the communication protocol of the bus communication may include an identification field (tool flag), a log start time (log start time), a log end time (log end time) and a log type (log type).

[0105] The identification field is used to indicate whether the key operation log corresponding to the message needs to be saved for a long time. For example, "0" means not to save, and "1" means to save the log.

[0106] The log start time and log end time are the start time and end time of the log to be saved respectively.

[0107] The log type is an error event.

[0108] Table 1 Communication protocol

[0109]

[0110] In one practicable manner, the vehicle computer may further include a third memory connected to the second memory for storing effective operation logs.

[0111] In one practicable manner, when the third memory is full, the log with the earliest storage time is deleted first, and then the storage operation is performed. Storing the effective operation log in the third memory reduces the number of logs in the third memory, avoids frequent writing and erasing of the third memory, and can extend the service life of the third memory.

[0112] Optional, since flash memory can be used to store data for a long time, combined with Figure 3 The third memory may be flash 11. Flash 11 is connected to RAM 10 and is used to store effective operation logs.

[0113] In one achievable approach, combining Figure 3 The vehicle computer 2 further includes a target interface, which is used to transmit a valid operation log, for example, to send a valid operation log to an error analysis device so that the error analysis device analyzes an error event according to the valid operation log.

[0114] Optionally, the target interface can implement any wired or wireless connection mode. Figure 3 Taking the target interface as a USB interface as an example, the vehicle computer 2 and the mobile USB disk 12 are connected via the USB interface.

[0115] In one possible implementation, when the vehicle computer 2 is connected to the mobile USB disk 12, the vehicle computer 2 has a reserved USB interface that can access the mobile USB disk 12. The vehicle computer 2 can also be set to recognize a keyword, and when the keyword is recognized, the operation of copying the valid operation log in the flash 11 to the mobile USB disk 12 is executed, thereby realizing the export of data.

[0116] Furthermore, the vehicle-mounted system 300 may also include: a cloud server 13, which may be connected to the TBOX1 and / or the vehicle computer 2 to provide remote services. Specifically, the TBOX1 and the vehicle computer 2 may log in to the cloud server 13 to upload vehicle-side data or files. The TBOX1 and the vehicle computer 2 may receive instructions from the cloud server and perform corresponding operations according to the instructions.

[0117] In one achievable manner, the method for the cloud server 13 to obtain the valid operation log may include: the cloud server 13 may issue an instruction to obtain the valid operation log and then the vehicle computer 2 executes the log upload action, or the vehicle computer 2 may actively upload the valid operation log in the flash 11 to the cloud server 13.

[0118] The following combination Figure 6 Taking the event identifier of the error event including the monitoring time as an example, the operation log determination method provided in the embodiment of the present application is exemplarily described, and the operation log determination method includes: S401-S406.

[0119] S401, TBOX monitors error events during the operation of the vehicle system.

[0120] When an error event is detected, TBOX continues to monitor other error events and executes S402 at the same time;

[0121] When no error event is detected, S401 is continued to be executed.

[0122] S402. TBOX determines the log start time and log end time of the error event according to the monitoring time.

[0123] S403, TBOX generates a command including the log start time and the log end time, and sends the command to the vehicle computer.

[0124] S404: The vehicle computer parses the instruction to obtain the log start time and the log end time.

[0125] S405: The vehicle computer obtains the current time, and determines whether the current time is equal to or later than the log end time.

[0126] If the current time is equal to or later than the log end time, execute S406;

[0127] If the current time is earlier than the log end time, S405 is repeatedly executed after a preset period of time.

[0128] S406: The vehicle computer stores the effective operation log in the flash.

[0129] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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 present application.

[0130] The embodiment of the present application can divide the functional modules of the electronic device according to the above method. For example, the electronic device can include functional modules corresponding to the functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0131] Figure 7 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 7 As shown, the electronic device 700 includes but is not limited to: a processor 701 and a memory 702 .

[0132] The memory 702 is used to store executable instructions of the processor 701. It can be understood that the processor 701 is configured to execute instructions to implement the operation log determination method in the above embodiment.

[0133] It should be noted that those skilled in the art can understand that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Figure 7 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0134] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 701 may include one or more processing units. Optionally, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0135] The memory 702 may be used to store software programs and various data. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0136] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 702 including instructions, and the above instructions can be executed by the processor 701 of the electronic device 700 to implement the operation log determination method in the above embodiment.

[0137] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0138] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 701 of the electronic device to complete the operation log determination method in the above embodiment.

[0139] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.

[0140] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0141] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection 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.

[0142] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0143] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.

[0145] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining an operation log, characterized in that: include: Storing key operation logs of key chip cores; the key chip cores include microcontroller cores and / or protocol cores; When an error event is detected, obtaining an event identifier of the error event; The key operation log corresponding to the event identifier of the error event in the key operation log is determined as a valid operation log.

2. The method according to claim 1, characterized in that The event identifier of the error event includes: the monitoring time when the error event is monitored; the determining the key operation log corresponding to the event identifier of the error event in the key operation log as a valid operation log includes: Based on a log generation strategy corresponding to the event type of the error event, determining a log start time and a log end time of the error event according to the monitoring time; the log generation strategy includes: a time delay between the monitoring time and the log start time, and a time interval between the log start time and the log end time; From the key operation logs, the key operation logs between the log start time and the log end time are determined as the valid operation logs.

3. The method according to claim 2, characterized in that Also includes: Determine whether the current time is equal to or later than the log end time; If the current time is equal to or later than the log end time, obtaining the valid operation log at the current time; If the current time is earlier than the log end time, the determination is repeated after a preset period of time to determine whether the current time is equal to or later than the log end time.

4. The method according to claim 1, characterized in that Before storing the key operation log of the key chip core, the method further includes: Obtaining an initial operation log of the key chip core; The initial operation log is processed to be readable to obtain the key operation log.

5. The method according to claim 1, characterized in that Also includes: When the storage time of the key operation log is greater than or equal to the preset storage time, the key operation log is deleted.

6. A vehicle-mounted system, characterized in that: include: TBOX, car computer; The TBOX includes a key chip core; The key chip core includes a microcontroller core and / or a protocol core; The TBOX is connected to the vehicle computer via bus communication; The vehicle computer is used to store the key operation log of the key chip core; When the TBOX detects an error event, the TBOX is used to obtain an event identifier of the error event and send the event identifier of the error event to the vehicle computer; The vehicle computer is further used to determine the key operation log corresponding to the event identifier of the error event in the key operation log as a valid operation log; the valid operation log is used to locate the problem of the error event.

7. The system according to claim 6, characterized in that The vehicle computer comprises: a host computer, a first memory, and a second memory; The first memory is used to store the initial operation log of the key chip core; The host computer is connected to the first memory and is used to process the initial operation log to obtain the key operation log; The second memory is connected to the host computer and is used to store the key operation log.

8. The system according to claim 7, characterized in that The event identifier of the error event includes: the monitoring time when the error event is monitored; The TBOX is used to determine the log start time and the log end time of the error event according to the monitoring time based on the log generation strategy corresponding to the event type of the error event; The host computer is further used to determine, from the key operation logs, the key operation logs between the log start time and the log end time as the valid operation logs.

9. The system according to claim 7, characterized in that The vehicle computer further includes: a third memory; The third memory is connected to the second memory, and is used to store the valid operation log in the key operation log.

10. The system according to claim 6, characterized in that The TBOX also includes an application core; The application core and the key chip core are connected via inter-core communication; The application core includes a fourth memory; the fourth memory is used to store the initial operation log of the key chip core; The application core is connected to the vehicle computer.

11. The system according to any one of claims 6 to 10, characterized in that: The TBOX further includes a first direct memory access module; the vehicle computer further includes a second direct memory access module; The first direct memory access module is connected to the second direct memory access module.

12. The system according to any one of claims 6 to 10, characterized in that The vehicle computer also includes a target interface; the target interface is used to transmit the effective operation log.

13. The system according to any one of claims 6 to 10, characterized in that The vehicle-mounted system further includes: a cloud server; The cloud server is connected to the TBOX and / or the vehicle computer to provide remote services.

14. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method as claimed in any one of claims 1 to 5.

15. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is capable of performing the method as claimed in any one of claims 1 to 5.

Citation Information

Cited By

  • Network optimization method, vehicle, storage medium and computer program product

    CN119997068A

  • Network optimization method, vehicle, storage medium and computer program product

    CN119997068B