EMC testing method, testing device and terminal equipment

By calculating the abnormality index and clustering algorithm of abnormal signals, electromagnetic defects in EMC design are automatically identified, which solves the problem of EMC design improvement relying on experience in the existing technology and improves the diagnostic efficiency and accuracy of electromagnetic design.

CN118362805BActive Publication Date: 2024-10-18SHENZHEN MAGNETIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410500498.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-10-18
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

In the existing technology, EMC design improvement directions mostly rely on human experience or trial and error, and cannot automatically analyze test data, making it difficult to identify electromagnetic design defects.

Method used

By acquiring the abnormal signals of the equipment under test under different interference intensities and durations, extracting the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time, calculate the abnormality index, and use a clustering algorithm to match the target electromagnetic defect type. Including circuit layout defects, electromagnetic shielding defects, grounding defects and filter defects.

Benefits of technology

It realizes automated identification and diagnosis of electromagnetic design defects, improves diagnosis efficiency and accuracy, and reduces reliance on experience and trial and error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362805B_ABST
    Figure CN118362805B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the technical field of electrical digital data processing, and provides an EMC test method, test device and terminal equipment. The EMC test method includes: by acquiring and analyzing the output abnormal signal of the device under test under different electromagnetic interference conditions, further extracting key performance indicators such as signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time, etc., so that the evaluation of the abnormal signal is more objective and accurate. The first abnormal index obtained by calculation can quantify the abnormal degree of the abnormal signal, which provides a basis for subsequent fault analysis and optimization. By using the constructed feature matrix and combining the clustering algorithm, this scheme can automatically match and identify a variety of target electromagnetic defect types, such as circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects, thereby greatly improving the diagnostic efficiency and accuracy of electromagnetic design, and reducing the traditional method that relies on experience and trial and error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of electrical digital data processing, and in particular relates to an EMC test method, a test device and a terminal device. Background Art

[0002] EMC testing, the full name of which is Electromagnetic Compatibility Testing, is a series of tests to evaluate whether electronic equipment can operate normally in an electromagnetic environment and will not cause unacceptable electromagnetic interference to other devices. Electromagnetic compatibility involves two main aspects: emission and radiation immunity. Radiation immunity is used to evaluate the degree of influence of external electromagnetic fields on equipment and determine whether the equipment can maintain normal operation when subjected to electromagnetic interference of a certain intensity.

[0003] Therefore, EMC design for electronic equipment is particularly important. EMC (electromagnetic compatibility) design is the key to ensure that electronic equipment operates normally in its electromagnetic environment and does not interfere with other equipment. Although EMC design is crucial, it also has some limitations and challenges. In traditional technologies, the improvement direction of EMC design is often based on human experience or continuous trial and error, and it is impossible to automatically analyze the test data to find electromagnetic design defects. This is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide an EMC testing method, a testing device and a terminal device to solve the technical problem that the improvement direction of EMC design is often based on human experience or continuous trial and error, and it is impossible to perform automatic analysis on the test data to derive electromagnetic design defects.

[0005] A first aspect of an embodiment of the present invention provides an EMC testing method, the EMC testing method comprising:

[0006] Obtain the abnormal signals output by the equipment under test under different interference intensities and durations;

[0007] Extracting the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal;

[0008] Calculating a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal;

[0009] The interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations are constructed into a feature matrix;

[0010] Based on a clustering algorithm, the target electromagnetic defect types corresponding to the feature matrix are matched; the target electromagnetic defect types include circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

[0011] Further, the step of calculating a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency comprises:

[0012] Substituting the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency into formula 1 to obtain the first abnormality index;

[0013] The formula 1 is:

[0014]

[0015] Among them, EI represents the first abnormality index, SNR represents the signal-to-noise ratio, BER represents the bit error rate, IR represents the interference ratio, and AF represents the abnormal frequency.

[0016] Furthermore, the step of matching the target electromagnetic defect type corresponding to the characteristic matrix based on the clustering algorithm includes:

[0017] Obtain multiple pre-stored target cluster centers;

[0018] Calculating a first similarity between the feature matrix and the target cluster center;

[0019] According to the magnitude of the first similarity, extract the current target cluster centers corresponding to the first N first similarities; the first N include the first 2 or the first 3;

