Network management problem analysis method and device, electronic equipment and storage medium

By analyzing the message data sent by the controller in the automotive CAN network, extracting characteristic parameters and comparing them with the design indicators, judging the controller abnormality and searching solutions, the problem of long and slow analysis of network management problems in the existing technology is solved. Fast and accurate fault location and resolution are achieved.

CN119449575APending Publication Date: 2025-02-14CHONGQING JINKANG POWER NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411488040.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the analysis time of automotive CAN network management problems is long and slow, which mainly relies on the personal work experience of engineers, resulting in limited problem solving speed.

Method used

By obtaining the message data transmitted by the network bus, extracting the characteristic parameters sent by the controller, comparing them with the design indicators, determining whether an abnormality occurred in the controller, and searching the causes and solutions of the abnormality in the experience library.

Benefits of technology

It realizes rapid positioning and solving automotive CAN network management problems, reduces analysis time, improves analysis speed, and quickly obtains solutions to ensure the safety of the car.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449575A_ABST
    Figure CN119449575A_ABST
Patent Text Reader

Abstract

The invention provides a network management problem analysis method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining message data transmitted by a network bus, the message data comprising message information sent by at least two controllers, and the controllers comprising a first controller; first characteristic parameters are extracted based on the message information sent by the first controller, the first characteristic parameters are in one-to-one correspondence with design indexes, and the design indexes are parameter indexes defined by network management specifications and a communication matrix; comparing the first characteristic parameter with a design index to obtain a comparison result; judging whether the first controller is abnormal or not based on the comparison result; and if the first controller is abnormal, searching an experience library based on a comparison result, and determining an abnormal reason and a solution. According to the method provided by the invention, the problems of long time and low speed of network management problem analysis can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile CAN (Controller Area Network) network technology, and in particular to a network management problem analysis method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid development of new energy technologies for automobiles, vehicle networks are becoming more and more complex. Since network management functions involve every controller, during the engineering development stage, due to the immature quality of controllers, any problem with any controller or problems with network matching between controllers will lead to abnormal network management functions, and it is difficult to quickly locate which controller has a problem through appearances. The network management problem analysis method in related technologies is to have engineers revisit the message data during the problem sending period and analyze it frame by frame to determine which controller has a problem, and find solutions based on the engineer's experience and previous problem cases. However, the entire analysis process is long and slow, and it mainly relies on the engineer's personal work experience. It is difficult for engineers with less work experience to find problems and find corresponding solutions, which affects the speed of problem solving. Summary of the invention

[0003] The present application provides a network management problem analysis method, system, electronic device and storage medium, which are helpful to solve the problem of long time and slow speed in network management problem analysis.

[0004] In a first aspect, the present application provides a network management problem analysis method, comprising:

[0005] Acquire message data transmitted by a network bus, where the message data includes message information sent by at least two controllers, where the controllers include a first controller;

[0006] Extracting a first characteristic parameter based on the message information sent by the first controller, the first characteristic parameter corresponding to a design indicator one-to-one, the design indicator being a parameter indicator defined by a network management specification and a communication matrix;

[0007] Comparing the first characteristic parameter with the design index to obtain a comparison result;

[0008] Determining whether an abnormality occurs in the first controller based on the comparison result;

[0009] If an abnormality occurs in the first controller, the experience database is searched based on the comparison result to determine the cause of the abnormality and the solution.

[0010] In one possible implementation, the experience database is searched based on the comparison results to determine the cause of the abnormality and the solution, including:

[0011] Determine target abnormal characteristic parameters based on the comparison results;

[0012] Based on the target abnormal characteristic parameters, the experience database is retrieved to determine the abnormal causes and solutions corresponding to the target abnormal characteristic parameters. The experience database is used to store the abnormal causes and solutions corresponding to the abnormal characteristic parameters.

[0013] In one possible implementation, the experience database is searched based on the comparison results to determine the cause of the abnormality and the solution, including:

[0014] Generate a target feature form based on the comparison result, the target feature form including target abnormal feature parameters and target normal feature parameters;

[0015] Based on the target feature form, the experience database is retrieved to determine the abnormal causes and solutions corresponding to the target feature form. The experience database is used to store the abnormal causes and solutions corresponding to the feature form.

[0016] In one possible implementation, determining target abnormal characteristic parameters includes:

[0017] Calculating the difference between the value of the design index and the value of the first characteristic parameter to obtain a first deviation;

[0018] The target abnormal characteristic parameter is determined based on the comparison result between the first deviation and the preset deviation, and the preset deviation is the allowable deviation corresponding to the design indicator.

[0019] In one possible implementation method, the first characteristic parameter includes at least whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, the fast sending cycle of the network management message after active wake-up, the number of fast sending frames of the network management message after active wake-up, and the preparation time before entering the sleep state.

[0020] In one possible implementation, the message information sent by the first controller includes at least the time, message type, message identifier, message length, and message data content of each frame message sent by the first controller, and extracting the first characteristic parameter based on the message information sent by the first controller includes:

[0021] Determining whether the first frame message is a network management message based on a message identifier of the first frame message of the first controller;

