A multi-channel independent pipeline information communication equipment system and method
Through the analysis of the baseline and startup performance of multi-channel independent pipeline information and communication system, real-time detection of data transmission volume and error recovery capabilities, division of channel operation status and inferring optimization methods, the problem of system performance degradation under high load is solved, and the system has been improved The stability and reliability of the system ensure the accuracy and completeness of data transmission.
Patent Information
- Application Number
- CN202411280656.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Traditional multi-channel independent pipeline information and communication systems are prone to data loss, delay and errors under high load and abnormal conditions, resulting in system performance degradation or failure. How to improve the stability and reliability of the system has become a research hotspot and difficulty.
Through the analysis of baseline performance and startup performance, the data delivery volume of the channel is detected in real time and the introduction of specific data transmission errors are calculated, the data load index and error recovery index are calculated, the operation status of the channel is divided based on these indexes, and whether data is needed is inferred based on the status. Package delivery or introduce redundant designs.
It realizes timely discovering and correcting potential problems under high load and abnormal situations, reducing system failure rates, improving data transmission efficiency and stability, ensuring the system operates efficiently under high load conditions, and improving user experience and satisfaction.
Smart Images

Figure CN118802684B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information communication technology, and more specifically, to a multi-channel independent pipeline information communication equipment system and method. Background Art
[0002] Multi-channel independent pipeline information communication is a data transmission technology that transmits data in parallel through multiple independent communication channels (pipelines) to improve the efficiency, reliability and stability of data transmission. Each channel can work independently without interfering with each other, ensuring efficient data transmission under high load and complex environment.
[0003] In modern information communication systems, multi-channel independent pipeline information transmission methods are widely used in various high-demand real-time data transmission environments. These systems have important applications in industrial automation, vehicle-mounted communications, intelligent transportation and other fields. However, with the continuous increase in data transmission needs, the stability and performance issues of the system under high load and abnormal conditions are becoming increasingly prominent. When dealing with high loads, traditional data transmission systems are prone to data loss, delays and errors, resulting in reduced system performance and even system failures. How to improve the stability and reliability of multi-channel information communication systems has become a hot and difficult issue in current research. Therefore, a multi-channel independent pipeline information communication equipment system and method are proposed herein. Summary of the invention
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A multi-channel independent pipeline information communication method comprises the following steps:
[0006] Configure the operating environment of multi-channel independent pipeline information communication, and then use the prepared performance monitoring tool to record the baseline performance and startup performance. Perform a preliminary analysis based on the baseline performance and startup performance to determine whether there are hidden dangers of high-load environment applications;
[0007] If there are hidden dangers of high-load environment applications, the data transmission volume of each channel is detected in real time, and specific data transmission errors are introduced to monitor the recovery ability of each channel. The load of each channel is analyzed to obtain the data load index and error recovery index respectively;
[0008] Based on the data load index and the error recovery index, a comprehensive analysis is performed on the target channel to obtain the channel usage quality coefficient, and the target channel is divided into a normal operation state and an abnormal operation state according to the channel usage quality coefficient;
[0009] For target channels in abnormal operating states, the optimization method is inferred to clarify whether data packaging and transmission are required and whether redundant design needs to be introduced.
[0010] In a preferred embodiment, the baseline performance refers to: recording the baseline CPU usage of the system without any application running, and monitoring and recording the CPU usage in this state in real time.
[0011] In a preferred embodiment, the startup performance refers to: starting different applications responsible for operating different independent pipelines in sequence, recording the change in CPU usage after each application is started, and only one application corresponding to an independent pipeline is running at a time.
[0012] In a preferred embodiment, the steps of performing a preliminary analysis based on the baseline performance and the startup performance to determine whether there are hidden dangers of high-load environment applications are as follows:
[0013] In a fixed time window, obtain the CPU usage in the baseline performance record, calculate the average CPU usage in the baseline performance record, and mark it as CC. Obtain the CPU usage of each independent pipeline in the startup performance record, and then calculate the average CPU usage of each independent pipeline and mark it as Ci, where i represents the sequence number of the independent pipeline. Then calculate the CPU usage increment when each independent pipeline is started. The calculation formula is: ; Zi represents the CPU usage increment of the independent pipeline with sequence number i when it is started. According to the CPU usage increment Zi, an impact threshold is preset and marked as YZ;
[0014] Get the real-time CPU usage in a fixed time window when all independent pipelines are started, get the time series data composed of the real-time CPU usage, calculate the average value of the time series data, and mark it as cc. A comprehensive application interval is preset, and the average value cc of the time series data is compared with the comprehensive application interval. If the average value cc of the time series data is greater than the maximum value of the comprehensive application interval, all independent pipelines have hidden dangers of high-load environment applications. If the average value cc of the time series data is less than the minimum value of the comprehensive application interval, all independent pipelines do not have hidden dangers of high-load environment applications. If the average value cc of the time series data falls within the comprehensive application interval, all independent pipelines whose CPU usage increment Zi is greater than or equal to the impact threshold YZ have hidden dangers of high-load environment applications.
[0015] In a preferred embodiment, the logic for obtaining the data load index is:
[0016] In a fixed time window, the number and size of data packets in each channel are recorded, and the data transmission rate of each channel is calculated using the following formula: ; represents the data transmission rate of channel i in time window t, represents the size of the jth packet of channel i in time window t, represents the length of the time window, n represents the total number of packets of channel i in the time window t;
[0017] The DBSCAN algorithm is used for density clustering analysis, and the formula is expressed as: ; Indicates the specified field radius, which is used to determine whether two points are in the same cluster. Indicates the minimum number of points in the specified area to determine whether a point is a core point, and then uses the proportion of high-density clusters in the clustering results as the data load index. The formula is expressed as: ; represents the data load index of channel i, represents the number of high-density points in the cluster, Indicates the total number of data points.
[0018] In a preferred embodiment, the logic for obtaining the error recovery index is:
[0019] Introduce a specific data transmission error in each channel, record the time when the error occurs and recovers, and calculate the error recovery time: ; represents the error recovery time of channel i in time window t, represents the error recovery time point of channel i, Indicates the time point when the error of channel i occurs;
[0020] The ARIMA model is used to predict the trend of error recovery time. The formula is expressed as: ; p is the number of autoregressive terms, d is the difference order, q is the number of moving average terms, and the root mean square value of the prediction error is calculated as the error recovery index. The calculation formula is: ; represents the error recovery index of channel i, Indicates the actual error recovery time, represents the predicted error recovery time, and N represents the number of time windows.
[0021] In a preferred embodiment, the logic for obtaining the channel usage quality coefficient is:
[0022] The data load index and error recovery index of the target channel are obtained, and then the data load index and error recovery index are substituted into the pre-trained machine learning model to obtain the channel usage quality coefficient.
[0023] In a preferred embodiment, the logic of dividing the target channel into a normal operating state and an abnormal operating state according to the channel usage quality coefficient is:
[0024] Obtain the channel usage quality coefficient of the target channel, and then compare it with the preset operating status division threshold. If the channel usage quality coefficient is greater than or equal to the preset operating status division threshold, the target channel is classified as a normal operating state. If the channel usage quality coefficient is less than the preset operating status division threshold, the target channel is classified as an abnormal operating state.
[0025] In a preferred embodiment, fuzzy logic is used to infer the optimization mode of the target channel classified as abnormal operation state:
[0026] The data load index, error recovery index, channel usage quality coefficient of the target channel classified as abnormal operation state, and the ratio data of the CPU usage increment when the target channel is started and the CPU usage average value CC in the baseline performance record are obtained, the data load index, error recovery index, channel usage quality coefficient, and ratio data of the target channel in the abnormal operation state are used as input variables, the optimization method is used as the output variable, the input variables are fuzzy processed, and the values of the input variables are converted into fuzzy sets, the output variables are fuzzy processed, and the output variables are converted into fuzzy sets, fuzzy rules are formulated, the optimization requirements under different data type combinations are described, the fuzzified input variables are inferred through fuzzy rules, and the optimization method for the target channel classified as abnormal operation state is determined.
[0027] In a preferred embodiment, a multi-channel independent pipeline information communication equipment system includes a configuration management module, a performance hidden danger monitoring module, a data analysis module, a comprehensive analysis module, and an optimization module;
[0028] The configuration management module is used to configure the operating environment of multi-channel independent pipeline information communication;
[0029] The performance potential risk monitoring module is used to use the prepared performance monitoring tool to record the baseline performance and startup performance, and conduct preliminary analysis based on the baseline performance and startup performance to determine whether there are potential risks in high-load environment applications;
[0030] The data analysis module is used to detect the data transmission volume of each channel in real time when there are hidden dangers of high-load environment applications, introduce specific data transmission errors, monitor the recovery ability of each channel, perform load analysis on each channel, and obtain the data load index and error recovery index respectively;
[0031] The comprehensive analysis module is used to perform comprehensive analysis on the target channel based on the data load index and the error recovery index to obtain the channel usage quality coefficient, and divide the target channel into a normal operation state and an abnormal operation state according to the channel usage quality coefficient;
[0032] The optimization module is used to infer the optimization method of the target channel in abnormal operation state, clarify whether data packaging and transmission are to be performed, and whether redundant design needs to be introduced.
[0033] Technical effects and advantages of the present invention:
[0034] The present invention conducts preliminary analysis on baseline performance and startup performance, timely discovers hidden dangers of high-load environment applications, and prevents system performance degradation or failure under high load conditions; adopts real-time monitoring of the data transmission volume of each channel and introduces specific data transmission errors, which can timely monitor and evaluate the system's recovery capability to ensure the stable operation of the system under abnormal conditions; based on the comprehensive analysis of the data load index and the error recovery index, the channel usage quality coefficient is calculated, and the target channel is divided into a normal operating state and an abnormal operating state according to the coefficient. In this way, resources can be reasonably allocated, resource waste can be avoided, and the overall efficiency of the system can be improved.
[0035] The present invention uses fuzzy logic inference optimization to determine whether to perform data packaging and transmission for target channels in abnormal operation states. Data packaging and transmission can merge multiple small data packets, reduce the number of transmissions and transmission overhead, improve data transmission efficiency, reduce delays and alleviate channel loads; by introducing redundant information attachment, errors can be detected and corrected during data transmission, improving the reliability and integrity of data transmission. This method can detect and correct errors in data transmission in a timely manner, ensuring the accuracy and integrity of data.
[0036] By introducing specific data transmission errors and monitoring the recovery capabilities of each channel, the present invention can evaluate the system's recovery capability under abnormal conditions, promptly discover and resolve potential problems, reduce system failure rates, ensure system continuity and reliability, improve data transmission efficiency and system stability, reduce data loss and transmission delays, and ensure that the system can operate efficiently under high load conditions, thereby improving user experience and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings;
[0038] Figure 1 This is a schematic diagram of a multi-channel independent pipeline information communication method in the present invention.
[0039] Figure 2 This is a schematic diagram of a multi-channel independent pipeline information communication equipment system in the present invention.
[0040] Figure 3 This is a schematic diagram of the application encapsulation and message pipeline layer in Example 2 of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Reference Figure 1 - Figure 3 The following examples are obtained:
[0043] Embodiment 1: A multi-channel independent pipeline information communication method, comprising the following steps:
[0044] Configure the operating environment of multi-channel independent pipeline information communication, and then use the prepared performance monitoring tool to record the baseline performance and startup performance, and conduct a preliminary analysis based on the baseline performance and startup performance to determine whether there are hidden dangers in high-load environment applications; configure the test environment: ensure that all CAN channels in the test environment have been configured and can work normally; the performance monitoring tool is an existing tool and will not be described here;
[0045] If there are hidden dangers of high-load environment applications, the data transmission volume of each channel is detected in real time, and specific data transmission errors are introduced at the same time to monitor the recovery ability of each channel, and load analysis is performed on each channel to obtain the data load index and error recovery index respectively; introducing specific data transmission errors means: simulating or deliberately introducing some common data transmission errors in the system, such as data packet loss, data packet damage, data packet disorder, etc. These errors can be achieved by configuring network simulation tools or writing test scripts;
[0046] Based on the data load index and the error recovery index, a comprehensive analysis is performed on the target channel to obtain the channel usage quality coefficient, and the target channel is divided into a normal operation state and an abnormal operation state according to the channel usage quality coefficient;
[0047] For target channels in abnormal operating states, the optimization method is inferred to clarify whether data packaging and transmission are required and whether redundant design needs to be introduced.
[0048] Baseline performance refers to recording the baseline CPU usage of the system without any application running, and real-time monitoring and recording the CPU usage in this state. Startup performance refers to starting different applications responsible for operating different independent pipelines in sequence, and recording the changes in CPU usage after each application is started. Only one application corresponding to an independent pipeline is running at a time.
[0049] The steps for performing a preliminary analysis based on the baseline performance and startup performance to determine whether there are hidden dangers for high-load environment applications are as follows:
[0050] In a fixed time window, obtain the CPU usage in the baseline performance record, calculate the average CPU usage in the baseline performance record, and mark it as CC. Obtain the CPU usage of each independent pipeline in the startup performance record, and then calculate the average CPU usage of each independent pipeline and mark it as Ci, where i represents the sequence number of the independent pipeline. Then calculate the CPU usage increment when each independent pipeline is started. The calculation formula is: ; Zi represents the CPU usage increment of the independent pipeline with sequence number i when it is started. According to the CPU usage increment Zi, an impact threshold is preset and marked as YZ. YZ is an impact threshold preset according to actual application requirements.
[0051] Get the real-time CPU usage in a fixed time window when all independent pipelines are started, get the time series data composed of real-time CPU usage, calculate the average value of the time series data, and mark it as cc. Preset a comprehensive application interval, compare the average value cc of the time series data with the comprehensive application interval. If the average value cc of the time series data is greater than the maximum value of the comprehensive application interval, all independent pipelines have hidden dangers of high-load environment applications. If the average value cc of the time series data is less than the minimum value of the comprehensive application interval, all independent pipelines do not have hidden dangers of high-load environment applications. If the average value cc of the time series data falls within the comprehensive application interval, all independent pipelines with CPU usage increment Zi greater than or equal to the impact threshold YZ have hidden dangers of high-load environment applications. Through the CPU usage data in a fixed time window, the baseline performance and startup performance are systematically evaluated, and the CPU usage increment of each independent pipeline is calculated to provide a scientific performance evaluation basis. The impact threshold and comprehensive application interval are introduced. By comparing the CPU usage increment and the average value of the time series data, a clear judgment standard is provided to facilitate the identification of hidden dangers of high-load environment applications. In real-time monitoring, high-load problems of the system can be discovered in a timely manner, and the system can be dynamically adjusted and optimized according to changes in CPU usage to ensure system stability and efficiency.
[0052] The logic for obtaining the data load index is:
[0053] In a fixed time window, the number and size of data packets in each channel are recorded, and the data transmission rate of each channel is calculated using the following formula: ; represents the data transmission rate of channel i in time window t, represents the size of the jth packet of channel i in time window t, represents the length of the time window, n represents the total number of packets of channel i in the time window t;
[0054] The DBSCAN algorithm is used for density clustering analysis, and the formula is expressed as: ; Indicates the specified field radius, which is used to determine whether two points are in the same cluster. Indicates the minimum number of points in the specified area to determine whether a point is a core point, and then uses the proportion of high-density clusters in the clustering results as the data load index. The formula is expressed as: ; represents the data load index of channel i, represents the number of high-density points in the cluster, Indicates the total number of data points. DBSCAN does not require the pre-specified number of clusters and is suitable for dynamic and complex data environments. DBSCAN can effectively identify and process noise points in the data, which helps detect anomalies under high load conditions. Through cluster analysis, high-density areas in data transmission rates can be identified to reflect the load of the system. The specific steps of the DBSCAN algorithm are:
[0055] Step 1: Select a point as a core point and mark it as unvisited.
[0056] Step 2: Taking the core point as the center, calculate the number of points in its neighborhood (the neighborhood radius is ).
[0057] Step 3: If the number of points in the neighborhood is greater than MinPts, the point and the points in its neighborhood are grouped into one cluster.
[0058] Step 4: Recursively process each point in the neighborhood until all points are marked as visited.
[0059] Step 5: Repeat steps 1-4 until all points have been processed.
[0060] Data Load Index Indicates the data transmission load of channel i within a fixed time window. The larger the value, the more concentrated the data transmission rate of the channel is in the high-density area, reflecting that the channel is in a high-load state for a longer time. Close to 1, it means that the data transmission rate is high in most of the time window and the channel load is heavy. Low load: If Close to 0, it means that the data transmission rate is low in most of the time window and the channel load is light.
[0061] The logic for obtaining the error recovery index is:
[0062] Introduce a specific data transmission error in each channel, record the time when the error occurs and recovers, and calculate the error recovery time: ; represents the error recovery time of channel i in time window t, represents the error recovery time point of channel i, Indicates the time point when the error of channel i occurs;
[0063] The ARIMA model is used to predict the trend of error recovery time. The formula is expressed as: ; p is the number of autoregressive terms, d is the difference order, q is the number of moving average terms, and the root mean square value of the prediction error is calculated as the error recovery index. The calculation formula is:
[0064] ; represents the error recovery index of channel i, Indicates the actual error recovery time, represents the predicted error recovery time, and N represents the number of time windows.
[0065] The ARIMA model is particularly suitable for time series data and can capture the time dependence and trend of the data. Through differential operations, it can process non-stationary data and make it stable, which is convenient for modeling and prediction. The ARIMA model combines autoregression and moving average, which can effectively predict future time series data and improve prediction accuracy.
[0066] ARIMA model specific steps:
[0067] Step 1: Determine the model parameters p, d, q, p: the number of autoregressive terms, which indicates the impact of the values of the previous moments in the time series on the current value. d: the difference order, which makes the time series data stable by performing d differences on the data. q: the number of moving average terms, which indicates the impact of the errors of the previous moments in the time series on the current value.
[0068] Step 2: Difference the data d times to make it stationary: ;
[0069] Step 3: Fit the ARIMA model and obtain the model parameters: ;
[0070] represents the time series after difference, represents the autoregressive coefficient, represents the error term, Represents the moving average coefficient.
[0071] Step 4: Use the fitted model to predict future error recovery time.
[0072] Step 5: Calculate the RMS value of the prediction error as the error recovery index.
[0073] Error Recovery Index Indicates the error recovery capability of channel i. The larger the value, the larger the prediction error of the error recovery time and the worse the recovery capability. The smaller the value, the smaller the prediction error of the error recovery time and the stronger the recovery capability. Explanation of error recovery index: High index: If A large value indicates that the recovery time of channel i after an error occurs is unstable and the recovery ability is poor. A smaller value indicates that the recovery time of channel i after an error occurs is more stable and has a stronger recovery capability.
[0074] The logic for obtaining the channel usage quality coefficient is as follows: obtain the data load index and error recovery index of the target channel, and then substitute the data load index and the error recovery index into the pre-trained machine learning model to obtain the channel usage quality coefficient. The machine learning model is not specifically limited here. Any model that can perform a comprehensive analysis of the data load index and the error recovery index to generate the channel usage quality coefficient is acceptable. In order to implement the technical solution of the present invention, the present invention provides a specific implementation method: Assuming that a linear regression model is used, the formula can be expressed as:
[0075] ; represents the usage quality coefficient of channel i, β0: intercept of the model; β1, β2: regression coefficients of the model. The logic of dividing the target channel into normal operation state and abnormal operation state according to the channel usage quality coefficient is as follows: obtain the channel usage quality coefficient of the target channel, and then compare it with the preset operation state division threshold. If the channel usage quality coefficient is greater than or equal to the preset operation state division threshold, the target channel is divided into a normal operation state. If the full channel usage quality coefficient is less than the preset operation state division threshold, the target channel is divided into an abnormal operation state. Through scientific evaluation and real-time monitoring, channels with high load or abnormal status can be discovered and handled in time, thus improving the overall stability of the system. Channels with abnormal operating status can be identified, and targeted optimization and resource adjustment can be carried out to avoid waste of resources and improve system efficiency. By timely discovering and handling potential high-load hidden dangers and error recovery problems, system failures can be prevented and the continuity of communication services can be ensured. By optimizing system performance and improving stability, user experience and satisfaction can be improved, especially in high-load environments, ensuring that the system can provide services efficiently and stably. Scientific evaluation and status classification provide strong decision-making support for system maintenance and management, and help technical personnel develop reasonable optimization and maintenance plans.
[0076] Fuzzy logic infers the optimization method for target channels classified as abnormal operating states:
[0077] Obtain the data load index, error recovery index, channel usage quality coefficient of the target channel classified as abnormal operation status, and the ratio of the CPU usage increment when the target channel is started to the CPU usage average CC in the baseline performance record , the data load index, error recovery index, channel usage quality coefficient, and ratio data of the target channel in abnormal operation state are taken as input variables, and the optimization method is taken as the output variable. The input variables are fuzzified and the values of the input variables are converted into fuzzy sets. The output variables are fuzzified and the output variables are converted into fuzzy sets. Fuzzy rules are formulated to describe the optimization requirements under different data type combinations. The fuzzified input variables are inferred through fuzzy rules to determine the optimization method for the target channel classified as abnormal operation state. Fuzzy set of input variables: data load index: low, medium, high; error recovery index: low, medium, high; channel usage quality coefficient: low, medium, high; CPU usage rate increment ratio: low, medium, high; optimization method: data packaging and transmission optimization, introduction of redundant design optimization, data packaging and transmission and introduction of redundant design combined optimization; Fuzzy rule example: Rule 1: If the data load index is high and the error recovery index is high and the channel usage quality coefficient is low and the CPU usage rate increment ratio is high, then the optimization method is to combine data packaging and transmission with introduction of redundant design for optimization; Rule 2: If the data load index is medium and the error recovery index is high and the channel usage quality coefficient is low and the CPU usage increment ratio is medium, then the optimization method is data packing and transmission optimization; Rule 3: If the data load index is low and the error recovery index is medium and the channel usage quality coefficient is high and the CPU usage increment ratio is low, then the optimization method is no optimization; Rule 4: If the data load index is high and the error recovery index is medium and the channel usage quality coefficient is medium and the CPU usage increment ratio is high, then the optimization method is to introduce redundant design optimization. Through fuzzy logic, the optimization method of the target channel classified as abnormal operation state can be inferred. According to the fuzzy set of different input variables, the fuzzy rules can be used for reasoning to determine the optimization measures to be taken. At the same time, the data load index, error recovery index, channel usage quality coefficient and CPU usage increment ratio are considered to comprehensively evaluate the operation status of the channel. Fuzzy logic can handle complex and uncertain information, making the optimization inference more flexible and accurate. Through fuzzy reasoning, it can be clearly determined whether data packing and transmission, redundant design, or both are needed, providing specific guidance for system optimization.
[0078] Example 2: It should be noted that a certain domestic motherboard (reinforced main control controller) uses a 7A1000 bridge chip. Since the 7A1000 bridge chip does not integrate the CAN interface function, and assuming that the project actually requires three independent CANs, the total number of independent pipelines at this time is three, so the interface on the bridge chip needs to be converted to CAN. There is an unused USB2.0 interface on the bridge chip, so the USB to three-way CAN method is adopted. Most of the USB to CAN solutions on the market use a microcontroller unit (hereinafter referred to as MCU) to convert one USB to one or more CANs, but for applications and drivers, the MCU is a USB device, and these expanded multi-way CANs can only be operated by one application at the same time. That is, turning on the MCU will turn on multiple CANs at the same time, and turning off the MCU will also turn off multiple CANs at the same time. In actual needs, there will be three different applications operating these three CANs separately, and the three CANs do not affect each other and are independent of each other, that is, each application can turn on, turn off, send data, and receive data for its own CAN. Therefore, the USB to CAN solutions on the market cannot meet the needs. The solution on the market is that the CPU uses the LIBUSB library to operate USB at the application layer to achieve communication with the MCU. The MCU implements the USB slave function and forwards the 3-way CAN data in the MCU, thus realizing the USB to 3-way CAN solution (which can be operated independently by different applications). The USB2 interface on the 7A1000 bridge chip is connected to a GD32E507RET6 microcontroller (hereinafter referred to as MCU). This solution is the background of the present invention and the improvement of the prior art. On the basis of strengthening the main control controller, "application encapsulation" and "message pipeline layer" are added. Specifically, Figure 3 shown.
[0079] Implementation principle: In order to make the three-way CAN be operated independently by different applications, a message pipe layer program and a client application encapsulation program are newly added. The message pipe program is set as an automatically running script, and the message pipe program will be automatically run when entering the system. Taking CAN0 as an example (the host is A, and the slave device B is connected through CAN0), the message pipe program will first open and configure CAN0, and then create and open the can0_send and can0_recv pipes. Then start a task, which will cyclically receive the data received by CAN0 of the MCU and send the data to the can0_recv pipe. At the same time, start another task, which will cyclically receive the data in the can0_send pipe and send the data from the MCU's CAN0. The client application encapsulation allows the application to directly operate the can0_send and can0_recv pipes, that is, when A sends data to B, the data will first go to the can0_send pipe, and then be sent out from the MCU's CAN0. When A receives data from B, the data will first go to the can0_recv pipe, and then take data from the can0_recv pipe. In this way, for the customer's application, these three CANs are independently operable pipelines, that is, the three CANs can be operated separately by different applications. The principles of CAN1 and CAN2 are the same as above. Application encapsulation refers to: the general customer's application will specify the format of all functions of the CAN interface (such as opening, closing, initialization, sending data, receiving data, etc.), and the customer's application will not change after it is developed. Therefore, it is necessary to do a layer of application encapsulation so that the customer's application can correctly call the interface function of the CAN driver. The principle of the application encapsulation source code file is as follows: the encapsulation call of CANSend is to first convert the data to be sent into the format of the pipeline, and then send the data to the can0_send pipeline (later, the message pipeline program will send the data in the can0_send pipeline through the CAN0 port of the MCU). The customer application is developed using QT and has a visual graphical interface, which is conducive to testing the function of USBCAN, that is, testing the performance of the three-way CAN port. The actual use scenario of the customer for the three-way CAN is different from the test software. The present invention provides a method for detecting and optimizing the communication performance of the three-way CAN port to ensure the communication quality, ensuring that it meets the current application scenario when actually used, and ensuring high-quality communication.
[0080] A multi-channel independent pipeline information communication equipment system, including a configuration management module, a performance hidden danger monitoring module, a data analysis module, a comprehensive analysis module, and an optimization module;
[0081] The configuration management module is used to configure the operating environment of multi-channel independent pipeline information communication;
[0082] The performance potential risk monitoring module is used to use the prepared performance monitoring tool to record the baseline performance and startup performance, and conduct preliminary analysis based on the baseline performance and startup performance to determine whether there are potential risks in high-load environment applications;
[0083] The data analysis module is used to detect the data transmission volume of each channel in real time when there are hidden dangers of high-load environment applications, introduce specific data transmission errors, monitor the recovery ability of each channel, perform load analysis on each channel, and obtain the data load index and error recovery index respectively;
[0084] The comprehensive analysis module is used to perform comprehensive analysis on the target channel based on the data load index and the error recovery index to obtain the channel usage quality coefficient, and divide the target channel into a normal operation state and an abnormal operation state according to the channel usage quality coefficient;
[0085] The optimization module is used to infer the optimization method of the target channel in abnormal operation state, clarify whether data packaging and transmission are to be performed, and whether redundant design needs to be introduced.
[0086] The reason why data packing and redundant design were not initially performed is that data packing and redundant design will increase the computing and storage overhead of the system. For example, data packing requires additional buffers and packing algorithms, while redundant design requires additional storage and computing resources to generate and verify redundant information. These additional resource consumption may be unnecessary under normal system load conditions. Directly implementing data packing and redundant design will increase the complexity of the system and may introduce more potential problems. Keeping the system design simple and adding complexity only when necessary will help ensure the maintainability and reliability of the system. Performance impact: In the absence of high load or errors, data packing and redundant design may have a negative impact on system performance. The packing process may increase latency, while the generation and verification of redundant information may increase processing time. Therefore, try to avoid these operations when the system is running normally to maintain optimal performance.
[0087] An example of the data packet transmission implementation method is as follows: multiple small data packets are combined into a larger data packet for transmission to reduce transmission overhead and delay. At the sending end, a buffer is set up to temporarily store small data packets in the buffer. When the data in the buffer reaches a certain size or exceeds a certain time threshold, the data in the buffer is combined into a large data packet and sent out. At the receiving end, after receiving the large data packet, it is split into the original small data packets. Corresponding processing and forwarding are performed.
[0088] Buffer setting: define a suitable buffer size and time threshold, and adjust it according to the specific situation of the system. Data merging and sending: temporarily store small data packets in the buffer. When the data in the buffer reaches the set size or time threshold, merge the data into a large data packet and send it out. Data splitting and processing: at the receiving end, after receiving the large data packet, split it into the original small data packets and process them in the original order and format. The significance is: reduce transmission overhead: by merging multiple small data packets, the transmission overhead and frequency can be reduced, and the transmission efficiency can be improved. Reduce delay: reducing the number of transmissions of small data packets can reduce transmission delay and improve system response speed. Improve bandwidth utilization: the transmission of large data packets is more stable and efficient, and network bandwidth can be better utilized.
[0089] The introduction of redundant design refers to the addition of redundant information, which is to detect and correct errors in data transmission by adding redundant information to the data packet, thereby improving the reliability and integrity of data transmission. The following are specific implementation methods and steps. When sending data, the checksum of the data packet is calculated and attached to the end of the data packet. The checksum is recalculated at the receiving end and compared with the received checksum to detect whether the data packet is erroneous. The sending end uses a polynomial to generate the CRC code of the data packet and attaches it to the end of the data packet. The receiving end uses the same polynomial to generate the CRC code of the received data packet and compares it with the attached CRC code to detect and correct errors in data transmission. Use a coding algorithm (such as Hamming code, Reed-Solomon code, etc.) to attach redundant bits when sending data packets. The receiving end uses the corresponding decoding algorithm to detect and correct errors in the data packet. By adding redundant information, errors can be detected and corrected in data transmission, improving the reliability of data transmission. Redundant information such as CRC code can detect whether the data packet has been tampered with or damaged, ensuring the integrity and accuracy of the data. Through redundant information such as forward error correction code, some erroneous data can be corrected at the receiving end, reducing retransmissions caused by erroneous data and improving transmission efficiency.
[0090] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0091] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0092] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of 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.
[0093] 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.
[0094] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field 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. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A multi-channel independent pipeline information communication method, characterized in that: The following steps are involved: Configure the operating environment of multi-channel independent pipeline information communication, then use the prepared performance monitoring tool to record the baseline performance and startup performance, and conduct preliminary analysis based on the baseline performance and startup performance to determine whether there are hidden dangers of high-load environment applications; If there are hidden dangers of high-load environment applications, the data transmission volume of each channel is detected in real time, and specific data transmission errors are introduced to monitor the recovery ability of each channel. The load of each channel is analyzed to obtain the data load index and error recovery index respectively; Based on the data load index and the error recovery index, a comprehensive analysis is performed on the target channel to obtain the channel usage quality coefficient, and the target channel is divided into a normal operation state and an abnormal operation state according to the channel usage quality coefficient; For target channels in abnormal operation status, infer their optimization methods, clarify whether data packaging and transmission are required, and whether redundant design needs to be introduced; Baseline performance means: recording the baseline CPU usage of the system without any application running, monitoring and recording the CPU usage in real time; Startup performance refers to starting different applications responsible for operating different independent pipelines in sequence, recording the changes in CPU usage after each application is started, and only one application corresponding to an independent pipeline is running at a time; The steps for performing a preliminary analysis based on the baseline performance and startup performance to determine whether there are hidden dangers for high-load environment applications are as follows: In a fixed time window, obtain the CPU usage in the baseline performance record, calculate the average CPU usage in the baseline performance record, and mark it as CC. Obtain the CPU usage of each independent pipeline in the startup performance record, and then calculate the average CPU usage of each independent pipeline and mark it as Ci, where i represents the sequence number of the independent pipeline. Then calculate the CPU usage increment when each independent pipeline is started. The calculation formula is: ; Zi represents the CPU usage increment of the independent pipeline with sequence number i when it is started. According to the CPU usage increment Zi, an impact threshold is preset and marked as YZ; Get the real-time CPU usage in a fixed time window when all independent pipelines are started, get the time series data composed of the real-time CPU usage, calculate the average value of the time series data, and mark it as cc. A comprehensive application interval is preset, and the average value cc of the time series data is compared with the comprehensive application interval. If the average value cc of the time series data is greater than the maximum value of the comprehensive application interval, all independent pipelines have hidden dangers of high-load environment applications. If the average value cc of the time series data is less than the minimum value of the comprehensive application interval, all independent pipelines do not have hidden dangers of high-load environment applications. If the average value cc of the time series data falls within the comprehensive application interval, all independent pipelines whose CPU usage increment Zi is greater than or equal to the impact threshold YZ have hidden dangers of high-load environment applications.
2. A multi-channel independent pipeline information communication method according to claim 1, characterized in that: The logic for obtaining the data load index is: In a fixed time window, the number and size of data packets in each channel are recorded, and the data transmission rate of each channel is calculated using the following formula: ; represents the data transmission rate of channel i in time window t, represents the size of the jth packet of channel i in time window t, represents the length of the time window, n represents the total number of packets of channel i in the time window t; The DBSCAN algorithm is used for density clustering analysis, and the formula is expressed as: ; Indicates the specified field radius, which is used to determine whether two points are in the same cluster. Indicates the minimum number of points in the specified area to determine whether a point is a core point, and then uses the proportion of high-density clusters in the clustering results as the data load index. The formula is expressed as: ; represents the data load index of channel i, represents the number of high-density points in the cluster, Indicates the total number of data points.
3. A multi-channel independent pipeline information communication method according to claim 2, characterized in that: The logic for obtaining the error recovery index is: Introduce a specific data transmission error in each channel, record the time when the error occurs and recovers, and calculate the error recovery time: ; represents the error recovery time of channel i in time window t, represents the error recovery time point of channel i, Indicates the time point when the error of channel i occurs; The ARIMA model is used to predict the trend of error recovery time. The formula is expressed as: ; p is the number of autoregressive terms, d is the difference order, q is the number of moving average terms, and the root mean square value of the prediction error is calculated as the error recovery index. The calculation formula is: ; represents the error recovery index of channel i, Indicates the actual error recovery time, represents the predicted error recovery time, and N represents the number of time windows.
4. A multi-channel independent pipeline information communication method according to claim 3, characterized in that: The logic for obtaining the channel quality coefficient is: The data load index and error recovery index of the target channel are obtained, and then the data load index and error recovery index are substituted into the pre-trained machine learning model to obtain the channel usage quality coefficient.
5. A multi-channel independent pipeline information communication method according to claim 4, characterized in that: The logic of dividing the target channel into normal operation state and abnormal operation state according to the channel usage quality coefficient is as follows: Obtain the channel usage quality coefficient of the target channel, and then compare it with the preset operating status division threshold. If the channel usage quality coefficient is greater than or equal to the preset operating status division threshold, the target channel is classified as a normal operating state. If the channel usage quality coefficient is less than the preset operating status division threshold, the target channel is classified as an abnormal operating state.
6. A multi-channel independent pipeline information communication method according to claim 5, characterized in that: Fuzzy logic is used to infer the optimization method of the target channel classified as abnormal operation state: The data load index, error recovery index, channel usage quality coefficient of the target channel classified as abnormal operation state, and the ratio data of the CPU usage increment when the target channel is started and the CPU usage average value CC in the baseline performance record are obtained, the data load index, error recovery index, channel usage quality coefficient, and ratio data of the target channel in the abnormal operation state are used as input variables, the optimization method is used as the output variable, the input variables are fuzzy processed, and the values of the input variables are converted into fuzzy sets, the output variables are fuzzy processed, and the output variables are converted into fuzzy sets, fuzzy rules are formulated, the optimization requirements under different data type combinations are described, the fuzzified input variables are inferred through fuzzy rules, and the optimization method for the target channel classified as abnormal operation state is determined.
7. A multi-channel independent pipeline information communication device system, based on a multi-channel independent pipeline information communication method according to any one of claims 1 to 6, characterized in that: Including configuration management module, performance risk monitoring module, data analysis module, comprehensive analysis module, and optimization module; The configuration management module is used to configure the operating environment of multi-channel independent pipeline information communication; The performance potential risk monitoring module is used to use the prepared performance monitoring tool to record the baseline performance and startup performance, and conduct preliminary analysis based on the baseline performance and startup performance to determine whether there are potential risks in high-load environment applications; The data analysis module is used to detect the data transmission volume of each channel in real time when there are hidden dangers of high-load environment applications, introduce specific data transmission errors, monitor the recovery ability of each channel, perform load analysis on each channel, and obtain the data load index and error recovery index respectively; The comprehensive analysis module is used to perform comprehensive analysis on the target channel based on the data load index and the error recovery index to obtain the channel usage quality coefficient, and divide the target channel into a normal operation state and an abnormal operation state according to the channel usage quality coefficient; The optimization module is used to infer the optimization method of the target channel in abnormal operation state, clarify whether data packaging and transmission are to be performed, and whether redundant design needs to be introduced.