[0020] Obtain multiple sub-cluster centers corresponding to the current target cluster center;

[0021] Calculating a second similarity between the feature matrix and the sub-cluster center;

[0022] Obtaining the initial electromagnetic defect type corresponding to the current sub-cluster center corresponding to the maximum second similarity;

[0023] Obtaining a second abnormality index in a plurality of cluster sample data corresponding to the current sub-cluster center;

[0024] calculating a difference score between the first anomaly index and the plurality of second anomaly indexes;

[0025] If the difference score is less than a threshold, the initial electromagnetic defect type is used as the target electromagnetic defect type.

[0026] Further, the step of calculating the difference score between the first abnormality index and the plurality of second abnormality indexes comprises:

[0027] Substituting the first abnormality index and the plurality of second abnormality indexes into formula 2 to obtain the difference score;

[0028] The formula 2 is:

[0029]

[0030] Wherein, S′ represents the difference score, A represents the first abnormality index, B i represents the second abnormal index of the i-th, d(A,B i ) represents a difference metric function, which is used to calculate the first distance between the first anomaly index and the second anomaly index, max(d(A,B i )) represents the maximum value in the calculation result of the difference measurement function, min(d(A,B i )) represents the minimum value in the calculation results of the difference metric function, w i represents the weight of the i-th training sample data, n represents the number of the second abnormal indexes, and α represents the adjustment coefficient.

[0031] Furthermore, before the step of obtaining a plurality of pre-stored target cluster centers, the method further includes:

[0032] Acquire multiple sample electromagnetic defect types and multiple training sample data corresponding to each of the multiple sample electromagnetic defect types;

[0033] Randomly selecting a preset number of first cluster centers from a plurality of training sample data corresponding to each sample electromagnetic defect type;

[0034] Calculating second distances between a plurality of training sample data and a plurality of the first cluster centers respectively;

[0035] According to the second distance, a plurality of training sample data are assigned to the first cluster center with the closest distance to obtain a plurality of cluster clusters;

[0036] Calculating the mean of the plurality of training sample data in the cluster in each data dimension, and taking the mean of each dimension as the second cluster center;

[0037] The first cluster center is updated to the second cluster center, and the step of respectively calculating the second distances between the plurality of training sample data and the plurality of first cluster centers and subsequent steps are executed in a loop until a preset number of iterations is reached, thereby obtaining a third cluster center;

[0038] The mean value of multiple third cluster centers corresponding to each sample electromagnetic defect type in each data dimension is used as the target cluster center.

[0039] Furthermore, after the step of taking the mean of the plurality of third cluster centers corresponding to each sample electromagnetic defect type in each data dimension as the target cluster center, the method further includes:

[0040] Get the cluster corresponding to the third cluster center;

[0041] Calculate the third distance between each training sample data in the cluster and the third cluster center;

[0042] The multiple third distances are normalized to obtain a weight corresponding to each training sample data; the weight is used to calculate the difference score.

[0043] A second aspect of an embodiment of the present invention provides an EMC testing device, including:

[0044] An acquisition unit, used for acquiring abnormal signals output by the tested equipment under different interference intensities and different interference durations;

[0045] An extraction unit, used to extract the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal;

[0046] A calculation unit, configured to calculate a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal;

[0047] A construction unit, used to construct the interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations into a feature matrix;

[0048] A matching unit is used to match the target electromagnetic defect type corresponding to the feature matrix based on a clustering algorithm; the target electromagnetic defect type includes circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

[0049] Furthermore, the matching unit is specifically used for:

[0050] Obtain multiple pre-stored target cluster centers;

[0051] Calculating a first similarity between the feature matrix and the target cluster center;

[0052] According to the magnitude of the first similarity, extract the current target cluster centers corresponding to the first N first similarities; the first N include the first 2 or the first 3;

[0053] Obtain multiple sub-cluster centers corresponding to the current target cluster center;

[0054] Calculating a second similarity between the feature matrix and the sub-cluster center;

[0055] Obtaining the initial electromagnetic defect type corresponding to the current sub-cluster center corresponding to the maximum second similarity;

[0056] Obtaining a second abnormality index in a plurality of cluster sample data corresponding to the current sub-cluster center;

[0057] calculating a difference score between the first anomaly index and the plurality of second anomaly indexes;

[0058] If the difference score is less than a threshold, the initial electromagnetic defect type is used as the target electromagnetic defect type.

[0059] A third aspect of an embodiment of the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0060] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0061] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: by acquiring and analyzing the output abnormal signals of the device under test under different electromagnetic interference conditions, key performance indicators such as signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time are further extracted, so that the evaluation of abnormal signals is more objective and accurate. The first abnormal index obtained by calculation can quantify the abnormal degree of the abnormal signal, providing a basis for subsequent fault analysis and optimization. By using the constructed feature matrix and combining it with the clustering algorithm, this solution can automatically match and identify a variety of target electromagnetic defect types, such as circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects, thereby greatly improving the diagnostic efficiency and accuracy of electromagnetic design and reducing the traditional methods that rely on experience and trial and error. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 A schematic flow chart of an EMC testing method provided by the present invention is shown;

[0064] Figure 2 A schematic diagram of an EMC testing device provided by an embodiment of the present invention is shown;

[0065] Figure 3 A schematic diagram of a terminal device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0066] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0067] The embodiments of the present invention provide an EMC testing method, a testing device and a terminal device to solve the technical problem that the improvement direction of EMC design is often based on human experience or continuous trial and error, and it is impossible to automatically analyze the test data to obtain electromagnetic design defects.

[0068] First, the present invention provides an EMC testing method. Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of an EMC testing method provided by the present invention. Figure 1 As shown, the EMC test method may include the following steps:

[0069] Step 101: Acquire abnormal signals output by the devices under test at different interference intensities and different interference durations;

[0070] The device under test is placed in test environments with different interference intensities and different interference durations, and the abnormal signals output by the device under test are collected.

[0071] Step 102: extracting the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal;

[0072] The signal-to-noise ratio is an indicator that describes the signal strength relative to the background noise strength. In EMC testing, the signal-to-noise ratio is used to evaluate whether the device can effectively transmit and receive signals in a noisy environment. A high signal-to-noise ratio indicates that the signal is much greater than the noise and the signal quality is good. Otherwise, there may be communication problems.

[0073] The bit error rate is the ratio of the number of error bits to the total number of transmitted bits during data communication. In EMC testing, the impact of electromagnetic interference on data transmission quality can be evaluated by measuring the bit error rate. The lower the bit error rate, the stronger the system's anti-interference ability.

[0074] The interference ratio is the ratio of the interference signal to the useful signal, usually expressed in decibels (dB). This ratio helps evaluate the degree of impact of the interference source on the normal working signal in a specific electromagnetic environment. Ideally, the interference ratio should be as low as possible to ensure the normal operation of the equipment.

[0075] Abnormal frequency usually refers to the frequency of abnormal signals occurring in a specific device or system.

[0076] Recovery time refers to the time it takes for a device to return to normal working state after being subjected to electromagnetic interference. This indicator is crucial for evaluating the resilience and reliability of the device. A shorter recovery time means that the device can recover quickly from interference, which is very important for ensuring the continuity and reliability of the system.

[0077] Step 103: Calculate a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal;

[0078] Specifically, step 103 includes:

[0079] Substituting the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency into formula 1 to obtain the first abnormality index;

[0080] The formula 1 is:

[0081]

[0082] Among them, EI represents the first abnormality index, SNR represents the signal-to-noise ratio, BER represents the bit error rate, IR represents the interference ratio, and AF represents the abnormal frequency.

[0083] It is worth noting that the principle of constructing the above formula is based on combining multiple characteristic parameters of the signal to comprehensively evaluate the degree of abnormality of the signal. Each parameter here, such as signal-to-noise ratio (SNR), bit error rate (BER), interference ratio (IR), and abnormal frequency (AF), directly or indirectly reflects the quality and stability of the signal. The different functions in the formula are all intended to extract and emphasize the specific impact of these parameters.

[0084] Step 104: constructing the interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations into a feature matrix;

[0085] The interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery duration and first abnormal index are coded to obtain a plurality of coded values. According to preset positions corresponding to different data types, the plurality of coded values ​​are combined to obtain a feature matrix.

[0086] Step 105: Based on a clustering algorithm, matching target electromagnetic defect types corresponding to the feature matrix; the target electromagnetic defect types include circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

[0087] The target electromagnetic defect types include but are not limited to circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects. The matching logic of the target electromagnetic defect types is as follows:

[0088] Specifically, step 105 specifically includes steps 1051 to 1059:

[0089] Obtain multiple pre-stored target cluster centers;

[0090] Step 1051: Calculate a first similarity between the feature matrix and the target cluster center;

[0091] Step 1052: extracting the current target cluster centers corresponding to the first N first similarities according to the magnitude of the first similarities; the first N include the first 2 or the first 3;

[0092] Step 1053: Obtain multiple sub-cluster centers corresponding to the current target cluster center;

[0093] In order to speed up the computational efficiency of the clustering algorithm, the present application allocates different sub-clustering centers to multiple current target clustering centers to form a clustering architecture from large to small.

[0094] Step 1054: Calculate the second similarity between the feature matrix and the sub-cluster center;

[0095] Step 1055: Obtaining the initial electromagnetic defect type corresponding to the current sub-cluster center corresponding to the maximum second similarity;

[0096] Step 1056: Obtain a second abnormality index in a plurality of cluster sample data corresponding to the current sub-cluster center;

[0097] In order to verify the accuracy of the current sub-cluster center, multiple second anomaly indices are obtained, and the difference scores between the first anomaly index and the multiple second anomaly indices are calculated to evaluate the accuracy of the current sub-cluster center. The larger the difference score, the lower the accuracy. The smaller the difference score, the higher the accuracy.

[0098] Step 1057: Calculate the difference score between the first abnormality index and the plurality of second abnormality indexes;

[0099] Specifically, step 1057 includes:

[0100] Substituting the first abnormality index and the plurality of second abnormality indexes into formula 2 to obtain the difference score;

[0101] The formula 2 is:

[0102]

[0103] Wherein, S′ represents the difference score, A represents the first abnormality index, B i represents the second abnormal index of the i-th, d(A,B i ) represents a difference metric function, which is used to calculate the first distance between the first anomaly index and the second anomaly index, max(d(A,B i )) represents the maximum value in the calculation result of the difference measurement function, min(d(A,B i )) represents the minimum value in the calculation results of the difference metric function, w i represents the weight of the i-th training sample data, n represents the number of the second abnormal indexes, and α represents the adjustment coefficient.

[0104] It is worth noting that this formula combines elements from multiple statistics and data analysis to quantify and compare the differences between one index and a group of indices through a comprehensive scoring mechanism.

[0105] Step 1058: If the difference score is less than a threshold, the initial electromagnetic defect type is used as the target electromagnetic defect type.

[0106] In this embodiment, the target electromagnetic defect type is accurately matched by using a clustering algorithm, thereby improving the accuracy of identifying electromagnetic defects. First, by calculating the first similarity between the feature matrix and the pre-stored target cluster center, the top N target cluster centers (for example, the top 2 or top 3) closest to the current feature matrix are screened out. This step ensures the focus and high correlation of the preliminary screening. On the basis of the preliminary screening, by obtaining the sub-cluster center corresponding to the current target cluster center and calculating the second similarity between these sub-cluster centers, the matching of the defect type is made more detailed and accurate. Finally, the initial electromagnetic defect type of the sub-cluster center corresponding to the maximum second similarity is selected as a candidate. Such a refinement step can effectively reduce the recognition error and improve the reliability of the results. The scheme also includes an important scoring mechanism, that is, calculating the difference score between the second abnormal index and the first abnormal index in the cluster sample data corresponding to the initial electromagnetic defect type. This scoring mechanism allows the system to dynamically adjust the judgment criteria according to the actual data. When the difference score is lower than the set threshold, the initial electromagnetic defect type is confirmed as the final target electromagnetic defect type. This scoring adjustment based on the abnormal index increases the adaptability and flexibility of the scheme, making defect identification more accurate. Through two-level similarity calculation (target cluster center and sub-cluster center) and difference scoring based on anomaly index, this technical solution effectively reduces the possibility of misjudgment and missed judgment. This hierarchical screening and scoring mechanism ensures that only the most qualified electromagnetic defect types are finally selected, thereby greatly improving the accuracy and reliability of the identification process. Although this technical solution involves multiple calculation steps in the matching process, each step is automatically executed without human intervention, which greatly improves the convenience of operation and the efficiency of the entire identification process. This technical solution not only optimizes the identification process of electromagnetic defects and improves the accuracy and efficiency of diagnosis, but also reduces the system's misjudgment rate through specific calculation and scoring steps.