[0022] Calculate the time difference between the first frame network management message and the first frame application message of the first controller to obtain the time difference between the first frame network management message and the first frame application message;

[0023] Based on the message data content of the first frame network management message of the first controller, determine whether the wake-up mode of the first controller is active wake-up; if the wake-up mode of the first controller is active wake-up, and the interval time of the continuous occurrence of network management messages after the first frame network management message of the first controller is less than the preset period, then the interval time of the continuous occurrence of network management messages after the first frame network management message of the first controller is determined as the fast sending period of the network management message after active wake-up; the number of frames of the network management message sent within the fast sending period of the network management message after active wake-up is determined as the fast sending frame number of the network management message after active wake-up;

[0024] The time difference between the last frame of the network management message and the last frame of the application message of the first controller is calculated to obtain the preparation time before entering the sleep state.

[0025] In one possible implementation, the message data content of the first frame network management message of the first controller includes an activation wake-up bit, and judging whether the wake-up mode of the first controller is active wake-up based on the message data content of the first frame network management message of the first controller includes:

[0026] It is determined whether the wake-up mode of the first controller is active wake-up based on the value of the activation wake-up bit.

[0027] In a second aspect, the present application provides a network management problem analysis device, comprising:

[0028] An acquisition module, used for acquiring message data transmitted by a network bus, wherein the message data includes message information sent by at least two controllers, and the controllers include a first controller;

[0029] A characteristic parameter extraction module, used to extract a first characteristic parameter based on the message information sent by the first controller, the first characteristic parameter corresponds to a design indicator one-to-one, and the design indicator is a parameter indicator defined by a network management specification and a communication matrix;

[0030] A comparison module, used for comparing the first characteristic parameter with the design index to obtain a comparison result;

[0031] The analysis module is used to determine whether an abnormality occurs in the first controller based on the comparison result; if an abnormality occurs in the first controller, the experience library is searched based on the comparison result to determine the cause of the abnormality and a solution.

[0032] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store a computer program; the processor is used to run the computer program to implement the network management problem analysis method as described in the first aspect.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is executed on a computer, the computer implements the network management problem analysis method as described in the first aspect.

[0034] Compared with the prior art, this application has at least the following technical effects:

[0035] The present application provides a method for analyzing network management problems, which obtains message data transmitted by a network bus, the message data includes message information sent by a first controller (any controller in a network connection), extracts a first characteristic parameter according to the message information sent by the first controller, compares the first characteristic parameter with a design index, and determines whether an abnormality occurs in the first controller according to the comparison result. If an abnormality occurs in the first controller, a search is performed in an experience database according to the comparison result to obtain the cause of the abnormality of the first controller and the corresponding solution. By analyzing the message data on the network bus and searching the experience database, the cause of the abnormality and the solution can be quickly obtained, which helps to reduce the analysis time of network management problems, improve the analysis speed, and quickly obtain solutions, thereby solving problems with the automobile controller more quickly and ensuring the safety of the automobile. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 An architectural diagram of a CAN communication system provided in an embodiment of the present application;

[0037] Figure 2 A flowchart of a network management problem analysis method provided in an embodiment of the present application;

[0038] Figure 3 An example diagram of CAN message data provided in an embodiment of the present application;

[0039] Figure 4 An example diagram of the experience library provided in the embodiment of the present application;

[0040] Figure 5 A schematic diagram of the structure of a network management problem analysis device provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In the embodiments of the present application, unless otherwise specified, the character " / " indicates that the objects before and after the association are in an or relationship. For example, A / B can represent A or B. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone.

[0043] It should be pointed out that the words "first", "second", etc. involved in the embodiments of the present application are only used to distinguish the description purpose, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor can they be understood as indicating or implying order.

[0044] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. In addition, "at least one of the following" or similar expressions refers to any combination of these items, which may include any combination of single items or plural items. For example, at least one of A, B, or C can represent: A, B, C, A and B, A and C, B and C, or A, B and C. Among them, each of A, B, and C can be an element itself, or a set containing one or more elements.

[0045] In the embodiments of the present application, "exemplary", "in some embodiments", "in another embodiment", etc. are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0046] In the embodiments of the present application, "of", "corresponding", and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. In the embodiments of the present application, communication and transmission can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. For example, transmission can include sending and / or receiving, which can be a noun or a verb.

[0047] The equal to involved in the embodiments of the present application can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. It should be noted that when equal to is used in conjunction with greater than, it cannot be used in conjunction with less than; when equal to is used in conjunction with less than, it cannot be used in conjunction with greater than.

[0048] Figure 1 The architecture diagram of the CAN communication system provided in the embodiment of the present application is as follows: Figure 1As shown, multiple ECUs (Electronic Control Units, electronic controllers or electronic control units, hereinafter referred to as controllers), including ECU1, ECU2, ECU3, etc., can be connected to a CAN bus, and multiple ECUs can send and receive messages through the CAN bus. CAN is a standard communication specification designed to enable microcontrollers or devices to communicate with each other without a host in the vehicle. Multiple ECUs in a vehicle can communicate using the CAN protocol. The CAN protocol was originally developed for vehicle networks. Recently, the CAN protocol has been widely used throughout the industrial field as well as in vehicles.

