A method for monitoring and warning of jamming of an on-board entertainment terminal controller

By collecting and analyzing the CPU and memory usage data of the in-vehicle entertainment terminal, a monitoring rule model is established for early warning calculation, which solves the problem of inability to quickly monitor and solve the stuck in the in-vehicle entertainment terminal in traditional technology, and achieves timely monitoring of the operation of the vehicle. Understand and optimize to improve user experience.

CN114281642BActive Publication Date: 2024-09-20CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111508590.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-09-20
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

When lagging occurs, traditional in-vehicle entertainment control terminals cannot quickly and timely obtain the CPU and memory resource usage, resulting in the inability to effectively solve the lagging problem and affecting user satisfaction and the reputation of the OEM.

Method used

Through the steps of log creation, log uploading to the cloud, log parsing and log calculation, the CPU and memory usage data of the terminal controller are collected and analyzed, a monitoring rule model is established for early warning calculation, and the front-end display data is used for monitoring and early warning.

Benefits of technology

It achieves timely and accurate monitoring and early warning of in-vehicle entertainment terminal freezes, and can quickly understand the operation of the vehicle, optimize and upgrade the software in a timely manner, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281642B
    Figure CN114281642B
Patent Text Reader

Abstract

The present invention discloses a method for monitoring and warning of jamming of an in-vehicle entertainment terminal controller, comprising the following steps: S1: log creation, writing the CPU and memory usage of the terminal controller process into a local log; S2: log uploading to the cloud, the cloud platform pulls the terminal controller log and stores it in HDFS; S3: log parsing, establishing a parsing model, converting the unstructured data in the terminal controller log into structured data; S4: log calculation, reading the structured data parsed in step S3, and obtaining the monitoring result data according to the monitoring rules; S5: log query and display, establishing a query display model, querying the result data obtained in step S4 and returning it to the front end according to the data structure and agreed form required by the front end, and the staff performs monitoring and warning according to the displayed data. The present invention solves the problem that the monitoring and warning of jamming of the in-vehicle entertainment terminal cannot be obtained in a timely and accurate manner in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of in-vehicle entertainment control terminals, and in particular to a method for monitoring and early warning of freezes in an in-vehicle entertainment terminal controller. Background Art

[0002] With the continuous development of automotive intelligence, smart cockpits will become the core of the business. The in-vehicle entertainment control terminal (vehicle computer) is the core of the smart cockpit. Its operating status directly determines the customer's satisfaction level with the vehicle's smart cockpit.

[0003] When a traditional in-vehicle entertainment control terminal freezes, it is impossible to quickly return the running status of each program (CPU and memory usage) of the in-vehicle entertainment control terminal to the OEM for timely analysis. The only option is to send a technician to contact the user for analysis, but it is difficult to reproduce the user's usage scenario when the abnormal situation occurs. In addition, due to limited storage space, the car computer log is written in a rolling write loop overwrite manner, so the abnormal situation log is easily overwritten. The one-sided information collected in this way makes it impossible to clearly understand the running status of various types of car computers and their subprograms, and it is impossible to effectively, quickly and completely solve the car computer freeze problem, which reduces user satisfaction and affects the reputation of the OEM. In serious cases, product recalls will be carried out or the normal sales of the model will be killed in the market.

[0004] Therefore, how to timely, accurately and comprehensively obtain the CPU and memory resource usage of each program when the car computer freezes, and conduct real-time monitoring of abnormal programs and statistical calculation of programs that occupy large resources, and then make rectifications and adjustments to quickly solve the problem of car computer freezing. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method for monitoring and warning of jamming of an in-vehicle entertainment terminal controller, which solves the problem in the prior art that the monitoring and warning of jamming of the in-vehicle entertainment terminal cannot be obtained in a timely and accurate manner.

[0006] To achieve the above object, the technical solution provided by the present invention is: a method for monitoring and early warning of jamming of a vehicle entertainment terminal controller, characterized in that it comprises the following steps:

[0007] S1: Log creation, write the CPU and memory usage of the terminal controller process into the local log, establish a log tracking program, and periodically collect the CPU and memory usage of each process of the terminal controller;

[0008] S2: Logs are uploaded to the cloud. The cloud platform pulls the terminal controller logs and stores them in the distributed file storage system.

[0009] S3: Log parsing: building a parsing model to convert unstructured data in the terminal controller log into structured data and store it in a distributed file storage system;