[0107] Optionally, before step 1051, steps A1 to A10 are also included:

[0108] Step A1: obtaining a plurality of sample electromagnetic defect types and a plurality of training sample data corresponding to the plurality of sample electromagnetic defect types;

[0109] Step A2: randomly selecting a preset number of first cluster centers from a plurality of training sample data corresponding to each sample electromagnetic defect type;

[0110] Step A3: respectively calculating the second distances between a plurality of training sample data and a plurality of the first cluster centers;

[0111] Step A4: according to the second distance, allocating a plurality of training sample data to the first cluster center with the closest distance, to obtain a plurality of cluster clusters;

[0112] Step A5: Calculate the mean of multiple training sample data in the cluster in each data dimension, and use the mean of each dimension as the second cluster center;

[0113] Step A6: updating the first cluster center to the second cluster center, and looping the step of respectively calculating the second distances between the plurality of training sample data and the plurality of the first cluster centers and subsequent steps until a preset number of iterations is reached to obtain a third cluster center;

[0114] Step A7: taking the mean of the multiple third cluster centers corresponding to each sample electromagnetic defect type in each data dimension as the target cluster center.

[0115] The data dimensions include, but are not limited to, interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time, and first abnormal index, etc. It can be understood that the target cluster center is also a data matrix composed of multiple data dimensions.

[0116] In this embodiment, the iterative process is started by randomly selecting a preset number of first cluster centers in the training samples of each sample electromagnetic defect type, and combined with the subsequent cluster center update, the characteristics of each defect type can be more accurately reflected. Using the mean of the sample data as the new cluster center can effectively reduce the impact of individual outliers on the clustering results and improve the accuracy and reliability of the final clustering. By iteratively updating the cluster center to the preset number of iterations, the clustering results are more stable. Each iteration considers the overall characteristics of all samples in the current cluster cluster, so that the final cluster center is more stable and representative. The cluster center is updated by calculating the mean from each data dimension. Compared with other cluster center determination methods that may require complex calculations, this method is simple and has a small amount of calculation. This processing method greatly improves the operating efficiency of the algorithm, especially when processing large-scale data. Although this technical solution is for clustering samples of electromagnetic defects, its core ideas and methods can be extended to data clustering analysis in other fields, and has broad application potential.

[0117] Step A8: Obtain the cluster corresponding to the third cluster center;

[0118] Step A9: Calculate the third distance between each training sample data in the cluster and the third cluster center;

[0119] Step A10: normalize the multiple third distances to obtain a weight corresponding to each training sample data; the weight is used to calculate the difference score.

[0120] In this embodiment, by obtaining the cluster corresponding to the third cluster center and calculating the distance between each training sample data in the cluster cluster and the third cluster center, the technical solution can more accurately measure the similarity between each sample and the cluster center. Since the distance calculation directly reflects the relative positional relationship between the sample and the cluster center, the weight obtained in this way can more accurately reflect the contribution and representativeness of each sample to the cluster center, thereby improving the accuracy of the model when processing data within the class. By normalizing multiple third distances to obtain the weight corresponding to each training sample data, the technical solution ensures the uniformity and comparability of all sample weights. The normalized weights can evaluate the importance of different samples under the same standard, avoiding the deviation problem caused by different scales. The difference between different samples or sample groups can be more accurately measured by calculating the difference score using the normalized weights. By accurately calculating and normalizing the weights of the samples in the cluster cluster. The accurate distribution of weights ensures that the model can be appropriately adjusted for the importance of each sample, and can be more stably identified, thereby improving overall performance and reliability.

[0121] In this embodiment, by acquiring and analyzing the output abnormal signal of the device under test under different electromagnetic interference conditions, key performance indicators such as signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time are further extracted, making the evaluation of abnormal signals more objective and accurate. The first abnormal index obtained by calculation can quantify the abnormal degree of the abnormal signal, providing a basis for subsequent fault analysis and optimization. By using the constructed feature matrix and combining the clustering algorithm, this solution can automatically match and identify a variety of target electromagnetic defect types, such as circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects, thereby greatly improving the diagnostic efficiency and accuracy of electromagnetic design and reducing the traditional method that relies on experience and trial and error.