[0049] In the vehicle network, if there is a problem with any controller or a problem with the network matching between controllers, the network management function will be abnormal, and it is difficult to quickly locate which controller has a problem through appearances. The network management problem analysis method in the related technology is to have engineers revisit the message data during the problem sending period and analyze it frame by frame to determine which controller has a problem, and find solutions based on the engineer's experience and previous problem cases. However, the entire analysis process is long and slow, and it mainly relies on the engineer's personal work experience. It is difficult for engineers with less work experience to find problems and find corresponding solutions, which affects the speed of problem solving.

[0050] Based on the above problems, an embodiment of the present application proposes a network management problem analysis method, which helps to solve the problem of long time and slow speed in network management problem analysis.

[0051] Now combined Figure 2 The network management problem analysis method provided in the embodiment of the present application is described.

[0052] Figure 2 The flowchart of the network management problem analysis method provided in the embodiment of the present application specifically includes the following steps:

[0053] Step S21, acquiring message data transmitted by a network bus, wherein the message data includes message information sent by at least two controllers, and the controllers include a first controller.

[0054] Specifically, multiple controllers can send and receive messages through the CAN bus, and the CAN data recording device (such as CANoe, ZLG, etc.) records the message data of the network bus parameters and sends it to an electronic device for data processing and analysis, such as a computer. Among them, the message data includes message information sent by at least two controllers, and the controller includes a first controller. It should be noted that the first controller here is used to indicate any controller connected via a CAN network cable, which is only used as an example, so the first controller can also be called a second controller or a third controller, etc., and this application does not limit this.

[0055] Figure 3 An example diagram of CAN message data provided in the embodiment of the present application, such as Figure 3 The figure shows the message data recorded by the CAN data recording device, where the message data is recorded in a text file with an extension of .asc. The file records in detail the message information sent by each ECU. The message information includes the time of each frame message (i.e., the timestamp of the message), message type, message identifier, message length, message data content, receiving status, error frame, overload frame and other information.

[0056] Step S22: extracting first characteristic parameters based on the message information sent by the first controller, wherein the first characteristic parameters correspond one-to-one to design indicators, and the design indicators are parameter indicators defined by network management specifications and communication matrices.

[0057] Table 1 Network management parameter indicator example table

[0058]

[0059] As shown in Table 1, Table 1 is an example table of network management parameter indicators, wherein the parameter indicators (i.e., design indicators, which are parameter indicators defined by network management specifications and communication matrices and can be expressed in a table form) include whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, the fast sending cycle of the network management message after active wake-up, the number of fast sending frames of the network management message after active wake-up, and the preparation time before entering the sleep state. Among them, the value Y of indicator 1 refers to yes, which means affirmative meaning, that is, the first frame message is a network management message. If the first frame message is not a network management message, the value of indicator 1 becomes N (not).

[0060] In other embodiments, parameter indicators such as the time parameter for the preparatory sleep stay and the remote sleep indication timeout may also be included. This application selects these five indicators, which can represent the first frame time, normal cycle, fast transmission cycle, fast transmission frame number information of the network management message, and the first frame time of the first frame application message, which is more representative, and most of the problems with the controller or the network configuration problems between controllers are reflected in these five design indicators.

[0061] After acquiring the message data transmitted by the network bus, the electronic device for data analysis extracts the parameter values ​​defined in the design indicator file through data analysis. Optionally, the message data transmitted by the network bus includes message information sent by the first controller, and the message information sent by the first controller at least includes the time, message type, message identifier, message length, and message data content of each frame message sent by the first controller. The first characteristic parameter is extracted from the message information sent by the first controller, and the first characteristic parameter corresponds to the design indicator one by one, that is, from Figure 3 The first characteristic parameter is extracted from the message data shown, and the first characteristic parameter includes whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, the fast sending cycle of the network management message after active awakening, the number of fast sending frames of the network management message after active awakening, and the preparation time before entering the sleep state. Corresponding to the design indicators, the first characteristic parameter can also include parameter indicators such as the time parameter of the preparatory sleep stay and the remote sleep indication timeout.

[0062] In-vehicle networks (such as CAN, LIN, FlexRay, etc.) are bridges for communication between various controllers in the vehicle. In a CAN network, there are multiple controllers that are matched through a network management protocol to ensure the collaborative work and efficient communication of the entire network. Network management is mainly responsible for coordinating the switching between normal operating mode and sleep mode of controllers on the network to achieve energy saving and high efficiency, and to ensure that the controllers in the network can communicate efficiently and reliably. Each controller has its own role and function in the network, and they coordinate their status by sending and receiving network management messages. For example, some controllers may be active all the time so that other controllers can be awakened by them. Other controllers may be in sleep mode most of the time and only awakened when needed to reduce energy consumption.

[0063] The following is an explanation of network management messages and application messages.

[0064] Network management message: mainly used to monitor and manage the status of network devices, such as the control of ECU wake-up and sleep mode, and realize the switching of controller between normal operation mode and sleep mode. Network management message is sent when the network status of the node changes, such as waking up from sleep mode or preparing to enter sleep mode.

