S parameter processing method and device of high-speed link and electronic equipment
By analyzing the changes in the interpolation loss value in the S parameter file, the port direction of the high-speed link is automatically judged, which solves the problems of complex and low efficiency in the existing technology, and realizes fast and convenient S parameter analysis and crosstalk viewing.
Patent Information
- Application Number
- CN202310589115.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, the S parameter analysis operation of high-speed links is complicated and the port orientation cannot be quickly judged, resulting in low analysis efficiency. Especially when there are many high-speed links or response lines change, crosstalk cannot be quickly viewed.
By analyzing the obtained S parameter file, the insertion loss value of the high-speed link changes with frequency, the port pointing status is judged based on the insertion loss curve, and the port pointing status is automatically judged, and an analysis report is generated to display the analysis results.
It improves the efficiency of S parameter analysis of high-speed links, simplifies port pointing judgment, saves analysis time and cost, improves analysis convenience, and can quickly view the crosstalk situation of any high-speed link.
Smart Images

Figure CN119011045A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of S parameter processing, and in particular to an S parameter processing method, device and electronic equipment for a high-speed link. Background Art
[0002] S parameters, or scattering parameters, are an important parameter in microwave transmission. S parameters are often used to analyze the quality of high-speed links, but if you want to use S parameters correctly to analyze high-speed links, you need to first clarify the port direction of the S parameters.
[0003] However, many S parameters do not have clear instructions for port orientation. Most S parameter analysis methods use S parameters to perform trial and error to clarify the port orientation of the S parameters, which makes the S parameter analysis operation complicated.
[0004] In addition, when analyzing the S parameters, the crosstalk of the high-speed link is often determined based on the S parameters. In the related crosstalk analysis methods, a large number of calculation formulas are set in commercial software or other tools to determine the crosstalk of the high-speed link by calculation. However, when there are many high-speed links, or when the response line is replaced, the calculation formula can only be reset, and it is impossible to quickly check the crosstalk of any high-speed link. Therefore, the analysis operation of the high-speed link S parameters analyzed in the above manner is relatively cumbersome, resulting in low analysis efficiency. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, the present invention provides an S parameter processing method, device and electronic device for a high-speed link to improve the analysis efficiency of the S parameter analysis of the high-speed link and enhance the convenience of the S parameter analysis.
[0006] The present invention provides an S parameter processing method for a high-speed link, comprising:
[0007] Analyze the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link;
[0008] Determine insertion loss values of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determine changes of the insertion loss values with the frequencies based on the insertion loss values corresponding to the frequencies;
[0009] The port pointing state of the high-speed link is determined based on the variation of the insertion loss value of the high-speed link with the frequency, and the port pointing state includes a correct port pointing or an incorrect port pointing.
[0010] In some achievable embodiments, determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency includes: determining an insertion loss curve corresponding to the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency; and determining that the port pointing state of the high-speed link is that the port pointing is correct when the insertion loss curve satisfies a first preset condition; the first preset condition includes that an insertion loss difference between an extreme value and an adjacent insertion loss value in the insertion loss curve is less than a preset difference, a monotonic trend of the insertion loss curve is a preset monotonic trend, a difference between a minimum value and a last insertion loss value in the insertion loss curve is within a preset range, and a difference between a frequency corresponding to the minimum value and a frequency corresponding to the last insertion loss value is less than a preset frequency difference.
[0011] In some achievable embodiments, determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency includes: determining the insertion loss curve corresponding to the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency; determining the port pointing state of the high-speed link as correct port pointing when the insertion loss curve satisfies a second preset condition; the second preset condition includes that the insertion loss difference between the extreme value and the adjacent insertion loss value in the insertion loss curve is less than a preset difference, the monotonic trend of the insertion loss curve between the adjacent first target extreme value and the second target extreme value in the insertion loss curve is a preset monotonic trend, the difference between the minimum value and the last insertion loss value in the insertion loss curve is within a preset range, and the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than a preset frequency difference; wherein the first target extreme value is a maximum value in the insertion loss curve where the insertion loss difference between the adjacent minimum value and the insertion loss curve is greater than a preset insertion loss difference, and the second target extreme value is a minimum value in the insertion loss curve where the insertion loss difference between the adjacent maximum value and the insertion loss curve is greater than a preset insertion loss difference.
[0012] In some achievable embodiments, after determining that the port pointing state of the high-speed link is that the port pointing is correct, the method further includes: for any high-speed link, determining at least one target result data according to the S parameters corresponding to the high-speed link, the target result data being used to characterize the loss of the high-speed link; determining a corresponding target curve graph according to each target result data, and generating an analysis report according to each target result data and the corresponding target curve graph, the analysis report being used to display the analysis results of the S parameters of each high-speed link.
[0013] In some achievable embodiments, the target result data includes a first total crosstalk loss, and the determining of at least one target result data according to the S parameters corresponding to the high-speed links includes: in a case where the number of the high-speed links is determined to be at least two groups according to the S parameters corresponding to the high-speed links, determining a response link in response to a user's selection operation, the response link being a group of high-speed links selected by the user from at least two groups of the high-speed links; obtaining a first crosstalk file of at least one of the response links, the first crosstalk file including a crosstalk S parameter of a first crosstalk link crosstalking the response link, the first crosstalk link being the remaining high-speed links in at least two groups of the high-speed links excluding the response link; for any first crosstalk link, determining a first sub-crosstalk loss of the response link according to the crosstalk S parameters corresponding to the first crosstalk link; and determining a first total crosstalk loss of the response link according to each of the first sub-crosstalk losses.
[0014] In some implementable embodiments, the target result data includes a second total crosstalk loss, and determining at least one target result data according to the S parameters corresponding to the high-speed link includes: when the number of the high-speed links is determined as a group according to the S parameters corresponding to the high-speed links, obtaining a second crosstalk file corresponding to at least one of the high-speed links, the second crosstalk file including a crosstalk S parameter of a second crosstalk link crosstalking the high-speed link; wherein the second crosstalk link is a link around the high-speed link that crosstalks the high-speed link; for any second crosstalk link, determining the second sub-crosstalk loss of the high-speed link according to the crosstalk S parameters corresponding to the second crosstalk link; and determining the second total crosstalk loss of the high-speed link according to each of the second sub-crosstalk losses.
[0015] In some achievable embodiments, after determining the corresponding target curve graph according to each target result data, the method further includes: presetting multiple display areas according to the number of the target curve graphs; displaying the target curve graphs in the display areas, with different display areas being used to display different target curve graphs; determining a zoom factor and zoom center point coordinate data in response to the user's zooming operation on the target curve graph; determining a zoomed target curve graph according to the zoom factor, the zoom center point coordinate data and the coordinate data of the target curve graph; and displaying the zoomed target curve graph in the corresponding display area.
[0016] In some implementable embodiments, after analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link, the method also includes: pre-storing the S parameters corresponding to each of the high-speed links in the form of a list; converting the S parameters corresponding to each of the high-speed links pre-stored in the form of a list into at least one parameter matrix, different parameter matrices including a set of S parameters corresponding to the high-speed link at different frequencies; determining the insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link includes: determining the insertion loss curve corresponding to the high-speed link according to the parameter matrix corresponding to the S parameters.
[0017] The present invention also provides an S parameter processing device for a high-speed link, comprising: an acquisition module, used to analyze the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link; a determination module, used to determine the insertion loss value of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determine the change of the insertion loss value with the frequency based on the insertion loss value corresponding to each of the frequencies; a port pointing judgment module, used to determine the port pointing state of the high-speed link based on the change of the insertion loss value of the high-speed link with the frequency, and the port pointing state includes correct port pointing or wrong port pointing.
[0018] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the S parameter processing method for the high-speed link as described above is implemented.
[0019] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the S parameter processing method for a high-speed link as described in any one of the above is implemented.
[0020] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned S parameter processing methods for high-speed links.
[0021] The S parameter processing method, device and electronic device of the high-speed link provided by the present invention obtain at least one set of S parameters corresponding to the high-speed link by analyzing the acquired S parameter file; then determine the insertion loss value of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determine the variation of the insertion loss value with frequency based on the insertion loss value corresponding to each frequency. According to the variation of the insertion loss value with frequency, it is possible to determine whether the port pointing of the high-speed link is correct, thereby realizing automatic judgment of the port pointing, saving the time cost of S parameter analysis, improving the analysis efficiency of S parameter analysis of the high-speed link, and enhancing the convenience of S parameter analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0023] Figure 1 is a structural schematic diagram of an S parameter processing system for a high-speed link according to an embodiment of the present invention;
[0024] Figure 2 This is one of the flow charts of the S parameter processing method of the high-speed link according to an embodiment of the present invention;
[0025] Figure 3 is one of the schematic diagrams of a high-speed link port of a specific example of the present invention;
[0026] Figure 4 is a schematic diagram of an insertion loss curve of an embodiment of the present invention;
[0027] Figure 5 This is a second flowchart of the S parameter processing method of the high-speed link according to an embodiment of the present invention;
[0028] Figure 6 This is a third flowchart of the S parameter processing method of the high-speed link according to an embodiment of the present invention;
[0029] Figure 7 is a schematic diagram of a user interface of a specific example of the present invention;
[0030] Figure 8 This is a fourth flow chart of the S parameter processing method of the high-speed link according to an embodiment of the present invention;
[0031] Fig. 9 is a second schematic diagram of a high-speed link port according to a specific example of the present invention;
[0032] Fig.10 This is a fifth flow chart of the S parameter processing method of the high-speed link according to an embodiment of the present invention;
[0033] Fig.11 is a block diagram of an S parameter processing device for a high-speed link according to an embodiment of the present invention;
[0034] Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] A high-speed link refers to a communication link with a high transmission rate. In the current high-speed link design, most people choose to use differential lines as the transmission lines of the high-speed link. A high-speed link is generally composed of a pair of differential lines. Accordingly, a high-speed link will include four ports. The information carried on a pair of differential lines is the same, but the phase difference of the transmitted signals is 180°. Therefore, the electromagnetic fields generated by a pair of differential lines cancel each other out, reducing the generation of radiation.
[0037] S parameters are scattering parameters. S parameters describe the frequency domain characteristics of the transmission channel. When performing high-speed link analysis, obtaining the S parameters of the high-speed link transmission channel is a very important step. By analyzing the S parameters, almost all frequency domain characteristics of the high-speed link transmission channel can be obtained. For example, signal reflection, crosstalk, loss, etc. can be analyzed from the S parameters. However, before analyzing the S parameters, it is necessary to first clarify the port direction corresponding to the S parameters before analyzing the S parameters based on the port direction. Here, it should be noted that clarifying the port direction determines whether the S parameters can be used correctly.
[0038] In the S parameter analysis technology, most of them are analyzed by commercial software or other tools. At present, the existing commercial software or other tools do not have the ability to judge the port directivity, so when analyzing the S parameters, it is necessary to use S parameters for continuous trial and error to obtain the final required S parameter analysis results.
[0039] In addition, when analyzing the S parameters, the crosstalk of the high-speed link is often determined based on the S parameters. In the related crosstalk analysis methods, a large number of calculation formulas are mainly set in commercial software or other tools to determine the crosstalk of the high-speed link by calculation. However, in the case of a large number of high-speed links, the calculation formula can only be reset and the crosstalk of the high-speed link can be determined, and it is impossible to quickly check the crosstalk of any high-speed link. Therefore, the analysis operation of the high-speed link S parameters analyzed in the above manner is relatively cumbersome, resulting in low analysis efficiency.
[0040] To this end, the embodiments of the present invention provide an S parameter processing method, device and electronic device for a high-speed link to automatically determine the correct port direction of the S parameter, solve the problem of complex and inflexible analysis operation in existing crosstalk analysis solutions, thereby improving the analysis efficiency of the high-speed link S parameter analysis and enhancing the convenience of S parameter analysis.
[0041] For ease of understanding, the S parameter processing system for a high-speed link according to an embodiment of the present invention is first introduced in detail below. Figure 1 It is a structural schematic diagram of an S parameter processing system for a high-speed link according to an embodiment of the present invention.
[0042] like Figure 1 As shown, the S parameter processing system of the high-speed link may include a user end 110 and a server end 120, and the user end 110 and the server end 120 may establish a communication connection through the Internet.
[0043] After the high-speed link is detected and the S parameter file is obtained, the S parameter file is analyzed by the processor of the server end 120 to obtain at least one set of S parameters corresponding to the high-speed link, and the memory of the server end 120 can store the S parameters. The processor of the server end 120 then determines the insertion loss curve corresponding to the high-speed link based on the S parameters corresponding to the high-speed link, and determines whether the port pointing of the high-speed link is correct based on the insertion loss curve. When the processor of the server end 120 determines that the port pointing of the high-speed link is correct, the processor of the server end 120 analyzes the S parameters again to obtain the analysis results related to the high-speed link and the frequency domain characteristics. The processor of the server end 120 can send the analysis results to the display of the user end 110, and the display of the user end 110 displays the analysis results of the S parameters to the user.
[0044] The user terminal 110 may include (but is not limited to): mobile terminals such as mobile phones, laptop computers, PADs (tablet computers), etc., and fixed terminals such as digital TVs, desktop computers, etc.
[0045] With reference to the structure of the S parameter processing system for the high-speed link in the aforementioned embodiment, the S parameter processing method for the high-speed link in the embodiment of the present invention is described in detail below.
[0046] Figure 2 FIG. 1 is one of the flow charts of the S parameter processing method of the high-speed link according to the embodiment of the present invention. Figure 2 As shown, the S parameter processing method may include the following steps:
[0047] Step 210: Analyze the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link.
[0048] Step 220: Determine insertion loss values of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determine how the insertion loss value varies with frequency based on the insertion loss value corresponding to each frequency.
[0049] Step 230: Determine the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency, where the port pointing state includes correct port pointing or incorrect port pointing.
[0050] In this embodiment, the S parameter file is a text containing a large amount of data obtained after testing the transmission process of the high-speed link at different frequencies. The S parameter file usually contains configuration item data when obtaining the S parameters and a large amount of S parameter data, wherein the configuration items may include (but are not limited to): the frequency used when testing the high-speed link, the format of the S parameter file, and the resistance information of the high-speed link, etc. In addition, the S parameters in the S parameter file are the S parameters corresponding to each port of each high-speed link at different frequencies.
[0051] After obtaining the S parameter file, the S parameter file can be imported into the server side, and then the processor of the server side extracts and analyzes the S parameter file to obtain one or more sets of S parameters corresponding to the high-speed link. Specifically, after the S parameter file is imported into the server side, the processor of the server side loops through the imported S parameter file, thereby extracting and pre-storing the relevant data (e.g., configuration items, S parameters, etc.) in the S parameter file. While traversing the imported S parameter file, the spaces in the S parameter file can be deleted to reduce the amount of data processing.
[0052] The method of pre-storing the relevant data in the S parameter file can be: first pre-storing the relevant data in the S parameter file in the form of a list. However, if all relevant data are stored in one list, the process of retrieving the required S parameters during subsequent S parameter analysis will be more complicated.
[0053] Therefore, in this embodiment, after the relevant data in the S parameter file is pre-stored in the form of a list, the pre-stored relevant data can be separated according to type, and the separated relevant data can be stored in the memory of the server. As an example, the S parameters pre-stored in the form of a list can be converted into several S parameter arrays, and each array can be defined as: a group of S parameters corresponding to a high-speed link at a frequency. In this way, the S parameters can be stored separately according to frequency and high-speed link, simplifying the subsequent steps of retrieving the required S parameters.
[0054] In this embodiment, after obtaining the S parameters corresponding to each group of high-speed links, the S parameters of any group of high-speed links can be used to determine the correct port orientation. If the port orientation of the high-speed link is correct, it is considered that the port orientations of the remaining groups of high-speed links are also correct.
[0055] It is understandable that a high-speed link is usually a pair of differential lines, that is, four ports, each of which will be set with a corresponding label. The label set for each port is uncertain, so it is difficult to determine which port is the output port and which port is the input port. If the port pointing is not clear, the S parameters cannot be correctly analyzed later.
[0056] Figure 3 FIG. 1 is one of the schematic diagrams of a high-speed link port of a specific example of the present invention. Figure 3 As shown, as an example, the input port number of the first differential line in the high-speed link 1 can be 1, and the output port number can be 2; the input port number of the second differential line in the high-speed link can be 3, and the output port number can be 4, then the port directions of the high-speed link can be 1-2, 3-4. As another example, the input port number of the first differential line in the high-speed link 2 can be 1, and the output port number can be 3; the input port number of the second differential line in the high-speed link can be 2, and the output port number can be 4, then the port directions of the high-speed link can be 1-3, 2-4.
[0057] Specifically, the insertion loss of the high-speed link at different frequencies can be calculated based on any set of S parameters corresponding to the high-speed link, and then the correct port orientation of the high-speed link can be determined based on the correspondence between frequency and insertion loss. It should be noted that insertion loss refers to the ratio of the output optical power of the output port of the high-speed link to the input optical power of the input port. Insertion loss is used to describe the transmission loss of the high-speed link, and its characteristic is that it gradually attenuates with the increase of frequency. Therefore, the correct port orientation of the high-speed link can be determined by the changes in the insertion loss curve.
[0058] The method for determining the correct port pointing of a high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency can be: first, retrieve the S parameters belonging to the same port pointing at different frequencies from the memory on the server side, and use the S parameters to calculate the insertion loss corresponding to each frequency for different frequencies. Finally, determine whether the variation of the insertion loss value with the frequency is consistent with: the variation of the insertion loss value corresponding to the correct port pointing with the frequency. If it is consistent, the port pointing state is that the port pointing is correct. If it is not consistent, the port pointing state is that the port pointing is wrong. At this time, replace the new port pointing, and retrieve the S parameters corresponding to the new port pointing from the memory on the server side, and repeat the above operation to determine whether the replaced port pointing is correct. Based on the possible port pointing, analyze them one by one until the correct port pointing is found.
[0059] Therefore, by analyzing the change of insertion loss value with frequency, it is possible to determine whether the port pointing is correct, so that the correct port pointing can be found, and automatic judgment of port pointing is realized, which saves the time cost of S parameter analysis, improves the analysis efficiency of high-speed link S parameter analysis, and enhances the convenience of S parameter analysis.
[0060] In the embodiment of the present invention, two port direction determination methods are specifically provided. The following first introduces the two port direction determination methods in detail.
[0061] In some embodiments, determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency in step 230 includes: determining the insertion loss curve corresponding to the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency; and determining that the port pointing state of the high-speed link is correct port pointing when the insertion loss curve satisfies the first preset condition. The first preset condition includes that the insertion loss difference between the extreme value and the adjacent insertion loss value in the insertion loss curve is less than the preset difference, the monotonic trend of the insertion loss curve is the preset monotonic trend, the difference between the minimum value and the last insertion loss value in the insertion loss curve is within the preset range, and the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than the preset frequency difference.
[0062] The insertion loss curve can be obtained by first retrieving the S parameters belonging to the same port pointing to different frequencies from the memory of the server, and using the S parameters to calculate the insertion loss corresponding to each frequency for different frequencies, and finally, based on the corresponding relationship between the insertion loss and the frequency, the insertion loss curve corresponding to the port pointing is obtained. After obtaining the insertion loss curve corresponding to the port pointing, it is determined whether the change of the insertion loss curve meets the change of the insertion loss curve corresponding to the correct port pointing.
[0063] It is understandable that since the insertion loss gradually decays with the increase of frequency, returning to the coordinate system, if the X-axis is the frequency and the Y-axis is the insertion loss value, the Y-axis value will gradually decrease as the X-axis coordinate value increases. In addition, the insertion loss curve corresponding to the correct port pointing changes relatively slowly, so the port pointing can also be determined from the fluctuation of the insertion loss curve.
[0064] Figure 4 Schematic diagram of the insertion loss curve of the embodiment of the present invention. Figure 4 As shown, the insertion loss curve contains two curves, Curve 1 is the insertion loss curve corresponding to the correct port pointing, and Curve 2 is the insertion loss curve corresponding to the incorrect port pointing. Figure 4 It can be seen that there is a clear difference between the insertion loss curve corresponding to the correct port pointing and the insertion loss curve corresponding to the incorrect port pointing.
[0065] After obtaining the insertion loss curve, the fluctuation of the insertion loss curve can be judged first, that is, whether the insertion loss difference between the extreme value and the adjacent insertion loss value in the insertion loss curve is less than the preset difference. It should be noted that the extreme value includes the maximum value and the minimum value.
[0066] Specifically, first determine the maximum and minimum values in the insertion loss curve. Due to the particularity of the insertion loss curve, the overall trend is downward. Therefore, the minimum point will appear first in the insertion loss curve, and then the maximum point, and the minimum point and the maximum point are equal in number or one data point different. After obtaining the maximum and minimum values in the insertion loss curve, calculate the insertion loss difference between the extreme value and the adjacent insertion loss value. Here, the insertion loss difference between the extreme value and the multiple insertion loss values before and after it can be calculated separately. Then determine whether each insertion loss difference is less than the preset difference. If each insertion loss difference is less than the preset difference, it indicates that the change of the insertion loss curve is relatively gentle, and the next step of judgment can be entered. If there is an insertion loss difference greater than or equal to the preset difference, it indicates that the change amplitude of the insertion loss curve is large, and the port direction can be directly replaced.
[0067] It should be noted that the preset difference can be set by the staff according to actual needs and is not specifically limited here.
[0068] As an example, the preset difference can be set to 5db, and 15 data points (i.e., insertion loss values) before and after the extreme value can be selected for judgment. If the insertion loss difference between each extreme value and the 15 insertion loss values before and after it is less than 5db, the next step of judgment is entered. If the insertion loss difference between some or all extreme values and the 15 insertion loss values before and after it is greater than 5db, the port direction is changed.
[0069] As another example, if the preset difference can be set to 5db, the three smallest minimum points among the extreme values can be selected to calculate the insertion loss difference between these three minimum points and the 15 insertion loss values before and after them. If the insertion loss difference corresponding to these three minimum points is less than 5db, the next step of judgment is entered. If there is a case where the insertion loss difference is greater than 5db, the port direction is changed. This reduces the amount of calculation and improves the efficiency of judging the port direction.
[0070] When the extreme value in the insertion loss curve and the insertion loss difference between adjacent insertion loss values are both less than the preset difference, it is determined whether the monotonic trend of the insertion loss curve is the preset monotonic trend. It should be noted that the preset monotonic trend is that the insertion loss value shows a decreasing trend with increasing frequency.
[0071] Specifically, the insertion loss curve can be fitted using functions such as Numpy.convolve to achieve smooth filtering of the insertion loss curve, filter out non-monotonic points in the insertion loss curve, and then determine whether the entire insertion loss curve is monotonic and whether the monotonic trend is consistent with the insertion loss change trend. If the insertion loss curve is monotonic and the monotonic trend is consistent with the insertion loss change trend, proceed to the next step of determination. If the insertion loss curve is not monotonic, or the monotonic trend is inconsistent with the insertion loss change trend, the port direction is changed.
[0072] The method for judging whether the insertion loss curve is monotonic can be: image observation method, that is, directly observing the insertion loss curve to determine whether the insertion loss curve is monotonic, and at the same time, it can also be directly determined whether the insertion loss curve shows a monotonic downward trend. The method for judging whether the insertion loss curve is monotonic can also be: using the derivative method to judge whether the insertion loss curve is monotonic, and it can be determined whether the insertion loss curve shows a monotonic downward trend. In addition, other existing judgment methods can also be used to judge the monotonicity of the insertion loss curve, and the judgment method is not specifically limited here.
[0073] When the monotonic trend of the insertion loss curve is the preset monotonic trend, it is then determined that the difference between the minimum value and the last insertion loss value in the insertion loss curve is within the preset range, and the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than the preset frequency difference. It should be noted that the preset range and the preset frequency difference can be set by the staff according to actual needs, and are not specifically limited here.
[0074] Specifically, first determine the minimum value in the insertion loss curve, then calculate the difference between the minimum value and the last insertion loss value of the insertion loss curve, and determine whether the difference is within a preset range. At the same time, it is also necessary to calculate the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value, and determine whether the frequency difference is less than the preset frequency difference. If the insertion loss difference is within the preset range and the frequency difference is less than the preset frequency difference, then determine that the state of the port pointing is correct. If the insertion loss difference is not within the preset range, or the frequency difference is greater than or equal to the preset frequency difference, then determine that the state of the port pointing is wrong.
[0075] As an example, the preset range can be set to 0db-10db, and the preset frequency difference can be set to 1GHZ. If the difference between the minimum value and the last insertion loss value of the insertion loss curve is within 10db, and the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than 1GHZ, then the state of the port pointing is determined to be correct port pointing. If the difference between the minimum value and the last insertion loss value of the insertion loss curve is not within 10db, or the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is greater than 1GHZ, then the state of the port pointing is determined to be wrong port pointing.
[0076] Therefore, through the above judgment method, the correct port orientation can be found quickly and accurately, and the correct port orientation can be automatically determined.
[0077] In some embodiments, determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency in step 230 may also include: determining an insertion loss curve corresponding to the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency; and determining that the port pointing state of the high-speed link is correct port pointing when the insertion loss curve satisfies a second preset condition.
[0078] The second preset condition includes that the insertion loss difference between the extreme value and the adjacent insertion loss value in the insertion loss curve is less than the preset difference, the monotonic trend of the insertion loss curve between the adjacent first target extreme value and the second target extreme value in the insertion loss curve is the preset monotonic trend, the difference between the minimum value and the last insertion loss value in the insertion loss curve is within the preset range, and the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than the preset frequency difference. Among them, the first target extreme value is the maximum value in the insertion loss curve where the insertion loss difference between the adjacent minimum value is greater than the preset insertion loss difference, and the second target extreme value is the minimum value in the insertion loss curve where the insertion loss difference between the adjacent maximum value is greater than the preset insertion loss difference.
[0079] The port orientation determination method of this embodiment is different from the port orientation determination method of the aforementioned embodiment in that when determining the monotonic trend of the insertion loss curve, only the monotonic trend of the insertion loss curve between the adjacent first target extreme value and the second target extreme value in the insertion loss curve is determined, thereby reducing the amount of calculated data without affecting the accuracy of the determination.
[0080] Specifically, after determining that the insertion loss difference between the extreme value and the adjacent insertion loss value in the insertion loss curve is less than the preset difference, the insertion loss curve between the adjacent first target extreme value and the second target extreme value is judged for relative monotonicity. If the insertion loss curve between the first target extreme value and the second target extreme value is monotonic, and its relative monotonic trend conforms to the monotonic trend of the correct insertion loss curve (i.e., monotonically decreasing), the next step of judgment is performed. If the insertion loss curve between the first target extreme value and the second target extreme value is not monotonic, or its relative monotonic trend does not conform to the monotonic trend of the correct insertion loss curve, the port direction is changed.
[0081] It should be noted that when judging relative monotonicity, individual data points can be allowed to be monotonically rising. If the relative monotonicity of most of the curves in the insertion loss curve shows a monotonically decreasing trend, it is also judged that it meets the monotonic trend of the correct insertion loss curve. As an example, if the relative monotonicity of 90% of the curves in the insertion loss curve shows a monotonically decreasing trend, it is determined that it meets the monotonic trend of the correct insertion loss curve.
[0082] The first target extreme value and the second target extreme value may be determined in a manner that: if the insertion loss difference between adjacent minimum values and maximum values in the insertion loss curve is greater than a preset insertion loss difference, the maximum value may be used as the first target difference, and the minimum value may be used as the second target difference. It should be noted that the preset insertion loss difference may be set by the staff according to actual needs and is not specifically limited here.
[0083] As an example, the preset insertion loss difference can be set to 0.5db. When performing relative monotonicity judgment, if the insertion loss difference between a certain adjacent maximum value and minimum value is greater than 0.5db, the maximum value is used as the first target extreme value, and the minimum value is used as the second target extreme value.
[0084] It should be noted that, in this embodiment, the judgment method for whether the insertion loss difference between the extreme value in the insertion loss curve and the adjacent insertion loss value is less than the preset difference, the judgment method for whether the difference between the minimum value and the last insertion loss value in the insertion loss curve is within a preset range, and the judgment method for whether the difference between the frequency corresponding to the minimum value and the frequency corresponding to the last insertion loss value is less than the preset frequency difference can refer to the judgment method in the aforementioned embodiment, which will not be repeated here.
[0085] Figure 5 FIG. 2 is a second flow chart of the S parameter processing method of the high-speed link according to an embodiment of the present invention. Figure 5 As shown, after determining that the port pointing state of the high-speed link is that the port pointing is correct, the S parameter processing method may further include the following steps:
[0086] Step 510: For any high-speed link, determine at least one target result data according to the S parameter corresponding to the high-speed link, where the target result data is used to characterize the loss condition of the high-speed link.
[0087] Step 520: Determine a corresponding target curve graph according to each target result data, and generate an analysis report according to each target result data and the corresponding target curve graph, wherein the analysis report is used to display the analysis results of the S parameters of each high-speed link.
[0088] Specifically, after the correct port orientation of the high-speed link is determined, the loss of the high-speed link can be analyzed based on the correct port orientation and S parameters. In this embodiment, the target result data to be obtained can be determined based on the protocol and version used by the high-speed link.
[0089] As an example, if the protocol and version used by the high-speed link is: version 4.0 under the SAS protocol, the target result data may include common mode insertion loss SCD21, mixed mode insertion loss SCD21-SDD21, differential mode return loss SDD22, common mode return loss SCD22, near-end crosstalk loss NEXT, and insertion loss to crosstalk ratio ICR. It should be noted that the method of using S parameters to calculate common mode insertion loss, mixed mode insertion loss, differential mode return loss, common mode return loss, and insertion loss to crosstalk ratio can adopt existing calculation methods, which will not be repeated here.
[0090] After the processor on the server side obtains each target result data, it can draw multiple target curve graphs for each target result data, and send these target curve graphs to the display on the user side, so that the display on the user side displays these target curve graphs, so that the user can intuitively see the analysis results of the high-speed link S parameters through the user interface.
[0091] After viewing the target curve graph through the user interface, the user may choose to pre-store the target curve graph and target result data. Specifically, the target curve graph and target result data may be pre-stored according to the protocol name and the high-speed link name, and saved in the imported S parameter file directory.
[0092] In addition, the pre-stored target result data and the corresponding target curve graph can be retrieved, and an analysis report can be generated based on each target result data and the corresponding target curve graph. The format of the analysis report can be preset. The analysis report can be sent to the display at the user end, so that the display at the user end displays the analysis report, so that the user can view the analysis report through the user interface.
[0093] In this embodiment, the determination of the high-speed link crosstalk loss is mainly divided into two situations. One is the determination of the crosstalk loss when there is only one group of high-speed links; the other is the determination of the crosstalk loss when there are multiple groups of high-speed links. The following is a detailed introduction to the determination methods of the above two high-speed link crosstalk losses.
[0094] Figure 6 FIG. 3 is a flowchart of the S parameter processing method of the high-speed link according to an embodiment of the present invention. Figure 6 As shown, in some implementations, the target result data includes a first total crosstalk loss, and determining at least one target result data according to an S parameter corresponding to the high-speed link may include the following steps.
[0095] Step 610: when the number of high-speed links is determined to be at least two groups according to the S parameters corresponding to the high-speed links, in response to a user selection operation, a response link is determined, where the response link is a group of high-speed links selected by the user from the at least two groups of high-speed links.
[0096] Step 620: Obtain a first crosstalk file of at least one response link, the first crosstalk file including a crosstalk S parameter of a first crosstalk link crosstalking the response link, the first crosstalk link being the remaining high-speed links in at least two groups of high-speed links excluding the response link.
[0097] Step 630: For any first crosstalk link, determine a first sub-crosstalk loss of a response link according to a crosstalk S parameter corresponding to the first crosstalk link.
[0098] Step 640: Determine a first total crosstalk loss of the response link according to each first sub-crosstalk loss.
[0099] This embodiment mainly describes a method for determining the crosstalk loss when there are multiple groups of high-speed links, so as to solve the problem that the method for determining the crosstalk loss is complex and inflexible when there are multiple ports (ie, multiple groups of high-speed links).
[0100] It should be noted that the first total crosstalk loss is the total crosstalk loss of the high-speed links when there are multiple groups of high-speed links.
[0101] Specifically, after the S parameter file is imported, the number of high-speed links can be determined according to the suffix of the S parameter file. For example, if the imported S parameter file is S4P, it indicates that the number of high-speed links is one group; if the imported S parameter file is S24P, it indicates that the number of high-speed links is 6 groups. If it is determined that the number of high-speed links is at least two groups, each group of high-speed links can be numbered first. For example, if there are 6 groups of high-speed links, the high-speed links can be numbered in sequence as: #1, #2, #3, #4, #5 and #6.
[0102] In addition, if Figure 7 As shown, a selection control may also be displayed in the user interface displayed on the display of the user end, and the selection control includes the number of each high-speed link. The user can select one of the multiple high-speed links as a response link by clicking according to actual needs. At this time, the user end will generate a response link data packet and send the data packet to the server end. After receiving the response link data packet, the server end determines the number of the high-speed link selected by the user in response to the user's selection operation.
[0103] After determining the response link selected by the user, the remaining high-speed links are automatically used as the first crosstalk links (i.e., interference sources). By testing the crosstalk of each first crosstalk link to the response link, multiple first crosstalk files are obtained, and each first crosstalk file contains a crosstalk S parameter of the first crosstalk link to the response link. After obtaining the first crosstalk files corresponding to each first crosstalk link, each first crosstalk file is imported into the server. The processor on the server side extracts and analyzes the crosstalk S parameters corresponding to each first crosstalk link from each first crosstalk file.
[0104] After obtaining the crosstalk S parameters corresponding to each first crosstalk link, the first sub-crosstalk losses of multiple response links are calculated based on the crosstalk S parameters corresponding to each first crosstalk link. The method of calculating the first sub-crosstalk loss according to the crosstalk S parameters can adopt the existing method of calculating the crosstalk loss according to the crosstalk S parameters, which will not be repeated here. After obtaining each first sub-crosstalk loss, all sub-crosstalk losses are added together to obtain the first total crosstalk loss of the response link. Finally, the first total crosstalk loss can also be stored for subsequent retrieval and use when determining the ICR curve.
[0105] When the user needs to change the response link, he only needs to reselect the operation through the user interface. Therefore, the crosstalk loss calculation formula does not need to be reset, and the crosstalk condition after the response link is changed can be directly obtained.
[0106] Figure 8 FIG. 4 is a flowchart of the S parameter processing method of the high-speed link according to an embodiment of the present invention. Figure 8 As shown, in some implementations, the target result data includes a second total crosstalk loss, and determining at least one target result data according to an S parameter corresponding to the high-speed link may further include the following steps:
[0107] Step 810: When the number of high-speed links is determined to be a group based on the S parameters corresponding to the high-speed links, obtain a second crosstalk file corresponding to at least one high-speed link, the second crosstalk file including a crosstalk S parameter of a second crosstalk link crosstalking the high-speed link; wherein the second crosstalk link is a link around the high-speed link that crosstalks the high-speed link.
[0108] Step 820: For any second crosstalk link, determine a second sub-crosstalk loss of the high-speed link according to the crosstalk S parameter corresponding to the second crosstalk link.
[0109] Step 830: Determine a second total crosstalk loss of the high-speed link according to each second sub-crosstalk loss.
[0110] This embodiment mainly describes a method for determining the crosstalk loss when the number of high-speed links is a group. It should be noted that the second total crosstalk loss is the total crosstalk loss of the high-speed links when the number of high-speed links is a group.
[0111] It is understandable that crosstalk loss usually includes near-end crosstalk and far-end crosstalk, such as Fig. 9 As shown in the figure, the crosstalk caused by port 5 or port 7 in the high-speed link B to port 1 or port 3 in the high-speed link A is near-end crosstalk; the crosstalk caused by port 6 or port 8 in the high-speed link B to port 1 or port 3 in the high-speed link A is far-end crosstalk.
[0112] Therefore, in step 810, the second crosstalk file corresponding to the high-speed link obtained may include a near-end crosstalk file and a far-end crosstalk file. Specifically, if there is only one group of high-speed links, the crosstalk conditions of the links around the high-speed link to the high-speed link can be determined, and the links around the high-speed link that crosstalk the high-speed link are taken as second crosstalk links. By testing the crosstalk conditions of each second crosstalk link to the high-speed link, multiple second crosstalk files are obtained.
[0113] Before importing the second crosstalk file to the server, the number of near-end crosstalk and far-end crosstalk of the high-speed link can be determined according to the S parameter file, and then the second crosstalk file can be imported. While importing the second crosstalk file, it can be determined whether the number of the imported second crosstalk file is consistent with the number of near-end crosstalk and far-end crosstalk determined above. If they are inconsistent, the user is allowed to continue to import the second crosstalk file; if they are consistent, the user is not allowed to continue to import the second crosstalk file.
[0114] After importing the second crosstalk file, it is also necessary to determine whether the frequency of the crosstalk S parameter in the second crosstalk file is consistent with the frequency of the aforementioned S parameter. If not, the operation can be terminated directly; if consistent, the format of the second crosstalk file can be uniformly converted to RI format first, so as to ensure the accuracy of the calculated second total crosstalk loss.
[0115] After converting the format of the second crosstalk file to the RI format, the second crosstalk file in the RI format can be extracted and analyzed to obtain the crosstalk S parameters corresponding to each second crosstalk link, and the crosstalk S parameters include the crosstalk S parameters of the near-end crosstalk and the crosstalk S parameters of the far-end crosstalk. For any second crosstalk link, a crosstalk insertion loss of the near-end crosstalk can be calculated based on the crosstalk S parameters of the near-end crosstalk; and then a crosstalk insertion loss of the far-end crosstalk can be calculated based on the crosstalk S parameters of the far-end crosstalk. The crosstalk insertion loss of the near-end crosstalk and the crosstalk insertion loss of the far-end crosstalk are then combined to obtain the second sub-crosstalk loss of the second crosstalk link.
[0116] In some implementations, the crosstalk insertion loss of the near-end crosstalk and the crosstalk insertion loss of the far-end crosstalk may be combined by the following formula to obtain a second sub-crosstalk loss:
[0117] PSXT=10×log10{10[pow(10,SDD21_next / 10)]
[0118] +[pow(10,SDD21_fext / 10)]}
[0119] Among them, PSXT is the second sub-crosstalk loss, SDD21-next is the crosstalk insertion loss of near-end crosstalk, SDD21-fext is the crosstalk insertion loss of far-end crosstalk, and 10 is a fixed value.
[0120] As an example, if the port directions of the high-speed link are 1-2, 3-4, the calculation formula of the crosstalk insertion loss of the far-end crosstalk can be:
[0121] SDD21_fext=0.5×(S21-S23-S41+S43)
[0122] The calculation formula for the crosstalk insertion loss of near-end crosstalk can be:
[0123] SDD21_next=0.5×(S21-S31-S42+S43)
[0124] The second sub-crosstalk loss corresponding to each second crosstalk link can be calculated by the above formula, and then the second sub-crosstalk losses are added and combined to obtain the second total crosstalk loss of the high-speed link. In addition, after obtaining the second total crosstalk loss of the high-speed link, the second total crosstalk loss of the high-speed link can be stored for subsequent retrieval and use when determining the ICR curve.
[0125] In some embodiments, after determining the corresponding target curve graph according to each target result data, the method further includes: presetting multiple display areas according to the number of target curve graphs; displaying the target curve graphs in the display area, and different display areas are used to display different target curve graphs.
[0126] Specifically, the server side may first set an underlying canvas, and then determine the number of target curve graphs to be drawn according to the protocol and version of the high-speed link. For example, if the SAS4.0 protocol standard requires viewing 6 target curve graphs, the number of target curve graphs is determined to be 6. After the number of target curve graphs is determined, a corresponding number of display areas (i.e., sub-canvases) are pre-set according to the number, and each display area is inside the underlying canvas.
[0127] Different display areas are used to display different target curve graphs, and the area size of each display area can be automatically allocated according to the number of display areas. After the display area is set, the bottom canvas and each display area can be displayed by the user's display, and different target curve graphs can be displayed in each display area for the user to view each target curve graph.
[0128] Fig.10 FIG. 5 is a flowchart of the S parameter processing method of the high-speed link according to an embodiment of the present invention. Fig.10 As shown, in some embodiments, after displaying the target curve graph in the display area, the method may further include the following steps:
[0129] Step 1010: In response to the user's zooming operation on the target curve graph, determine the zoom factor and zoom center point coordinate data.
[0130] Step 1020: Determine the scaled target curve graph according to the scaling factor, the scaling center point coordinate data, and the coordinate data of the target curve graph.
[0131] Step 1030: Display the scaled target curve graph in the corresponding display area.
[0132] After displaying each target curve graph on the display of the user terminal, the user terminal detects the position of the mouse in real time and detects whether the user has performed a zooming operation. In this embodiment, the zooming operation can be a rolling operation of the mouse wheel by the user. For example, the user rolls the mouse wheel upward for a zooming operation, and the user rolls the mouse wheel downward for a zooming operation. When the user terminal detects that the position of the mouse is in a certain display area and the user has performed a zooming operation, the zooming function of the display area is triggered to be enabled. At this time, the user terminal generates a zooming instruction and sends the zooming instruction to the server terminal.
[0133] After receiving the zoom instruction, the server side obtains the magnification and zoom center coordinate data required by the user in response to the user's zoom operation on the target curve graph. Here, it should be noted that the zoom center point can be the position of the mouse. The scaled target curve graph is then determined based on the zoom factor, the zoom center coordinate data, and the coordinate data of the target curve graph. The coordinate data of the target curve graph may include the maximum value x_max and the minimum value x_min of the horizontal axis in the target curve graph. For example, the horizontal axis in the target curve graph represents the frequency, and the maximum value of the frequency is 50HZ and the maximum value is 0HZ.
[0134] After obtaining the maximum and minimum values of the horizontal axis in the target curve graph, the center value x_center of the horizontal axis can be calculated based on the maximum and minimum values of the horizontal axis. Then, the deviation value between the zoom center point coordinate data (i.e., the horizontal axis value x1 of the mouse position) and the center value x_center is calculated. When the user performs a zoom operation, the maximum and minimum values of the horizontal axis of the target curve graph displayed in the display area are redefined based on the deviation value, the zoom multiple, and the preset zoom interval, so as to obtain the zoomed target curve graph. Finally, the zoomed target curve graph is still displayed in the display area.
[0135] Here, it should be noted that the preset zoom interval can be set according to the maximum value x_max and the minimum value x_min of the horizontal axis in the original target curve graph. For example, the zoom interval multiple can be set to: multiple=(x_max-x_min) / 10.
[0136] As an example, if the user is performing a zoom-in operation, the magnification factor, the magnified center point coordinate data, and the original maximum and minimum values of the horizontal axis of the target curve graph are determined. Then the maximum and minimum values of the horizontal axis of the target curve graph displayed in the display area are redefined to obtain a new maximum and a new minimum value. Among them, the new maximum value can be calculated as: new maximum value = original maximum value - magnification factor - magnified center point coordinate data (i.e., mouse horizontal coordinate value) and original center coordinate deviation. The new minimum value can be calculated as: original minimum value + magnification factor - magnified center point coordinate data (i.e., mouse horizontal coordinate value) and original center coordinate deviation. If the user is performing a zoom-out operation, the zoom-out calculation method is the same as the zoom-in calculation method, which will not be repeated here. Thereby, the zoom-in operation of the target curve graph is realized, and a dynamic zoom ratio is adopted to facilitate users to accurately find data points.
[0137] In this embodiment, the user's click operation in the target curve graph can also be detected in real time, so that the user-side display will display the coordinate value of the data point clicked by the user. Specifically, if the user side detects that the user has performed a click operation near the target curve graph, at this time, the user side will generate a data display instruction and send the data display instruction to the server side. After receiving the data display instruction, the server side will display the coordinate value of the data point clicked by the user in the form of a mark in response to the click operation, so that the user can accurately obtain the data of each data point. If it is detected that the user's click operation is not near the target curve graph, the click operation can be automatically ignored.
[0138] In this embodiment, the double-click operation of the user in the target curve graph can also be detected in real time, so that the display of the user end displays the target curve graph in full screen. Specifically, if a double-click operation of the user in a certain display area is detected, the user end will generate a display mode change instruction and send the display mode change instruction to the server end. After receiving the display mode change instruction, the server end responds to the double-click operation and makes the target curve graph in the display area displayed on the display fill the entire bottom canvas.
[0139] If the user's double-click operation is detected again, the user terminal will generate a display mode change instruction again and send the display mode change instruction to the server terminal. After receiving the display mode change instruction, the server terminal responds to the double-click operation and restores the user terminal display to the mode of displaying multiple display areas.
[0140] In some embodiments, after obtaining at least one set of S parameters corresponding to the high-speed link in step 210, the method further includes: pre-storing the S parameters corresponding to each high-speed link in a list form; converting the S parameters corresponding to each high-speed link pre-stored in the list form into at least one parameter matrix, where different parameter matrices include a set of S parameters corresponding to the high-speed link at different frequencies. In step 220, determining the insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link includes: determining the insertion loss curve corresponding to the high-speed link according to the parameter matrix corresponding to the S parameters.
[0141] Specifically, the configuration rows and configuration columns of each parameter matrix may be pre-set, wherein the number of configuration rows may be the total number of ports, and the number of configuration columns may be the total number of ports / 4. In addition, an empty dictionary may also be pre-built.
[0142] After obtaining the S parameter file, the processor on the server side loops through the imported S parameter file and pre-stores the relevant data in the S parameter file into a list. After pre-storing the relevant data in the S parameter file, the comment line of the S parameter in the list can be deleted, and the blank lines and spaces in the list can be removed.
[0143] The S parameters pre-stored in the form of a list are converted into several S parameter arrays, each of which can be defined as: a set of S parameters corresponding to a high-speed link at a frequency. An S parameter array can be stored in a parameter matrix, so that multiple parameter matrices can be obtained, and different parameter matrices store S parameters corresponding to a set of high-speed links at different frequencies.
[0144] When traversing the S parameter file, the location of the frequency data in the S parameter file can also be determined, thereby determining the frequency corresponding to the obtained S parameter, and then determining the corresponding relationship between each parameter matrix and the frequency. Finally, according to the corresponding relationship between the frequency and the parameter matrix, the frequency and the parameter matrix are stored together in the empty dictionary established above.
[0145] In addition, when traversing the S parameter file, the configuration items in the S parameter file can also be obtained. After obtaining the configuration items, the configuration items can be directly stored in the above-mentioned empty dictionary.
[0146] When determining the insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link, the parameter matrix corresponding to the high-speed link can be directly called from the empty dictionary, and then the required S parameters are obtained from the parameter matrix to determine the insertion loss curve corresponding to the high-speed link.
[0147] Therefore, when the S parameters are subsequently called, the required parameter matrix can be directly found in the empty dictionary to obtain the corresponding S parameters, thereby improving the analysis efficiency of the high-speed link S parameter analysis and enhancing the convenience of the S parameter analysis.
[0148] Fig.11 It is a block diagram of an S parameter processing device for a high-speed link according to an embodiment of the present invention.
[0149] like Fig.11 As shown, the S parameter processing device 1100 includes: an acquisition module 1110 for analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link, a determination module 1120 for determining the insertion loss value of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determining the variation of the insertion loss value with the frequency based on the insertion loss value corresponding to each frequency, and a port pointing judgment module 1130 for determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency. The port pointing state includes a correct port pointing or an incorrect port pointing.
[0150] Therefore, the acquired S parameter file is analyzed by the acquisition module 1110 to obtain at least one set of S parameters corresponding to the high-speed link; the determination module 1120 then determines the insertion loss value of the high-speed link at at least two frequencies according to the S parameters corresponding to the high-speed link, and determines the change of the insertion loss value with the frequency based on the insertion loss value corresponding to each frequency; the port pointing judgment module 1130 can determine whether the port pointing of the high-speed link is correct according to the change of the insertion loss value of the high-speed link with the frequency, thereby realizing automatic judgment of the port pointing, saving the time cost of S parameter analysis, improving the analysis efficiency of the high-speed link S parameter analysis, and enhancing the convenience of S parameter analysis.
[0151] It should be noted that for details not disclosed in the S parameter processing device for a high-speed link in this embodiment, please refer to the details disclosed in the embodiment of the S parameter processing method for a high-speed link in the embodiment of this specification, and will not be repeated here.
[0152] Fig.12 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.12 As shown, the electronic device may include: a server-side processor 1210, a communication interface 1220, a server-side memory 1230 and a communication bus 1240, wherein the server-side processor 1210, the communication interface 1220 and the server-side memory 1230 complete mutual communication through the communication bus 1240. The server-side processor 1210 may call the logic instructions in the server-side memory 1230 to execute the S parameter processing method of the high-speed link, the method comprising: analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link; determining the insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link, the insertion loss curve being used to characterize the change of the insertion loss value of the high-speed link with the frequency change; determining the port pointing state of the high-speed link based on the insertion loss curve, the port pointing state including the port pointing being correct or the port pointing being wrong.
[0153] In addition, the logic instructions in the above-mentioned server-side memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only server-side memory (ROM, Read-Only Memory), random access server-side memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.
[0154] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor on the server side, the computer can execute the S parameter processing method of the high-speed link provided by the above methods, and the method includes: analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link; determining an insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link, and the insertion loss curve is used to characterize the change of the insertion loss value of the high-speed link with the frequency; determining the port pointing state of the high-speed link based on the insertion loss curve, and the port pointing state includes correct port pointing or incorrect port pointing.
[0155] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor on the server side, it is implemented to execute the S parameter processing method of the high-speed link provided by the above-mentioned methods, the method comprising: analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link; determining an insertion loss curve corresponding to the high-speed link according to the S parameters corresponding to the high-speed link, the insertion loss curve being used to characterize the change of the insertion loss value of the high-speed link with frequency; determining the port pointing state of the high-speed link based on the insertion loss curve, the port pointing state comprising correct port pointing or incorrect port pointing.
[0156] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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.
Claims
1. A method for processing S parameters of a high-speed link, characterized in that: include: Analyze the obtained S-parameter file to obtain at least one set of S-parameters corresponding to the high-speed link; Determining insertion loss values of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determining a variation of the insertion loss value with the frequency based on the insertion loss value corresponding to each of the frequencies; The port pointing state of the high-speed link is determined based on the change of the insertion loss value of the high-speed link with the frequency, where the port pointing state includes correct port pointing or incorrect port pointing.
2. The S parameter processing method for a high-speed link according to claim 1, characterized in that: The determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency includes: Determining an insertion loss curve corresponding to the high-speed link based on a change in the insertion loss value of the high-speed link as a function of the frequency; When the insertion loss curve satisfies a first preset condition, determining that the port pointing state of the high-speed link is that the port pointing is correct; The first preset condition includes that an insertion loss difference between an extreme value and an adjacent insertion loss value in the insertion loss curve is less than a preset difference, a monotonic trend of the insertion loss curve is a preset monotonic trend, a difference between a minimum value and a last insertion loss value in the insertion loss curve is within a preset range, and a difference between a frequency corresponding to the minimum value and a frequency corresponding to the last insertion loss value is less than a preset frequency difference.
3. The S parameter processing method for a high-speed link according to claim 1, characterized in that: The determining the port pointing state of the high-speed link based on the variation of the insertion loss value of the high-speed link with the frequency includes: Determining an insertion loss curve corresponding to the high-speed link based on a change in the insertion loss value of the high-speed link as a function of the frequency; When the insertion loss curve satisfies a second preset condition, determining that the port pointing state of the high-speed link is that the port pointing is correct; The second preset condition includes that an insertion loss difference between an extreme value and an adjacent insertion loss value in the insertion loss curve is less than a preset difference, a monotonic trend of the insertion loss curve between adjacent first target extreme values and second target extreme values in the insertion loss curve is a preset monotonic trend, a difference between a minimum value and a last insertion loss value in the insertion loss curve is within a preset range, and a difference between a frequency corresponding to the minimum value and a frequency corresponding to the last insertion loss value is less than a preset frequency difference; wherein the first target extreme value is a maximum value in the insertion loss curve whose insertion loss difference with an adjacent minimum value is greater than a preset insertion loss difference, and the second target extreme value is a minimum value in the insertion loss curve whose insertion loss difference with an adjacent maximum value is greater than a preset insertion loss difference.
4. The S parameter processing method for a high-speed link according to any one of claims 1 to 3, characterized in that: After determining that the port pointing state of the high-speed link is that the port pointing is correct, the method further includes: For any high-speed link, determining at least one target result data according to an S parameter corresponding to the high-speed link, wherein the target result data is used to characterize the loss condition of the high-speed link; A corresponding target curve graph is determined according to each target result data, and an analysis report is generated according to each target result data and the corresponding target curve graph, wherein the analysis report is used to display the analysis results of the S parameters of each high-speed link.
5. The S parameter processing method for a high-speed link according to claim 4, characterized in that: The target result data includes a first total crosstalk loss, and determining at least one target result data according to an S parameter corresponding to the high-speed link includes: When it is determined according to the S parameters corresponding to the high-speed links that the number of the high-speed links is at least two, in response to a selection operation by the user, determining a response link, the response link being a group of high-speed links selected by the user from the at least two groups of high-speed links; Obtaining a first crosstalk file of at least one of the response links, where the first crosstalk file includes a crosstalk S parameter of a first crosstalk link that crosstalks the response link, where the first crosstalk link is the remaining high-speed links in the at least two groups of high-speed links excluding the response link; For any first crosstalk link, determine a first sub-crosstalk loss of the response link according to the crosstalk S parameter corresponding to the first crosstalk link; A first total crosstalk loss of the response link is determined according to each of the first sub-crosstalk losses.
6. The S parameter processing method for a high-speed link according to claim 4, characterized in that: The target result data includes a second total crosstalk loss, and determining at least one target result data according to an S parameter corresponding to the high-speed link includes: When it is determined based on the S parameters corresponding to the high-speed links that the number of high-speed links is a group, obtaining a second crosstalk file corresponding to at least one of the high-speed links, the second crosstalk file including a crosstalk S parameter of a second crosstalk link causing crosstalk to the high-speed link; wherein the second crosstalk link is a link around the high-speed link causing crosstalk to the high-speed link; For any second crosstalk link, determining a second sub-crosstalk loss of the high-speed link according to the crosstalk S parameter corresponding to the second crosstalk link; A second total crosstalk loss of the high-speed link is determined according to each of the second sub-crosstalk losses.
7. The S parameter processing method for a high-speed link according to any one of claims 5 to 6, characterized in that: After determining the corresponding target curve graph according to each target result data, the method further includes: Presetting a plurality of display areas according to the number of the target curve graphs; Displaying the target curve graph in the display area, wherein different display areas are used to display different target curve graphs; In response to a zoom operation of the target curve graph by the user, determining a zoom factor and zoom center point coordinate data; Determining a scaled target curve graph according to the scaling factor, the scaling center point coordinate data, and the coordinate data of the target curve graph; The scaled target curve graph is displayed in the corresponding display area.
8. The S parameter processing method for a high-speed link according to any one of claims 1 to 3, characterized in that: After analyzing the acquired S parameter file to obtain at least one set of S parameters corresponding to the high-speed link, the method further includes: Pre-storing the S parameters corresponding to each of the high-speed links in a list format; Converting the S parameters corresponding to each of the high-speed links pre-stored in a list into at least one parameter matrix, wherein different parameter matrices include a group of S parameters corresponding to the high-speed links at different frequencies; Determining an insertion loss curve corresponding to the high-speed link according to the S parameter corresponding to the high-speed link includes: An insertion loss curve corresponding to the high-speed link is determined according to a parameter matrix corresponding to the S parameter.
9. An S parameter processing device for a high-speed link, characterized in that: include: An acquisition module, configured to analyze the acquired S-parameter file to obtain at least one set of S-parameters corresponding to the high-speed link; a determination module, configured to determine insertion loss values of the high-speed link at at least two frequencies based on the S parameters corresponding to the high-speed link, and determine a variation of the insertion loss value with the frequency based on the insertion loss value corresponding to each of the frequencies; The port pointing judgment module is used to determine the port pointing state of the high-speed link based on the change of the insertion loss value of the high-speed link with the frequency, and the port pointing state includes correct port pointing or incorrect port pointing.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the S parameter processing method for a high-speed link according to any one of claims 1 to 8 is implemented.