[0122] like Figure 2 The present invention provides an EMC test device 2, see Figure 2 , Figure 2 A schematic diagram of an EMC testing device provided by the present invention is shown, Figure 2 The EMC test device shown includes:

[0123] An acquisition unit 21 is used to acquire abnormal signals output by the devices under test at different interference intensities and different interference durations;

[0124] An extraction unit 22, used to extract the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal;

[0125] A calculation unit 23, configured to calculate a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal;

[0126] A construction unit 24 is used to construct the interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations into a feature matrix;

[0127] The matching unit 25 is used to match the target electromagnetic defect type corresponding to the characteristic matrix based on a clustering algorithm; the target electromagnetic defect type includes circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

[0128] The present invention provides an EMC test device, which obtains and analyzes the output abnormal signal of the device under test under different electromagnetic interference conditions, and further extracts key performance indicators such as signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time, so that the evaluation of abnormal signals is more objective and accurate. The first abnormal index obtained by calculation can quantify the abnormal degree of the abnormal signal, providing a basis for subsequent fault analysis and optimization. By using the constructed feature matrix and combining the clustering algorithm, this solution can automatically match and identify a variety of target electromagnetic defect types, such as circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects, thereby greatly improving the diagnostic efficiency and accuracy of electromagnetic design and reducing the traditional method that relies on experience and trial and error.

[0129] Figure 3 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 3 As shown, a terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a program for EMC testing. When the processor 30 executes the computer program 32, the steps in each of the above-mentioned EMC testing method embodiments are implemented, such as Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each unit in the above-mentioned device embodiments are realized, for example, Figure 2 Function of the unit shown.

[0130] Exemplarily, the computer program 32 may be divided into one or more units, which are stored in the memory 31 and executed by the processor 30 to complete the present invention. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into the following specific functions of each unit:

[0131] An acquisition unit, used for acquiring abnormal signals output by the tested equipment under different interference intensities and different interference durations;

[0132] An extraction unit, used to extract the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal;

[0133] A calculation unit, configured to calculate a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal;

[0134] A construction unit, used to construct the interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations into a feature matrix;

[0135] A matching unit is used to match the target electromagnetic defect type corresponding to the feature matrix based on a clustering algorithm; the target electromagnetic defect type includes circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

[0136] The terminal device includes but is not limited to a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of a terminal device 3 and does not constitute a limitation on the terminal device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

[0137] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0138] The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used to store the computer program and other programs and data required by the roaming control device. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0139] It should be understood that the order of execution of the steps in the above embodiment does not necessarily 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 embodiment of the present invention.

[0140] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0141] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0142] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0143] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0144] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0145] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0146] Those skilled 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 the present invention.

[0147] In the embodiments provided by the present invention, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units.

[0149] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0150] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0151] As used in the present specification and the appended claims, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to monitoring, depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is monitored" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is monitored" or "in response to monitoring [described condition or event]", depending on the context.

[0152] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0153] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0154] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. An EMC testing method, characterized in that: The EMC test method includes: Obtain the abnormal signals output by the equipment under test under different interference intensities and durations; Extracting the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal; Calculating a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal; The interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations are constructed into a feature matrix; Obtain multiple pre-stored target cluster centers; Calculating a first similarity between the feature matrix and the target cluster center; According to the magnitude of the first similarity, extract the current target cluster centers corresponding to the first N first similarities; the first N include the first 2 or the first 3; Obtain multiple sub-cluster centers corresponding to the current target cluster center; Calculating a second similarity between the feature matrix and the sub-cluster center; Obtaining the initial electromagnetic defect type corresponding to the current sub-cluster center corresponding to the maximum second similarity; Obtaining a second abnormality index in a plurality of cluster sample data corresponding to the current sub-cluster center; calculating a difference score between the first anomaly index and the plurality of second anomaly indexes; If the difference score is less than a threshold, the initial electromagnetic defect type is used as a target electromagnetic defect type; the target electromagnetic defect type includes circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

2. The EMC testing method according to claim 1, characterized in that: The step of calculating the first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency comprises: Substituting the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency into formula 1 to obtain the first abnormality index; The formula 1 is: Among them, EI represents the first abnormality index, SNR represents the signal-to-noise ratio, BER represents the bit error rate, IR represents the interference ratio, and AF represents the abnormal frequency.

