Data monitoring early warning method and system, computer equipment and storage medium
By obtaining and analyzing ECU's scheduling packets in the vehicle test environment, real-time monitoring and fault warning of ECU data is achieved, and the problems of difficulty in data capture and low testing efficiency in the existing technology are solved, improving testing efficiency and quality.
Patent Information
- Application Number
- CN202411439216.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-01-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the vehicle testing environment, there is a lack of real-time visual monitoring solutions for ECU test-related data, resulting in delay in fault detection, difficulty in data capture, and inefficient testing.
By obtaining the login message, using the controller's domain network protocol, it is sent to the gateway controller, parsing and calling the server database API for data login, and displaying and monitoring ECU data on the preset display panel to provide real-time fault warning.
It improves the accessibility and comprehensibility of vehicle test data, reduces manual inspection time, improves test efficiency and quality, promptly detects potential problems and sends early warnings, and improves the accuracy of fault diagnosis.
Smart Images

Figure CN119322507A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data monitoring and early warning method, system, computer equipment and storage medium. Background Art
[0002] In the vehicle test environment, there is a lack of a real-time monitoring solution for visualizing ECU (Electronic Control Unit) test-related data. Currently, indicator data is generally observed through serial port printing debug information, memory logs, etc. This method is not intuitive and does not have the ability of automatic monitoring, which often causes the following inconveniences and shortcomings:
[0003] (1) Failure to detect test failures in a timely manner;
[0004] (2) When a test fails, relevant data cannot be captured, such as CPU (Central Processing Unit, CPU) utilization, network load, CAN (Controller Area Network, CAN) bus load, CAN frame loss rate, CAN routing delay, interface success rate, probability of occurrence of different abnormal return values of the interface, abnormal input parameters, etc. At the same time, in the whole vehicle test environment, there are dozens of ECUs, and there are usually only a few ECUs with Ethernet communication functions. Many ECUs are interdependent, but the relevant data of such ECU tests is not easy to capture.
[0005] (3) When using a large number of multiple rounds of testing, if there is no effective way to collect these large amounts of data, the testing efficiency will be low; and the existing testing methods are unable to collect and analyze a large amount of test-related data. Summary of the invention
[0006] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide a data monitoring and early warning method, system, computer equipment and storage medium to solve the technical problems existing in the prior art.
[0007] To achieve the above objectives and other related objectives, the present application provides a data monitoring and early warning method, comprising the following steps:
[0008] Acquire a dot message, wherein the dot message includes a message for uploading electronic control unit data defined in advance or in real time;
[0009] The dot message is sent to a gateway controller through a controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dot message, the dot data of the controller area network message is parsed, and an application programming interface in a server database is called to dot the data of a target electronic control unit; wherein the target electronic control unit includes an electronic control unit connected to the gateway controller;
[0010] The data of the target electronic control unit is displayed on a preset display panel based on the dot results, and the data of the target electronic control unit is monitored and warned through pre- or real-time configured indicator data.
[0011] In one embodiment of the present application, the process of monitoring and warning the data of the target electronic control unit through pre- or real-time configured indicator data includes:
[0012] Using the pre- or real-time configured indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and comparing the real-time data with the reference data to determine whether the real-time data is consistent with the reference data; if the real-time data is consistent with the reference data, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the real-time data is inconsistent with the reference data, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and a monitoring warning information is sent to the target personnel according to a preset warning method;
[0013] Alternatively, the pre- or real-time configured indicator data is used as reference data, and the data of the target electronic control unit displayed on the preset display panel is used as real-time data; and the real-time data is compared with the reference data to determine whether the difference between the real-time data and the reference data is less than or equal to a preset threshold; if the difference between the real-time data and the reference data is less than or equal to the preset threshold, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the difference between the real-time data and the reference data is greater than the preset threshold, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and a monitoring warning information is sent to the target personnel in accordance with the preset warning method.
[0014] In one embodiment of the present application, before displaying the data of the target electronic control unit on a preset display panel based on the dotting result, the method further includes:
[0015] Receiving authentication information input by the target person on the preset display panel and recording it as information to be authenticated;
[0016] Comparing the information to be authenticated with pre-stored authentication information;
[0017] When the similarity between the information to be authenticated and the pre-stored authentication information is greater than or equal to the preset similarity, the target person is marked as having passed the login authentication, and the pre-associated identity information is extracted based on the information to be authenticated, and the target person is assigned operation permissions on a preset display panel based on the identity information; wherein the operation permissions include: viewing permissions and editing permissions;
[0018] When the similarity between the information to be authenticated and the pre-stored authentication information is less than the preset similarity, the target person is marked as having failed the login authentication, and the authentication information input interface is re-popped up on the preset display panel, so that the target person re-enters the authentication information for comparison.
[0019] In one embodiment of the present application, the process of displaying the data of the target electronic control unit on a preset display panel based on the dotting result includes:
[0020] Displaying one or more data points of the target electronic control unit on the preset display panel in an indicator card style;
[0021] and / or, displaying the ratio of a certain metric of the target electronic control unit relative to a maximum value on the preset display panel in a dashboard style and in the form of an arc pointer;
[0022] and / or, displaying the data category distribution of the target electronic control unit in a pie chart format on the preset display panel, and displaying the proportion of each part to the total data volume in different sector sizes;
[0023] and / or, displaying the data proportion of the target electronic control unit in a ring-shaped chart format on the preset display panel;
[0024] and / or, displaying the data latitude comparison result of the target electronic control unit in a stacked bar chart style on the preset display panel, with each bar as a category, and the length of the bar representing the value;
[0025] and / or, displaying the data latitude percentage of the target electronic control unit on the preset display panel in a percentage stacked bar chart style;
[0026] and / or, displaying the data category of the target electronic control unit in a bar graph style on the preset display panel;
[0027] and / or, displaying the change trend of the data of the target electronic control unit over time in a line graph format on the preset display panel;
[0028] and / or, displaying the data accumulation effect of the target electronic control unit in an area chart format on the preset display panel;
[0029] and / or, displaying the data frequency distribution of the target electronic control unit in a histogram format on the preset display panel;
[0030] And / or, displaying the data variable relationship of the target electronic control unit in a scatter plot style on the preset display panel.
[0031] In one embodiment of the present application, before obtaining the dot message, the method further includes:
[0032] An open source time series database is configured in the server to generate the server database;
[0033] Install an open source monitoring and alarm tool, and configure the open source monitoring and alarm tool to connect to the server database;
[0034] developing an application programming interface for said server database in said server;
[0035] Configuring a network environment so that the gateway controller communicates with the server via Ethernet;
[0036] A data acquisition agent component is developed or integrated on the gateway controller, and the data acquisition agent component is used to monitor the specified function interface and variables and capture data when the data changes.
[0037] In one embodiment of the present application, the process of sending monitoring warning information to the target person according to the preset warning method includes:
[0038] Classify the degree of fault danger and set multiple monitoring and warning levels according to the classification results;
[0039] Select different warning methods from the preset warning methods according to each monitoring warning level;
[0040] Matching the monitoring warning level based on the difference between the real-time data and the reference data, and sending monitoring warning information to the target person according to the warning method corresponding to the matched monitoring warning level;
[0041] Among them, the preset warning methods include: email, text message, phone call, chat application software, and office application software.
[0042] In one embodiment of the present application, before obtaining the dot message, the method also includes defining the dot message based on target parameters, and the target parameters include: message name, message type, message identifier, message sending type, message length, signal name, signal description, arrangement format, start byte, start bit, signal sending type, signal length, and data type.
[0043] The present application also provides a data monitoring and early warning system, the system comprising:
[0044] A dot message module, used to obtain dot messages, wherein the dot messages include pre-defined or real-time messages for uploading electronic control unit data;
[0045] A data dotting module, used for sending the dotting message to the gateway controller through the controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dotting message, parsing the dotting data of the controller area network message, and calling the application programming interface in the server database to dot the data of the target electronic control unit; wherein the target electronic control unit includes an electronic control unit connected to the gateway controller;
[0046] The monitoring and early warning module is used to display the data of the target electronic control unit on a preset display panel according to the dot results, and to monitor and warn the data of the target electronic control unit through pre- or real-time configured indicator data.
[0047] The present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any one of the above-mentioned data monitoring and early warning methods.
[0048] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned data monitoring and early warning methods are implemented.
[0049] As described above, the present application provides a data monitoring and early warning method, system, computer equipment and storage medium, which have the following beneficial effects: the present application first obtains the dot message, then sends the dot message to the gateway controller through the controller area network protocol, and when the gateway controller identifies the received message identifier as a controller area network message of the dot message, parses the dot data of the controller area network message, and calls the application programming interface in the server database to dot the data of the target electronic control unit; finally, based on the dot result, the data of the target electronic control unit is displayed on the preset display panel, and the data of the target electronic control unit is monitored and warned through the index data configured in advance or in real time. It can be seen that the present application realizes the complete process of data collection, storage and visual display of most electronic control units in the vehicle to the server through the gateway controller, which not only improves the accessibility and comprehensibility of the whole vehicle test data, but also can assist the target personnel to monitor and analyze the data of the electronic control unit in real time by displaying the data of the electronic control unit on the preset display panel, thereby reducing the time of manual inspection and greatly improving the efficiency and quality of vehicle whole vehicle testing. At the same time, by real-time monitoring of the operating status and performance indicators of the electronic control unit, it helps the target personnel to find potential problems in time and avoid failures. Moreover, when an ECU fails, monitoring warning information can be sent to the target personnel so that they can quickly locate the problem and cause, thereby improving the accuracy and speed of fault diagnosis. In addition, by visually analyzing the data of a large number of ECUs, the patterns and trends in the data can be discovered, providing a basis for optimizing the design of ECUs and improving test methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of a data monitoring and early warning method provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the connection between a gateway controller and a server provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the hardware structure of a data monitoring and early warning system provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of a data monitoring and early warning architecture provided in an embodiment of the present application;
[0054] Figure 5 The figure is a schematic diagram of the hardware structure of a computer device suitable for implementing one or more embodiments of the present application. DETAILED DESCRIPTION
[0055] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0056] It should be noted that the illustrations provided in this embodiment only illustrate the basic concept of the present application in a schematic manner, and the figures only show the components related to the present application rather than being drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0057] Figure 1 FIG. 1 shows a flow chart of a data monitoring and early warning method provided by an embodiment of the present application. Specifically, in an exemplary embodiment, Figure 1 As shown, this embodiment provides a data monitoring and early warning method, which includes the following steps:
[0058] S110, obtain a dot message, the dot message includes a message for uploading electronic control unit data that is defined in advance or in real time. In this embodiment or other embodiments, the electronic control unit data may include the data of the electronic control unit itself, and may also include the test data of the electronic control unit ECU, and may also include other data related to the electronic control unit ECU, such as CPU utilization, network load, CAN bus load, CAN frame loss rate, CAN routing delay, interface success rate, interface different abnormal return value occurrence probability, abnormal input parameters and other data. Therefore, the electronic control unit data when defining the dot message can be set or selected according to the actual application scenario, and this embodiment will not be repeated here. In this embodiment or other embodiments, before obtaining the dot message, it can also include defining the dot message based on the target parameters, and the target parameters include but are not limited to: message name, message type, message identifier, message sending type, message length, signal name, signal description, arrangement format, start byte, start bit, signal sending type, signal length, data type.
[0059] S120, sending the dotting message to the gateway controller through the controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dotting message, parsing the dotting data of the controller area network message, and calling the application programming interface in the server database to dotting the data of the target electronic control unit; wherein, the target electronic control unit includes an electronic control unit connected to the gateway controller. In this embodiment or other embodiments, the target electronic control unit can also be referred to as a lower-hanging electronic control unit or a lower-hanging ECU, and the application programming interface in the server database can also be referred to as a dotting interface. In this embodiment or other embodiments, the server database can be selected or set according to actual conditions, and this embodiment will not be repeated here. As an example, InfluxDB can be selected as the server database. Among them, InfluxDB is an open source time series database developed by InfluxData, focusing on high-performance reading and writing, efficient storage and real-time analysis of massive time series data.
[0060] S130, based on the dotting results, the data of the target electronic control unit is displayed on the preset display panel, and the data of the target electronic control unit is monitored and warned through the pre- or real-time configured indicator data. In this embodiment or other embodiments, the preset display panel can be set or selected according to the actual application scenario, and this embodiment will not be repeated here. Specifically, in this implementation or other embodiments, the process of displaying the data of the target electronic control unit on the preset display panel based on the dotting results includes: displaying one or more data points of the target electronic control unit on the preset display panel in an indicator card style; and / or, displaying the ratio of a certain metric of the target electronic control unit relative to the maximum value on the preset display panel in a dashboard style, and displaying it in the form of an arc pointer; and / or, displaying the data category distribution of the target electronic control unit on the preset display panel in a pie chart style, and displaying the proportion of each part to the total data volume through different sector sizes; and / or, displaying the data proportion of the target electronic control unit on the preset display panel in a ring chart style; and / or, displaying the target electronic control unit in a stacked bar chart style on the preset display panel The data latitude comparison results are displayed, and each bar is used as a category, and the length of the bar represents the numerical value; and / or, the data latitude percentage of the target electronic control unit is displayed on the preset display panel through a percentage stacked bar chart style; and / or, the data category of the target electronic control unit is displayed on the preset display panel through a bar chart style; and / or, the data change trend of the target electronic control unit over time is displayed on the preset display panel through a line chart style; and / or, the data cumulative effect of the target electronic control unit is displayed on the preset display panel through an area chart style; and / or, the data frequency distribution of the target electronic control unit is displayed on the preset display panel through a histogram style; and / or, the data variable relationship of the target electronic control unit is displayed on the preset display panel through a scatter plot style. As an example, this embodiment or other embodiments can be based on the data visualization interface of Grafana as the preset display panel. Among them, Grafana is an open source monitoring dashboard and graphic editor that is widely used to visualize time series data. Therefore, in this embodiment, through these chart types and configuration options, the preset display panel or Grafana can flexibly display data from various data sources, thereby helping the target personnel to better visualize, monitor, alarm and analyze ECU data.
[0061] According to the above records, in an exemplary embodiment, the process of monitoring and warning the data of the target electronic control unit through pre- or real-time configured indicator data includes: using the pre- or real-time configured indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and, comparing the real-time data with the reference data to determine whether the real-time data is consistent with the reference data; if the real-time data is consistent with the reference data, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the real-time data is inconsistent with the reference data, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and the monitoring warning information is sent to the target personnel according to the preset warning method. Alternatively, the process of monitoring and warning the data of the target electronic control unit by the pre-configured or real-time indicator data includes: using the pre-configured or real-time indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and comparing the real-time data with the reference data to determine whether the difference between the real-time data and the reference data is less than or equal to the preset threshold; if the difference between the real-time data and the reference data is less than or equal to the preset threshold, it is determined that there is no abnormality in the reference data and there is no fault in the test process of the electronic control unit; if the difference between the real-time data and the reference data is greater than the preset threshold, it is determined that there is an abnormality in the reference data, there is a fault in the test process of the electronic control unit, and a monitoring warning information is sent to the target personnel according to the preset warning method. It can be seen that the present embodiment can use two methods to monitor and warn the data of the target electronic control unit. For data that needs to be consistent, if the real-time data is inconsistent with the reference data, it means that there is a fault in the test process, and it is necessary to send monitoring warning information to the target personnel according to the preset warning method. For data that does not need to be consistent, if the difference between the real-time data and the reference data is greater than the preset threshold, it also means that there is a fault in the test process, and it is necessary to send monitoring warning information to the target personnel according to the preset warning method.
[0062] According to the above records, in an exemplary embodiment, before displaying the data of the target electronic control unit on the preset display panel based on the dotting result, this embodiment may also include: receiving the authentication information input by the target person on the preset display panel, recorded as the information to be authenticated; comparing the information to be authenticated with the pre-stored authentication information; when the similarity between the information to be authenticated and the pre-stored authentication information is greater than or equal to the preset similarity, marking the target person as having passed the login authentication, and extracting the pre-associated identity information based on the information to be authenticated, and assigning the target person the operation authority on the preset display panel based on the identity information; wherein the operation authority includes: viewing authority, editing authority; when the similarity between the information to be authenticated and the pre-stored authentication information is less than the preset similarity, marking the target person as not having passed the login authentication, and re-popping up the authentication information input interface on the preset display panel, so that the target person re-enters the authentication information for comparison. In this embodiment, if the target person is assigned viewing authority and editing authority, it means that the identity information of the target person is an administrator identity, and the administrator can view and configure the indicator data of his concern at any time. If the target person is assigned viewing permissions, it means that the identity information of the target person is an ordinary user identity, and ordinary users can view these indicator data at any time, but cannot configure the indicator data on the preset display panel. Therefore, this embodiment avoids irrelevant personnel from viewing or configuring data through user authentication and authorization, thereby reducing the risk of data leakage. At the same time, users are divided into administrators and ordinary users. Administrators can view and configure the indicator data of concern at any time, while ordinary users can view these indicator data at any time. In addition, if the preset display panel in this embodiment is based on the data visualization interface of Grafana, this embodiment can open the Grafana data visualization panel URL (Uniform Resource Locator, Uniform Resource Locator, referred to as URL), which is convenient for all target personnel to observe the monitored data.
[0063] According to the above records, in an exemplary embodiment, before obtaining the dot message, this embodiment may also include: configuring an open source time series database in the server to generate a server database; installing an open source monitoring and alarm tool, and configuring the open source monitoring and alarm tool to connect to the server database; developing an application programming interface (Application Program Interface, API for short) of the server database in the server; configuring the network environment so that the gateway controller communicates with the server via Ethernet; developing or integrating a data acquisition agent component on the gateway controller, the data acquisition agent component is used to monitor the specified function interface and variables, and capture data when the data changes. Specifically, in this embodiment or other embodiments, before obtaining the dot message, the InfluxDB database can be installed and configured on the server, and then the open source monitoring and alarm tool Prometheus can be installed, and the open source monitoring and alarm tool Prometheus can be configured to connect to the InfluxDB database. Among them, Prometheus is an open source system monitoring and alarm toolkit that can collect and store time series data from various sources (such as applications, services, operating systems, and network devices, etc.). Then develop the application programming interface of the InfluxDB database on the server as a dot interface. Configure the network environment to ensure that the gateway controller (GW) can communicate with the server via Ethernet. The connection relationship between the gateway controller GW and the server is as follows: Figure 2 As shown, the gateway controller GW is connected to the server by a connector, and the connector model can be selected according to the actual application scenario. The T1 interface is the application programming interface of the gateway controller GW, and the TX interface is the application programming interface of the InfluxDB database in the server. In this embodiment or other embodiments, the TX interface can be used as a dot interface. Then develop or integrate a data acquisition agent component on the gateway controller GW to implement the integration and compilation of the dot interface code of the InfluxDB database. Among them, the data acquisition agent component is used to monitor the specified function interface and variables, and capture data when the data changes; the API provided to the data acquisition agent component in the gateway controller GW is used to send the captured data to the server in a specific format.
[0064] According to the above records, in an exemplary embodiment, the process of sending monitoring warning information to the target personnel according to the preset warning method includes: grading the degree of fault danger, and setting multiple monitoring warning levels according to the grading results; selecting different warning methods from the preset warning methods according to each monitoring warning level; matching the monitoring warning level based on the difference between the real-time data and the reference data, and sending the monitoring warning information to the target personnel according to the warning method corresponding to the matched monitoring warning level; wherein the preset warning method includes: email, text message, phone, chat application software, office application software. In this embodiment, the target personnel can be administrators, ordinary users, test engineers, development engineers and other personnel. In this embodiment or other embodiments, in Prometheus, timely alarm services are configured through Alertmanager, and the indicator data danger level classification is configured. When the monitored data is abnormal, the office application software (such as DingTalk, Feishu, etc.), chat application software (such as WeChat, etc.), email, mobile phone text messages and / or phone warning methods are selected according to the corresponding danger level monitoring warning, etc. to notify the target personnel. Among them, Alertmanager is a key component in the Prometheus ecosystem, which is mainly responsible for processing the alarms generated by Prometheus.
[0065] In another exemplary embodiment of the present application, the embodiment provides an ECU test data monitoring and early warning method based on a vehicle gateway controller, comprising the following steps:
[0066] Install and configure the InfluxDB database on the server;
[0067] Install the open source monitoring and alarm tool Prometheus, and configure the open source monitoring and alarm tool Prometheus to connect to the InfluxDB database;
[0068] Develop the InfluxDB database application programming interface on the server as the management interface;
[0069] Configure the network environment to ensure that the gateway controller GW can communicate with the server through Ethernet;
[0070] Develop or integrate data collection agent components on the gateway controller GW, and implement the integration and compilation of the InfluxDB database management interface code;
[0071] Formulate a communication protocol. Since each CAN channel and each ECU under the gateway controller GW has its own message, the data of interest can be sent to the gateway controller GW through the CAN protocol. Take IC, the ECU under the gateway controller GW, as an example. When the gateway controller GW receives the 0x4F4 message sent by IC, it will extract information such as the ID, CPU real-time status, and interface success rate.
[0072] After receiving a CAN message whose message identifier (message id) belongs to a dot message, the gateway parses the dot data of the CAN message according to the communication protocol, and calls the dot interface of the InfluxDB database to complete the data dot storage of the downstream ECU.
[0073] Connect Prometheus to Grafana, create a visualization panel, and configure the indicator data you are interested in.
[0074] Configure security measures, including user authentication and authorization. Users are divided into administrators and ordinary users. Administrators can view and configure the indicator data they are concerned about at any time, while ordinary users can view these indicator data at any time. At the same time, the URL of the Grafana data visualization panel is open to facilitate all target personnel to observe the monitored data.
[0075] Configure a real-time alert system and configure a timely alert service through Alertmanager in Prometheus. Configure the indicator data risk level classification. When the monitored data is abnormal, select office application software (such as DingTalk, Feishu, etc.), chat application software (such as WeChat, etc.), email, mobile phone text message and / or phone call to notify the target personnel according to the corresponding risk level monitoring warning.
[0076] It can be seen that in this embodiment, the InfluxDB dot interface can be deployed on the gateway controller GW with Ethernet communication function; then the InfluxDB is connected to the gateway controller GW through Ethernet communication, and the dot data to be uploaded of the ECU of the lower pendant of the gateway controller GW on the vehicle is collected according to the specified communication protocol, and the time series data uploaded by all ECUs of the lower pendant of the vehicle GW is collected using InfluxDB, and Grafana is used to connect to Prometheus, and a visualization panel is created to visualize and analyze the data, and then the Grafana data visualization panel URL is opened to facilitate all target personnel to observe the monitored data. Finally, the timely alarm service is configured through Alertmanager in Prometheus. Therefore, this embodiment realizes the complete process of data collection, storage and visualization display of most of the lower pendant ECUs on the vehicle to the server through the gateway controller GW. Not only the accessibility and comprehensibility of the whole vehicle test data are improved, but also the efficiency and quality of the whole vehicle test are greatly improved through real-time monitoring and analysis. Since most of the data communication between ECUs in the vehicle is carried out through the CAN protocol, and the vehicle gateway controller GW is the bridge for these ECUs to communicate, these ECUs are connected to the gateway controller GW through the CAN bus, so these ECUs are called the lower hanging parts of the gateway controller GW, and most of the data of these ECUs can be sent to the gateway controller GW. Therefore, in order to upload this data without Ethernet communication function, this embodiment proposes an ECU test data monitoring and early warning solution based on the vehicle gateway controller, which can first send the ECU test data to the gateway controller GW through the CAN message, and then the gateway controller GW with an Ethernet interface will upload the corresponding data through Ethernet, thereby solving the functions of uploading all ECU data of the whole vehicle to the server, visualizing the data, monitoring and alarming, and analyzing the data.
[0077] In summary, the present application provides a data monitoring and early warning method, firstly obtains a dot message, then sends the dot message to the gateway controller through the controller domain network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller domain network message of the dot message, parses the dot data of the controller domain network message, and calls the application programming interface in the server database to dot the data of the target electronic control unit; finally, based on the dot result, the data of the target electronic control unit is displayed on the preset display panel, and the data of the target electronic control unit is monitored and warned through the index data configured in advance or in real time. It can be seen that the present method realizes the complete process of data collection, storage and visual display of most electronic control units in the vehicle to the server through the gateway controller, which not only improves the accessibility and comprehensibility of the whole vehicle test data, but also can assist the target personnel to monitor and analyze the data of the electronic control unit in real time by displaying the data of the electronic control unit on the preset display panel, thereby reducing the time of manual inspection and greatly improving the efficiency and quality of vehicle whole vehicle testing. At the same time, by real-time monitoring of the operating status and performance indicators of the electronic control unit, it helps the target personnel to find potential problems in time and avoid failures. Moreover, when an ECU fails, monitoring warning information can be sent to the target personnel so that they can quickly locate the problem and cause, thereby improving the accuracy and speed of fault diagnosis. In addition, by visually analyzing the data of a large number of ECUs, the patterns and trends in the data can be discovered, providing a basis for optimizing the design of ECUs and improving test methods.
[0078] In another exemplary embodiment of the present application, Figure 3 As shown, this embodiment also provides a data monitoring and early warning system, including:
[0079] The dotting message module 310 is used to obtain the dotting message, and the dotting message includes a message for uploading the electronic control unit data defined in advance or in real time. In this embodiment or other embodiments, the electronic control unit data may include the data of the electronic control unit itself, and may also include the test data of the electronic control unit ECU, and may also include other data related to the electronic control unit ECU, such as CPU utilization, network load, CAN bus load, CAN frame loss rate, CAN routing delay, interface success rate, interface different abnormal return value occurrence probability, abnormal input parameters and other data. Therefore, the electronic control unit data when defining the dotting message can be set or selected according to the actual application scenario, and this embodiment will not be repeated here. In this embodiment or other embodiments, before obtaining the dotting message, it can also include defining the dotting message based on the target parameters, and the target parameters include but are not limited to: message name, message type, message identifier, message sending type, message length, signal name, signal description, arrangement format, start byte, start bit, signal sending type, signal length, data type.
[0080] The data dotting module 320 is used to send the dotting message to the gateway controller through the controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dotting message, parse the dotting data of the controller area network message, and call the application programming interface in the server database to dot the data of the target electronic control unit; wherein, the target electronic control unit includes an electronic control unit connected to the gateway controller. In this embodiment or other embodiments, the target electronic control unit can also be referred to as a lower hanging electronic control unit or a lower hanging ECU, and the application programming interface in the server database can also be referred to as a dotting interface. In this embodiment or other embodiments, the server database can be selected or set according to actual conditions, and this embodiment will not be repeated here. As an example, InfluxDB can be selected as the server database. Among them, InfluxDB is an open source time series database developed by InfluxData, focusing on high-performance reading and writing, efficient storage and real-time analysis of massive time series data.
[0081] The monitoring and early warning module 330 is used to display the data of the target electronic control unit on the preset display panel according to the dotting results, and monitor and warn the data of the target electronic control unit through the pre-configured or real-time indicator data. In this embodiment or other embodiments, the preset display panel can be set or selected according to the actual application scenario, and this embodiment will not be repeated here. Specifically, in this implementation or other embodiments, the process of displaying the data of the target electronic control unit on the preset display panel based on the dotting results includes: displaying one or more data points of the target electronic control unit on the preset display panel in an indicator card style; and / or, displaying the ratio of a certain metric of the target electronic control unit to the maximum value on the preset display panel in a dashboard style, and displaying it in the form of an arc pointer; and / or, displaying the data category distribution of the target electronic control unit on the preset display panel in a pie chart style, and displaying the proportion of each part to the total data volume through different sector sizes; and / or, displaying the data proportion of the target electronic control unit on the preset display panel in a ring chart style; and / or, displaying the target electronic control unit in a stacked bar chart style on the preset display panel The data latitude comparison results are displayed, and each bar is used as a category, and the length of the bar represents the numerical value; and / or, the data latitude percentage of the target electronic control unit is displayed on the preset display panel through a percentage stacked bar chart style; and / or, the data category of the target electronic control unit is displayed on the preset display panel through a bar chart style; and / or, the data change trend of the target electronic control unit over time is displayed on the preset display panel through a line chart style; and / or, the data cumulative effect of the target electronic control unit is displayed on the preset display panel through an area chart style; and / or, the data frequency distribution of the target electronic control unit is displayed on the preset display panel through a histogram style; and / or, the data variable relationship of the target electronic control unit is displayed on the preset display panel through a scatter plot style. As an example, this embodiment or other embodiments can be based on the data visualization interface of Grafana as the preset display panel. Among them, Grafana is an open source monitoring dashboard and graphic editor that is widely used to visualize time series data. Therefore, in this embodiment, through these chart types and configuration options, the preset display panel or Grafana can flexibly display data from various data sources, thereby helping the target personnel to better visualize, monitor, alarm and analyze ECU data.
[0082] According to the above records, in an exemplary embodiment, the process of monitoring and warning the data of the target electronic control unit through pre- or real-time configured indicator data includes: using the pre- or real-time configured indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and, comparing the real-time data with the reference data to determine whether the real-time data is consistent with the reference data; if the real-time data is consistent with the reference data, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the real-time data is inconsistent with the reference data, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and the monitoring warning information is sent to the target personnel according to the preset warning method. Alternatively, the process of monitoring and warning the data of the target electronic control unit by the pre-configured or real-time indicator data includes: using the pre-configured or real-time indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and comparing the real-time data with the reference data to determine whether the difference between the real-time data and the reference data is less than or equal to the preset threshold; if the difference between the real-time data and the reference data is less than or equal to the preset threshold, it is determined that there is no abnormality in the reference data and there is no fault in the test process of the electronic control unit; if the difference between the real-time data and the reference data is greater than the preset threshold, it is determined that there is an abnormality in the reference data, there is a fault in the test process of the electronic control unit, and a monitoring warning information is sent to the target personnel according to the preset warning method. It can be seen that the present embodiment can use two methods to monitor and warn the data of the target electronic control unit. For data that needs to be consistent, if the real-time data is inconsistent with the reference data, it means that there is a fault in the test process, and it is necessary to send monitoring warning information to the target personnel according to the preset warning method. For data that does not need to be consistent, if the difference between the real-time data and the reference data is greater than the preset threshold, it also means that there is a fault in the test process, and it is necessary to send monitoring warning information to the target personnel according to the preset warning method.
[0083] According to the above records, in an exemplary embodiment, before displaying the data of the target electronic control unit on the preset display panel based on the dotting result, this embodiment may also include: receiving the authentication information input by the target person on the preset display panel, recorded as the information to be authenticated; comparing the information to be authenticated with the pre-stored authentication information; when the similarity between the information to be authenticated and the pre-stored authentication information is greater than or equal to the preset similarity, marking the target person as having passed the login authentication, and extracting the pre-associated identity information based on the information to be authenticated, and assigning the target person the operation authority on the preset display panel based on the identity information; wherein the operation authority includes: viewing authority, editing authority; when the similarity between the information to be authenticated and the pre-stored authentication information is less than the preset similarity, marking the target person as not having passed the login authentication, and re-popping up the authentication information input interface on the preset display panel, so that the target person re-enters the authentication information for comparison. In this embodiment, if the target person is assigned viewing authority and editing authority, it means that the identity information of the target person is an administrator identity, and the administrator can view and configure the indicator data of his concern at any time. If the target person is assigned viewing permissions, it means that the identity information of the target person is an ordinary user identity, and ordinary users can view these indicator data at any time, but cannot configure the indicator data on the preset display panel. Therefore, this embodiment avoids irrelevant personnel from viewing or configuring data through user authentication and authorization, thereby reducing the risk of data leakage. At the same time, users are divided into administrators and ordinary users. Administrators can view and configure the indicator data of concern at any time, while ordinary users can view these indicator data at any time. In addition, if the preset display panel in this embodiment is based on the data visualization interface of Grafana, this embodiment can open the Grafana data visualization panel URL (Uniform Resource Locator, Uniform Resource Locator, referred to as URL), which is convenient for all target personnel to observe the monitored data.
[0084] According to the above records, in an exemplary embodiment, before obtaining the dot message, this embodiment may also include: configuring an open source time series database in the server to generate a server database; installing an open source monitoring and alarm tool, and configuring the open source monitoring and alarm tool to connect to the server database; developing an application programming interface (Application Program Interface, API for short) of the server database in the server; configuring the network environment so that the gateway controller communicates with the server via Ethernet; developing or integrating a data acquisition agent component on the gateway controller, the data acquisition agent component is used to monitor the specified function interface and variables, and capture data when the data changes. Specifically, in this embodiment or other embodiments, before obtaining the dot message, the InfluxDB database can be installed and configured on the server, and then the open source monitoring and alarm tool Prometheus can be installed, and the open source monitoring and alarm tool Prometheus can be configured to connect to the InfluxDB database. Among them, Prometheus is an open source system monitoring and alarm toolkit that can collect and store time series data from various sources (such as applications, services, operating systems, and network devices, etc.). Then develop the application programming interface of the InfluxDB database on the server as a dot interface. Configure the network environment to ensure that the gateway controller (GW) can communicate with the server via Ethernet. The connection relationship between the gateway controller GW and the server is as follows: Figure 2 As shown, the gateway controller GW is connected to the server by a connector, and the connector model can be selected according to the actual application scenario. The T1 interface is the application programming interface of the gateway controller GW, and the TX interface is the application programming interface of the InfluxDB database in the server. In this embodiment or other embodiments, the TX interface can be used as a dot interface. Then develop or integrate a data acquisition agent component on the gateway controller GW to implement the integration and compilation of the dot interface code of the InfluxDB database. Among them, the data acquisition agent component is used to monitor the specified function interface and variables, and capture data when the data changes; the API provided to the data acquisition agent component in the gateway controller GW is used to send the captured data to the server in a specific format.
[0085] According to the above records, in an exemplary embodiment, the process of sending monitoring warning information to the target personnel according to the preset warning method includes: grading the degree of fault danger, and setting multiple monitoring warning levels according to the grading results; selecting different warning methods from the preset warning methods according to each monitoring warning level; matching the monitoring warning level based on the difference between the real-time data and the reference data, and sending the monitoring warning information to the target personnel according to the warning method corresponding to the matched monitoring warning level; wherein the preset warning method includes: email, text message, phone, chat application software, office application software. In this embodiment, the target personnel can be administrators, ordinary users, test engineers, development engineers and other personnel. In this embodiment or other embodiments, in Prometheus, timely alarm services are configured through Alertmanager, and the indicator data danger level classification is configured. When the monitored data is abnormal, the office application software (such as DingTalk, Feishu, etc.), chat application software (such as WeChat, etc.), email, mobile phone text messages and / or phone warning methods are selected according to the corresponding danger level monitoring warning, etc. to notify the target personnel. Among them, Alertmanager is a key component in the Prometheus ecosystem, which is mainly responsible for processing the alarms generated by Prometheus.
[0086] In summary, the present application provides a data monitoring and early warning system, firstly obtains the dot message, then sends the dot message to the gateway controller through the controller domain network protocol, and when the gateway controller identifies the received message identifier as a controller domain network message of the dot message, parses the dot data of the controller domain network message, and calls the application programming interface in the server database to dot the data of the target electronic control unit; finally, based on the dot result, the data of the target electronic control unit is displayed on the preset display panel, and the data of the target electronic control unit is monitored and warned through the index data configured in advance or in real time. It can be seen that the system realizes the complete process of data collection, storage and visual display of most electronic control units in the vehicle to the server through the gateway controller, which not only improves the accessibility and comprehensibility of the whole vehicle test data, but also can assist the target personnel to monitor and analyze the data of the electronic control unit in real time by displaying the data of the electronic control unit on the preset display panel, thereby reducing the time of manual inspection and greatly improving the efficiency and quality of vehicle whole vehicle testing. At the same time, by real-time monitoring of the operating status and performance indicators of the electronic control unit, it helps the target personnel to find potential problems in time and avoid failures. Moreover, when an ECU fails, monitoring warning information can be sent to the target personnel so that they can quickly locate the problem and cause, thereby improving the accuracy and speed of fault diagnosis. In addition, by visually analyzing the data of a large number of ECUs, the patterns and trends in the data can be discovered, providing a basis for optimizing the design of ECUs and improving test methods.
[0087] It should be noted that the data monitoring and early warning system provided in the above embodiment and the data monitoring and early warning method provided in the above embodiment belong to the same concept, wherein the specific manner in which the data monitoring and early warning method performs operations has been described in detail in the above method embodiment, and will not be repeated here. In actual applications, the data monitoring and early warning system provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the data monitoring and early warning system into different functional modules, and then implement all or part of the functions of the corresponding functional modules through the data monitoring and early warning method described in the above embodiment, and this is not specifically limited here.
[0088] In another exemplary embodiment of the present application, the embodiment further provides a data monitoring and early warning system, such as Figure 4 As shown, the data monitoring and early warning system includes a data collection layer, a data storage layer, a data visualization layer, a network communication layer, and a security and authority management layer.
[0089] Specifically, the functions of the data collection layer include collecting data from the key function interfaces and variables of the ECU, and sending these data to the InfluxDB database on the server through the gateway controller GW. The key components of the data collection layer include the data collection agent component, the dot API, and the ECU data acquisition component; among them, the data collection agent component is the agent software installed on the ECU, which is responsible for monitoring the specified function interfaces and variables, and capturing data when the data changes. The dot API is an API provided to the data collection agent in the GW, which is used to send the captured data to the server in a specific format. The ECU data acquisition component saves the data format to be uploaded by each ECU (ECU1 to ECUn) under the gateway controller GW through the specified communication protocol. When these ECUs send dot messages to the gateway controller GW, after receiving the CAN message whose message identifier message id belongs to the dot message, the gateway controller GW parses the dot data of the message according to the communication protocol, and calls the dot API of the InfluxDB database to complete the data dot saving of the ECU under the hanger.
[0090] The functions of the data storage layer include receiving data from the ECU and storing it in the InfluxDB time series database. The key components of the data storage layer include the InfluxDB database and the data receiving service. Among them, the InfluxDB database is a high-performance time series database used to store data points from the gateway controller GW. The data receiving service runs on the server and is responsible for receiving the data points sent by the ECU and writing them to the InfluxDB database.
[0091] The functions of the data visualization layer include providing a user interface that allows users to configure and view the visualization of data. The key components of the data visualization layer include Prometheus and Grafana visualization panels. Among them, Prometheus is an open source monitoring and alerting tool used to query and display data from InfluxDB. The Grafana visualization panel uses Grafana to connect to Prometheus and configure the Grafana dashboard to display key indicators such as interface success rate and corresponding indicator data.
[0092] The functions of the network communication layer include ensuring that data transmission between the ECU and the server is secure and reliable. The key components of the network communication layer include Ethernet communication hardware and software, setting up the network environment, Ethernet connection, and data transmission protocol. Among them, the Ethernet communication hardware and software is an ECU (Electronic Control Unit) that supports Ethernet communication, and has Ethernet MAC (Media Access Control) and PHY (Physical Layer) chips, MII / RMII / GMII / RGMII interfaces, necessary software protocol stacks, and related network testing and security mechanisms. Setting up the network environment ensures that the environment in which the FreeRTOS operating system on the ECU runs has been configured with a network protocol stack, such as lwIP (Lightweight IP, referred to as lwIP), which supports TCP / IP protocol (Transmission Control Protocol / Internet Protocol, Transmission Control Protocol / Internet Protocol, referred to as TCP / IP protocol), including HTTP protocol (Hyper Text Transfer Protocol, Hypertext Transfer Protocol, referred to as HTTP protocol). FreeRTOS is a popular open source real-time operating system (RTOS) kernel designed for embedded systems. It was developed by Richard Barry and first released in 2003. FreeRTOS provides the necessary software foundation so that developers can build complex, high-performance, reliable and easy-to-maintain embedded applications. Ethernet connection mainly connects the gateway controller GW to the server via Ethernet to ensure stable network communication. The data transmission protocol is used to define the communication protocol between the gateway controller GW and the server, such as using the HTTP protocol.
[0093] The functions of the security and permission management layer include security protection to prevent unauthorized access. The key components of the security and permission management layer include authentication mechanism and authorization policy. Among them, the authentication mechanism ensures that only authenticated users can access or operate. The authorization policy defines the permissions of different users, such as viewing, editing or managing data visualization panels.
[0094] According to the above records, this embodiment can split or merge the functions of the data collection layer, data storage layer, data visualization layer, network communication layer and security and permission management layer, so that the split or merged functions can realize the functions described in the message dotting module, data dotting module and monitoring and early warning module in the above embodiments, or the split or merged functions can realize steps S110 to S130 and related steps in the above embodiments. The specific splitting or merging process refers to the above embodiments, and it will not be repeated here.
[0095] The present application also provides a computer device, which may include a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program so that the computer device executes Figure 1 The steps of the data monitoring and early warning method. Figure 5 FIG. 1 is a schematic diagram showing a structure of a computer device 1000. Figure 5 As shown, the computer device 1000 includes: a processor 1010 , a memory 1020 , a power supply 1030 , a display unit 1040 , and an input unit 1060 .
[0096] The processor 1010 is the control center of the computer device 1000. It uses various interfaces and lines to connect various components, and executes various functions of the computer device 1000 by running or executing computer programs / instructions stored in the memory 1020, thereby monitoring the computer device 1000 as a whole. In the embodiment of the present application, when the processor 1010 calls the computer program stored in the memory 1020, the following is executed: Figure 1 The steps of the data monitoring and early warning method. Optionally, the processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application, etc., and the modem processor mainly processes wireless communication. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips.
[0097] The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, etc.; the data storage area may store instruction data, etc. created according to the use of the computer device 1000. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices, etc.
[0098] The computer device 1000 also includes a power source 1030 (such as a battery) for supplying power to various components. The power source can be logically connected to the processor 1010 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0099] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the computer device 1000, and in the embodiment of the present application, it is mainly used to display the display interface of each application in the computer device 1000 and objects such as text and pictures displayed in the display interface. The display unit 1040 may include a preset display panel 1050. The preset display panel 1050 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
[0100] The input unit 1060 may be used to receive information such as numbers or characters input by the user. The input unit 1060 may include a touch panel 1070 and other input devices 1080. The touch panel 1070, also known as a touch screen, may collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 1070).
[0101] Specifically, the touch panel 1070 can detect the user's touch operation, detect the signal brought by the touch operation, convert these signals into touch point coordinates, send them to the processor 1010, and receive and execute the command sent by the processor 1010. In addition, the touch panel 1070 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. Other input devices 1080 can include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0102] Of course, the touch panel 1070 can cover the preset display panel 1050. When the touch panel 1070 detects a touch operation on or near it, it is transmitted to the processor 1010 to determine the type of touch event, and then the processor 1010 provides corresponding visual output on the preset display panel 1050 according to the type of touch event. Figure 5 In the embodiment, the touch panel 1070 and the preset display panel 1050 are two independent components to realize the input and output functions of the computer device 1000, but in some embodiments, the touch panel 1070 and the preset display panel 1050 can be integrated to realize the input and output functions of the computer device 1000.
[0103] The computer device 1000 may further include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the computer device 1000 may also include other components such as a camera.
[0104] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the above-mentioned device can execute the above-mentioned Figure 1 The steps of the data monitoring and early warning method.
[0105] It can be understood by those skilled in the art that Figure 5 This is only an example of a computer device and does not constitute a limitation on the device. The device may include more or fewer components than shown in the figure, or combine certain components, or different components. For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0106] Those skilled in the art should understand that the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be applied to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0107] It should be noted that the above embodiments collect, store, use, process, transmit, provide, disclose, delete, etc. related data (such as electronic control unit data, etc.) with or with the consent of the user. For example, the electronic control unit data is authorized with the knowledge and consent of the user; or it is actively provided by the user after reading the relevant instructions, or it is actively authorized / provided / uploaded by the user when using some or all of the functions described in the above embodiments, or it is obtained by other means / channels with or with the consent of the user.
[0108] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A data monitoring and early warning method, characterized in that: The method comprises the following steps: Acquire a dot message, wherein the dot message includes a message for uploading electronic control unit data defined in advance or in real time; The dot message is sent to a gateway controller through a controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dot message, the dot data of the controller area network message is parsed, and an application programming interface in a server database is called to dot the data of a target electronic control unit; wherein the target electronic control unit includes an electronic control unit connected to the gateway controller; The data of the target electronic control unit is displayed on a preset display panel based on the dot results, and the data of the target electronic control unit is monitored and warned through pre- or real-time configured indicator data.
2. The data monitoring and early warning method according to claim 1 is characterized in that: The process of monitoring and warning the data of the target electronic control unit through the pre-configured or real-time configured indicator data includes: Using the pre- or real-time configured indicator data as reference data, and using the data of the target electronic control unit displayed on the preset display panel as real-time data; and comparing the real-time data with the reference data to determine whether the real-time data is consistent with the reference data; if the real-time data is consistent with the reference data, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the real-time data is inconsistent with the reference data, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and a monitoring warning information is sent to the target personnel according to a preset warning method; Alternatively, the pre- or real-time configured indicator data is used as reference data, and the data of the target electronic control unit displayed on the preset display panel is used as real-time data; and the real-time data is compared with the reference data to determine whether the difference between the real-time data and the reference data is less than or equal to a preset threshold; if the difference between the real-time data and the reference data is less than or equal to the preset threshold, it is determined that there is no abnormality in the reference data and there is no fault in the electronic control unit test process; if the difference between the real-time data and the reference data is greater than the preset threshold, it is determined that there is an abnormality in the reference data and there is a fault in the electronic control unit test process, and a monitoring warning information is sent to the target personnel in accordance with the preset warning method.
3. The data monitoring and early warning method according to claim 1 is characterized in that: Before displaying the data of the target electronic control unit on a preset display panel based on the dotting result, the method further includes: Receiving authentication information input by the target person on the preset display panel and recording it as information to be authenticated; Comparing the information to be authenticated with pre-stored authentication information; When the similarity between the information to be authenticated and the pre-stored authentication information is greater than or equal to the preset similarity, the target person is marked as having passed the login authentication, and the pre-associated identity information is extracted based on the information to be authenticated, and the target person is assigned operation permissions on a preset display panel based on the identity information; wherein the operation permissions include: viewing permissions and editing permissions; When the similarity between the information to be authenticated and the pre-stored authentication information is less than the preset similarity, the target person is marked as having failed the login authentication, and the authentication information input interface is re-popped up on the preset display panel, so that the target person re-enters the authentication information for comparison.
4. The data monitoring and early warning method according to claim 1 or 3, characterized in that: The process of displaying the data of the target electronic control unit on a preset display panel based on the dotting result includes: Displaying one or more data points of the target electronic control unit on the preset display panel in an indicator card style; and / or, displaying the ratio of a certain metric of the target electronic control unit relative to a maximum value on the preset display panel in a dashboard style and in the form of an arc pointer; and / or, displaying the data category distribution of the target electronic control unit in a pie chart format on the preset display panel, and displaying the proportion of each part to the total data volume in different sector sizes; and / or, displaying the data proportion of the target electronic control unit in a ring-shaped chart format on the preset display panel; and / or, displaying the data latitude comparison result of the target electronic control unit in a stacked bar chart style on the preset display panel, with each bar as a category, and the length of the bar representing the value; and / or, displaying the data latitude percentage of the target electronic control unit on the preset display panel in a percentage stacked bar chart style; and / or, displaying the data category of the target electronic control unit in a bar graph style on the preset display panel; and / or, displaying the change trend of the data of the target electronic control unit over time in a line graph format on the preset display panel; and / or, displaying the data accumulation effect of the target electronic control unit in an area chart format on the preset display panel; and / or, displaying the data frequency distribution of the target electronic control unit in a histogram format on the preset display panel; And / or, displaying the data variable relationship of the target electronic control unit in a scatter plot style on the preset display panel.
5. The data monitoring and early warning method according to claim 1 is characterized in that: Before obtaining the dot message, the method further includes: An open source time series database is configured in the server to generate the server database; Install an open source monitoring and alarm tool, and configure the open source monitoring and alarm tool to connect to the server database; developing an application programming interface for said server database in said server; Configuring a network environment so that the gateway controller communicates with the server via Ethernet; A data acquisition agent component is developed or integrated on the gateway controller, and the data acquisition agent component is used to monitor the specified function interface and variables and capture data when the data changes.
6. The data monitoring and early warning method according to claim 2 is characterized in that: The process of sending monitoring warning information to the target person according to the preset warning method includes: Classify the degree of fault danger and set multiple monitoring and warning levels according to the classification results; Select different warning methods from the preset warning methods according to each monitoring warning level; Matching the monitoring warning level based on the difference between the real-time data and the reference data, and sending monitoring warning information to the target person according to the warning method corresponding to the matched monitoring warning level; Among them, the preset warning methods include: email, text message, phone call, chat application software, and office application software.
7. The data monitoring and early warning method according to claim 1 is characterized in that: Before obtaining the dot message, the method also includes defining the dot message based on target parameters, and the target parameters include: message name, message type, message identifier, message sending type, message length, signal name, signal description, arrangement format, start byte, start bit, signal sending type, signal length, and data type.
8. A data monitoring and early warning system, characterized in that: The system comprises: A dot message module, used to obtain dot messages, wherein the dot messages include pre-defined or real-time messages for uploading electronic control unit data; A data dotting module, used for sending the dotting message to the gateway controller through the controller area network protocol, and when the gateway controller identifies that the received message identifier belongs to the controller area network message of the dotting message, parsing the dotting data of the controller area network message, and calling the application programming interface in the server database to dot the data of the target electronic control unit; wherein the target electronic control unit includes an electronic control unit connected to the gateway controller; The monitoring and early warning module is used to display the data of the target electronic control unit on a preset display panel according to the dot results, and to monitor and warn the data of the target electronic control unit through pre- or real-time configured indicator data.
9. A computer device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the data monitoring and early warning method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the data monitoring and early warning method described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Internal memory dotting-based data calling method for acquisition system
CN102043867A
Video preference information processing method, apparatus and system
CN106507149A
Network monitoring data collection and analysis system and method
CN106612199A
Computer server cluster log monitoring method and monitoring platform
CN107943668A
Dotting method and device, terminal and storage medium
CN110717130A
Cited By
Method and system for monitoring automobile ECU (Electronic Control Unit) node loss
CN119960432A