[0065] Application messages: used to transmit actual application data, such as vehicle speed, engine status, and other information. These messages are directly related to the specific functions and operations of the vehicle. When the node is ready to enter sleep mode, it will stop sending application messages. Application messages do not directly affect the network status of the node, but may be affected by the network status. For example, application messages cannot be sent or received in sleep mode.

[0066] Network management messages usually have a specific identifier (ID) range, and the message ID can be used to determine whether a frame message is a network management message. Therefore, it can be determined whether the first frame message of the first controller is a network management message based on the message ID of the first frame message.

[0067] For example, a parameter extraction program is developed using Python, and Python traverses the message data of the network bus line by line. When the first frame message of a controller appears, its message ID is read to determine whether the first frame message of the controller is a network management message. For example, the network management specification stipulates that the ID in the range of 0x400 to 0x4FF is the ID of the network management message. If the captured message ID falls within this range, then the message is a network management message. In addition, it can be further determined which controller sent the network management message. For example, 0x 401 indicates a network management message sent by the VCU (Vehicle Control Unit), and 0x 402 indicates a network management message sent by another controller. When a controller joins the network or wakes up from sleep mode, whether the first message it sends is a network management message affects other controllers to identify and synchronize the state of the controller.

[0068] In some optional embodiments, the time difference between the first frame network management message and the first frame application message of the first controller can be calculated. Specifically, when the first frame network management message of the first controller is retrieved, the time of the frame message is read at the same time, and the traversal continues until the application message of the controller appears, and the time of the first frame application message of the controller is read again, and the two times are subtracted to calculate the interval time. The time interval from the controller sending the first frame network management message to sending the first frame application message is crucial to the response time and efficiency of the network.

[0069] When the controller actively wakes up (for example, through external signals or internal events), it will quickly send network management messages to notify the network of its state changes. After sending the first frame of network management messages, it will periodically send network management messages in a short period of time to maintain the awake state of the network. This period is called the fast sending period. The value of the fast sending period is smaller than the normal period, that is, smaller than the period of the controller normally sending network management messages. The number of frames of network management messages sent in the fast sending period is called the fast sending frame number.

[0070] In some optional embodiments, it is possible to determine whether the wake-up mode of the first controller is active wake-up based on the message data content of the first frame network management message of the first controller. Specifically, when the first frame network management message is retrieved, it is possible to determine whether the controller that sends this frame message is actively awakened by analyzing the data content of the message. For example, by parsing the Active Wakeup Bit in the first frame network management message of the first controller, it is possible to determine whether the wake-up mode of the first controller is active wake-up based on the value of the Active Wakeup Bit. If the Active Wakeup Bit is 1, it means that the first controller is actively awakened, that is, it triggers the wake-up process through a local wake-up event (such as power-on, internal timer, button, etc.), and sends a network management message to actively wake up other controllers or indicate that it is ready to communicate. If the Active Wakeup Bit is 0, it means that the first controller is awakened by the network management message of other nodes, that is, it is in a passive wake-up state.

[0071] Further, if the wake-up mode of the first controller is active wake-up, and the interval time of consecutive network management messages after the first frame network management message of the first controller is less than a preset period, then the interval time of consecutive network management messages after the first frame network management message of the first controller is determined as the quick sending period of the network management message after active wake-up; the number of frames of the network management message sent within the quick sending period of the network management message after active wake-up is determined as the quick sending frame number of the network management message after active wake-up.

[0072] Specifically, after analyzing the message data content of the first frame network management message of the first controller and determining that the first controller is an actively awakened controller, continue to traverse the message data downward to analyze the interval time between consecutive network management messages. If this interval time is less than the preset period (i.e., the normal period), then this interval time is the fast sending period, and the number of frames of the network management message sent within the fast sending period is called the fast sending frame number.

[0073] When a controller actively wakes up, it enters the network management fast-send state and continuously sends a certain number of network management messages in a fast-send cycle. This fast-send cycle is usually shorter than the normal cycle for sending network management messages. The purpose is to quickly notify other controllers on the network so that they can respond quickly and enter network mode. The fast-send frame number refers to the number of times the controller needs to send network management messages within the fast-send cycle. The size of the fast-send cycle affects the stability and efficiency of the network, and the fast-send frame number needs to be precisely controlled to avoid network congestion.

[0074] For example, if the fast sending period of a certain active wake-up controller is set to 20ms and the number of fast sending frames is set to 10 times, the controller will continuously send 10 frames of network management messages at a period of 20ms. These messages are used to quickly wake up other controllers in the dormant state on the network. After sending these fast sending messages, if the controller is still in the active wake-up state, it will enter the normal operation state and continue to send messages according to the normal network management message period (that is, the normal period, such as 500ms).

[0075] In some optional embodiments, the preparation time before entering the sleep state may be obtained by calculating the time difference between the last frame of the network management message and the last frame of the application message of the first controller.

[0076] Specifically, the message data is traversed, the network management messages of each controller are analyzed, and when the first controller stops sending the network management message, the time of the last frame of the network management message of the first controller is recorded, and the data is traversed again. When the application message of the first controller is no longer sent, the time of the last frame of the application message of the first controller is recorded, and the difference between the two times is calculated. This time difference is the time that the first controller stays in the Ready state before preparing to enter the sleep mode. The length of this time will affect the energy consumption of the first controller and the response speed of the network.

