CN116483649A - Process monitoring method and device for passenger parking system, vehicle and storage medium - Google Patents
Process monitoring method and device for passenger parking system, vehicle and storage medium Download PDFInfo
- Publication number
- CN116483649A CN116483649A CN202310335465.1A CN202310335465A CN116483649A CN 116483649 A CN116483649 A CN 116483649A CN 202310335465 A CN202310335465 A CN 202310335465A CN 116483649 A CN116483649 A CN 116483649A
- Authority
- CN
- China
- Prior art keywords
- preset
- parking system
- current process
- consumption value
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 249
- 230000008569 process Effects 0.000 title claims abstract description 213
- 238000012544 monitoring process Methods 0.000 title claims abstract description 72
- 230000002159 abnormal effect Effects 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims description 14
- 238000012806 monitoring device Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 7
- 238000007639 printing Methods 0.000 claims description 6
- 206010039203 Road traffic accident Diseases 0.000 abstract description 9
- 230000000903 blocking effect Effects 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000003491 array Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3034—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention relates to the technical field of vehicles, in particular to a process monitoring method and device of a bus parking system, a vehicle and a storage medium, wherein the method comprises the following steps: and acquiring a task time stamp of the latest process of the boarding and parking system, judging whether the boarding and parking system meets a preset restarting condition according to the difference value between the task time stamp and the current time, restarting the stopping process of the boarding and parking system if the boarding and parking system meets the preset restarting condition, and sending system log data and abnormal stack information corresponding to the stopping process to the target cloud platform. Therefore, the problems that the traffic accident is caused by memory overflow and blocking under the condition that the automobile is loaded with too many application programs, the system faults are not easy to be checked and the like are solved, and the intelligent process monitoring method is provided, so that the experience of driving users is greatly improved.
Description
Technical Field
The invention relates to the technical field of vehicles, in particular to a process monitoring method and device of a passenger parking system, a vehicle and a storage medium.
Background
With the continuous development of the intellectualization of automobiles, applications carried on automobile systems, such as automatic driving, bus parking, intelligent voice interaction, etc., are increasing, so that the number of processes running in an SOC (System on Chip) is increasing. If the program optimization is improper, memory overflow and ANR (Application Not Response, application program unresponsive) are easy to occur, the following is abbreviated: and once the on-site task stops, the application stops running, so that the experience of a driving user can be influenced, the circulation of the on-site task can be seriously influenced, and even a traffic accident can be caused. In addition, due to the source closing property of the intelligent driving program source code, for the reason of system faults, professional engineers can only conduct detailed investigation on the vehicle, collect relevant data and deliver the data to a provider, and then optimize the code, so that the whole process is time-consuming and labor-consuming.
The process software process monitoring system must always reside in the memory to play a role in monitoring, so that an application software user cannot perceive the existence of the monitoring system, and even if the monitoring system is found, the monitoring system cannot be easily stopped to operate, and the existing process monitoring system must have the following functions: 1. the process monitoring system can automatically run after being started; 2. the process monitoring system can monitor the operation of various processes in the computer and terminate abnormal processes at any time; 3. the process monitoring system occupies as little system resources as possible.
In the related technology, the monitoring management of the application process is carried out by using the corresponding function through monitoring the starting times of the application process, so that the effective monitoring of the application process is realized. However, the solution is not suitable for intelligent driving systems, and is not suitable for troubleshooting the cause of the system failure.
Disclosure of Invention
The application provides a process monitoring method, a process monitoring device, a vehicle and a storage medium of a bus parking system, which are used for solving the problems that a memory overflows and is blocked to cause traffic accidents and the system faults are not easy to check and the like when the bus is provided with a plurality of application programs, and provides an intelligent process monitoring method which greatly improves the experience of driving users.
An embodiment of a first aspect of the present application provides a process monitoring method of a proxy parking system, including the following steps: acquiring a task time stamp of the latest process of the bus parking system; judging whether the bus parking system meets a preset restarting condition according to the difference value between the task time stamp and the current time; and restarting the stopping process of the valet parking system if the valet parking system meets the preset restarting condition, and sending system log data and abnormal stack information corresponding to the stopping process to a target cloud platform.
According to the technical means, whether the bus parking system needs to be restarted or not can be judged according to the difference value between the task time stamp and the current time, and the corresponding abnormal process log and information are sent to the cloud platform, so that the bus parking system process can be effectively monitored, the process can be recovered, a small amount of resources can be occupied, and the saved abnormal information is beneficial to technical personnel positioning.
Optionally, in some embodiments, the determining whether the vale parking system meets a preset restart condition according to a difference between the task timestamp and the current time includes: judging whether the difference value is larger than a preset threshold value or not; if the difference value is larger than the preset threshold value, judging that the bus parking system meets the preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
According to the technical means, as the preset threshold value related to the response time of the process is set, if the system calculates that the difference value between the task timestamp and the current moment is larger than the preset threshold value, the process is restarted. The technical means provides a condition for judging whether the process needs to be restarted.
Optionally, in some embodiments, the process monitoring method of the valet parking system further includes: acquiring running state data of the bus parking system, wherein the running state data comprises a central processing unit CPU (Central Processing Unit ) occupancy rate of a current process and a memory consumption value of the current process; judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not; if the CPU occupancy rate of the current process and/or the memory consumption value of the current process meet the preset alarm condition, printing alarm log, and sending data corresponding to the CPU occupancy rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
According to the technical means, the state monitoring of the intelligent system of the vehicle can be realized, and the running states of the CPU, the memory use condition and the like of the system are monitored, so that the system is monitored by judging whether the CPU occupation rate of the current process and the memory consumption value of the current process meet the early warning condition or not, and the robustness of the system is improved. Due to the fact that the cloud platform is used, abnormal information can be effectively stored, and the utilization efficiency of company resources is improved.
Optionally, in some embodiments, the determining whether the CPU occupancy of the current process and/or the memory consumption value of the current process meets a preset alarm condition includes: judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value; and if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
According to the technical means, the method and the device can judge whether the CPU occupation rate of the current process and the memory consumption value of the current process meet the preset standard, so that whether the current process meets the preset alarm condition or not is judged.
An embodiment of a second aspect of the present application provides a process monitoring device of a proxy parking system, including: the first acquisition module is used for acquiring a task time stamp of the latest process of the bus parking system; the first judging module is used for judging whether the bus parking system meets a preset restarting condition according to the difference value between the task time stamp and the current moment; and the monitoring module is used for restarting the stopping process of the bus-parking system when the bus-parking system meets the preset restarting condition, and sending the system log data and the abnormal stack information corresponding to the stopping process to the target cloud platform.
Optionally, in some embodiments, the first determining module is further configured to: judging whether the difference value is larger than a preset threshold value or not; if the difference value is larger than the preset threshold value, judging that the bus parking system meets the preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
Optionally, in some embodiments, the process monitoring device of the valet parking system further includes: the second acquisition module is used for acquiring the running state data of the bus parking system, wherein the running state data comprises the CPU occupancy rate of the central processing unit of the current process and the memory consumption value of the current process; the second judging module is used for judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not; the processing module is used for printing an alarm log when the CPU occupation rate of the current process and/or the memory consumption value of the current process meet the preset alarm condition, and sending data corresponding to the CPU occupation rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
Optionally, in some embodiments, the second determining module is specifically configured to: judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value; and if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
An embodiment of a third aspect of the present application provides a vehicle, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to realize the process monitoring method of the bus parking system.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor for implementing a process monitoring method of a proxy parking system as described in the above embodiment.
And if the bus parking system meets the preset restarting condition, restarting the stopping process of the bus parking system, and sending system log data and abnormal stack information corresponding to the stopping process to the target cloud platform. Therefore, the problems that the traffic accident is caused by memory overflow and blocking under the condition that the automobile is loaded with too many application programs, the system faults are not easy to be checked and the like are solved, and the intelligent process monitoring method is provided, so that the experience of driving users is greatly improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a process monitoring method of a proxy parking system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a process monitoring status system provided in accordance with one embodiment of the present application;
FIG. 3 is a schematic diagram of a process monitoring device of a customer parking system according to an embodiment of the present application;
fig. 4 is a schematic structural view of a vehicle according to an embodiment of the present application.
Reference numerals illustrate: the system comprises a process monitoring device of a 10-bus parking system, a 100-first acquisition module, a 200-first judgment module and a 300-monitoring module.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following describes a process monitoring method, a device, a vehicle and a storage medium of a customer parking system according to an embodiment of the present application with reference to the accompanying drawings. Aiming at the problems that the memory overflows and is blocked to cause traffic accidents and the system faults are not easy to be checked under the condition that the automobile is provided with excessive application programs in the background art, the application provides a process monitoring method of a passenger parking system. Therefore, the problems that the traffic accident is caused by memory overflow and blocking under the condition that the automobile is loaded with too many application programs, the system faults are not easy to be checked and the like are solved, and the intelligent process monitoring method is provided, so that the experience of driving users is greatly improved.
Specifically, fig. 1 is a flow chart of a process monitoring method of a proxy parking system provided in an embodiment of the present application.
As shown in fig. 1, the process monitoring method of the bus parking system includes the following steps:
in step S101, a task time stamp of the latest process of the proxy parking system is acquired.
It should be noted that, the process monitoring system is used for monitoring the current process state in the process of parking the bus, and the monitoring program consists of two parts, namely a software watchdog and system state monitoring, wherein the software watchdog is used for acquiring the task time stamp of the latest process of the bus parking system. In addition, the process monitoring system can automatically run after the vehicle parking system is started.
Specifically, fig. 2 is a schematic diagram of a process monitoring status system provided in an embodiment of the present application, as shown in fig. 2, where a parking system and a monitoring system in an embodiment of the present application run in parallel, and a software watchdog program is installed in the monitoring system, where the software watchdog program monitors a message from a dog feeding end in real time, that is, receives a signal of a process running in the parking system, and records a current system time as a latest dog feeding time, that is, a latest time of receiving a message while the software watchdog program receives the signal.
For example, as shown in fig. 2, at a certain moment, a process 2 in the vehicle parking system is started, and in step S201, the software watchdog program receives a timing watchdog signal and records a time stamp of the start of the process 2 in the proxy parking system as a task time stamp of the latest process.
In step S102, it is determined whether the parking system satisfies a preset restart condition according to a difference between the task timestamp and the current time.
Further, in some embodiments, determining whether the valet parking system meets the preset restart condition according to the difference between the task timestamp and the current time includes: judging whether the difference value is larger than a preset threshold value or not; if the difference value is larger than a preset threshold value, judging that the bus parking system meets a preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
The preset restart condition in the embodiment of the present application is determined according to the difference between the task timestamp and the current time, and after the task timestamp of the latest process of the parking system is obtained in step S101, the monitoring system needs to make the difference between the task timestamp and the current time. The embodiment of the application is provided with a preset threshold value related to the difference value between the task time stamp and the current time, the calculated difference value is compared with the preset threshold value, and if the difference value is larger than the preset threshold value, the process is judged to have stopped working for a period of time at the moment, so that the process is judged to meet the preset restarting condition. In addition, the preset threshold value in the embodiment of the present application may be set by a person skilled in the art according to a service scenario, and preferably, the threshold value may be set to 1 minute.
Specifically, as shown in fig. 2, in step S203, after the software watchdog in the embodiment of the present application is started, the monitoring system automatically starts a periodic timing task to detect an exceeding time, a detection rule is to determine whether a difference value between a current system and a latest heartbeat time is within a threshold range, if the difference value exceeds a preset threshold value, it is determined that a two-time feeding interval exceeds the threshold value, then it is determined that the process has stopped working for a period of time, and if the monitoring system calculates that the difference value between a task timestamp and the current time does not exceed the preset threshold value, it continues to detect the time of the watchdog at a fixed time. Therefore, the process monitoring system disclosed by the embodiment of the application can monitor the operation of various processes in the vehicle parking system.
In step S103, if the boarding parking system meets the preset restart condition, restarting the stopping process of the boarding parking system, and sending the system log data and the abnormal stack information corresponding to the stopping process to the target cloud platform.
It should be noted that, in the embodiment of the present application, a cloud platform may effectively store system log data and process exception information, so as to effectively reduce positioning problems of technicians and improve utilization efficiency of company resources.
Specifically, as shown in fig. 2, after the interval between two dog feeding exceeds the threshold, the monitoring system determines that the process has stopped working for a period of time, and step S204 is executed at this time, that is, the stopped process program needs to be restarted to ensure the normal operation of the parking system, so that the process monitoring system in the embodiment of the present application can detect the operation of various processes in the vehicle parking system in real time, and terminate the abnormal process at any time. Meanwhile, the monitoring system records system log data and abnormal stack information and uploads the data to the cloud platform, and furthermore, the process monitoring system of the embodiment of the application can occupy as little system resources as possible.
Therefore, the embodiment of the application introduces the software watchdog, so that the system can monitor, effectively recover the process and improve the robustness of the system, and further, the application can avoid the condition that the application stops running due to unresponsiveness of the program. In addition, the monitoring system and the parking system of the vehicle are operated in parallel, the monitoring system and the parking system of the vehicle are not interfered with each other, the monitoring program is a process independent of a bus parking program, the monitoring program can run under a frame or can be independent of the frame, and the application program carried on the vehicle is monitored in real time in an inter-process communication mode, so that the normal operation of the driving system is ensured.
Optionally, in some embodiments, the process monitoring method of the valet parking system further includes: acquiring running state data of a bus parking system, wherein the running state data comprises a CPU occupancy rate of a central processing unit of a current process and a memory consumption value of the current process; judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not; if the CPU occupancy rate of the current process and/or the memory consumption value of the current process meet the preset alarm conditions, printing alarm log, and sending data corresponding to the CPU occupancy rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
It can be appreciated that when the number of applications installed on the parking system is excessive, memory overflow may occur, so that the applications stop running, thereby affecting the driving experience of the driver and even causing traffic accidents. Therefore, the monitoring system is provided with the state monitoring module, and the state monitoring module monitors running state data such as the CPU occupation rate, the memory service condition and the like of the system so as to prevent the memory overflow or the blocking condition of the automobile system. That is, after the monitoring system receives the running state data sent by the parking system, whether the data meets the early warning condition is analyzed, if the data meets the early warning condition, the monitoring system sends an alarm signal, meanwhile, the system data related to the parking process of the passengers under the system is read, and the system data is sent to the data background through a wireless network in a data compression packet mode.
Specifically, the embodiment of the application presets an alarm condition about the running state data, and the alarm condition is used for judging whether the progress of the parking system overflows or is blocked. As shown in fig. 2, in step S202, if the monitoring system detects that the CPU occupancy rate of the current process meets the preset alarm condition, an alarm log is printed, and data corresponding to the CPU occupancy rate of the current process is sent to the target cloud platform; if the monitoring system detects that the memory consumption value of the current process meets the preset alarm condition, an alarm log is printed, and data corresponding to the memory consumption value of the current process is sent to the target cloud platform; when the CPU occupancy rate and the memory consumption value of the current process meet the preset alarm conditions, the processing mode of the system is similar to the processing mode, and the details are not repeated here.
Further, in some embodiments, determining whether the CPU occupancy of the current process and/or the memory consumption value of the current process meets a preset alarm condition includes: judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value; if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
The preset occupancy rate of the embodiment of the present application is compared with the CPU occupancy rate of the current process, and is used for determining whether the CPU occupancy rate of the process overflows, and the preset occupancy rate of the embodiment of the present application is compared with the memory consumption value of the current process, and is used for determining whether the memory consumption value of the current process is normal.
It should be noted that, the preset alarm condition in the present application may be that the CPU occupancy rate of the current process is greater than a preset occupancy rate, or whether the memory consumption value of the current process is greater than a preset consumption value, or both the CPU occupancy rate of the current process and the memory consumption value of the current process are greater than preset values.
Therefore, the state monitoring module can monitor running state data such as CPU (Central processing Unit) and memory use conditions of the parking system, and save information of abnormal processes to the cloud platform, so that the time for positioning problems of technicians is effectively reduced, and the utilization efficiency of company resources is improved.
According to the process monitoring method of the boarding and parking system, the task time stamp of the latest process of the boarding and parking system is obtained, whether the boarding and parking system meets the preset restarting condition is judged according to the difference value between the task time stamp and the current time, if the boarding and parking system meets the preset restarting condition, the stopping process of the boarding and parking system is restarted, and system log data and abnormal stack information corresponding to the stopping process are sent to the target cloud platform. Therefore, the problems that the traffic accident is caused by memory overflow and blocking under the condition that the automobile is loaded with too many application programs, the system faults are not easy to be checked and the like are solved, and the intelligent process monitoring method is provided, so that the experience of driving users is greatly improved.
Next, a process monitoring device of a valet parking system according to an embodiment of the present application will be described with reference to the accompanying drawings.
Fig. 3 is a block schematic diagram of a process monitoring device of the valet parking system according to an embodiment of the present application.
As shown in fig. 3, the process monitoring device 10 of the passenger parking system includes: the device comprises a first acquisition module 100, a first judgment module 200 and a monitoring module 300.
The first obtaining module 100 is configured to obtain a task timestamp of a latest process of the boarding and parking system; the first judging module 200 is configured to judge whether the parking system meets a preset restart condition according to a difference between the task timestamp and the current time; and the monitoring module 300 is configured to restart a stop process of the boarding and parking system when the boarding and parking system meets a preset restart condition, and send system log data and abnormal stack information corresponding to the stop process to the target cloud platform.
Optionally, in some embodiments, the first determining module 200 is further configured to: judging whether the difference value is larger than a preset threshold value or not; if the difference value is larger than a preset threshold value, judging that the bus parking system meets a preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
Optionally, in some embodiments, the process monitoring device 10 of the proxy parking system further includes: the second acquisition module is used for acquiring the running state data of the bus parking system, wherein the running state data comprises the CPU occupancy rate of the central processing unit of the current process and the memory consumption value of the current process; the second judging module is used for judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not; the processing module is used for printing alarm log when the CPU occupation rate of the current process and/or the memory consumption value of the current process meet the preset alarm condition, and sending data corresponding to the CPU occupation rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
Optionally, in some embodiments, the second determining module is specifically configured to: judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value; if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
It should be noted that the foregoing explanation of the embodiment of the process monitoring method of the proxy parking system is also applicable to the process monitoring device of the proxy parking system of the embodiment, and is not repeated herein.
According to the process monitoring device of the boarding and parking system, provided by the embodiment of the application, by acquiring the task time stamp of the latest process of the boarding and parking system, whether the boarding and parking system meets the preset restarting condition is judged according to the difference value between the task time stamp and the current time, if the boarding and parking system meets the preset restarting condition, the stopping process of the boarding and parking system is restarted, and system log data and abnormal stack information corresponding to the stopping process are sent to the target cloud platform. Therefore, the problems that the traffic accident is caused by memory overflow and blocking under the condition that the automobile is loaded with too many application programs, the system faults are not easy to be checked and the like are solved, and the intelligent process monitoring method is provided, so that the experience of driving users is greatly improved.
Fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
memory 401, processor 402, and a computer program stored on memory 401 and executable on processor 402.
The processor 402 implements the process monitoring method of the valet parking system provided in the above embodiment when executing the program.
Further, the vehicle further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing a computer program executable on the processor 402.
The memory 401 may include high speed RAM (Random Access Memory ) memory, and may also include non-volatile memory, such as at least one disk memory.
If the memory 401, the processor 402, and the communication interface 403 are implemented independently, the communication interface 403, the memory 401, and the processor 402 may be connected to each other by a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component, external device interconnect) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 4, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 401, the processor 402, and the communication interface 403 are integrated on a chip, the memory 401, the processor 402, and the communication interface 403 may perform communication with each other through internal interfaces.
The processor 402 may be a CPU (Central Processing Unit ) or ASIC (Application Specific Integrated Circuit, application specific integrated circuit) or one or more integrated circuits configured to implement embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the process monitoring method of the valet parking system as above.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "N" is at least two, such as two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable gate arrays, field programmable gate arrays, and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.
Claims (10)
1. The process monitoring method of the bus parking system is characterized by comprising the following steps of:
acquiring a task time stamp of the latest process of the bus parking system;
judging whether the bus parking system meets a preset restarting condition according to the difference value between the task time stamp and the current time; and
and if the bus parking system meets the preset restarting condition, restarting a stopping process of the bus parking system, and sending system log data and abnormal stack information corresponding to the stopping process to a target cloud platform.
2. The method according to claim 1, wherein the determining whether the proxy parking system satisfies a preset restart condition according to a difference between the task timestamp and a current time comprises:
judging whether the difference value is larger than a preset threshold value or not;
if the difference value is larger than the preset threshold value, judging that the bus parking system meets the preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
3. The method as recited in claim 1, further comprising:
acquiring running state data of the bus parking system, wherein the running state data comprises a CPU occupancy rate of a central processing unit of a current process and a memory consumption value of the current process;
judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not;
if the CPU occupancy rate of the current process and/or the memory consumption value of the current process meet the preset alarm condition, printing alarm log, and sending data corresponding to the CPU occupancy rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
4. A method according to claim 3, wherein said determining whether the CPU occupancy of the current process and/or the memory consumption value of the current process meets a preset alarm condition comprises:
judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value;
and if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
5. A process monitoring device for a passenger parking system, the device comprising:
the first acquisition module is used for acquiring a task time stamp of the latest process of the bus parking system;
the first judging module is used for judging whether the bus parking system meets a preset restarting condition according to the difference value between the task time stamp and the current moment; and
and the monitoring module is used for restarting the stopping process of the valet parking system when the valet parking system meets the preset restarting condition, and sending system log data and abnormal stack information corresponding to the stopping process to the target cloud platform.
6. The apparatus of claim 5, wherein the first determining module is further configured to:
judging whether the difference value is larger than a preset threshold value or not;
if the difference value is larger than the preset threshold value, judging that the bus parking system meets the preset restarting condition; otherwise, judging that the bus parking system does not meet the preset restarting condition.
7. The apparatus as recited in claim 5, further comprising:
the second acquisition module is used for acquiring the running state data of the bus parking system, wherein the running state data comprises the CPU occupancy rate of the central processing unit of the current process and the memory consumption value of the current process;
the second judging module is used for judging whether the CPU occupation rate of the current process and/or the memory consumption value of the current process meet preset alarm conditions or not;
the processing module is used for printing an alarm log when the CPU occupation rate of the current process and/or the memory consumption value of the current process meet the preset alarm condition, and sending data corresponding to the CPU occupation rate of the current process and/or the memory consumption value of the current process to the target cloud platform.
8. The apparatus of claim 7, wherein the second determining module is specifically configured to:
judging whether the CPU occupancy rate of the current process is larger than a preset occupancy rate and/or whether the memory consumption value of the current process is larger than a preset consumption value;
and if the CPU occupancy rate of the current process is greater than the preset occupancy rate and/or the memory consumption value of the current process is greater than the preset consumption value, judging that the preset alarm condition is met.
9. A vehicle, characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the process monitoring method of the valet parking system as claimed in any one of claims 1-4.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that the program is executed by a processor for implementing a process monitoring method of a valet parking system as claimed in any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310335465.1A CN116483649A (en) | 2023-03-29 | 2023-03-29 | Process monitoring method and device for passenger parking system, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310335465.1A CN116483649A (en) | 2023-03-29 | 2023-03-29 | Process monitoring method and device for passenger parking system, vehicle and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116483649A true CN116483649A (en) | 2023-07-25 |
Family
ID=87216888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310335465.1A Pending CN116483649A (en) | 2023-03-29 | 2023-03-29 | Process monitoring method and device for passenger parking system, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116483649A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117112550A (en) * | 2023-10-24 | 2023-11-24 | 广东中思拓大数据研究院有限公司 | Data cleaning method, data cleaning device, computer device and storage medium |
-
2023
- 2023-03-29 CN CN202310335465.1A patent/CN116483649A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117112550A (en) * | 2023-10-24 | 2023-11-24 | 广东中思拓大数据研究院有限公司 | Data cleaning method, data cleaning device, computer device and storage medium |
CN117112550B (en) * | 2023-10-24 | 2024-02-27 | 广东中思拓大数据研究院有限公司 | Data cleaning method, data cleaning device, computer device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110308732B (en) | Failure detection method of automatic driving controller and automatic driving controller | |
KR101393539B1 (en) | Integrated network system for vehicle | |
JP7508703B2 (en) | Method for managing ECU in vehicle, ECU and readable storage medium | |
US20110035180A1 (en) | Diagnostic apparatus and system adapted to diagnose occurrence of communication error | |
US8024625B2 (en) | Network system for diagnosing operational abnormality of nodes | |
KR101593571B1 (en) | Black box apparatus for diagnosing error of electronic control unit for vehicle and control method thereof | |
CN112148538A (en) | Complete vehicle fault identification method, device and system, vehicle and computer readable storage medium | |
CN116483649A (en) | Process monitoring method and device for passenger parking system, vehicle and storage medium | |
CN111813590B (en) | Method and device for diagnosing abnormal reset of main control module and main control module | |
CN113467413B (en) | Method, detection equipment and detection system for detecting automobile fault | |
JP2013106200A (en) | Communication repeater for vehicle and sleep control method | |
CN110147090B (en) | Method and system for processing controller local area network bus closing fault | |
CN114168071B (en) | Distributed cluster capacity expansion method, distributed cluster capacity expansion device and medium | |
CN113194029B (en) | Method, system, medium, and apparatus for automatically identifying and isolating service grid sidecar faults | |
CN111114317A (en) | Vehicle speed control method, device and equipment | |
KR20100020253A (en) | Monitoring apparatus for message transmission in network for a vehicle | |
CN115220963A (en) | OTA upgrade exception recovery method and device for vehicle, vehicle and storage medium | |
CN115657639A (en) | System, method, device and storage medium for monitoring functions of vehicle-mounted chip | |
JP7375619B2 (en) | Anomaly detection device | |
CN114089119A (en) | High-voltage loop fault positioning method and device, electric vehicle and storage medium | |
CN113536065A (en) | Method, device and system for determining state of vehicle event and storage medium | |
CN115223273A (en) | TCU data monitoring method and device, terminal equipment and storage medium | |
CN110535920A (en) | Method, apparatus, storage medium and the vehicle of reporting fault | |
CN118312342A (en) | Storage method, storage device, electronic equipment and readable storage medium for diagnostic event | |
US20240208441A1 (en) | Electronic control unit, electronic control system, log processing method, and non-transitory computer-readable storage medium storing log processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |