Restart event monitoring method and device and computer readable storage medium
By implementing the restart event monitoring method in TBOX, and storing and reporting restart events in preset cycles, the problem of insufficient monitoring of TBOX restart event is solved, improving system stability and reducing maintenance costs.
Patent Information
- Application Number
- CN202411098497.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-01
AI Technical Summary
In the prior art, the restart event of TBOX cannot be effectively monitored, affecting the stability of vehicle network and service functions.
A restart event monitoring method is proposed, including storing system moments according to preset cycles, receiving and recording module restart messages, distinguishing between normal and abnormal restart events, and reporting stored events to the monitoring platform.
It realizes timely and effective monitoring of TBOX restart events, improves system stability and reduces maintenance costs.
Smart Images

Figure CN118890296A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle communication technology, and in particular to a restart event monitoring method, device and computer-readable storage medium. Background Art
[0002] In the existing technology, with the development of science and technology, the degree of vehicle intelligence is getting higher and higher, which also promotes the evolution of electrical architecture towards regional control and central integration. The domain controller is divided into cockpit domain controller, autonomous driving domain controller, power domain controller, chassis domain controller, and body domain controller. Among them, TBOX (Telematics Box, remote communication terminal) plays an increasingly important role as a carrier for wireless network transmission of vehicle data. It will also exist as an important electronic unit of domain control, and its functions are becoming more and more complex.
[0003] The current problem is: in order to meet national standards and take into account the intelligent needs of products, car manufacturers need to provide customers with a better driving experience, integrated personalized functions, and higher and higher levels of intelligence. As the network hub of the entire vehicle, the operation stability of TBOX is crucial. If TBOX restarts abnormally during normal use of the vehicle, it will affect various business functions related to the network, Ethernet, etc.
[0004] Therefore, how to effectively monitor the restart of TBOX has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] In order to overcome the deficiencies in the prior art, an object of the present invention is to provide a restart event monitoring method, device and computer-readable storage medium to solve the current problem that TBOX restart events cannot be effectively monitored.
[0006] The present invention proposes a restart event monitoring method, which includes: Store the current system time according to the preset first cycle; storing normal restart events according to the module restart message received at the current system time, and storing abnormal restart events according to the module restart record within a preset range of the system time recorded before the restart; The stored normal restart event and / or the abnormal restart event is reported to the monitoring platform according to a preset second period.
[0007] Optionally, storing the current system time according to a preset first period specifically includes: Starting a preset monitoring program in the vehicle's remote communication terminal; The time updating and storing operation of the first cycle is performed by the monitoring program, wherein the system time of the remote communication terminal is acquired and stored by the monitoring program at periodic intervals of the first cycle, and the terminal enters a dormant state after the acquisition of the system time is completed.
[0008] Optionally, storing a normal restart event according to a module restart message received at a current system time specifically includes: The receiving status of the module restart message is monitored by the monitoring program according to the first period, wherein if it is determined that the module restart message is received, the module restart message is stored as a normal restart event.
[0009] Optionally, storing the abnormal restart event according to the module restart record within a preset range of the system time recorded before the restart specifically includes: The monitoring program monitors the system time recorded before restart according to the first cycle, and checks the module restart record status within a preset range before the recorded system time, wherein if a module restart record exists, the module restart record is stored as an abnormal restart event.
[0010] Optionally, reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to the preset second period specifically includes: Detecting the storage status of the normal restart event and / or the abnormal restart event through the monitoring program; If there is an event storage record, detecting the connection status between the remote communication terminal and the monitoring platform through the monitoring program; If the connection is successfully established, the stored data of the normal restart event and / or the abnormal restart event is reported to the monitoring platform.
[0011] Optionally, the method further comprises: According to the attributes or types of each module, the corresponding normal restart event or abnormal restart event is recorded, wherein the attributes include the importance or priority of the module, and the type includes the type of module function or the type of module control object.
[0012] Optionally, recording a corresponding normal restart event or abnormal restart event according to the attribute or type of the module specifically includes: Divide all modules into target monitoring modules and non-target monitoring modules; Record abnormal restart events of the target monitoring module and normal restart events of non-target monitoring modules.
[0013] Optionally, the method further comprises: The second period is set according to the stored normal restart event and / or the abnormal restart event, wherein the period time for reporting the abnormal restart event is shorter than the period time for reporting the normal restart event.
[0014] The present invention also proposes a restart event monitoring device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the restart event monitoring method as described in any one of the above items when executed by the processor.
[0015] The present invention also proposes a computer-readable storage medium, on which a restart event monitoring program is stored. When the restart event monitoring program is executed by a processor, the steps of the restart event monitoring method as described in any one of the above items are implemented.
[0016] The restart event monitoring method, device and computer-readable storage medium of the present invention are implemented by storing the current system time according to a preset first cycle; storing normal restart events according to the module restart message received at the current system time, and storing abnormal restart events according to the module restart record within a preset range of the system time recorded before the restart; and reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to a preset second cycle. A timely and effective restart event monitoring solution is implemented, which improves the stability of the system and reduces the manpower and material costs of maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which: Figure 1 is a first flow chart of the restart event monitoring method of the present invention; Figure 2 It is a connection relationship diagram of the restart event monitoring method of the present invention. DETAILED DESCRIPTION
[0018] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0019] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0020] Figure 1 This embodiment proposes a restart event monitoring method, which includes: S1. Store the current system time according to the preset first cycle; S2. storing a normal restart event according to the module restart message received at the current system time, and storing an abnormal restart event according to the module restart record within a preset range of the system time recorded before the restart; S3. Reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to a preset second period.
[0021] Optionally, in this embodiment, a preset monitoring program is implemented in TBOX, which is used to record the restart information and actively report the restart data to a remote monitoring server, so that the remote monitoring server stores the received data. At the same time, the remote monitoring server can dynamically display and update the restart data of TBOX based on the web page interface, thereby realizing status monitoring of TBOX.
[0022] Optionally, in this embodiment, on the module side of TBOX, the restart is divided into two types: normal restart and abnormal restart; that is, in response to demand and system abnormalities, the necessary restart operation can ensure the normal operation of the system, which is a normal restart, for example, the restart after OTA (over-the-air upgrade) upgrade is for the update loading of the system; and the abnormal restart is a restart outside the normal restart strategy.
[0023] Optionally, in this embodiment, the restart monitoring program implemented by TBOX is used to perform four operations: first, obtain and store the system time according to a preset first period (for example, every second); second, receive the normal restart message of other module functions, and store the message data in a database; third, start the monitoring program, obtain the stored time, record the restart data, and store it in the database; fourth, when the network connection is normal, connect to the remote platform and report the restart data to the remote monitoring server.
[0024] Optionally, in this embodiment, for business functions that require restarting of other module functions of TBOX, restart data (including restart time, restart reason, etc.) needs to be sent to the restart monitoring program before the restart operation, so that the program stores the restart data.
[0025] Optionally, in this embodiment, the remote monitoring program of the remote monitoring server includes a service layer and a web layer, wherein: the service layer listens to the connection of the tbox monitoring program, receives the restart data of TBOX and stores it in the database; and the web layer obtains the service layer database data in real time, updates the web interface, and dynamically presents the restart information of each TBOX.
[0026] Optionally, in this embodiment, the monitoring personnel can select a corresponding TBOX for monitoring and restarting according to the ID information of the TBOX, thereby facilitating problem analysis.
[0027] Optionally, in this embodiment, please refer to Figure 2 The connection relationship diagram is shown. Among them, multiple modules in TBOX communicate data with the monitoring module through inter-process communication. For example, when there is a restart operation, the functional module sends the restart message to the monitoring program through inter-process communication; and the monitoring platform is divided into a service layer and a web layer, in which: the service program provides connection with the TBOX monitoring module and receives data; the data storage module stores the restart data; the web layer interface updates and displays in real time according to the database storage data.
[0028] Optionally, in this embodiment, the TBOX and the monitoring platform communicate via TCP based on the wireless network, so the restart data can be reported to the platform via HTTP POST.
[0029] Optionally, in this embodiment, the purpose of restart monitoring on the TBOX module side is to be able to learn about the restart of the TBOX module, and to promptly know the stability of the TBOX system based on the TBOX restart information displayed on the monitoring platform interface, so as to support R&D personnel in continuous optimization and after-sales personnel in timely handling, thereby improving the stability of TBOX and reducing after-sales labor costs.
[0030] The beneficial effect of this embodiment is that by storing the current system time according to the preset first cycle; storing the normal restart event according to the module restart message received at the current system time, and storing the abnormal restart event according to the module restart record within the preset range of the system time recorded before the restart; and reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to the preset second cycle, a timely and effective restart event monitoring solution is implemented, the stability of the system is improved, and the manpower and material costs of maintenance are reduced.
[0031] Optionally, in this embodiment, the step of storing the current system time according to the preset first cycle specifically includes: starting a preset monitoring program in the remote communication terminal of the vehicle; executing the time update storage operation of the first cycle through the monitoring program, wherein the system time of the remote communication terminal is acquired and stored according to the periodic interval of the first cycle through the monitoring program, and entering a dormant state after the acquisition of the system time is completed. For example, the monitoring program starts a cycle of the preset cycle, acquires the system time once every one second, stores the acquired system time, then sleeps for one second, acquires and stores the system time again, and executes in this cycle.
[0032] Optionally, in this embodiment, the step of storing a normal restart event according to the module restart message received at the current system time specifically includes: monitoring the reception status of the module restart message according to the first cycle by the monitoring program, wherein if it is determined that the module restart message is received, the module restart message is stored as a normal restart event. For example, in the above cycle, if it is determined that the module restart message is received, the received system time is obtained, and the module restart message is stored as a normal restart event in combination with the system time.
[0033] Optionally, in this embodiment, the step of storing an abnormal restart event according to the module restart record within the preset range of the system time recorded before the restart specifically includes: monitoring the system time recorded before the restart according to the first cycle by the monitoring program, and checking the module restart record status within the preset range before the recorded system time, wherein if there is a module restart record, the module restart record is stored as an abnormal restart event. For example, in the above cycle, if an interruption occurs, after the system is started, the system time stored before the restart is obtained, and then, based on the system time, the module restart record within the corresponding range (for example, the system time and the previous twenty seconds are used as the range, or the twenty seconds before the system time to the ten seconds after the system time are used as the range) is determined, and combined with the system time stored before the restart, it is stored as an abnormal restart event.
[0034] Optionally, in this embodiment, the step of reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to the preset second cycle specifically includes: detecting the storage status of the normal restart event and / or the abnormal restart event through the monitoring program; if there is an event storage record, detecting the connection status of the remote communication terminal and the monitoring platform through the monitoring program; if the connection is successfully established, reporting the storage data of the normal restart event and / or the abnormal restart event to the monitoring platform. Further, receiving a restart data request instruction from the monitoring platform, and checking the storage status of the normal restart event and / or the abnormal restart event according to the restart data request instruction, if there is an event storage record, reporting the storage data of the normal restart event and / or the abnormal restart event to the monitoring platform. Further, receiving a connection request from the monitoring platform, and when the connection is established, receiving a restart data update instruction, and reporting the storage data of the normal restart event and / or the abnormal restart event to the monitoring platform according to the restart data update instruction.
[0035] Optionally, the method of this embodiment further includes: recording corresponding normal restart events or abnormal restart events according to the attributes or types of each module, wherein the attributes include the importance or priority of the module, and the types include the types of module functions or the types of module control objects. For example, according to the different attributes of the modules, the modules are divided into multiple groups, and each group records normal restart events separately, or records abnormal restart events separately, or records normal restart events and abnormal restart events simultaneously; similarly, according to the type of module function, a type of module is determined, and its normal restart events are recorded separately, or its abnormal restart events are recorded separately, or its normal restart events and abnormal restart events are recorded simultaneously.
[0036] Optionally, in this embodiment, according to the attributes or types of the modules, the steps of recording the corresponding normal restart events or abnormal restart events specifically include: dividing all modules into target monitoring modules and non-target monitoring modules; recording abnormal restart events of target monitoring modules, and normal restart events of non-target monitoring modules. For example, according to the monitoring requirements of the monitoring platform, the monitoring program is actively configured for the respective setting ranges of the target monitoring module and the non-target monitoring module, so as to flexibly monitor the restart events of each module in a differentiated manner. For another example, the respective setting ranges of the target monitoring module and the non-target monitoring module are set according to the monitoring program, so as to improve the processing efficiency of the monitoring platform for the restart events of each module received.
[0037] Optionally, the method of this embodiment further includes: setting the second period according to the stored normal restart event and / or the abnormal restart event, wherein the period time for reporting the abnormal restart event is shorter than the period time for reporting the normal restart event.
[0038] Optionally, the method of this embodiment further includes: setting the second period according to the number of stored normal restart events and / or abnormal restart events, wherein the more restart events are reported, the shorter the reporting period time is.
[0039] Optionally, the method of this embodiment further includes: setting the second period according to the number of stored abnormal restart events, wherein the more the number of reported abnormal restart events is, the shorter the reporting period is.
[0040] It can be seen that in this embodiment, a restart monitoring program is implemented in TBOX to distinguish and record normal restarts and abnormal restarts, and the restart data is recorded in the local database. The restart records in the database are checked at a 30s cycle, and the restart data is reported to the remote monitoring platform; the remote monitoring platform is divided into a service layer and a web application layer. The service layer is responsible for receiving TBOX restart data and storing the database, and the web application layer is responsible for updating the display according to the database records; the monitoring personnel can timely know the operating status of TBOX, the reason for restart, and whether it is an abnormal restart or a normal restart based on the restart information displayed on the web interface, which supports R&D personnel to timely analyze the reasons for abnormal restarts, continuously optimize TBOX stability, reduce after-sales pressure, and reduce labor costs.
[0041] Based on the above embodiments, the present invention also proposes a restart event monitoring device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the restart event monitoring method as described in any one of the above items when executed by the processor.
[0042] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the device embodiment, which will not be repeated here.
[0043] Based on the above embodiments, the present invention further proposes a computer-readable storage medium, on which a restart event monitoring program is stored. When the restart event monitoring program is executed by a processor, the steps of the restart event monitoring method as described in any one of the above items are implemented.
[0044] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the medium embodiment, which will not be repeated here.
[0045] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0046] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0047] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A restart event monitoring method, characterized in that: The method comprises: Store the current system time according to the preset first cycle; storing normal restart events according to the module restart message received at the current system time, and storing abnormal restart events according to the module restart record within a preset range of the system time recorded before the restart; The stored normal restart event and / or the abnormal restart event is reported to the monitoring platform according to a preset second period.
2. The restart event monitoring method according to claim 1, characterized in that: The storing of the current system time according to the preset first cycle specifically includes: Starting a preset monitoring program in the vehicle's remote communication terminal; The time updating and storing operation of the first cycle is performed by the monitoring program, wherein the system time of the remote communication terminal is acquired and stored by the monitoring program at periodic intervals of the first cycle, and the terminal enters a dormant state after the acquisition of the system time is completed.
3. The restart event monitoring method according to claim 2, characterized in that: The storing of the normal restart event according to the module restart message received at the current system time specifically includes: The receiving status of the module restart message is monitored by the monitoring program according to the first period, wherein if it is determined that the module restart message is received, the module restart message is stored as a normal restart event.
4. The restart event monitoring method according to claim 2, characterized in that: The storing of abnormal restart events according to the module restart records within a preset range of the system time recorded before the restart specifically includes: The monitoring program monitors the system time recorded before restart according to the first cycle, and checks the module restart record status within a preset range before the recorded system time, wherein if a module restart record exists, the module restart record is stored as an abnormal restart event.
5. The restart event monitoring method according to claim 2, characterized in that: The reporting the stored normal restart event and / or the abnormal restart event to the monitoring platform according to the preset second period specifically includes: Detecting the storage status of the normal restart event and / or the abnormal restart event through the monitoring program; If there is an event storage record, detecting the connection status between the remote communication terminal and the monitoring platform through the monitoring program; If the connection is successfully established, the stored data of the normal restart event and / or the abnormal restart event is reported to the monitoring platform.
6. The restart event monitoring method according to claim 1, characterized in that: The method further comprises: According to the attributes or types of each module, the corresponding normal restart event or abnormal restart event is recorded, wherein the attributes include the importance or priority of the module, and the type includes the type of module function or the type of module control object.
7. The restart event monitoring method according to claim 6, characterized in that: The recording of the corresponding normal restart event or abnormal restart event according to the attribute or type of the module specifically includes: Divide all modules into target monitoring modules and non-target monitoring modules; Record abnormal restart events of the target monitoring module and normal restart events of non-target monitoring modules.
8. The restart event monitoring method according to claim 1, characterized in that: The method further comprises: The second period is set according to the stored normal restart event and / or the abnormal restart event, wherein the period time for reporting the abnormal restart event is shorter than the period time for reporting the normal restart event.
9. A restart event monitoring device, characterized in that: The device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the restart event monitoring method according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a restart event monitoring program, and when the restart event monitoring program is executed by a processor, the steps of the restart event monitoring method according to any one of claims 1 to 8 are implemented.