3. The EMC testing method according to claim 1, characterized in that: The step of calculating the difference score between the first anomaly index and the plurality of second anomaly indexes comprises: Substituting the first abnormality index and the plurality of second abnormality indexes into formula 2 to obtain the difference score; The formula 2 is: Wherein, S′ represents the difference score, A represents the first abnormality index, B i represents the second abnormal index of the i-th, d(A,B i ) represents a difference metric function, which is used to calculate the first distance between the first anomaly index and the second anomaly index, max(d(A,B i )) represents the maximum value in the calculation result of the difference measurement function, min(d(A,B i )) represents the minimum value in the calculation results of the difference metric function, w i represents the weight of the i-th training sample data, n represents the number of the second abnormal indexes, and α represents the adjustment coefficient.

4. The EMC testing method according to claim 1, characterized in that: Before the step of obtaining a plurality of pre-stored target cluster centers, the method further includes: Acquire multiple sample electromagnetic defect types and multiple training sample data corresponding to each of the multiple sample electromagnetic defect types; Randomly selecting a preset number of first cluster centers from a plurality of training sample data corresponding to each sample electromagnetic defect type; Calculating second distances between a plurality of training sample data and a plurality of the first cluster centers respectively; According to the second distance, a plurality of training sample data are assigned to the first cluster center with the closest distance to obtain a plurality of cluster clusters; Calculating the mean of the plurality of training sample data in the cluster in each data dimension, and taking the mean of each dimension as the second cluster center; The first cluster center is updated to the second cluster center, and the step of respectively calculating the second distances between the plurality of training sample data and the plurality of first cluster centers and subsequent steps are executed in a loop until a preset number of iterations is reached, thereby obtaining a third cluster center; The mean value of multiple third cluster centers corresponding to each sample electromagnetic defect type in each data dimension is used as the target cluster center.

5. The EMC testing method according to claim 4, characterized in that: After the step of taking the mean of the plurality of third cluster centers corresponding to each sample electromagnetic defect type in each data dimension as the target cluster center, the method further includes: Get the cluster corresponding to the third cluster center; Calculate the third distance between each training sample data in the cluster and the third cluster center; The multiple third distances are normalized to obtain a weight corresponding to each training sample data; the weight is used to calculate the difference score.

6. An EMC testing device, characterized in that: The EMC test device includes: An acquisition unit, used for acquiring abnormal signals output by the tested equipment under different interference intensities and different interference durations; An extraction unit, used to extract the signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency and recovery time of the abnormal signal; A calculation unit, configured to calculate a first abnormality index according to the signal-to-noise ratio, the bit error rate, the interference ratio and the abnormal frequency; the first abnormality index is used to evaluate the abnormality degree of the abnormal signal; A construction unit, used to construct the interference intensity, interference duration, signal-to-noise ratio, bit error rate, interference ratio, abnormal frequency, recovery time and first abnormal index corresponding to different interference intensities and different interference durations into a feature matrix; A matching unit, used to obtain multiple pre-stored target cluster centers; Calculating a first similarity between the feature matrix and the target cluster center; According to the magnitude of the first similarity, extract the current target cluster centers corresponding to the first N first similarities; the first N include the first 2 or the first 3; Obtain multiple sub-cluster centers corresponding to the current target cluster center; Calculating a second similarity between the feature matrix and the sub-cluster center; Obtaining the initial electromagnetic defect type corresponding to the current sub-cluster center corresponding to the maximum second similarity; Obtaining a second abnormality index in a plurality of cluster sample data corresponding to the current sub-cluster center; calculating a difference score between the first anomaly index and the plurality of second anomaly indexes; If the difference score is less than a threshold, the initial electromagnetic defect type is used as a target electromagnetic defect type; the target electromagnetic defect type includes circuit layout defects, electromagnetic shielding defects, grounding defects, filter defects and power supply design defects.

7. A terminal device, characterized in that: The terminal device comprises: a memory, a processor, and an EMC test program stored in the memory and executable on the processor, wherein the EMC test program is configured to implement the steps of the EMC test method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the EMC testing method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • System and method for testing electromagnetic disturbance rejection performance of intelligent networked automobile

    CN111865711A

  • Electromagnetic compatibility fault source diagnosis method based on deep learning

    CN117272137A