[0077] Step S23, comparing the first characteristic parameter with the design index to obtain a comparison result.

[0078] Specifically, the actual value of the first characteristic parameter extracted in step S22 is compared with the value defined in the design index, and a comparison result as shown in Table 2 is output, which includes the index value, allowable deviation, measured value, actual deviation, unit, and judgment result.

[0079] Table 2 Example of parameter comparison results of the first controller

[0080]

[0081]

[0082] Among them, the indicator ID, indicator description, indicator value, allowable deviation and unit in Table 2 are the same as those in Table 1. The measured value in Table 2 is the value of the first characteristic parameter obtained after parameter extraction in step S22; the actual deviation is obtained by subtracting the measured value from the indicator value. Y in the judgment result indicates that the first characteristic value meets the requirements of the design indicator, and N indicates that the first characteristic value does not meet the requirements of the design indicator. It should be noted that Table 2 is only used as an example. In actual operation, the measured values, actual deviations and judgment results of the parameters in Table 2 may be different for different controllers.

[0083] Step S24: determining whether an abnormality occurs in the first controller based on the comparison result.

[0084] Specifically, it can be determined whether the first controller is abnormal according to the determination result in the comparison result. Optionally, a first deviation is obtained by calculating the difference between the value of the design indicator and the value of the first characteristic parameter; a determination result is obtained based on a comparison between the first deviation and a preset deviation, the preset deviation is an allowable deviation corresponding to the design indicator, and whether the first controller is abnormal is determined according to the determination result.

[0085] Exemplarily, referring to Table 2, the difference between the index value and the measured value of a first characteristic parameter is calculated to obtain the actual deviation (i.e., the first deviation), and the actual deviation is compared with the allowable deviation. If the actual deviation is within the allowable range, the judgment result is Y. Conversely, if the actual deviation is not within the allowable range, the judgment result is N. If the judgment result of a first characteristic parameter is Y, it means that the first controller is not abnormal. If the judgment result of a first characteristic parameter is N, it means that the first controller is abnormal. When the first characteristic parameter includes multiple parameters, only when the judgment results of all parameters are Y, it means that the first controller is not abnormal. When at least one first characteristic parameter of the first controller has a judgment result of N, it means that there is a problem with the performance of the controller in at least one aspect. The judgment results of the indicator IDs 3 and 4 in Table 2 are both N, indicating that the first controller is abnormal.

[0086] Furthermore, the target abnormal characteristic parameters and the target normal characteristic parameters can be determined according to the comparison result between the first deviation and the preset deviation. As shown in Table 2, the actual deviation (i.e., the first deviation) is compared with the allowable deviation (i.e., the preset deviation) to obtain a judgment result, and the first characteristic parameter with a judgment result of N is set as the target abnormal characteristic parameter, and the first characteristic parameter with a judgment result of Y is set as the target normal characteristic parameter. As shown in Table 2, the target abnormal parameters are the fast sending cycle of the network management message after active wake-up and the fast sending frame number of the network management message after active wake-up. The target normal characteristic parameters are whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, and the preparation time before entering the sleep state.

[0087] Step S25: If an abnormality occurs in the first controller, an experience database is searched based on the comparison result to determine the cause of the abnormality and a solution.

[0088] In some optional embodiments, target abnormal characteristic parameters are determined based on the comparison results; an experience library is retrieved based on the target abnormal characteristic parameters to determine abnormal causes and solutions corresponding to the target abnormal characteristic parameters, and the experience library is used to store abnormal causes and solutions corresponding to the abnormal characteristic parameters.

[0089] Specifically, the target abnormal characteristic parameter is determined according to the judgment result in the comparison result between the first characteristic parameter and the design index (such as Table 2), and the first characteristic parameter with the judgment result of N is set as the target abnormal characteristic parameter. Then the experience library is searched to determine the abnormal cause and solution corresponding to the target abnormal characteristic parameter. Among them, the experience library is maintained by engineers. Engineers update the cases encountered in the work process (including the characteristic parameters of the abnormal controller and the corresponding abnormal causes and solutions) to the experience library based on their accumulated experience, and continuously enrich the experience library.