[0010] S4: Log calculation, establish monitoring rule model, read the structured data parsed in step S3, obtain monitoring result data according to monitoring rules and store them;

[0011] S5: Log query and display. Establish a query display model, query the result data obtained in step S4 and return it to the front end according to the data structure and agreed form required by the front end. The front end will display the queried data. Finally, the staff will monitor and warn based on the displayed data.

[0012] Furthermore, in step S1, when the terminal controller is an Android system, the total process CPU and memory occupancy rate, and the CPU occupancy rate TOP5 process status are directly read through the Top command of the Android system of the terminal controller, and then the above data is periodically read and written into the log.info log file and stored.

[0013] Furthermore, if the log.info log file exceeds a set size or storage time or has been uploaded to the cloud, the log.info log file is cleared in a first-in-first-out manner and then written again.

[0014] Furthermore, in step S2, the cloud platform pulls the terminal controller log in a manner including active pulling or manual pulling, wherein the cloud platform sends a command to read the terminal controller log to the terminal controller, and when the terminal controller receives the log reading command, it uploads its terminal controller log to the cloud platform, which then stores it in a distributed file storage system after receiving it.

[0015] Furthermore, in step S3, the readLine method in java.io.BufferedReader is used to read the log file data stored in the distributed file storage system line by line, and a corresponding key-value pair structure is obtained according to each line of data in the document. The key-value pair structure includes the total CPU occupancy rate of the terminal controller process, the total CPU idle rate of the terminal controller process, the process name and the CPU share and memory share log data of the process, which are encapsulated into an object and written into the Hive table in the distributed file storage system by line, wherein each reading corresponds to each line in Hive, and increases line by line according to the number of readings.

[0016] Furthermore, in step S4, the monitoring rule model is as follows:

[0017] S401: Use SQL language to read the key-value pair structure basic data in the Hive table;

[0018] S402: Perform monitoring and early warning calculations according to the terminal controller indicator calculation rules.

[0019] Among them, the total CPU idle rate is lower than the warning setting value, which is recorded as an alarm; the CPU share of a single process is greater than the warning setting value, which is recorded as an alarm; the weight distribution of the TOP processes is counted, and these data are written into the Mysql database, and statistical calculations are performed on a daily basis.

[0020] Furthermore, the TOP process weight distribution is calculated by setting the weights to 1 for TOP1, 0.8 for TOP2, 0.6 for TOP3, 0.4 for TOP4, and 0.2 for TOP5, and then calculating the number of times each process on the day appears in the TOP ranking and multiplying it by the corresponding weight to obtain the weight.

[0021] Furthermore, in step S5, the front-end technology adopts the React+Echarts framework and technology, and the back-end adopts the SpringBoot+Mybatis framework and technology. The back-end queries the results according to the front-end data display requirements and the Mysql data structure; the front-end then displays accordingly based on the query results.

[0022] Furthermore, the content displayed in step S5 includes monitoring and early warning indicators such as the number of abnormal vehicles, the number of vehicles uploading data on the day, and the number of abnormalities on the day, as well as the distribution of process abnormality times, TOP process weight distribution, and alarm detailed information data based on the selected date, vehicle model, and software version.

[0023] Compared with the prior art, the present invention has the following beneficial effects:

[0024] The present invention collects the CPU and memory usage data of each process of the vehicle entertainment terminal controller and writes them into the log file. The cloud platform then pulls the log file of the vehicle entertainment terminal controller and performs statistical calculations on the data therein and writes them into the database. After parsing and calculation, the data is displayed through the front end. In this way, the staff can view the CPU operation and memory consumption of each process of the vehicle entertainment terminal controller as needed to achieve the effect of monitoring and early warning of vehicle computer jams, and according to the monitoring and early warning information, the corresponding process of the corresponding software version of the corresponding vehicle series is rectified and optimized, and the vehicle computer software is upgraded in time through OTA to improve the user's operating experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention but do not constitute a limitation of the present invention. In the accompanying drawings:

[0026] Figure 1 It is a work flow chart of the present invention.

[0027] Figure 2 It is a log creation flow chart in the present invention.

[0028] Figure 3 This is a flow chart of the log cloud migration in the present invention.

[0029] Figure 4 It is a log parsing flow chart in the present invention.

[0030] Figure 5 It is a flow chart of the log calculation module in the present invention.

