A communication method and device for bus coupler
By analyzing the data frame distortion and local oscillation characteristics during the communication process of bus couplers, calculating the disturbance values of electromagnetic interference and signal reflections and correcting them, the problem of low communication quality of bus couplers in complex electromagnetic environments is solved, and higher communication reliability and accuracy are achieved.
Patent Information
- Application Number
- CN202510805494.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2045-06-17
AI Technical Summary
The existing communication methods fail to fully consider the electromagnetic interference and signal reflections affected by bus couplers in complex electromagnetic environments, resulting in low communication quality.
By analyzing the distortion jitter and local irregular oscillation characteristics of the rising, falling edges and high-level intervals of the data frame, the disturbance values of electromagnetic interference and signal reflection are calculated and corrected.
Improve the communication quality of the bus coupler, ensure the integrity and accuracy of data frames, and reduce the impact of electromagnetic interference and signal reflection.
Smart Images

Figure CN120321066B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital information transmission, and in particular to a communication method and device applied to a bus coupler. Background Art
[0002] The rapid development of the Industrial Internet of Things (IIoT) and smart manufacturing, coupled with the increasingly complex communication requirements between devices, has placed higher demands on bus coupler communication methods. Furthermore, in practical applications, the communication process can be affected by electromagnetic interference and signal reflections in the surrounding environment, resulting in distortion, abnormal delays, and jitter in transmitted data frames, which in turn affects communication quality. Existing communication methods fail to fully account for the effects of electromagnetic radiation and signal reflections during actual communication, resulting in poor communication quality.
[0003] Publication No. CN113242166A discloses a bus communication system, electronic device, and bus communication method. By loading and transmitting communication signals on a power bus and using a filtering module to separate the DC signal from the carrier signal, data transmission between different communication branch paths is achieved. However, the power bus itself is susceptible to electromagnetic interference, particularly in complex electromagnetic environments, which can reduce communication reliability. Signal reflections can also affect communication quality over long distances or in situations with impedance mismatches. Summary of the Invention
[0004] In order to solve the above technical problems, the purpose of this application is to provide a communication method and device for a bus coupler. The technical solutions adopted are as follows:
[0005] An embodiment of the present application provides a communication method applied to a bus coupler, comprising the following steps:
[0006] Acquire each communication data frame during the bus coupler communication process;
[0007] Divide each data frame into rising edge, falling edge and high-level interval according to the waveform change and mutation of each data frame. Obtain the distortion jitter coefficient of each rising edge and falling edge based on the deviation of each data in each rising edge and falling edge, as well as the correlation between each rising edge and falling edge and its adjacent rising edge and falling edge.
[0008] Extract the peaks and troughs of each high-level interval, and obtain the abnormal values of each high-level with local irregular oscillation and delay characteristics through the data deviation degree within the wave width of each peak and trough in the high-level interval and the oscillation delay degree of the high-level interval;
[0009] Each eigenvector is obtained by the distortion jitter coefficient of each rising edge and falling edge and the abnormal value corresponding to each high level, and the disturbance value of each data frame affected by electromagnetic interference and signal reflection is obtained according to the average level of all eigenvector modulus values of each data frame and the similarity between different eigenvectors;
[0010] The correction processing of each data frame in the communication process of the bus coupler is determined according to the disturbance value.
[0011] Preferably, the method for dividing the rising edge, falling edge and high level interval is:
[0012] Fit each data frame, count the slopes of all points in the fitting curve corresponding to each data frame, extract the mutation points in all slope values of each data frame, divide each data frame into intervals with the mutation points as the dividing points, take the intervals with the average value of the slope greater than 0 as the rising edge of each data frame, take the intervals with the average value of the slope less than 0 as the falling edge of each data frame, and take the intervals with the average value of the slope 0 and the corresponding data greater than 0 as the high-level interval of each data frame.
[0013] Preferably, the calculation method of the distortion jitter coefficient of each rising edge and falling edge is:
[0014] For any data frame, the distortion jitter coefficient of its i-th rising edge is The calculation formula is: ;
[0015] The minimum Euclidean distance between each data in the i-th rising edge and the corresponding fitting curve is calculated, and the mean of the minimum Euclidean distances corresponding to all data in the i-th rising edge is used as the first mean of the i-th rising edge. According to the correlation between the data slope of the ith rising edge and its preceding and following rising edges, combined with the data fluctuation of the ith rising edge, the first fluctuation degree of the ith rising edge is obtained. ;
[0016] Accordingly, the distortion jitter coefficient of the i-th falling edge of any data frame is obtained.
[0017] Preferably, the mean of the Pearson correlation coefficients between the slopes of the data corresponding to the i-th rising edge and its preceding and following rising edges is calculated, the standard deviation of the first-order difference sequence of all the data slopes of the i-th rising edge is calculated, and the product of the mean and the standard deviation corresponding to the i-th rising edge is used as .
[0018] Preferably, the process of obtaining the abnormal values of each high level having local irregular oscillation and delay characteristics is:
[0019] The high level interval adjacent to the i-th rising edge is recorded as the i-th high level. The i-th high level has an abnormal value with local irregular oscillation and delay characteristics. The calculation method is: Where, is the oscillation amplitude coefficient of the i-th high-level interval, calculate the range of the data of each peak and trough in the i-th high-level interval within its corresponding wave width, and the cumulative sum of all the ranges is used as the oscillation amplitude coefficient of the i-th high-level interval; is the oscillation delay coefficient of the i-th high-level interval.
[0020] Preferably, the acquisition of the oscillation delay coefficient further includes: taking the position of the first data in the i-th high-level interval as the initial high-level point, and taking the end position of the i-th rising edge as the rising edge end point, and calculating the difference between the corresponding moments between the initial high-level point and the rising edge end point as the oscillation delay coefficient of the i-th high-level interval.
[0021] Preferably, the process of acquiring each characteristic vector is: the distortion jitter coefficient of the i-th rising edge and the i-th falling edge of each data frame, and the abnormal value corresponding to the i-th high level, form the i-th characteristic vector of each data frame.
[0022] Preferably, the method for calculating the disturbance value of each data frame affected by electromagnetic interference and signal reflection is:
[0023] For any data frame, the calculation formula of the corresponding disturbance value is: , where M is the disturbance value corresponding to any data frame, P is the mean of the moduli of all eigenvectors of any data frame, exp() represents an exponential function with a natural constant as the base, and Q is the mean of the cosine similarities between any two eigenvectors of any data frame.
[0024] Preferably, the determining of the correction processing of each data frame during the bus coupler communication process further includes:
[0025] The disturbance value corresponding to the data frame is normalized. If the normalization result is greater than or equal to a preset threshold, the data frame waveform is corrected; otherwise, the data frame waveform is not corrected.
[0026] An embodiment of the present application also provides a communication device applied to a bus coupler, comprising a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned communication methods applied to a bus coupler are implemented.
[0027] As can be seen from the above, the communication method and device for a bus coupler provided by the present application have at least the following beneficial effects:
[0028] This application takes into account the degree of impact that may be felt during the communication process of the bus coupler, and deeply analyzes the abnormal jitter amplitude, change rate difference and overall instability characteristics of the data frame waveform on the rising and falling edges, and simultaneously analyzes the local irregular oscillation of the high level and the delay characteristics of reaching the high level. Its beneficial effect is to accurately reflect the specific abnormal characteristics of the data frame under the disturbance state; further consider the changing relationship of the overall abnormal characteristics in the data frame, calculate the disturbance value of electromagnetic interference and signal reflection, and then evaluate whether to perform data correction, which helps to improve the communication quality of the bus coupler. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0030] Figure 1 This is a flowchart of the steps of a communication method applied to a bus coupler provided in this application. DETAILED DESCRIPTION
[0031] To further illustrate the technical means and effectiveness of this application to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effectiveness of a communication method and device for a bus coupler according to this application. In the following description, references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[0032] Unless otherwise specified and limited, terms such as "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device comprising a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the article or device comprising the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs.
[0033] The following describes in detail a communication method and device for a bus coupler provided by the present application with reference to the accompanying drawings.
[0034] See also Figure 1 , which shows a flowchart of a communication method applied to a bus coupler provided by one embodiment of the present application, including the following steps:
[0035] Step 1: Obtain the waveform of each communication data frame during the bus coupler communication process.
[0036] The various modules within the bus coupler include a circuit breaker, a communication interface, a signal output interface, and a PLC component. The circuit breaker is an automatic protective device whose primary function is to protect circuits from overload, short circuit, and undervoltage. When an abnormal current, such as a short circuit or overload, occurs, the circuit breaker automatically disconnects the circuit, protecting the entire bus coupler unit and connected wiring and equipment from damage, preventing further escalation of the fault and ensuring safe system operation. The communication interface is responsible for data exchange with other devices or systems. Following a specific communication protocol, it transmits data collected by the bus coupler and also receives commands and data from other devices or a host computer, enabling bidirectional information transfer and ensuring smooth information flow within the control system, enabling coordinated operation. The signal output interface transmits processed signals from the bus coupler to external actuators. These output signals can be used to control external devices, such as driving motors, controlling solenoid valves, and signaling indicator lights. This translates control commands received by the bus coupler into actual device operations, enabling effective control of field equipment. As the control core, the PLC performs logical operations, judgments, and processing on input signals. It then issues corresponding control signals through the bus coupler's output interface, enabling precise control of the automation system. The various modules work together to meet the signal acquisition, processing, and control requirements of diverse application scenarios, expanding the bus coupler's functionality and application scope.
[0037] The communication method of a bus coupler generally includes the following steps: initialization, connection establishment, data transmission, data processing, and error detection.
[0038] First, during the initialization process, after power is applied, the bus coupler sets its network parameters, such as the IP address, subnet mask, and gateway address, based on a pre-configured configuration file or configuration information sent by the master. This ensures that it can correctly identify itself on the connected network and communicate with other devices. Next, communication parameters are set, including the baud rate, data bits, stop bits, and parity bit, based on the connected bus type and device requirements. This ensures that the communication parameters are consistent with those of the master and slave devices, thereby establishing a stable communication link.
[0039] The master station actively sends a connection request to the bus coupler according to the corresponding communication protocol and the address information of the bus coupler. After receiving the request, the bus coupler performs the identity authentication and parameter negotiation process. If the authentication is successful and the parameters match, it establishes a connection with the master station and sends a successful connection response message to the master station. The bus coupler scans the connected slave devices, identifies and records the address, device type, and communication protocol information of each slave device. Different communication buses may use different communication protocols. In this embodiment, the DP (DisplayPort) protocol is taken as an example. In DP protocol communication, each data frame contains a frame header, a data portion, and a frame trailer, and the length of each data frame in the DP protocol is the same.
[0040] Once a connection is established, data transmission can begin. The master organizes the data to be sent to the slave device into data frames according to the communication protocol. The data frames contain information such as the target slave device's address, data content, and a checksum. The data frames are then sent to the bus coupler via the communication bus. Upon receiving the data frame, the bus coupler first performs an integrity check and verification, such as verifying the correctness of the frame header and footer and whether the checksum matches. If the data frame is correct, the bus coupler forwards the data to the corresponding slave device based on the target address information in the data frame. After receiving the data forwarded by the bus coupler, the slave device parses and processes the data. The bus coupler acts as a data forwarder between the master and slave devices, ensuring that data is correctly transmitted across different communication media and protocols.
[0041] As a key component connecting different devices or networks, the bus coupler's communication reliability and accuracy are crucial to the stable operation of the entire system. During data transmission, it communicates using data frames as the basic unit, organizing data according to a specific format to ensure reliable transmission and processing within the communication system. Data frames are represented by high and low level signals. Ideally, the high and low voltage levels should remain stable, but in actual communication, the amplitude of these levels may fluctuate due to factors such as noise, power supply fluctuations, or transmission line characteristics. To monitor communication quality in real time, in this embodiment, a bus tester is used to capture data frame waveforms for accurate communication status assessment and timely detection of problems. In this embodiment, the sampling frequency is set to 100 Hz. This allows the waveform of each communication data frame to be acquired, allowing the waveform characteristics of each data frame to be analyzed and processed.
[0042] Step 2: Divide each data frame into rising edge, falling edge and high-level intervals according to the waveform changes and mutations of each data frame, and obtain the distortion jitter coefficient of each rising edge and falling edge based on the deviation of each data in each rising edge and falling edge, as well as the correlation between each rising edge and falling edge and its adjacent rising edge and falling edge.
[0043] During data transmission, interference from electromagnetic radiation and signal reflection in the surrounding environment may cause distortion of the transmitted data frame, thereby affecting the communication quality. Specifically, distortion jitter may occur in the rising edge of the waveform in the data frame, where the waveform changes from a low level to a high level, or in the falling edge, where the waveform changes from a high level to a low level. Taking the rising edge as an example, the waveform under normal circumstances should smoothly transition from a stable low level to a high level. However, when distortion jitter exists, the greater the abnormal jitter amplitude of the rising edge waveform, the lower its smoothness. In addition, the distorted waveform is unstable on a time scale, and there are differences between different rising edge change rates. The normal waveform is stable in time, and the overall change rate of the rising edge is relatively consistent. In order to analyze the above characteristics, it is first necessary to divide the rising and falling edges of the data frame. In this embodiment, a polynomial fitting technique is used to fit the collected data frame, and then the slope of all points in the fitting curve is obtained. At both ends of the rising edge and falling edge parts, since the slope corresponding to the fitting curve has a mutation, the Pettitt mutation point detection algorithm is used in this embodiment to obtain the mutation points in all slopes of a single data frame, and the data frame is divided into various intervals with the mutation points of the data frame as the dividing points. The interval in which the average value of the corresponding slope is greater than 0 is regarded as the rising edge of the data frame, the interval in which the average value of the corresponding slope is less than 0 is regarded as the falling edge of the data frame, and the interval in which the average value of the slope is 0 and the corresponding waveform data is greater than 0 is regarded as the high-level interval of the data frame.
[0044] In order to obtain the smoothness characteristics of data frame changes, this embodiment will analyze the smoothness of data fluctuations on each rising edge and falling edge. Specifically, for the i-th rising edge of any data frame, the minimum Euclidean distance between each data in the rising edge and the corresponding fitting curve is calculated, and the mean of all the minimum Euclidean distances is used as the first mean of the i-th rising edge. , income The larger the value is, the less smooth the rising edge is and the greater the abnormal jitter amplitude is.
[0045] In order to obtain the difference characteristics of the data frame waveform change rate, the mean of the Pearson correlation coefficient between the i-th rising edge and the corresponding data slopes of the preceding and following rising edges is calculated. This mean reflects the difference characteristics of the change rate between the rising edge and its neighboring rising edges. Then, the standard deviation of the first-order difference sequence of all data slopes of the i-th rising edge is calculated. This standard deviation reflects the unstable characteristics of the rising edge change rate on the time scale. Furthermore, the product of the mean and the standard deviation corresponding to the i-th rising edge is taken as the first fluctuation value of the i-th rising edge. , income It reflects the difference in the changing rates of neighboring rising edges and the unstable characteristics on the time scale.
[0046] Furthermore, in this embodiment, for any data frame, the distortion jitter coefficient of the i-th rising edge is calculated. , preferably, the specific calculation formula is: , income It reflects the abnormal jitter amplitude, change rate difference and overall instability characteristics of the i-th rising edge waveform in the communication data frame.
[0047] For the falling edges in the data frame, the distortion jitter coefficient of each falling edge can be calculated using the same steps as above.
[0048] Step 3: Extract the peaks and troughs of each high-level interval, and obtain the abnormal values of each high-level with local irregular oscillation and delay characteristics through the data deviation degree within the wave width of each peak and trough in the high-level interval and the oscillation delay degree of the high-level interval.
[0049] Furthermore, under the influence of electromagnetic interference and signal reflections, in addition to the abnormal jitter characteristics present during the rise and fall processes, the high-level waveform in the data frame exhibits localized irregular oscillations in the early stages, forming a structure resembling small spikes and dips. Furthermore, after the rising edge, the data frame does not immediately reach a high-level state, but instead reaches a high level after a short period of oscillation. In contrast, in a normal data frame waveform, the transition between the rising edge and the high point is more vertical, and the high-level portion exhibits no significant fluctuations. Furthermore, the more severe the impact of electromagnetic interference and signal reflections, the greater the spikes and dips.
[0050] Therefore, in this embodiment, the high-level interval adjacent to the i-th rising edge is recorded as the i-th high level. This embodiment uses an automatic multi-scale peak search algorithm to obtain the positions of all peaks and troughs in the i-th high level. The obtained peaks and troughs are randomly distributed on the high level. Then, the range of the data of each peak and trough in the i-th high level interval within its corresponding wave width is calculated respectively, and the cumulative sum of all the ranges in the i-th high level interval is used as the oscillation amplitude coefficient of the i-th high level interval, which is recorded as , income It reflects the degree of irregular oscillation of the i-th high level in the data frame with a small peak and depression structure.
[0051] In addition, due to a certain degree of irregular oscillation at the beginning of the high level, it is not immediately in the high level state after the rising edge ends, but is in the high level after a period of oscillation delay. The position of the first data in the i-th high level interval is taken as the initial high level point, and the end position of the i-th rising edge is taken as the rising edge end point. Then, the difference between the corresponding time points of the initial high level point and the rising edge end point is calculated and used as the oscillation delay coefficient of the i-th high level interval, which is recorded as , the larger the oscillation delay coefficient of the i-th high-level interval, the longer the delay degree for reaching the i-th high level due to oscillation.
[0052] Furthermore, the abnormal value of the i-th high level with local irregular oscillation and delay characteristics is calculated. The specific calculation formula in this embodiment is: , income The larger the value is, the more obvious the local irregular oscillation of the i-th high level in the data frame and the delay characteristics of reaching the high level are.
[0053] Thus, according to the above process of this embodiment, the abnormal characteristics of each rising edge, falling edge and high-level interval in the data frame under the influence of electromagnetic interference and signal reflection can be obtained.
[0054] Step 4: Obtain each eigenvector through the distortion jitter coefficient of each rising edge and falling edge and the abnormal value corresponding to each high level. According to the average level of all eigenvector modulus values of each data frame and the similarity between different eigenvectors, obtain the disturbance value of each data frame affected by electromagnetic interference and signal reflection.
[0055] The data frame of the communication transmission changes from low level to high level and then back to low level in a cycle. The abnormal state of the overall change of the data frame waveform reflects the degree of influence on the communication. Therefore, in this embodiment, for any data frame, the distortion jitter coefficient of the i-th rising edge and the i-th falling edge of the data frame and the abnormal value corresponding to the i-th high level are combined to form the i-th feature vector, which is recorded as . The values in reflect the abnormal characteristics of the data frame waveform in different intervals. A more pronounced overall abnormality in the data frame indicates a greater degree of interference during transmission. The moduli of the eigenvectors within the data frame are larger, and the similarity is lower. An ideal data frame waveform has no such obvious abnormalities, resulting in smaller moduli for the eigenvectors and higher similarity between the eigenvectors. Therefore, for a given data frame, the moduli of each eigenvector and the cosine similarity between any two eigenvectors are calculated.
[0056] Furthermore, for any data frame, a disturbance value of the data frame caused by electromagnetic interference and signal reflection is calculated. The specific calculation formula of the disturbance value is: , where M is the disturbance value corresponding to any data frame, P is the mean modulus of all eigenvectors of any data frame, exp() represents an exponential function with a natural constant as its base, and Q is the mean cosine similarity between any two eigenvectors of any data frame. The larger the M, the greater the degree to which the data frame is affected by electromagnetic interference and signal reflection.
[0057] At this point, the disturbance value corresponding to each data frame is obtained. The disturbance value reflects the degree of signal abnormality due to electromagnetic interference and signal reflection during the bus coupler communication process. The larger the disturbance value, the lower the communication quality, and the more necessary it is to correct the data frame waveform.
[0058] Step 5: Determine the correction processing of each data frame during the bus coupler communication process according to the disturbance value.
[0059] Furthermore, in this embodiment, a signal amplifier and a filter are used to perform signal correction. The signal amplifier increases the strength of the signal, enabling the receiving end to more clearly distinguish between high and low levels, and compensates for the distorted data frame waveform, making the rise time and fall time closer to the requirements of the original signal, thereby ensuring the integrity of the data frame waveform. The filter performs a certain degree of shaping on the data frame waveform, for example, compensating for the depression at the top of the signal, making the waveform closer to the ideal shape, while suppressing waveform glitches and jitter, resulting in a clearer data frame. It should be noted that the specific process of the signal amplifier and filter performing data frame waveform correction is a well-known technology and will not be repeated in this embodiment.
[0060] Therefore, in the signal correction process of the data frame, this embodiment combines the disturbance value to perform disturbance analysis on the waveform signal of the data frame to determine whether correction processing is required. Specifically, the disturbance value corresponding to the data frame is normalized using the sigmoid function. The specific normalization process is an existing technology and will not be described in detail in this embodiment. If the normalized result is greater than or equal to the preset threshold , then use the signal amplifier and filter to correct the data frame waveform and set the preset threshold is 0.7, if the normalized result is less than The above method and process based on this embodiment can improve the communication quality of the bus coupler.
[0061] During data transmission, the bus coupler buffers and manages received and transmitted data. When data traffic is high or the communication link experiences temporary congestion, data caching prevents data loss and ensures complete data transmission. Furthermore, the bus coupler manages and schedules the buffered data, sending it according to a specific priority and sequence to meet the real-time requirements of different devices. During communication, the bus coupler monitors the data transmission status in real time, including data frame integrity, checksum accuracy, and communication timeouts. For detected erroneous data, the bus coupler takes different actions based on the error type and severity. Minor errors, such as single bit errors, can be corrected using error correction algorithms. For severe errors, such as data frame loss or communication interruption, the bus coupler sends an error report to the master station and, based on pre-set policies, performs retransmission or reestablishes the connection to quickly restore communication. The bus coupler also records error information for subsequent fault diagnosis and analysis.
[0062] Based on the same inventive concept as the above method, an embodiment of the present application also provides a communication device applied to a bus coupler, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of any one of the above-mentioned communication methods applied to a bus coupler are implemented.
[0063] It should be understood that the order in which the embodiments of the present application are presented is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. Furthermore, the foregoing descriptions of specific embodiments of this specification are provided. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential sequence shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0064] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.
[0065] The above content is only an implementation method of the present application and is not intended to limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the scope of protection of the present application.
Claims
1. A communication method applied to a bus coupler, characterized in that: The following steps are involved: Acquire each communication data frame during the bus coupler communication process; Divide each data frame into rising edge, falling edge and high-level interval according to the waveform change and mutation of each data frame. Obtain the distortion jitter coefficient of each rising edge and falling edge based on the deviation of each data in each rising edge and falling edge, as well as the correlation between each rising edge and falling edge and its adjacent rising edge and falling edge. Extract the peaks and troughs of each high-level interval, and obtain the abnormal values of each high-level with local irregular oscillation and delay characteristics through the data deviation degree within the wave width of each peak and trough in the high-level interval and the oscillation delay degree of the high-level interval; Each eigenvector is obtained by the distortion jitter coefficient of each rising edge and falling edge and the abnormal value corresponding to each high level, and the disturbance value of each data frame affected by electromagnetic interference and signal reflection is obtained according to the average level of all eigenvector modulus values of each data frame and the similarity between different eigenvectors; The correction processing of each data frame in the communication process of the bus coupler is determined according to the disturbance value.
2. A communication method for a bus coupler according to claim 1, characterized in that: The division method of the rising edge, falling edge and high level interval is: Fit each data frame, count the slopes of all points in the fitting curve corresponding to each data frame, extract the mutation points in all slope values of each data frame, divide each data frame into intervals with the mutation points as the dividing points, take the intervals with the average value of the slope greater than 0 as the rising edge of each data frame, take the intervals with the average value of the slope less than 0 as the falling edge of each data frame, and take the intervals with the average value of the slope 0 and the corresponding data greater than 0 as the high-level interval of each data frame.
3. A communication method for a bus coupler according to claim 2, characterized in that: The calculation method of the distortion jitter coefficient of each rising edge and falling edge is: For any data frame, the distortion jitter coefficient of its i-th rising edge is The calculation formula is: ; The minimum Euclidean distance between each data in the i-th rising edge and the corresponding fitting curve is calculated, and the mean of the minimum Euclidean distances corresponding to all data in the i-th rising edge is used as the first mean of the i-th rising edge. According to the correlation between the data slope of the ith rising edge and its preceding and following rising edges, combined with the data fluctuation of the ith rising edge, the first fluctuation degree of the ith rising edge is obtained. ; Accordingly, the distortion jitter coefficient of the i-th falling edge of any data frame is obtained.
4. A communication method for a bus coupler according to claim 3, characterized in that: Calculate the mean of the Pearson correlation coefficients between the slopes of the data corresponding to the i-th rising edge and its preceding and following rising edges, calculate the standard deviation of the first-order difference sequence of all the data slopes of the i-th rising edge, and take the product of the mean and the standard deviation corresponding to the i-th rising edge as .
5. The communication method for a bus coupler according to claim 1, wherein: The process of obtaining the abnormal values of each high level having local irregular oscillation and delay characteristics is as follows: The high level interval adjacent to the i-th rising edge is recorded as the i-th high level. The i-th high level has an abnormal value with local irregular oscillation and delay characteristics. The calculation method is: Where, is the oscillation amplitude coefficient of the i-th high-level interval, calculate the range of the data of each peak and trough in the i-th high-level interval within its corresponding wave width, and the cumulative sum of all the ranges is used as the oscillation amplitude coefficient of the i-th high-level interval; is the oscillation delay coefficient of the i-th high-level interval.
6. A communication method for a bus coupler according to claim 5, characterized in that: The acquisition of the oscillation delay coefficient further includes: taking the position of the first data in the i-th high-level interval as the initial high-level point, and taking the end position of the i-th rising edge as the rising edge end point, and calculating the difference between the corresponding moments between the initial high-level point and the rising edge end point as the oscillation delay coefficient of the i-th high-level interval.
7. The communication method for a bus coupler according to claim 1, wherein: The acquisition process of each feature vector is as follows: the distortion jitter coefficients of the i-th rising edge and the i-th falling edge of each data frame, and the abnormal value corresponding to the i-th high level, form the i-th feature vector of each data frame.
8. The communication method for a bus coupler according to claim 1, wherein: The calculation method of the disturbance value of each data frame affected by electromagnetic interference and signal reflection is as follows: For any data frame, the calculation formula of the corresponding disturbance value is: , where M is the disturbance value corresponding to any data frame, P is the mean of the moduli of all eigenvectors of any data frame, exp() represents an exponential function with a natural constant as the base, and Q is the mean of the cosine similarities between any two eigenvectors of any data frame.
9. The communication method for a bus coupler according to claim 1, wherein: The determining of the correction processing of each data frame during the bus coupler communication process further includes: The disturbance value corresponding to the data frame is normalized. If the normalization result is greater than or equal to a preset threshold, the data frame waveform is corrected; otherwise, the data frame waveform is not corrected.
10. A communication device applied to a bus coupler, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the communication method applied to a bus coupler as claimed in any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Bus communication system, electronic device, and bus communication method
CN113242166A
Air conditioner communication control method and device, communication system and readable storage medium
CN112559417A
Bus communication automatic adjusting method of fire-fighting product
CN117061271A