[0090] Figure 4 The example diagram of the experience library provided in the embodiment of the present application is as follows: Figure 4 As shown, the experience database stores the abnormal causes and solutions corresponding to the abnormal characteristic parameters of each controller. Figure 4The experience judgment conclusion includes the cause of the abnormality and the solution. For example, if the judgment result of whether the first frame message of ECU1 in experience ID 1 is a network management message is N, the corresponding experience judgment conclusion is the communication configuration problem of ECU1. It is recommended to check whether the application message of ECU1 is delayed (if the first frame message is not a network management message, it means that the application message has the problem of being sent first, which is unreasonable, indicating that the application message is not delayed during the design); the judgment result of the time difference between the first frame network management message and the first frame application message of ECU2 in experience ID 2 is N, and the corresponding experience judgment conclusion is the communication configuration problem of ECU2. It is recommended to check whether the application message of ECU2 is delayed; the fast sending cycle of the network management message after active wake-up and the network after active wake-up of ECU1 in experience ID 5 The judgment result of the number of fast-sending frames of the management message is N. The corresponding empirical judgment conclusion is whether the suspected ECU1 program mistakenly identifies the active wake-up as passive wake-up, and it is necessary to check some codes for wake-up source identification in the network management software; the judgment result of the preparation time before ECU1 enters the sleep state in the empirical ID 6 is N, and the corresponding empirical judgment conclusion is the communication configuration problem of the first controller, and it is necessary to check whether the ECU1 network management message timeout time is configured incorrectly; the judgment result of the time difference between the first frame network management message and the first frame application message of ECU1 in the empirical ID 7 is N, and the corresponding empirical judgment conclusion is that the suspected ECU1 application message delay time after wake-up is too long, and it is necessary to check whether the application message delay time setting of ECU1 is too long.

[0091] Therefore, if the abnormal characteristic parameter of the first controller is whether the first frame message is a network management message, the corresponding abnormal cause and solution is the communication configuration problem of the first controller. It is recommended to check whether the application message of the first controller is delayed; if the abnormal characteristic parameter of the first controller is the time difference between the first frame network management message and the first frame application message, the corresponding abnormal cause and solution is the communication configuration problem of the first controller. It is recommended to check whether the application message of the first controller is delayed, or it is suspected that the delay time of the application message of the first controller is too long after wake-up, and it is necessary to check whether the delay time of the application message of the first controller is too long; if the abnormal characteristic parameter of the first controller is the fast sending cycle of the network management message after active wake-up and the number of fast sending frames of the network management message after active wake-up, the corresponding abnormal cause and solution is whether the program of the first controller mistakenly identifies the active wake-up as passive wake-up, and it is necessary to check the part of the code for wake-up source identification in the network management software. If the abnormal characteristic parameter of the first controller is the preparation time before entering the sleep state, the corresponding abnormal cause and solution is the communication configuration problem of the first controller, and it is necessary to check whether the network management message timeout of the first controller is configured incorrectly.

[0092] In the experience database of this embodiment, the corresponding abnormal cause and solution can be found according to one abnormal characteristic parameter, or the corresponding abnormal cause and solution can be found according to more than one abnormal characteristic parameters.

[0093] Exemplarily, as shown in Table 2, in Table 2, the target abnormal parameters are the fast sending period of the network management message after the active wake-up and the fast sending frame number of the network management message after the active wake-up. The conclusion obtained by searching the experience library is: whether the suspected first controller program mistakenly identifies the active wake-up as a passive wake-up, it is necessary to check some codes for wake-up source identification in the network management software.

[0094] In some optional embodiments, a target feature form is generated based on the comparison result, and the target feature form includes target abnormal feature parameters and target normal feature parameters; an experience library is retrieved based on the target feature form to determine the abnormal causes and solutions corresponding to the target feature form, and the experience library is used to store the abnormal causes and solutions corresponding to the feature form.

[0095] Specifically, the target abnormal characteristic parameter and the target normal characteristic parameter are determined according to the comparison result of the first characteristic parameter and the design index (such as the judgment result in Table 2), the first characteristic parameter with the judgment result of N is set as the target abnormal characteristic parameter, and the first characteristic parameter with the judgment result of Y is set as the target normal characteristic parameter, and the target abnormal characteristic parameter and the target normal characteristic parameter constitute the target characteristic form. For example, see Figure 4 In the experience ID 3, the judgment result of the fast sending cycle of the network management message after the active awakening of ECU1 is N, and the judgment result of the fast sending frame number of the network management message after the active awakening is Y. The corresponding experience judgment conclusion is that the fast sending cycle of the network management message of ECU1 is abnormal. Please check the configuration of the network management message in the communication matrix of ECU1; in the experience ID 4, the judgment result of the fast sending frame number of the network management message after the active awakening of ECU1 is N, and the judgment result of the fast sending cycle of the network management message after the active awakening is Y. The corresponding experience judgment conclusion is that the fast sending times of the network management message of ECU1 is abnormal. Please check the configuration of the network management message in the communication matrix of ECU1.

[0096] Therefore, based on the combination of normal characteristic parameters and abnormal characteristic parameters, the abnormal cause and solution corresponding to the combination can be retrieved in the experience library.

[0097] In the present application, by acquiring the message data transmitted by the network bus, the message data includes the message information sent by the first controller (any controller in the network connection), extracting the first characteristic parameter according to the message information sent by the first controller, comparing the first characteristic parameter with the design index, judging whether the first controller is abnormal according to the comparison result, and if the first controller is abnormal, searching in the experience library according to the comparison result to obtain the cause of the abnormality of the first controller and the corresponding solution. By analyzing the message data on the network bus and searching the experience library, the cause of the abnormality and the solution can be quickly obtained, which helps to reduce the analysis time of network management problems, improve the analysis speed, and quickly obtain solutions, so as to solve the problems of the automobile controller more quickly and ensure the safety of the automobile.