[0031] Figure 6 This is a log query and display flow chart in the present invention. DETAILED DESCRIPTION

[0032] The following is a further detailed description through specific implementation methods:

[0033] See also Figure 1 The present invention discloses a method for monitoring and warning of a jam of an in-vehicle entertainment terminal controller (i.e., a vehicle computer or a vehicle computer system), comprising the following steps:

[0034] S1: Log creation, write the terminal controller process CPU and memory usage into the local log, establish a log tracking program, and periodically collect the terminal controller process CPU and memory usage. For details, please refer to Figure 2 When the terminal controller is an Android system, because it is built on the Linux kernel, the total process CPU and memory usage, and the CPU usage of the top 5 processes can be directly read through the Android system's Top command of the terminal controller. The above data is read in a 10-second cycle and written into the log.info log file and stored. In addition, when the log.info log file exceeds the specified size or storage time or has been uploaded to the cloud, it is cleared in a first-in-first-out manner and written again.

[0035] S2: Logs are uploaded to the cloud. The cloud platform (cloud platform or vehicle cloud platform) pulls the terminal controller logs and stores them in the HDFS distributed file storage system. For details, please refer to Figure 3, the cloud platform pulls the terminal controller log in a manner including active pulling or manual pulling. Among them, the cloud platform and the terminal controller establish a 4G network connection, and the cloud platform sends a command to read the terminal controller log to the terminal controller. The command is sent in an automatic reading or manual reading manner, and the time period for automatic reading can be set, for example, it is set to read once a day. During automatic reading, if the terminal controller is online, it will directly receive the log reading instruction; if it is not online, the terminal controller will call the query interface for instructions to be executed after the network is started and established. If there is a log reading instruction, it will also receive the log reading instruction. After receiving the instruction, the terminal controller immediately reads the log file of the log.info log file and uploads the file. After the cloud platform successfully receives it, it stores it on the cloud platform (private cloud), specifically in the private cloud COS of the distributed file storage system established by the cloud platform.

[0036] S3: Log parsing, building a parsing model, converting unstructured data in the terminal controller log into structured data and storing it in the HDFS distributed file storage system. For details, please refer to Figure 4 , read the log file stored in the distributed file storage system line by line using the readLine method in java.io.BufferedReader, parse the log file according to the established parsing model rules, store the basic log data, and derive the corresponding key-value pair structure according to each line of data in the document. The key-value pair structure includes the total CPU occupancy rate of the terminal controller process, the total CPU idle rate of the terminal controller process, the process name and the CPU share and memory share log data of the process, which are encapsulated as an object and written into the Hive table in the distributed file storage system line by line, wherein each read corresponds to each line in Hive, and increases line by line according to the number of reads.

[0037] S4: Log calculation, establish monitoring rule model, read the structured data parsed in step S3, obtain monitoring result data according to monitoring rules and store them. Figure 5 , the monitoring rule model is as follows:

[0038] S401: Use SQL language to read the key-value pair structure basic data in the Hive table;

[0039] S402: Perform monitoring and early warning calculations according to the terminal controller indicator calculation rules.

[0040] Among them, the total CPU idle rate is lower than the warning setting value as an alarm; the CPU share of a single process is greater than the warning setting value as an alarm; the weight distribution of the TOP processes is counted, and these data are written into the Mysql database for statistical calculation on a daily basis. The TOP process weight distribution is calculated by setting the weights to 1 for TOP1, 0.8 for TOP2, 0.6 for TOP3, 0.4 for TOP4, and 0.2 for TOP5, and then calculating the number of times each process appears in the TOP ranking on that day and multiplying it by the corresponding weight to obtain the weight.

[0041] S5: Log query and display, establish a query display model, query the result data obtained in step S4 and return it to the front end according to the data structure and agreed form required by the front end. The front end will display the queried data. Finally, the staff will monitor and warn based on the displayed data. For details, please refer to Figure 6 The front-end technology uses the React+Echarts framework and technology, and the back-end uses the SpringBoot+Mybatis framework and technology. The back-end queries the results according to the front-end data display requirements and Mysql data structure; the front-end then displays the results accordingly. The display content includes monitoring and early warning indicators such as the number of abnormal vehicles, the number of vehicles uploading data on the day, and the number of abnormalities on the day, as well as the distribution of process abnormalities, the distribution of TOP process weights, and detailed alarm information based on the selected date, vehicle model, and software version.

