Vehicle network non-sleep diagnosis method, device, electronic equipment and storage medium
By obtaining and analyzing network management messages, a directed graph determine source controller is built, which solves the problem of time-consuming diagnosis of vehicle networks that do not hibernate, and achieves rapid and effective diagnosis and improves vehicle quality.
Patent Information
- Application Number
- CN202210387170.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2042-04-13
AI Technical Summary
In the prior art, the diagnosis method of the vehicle network not dormant in the vehicle is usually carried out manually, resulting in a long time and low efficiency.
By obtaining network management messages in the target vehicle network, determining the unsleeping controllers, and building a directed graph based on the correlation between these controllers, determining the source controller, generating a diagnostic report, and then achieving rapid diagnosis.
It realizes rapid and effective diagnosis of the vehicle network without sleep, improves vehicle quality, and solves the problems of long and low diagnosis efficiency.
Smart Images

Figure CN114706371B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of vehicle testing technology, and in particular to a vehicle network non-sleep diagnosis method, device, electronic device and storage medium. Background Art
[0002] During the vehicle development or testing phase, the problem of the vehicle network not sleeping often occurs. However, one of the reasons why the vehicle network does not sleep is that the controller does not sleep. At present, there are many controllers in the vehicle, and the sleep states of the controllers will interfere with each other. In the prior art, the diagnosis method for the vehicle network not sleeping is usually manual. This diagnostic method has the problem of long diagnostic time, resulting in low diagnostic efficiency. Summary of the invention
[0003] In view of the above problems, the embodiments of the present invention provide a method, device, electronic device and storage medium for diagnosing the non-sleep state of the whole vehicle network, so as to achieve a faster and more effective diagnosis of the non-sleep state of the whole vehicle network, thereby achieving the effect of improving the quality of the vehicle.
[0004] In a first aspect, an embodiment of the present invention provides a vehicle network non-sleep diagnosis method, the method comprising:
[0005] Acquire network management messages generated by each controller in a target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message;
[0006] If there is an association relationship between the non-sleeping controllers, a directed graph is constructed according to the association relationship between the non-sleeping controllers;
[0007] The source controller among the non-sleeping controllers is determined according to the directed graph, and a diagnostic report that the target vehicle network is not dormant is generated according to the identification information of the source controller.
[0008] Optionally, the method further includes: if there is no association relationship between the non-sleeping controllers, taking the non-sleeping controller without the association relationship as the source controller.
[0009] Optionally, the method further includes: when a sleep instruction is received for the source controller, disconnecting the control circuit corresponding to the source controller, and disconnecting the control circuits of other controllers that are associated with the source controller.
[0010] Optionally, determining the source controller among the non-sleeping controllers according to the directed graph includes:
[0011] Determine a target node with zero in-degree in the directed graph; determine a non-sleeping controller corresponding to the target node according to a correspondence between nodes and non-sleeping controllers, and use the non-sleeping controller corresponding to the target node as a source controller.
[0012] Optionally, the method further includes: for each non-sleeping controller, determining whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller, and if so, determining that there is an association relationship between the non-sleeping controller and the other non-sleeping controllers.
[0013] Optionally, determining whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller includes:
[0014] Control the circuit corresponding to the non-sleeping controller to disconnect, and determine whether the working status of other non-sleeping controllers except the non-sleeping controller changes from the non-sleeping state to the sleeping state. If so, determine that the non-sleeping controller affects the other non-sleeping controllers; if not, determine that the non-sleeping controller does not affect the other non-sleeping controllers.
[0015] Optionally, the non-sleeping controller includes a first non-sleeping controller and a second non-sleeping controller; if there is an association relationship between the non-sleeping controllers, constructing a directed graph according to the association relationship between the non-sleeping controllers includes:
[0016] If the change of the working state of the first non-sleeping controller affects the working state of the second non-sleeping controller, a directed connection is established from the first node corresponding to the first non-sleeping controller to the second node corresponding to the second non-sleeping controller, and a directed graph is generated; or,
[0017] If the change of the working state of the second non-sleeping controller affects the working state of the first non-sleeping controller, a directed connection is established from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller, and a directed graph is generated.
[0018] In a second aspect, an embodiment of the present invention further provides a vehicle network non-sleep diagnosis device, the device comprising:
[0019] A non-sleeping controller determination module, used to obtain network management messages generated by each controller in the target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message;
[0020] A directed graph construction module, used for constructing a directed graph according to the association relationship between the non-sleeping controllers if there is an association relationship between the non-sleeping controllers;
[0021] A diagnostic report generation module is used to determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not in sleep mode according to the identification information of the source controller.
[0022] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0023] one or more processors;
[0024] A storage device for storing one or more programs;
[0025] When the program is executed by the processor, the processor implements the vehicle network non-sleep diagnosis method provided by any embodiment of the present invention.
[0026] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a vehicle network non-sleep diagnosis method as provided in any embodiment of the present invention.
[0027] The technical solution of the embodiment of the present invention can determine each non-sleeping controller in the target vehicle network based on each network management message by acquiring the network management message generated by each controller in the target vehicle network. If there is a correlation between each non-sleeping controller, a directed graph can be constructed based on the correlation between each non-sleeping controller, and the correlation between the non-sleeping controllers can be quickly determined. Then, the source controller among each non-sleeping controller can be determined based on the directed graph, and a diagnostic report that the target vehicle network is not sleeping can be generated based on the identification information of the source controller. The technical solution of the embodiment of the present invention solves the technical problems of the existing diagnostic technology that the diagnosis time is long and the diagnostic efficiency is low, and realizes a faster and more effective diagnosis of the non-sleeping situation of the vehicle network, thereby achieving the technical effect of improving the quality of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 It is a flow chart of a vehicle network non-sleep diagnosis method provided by the first embodiment of the present invention;
[0030] Figure 2 This is a signal collection example diagram based on the vehicle network non-sleep diagnosis method provided in the first embodiment of the present invention;
[0031] Figure 3 It is a flowchart of a vehicle network non-sleep diagnosis method provided by Embodiment 2 of the present invention;
[0032] Figure 4 This is an example diagram of determining a target node in a directed graph based on a vehicle network non-sleep diagnosis method provided in the second embodiment of the present invention;
[0033] Figure 5 It is a flowchart of a vehicle network non-sleep diagnosis method provided by Embodiment 3 of the present invention;
[0034] Figure 6 It is a flowchart of a vehicle network non-sleep diagnosis method provided by the fourth embodiment of the present invention;
[0035] Figure 7 It is a structural schematic diagram of a vehicle network non-sleep diagnosis device provided by Embodiment 5 of the present invention;
[0036] Figure 8 It is a structural schematic diagram of an electronic device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other without conflict.
[0038] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0039] Embodiment 1
[0040] Figure 1It is a flow chart of a vehicle network non-sleep diagnosis method provided in the first embodiment of the present invention. This embodiment can be applied to the scenario of diagnosing the vehicle network non-sleep. The method can be executed by a vehicle network non-sleep diagnosis device. The vehicle network non-sleep diagnosis device can be implemented by software and / or hardware, and can be integrated into electronic devices such as computers or servers.
[0041] like Figure 1 As shown, the method of this embodiment includes:
[0042] S110, obtaining network management messages generated by each controller in the target vehicle network, and determining each non-sleeping controller in the target vehicle network based on each network management message.
[0043] The target vehicle network may be a non-sleeping vehicle network to be diagnosed. The network communication protocol of the target vehicle network may be a controller area network bus protocol. The network management message may include but is not limited to the identification and working status of the controller. The working status of the controller may be sleeping or not sleeping. The working status of a non-sleeping controller is not sleeping.
[0044] Specifically, the message collection module is used to collect network management messages generated by each controller in the target vehicle network. Then the network management messages generated by each controller can be obtained. After obtaining each network management message, each network management message can be parsed. Then the working status of each controller can be obtained. Further, according to the working status of each controller, the controller whose working status in the target vehicle network is not in a sleep state can be determined, that is, each non-sleep control in the target vehicle network is determined. Among them, the message collection module can be a device of an application program of a specific message collection function, and the application program of the specific message collection function can be a CAN open environment (CANoe) software.
[0045] In order to more accurately determine each non-sleeping controller in the target vehicle network, the vehicle static current signal in the vehicle circuit can also be collected by a precision ammeter (see Figure 2 ). Then, the collected vehicle static current signal and network management message can be analyzed to obtain the analysis result. According to the analysis result, each non-sleeping controller in the target vehicle network can be determined.
[0046] For subsequent data verification, the collected vehicle static current signal and network management message can be stored in a preset storage file (see Figure 2). Optionally, the preset storage file may be a preset ASC format text file. On this basis, in order to improve the data analysis efficiency, in the process of analyzing the data in the preset storage file, multiple data in the preset storage file may be analyzed in parallel, thereby shortening the time spent on analyzing the vehicle static current signal and the network management message, and more quickly determining the non-sleeping controller.
[0047] S120: If there is an association relationship between the non-sleeping controllers, construct a directed graph according to the association relationship between the non-sleeping controllers.
[0048] The association relationship can be understood as a direct control relationship. Each node in the directed graph is a non-sleeping controller. The path in the directed graph represents the directed connection between the nodes corresponding to each non-sleeping controller that has a direct control relationship. The number of directed graphs can be one, two, or more than two.
[0049] Specifically, after determining each non-sleeping controller in the vehicle network, if there is a direct control relationship between each non-sleeping controller, a corresponding node can be created based on the identifier of each non-sleeping controller with a direct control relationship. After the node is created, the nodes corresponding to each non-sleeping controller with a direct control relationship can be connected in a directed manner. Thus, a directed graph can be obtained.
[0050] S130, determining the source controller among the non-sleeping controllers according to the directed graph, and generating a diagnostic report that the target vehicle network is not dormant according to the identification information of the source controller.
[0051] Among them, the source controller can be understood as a controller that does not sleep itself and affects other controllers to not sleep. The impact can include direct impact and indirect impact. The number of source controllers can be one, two or more. The identification information of the source controller may include but is not limited to the name, function, installation location information, etc. of the source controller. The information in the diagnostic report may include but is not limited to the identification of the vehicle. There are many formats of diagnostic reports, and the specific format can be set according to actual needs. For example, it can be XML format, PDF format or word format, etc.
[0052] Specifically, by analyzing the association relationship between each node in the directed graph, the starting node of all the nodes in the directed graph can be obtained. Then, based on the correspondence between the node and the non-sleeping controller, the non-sleeping controller corresponding to the starting node can be determined, and the non-sleeping controller corresponding to the starting node is used as the source controller, that is, the source controller is determined. Then, a diagnostic report that the target vehicle network is not dormant can be generated based on information such as the name, function, and installation location of the source controller. It should be noted that the advantage of the diagnostic report is to avoid repeated diagnosis of the entire vehicle network, and further provide a reference for subsequent vehicle research and development.
[0053] Based on the above embodiment, if there is no association relationship between the non-sleeping controllers, it can be determined that there is a non-sleeping controller that has no association relationship with other non-sleeping controllers, and then the non-sleeping controller that has no association relationship can be used as the source controller.
[0054] Optionally, after determining the source controller among all non-sleeping controllers, the vehicle network can be controlled to enter the sleep state in the following manner:
[0055] When a sleep command is received for the source controller, the control circuit corresponding to the source controller can be disconnected, and the control circuits of other controllers associated with the source controller can be disconnected. It should be noted that the insurance in the control circuit of the traditional controller is an existing insurance. In the embodiment of the present invention, the insurance included in the control circuit of the controller is an intelligent program-controlled insurance of the controller. The advantage of this setting is that the control circuit of the remote control controller can be disconnected.
[0056] In order to more clearly understand the association between the non-sleeping controllers in the non-sleeping vehicle network, the diagnostic report may also include: identification information of the non-sleeping controllers that are associated with the source controller.
[0057] Furthermore, in order to more intuitively display the source controller and the non-sleeping controllers associated with the source controller in the diagnostic report, the identification information of the source controller and the non-sleeping controllers associated with the source controller may be stored in a tree or linked list data structure.
[0058] In order to facilitate the relevant personnel in other places to timely view the diagnostic report of the non-sleep diagnosis of the target vehicle network, the generated diagnostic report can be sent to the target terminal. Among them, the target terminal can be understood as a device that needs to receive the diagnostic report, such as a mobile phone, a computer, and a tablet.
[0059] The technical solution of the embodiment of the present invention can determine each non-sleeping controller in the target vehicle network based on each network management message by acquiring the network management message generated by each controller in the target vehicle network. If there is a correlation between each non-sleeping controller, a directed graph can be constructed based on the correlation between each non-sleeping controller, and the correlation between the non-sleeping controllers can be quickly determined. Then, the source controller among each non-sleeping controller can be determined based on the directed graph, and a diagnostic report that the target vehicle network is not sleeping can be generated based on the identification information of the source controller. The technical solution of the embodiment of the present invention solves the technical problems of the existing diagnostic technology that the diagnosis time is long and the diagnostic efficiency is low, and realizes a faster and more effective diagnosis of the non-sleeping situation of the vehicle network, thereby achieving the technical effect of improving the quality of the vehicle.
[0060] Embodiment 2
[0061] Figure 3 This is a flow chart of a vehicle network non-sleeping diagnosis method provided by the second embodiment of the present invention. Based on the above embodiment, optionally, the source controller among the non-sleeping controllers is determined according to the directed graph, including: determining the target node with zero in-degree in the directed graph; determining the non-sleeping controller corresponding to the target node according to the corresponding relationship between the node and the non-sleeping controller, and taking the non-sleeping controller corresponding to the target node as the source controller. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here.
[0062] like Figure 3 As shown, the method of this embodiment may specifically include:
[0063] S210, obtaining network management messages generated by each controller in the target vehicle network, and determining each non-sleeping controller in the target vehicle network based on each network management message.
[0064] S220: If there is an association relationship between the non-sleeping controllers, construct a directed graph according to the association relationship between the non-sleeping controllers.
[0065] S230: Determine a target node with zero in-degree in the directed graph.
[0066] Specifically, after the directed graph is constructed, the in-degrees of all nodes in the directed graph can be analyzed, and then the in-degrees of all nodes in the directed graph can be obtained. Then, the nodes with zero in-degree in the directed graph can be used as target nodes. It should be noted that the number of target nodes can be one, two, or more than two.
[0067] For example, Figure 4As shown, the nodes in the directed graph include node A, node B, node C, node D, node E, node F, node G and node H. Among them, the in-degree of node A, node D and node F is zero, then node A, node D and node F can be determined as the target node.
[0068] S240 . Determine the non-sleeping controller corresponding to the target node according to the correspondence between the node and the non-sleeping controller, and use the non-sleeping controller corresponding to the target node as the source controller.
[0069] The node is a node in a directed graph, and the corresponding relationship between the node and the non-sleeping controller is one-to-one.
[0070] Specifically, after determining the target node, the non-sleeping controller corresponding to the target node can be determined based on the correspondence between the node and the non-sleeping controller. Then, the non-sleeping controller corresponding to the target node can be used as the source controller. Following the above example, the non-sleeping controllers corresponding to nodes A, D, and F are used as the source controllers.
[0071] S250: Generate a diagnostic report indicating that the target vehicle network is not dormant based on the identification information of the source controller.
[0072] The technical solution of the embodiment of the present invention determines the target node with zero in-degree in the directed graph. Then, according to the correspondence between the node and the non-sleeping controller, the non-sleeping controller corresponding to the target node can be determined, so that the non-sleeping controller corresponding to the target node is used as the source controller, thereby achieving the technical effect of locating the source controller more quickly and accurately.
[0073] Embodiment 3
[0074] Figure 5 It is a flow chart of a vehicle network non-sleep diagnosis method provided by the third embodiment of the present invention. Based on the above embodiment, optionally, the vehicle network non-sleep diagnosis method of this embodiment may also include: for each non-sleep controller, determining whether the working state of the non-sleep controller affects the working state of other non-sleep controllers other than the non-sleep controller, and if so, determining that there is an association relationship between the non-sleep controller and the other non-sleep controllers. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here.
[0075] like Figure 5 As shown, the method of this embodiment may specifically include:
[0076] S310, obtaining network management messages generated by each controller in the target vehicle network, and determining each non-sleeping controller in the target vehicle network based on each network management message.
[0077] S320: For each non-sleeping controller, determine whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller.
[0078] Specifically, for each non-sleeping controller, the circuit corresponding to the non-sleeping controller can be controlled to be disconnected, that is, the logic value of the circuit corresponding to the non-sleeping controller is set to zero. After disconnection, it can be determined whether the working state of other non-sleeping controllers except the non-sleeping controller has changed from the non-sleeping state to the sleeping state. If so, it can be determined that the non-sleeping controller affects other non-sleeping controllers; if not, it is determined that the non-sleeping controller does not affect other non-sleeping controllers.
[0079] In order to more accurately determine whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller, the time when the circuit is disconnected can be determined when the circuit corresponding to the non-sleeping controller is disconnected. If the interval between the current time and the time when the circuit is disconnected reaches the preset time interval, an operation of determining whether the working states of other non-sleeping controllers except the non-sleeping controller are changed from the non-sleeping state to the sleeping state can be performed.
[0080] It should be noted that the preset time interval duration can be set according to actual needs and is not specifically limited here, such as 5 seconds, 10 seconds or 30 seconds.
[0081] S330: If yes, determine that there is an association relationship between the non-sleeping controller and other non-sleeping controllers, and construct a directed graph according to the association relationship between the non-sleeping controller and other non-sleeping controllers.
[0082] It is understandable that if the working state of the non-sleeping controller does not affect the working states of other non-sleeping controllers except the non-sleeping controller, it can be determined that there is no association relationship between the non-sleeping controller and the other non-sleeping controllers.
[0083] S340: Determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not dormant according to the identification information of the source controller.
[0084] The technical solution of the embodiment of the present invention determines, for each non-sleeping controller, whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller. If so, it is determined that there is an association relationship between the non-sleeping controller and the other non-sleeping controllers, thereby further optimizing the steps of how to determine the association relationship between the non-sleeping controller and the other non-sleeping controllers, thereby achieving the technical effect of more accurately determining the association relationship between the non-sleeping controllers.
[0085] Embodiment 4
[0086] Figure 6 It is a flow chart of a vehicle network non-sleep diagnosis method provided by the fourth embodiment of the present invention. On the basis of the above-mentioned embodiment, optionally, the non-sleep controller includes a first non-sleep controller and a second non-sleep controller; if there is an association relationship between the non-sleep controllers, a directed graph is constructed according to the association relationship between the non-sleep controllers, including: if the change of the working state of the first non-sleep controller affects the working state of the second non-sleep controller, a directed connection is established from the first node corresponding to the first non-sleep controller to the second node corresponding to the second non-sleep controller, and a directed graph is generated; or, if the change of the working state of the second non-sleep controller affects the working state of the first non-sleep controller, a directed connection is established from the second node corresponding to the second non-sleep controller to the first node corresponding to the first non-sleep controller, and a directed graph is generated. Among them, the technical terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.
[0087] like Figure 6 As shown, the method of this embodiment may specifically include:
[0088] S410, obtaining network management messages generated by each controller in the target vehicle network, and determining each non-sleeping controller in the target vehicle network based on each network management message, where the non-sleeping controller includes a first non-sleeping controller and a second non-sleeping controller.
[0089] It should be noted that, in the embodiment of the present invention, the “first” and “second” in the first non-sleeping controller and the second non-sleeping controller are only used to distinguish different non-sleeping controllers, and do not limit the arrangement order and content of the non-sleeping controllers.
[0090] S420. Determine the influence relationship between the working state of the first non-sleep controller and the working state of the second non-sleep controller. If the change of the working state of the first non-sleep controller affects the working state of the second non-sleep controller, execute S430; if the change of the working state of the second non-sleep controller affects the working state of the first non-sleep controller, execute S440.
[0091] S430: Establish a directed connection from a first node corresponding to the first non-sleeping controller to a second node corresponding to the second non-sleeping controller, and generate a directed graph.
[0092] Specifically, if the change of the working state of the first non-sleeping controller affects the working state of the second non-sleeping controller, a directed connection may be established from the first node corresponding to the first non-sleeping controller to the second node corresponding to the second non-sleeping controller, thereby generating a directed graph.
[0093] S440: Establish a directed connection from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller, and generate a directed graph.
[0094] Specifically, if the change of the working state of the second non-sleeping controller affects the working state of the first non-sleeping controller, a directed connection can be established from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller, and a directed graph can be generated.
[0095] S450: Determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not dormant according to the identification information of the source controller.
[0096] According to the technical solution of the embodiment of the present invention, the non-sleeping controller may include a first non-sleeping controller and a second non-sleeping controller. If the change of the working state of the first non-sleeping controller affects the working state of the second non-sleeping controller, a directed connection from the first node corresponding to the first non-sleeping controller to the second node corresponding to the second non-sleeping controller may be established, and a directed graph may be generated; or, if the change of the working state of the second non-sleeping controller affects the working state of the first non-sleeping controller, a directed connection from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller may be established, and a directed graph may be generated, thereby realizing the construction of a directed graph.
[0097] Embodiment 5
[0098] Figure 7 It is a structural schematic diagram of a vehicle network non-sleep diagnosis device provided in Embodiment 5 of the present invention. The present invention provides a vehicle network non-sleep diagnosis device, which includes: a non-sleep controller determination module 510, a directed graph construction module 520 and a diagnosis report generation module 530.
[0099] Among them, the non-sleeping controller determination module 510 is used to obtain the network management messages generated by each controller in the target vehicle network, and determine the non-sleeping controllers in the target vehicle network based on the network management messages; the directed graph construction module 520 is used to construct a directed graph according to the association relationship between the non-sleeping controllers if there is an association relationship between the non-sleeping controllers; the diagnostic report generation module 530 is used to determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not dormant according to the identification information of the source controller.
[0100] The technical solution of the embodiment of the present invention obtains the network management messages generated by each controller in the target vehicle network through the non-sleeping controller determination module, and determines each non-sleeping controller in the target vehicle network based on each network management message. Through the directed graph construction module, if there is an association relationship between each non-sleeping controller, a directed graph is constructed according to the association relationship between each non-sleeping controller. Through the diagnostic report generation module, the source controller among each non-sleeping controller is determined according to the directed graph, and a diagnostic report that the target vehicle network is not sleeping is generated according to the identification information of the source controller. The technical solution of the embodiment of the present invention solves the technical problems of the existing diagnostic technology that the diagnosis time is long and the diagnostic efficiency is low, and realizes a faster and more effective diagnosis of the non-sleeping situation of the vehicle network, thereby achieving the technical effect of improving the quality of the vehicle.
[0101] Optionally, the device further includes: a source controller determination module, configured to, if no association relationship exists between the non-sleeping controllers, use a non-sleeping controller without the association relationship as a source controller.
[0102] Optionally, the device also includes: a control circuit disconnection module, which is used to disconnect the control circuit corresponding to the source controller and disconnect the control circuits of other controllers that are associated with the source controller when a sleep instruction is received for the source controller.
[0103] Optionally, the diagnostic report generation module 530 is used to determine the target node with zero in-degree in the directed graph; determine the non-sleeping controller corresponding to the target node based on the correspondence between the node and the non-sleeping controller, and use the non-sleeping controller corresponding to the target node as the source controller.
[0104] Optionally, the device also includes: an association determination module, which is used to determine, for each non-sleeping controller, whether the working state of the non-sleeping controller affects the working states of other non-sleeping controllers except the non-sleeping controller, and if so, determine that there is an association relationship between the non-sleeping controller and the other non-sleeping controllers.
[0105] Optionally, an association relationship determination module is used to control the circuit corresponding to the non-sleeping controller to be disconnected, and determine whether the working status of other non-sleeping controllers except the non-sleeping controller has changed from a non-sleeping state to a sleeping state. If so, it is determined that the non-sleeping controller affects the other non-sleeping controllers; if not, it is determined that the non-sleeping controller does not affect the other non-sleeping controllers.
[0106] Optionally, the non-sleeping controller includes a first non-sleeping controller and a second non-sleeping controller; a directed graph construction module 520 is used to establish a directed connection from the first node corresponding to the first non-sleeping controller to the second node corresponding to the second non-sleeping controller if a change in the working state of the first non-sleeping controller affects the working state of the second non-sleeping controller, and generate a directed graph; or, if a change in the working state of the second non-sleeping controller affects the working state of the first non-sleeping controller, establish a directed connection from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller, and generate a directed graph.
[0107] The above-mentioned device can execute the vehicle network non-sleep diagnosis method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the vehicle network non-sleep diagnosis method.
[0108] It is worth noting that the various units and modules included in the above-mentioned vehicle network non-sleep diagnostic device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0109] Embodiment 6
[0110] Figure 8 It is a structural schematic diagram of an electronic device provided in Embodiment 6 of the present invention. Figure 8 A block diagram of an exemplary electronic device 12 suitable for implementing any of the embodiments of the present invention is shown. Figure 8 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The device 12 is typically an electronic device that is responsible for processing configuration information.
[0111] like Figure 8 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting the various components (including the memory 28 and the processing unit 16).
[0112] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0113] The electronic device 12 typically includes a variety of computer readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0114] The memory 28 may include computer device readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in the figure, usually referred to as a "hard drive"). Although not shown in the figure, a disk drive for reading and writing removable non-volatile disks (such as "floppy disks"), and an optical disk drive for reading and writing removable non-volatile optical disks (such as read-only optical disks (Compact Disc-Read Only Memory, CD-ROM), digital video disks (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product 40, which has a set of program modules 42, which are configured to perform the functions of various embodiments of the present invention. Program product 40 may be stored in memory 28, for example. Such program modules 42 include, but are not limited to, one or more application programs, other program modules, and program data, each of which or some combination thereof may include implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0115] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, mouse, camera, etc., and display), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) devices, tape drives, and data backup storage devices.
[0116] The processing unit 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, implementing the vehicle network non-sleep diagnosis method provided by the above embodiment of the present invention, the method comprising:
[0117] Acquire network management messages generated by each controller in the target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message; if there is an association relationship between each non-sleeping controller, construct a directed graph based on the association relationship between each non-sleeping controller; determine the source controller among each non-sleeping controller based on the directed graph, and generate a diagnostic report that the target vehicle network is not sleeping based on the identification information of the source controller.
[0118] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the vehicle network non-sleep diagnosis method provided by any embodiment of the present invention.
[0119] Embodiment 7
[0120] Embodiment 7 of the present invention further provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, for example, the vehicle network non-sleep diagnosis method provided by the above embodiment of the present invention includes:
[0121] Acquire network management messages generated by each controller in the target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message; if there is an association relationship between each non-sleeping controller, construct a directed graph based on the association relationship between each non-sleeping controller; determine the source controller among each non-sleeping controller based on the directed graph, and generate a diagnostic report that the target vehicle network is not sleeping based on the identification information of the source controller.
[0122] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0123] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0124] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0125] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0126] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A vehicle network non-sleep diagnosis method, characterized in that: include: Acquire network management messages generated by each controller in a target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message; If there is an association relationship between the non-sleeping controllers, a directed graph is constructed according to the association relationship between the non-sleeping controllers; Determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not in sleep mode according to the identification information of the source controller; The method further comprises: When a sleep instruction is received for the source controller, the control circuit corresponding to the source controller is disconnected, and the control circuits of other controllers associated with the source controller are disconnected; wherein the insurance that disconnects the control circuit corresponding to the source controller and the associated control circuit is the intelligent program-controlled insurance of the controller; The method further includes: for each non-sleeping controller, controlling the circuit corresponding to the non-sleeping controller to be disconnected, determining whether the working state of other non-sleeping controllers except the non-sleeping controller changes from a non-sleeping state to a sleeping state; if so, determining that the non-sleeping controller affects the other non-sleeping controllers, and there is an association relationship between the non-sleeping controller and the other non-sleeping controllers; if not, determining that the non-sleeping controller does not affect the other non-sleeping controllers; Before determining whether the working state of the non-sleep controller affects the working states of other non-sleep controllers except the non-sleep controller, the method also includes: when the circuit corresponding to the non-sleep controller is disconnected, determining the moment when the circuit is disconnected; if the interval between the current moment and the moment when the circuit is disconnected reaches a preset time interval, executing an operation of determining whether the working states of other non-sleep controllers except the non-sleep controller have changed from a non-sleep state to a sleep state.
2. The method according to claim 1, characterized in that: The method further comprises: If there is no association relationship between the non-sleeping controllers, the non-sleeping controllers without the association relationship are used as the source controllers.
3. The method according to claim 1, characterized in that The step of determining the source controller among the non-sleeping controllers according to the directed graph includes: Determine a target node with zero in-degree in the directed graph; According to the correspondence between the node and the non-sleeping controller, the non-sleeping controller corresponding to the target node is determined, and the non-sleeping controller corresponding to the target node is used as the source controller.
4. The method according to claim 1, characterized in that The non-sleep controller includes a first non-sleep controller and a second non-sleep controller; if there is an association relationship between the non-sleep controllers, a directed graph is constructed according to the association relationship between the non-sleep controllers, including: If the change of the working state of the first non-sleeping controller affects the working state of the second non-sleeping controller, a directed connection is established from the first node corresponding to the first non-sleeping controller to the second node corresponding to the second non-sleeping controller, and a directed graph is generated; or, If the change of the working state of the second non-sleeping controller affects the working state of the first non-sleeping controller, a directed connection is established from the second node corresponding to the second non-sleeping controller to the first node corresponding to the first non-sleeping controller, and a directed graph is generated.
5. A vehicle network non-sleep diagnostic device, characterized in that: include: A non-sleeping controller determination module, used to obtain network management messages generated by each controller in the target vehicle network, and determine each non-sleeping controller in the target vehicle network based on each network management message; A directed graph construction module, used for constructing a directed graph according to the association relationship between the non-sleeping controllers if there is an association relationship between the non-sleeping controllers; A diagnostic report generating module, used to determine the source controller among the non-sleeping controllers according to the directed graph, and generate a diagnostic report that the target vehicle network is not in sleep mode according to the identification information of the source controller; The device further comprises: a control circuit disconnection module, which is used to disconnect the control circuit corresponding to the source controller and the control circuits of other controllers associated with the source controller when receiving a sleep instruction for the source controller; wherein the fuse that disconnects the control circuit corresponding to the source controller and the control circuit associated with the source controller is the intelligent program-controlled fuse of the controller; The device further includes: an association relationship determination module, which is used to control the circuit corresponding to each non-sleeping controller to be disconnected, and determine whether the working state of other non-sleeping controllers except the non-sleeping controller changes from a non-sleeping state to a sleeping state; if so, determine that the non-sleeping controller affects the other non-sleeping controllers, and there is an association relationship between the non-sleeping controller and the other non-sleeping controllers; if not, determine that the non-sleeping controller does not affect the other non-sleeping controllers; Before determining whether the working state of the non-sleep controller affects the working states of other non-sleep controllers except the non-sleep controller, the device is also used to: when the circuit corresponding to the non-sleep controller is disconnected, determine the moment when the circuit is disconnected; if the interval between the current moment and the moment when the circuit is disconnected reaches a preset time interval, perform an operation to determine whether the working states of other non-sleep controllers except the non-sleep controller have changed from a non-sleep state to a sleep state.
6. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the program is executed by the processor, the processor implements the vehicle network non-sleep diagnosis method as described in any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle network non-sleep diagnosis method as described in any one of claims 1-4 is implemented.
Citation Information
Patent Citations
Method and device for determining alarm correlation matrix and analyzing alarm correlation
CN101577636A
Method and device for detecting malicious software
CN101604361A
Alarm processing method and alarm management system
CN102111788A
Network node state control method and device and gateway
CN110830267A
Network management state monitoring method and device and automobile
CN111660956A