[0098] Based on the same idea, the embodiment of this specification also provides a network management problem analysis device, Figure 5 A schematic diagram of the structure of the network management problem analysis device provided in the embodiment of the present application, such as Figure 5 As shown, the network management problem analysis device 50 may include:

[0099] An acquisition module 51 is used to acquire message data transmitted by a network bus, wherein the message data includes message information sent by at least two controllers, and the controllers include a first controller;

[0100] A characteristic parameter extraction module 52, configured to extract a first characteristic parameter based on the message information sent by the first controller, wherein the first characteristic parameter corresponds to a design indicator in a one-to-one manner, and the design indicator is a parameter indicator defined by a network management specification and a communication matrix;

[0101] A comparison module 53 is used to compare the first characteristic parameter with the design index to obtain a comparison result;

[0102] The analysis module 54 is used to determine whether an abnormality occurs in the first controller based on the comparison result; if an abnormality occurs in the first controller, the experience library is searched based on the comparison result to determine the cause of the abnormality and a solution.

[0103] In one possible implementation, the analysis module 54 may also be used to:

[0104] Determine target abnormal characteristic parameters based on the comparison results;

[0105] Based on the target abnormal characteristic parameters, the experience database is retrieved to determine the abnormal causes and solutions corresponding to the target abnormal characteristic parameters. The experience database is used to store the abnormal causes and solutions corresponding to the abnormal characteristic parameters.

[0106] In one possible implementation, the analysis module 54 may also be used to:

[0107] Generate a target feature form based on the comparison result, the target feature form including target abnormal feature parameters and target normal feature parameters;

[0108] Based on the target feature form, the experience database is retrieved to determine the abnormal causes and solutions corresponding to the target feature form. The experience database is used to store the abnormal causes and solutions corresponding to the feature form.

[0109] In one possible implementation, determining target abnormal characteristic parameters includes:

[0110] Calculating the difference between the value of the design index and the value of the first characteristic parameter to obtain a first deviation;

[0111] The target abnormal characteristic parameter is determined based on the comparison result between the first deviation and the preset deviation, and the preset deviation is the allowable deviation corresponding to the design indicator.

[0112] In one possible implementation method, the first characteristic parameter includes at least whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, the fast sending cycle of the network management message after active wake-up, the number of fast sending frames of the network management message after active wake-up, and the preparation time before entering the sleep state.

[0113] In one possible implementation, the message information sent by the first controller includes at least the time, message type, message identifier, message length, and message data content of each frame message sent by the first controller. The feature parameter extraction module 52 can also be used for:

[0114] Determining whether the first frame message is a network management message based on a message identifier of the first frame message of the first controller;

[0115] Calculate the time difference between the first frame network management message and the first frame application message of the first controller to obtain the time difference between the first frame network management message and the first frame application message;

[0116] Based on the message data content of the first frame network management message of the first controller, determine whether the wake-up mode of the first controller is active wake-up; if the wake-up mode of the first controller is active wake-up, and the interval time of the continuous occurrence of network management messages after the first frame network management message of the first controller is less than the preset period, then the interval time of the continuous occurrence of network management messages after the first frame network management message of the first controller is determined as the fast sending period of the network management message after active wake-up; the number of frames of the network management message sent within the fast sending period of the network management message after active wake-up is determined as the fast sending frame number of the network management message after active wake-up;

[0117] The time difference between the last frame of the network management message and the last frame of the application message of the first controller is calculated to obtain the preparation time before entering the sleep state.

[0118] In one possible implementation, the message data content of the first frame network management message of the first controller includes an activation wake-up bit, and judging whether the wake-up mode of the first controller is active wake-up based on the message data content of the first frame network management message of the first controller includes:

[0119] It is determined whether the wake-up mode of the first controller is active wake-up based on the value of the activation wake-up bit.

[0120] Figure 5 The network management problem analysis device 50 provided in the illustrated embodiment can be used to execute the technical solution of the method embodiment shown in the present application. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0121] It should be understood that the above Figure 5 The division of the various modules of the network management problem analysis device 50 shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the acquisition module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

[0122] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0123] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0124] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method provided by the embodiment shown in the present application.

[0125] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method provided by the embodiment shown in the present application.

[0126] Combine the following Figure 6 The exemplary electronic device provided in the embodiments of the present application is further introduced. Figure 6 A schematic structural diagram of an electronic device 6000 is shown.

[0127] The above-mentioned electronic device 6000 may include: at least one processor; and at least one memory communicatively connected to the above-mentioned processor, wherein: the above-mentioned memory stores program instructions that can be executed by the above-mentioned processor, and the processor calls the above-mentioned program instructions to execute the network management problem analysis method provided in the embodiment shown in this application.

[0128] Figure 6 A block diagram of an exemplary electronic device 6000 suitable for implementing the embodiments of the present application is shown. Figure 6 The electronic device 6000 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Figure 6 As shown, the electronic device 6000 is in the form of a general computing device. The components of the electronic device 6000 may include, but are not limited to: one or more processors 6010, a memory 6020, a communication bus 6040 connecting different system components (including the memory 6020 and the processor 6010), and a communication interface 6030.

