A crystal head detection method based on electrical parameter analysis
Through the detection method based on electrical parameter analysis, multiple filters and hysteresis translation technology are used to solve the problem that the signal quality of different frequencies of the crystal head in the existing technology is not comprehensively detected, and the comprehensive and accurate electrical parameters of the crystal head are achieved. detection.
Patent Information
- Application Number
- CN202410725652.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-06-06
AI Technical Summary
The existing crystal head quality detection methods can only detect signal transmission efficiency and quality at a single frequency, and cannot detect signal loss, weakening and hysteresis at different frequencies at the same time, resulting in insufficient comprehensive detection.
Using the detection method based on electrical parameter analysis, the target electrical signal is input into the crystal head, and multiple filters are used to filter the signal, calculate the signal loss amount and suspected signal loss point, determine the signal stability point, and finally translate the final hysteresis. Test the electrical signal and obtain the electrical parameters of the crystal head to detect its mass.
This method can fully reflect the transmission efficiency and electrical characteristics of the crystal head under different frequency signals, improve the accuracy and efficiency of detection, and can accurately obtain the electrical parameters of the crystal head under various information transmission situations, which is more convenient than traditional methods Comprehensiveness and accuracy.
Smart Images

Figure CN118294861B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electrical variable measurement, and in particular to a crystal head detection method based on electrical parameter analysis. Background Art
[0002] The production quality of the crystal head directly determines the transmission quality of the electrical signal on the network cable. For example, when the metal sheet in the crystal head is thin, rough or even oxidized, the electroplating surface is uneven, the metal sheets are of different lengths, or there are problems with the conduction between the metal sheet and the gold pins of the mother socket, the transmission quality of the electrical signal on the crystal head will be affected. Common transmission quality problems include low transmission efficiency, obvious insertion loss and return loss, and inappropriate frequency bandwidth.
[0003] In order to ensure the production quality of the crystal head, it is often necessary to measure the electrical variables of the crystal head when the crystal head leaves the factory to conduct quality inspection. When detecting the quality of the crystal head by measuring the electrical variables, a single frequency electrical signal is usually used as the input signal of the crystal head, and then the quality of the output signal is judged according to the waveform change of the output signal of the crystal head compared with the input signal on the oscilloscope, or the number of zero crossings of the output signal waveform compared with the input signal, so as to detect the quality of the crystal head. The advantage of this method is that the analysis method of the input and output electrical signals is simple and fast, easy to observe and visualize, and can be conveniently used in combination with existing oscilloscopes, bridges and other measuring equipment. The disadvantage is that the quality problems that may exist in the crystal head are relatively diverse. The input signal of a single frequency can only detect the quality of the output signal at that frequency, but cannot simultaneously and comprehensively detect the signal transmission efficiency, signal loss, weakening, lag and other conditions under other frequency signals. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a crystal plug detection method based on electrical parameter analysis.
[0005] A crystal plug detection method based on electrical parameter analysis of the present invention adopts the following technical solution:
[0006] The embodiment of the present invention provides a crystal plug detection method based on electrical parameter analysis, the method comprising the following steps:
[0007] Inputting a target electrical signal into a crystal head and collecting the electrical signal to be tested output by the crystal head, wherein the target electrical signal is composed of a plurality of electrical signals of a single frequency;
[0008] Using different filters to filter the target electrical signal and the electrical signal to be measured respectively, to obtain a filtered target electrical signal and a filtered electrical signal to be measured under each filter;
[0009] According to the hysteresis of the filtered electrical signal to be tested under the same filter relative to the filtered target electrical signal, a number of signal loss amounts under each filter are obtained;
[0010] Obtaining suspected signal loss points under each filter on the target electrical signal according to the difference between the target electrical signal and the electrical signal to be measured and the signal loss amount;
[0011] The signal stabilization point is determined according to the distribution of suspected signal loss points under all filters, the final hysteresis is determined based on the signal stabilization point, the electrical signal to be tested is shifted according to the final hysteresis, the electrical parameters of the crystal head are determined according to the difference between the electrical signal to be tested and the target electrical signal after the shift and the final hysteresis, and the quality of the crystal head is detected according to the electrical parameters.
[0012] Preferably, the specific steps of obtaining the hysteresis are as follows:
[0013] For the filtered target electrical signal and the filtered electrical signal to be tested under the same filter, the filtered electrical signal to be tested is translated, one unit at a time, and the matching value is calculated between the filtered electrical signal to be tested and the filtered target electrical signal after each translation. When the matching value is the largest, the unit amount of the translation is recorded as the hysteresis amount.
[0014] Preferably, the specific steps for obtaining the signal loss amount are as follows:
[0015] The electrical signal to be measured is translated by F1 to obtain the translated electrical signal to be measured, where F1 represents the hysteresis;
[0016] The target electrical signal is subtracted from the translated electrical signal to obtain a difference signal, and the signal values in the difference signal are clustered to obtain several difference signal clusters. The average value of all signal values in each difference signal cluster is taken as the signal loss amount.
[0017] Preferably, the specific steps of obtaining the suspected signal loss point are as follows:
[0018] The electrical signal to be measured and the target electrical signal include a number of signal points, each of which corresponds to a signal value and a collection time;
[0019] Traverse all signal points in the electrical signal to be measured, and the signal point traversed for the i-th time is recorded as ;
[0020] On the target electrical signal, obtain The difference of the signal value belongs to all signal points in the interval [Da, D+a], denoted as The suspected matching point, D represents any signal loss under each filter, and a represents the preset deviation;
[0021] According to the distribution of suspected matching points of all signal points in the electrical signal to be tested, a reference signal point is screened out from all signal points of the electrical signal to be tested, wherein the reference signal point is a reference signal point corresponding to any signal loss amount under each filter;
[0022] Suspected signal loss points are screened out from the suspected matching points of the reference signal points corresponding to all signal loss amounts under each filter.
[0023] Preferably, the specific steps of acquiring the reference signal point are as follows:
[0024] For any two signal points in the electrical signal to be tested, when the intersection-and-union ratio between the suspected matching points of the two signal points is greater than a preset first threshold, the two signal points are not used as reference signal points, otherwise both are used as reference signal points.
[0025] Preferably, the method of screening out suspected signal loss points from the suspected matching points of the reference signal points corresponding to all signal loss amounts under each filter comprises the following specific steps:
[0026] Record any reference signal point corresponding to any signal loss amount as a target reference signal point;
[0027] If the reference signal points corresponding to other signal loss amounts include the target reference signal point, the target reference signal point is removed; and the suspected matching points of the reference signal remaining after the removal are recorded as suspected signal loss points.
[0028] Preferably, the step of determining the signal stabilization point according to the distribution of the suspected signal loss points under all filters comprises the following specific steps:
[0029] For any suspected signal loss point under any filter, it is recorded as signal point A; the reference signal point corresponding to signal point A is recorded as reference point B;
[0030] If the suspected signal loss points under all other filters include signal point A, and the reference signal points of signal point A under all other filters are also reference point B, then signal point A is recorded as a signal stable point.
[0031] Preferably, the determining of the final hysteresis based on the signal stabilization point comprises the following specific steps:
[0032] Each of the signal stable points corresponds to a reference signal point, and the difference in sampling time between the signal stable point and the corresponding reference signal point is calculated and recorded as the time difference of each signal stable point, and the average of the time differences of all signal stable points is recorded as the final lag.
[0033] Preferably, the method of translating the measured electrical signal according to the final hysteresis, determining the electrical parameters of the crystal head according to the difference between the measured electrical signal after translation and the target electrical signal and the final hysteresis, and detecting the quality of the crystal head according to the electrical parameters includes the following specific steps:
[0034] The electrical signal to be measured is shifted by F2 to obtain the final electrical signal to be measured, where F2 represents the final hysteresis;
[0035] The final difference signal is obtained by subtracting the final measured electrical signal from the target electrical signal, and the variance and final hysteresis of the final difference signal are respectively used as electrical parameters of the crystal head;
[0036] When all electrical parameters of the crystal plug are greater than the preset electrical parameter threshold, the quality of the crystal plug is qualified, otherwise it is unqualified.
[0037] Preferably, the matching value is equal to the Pearson correlation coefficient between the translated filtered electrical signal to be tested and the filtered target electrical signal.
[0038] The beneficial effects of the technical solution of the present invention are:
[0039] In the present invention, the target electrical signal input to the crystal head includes multiple frequencies, that is, it includes multiple information. The final hysteresis is used to translate the electrical signal to be tested, and the difference with the target electrical signal and the final hysteresis is used to determine the electrical parameters of the crystal head, ensuring that the obtained electrical parameters can reflect the electrical characteristics of the crystal head under different frequency signals (or when the crystal head transmits different information), such as transmission efficiency, signal loss, weakening, and hysteresis. Compared with the method of obtaining electrical parameters by inputting an electrical signal of one frequency to the crystal head each time through multiple inputs, it is more efficient and quick. In addition, considering that different information may have a delay lag when the crystal head is transmitted, the final hysteresis is used in the present invention to express this situation. On the one hand, the electrical parameters of the crystal head more comprehensively describe the ability of the crystal head to transmit electrical signals. On the other hand, the final hysteresis is used to translate the electrical signal to be tested, so that the difference between the electrical signal to be tested and the target electrical signal after translation can represent or calculate the accurate electrical parameters of the crystal head.
[0040] In addition, the present invention obtains several signal loss amounts under each filter based on the lag amount of the filtered electrical signal to be tested under the same filter relative to the filtered target electrical signal; the signal loss amount describes the signal loss situation under different filters; based on the difference between the target electrical signal and the electrical signal to be tested and the signal loss amount, the suspected signal loss point under each filter is obtained on the target electrical signal; the suspected signal loss point describes the signal loss position distribution situation under each filter based on the signal loss situation under different filters. Based on this, the present invention determines the signal stability point according to the distribution of the suspected signal loss points under all filters. The signal stability point describes the position where the signal loss situation remains unchanged under all filters. The signal loss situation at these positions is also unchanged on the target electrical signal with complex information and the electrical signal to be tested. That is, these signals are relatively stable compared with other signals in terms of loss, lag, etc. when transmitted in the crystal head. The final lag amount obtained based on the signal stability point is more accurate. Further, the present invention can accurately obtain the electrical parameters of the crystal head by comparing the difference between the target electrical signal and the electrical signal to be tested, even when the input target electrical signal contains diversified information, even when facing the electrical signal to be tested with serious loss, deformation and lag. It is more accurate than the traditional methods of using oscilloscopes, bridges, and analyzing the number of zero crossings of the electrical signal to be tested relative to the target electrical signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0042] Figure 1 A flow chart of the steps of a crystal plug detection method based on electrical parameter analysis provided by an embodiment of the present invention;
[0043] Figure 2 It is a waveform of a single frequency contained in a target electrical signal;
[0044] Figure 3 is the waveform of the target electrical signal;
[0045] Figure 4 A waveform comparison diagram of the target electrical signal and the electrical signal to be measured;
[0046] Figure 5 It is a schematic diagram of the signal stability point and reference point;
[0047] Figure 6 This is a waveform comparison diagram of the target electrical signal and the electrical signal to be measured after translation. DETAILED DESCRIPTION
[0048] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a crystal head detection method based on electrical parameter analysis proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0049] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0050] The quality problems that may exist in the crystal head are quite diverse. The input signal of a single frequency can only detect the quality of the output signal at this frequency, but cannot simultaneously detect the signal transmission efficiency, signal loss, weakening, hysteresis, etc. of other frequency signals, unless multiple detections are performed, and a different frequency input signal is used each time, but in this case the detection efficiency is low. The present invention provides a crystal head detection method based on electrical parameter analysis, which uses input signals carrying multiple frequencies to detect the crystal head, and combines digital measurement and analysis technology to measure electrical parameters that can reflect the characteristics of the crystal head in signal transmission efficiency, signal loss, weakening, hysteresis, etc., thereby realizing the quality detection of the crystal head.
[0051] The following is a detailed description of a specific scheme of a crystal plug detection method based on electrical parameter analysis provided by the present invention in conjunction with the accompanying drawings.
[0052] Embodiment 1:
[0053] See also Figure 1 , which shows a flow chart of a crystal head detection method based on electrical parameter analysis provided in Embodiment 1 of the present invention, the method comprising the following steps:
[0054] Step S1: input the target electrical signal into the crystal head, and collect the electrical signal to be tested output by the crystal head.
[0055] Generate a target electrical signal, which is formed by fusing multiple single-frequency electrical signals. The single-frequency electrical signal used in this embodiment is a triangular wave signal, and other embodiments may use a square wave signal or a sine wave signal. This embodiment is not specifically limited.
[0056] In addition, a mesh pliers is used to press the core wire into the crystal plug, the target electrical signal is input as an input electrical signal into each core wire, and the electrical signal output from the metal sheet of the crystal plug is displayed on an oscilloscope, and the output electrical signal is also collected into a digital measuring instrument. The digital measuring instrument used in this embodiment includes a CPU and an alarm device, the CPU is used to perform digital analysis and electrical parameter measurement on the output electrical signal, and the alarm device reminds whether the quality of the crystal plug is qualified according to the measured electrical parameters.
[0057] In this embodiment, the output electrical signal is recorded as the electrical signal to be tested. The electrical signal to be tested and the target electrical signal contain a number of signal points, each of which corresponds to a signal value and a collection time.
[0058] Step S2: Use different filters to filter the target electrical signal and the electrical signal to be measured respectively, to obtain a filtered target electrical signal and a filtered electrical signal to be measured under each filter.
[0059] Since the target electrical signal contains more frequencies, that is, the target electrical signal contains more data information, and the waveform of the target electrical signal is complex, when the target electrical signal is transmitted in the crystal head, the quality problems that may exist in the crystal head include: the metal sheet is thin, not smooth or even oxidized, the electroplating surface is uneven, the length of the metal sheet is different, and there are problems with the conduction between the metal sheet and the gold pin of the mother seat, etc. These quality problems cause the distortion of the electrical signal to be measured, such as the distortion of signal transmission efficiency becoming low, signal loss, weakening, delay lag, etc. If the target electrical signal and the electrical signal to be measured are directly compared on the oscilloscope at this time, on the one hand, due to the complex waveform, on the other hand, the electrical signal to be measured may be seriously distorted, resulting in the inability to directly compare the difference between the two. In addition, the measurement method of the number of zero crossings of the difference signal of the target electrical signal and the electrical signal to be measured by counting the number of zero crossings cannot be applied to the above-mentioned situation of the present embodiment.
[0060] Of course, if the quality of the crystal head is qualified and the electrical signal to be tested is not distorted or the distortion is not serious, the above measurement method is still very effective. However, in order to be applicable to all possible quality problems of the crystal head, this implementation first needs to use different filters to filter the target electrical signal and the electrical signal to be tested. The reason for doing this is that if no filtering is performed, the target electrical signal and the electrical signal to be tested contain more and more complex information. After filtering, we can only focus on the changes in the electrical signal under certain low-frequency information, such as the signal loss reflected by the difference signal between the target electrical signal and the electrical signal to be tested under low-frequency information, which can roughly characterize the electrical signal transmission efficiency, signal loss, weakening, lag and other distortion conditions.
[0061] In this embodiment, different filters are used to filter the target electrical signal and the electrical signal to be tested respectively, and the filtering results of each filter are recorded as the filtered target electrical signal and the filtered electrical signal to be tested respectively.
[0062] Step S3, obtaining a number of signal loss amounts under each filter according to the hysteresis amount of the filtered electrical signal to be tested under the same filter relative to the filtered target electrical signal.
[0063] The signal loss is used to describe the transmission efficiency, signal loss and weakening of electrical signals in the crystal head. The greater the signal loss, the lower the data transmission efficiency, and the more serious the signal loss and weakening. For example, when the metal sheet of the crystal head is thin, rough or even oxidized, the electroplating surface is uneven, or even the metal sheet and the gold pins of the mother socket are poorly conductive, there will be serious signal loss and deformation, making the electrical signal (electrical signal to be measured) measured from the output end of the crystal head obviously different from the target electrical signal.
[0064] This embodiment takes into account that the target electrical signal and the electrical signal to be measured contain a lot of information and have complex waveforms, so the above-mentioned signal loss amount is obtained after filtering by a filter.
[0065] As an example, a method for obtaining the signal loss amount includes:
[0066] The filtered electrical signal to be tested and the filtered target electrical signal under the same filter are translated and aligned, and the translated filtered electrical signal to be tested is recorded as the translated electrical signal to be tested.
[0067] The translation amount in the alignment process is recorded as the hysteresis F1, that is, the filtered electrical signal to be tested is aligned with the filtered target electrical signal after translation F1; the hysteresis F1 describes the hysteresis of the electrical signal when it is transmitted in the crystal head. It should be noted that the hysteresis here only refers to the hysteresis of the electrical signal after filtering by the filter.
[0068] Furthermore, the filtered target electrical signal is subtracted from the translated electrical signal to be tested to obtain a difference signal. In other embodiments, the distortion of the translated electrical signal to be tested can be characterized by the number of zero crossings of the difference signal. This embodiment will not perform a specific analysis. In this embodiment, several signal loss amounts are obtained based on the difference signal.
[0069] The signal loss is used to describe the signal distortion of the crystal head under the filter when transmitting the electrical signal, that is, the signal distortion of the filtered electrical signal relative to the filtered target electrical signal.
[0070] Step S4: obtaining suspected signal loss points under each filter on the target electrical signal according to the difference between the target electrical signal and the electrical signal to be measured and the signal loss amount.
[0071] The signal loss amount obtained above is obtained under each filter, that is, multiple signal loss amounts are obtained under each filter. The signal loss amount describes the signal distortion of the electric signal to be tested under the filter relative to the filtered target electric signal.
[0072] In order to further analyze the signal distortion of the unfiltered electrical signal to be tested relative to the target electrical signal, this embodiment needs to estimate the possible signal distortion of the electrical signal to be tested relative to the target electrical signal based on the signal distortion under each filter. This embodiment obtains some suspected signal loss points on the target electrical signal to describe the possible signal distortion of the electrical signal to be tested relative to the target electrical signal.
[0073] As an example, according to the difference between the target electrical signal and the electrical signal to be measured and the signal loss amount, the suspected signal loss point under each filter is obtained on the target electrical signal, including:
[0074] Traverse all signal points in the electrical signal to be measured, and the signal point traversed for the i-th time is recorded as ;
[0075] On the target electrical signal, obtain The difference of the signal value belongs to all signal points in the interval [Da, D+a], denoted as The suspected matching point, D represents any signal loss amount under each filter, a represents the deviation amount, and this embodiment is described by taking a=10%×D as an example. Other embodiments may take other values, which are not specifically limited in this embodiment.
[0076] The suspected matching point describes: on the target electrical signal, All signal points with the same or similar signal loss conditions, but this same or similar signal loss condition is limited to: the loss condition represented by any signal loss amount D under each filter.
[0077] After traversing all signal points in the electrical signal to be tested, the suspected matching point of each signal point can be obtained.
[0078] According to the distribution of the suspected matching points of all the signal points in the electrical signal to be tested, the reference signal points are screened out from all the signal points of the electrical signal to be tested.
[0079] Considering that the reference signal point is a part of the signal points in the electrical signal to be measured, since the acquisition process of the above-mentioned suspected matching point is calculated based on any signal loss amount D under each filter, the reference signal point obtained here is the reference signal point corresponding to any signal loss amount under each filter;
[0080] Suspected signal loss points are screened out from suspected matching points of reference signal points corresponding to all signal loss amounts under each filter.
[0081] Step S5: determine the signal stability point according to the distribution of the suspected signal loss points under all filters, and determine the final hysteresis based on the signal stability point.
[0082] The suspected signal loss point obtained under each filter described above describes: the possible signal distortion of the measured electrical signal relative to the target electrical signal estimated based on the signal distortion under each filter. Then, this embodiment comprehensively considers the possible signal distortion of the measured electrical signal relative to the target electrical signal under all filters to determine the signal stability point, which is used to describe the signal point whose distortion does not change under different filters.
[0083] As an example, a method for obtaining a signal stability point according to suspected signal loss points under all filters includes:
[0084] For any suspected signal loss point under any filter, it is recorded as signal point A; the reference signal point corresponding to signal point A is recorded as reference point B;
[0085] If the suspected signal loss points under all other filters include signal point A, and the reference signal points of signal point A under all other filters are also reference point B, then signal point A is recorded as a signal stable point.
[0086] For example, if one of the suspected signal loss points under the first filter is signal point A, if signal point A is also the suspected signal loss point in all other filters except the first filter, and signal point A under all other filters except the first filter and signal point A under the first filter correspond to the same reference signal point (reference point B), then signal point A is recorded as a signal stability point.
[0087] Since the distortion of the signal stable point does not change under different filters, it can be known that the signal distortion of the signal stable point is not affected by the change of signal frequency, and has a certain stability when transmitted in the crystal head. It can be used to evaluate and measure the lag of the measured electrical signal relative to the target electrical signal. However, other signal points will have different distortion conditions when the filter is changed (that is, the electrical signal frequency is changed), and cannot be used to evaluate the lag of the distorted measured electrical signal relative to the target electrical signal.
[0088] The hysteresis of the measured electrical signal relative to the target electrical signal is recorded as the final hysteresis;
[0089] As an example, the final hysteresis is calculated as:
[0090] Each signal stable point corresponds to a reference signal point. The difference in sampling time between the signal stable point and the corresponding reference signal point is calculated and recorded as the time difference of each signal stable point. The average of the time differences of all signal stable points is recorded as the final lag F2.
[0091] The difference in this embodiment refers to the absolute value of the difference.
[0092] Step S6, shifting the measured electrical signal according to the final hysteresis, determining the electrical parameters of the crystal plug according to the difference between the measured electrical signal after the shift and the target electrical signal and the final hysteresis, and checking the quality of the crystal plug according to the electrical parameters.
[0093] The electrical signal to be tested is shifted to the left by F2 to obtain the final electrical signal to be tested.
[0094] The final difference signal is obtained by subtracting the final measured electrical signal from the target electrical signal, and the variance and final hysteresis of the final difference signal are respectively used as the electrical parameters of the crystal head; the variance of the final difference signal represents the signal difference between the final measured electrical signal and the target electrical signal, and is used to describe the signal transmission efficiency, signal loss, and weakening of all frequency bands in the process of the crystal head transmitting electrical signals; the final hysteresis describes the hysteresis and delay of electrical signals in all frequency bands in the process of the crystal head transmitting electrical signals.
[0095] When all electrical parameters of the crystal plug are greater than the electrical parameter threshold, the quality of the crystal plug is qualified, otherwise it is unqualified.
[0096] It should be noted that the signal values of all signal points in this embodiment are linearly normalized to eliminate the impact of dimensions and magnitudes in different embodiments. The electrical parameter thresholds in this embodiment are 0.45 and 25 milliseconds, respectively. Other electrical parameter thresholds may be set in other embodiments, and this embodiment does not specifically limit them.
[0097] When the product fails to meet the standards, the alarm device will sound an alarm. In this embodiment, an alarm voice is emitted. In other embodiments, an alarm indication can be given by lighting a red LED.
[0098] At this point, this embodiment is completed.
[0099] Embodiment 2:
[0100] The filter used in this embodiment is a mean filter, and there are 8 mean filters in total, and the filter kernel lengths of the filters are respectively: 3, 5, ..., 17. In other embodiments, other filter types and filter quantities may be set, and this embodiment does not specifically limit them.
[0101] In this implementation, as an example, the filtered electrical signal to be tested and the filtered target electrical signal under the same filter are shifted and aligned, including the following method:
[0102] For the filtered target electrical signal and the filtered electrical signal to be tested under the same filter, the filtered electrical signal to be tested is translated, one unit at a time, and the matching value is calculated between the filtered electrical signal to be tested and the filtered target electrical signal after each translation. When the matching value is the largest, the unit amount of the translation is recorded and recorded as the hysteresis F1. It should be noted that the hysteresis F1 needs to be rounded off after it is obtained, and similarly, the final hysteresis F2 also needs to be rounded off after it is obtained.
[0103] As an example, the matching value is equal to the Pearson correlation coefficient between the translated filtered electrical signal to be tested and the filtered target electrical signal.
[0104] In this embodiment, as an example, a method for obtaining a plurality of signal loss amounts according to the difference signal includes:
[0105] K-Means clustering is performed on the signal values in the difference signal to obtain three difference signal clusters, and the average value of all signal values in each difference signal cluster is taken as the signal loss amount.
[0106] Before obtaining the signal loss amount, this embodiment divides the signal values in the difference signal into three difference signal clusters. The signal values in the three difference signal clusters are respectively large, small, and neither large nor small, so as to simply and conveniently summarize the approximate distribution of the difference signal.
[0107] In this embodiment, after obtaining the suspected matching point of each signal point in the electrical signal to be tested, it also includes: for the suspected matching point of each signal point, when the difference between the acquisition time of the signal point and the acquisition time of the suspected matching point is greater than 10 time units, the suspected matching point is eliminated (it should be noted that elimination does not mean deleting it from the electrical signal to be tested, but that it is no longer regarded as a suspected matching point).
[0108] In this embodiment, as an example, reference signal points are screened out from all signal points of the electrical signal to be tested according to the distribution of suspected matching points of all signal points in the electrical signal to be tested.
[0109] For any two signal points in the electrical signal to be measured, when the intersection-and-union ratio between the suspected matching points of the two signal points is greater than 0.4, the two signal points are not used as reference signal points, otherwise, both are used as reference signal points.
[0110] The larger the intersection-and-union ratio of the suspected matching points of the two signal points is, the more overlapped the suspected matching points of the two signal points are, otherwise the less overlapped the suspected matching points of the two signal points are.
[0111] The reason why a part of reference signal points are screened out from all the signals of the electrical signal to be tested in this embodiment is that: when there are too many overlaps between the suspected matching points of any two signal points, it means that: there are some signal points concentrated on the target electrical signal and have the same or similar signal loss as these two signal points, which means that these two signals are more likely to bring larger analysis errors under the filter and cannot be used for subsequent processing. If there are not too many overlapping signal points between the suspected matching points, the distribution of the suspected matching points can be consistent with the distribution of each part in the electrical signal to be tested as a whole, and will not cause error problems caused by collective distortion of local signals. These signal points are screened out as reference signal points to ensure the accuracy of subsequent analysis.
[0112] In this embodiment, as an example, the suspected signal loss points are screened out from the suspected matching points of the reference signal points corresponding to all signal loss amounts under each filter, including:
[0113] Any reference signal point corresponding to any signal loss amount is recorded as the target reference signal point; if the reference signal points corresponding to other signal loss amounts include the target reference signal point, the target reference signal point is eliminated; and the suspected matching points of the reference signal remaining after elimination are recorded as suspected signal loss points.
[0114] For example, any reference signal point corresponding to the first signal loss amount is recorded as the target reference signal point. If the target reference signal point is also the reference signal point of the second, third or other signal loss amounts, then it means that multiple loss situations occur at the same target reference signal point at the same time, indicating that the target reference signal point has no meaning for analysis.
[0115] Embodiment three:
[0116] This embodiment provides an optional method for obtaining suspected signal loss points under each filter on the target electrical signal according to the difference between the target electrical signal and the electrical signal to be measured and the signal loss amount, which specifically includes:
[0117] The DTW algorithm is used to match the signal points on the target electrical signal and the electrical signal to be tested to obtain a number of matching points. In this embodiment, only the matching points whose signal value difference is equal to the signal loss amount or is in the interval [Da, D+a] are screened out. For any group of matching points among the screened out matching points, the group of matching points is also a pair of signal points, among which the signal points on the target electrical signal are recorded as suspected signal loss points, and the signal points on the electrical signal to be tested are reference signal points.
[0118] This method of obtaining the suspected signal loss point under each filter is simple and quick, and is used to more quickly detect the quality of the crystal head, but the accuracy of the detection result is not required to be high.
[0119] Embodiment 4:
[0120] In this embodiment, the single frequency electrical signal is a triangular wave signal. The target electrical signal includes 12 triangular wave signals, of which 6 triangular wave signals are as follows: Figure 2 As shown; in this embodiment, the horizontal axis of the waveform is the acquisition time, one millisecond is one unit, and the vertical axis is the signal value, one volt is one unit (ie, the vertical axis is voltage).
[0121] It should be noted that in addition to the different frequencies of each triangular wave in this embodiment, the shapes of the triangular waves are also different. The purpose is to allow the target electrical signal to contain more information, so as to facilitate the analysis of the signal attenuation and weakening of various information when transmitted in the crystal head. If the information contained is less, it cannot fully characterize the data transmission quality of the crystal head. In addition, the minimum signal value (voltage value) of each triangular wave in this embodiment is different. The purpose is to take into account that the crystal head has different tolerances to different voltages applied to it. Therefore, the minimum voltage and voltage amplitude of the triangular wave are also different, so that the information generalization ability of the target electrical signal is stronger.
[0122] Finally, the target electrical signal formed by superposition of all triangular wave signals is as follows: Figure 3 As described above, the coordinate table is the acquisition time, and the vertical axis is the voltage.
[0123] In other embodiments, more triangle waves with richer information can be superimposed to ensure that the superimposed target electrical signal contains more information, so as to accurately analyze the signal transmission quality of the crystal head. Of course, if the signal transmission quality of the crystal head is only roughly detected and the performance requirements of the crystal head product are not high, it is not necessary to superimpose a large number of triangle waves.
[0124] In addition, in other embodiments, the triangular wave may be replaced by a square wave signal with a different frequency, a different pulse width, and a different amplitude.
[0125] In this embodiment, the electrical signal to be tested output by the crystal head is as follows: Figure 4 , Figure 4 The waveform comparison results of the target electrical signal and the electrical signal to be measured are shown in FIG. Figure 4 By comparison, Figure 4 The electrical signal to be tested contains more and more obvious triangular waveform information. Compared with the target electrical signal, the electrical signal to be tested loses a lot of information.
[0126] In this embodiment, the signal stability points and their corresponding reference signal points are marked, such as Figure 5 As shown (the dots connected by a straight line are a pair of signal stable points and reference signal points); Figure 5 From the signal stability point and reference signal point marked in the figure, it can be seen that the measured electrical signal has obvious delay lag. Figure 5The dot marked on the electrical signal to be tested is the reference signal point, and the dot marked on the target electrical signal is the signal stability point.
[0127] The comparison between the measured electrical signal and the target electrical signal after translation is as follows: Figure 6 ,Depend on Figure 6 It can be clearly seen that the waveform at some locations has obvious loss, causing the electrical signal to be measured to be closer to a triangular waveform signal.
[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A crystal head detection method based on electrical parameter analysis, It is characterized in that The method comprises the following steps: Inputting a target electrical signal into a crystal head and collecting the electrical signal to be tested output by the crystal head, wherein the target electrical signal is composed of a plurality of electrical signals of a single frequency; Using different filters to filter the target electrical signal and the electrical signal to be tested respectively, to obtain a filtered target electrical signal and a filtered electrical signal to be tested under each filter; According to the hysteresis of the filtered electrical signal to be tested under the same filter relative to the filtered target electrical signal, a number of signal loss amounts under each filter are obtained; Obtaining suspected signal loss points under each filter on the target electrical signal according to the difference between the target electrical signal and the electrical signal to be measured and the signal loss amount; Determine the signal stability point according to the distribution of suspected signal loss points under all filters, determine the final hysteresis based on the signal stability point, translate the electrical signal to be tested according to the final hysteresis, determine the electrical parameters of the crystal head according to the difference between the electrical signal to be tested and the target electrical signal after translation and the final hysteresis, and detect the quality of the crystal head according to the electrical parameters; The specific steps for obtaining the suspected signal loss point are as follows: The electrical signal to be measured and the target electrical signal include a number of signal points, each of which corresponds to a signal value and a collection time; Traverse all signal points in the electrical signal to be measured, and the signal point traversed for the i-th time is recorded as ; On the target electrical signal, obtain The difference of the signal value belongs to all signal points in the interval [Da, D+a], denoted as The suspected matching point, D represents any signal loss under each filter, and a represents the preset deviation; According to the distribution of suspected matching points of all signal points in the electrical signal to be tested, a reference signal point is screened out from all signal points of the electrical signal to be tested, wherein the reference signal point is a reference signal point corresponding to any signal loss amount under each filter; Screening out suspected signal loss points from suspected matching points of reference signal points corresponding to all signal loss amounts under each filter; The specific steps of obtaining the reference signal point are as follows: For any two signal points in the electrical signal to be measured, when the intersection-and-union ratio between the suspected matching points of the two signal points is greater than a preset first threshold, the two signal points are not used as reference signal points, otherwise, both are used as reference signal points; The specific steps of screening out suspected signal loss points from the suspected matching points of the reference signal points corresponding to all signal loss amounts under each filter are as follows: Record any reference signal point corresponding to any signal loss amount as a target reference signal point; If the reference signal points corresponding to the other signal loss amounts other than the arbitrary signal loss amount include the target reference signal point, the target reference signal point is removed; and the suspected matching points of the reference signal remaining after the removal are recorded as suspected signal loss points; The specific steps for obtaining the hysteresis are as follows: For the filtered target electrical signal and the filtered electrical signal to be tested under the same filter, the filtered electrical signal to be tested is translated, one unit at a time, and the matching value is calculated between the filtered electrical signal to be tested and the filtered target electrical signal after each translation. When the matching value is the largest, the unit amount of the translation is recorded as the hysteresis amount.
2. According to the crystal plug detection method based on electrical parameter analysis as claimed in claim 1, It is characterized in that The specific steps for obtaining the signal loss amount are as follows: The electrical signal to be measured is translated by F1 to obtain the translated electrical signal to be measured, where F1 represents the hysteresis; The target electrical signal is subtracted from the translated electrical signal to obtain a difference signal, and the signal values in the difference signal are clustered to obtain several difference signal clusters. The average value of all signal values in each difference signal cluster is taken as the signal loss amount.
3. According to the crystal plug detection method based on electrical parameter analysis as claimed in claim 1, It is characterized in that The specific steps of determining the signal stability point according to the distribution of the suspected signal loss points under all filters are as follows: For any suspected signal loss point under any filter, it is recorded as signal point A; the reference signal point corresponding to signal point A is recorded as reference point B; If the suspected signal loss points under all filters other than any one filter include signal point A, and the reference signal points of signal point A under all other filters are also reference point B, signal point A is recorded as a signal stability point.
4. According to the crystal plug detection method based on electrical parameter analysis as claimed in claim 3, It is characterized in that The specific steps of determining the final hysteresis based on the signal stability point are as follows: Each of the signal stable points corresponds to a reference signal point, and the difference in sampling time between the signal stable point and the corresponding reference signal point is calculated and recorded as the time difference of each signal stable point, and the average of the time differences of all signal stable points is recorded as the final lag.
5. According to the crystal plug detection method based on electrical parameter analysis as claimed in claim 1, It is characterized in that The method of translating the measured electrical signal according to the final hysteresis, determining the electrical parameters of the crystal head according to the difference between the measured electrical signal after translation and the target electrical signal and the final hysteresis, and detecting the quality of the crystal head according to the electrical parameters includes the following specific steps: The electrical signal to be measured is shifted by F2 to obtain the final electrical signal to be measured, where F2 represents the final hysteresis; The final difference signal is obtained by subtracting the final measured electrical signal from the target electrical signal, and the variance and final hysteresis of the final difference signal are respectively used as electrical parameters of the crystal head; When all electrical parameters of the crystal plug are greater than the preset electrical parameter threshold, the quality of the crystal plug is qualified, otherwise it is unqualified.
6. According to the crystal plug detection method based on electrical parameter analysis as claimed in claim 1, It is characterized in that The matching value is equal to the Pearson correlation coefficient between the translated filtered electrical signal to be tested and the filtered target electrical signal.