[0042] Finally, according to the monitoring and warning information, the corresponding software process of the corresponding terminal controller is optimized and upgraded through OTA. That is, the staff will rectify and optimize the corresponding process of the corresponding vehicle software version of the corresponding vehicle series according to the monitoring and warning information, and upgrade the vehicle software through OTA in a timely manner.

[0043] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the present invention should also fall within the protection scope of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the present invention. Other devices that are the same or similar to the above are all within the protection scope of the present invention.

Claims

1. A method for monitoring and early warning of a vehicle entertainment terminal controller jam, characterized in that: The steps include: S1: Log creation, write the CPU and memory usage of the terminal controller process into the local log, establish a log tracking program, and periodically collect the CPU and memory usage of each process of the terminal controller; S2: Logs are uploaded to the cloud. The cloud platform pulls the terminal controller logs and stores them in the distributed file storage system. S3: Log parsing, establishing a parsing model, converting the unstructured data in the terminal controller log into structured data and storing it in the distributed file storage system; using the readLine method in java.io.BufferedReader to read the log file data stored in the distributed file storage system line by line, and deriving the corresponding key-value pair structure according to each line of data in the document, the key-value pair structure includes the total CPU occupancy rate of the terminal controller process, the total CPU idle rate of the terminal controller process, the process name and the CPU share and memory share log data of the process, which are encapsulated into an object and written into the Hive table in the distributed file storage system by line, wherein each read corresponds to each line in Hive, and increases line by line according to the number of reads; S4: Log calculation, establish a monitoring rule model, read the structured data parsed in step S3, obtain the monitoring result data according to the monitoring rules and store it; the monitoring rule model is as follows: S401: Use SQL language to read the key-value pair structure basic data in the Hive table; S402: Perform monitoring and early warning calculations according to the terminal controller indicator calculation rules. Among them, the total CPU idle rate is lower than the warning setting value as an alarm; the CPU share of a single process is greater than the warning setting value as an alarm; the weight distribution of TOP processes is counted, and these data are written into the Mysql database, and statistical calculations are performed on a daily basis; the TOP process weight distribution is calculated by setting the weights to 1 for TOP1, 0.8 for TOP2, 0.6 for TOP3, 0.4 for TOP4, and 0.2 for TOP5, and then the number of times each process appears in the TOP ranking on that day is calculated and multiplied by the corresponding weight to obtain the weight; S5: Log query and display. Establish a query display model, query the result data obtained in step S4 and return it to the front end according to the data structure and agreed form required by the front end. The front end will display the queried data. Finally, the staff will monitor and warn based on the displayed data.

2. A method for monitoring and warning of a vehicle entertainment terminal controller jamming as claimed in claim 1, characterized in that: In step S1, when the terminal controller is an Android system, the total process CPU and memory occupancy rate, and the CPU occupancy rate TOP5 process status are directly read through the Top command of the Android system of the terminal controller, and then the above data is periodically read and written into the log.info log file and stored.

3. A method for monitoring and warning of a vehicle entertainment terminal controller jamming as claimed in claim 2, characterized in that: If the log.info log file exceeds the set size or the storage time or has been uploaded to the cloud, the log.info log file is cleared in a first-in-first-out manner and then written again.

4. A method for monitoring and warning of a vehicle entertainment terminal controller jamming as claimed in claim 1, characterized in that: In step S2, the cloud platform pulls the terminal controller log in two ways, active pulling or manual pulling, wherein the cloud platform sends a command to read the terminal controller log to the terminal controller. When the terminal controller receives the log reading command, it uploads its terminal controller log to the cloud platform, which then stores it in the distributed file storage system.

5. A method for monitoring and warning of a vehicle entertainment terminal controller jamming as claimed in claim 1, characterized in that: In step S5, the front-end technology adopts the React+Echarts framework and technology, and the back-end adopts the SpringBoot+Mybatis framework and technology. The back-end queries the results according to the front-end data display requirements and the Mysql data structure; the front-end then displays the results accordingly.

6. A method for monitoring and warning of a vehicle entertainment terminal controller jamming as claimed in claim 5, characterized in that: The content displayed in step S5 includes monitoring and early warning indicators such as the number of abnormal vehicles, the number of vehicles uploading data on the day, and the number of abnormalities on the day, as well as the distribution of process abnormality times, TOP process weight distribution, and alarm detailed information data based on the selected date, vehicle model, and software version.