[0130] The communication bus 6040 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0131] The electronic device 6000 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0132] The memory 6020 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Figure 6 Not shown, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 6040 via one or more data medium interfaces. The memory 6020 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0133] A program / utility having a set (at least one) of program modules may be stored in the memory 6020, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described herein.

[0134] The electronic device 6000 may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through the communication interface 6030. In addition, the electronic device 6000 may also communicate with the network adapter ( Figure 6 The network adapter can communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the communication bus 6040. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 6000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as: RAID) systems, tape drives, and data backup storage systems.

[0135] The processor 6010 executes various functional applications and data processing by running the programs stored in the memory 6020, such as implementing the method provided in the embodiment of the present application.

[0136] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 6000. In other embodiments of the present application, the electronic device 6000 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0137] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0138] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0140] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0141] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A network management problem analysis method, characterized in that: The method comprises: Acquire message data transmitted by a network bus, wherein the message data includes message information sent by at least two controllers, and the controllers include a first controller; Extracting a first characteristic parameter based on the message information sent by the first controller, wherein the first characteristic parameter corresponds to a design indicator one-to-one, and the design indicator is a parameter indicator defined by a network management specification and a communication matrix; Comparing the first characteristic parameter with the design index to obtain a comparison result; Determining whether an abnormality occurs in the first controller based on the comparison result; If an abnormality occurs in the first controller, an experience database is searched based on the comparison result to determine the cause of the abnormality and a solution.

2. The method according to claim 1, characterized in that The searching of the experience database based on the comparison result to determine the abnormality cause and solution includes: Determine target abnormal characteristic parameters based on the comparison result; An experience database is retrieved based on the target abnormal characteristic parameters to determine abnormal causes and solutions corresponding to the target abnormal characteristic parameters, wherein the experience database is used to store abnormal causes and solutions corresponding to the abnormal characteristic parameters.

3. The method according to claim 1, characterized in that The searching of the experience database based on the comparison result to determine the abnormality cause and solution includes: Generate a target feature form based on the comparison result, wherein the target feature form includes target abnormal feature parameters and target normal feature parameters; An experience database is retrieved based on the target feature form to determine the abnormal cause and solution corresponding to the target feature form, wherein the experience database is used to store the abnormal cause and solution corresponding to the feature form.

4. The method according to claim 2 or 3, characterized in that: The determination of the target abnormal characteristic parameters includes: Calculating a difference between a value of the design indicator and a value of the first characteristic parameter to obtain a first deviation; The target abnormal characteristic parameter is determined based on a comparison result between the first deviation and a preset deviation, where the preset deviation is an allowable deviation corresponding to the design indicator.

5. The method according to claim 1, characterized in that The first characteristic parameters include at least whether the first frame message is a network management message, the time difference between the first frame network management message and the first frame application message, the fast sending cycle of the network management message after active wake-up, the number of fast sending frames of the network management message after active wake-up, and the preparation time before entering the sleep state.

6. The method according to claim 5, characterized in that The message information sent by the first controller includes at least the time, message type, message identifier, message length, and message data content of each frame message sent by the first controller, and the extracting of the first characteristic parameter based on the message information sent by the first controller includes: Determine whether the first frame message of the first controller is a network management message based on a message identifier of the first frame message; Calculate the time difference between the first frame network management message and the first frame application message of the first controller to obtain the time difference between the first frame network management message and the first frame application message; Determine whether the wake-up mode of the first controller is active wake-up based on the message data content of the first frame network management message of the first controller; if the wake-up mode of the first controller is active wake-up, and the interval time of continuous occurrence of network management messages after the first frame network management message of the first controller is less than a preset period, then determine the interval time of continuous occurrence of network management messages after the first frame network management message of the first controller as the fast sending period of the network management message after the active wake-up; determine the number of frames of the network management message sent within the fast sending period of the network management message after the active wake-up as the fast sending frame number of the network management message after the active wake-up; The time difference between the last frame of the network management message and the last frame of the application message of the first controller is calculated to obtain the preparation time before entering the sleep state.

7. The method according to claim 6, characterized in that The message data content of the first frame network management message of the first controller includes an activation wake-up bit, and the determining whether the wake-up mode of the first controller is active wake-up based on the message data content of the first frame network management message of the first controller includes: It is determined whether the wake-up mode of the first controller is active wake-up based on the value of the activation wake-up bit.

8. A network management problem analysis device, characterized in that: The device comprises: An acquisition module, used for acquiring message data transmitted by a network bus, wherein the message data includes message information sent by at least two controllers, and the controllers include a first controller; A characteristic parameter extraction module, used to extract a first characteristic parameter based on the message information sent by the first controller, wherein the first characteristic parameter corresponds to a design indicator in a one-to-one manner, and the design indicator is a parameter indicator defined by a network management specification and a communication matrix; A comparison module, used for comparing the first characteristic parameter with the design index to obtain a comparison result; The analysis module is used to determine whether an abnormality occurs in the first controller based on the comparison result; if an abnormality occurs in the first controller, an experience library is searched based on the comparison result to determine the cause of the abnormality and a solution.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program to implement the network management problem analysis method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the network management problem analysis method according to any one of claims 1 to 7 is implemented.