Data processing method and device, electronic equipment and storage medium

CN122527683BActive Publication Date: 2026-10-09STELIGHT INSTR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611020102.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-09
Publication Date
2026-10-09
Estimated Expiration
2046-07-09

AI Technical Summary

Technical Problem

[0004]本公开提供一种数据处理方法、装置、电子设备及存储介质,以至少解决相关技术中无法满足示波器参数测量场景下高精度、高稳定的电平提取需求,进而导致信号参数测量准确性低等问题

Benefits of technology

获取目标示波器采集的目标信号的采样幅度值、采样幅度值对应的幅度取值范围、幅度取值范围对应的多个预设取值区间和目标信号对应的多个第一初始中心;多个预设取值区间对应多个预设区间序号;预设区间序号对应的加权权重为处于对应预设取值区间内的采样幅度值的数量;基于多个第一初始中心,划分幅度取值范围,得到多个第一中心区间;基于加权权重,对多个第一中心区间内预设取值区间对应的预设区间序号进行加权处理,得到第二初始中心;在多个第一初始中心和第二初始中心间的中心偏移信息小于预设偏移阈值的情况下,基于第二初始中心和预设区间重叠比例,划分幅度取值范围,得到第二中心区间;基于加权权重和第二中心区间内预设取值区间对应的预设区间序号,确定目标信号对应的电平判决特征;基于电平判决特征,在目标示波器显示目标信号对应的信号质量参数,可以提升电平测量精度和检测一致性,满足示波器参数测量场景下高精度、高稳定的电平提取需求,进而保障信号参数测量准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122527683B_ABST
    Figure CN122527683B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method, device, electronic equipment and storage medium. The method comprises: dividing a range of amplitude values based on a plurality of first initial centers of a target signal to obtain a plurality of first center intervals; performing weighted processing on a preset interval sequence corresponding to a preset value interval in the plurality of first center intervals based on a weighting weight to obtain a second initial center; in a case where center offset information between the plurality of first initial centers and the second initial center is less than a preset offset threshold, obtaining a second center interval based on the second initial center and a preset interval overlap ratio; determining a level decision feature corresponding to the target signal based on the weighting weight and a preset interval sequence in the second center interval, thereby obtaining and displaying a signal quality parameter on a target oscilloscope. The embodiments of the present disclosure can meet the demand for high-precision and high-stability level extraction in the oscilloscope parameter measurement scene, and ensure the accuracy of signal parameter measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of oscilloscope measurement technology, and in particular to a data processing method, apparatus, electronic device and storage medium. Background Technology

[0002] With the increasing prevalence of level extraction applications for multi-level signals, accurately identifying the ideal signal level and calculating the decision center has become crucial for ensuring the accuracy of signal parameter measurements.

[0003] In related technologies, cluster centers are often initialized randomly and then updated with equal-weighted arithmetic averages to complete level clustering, ultimately mapping the signal level and decision threshold. However, in these technologies, noise or waveform distortion has a significant impact, and the accuracy of level measurement is easily affected, resulting in poor detection consistency. This fails to meet the high-precision and high-stability level extraction requirements in oscilloscope parameter measurement scenarios, leading to low accuracy in signal parameter measurement. Summary of the Invention

[0004] This disclosure provides a data processing method, apparatus, electronic device, and storage medium to at least solve the problems in related technologies where the high-precision and high-stability level extraction requirements of oscilloscope parameter measurement scenarios cannot be met, leading to low accuracy in signal parameter measurement. The technical solution of this disclosure is as follows: According to a first aspect of the present disclosure, a data processing method is provided, comprising: The system acquires the sampled amplitude value of the target signal acquired by the target oscilloscope, the amplitude range corresponding to the sampled amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; the multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampled amplitude values ​​within the corresponding preset value interval. Based on the multiple first initial centers, the amplitude value range is divided to obtain multiple first center intervals; Based on the weighted weights, the preset interval numbers corresponding to the preset value intervals within the plurality of first center intervals are weighted to obtain the second initial center; If the center offset information between the plurality of first initial centers and the second initial centers is less than a preset offset threshold, the amplitude value range is divided based on the overlap ratio between the second initial center and the preset interval to obtain the second center interval; Based on the weighted weight and the preset interval number corresponding to the preset value interval within the second central interval, the level decision feature corresponding to the target signal is determined; Based on the level decision characteristics, the signal quality parameters corresponding to the target signal are displayed on the target oscilloscope.

[0005] In an optional embodiment, the plurality of preset value intervals are obtained by equally dividing the amplitude value range based on a preset interval width; determining the level decision feature corresponding to the target signal based on the weighted weight and the preset interval number corresponding to the preset value interval within the second central interval includes: Based on the weighted weights and the preset interval number corresponding to the preset value interval within the second central interval, the interval statistical characteristics corresponding to the second central interval are obtained. Based on the aforementioned interval statistical characteristics, the initial level and the initial decision center are obtained; The initial level and the initial decision center are format-converted to obtain the level decision feature.

[0006] In an optional embodiment, the interval statistical features include interval weighted features and interval standard deviation features, and the initial level includes a preset number of initial levels; obtaining the initial level and initial decision center based on the interval statistical features includes: The initial level is obtained based on the aforementioned interval statistical characteristics; Based on the interval weighted features and the interval standard deviation features, the initial level interval corresponding to the preset number of levels is obtained; Determine the lower limit of the preceding initial level interval and the upper limit of the following initial level interval for each adjacent initial level interval in the initial level interval; The initial decision center is obtained based on the lower limit and the upper limit of the interval.

[0007] In an optional embodiment, the plurality of first initial centers are obtained in the following manner: Obtain the set of candidate centers; the set of candidate centers includes the plurality of preset interval numbers; Based on the weighted weights, the first selected center is determined from the multiple preset interval numbers and placed into the selected center set; Based on the selected center set, the candidate center set, and the weighted weight, a second selected center is determined from the candidate center set; Add the second selected center to the set of selected centers; Repeat the process of determining a second selected center from the set of candidate centers based on the selected center set, the set of candidate centers, and the weighted weight; until the second selected center is added to the selected center set, until the number of selected centers in the selected center set reaches a preset level number; Based on the selected centers in the selected center set, the plurality of first initial centers are obtained.

[0008] In an optional embodiment, determining the second selected center from the set of candidate centers based on the selected center set, the set of candidate centers, and the weighted weight includes: Calculate the center distance information between each candidate center in the candidate center set and each selected center in the selected center set; Based on the weighted weight and center distance information corresponding to each candidate center, a candidate center score is obtained for each candidate center; The candidate center with the highest score among the candidate center scores is selected as the second selected center.

[0009] In an optional embodiment, the method further includes: When the center offset information reaches the preset offset threshold, the process jumps to dividing the amplitude value range based on the multiple first initial centers to obtain multiple first center intervals.

[0010] In an optional embodiment, the sampled amplitude value includes multiple amplitude values; the method further includes: Based on the preset interval width, the range of amplitude values ​​is divided to obtain the multiple preset value intervals; Based on the amplitude range corresponding to each of the plurality of preset value intervals, the plurality of amplitude values ​​are mapped to the plurality of preset value intervals according to the amplitude values; Determine the number of amplitude values ​​mapped to each of the multiple preset value intervals; The weighting weight is obtained based on the number of amplitude value mappings and the preset interval number corresponding to each preset value interval.

[0011] In an optional embodiment, acquiring the sampling amplitude value of the target signal collected by the target oscilloscope includes: Obtain the initial sampling amplitude value of the target signal; Identify abnormal amplitude values ​​in the initial sampled amplitude values; The abnormal amplitude value is removed from the initial sampled amplitude value to obtain the sampled amplitude value.

[0012] According to a second aspect of the present disclosure, a data processing apparatus is provided, comprising: The first acquisition module is used to acquire the sampling amplitude value of the target signal collected by the target oscilloscope, the amplitude range corresponding to the sampling amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; the multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampling amplitude values ​​within the corresponding preset value interval. The first interval acquisition module is used to divide the amplitude value range based on the plurality of first initial centers to obtain a plurality of first center intervals; The center acquisition module is used to perform weighted processing on the preset interval numbers corresponding to the preset value intervals within the plurality of first center intervals based on the weighted weights, so as to obtain the second initial center; The second interval acquisition module is used to divide the amplitude value range based on the overlap ratio between the second initial center and the preset interval when the center offset information between the plurality of first initial centers and the second initial center is less than a preset offset threshold, so as to obtain the second center interval. The second acquisition module is used to determine the level decision feature corresponding to the target signal based on the weighted weight and the preset interval number corresponding to the preset value interval in the second central interval; The display module is used to display the signal quality parameters corresponding to the target signal on the target oscilloscope based on the level decision characteristics.

[0013] In an optional embodiment, the plurality of preset value intervals are obtained by equally dividing the amplitude value range based on a preset interval width; the second first acquisition module includes: The interval statistical feature acquisition unit is used to obtain the interval statistical features corresponding to the second central interval based on the weighted weight and the preset interval number corresponding to the preset value interval within the second central interval; The first acquisition unit is used to obtain the initial level and the initial decision center based on the interval statistical characteristics; The format conversion unit is used to convert the format of the initial level and the initial decision center to obtain the level decision feature.

[0014] In an optional embodiment, the interval statistical features include interval weighted features and interval standard deviation features, and the initial level includes a preset number of initial levels; the first acquisition unit includes: An initial level acquisition subunit is used to obtain the initial level based on the interval statistical characteristics; An initial level interval acquisition subunit is used to obtain the initial level interval corresponding to the preset number of levels based on the interval weighting feature and the interval standard deviation feature; The first determining unit is used to determine the lower limit value of the previous initial level interval and the upper limit value of the next initial level interval for each adjacent initial level interval in the initial level interval. An initial decision center acquisition sub-unit is used to obtain the initial decision center based on the lower limit value of the interval and the upper limit value of the interval.

[0015] In an optional embodiment, the plurality of first initial centers are obtained in the following manner: The candidate center set acquisition module is used to acquire the candidate center set; the candidate center set includes the plurality of preset interval numbers; The first selected center determination module is used to determine the first selected center from the plurality of preset interval numbers and put it into the selected center set based on the weighted weight; The second selected center determination module is used to determine a second selected center from the set of candidate centers based on the set of selected centers, the set of candidate centers, and the weighted weight. The selected center set update module is used to add the second selected center to the selected center set; The repetitive execution module is used to repeatedly execute the steps of determining a second selected center from the set of candidate centers based on the selected center set, the set of candidate centers, and the weighted weight; and adding the second selected center to the selected center set, until the number of selected centers in the selected center set reaches a preset level number; The first initial center acquisition module is used to obtain the plurality of first initial centers based on the selected centers in the selected center set.

[0016] In an optional embodiment, the second selected center determination module includes: The center distance information calculation unit is used to calculate the center distance information between each candidate center in the candidate center set and each selected center in the selected center set; The candidate center score acquisition unit is used to obtain the candidate center score of each candidate center based on the weighted weight corresponding to each candidate center and the center distance information corresponding to each candidate center; The second selected center acquisition unit is used to select the candidate center with the highest score among the candidate center scores as the second selected center.

[0017] In an optional embodiment, the apparatus further includes: The jump module is used to jump to the multiple first center intervals when the center offset information reaches the preset offset threshold.

[0018] In an optional embodiment, the sampling amplitude value includes multiple amplitude values; the device further includes: The preset value range acquisition module is used to divide the amplitude value range based on the preset range width to obtain the multiple preset value ranges; An amplitude value mapping module is used to map the plurality of amplitude values ​​to the plurality of preset value intervals based on the amplitude value range corresponding to each preset value interval. An amplitude value mapping quantity determination module is used to determine the number of amplitude values ​​mapped to each preset value interval among the plurality of preset value intervals; The weighted weight acquisition module is used to obtain the weighted weight based on the number of amplitude value mappings and the preset interval number corresponding to each preset value interval.

[0019] In an optional embodiment, the first acquisition module includes: An initial sampling amplitude value acquisition unit is used to acquire the initial sampling amplitude value of the target signal; An abnormal amplitude value identification unit is used to identify abnormal amplitude values ​​in the initial sampled amplitude values; An abnormal amplitude value removal unit is used to remove the abnormal amplitude value from the initial sampled amplitude value to obtain the sampled amplitude value.

[0020] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in any one of the first aspects above.

[0021] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided such that, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method described in any of the first aspects of the present disclosure.

[0022] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects: The process involves acquiring the sampled amplitude value of the target signal collected by the target oscilloscope, the amplitude range corresponding to the sampled amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal. Each preset value interval corresponds to a preset interval number. The weighting weight of each preset interval number represents the number of sampled amplitude values ​​within its corresponding preset value interval. Based on the multiple first initial centers, the amplitude range is divided to obtain multiple first center intervals. Based on the weighting weights, the preset interval numbers corresponding to the preset value intervals within the multiple first center intervals are weighted to obtain second initial centers. If the center offset information between the multiple first initial centers and the second initial centers is less than a preset offset threshold, the amplitude range is divided based on the overlap ratio between the second initial centers and the preset intervals to obtain second center intervals. Based on the weighting weights and the preset interval numbers corresponding to the preset value intervals within the second center intervals, the level decision characteristics corresponding to the target signal are determined. Based on these level decision characteristics, the signal quality parameters corresponding to the target signal are displayed on the target oscilloscope. This improves the accuracy of level measurement and detection consistency, meeting the high-precision and high-stability level extraction requirements in oscilloscope parameter measurement scenarios, thereby ensuring the accuracy of signal parameter measurement.

[0023] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0025] Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment; Figure 2 This is a flowchart illustrating a data processing method according to an exemplary embodiment; Figure 3 This is a block diagram of a data processing apparatus according to an exemplary embodiment; Figure 4 This is a block diagram illustrating an electronic device for data processing according to an exemplary embodiment. Detailed Implementation

[0026] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0027] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar different contents and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0028] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0029] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment, such as... Figure 1 As shown, the application environment may include an oscilloscope 100 and a server 200.

[0030] In an optional embodiment, oscilloscope 100 can be used to provide data processing services and has already displayed signal quality parameters. Specifically, oscilloscope 100 can be a sampling oscilloscope.

[0031] In an optional embodiment, server 200 can provide background services and perform data processing for oscilloscope 100. Specifically, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0032] In addition, it should be noted that, Figure 1 The example shown is merely one application environment provided by this disclosure; in practical applications, other application environments may also be included.

[0033] In the embodiments described in this specification, the oscilloscope 100 and the server 200 can be directly or indirectly connected via wired or wireless communication, and this disclosure does not impose any limitations.

[0034] Figure 2This is a flowchart illustrating a data processing method according to an exemplary embodiment. This data processing method is used in an oscilloscope or a server, or it can be executed interactively by the oscilloscope and the server, such as... Figure 2 As shown, it includes the following steps.

[0035] In step S201, the sampling amplitude value of the target signal acquired by the target oscilloscope, the amplitude range corresponding to the sampling amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal are obtained. In one specific embodiment, the target oscilloscope can be used to measure the signal quality parameters corresponding to the target signal. The sampling amplitude value can be the sampled value of the target signal acquired by the target oscilloscope. Specifically, the sampling amplitude value can be one-dimensional digital waveform data.

[0036] In a specific embodiment, the amplitude range can be the range of values ​​corresponding to the sampled amplitude value.

[0037] In a specific embodiment, the multiple preset value intervals can be multiple preset value intervals corresponding to the amplitude value range. Specifically, the multiple preset value intervals are obtained by dividing the amplitude value range equally based on the preset interval width. Optionally, the multiple preset value intervals can correspond to multiple preset interval numbers. The preset interval number can be the interval identifier corresponding to the preset value interval. The weighting weight corresponding to the preset interval number is the number of sampled amplitude values ​​in the corresponding preset value interval.

[0038] In one specific embodiment, the plurality of first initial centers may be initial centers corresponding to the sampling amplitude values, and the plurality of first initial centers may include a preset number of initial centers.

[0039] In an optional embodiment, the above-described acquisition of the sampling amplitude value of the target signal acquired by the target oscilloscope may include: Obtain the initial sampling amplitude value of the target signal; Identify abnormal amplitude values ​​in the initial sampled amplitude values; The abnormal amplitude value is removed from the initial sampled amplitude value to obtain the sampled amplitude value.

[0040] In a specific embodiment, the initial sampling amplitude value can be the original waveform data corresponding to the target signal, and the abnormal amplitude value can be an abnormal value in the initial sampling amplitude value. Specifically, the abnormal amplitude value can include invalid amplitude data such as non-numerical (NaN) and infinity (Inf).

[0041] In one specific embodiment, by traversing the initial sampling amplitude values, invalid amplitude data such as non-numeric (NaN) and infinity (Inf) contained in the initial sampling amplitude values ​​can be identified and eliminated, and only valid and finite sampling amplitude values ​​can be retained to form the sampling amplitude values.

[0042] In the above embodiments, by preprocessing the initial sampling amplitude value, identifying and removing abnormal values ​​contained therein, it is possible to avoid the distortion of the sampling amplitude value distribution caused by data abnormalities, and to ensure the stability and reliability of level extraction.

[0043] In an optional embodiment, the sampling amplitude value may include multiple amplitude values, and the method may further include: Based on the preset interval width, the range of amplitude values ​​is divided to obtain multiple preset value intervals; Based on the amplitude range corresponding to each of the multiple preset value intervals, the multiple amplitude values ​​are mapped to the multiple preset value intervals according to the amplitude values; Determine the number of amplitude values ​​mapped to each preset value interval from multiple amplitude values; The weighted weights are obtained based on the number of amplitude value mappings and the preset interval number corresponding to each preset value interval.

[0044] In a specific embodiment, taking an amplitude range of [0,100] and a preset interval width of 1 as an example, multiple preset value intervals can be [0,1), [1,2), [2,3), ..., and correspondingly, the multiple preset interval numbers can be 0, 1, 2, ..., where the preset interval number corresponding to [0,1) can be 0, the preset interval number corresponding to [1,2) can be 1, the preset interval number corresponding to [2,3) can be 2, ...

[0045] In a specific embodiment, multiple amplitude values ​​can be mapped to multiple preset value ranges according to their amplitude values ​​by combining mapping weighting weights. Specifically, the mapping weighting weights can include integer weights and fractional weights. For a sampled amplitude value of 4.2, the fractional weight can be 0.2 and the integer weight can be 0.8. Optionally, the integer weight 0.8 can be the weight corresponding to [4, 5), and the fractional weight 0.2 can be the weight corresponding to [5, 6). Accordingly, 4.2 can be mapped to [4, 5) and [5, 6).

[0046] In one specific embodiment, the number of amplitude value mappings can be the number of multiple amplitude values ​​mapped to each preset value interval, and the weighting weight can be the weight corresponding to the preset interval number. Optionally, the weighting weight can be the number of amplitude value mappings within each preset value interval.

[0047] In the above embodiments, by using the probability of the sampling amplitude value appearing in different preset value intervals as the weighting basis for the preset partition number corresponding to the preset value interval, the accuracy of level extraction can be improved.

[0048] In step S203, based on multiple first initial centers, the amplitude value range is divided to obtain multiple first center intervals; In a specific embodiment, the amplitude range can be divided into several continuous intervals (multiple first center intervals) corresponding to a preset number of levels, based on multiple first initial centers and using the midpoint of adjacent multiple first initial centers as the interval boundary point. Each of the multiple first center intervals corresponds to a candidate distribution area of ​​a second initial center.

[0049] In an optional embodiment, the aforementioned plurality of first initial centers can be obtained in the following manner: Obtain the set of candidate centers; Based on weighted weights, the first selected center is determined from multiple preset interval indices and placed into the selected center set; Based on the set of selected centers, the set of candidate centers, and the weighted weight, determine the second selected center from the set of candidate centers; Add the second selected center to the set of selected centers; Repeatedly execute the process based on the selected center set, the candidate center set, and the weighted weight, to determine the second selected center from the candidate center set; until the second selected center is added to the selected center set, until the number of selected centers in the selected center set reaches the preset level number; Based on the selected centers in the selected center set, multiple first initial centers are obtained.

[0050] In one specific embodiment, the candidate center set can be a set of candidate level centers, and the candidate center set can include multiple preset interval numbers.

[0051] In a specific embodiment, the first selected center can be the first selected center corresponding to the selected center set. The selected center set can be used to determine multiple first initial centers. Specifically, the first selected center can be the preset interval number with the largest weight among multiple preset interval numbers. Specifically, the preset interval number with the largest weight can be selected as the first selected center and placed into the selected center set from multiple preset interval numbers.

[0052] In one specific embodiment, the second selected center can be the second selected center corresponding to the set of selected centers.

[0053] In one specific embodiment, the preset number of levels can be the number of levels to be extracted corresponding to the target signal that is pre-set. Optionally, the number of levels to be extracted from the target signal can be determined according to the target signal standard, for example, a PAM4 signal corresponds to 4 levels.

[0054] In a specific embodiment, the candidate center with the highest score can be selected as the new selected center in each iteration until a set of selected centers with the same number of preset levels is selected. The selected centers in the set of selected centers are sorted in ascending order of amplitude to obtain multiple first initial centers.

[0055] In the above embodiments, a specified number of initial cluster centers are selected sequentially through distance-weighted joint scoring, so that the initial position of the level center is closer to the real signal distribution, avoiding clustering from getting trapped in local optima, which can improve the convergence speed and clustering stability, and thus improve the efficiency of obtaining signal quality parameters.

[0056] In an optional embodiment, determining the second selected center from the set of candidate centers based on the selected center set, the candidate center set, and the weighted weight may include: Calculate the center distance information between each candidate center in the candidate center set and any selected center in the selected center set; Based on the weighted weight and center distance information corresponding to each candidate center, a candidate center score is obtained for each candidate center; The candidate center with the highest score among the candidate centers will be selected as the second selected center.

[0057] In one specific embodiment, the center distance information can be the distance information between each candidate center and any selected center. Optionally, the center distance information can be the minimum distance between each candidate center and any selected center, and the candidate center score can be the score corresponding to each candidate center.

[0058] In a specific embodiment, given that the center distance information is the minimum distance between each candidate center and any selected center, the candidate centers in the candidate center set can be iterated sequentially. For each candidate center, the minimum distance between it and any selected center in the selected center set can be calculated. The minimum distance can then be weighted by combining the weights corresponding to each candidate center to obtain a candidate center score. Specifically, the candidate center score can be the product of the minimum distance corresponding to each candidate center and the weights corresponding to each candidate center. Optionally, in each iteration, the candidate center with the highest score can be selected as the second selected center.

[0059] In the above embodiments, by adopting a greedy initialization strategy of distance-weighted joint scoring, the initial centers can be naturally distributed in positions where signal energy is concentrated and separated from each other, which significantly improves the convergence speed and level accuracy, thereby improving the accuracy of signal quality parameters.

[0060] In step S205, based on the weighted weight, the preset interval numbers corresponding to the preset value intervals within the multiple first center intervals are weighted to obtain the second initial center; In a specific embodiment, the second initial center can be an update center corresponding to multiple first initial centers. Specifically, within each of the multiple first center intervals, based on weighted weights, the weighted average of the preset interval indices corresponding to all preset value intervals within the multiple first center intervals can be calculated, and this average can be used as the second initial center. Specifically, taking the multiple first center intervals as [10,27) as an example, the product of the preset interval indices of each preset value interval [10,11), [11,12), ..., [26,27) within this interval and the corresponding weighted weight (the number of sampling amplitude values ​​in each preset value interval) can be calculated. The weighted average can be obtained by (∑ preset interval indices corresponding to each preset interval * weighted weight) / ∑ weighted weight. For example, the weighted average is 13.55, and this weighted average of 13.55 can be used as the second initial center.

[0061] In step S207, when the center offset information between multiple first initial centers and second initial centers is less than a preset offset threshold, the amplitude range is divided based on the overlap ratio between the second initial center and the preset interval to obtain the second center interval. In a specific embodiment, the center offset information can be the offset between multiple first initial centers and corresponding second initial centers. Optionally, if the center offset information corresponding to the second initial center is less than a preset offset threshold, then convergence is determined. Optionally, the amplitude range can be evenly divided by combining the preset interval overlap ratio and the second initial center to obtain the second center interval, such that the overlap ratio of adjacent second center intervals with the second initial center as the midpoint of the interval is the preset interval overlap ratio, and the upper limit value and lower limit value of the interval corresponding to each second center interval are determined.

[0062] In an optional embodiment, the above method may further include: When the center offset information reaches the preset offset threshold, the system jumps to multiple first initial centers, divides the amplitude value range, and obtains multiple first center intervals.

[0063] In a specific embodiment, taking the center offset information as the offset amount as an example, if the offset amount is greater than the preset offset threshold, it is determined that the convergence has not been achieved, and multiple first center intervals can be re-divided.

[0064] In the above embodiments, by using the weighted average of multiple first center intervals as the second initial center, the center is made to better fit the actual signal distribution. Furthermore, when the offset between the second initial center and the multiple first initial centers is less than a preset threshold, the second center interval is obtained based on the second initial center, which has a stronger ability to suppress noise and improves the stability of signal quality parameters.

[0065] In step S209, the level decision feature corresponding to the target signal is determined based on the preset interval number corresponding to the preset value interval within the weighted weight and the second central interval. In a specific embodiment, the level decision feature can be the signal feature corresponding to the target signal. Specifically, the level decision feature can include the level center corresponding to the target signal and the decision center threshold corresponding to the target signal.

[0066] In an optional embodiment, the determination of the level decision feature corresponding to the target signal based on the preset interval number corresponding to the preset value interval within the weighted weight and the second central interval may include: Based on the weighted weights and the preset interval numbers corresponding to the preset value intervals within the second central interval, the interval statistical characteristics corresponding to the second central interval are obtained. Based on interval statistical characteristics, the initial level and initial decision center are obtained; The initial level and initial decision center are format-converted to obtain the level decision characteristics.

[0067] In a specific embodiment, the interval statistical feature can be the statistical feature corresponding to the second central interval. The interval statistical feature can include an interval weighted feature and an interval standard deviation feature. Optionally, the weighted feature can be a weighted mean, and the interval standard deviation feature can be a weighted standard deviation. Within the second central interval, the weighted mean and weighted standard deviation can be calculated separately based on the weighting weights. Specifically, the weighted mean can be obtained by combining the weighting weights and weighting a preset value interval within the second central interval. We obtain the weighted standard deviation, where, For weighted average, For weighted weights, The preset interval number is the preset value interval corresponding to the preset value interval within the second central interval. Optionally, the weighted mean is used as the optimal central estimate of the initial level, and the weighted standard deviation represents the degree of dispersion of the initial level distribution.

[0068] In a specific embodiment, the initial level can be the level to be restored corresponding to the target signal. Specifically, the initial level can include a preset number of initial levels, and the initial decision center can be the decision center to be restored corresponding to the target signal.

[0069] In one specific embodiment, the initial level and initial decision center are ADC (Analog-to-Digital Converter) sampled values. By converting the initial level and initial decision center to dBm format, level decision characteristics that can be directly used for measurement and analysis can be obtained.

[0070] In the above embodiments, the initial level and initial decision center corresponding to the target signal are calculated by using the interval statistical characteristics of the interval corresponding to the second initial center after convergence. Combined with the amplitude value range to restore the true amplitude, the fully automatic, high-precision and high-robust extraction of multi-level signal levels and decision centers can be realized, providing a guarantee for the calculation of signal quality parameters.

[0071] In an optional embodiment, obtaining the initial level and initial decision center based on the interval statistical characteristics may include: The initial level is obtained based on the interval statistical characteristics; Based on the interval weighting feature and the interval standard deviation feature, the initial level interval with a preset number of levels is obtained; Determine the lower limit of the preceding initial level interval and the upper limit of the following initial level interval for each adjacent initial level interval; The initial decision center is obtained based on the lower limit and upper limit of the interval.

[0072] In a specific embodiment, taking the weighted feature as the weighted mean and the interval standard deviation feature as the weighted standard deviation as an example, optionally, the weighted mean can be used as the initial level. This can be achieved by calculating the upper and lower limits of multiple initial level intervals. The lower limit is the weighted mean minus the weighted standard deviation, and the upper limit is the weighted mean plus the weighted standard deviation. For each group of adjacent initial levels, the upper limit of the previous initial level and the lower limit of the next initial level are used as references, and the midpoint between the two is taken as the initial decision center.

[0073] In the above embodiments, by using the weighted average as the initial level and determining the initial decision center based on the transition region of the two level distributions, the decision error caused by noise and amplitude fluctuations can be minimized, the initial level and decision center can be accurately obtained, and the accuracy of signal quality parameters can be improved.

[0074] In step S2011, based on the level decision characteristics, the signal quality parameters corresponding to the target signal are displayed on the target oscilloscope.

[0075] In a specific embodiment, signal quality parameters can characterize the signal quality of the target signal. Optionally, signal quality parameters may include TDECQ (Transmitter and Dispersion Eye Closure Quaternary) and OMA (Optical Modulation Amplitude). Specifically, level decision features may include the level corresponding to the target signal and the decision center corresponding to the target signal. The OMA can be obtained by subtracting the minimum level from the maximum level corresponding to the target signal. TQECQ can be obtained based on the OMA and the signal noise corresponding to the target signal.

[0076] As can be seen from the technical solutions provided in the embodiments of this specification above, this specification obtains the sampling amplitude value of the target signal acquired by the target oscilloscope, the amplitude range corresponding to the sampling amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampling amplitude values ​​within the corresponding preset value interval; the amplitude range is divided using multiple first initial centers as multiple interval centers to obtain multiple first center intervals; based on the weighting weight, the preset interval numbers corresponding to the preset value intervals within the multiple first center intervals are weighted. The weighting process yields a second initial center. If the center offset information between multiple first and second initial centers is less than a preset offset threshold, the amplitude range is divided based on the overlap ratio between the second initial center and a preset interval to obtain a second center interval. Based on the weighted weights and the preset interval number corresponding to the preset value interval within the second center interval, the level decision characteristics corresponding to the target signal are determined. Based on these level decision characteristics, the signal quality parameters corresponding to the target signal are displayed on the target oscilloscope. This improves the accuracy of level measurement and detection consistency, meeting the high-precision, high-stability level extraction requirements in oscilloscope parameter measurement scenarios, thereby ensuring the accuracy of signal parameter measurement.

[0077] Figure 3 This is a block diagram of a data processing apparatus according to an exemplary embodiment. (Refer to...) Figure 3 The device includes: The first acquisition module 310 is used to acquire the sampling amplitude value of the target signal collected by the target oscilloscope, the amplitude range corresponding to the sampling amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; the multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampling amplitude values ​​in the corresponding preset value interval. The first interval acquisition module 330 is used to divide the amplitude value range based on multiple first initial centers to obtain multiple first center intervals; The center acquisition module 350 is used to perform weighted processing on the preset interval numbers corresponding to preset value intervals within multiple first center intervals based on weighted weights, so as to obtain the second initial center. The second interval acquisition module 370 is used to divide the amplitude value range based on the overlap ratio of the second initial center and the preset interval when the center offset information between multiple first initial centers and second initial centers is less than a preset offset threshold, and obtain the second center interval. The second acquisition module 390 is used to determine the level decision feature of the target signal based on the preset interval number corresponding to the preset value interval within the weighted weight and the preset value interval in the second central interval. Display module 3110 is used to display the signal quality parameters corresponding to the target signal on the target oscilloscope based on the level decision characteristics.

[0078] In an optional embodiment, the multiple preset value intervals are obtained by equally dividing the amplitude value range based on the preset interval width; the second acquisition module 390 includes: The interval statistical feature acquisition unit is used to obtain the interval statistical features corresponding to the second central interval based on the preset interval number corresponding to the preset value interval within the second central interval and the weighted weight. The first acquisition unit is used to obtain the initial level and the initial decision center based on the interval statistical characteristics; The format conversion unit is used to convert the initial level and the initial decision center to obtain the level decision characteristics.

[0079] In an optional embodiment, the interval statistical features include interval weighted features and interval standard deviation features, and the initial level includes an initial level of a preset number of levels; the first acquisition unit includes: The initial level acquisition sub-unit is used to obtain the initial level based on interval statistical characteristics; The initial level interval acquisition sub-unit is used to obtain the initial level interval corresponding to the preset number of levels based on the interval weighting feature and the interval standard deviation feature; The first determining unit is used to determine the lower limit value of the previous initial level interval and the upper limit value of the next initial level interval for each adjacent initial level interval in the initial level interval. The initial decision center is obtained from the sub-cell, which is used to obtain the initial decision center based on the lower limit and upper limit of the interval.

[0080] In an optional embodiment, multiple first initial centers are obtained in the following manner: The candidate center set acquisition module is used to acquire the candidate center set; the candidate center set includes multiple preset interval numbers; The first selected center determination module is used to determine the first selected center from multiple preset interval numbers and put it into the selected center set based on weighted weights. The second selected center determination module is used to determine the second selected center from the set of candidate centers based on the set of selected centers, the set of candidate centers and the weighted weight. The selected center set update module is used to add the second selected center to the selected center set; The repetitive execution module is used to repeatedly execute the following steps: determining a second selected center from the set of candidate centers based on the selected center set, the candidate center set, and the weighted weight; and adding the second selected center to the selected center set, until the number of selected centers in the selected center set reaches a preset level. The first initial center acquisition module is used to obtain multiple first initial centers based on the selected centers in the selected center set.

[0081] In an optional embodiment, the second selected center determination module includes: The center distance information calculation unit is used to calculate the center distance information between each candidate center in the candidate center set and each selected center in the selected center set; The candidate center score acquisition unit is used to obtain the candidate center score for each candidate center based on the weighted weight corresponding to each candidate center and the center distance information corresponding to each candidate center; The second selected center acquisition unit is used to select the candidate center with the highest score among the candidate center scores as the second selected center.

[0082] In an optional embodiment, the above-described apparatus further includes: The jump module is used to jump to multiple first center intervals based on multiple first initial centers, dividing the amplitude value range, when the center offset information reaches a preset offset threshold.

[0083] In an optional embodiment, the sampled amplitude value includes multiple amplitude values; the above-described apparatus further includes: The preset value range acquisition module is used to divide the amplitude value range based on the preset range width to obtain multiple preset value ranges; The amplitude value mapping module is used to map multiple amplitude values ​​to multiple preset value intervals based on the amplitude value range corresponding to each preset value interval. The amplitude value mapping quantity determination module is used to determine the number of amplitude value mappings from multiple amplitude values ​​to each preset value interval. The weighted weight acquisition module is used to obtain the weighted weight based on the number of amplitude value mappings and the preset interval number corresponding to each preset value interval.

[0084] In an optional embodiment, the first acquisition module 310 includes: An initial sampling amplitude value acquisition unit is used to acquire the initial sampling amplitude value of the target signal; An abnormal amplitude value identification unit is used to identify abnormal amplitude values ​​in the initial sampled amplitude values; The abnormal amplitude value removal unit is used to remove abnormal amplitude values ​​from the initial sampled amplitude values ​​to obtain the sampled amplitude values.

[0085] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0086] Figure 4 This is a block diagram illustrating an electronic device for data processing according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown, this electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a data processing method. Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements. In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the data processing method as described in the embodiments of this disclosure.

[0087] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data processing method of the present disclosure embodiments.

[0088] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0089] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that, include: The system acquires the sampled amplitude value of the target signal acquired by the target oscilloscope, the amplitude range corresponding to the sampled amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; the multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampled amplitude values ​​within the corresponding preset value interval; the multiple first initial centers are obtained based on the weighting weights and the multiple preset interval numbers. Based on the plurality of first initial centers, the range of amplitude values ​​is divided to obtain a plurality of first center intervals; Based on the weighted weights, the preset interval numbers corresponding to the preset value intervals within the plurality of first center intervals are weighted to obtain the second initial center; If the center offset information between the plurality of first initial centers and the second initial centers is less than a preset offset threshold, the amplitude value range is divided based on the overlap ratio between the second initial center and the preset interval to obtain the second center interval; Based on the weighted weight and the preset interval number corresponding to the preset value interval within the second central interval, the level decision feature corresponding to the target signal is determined; Based on the level decision characteristics, the signal quality parameters corresponding to the target signal are displayed on the target oscilloscope.

2. The data processing method according to claim 1, characterized in that, The plurality of preset value intervals are obtained by equally dividing the amplitude value range based on a preset interval width; the determination of the level decision feature corresponding to the target signal based on the weighted weight and the preset interval number corresponding to the preset value interval within the second central interval includes: Based on the weighted weights and the preset interval number corresponding to the preset value interval within the second central interval, the interval statistical characteristics corresponding to the second central interval are obtained. Based on the aforementioned interval statistical characteristics, the initial level and the initial decision center are obtained; The initial level and the initial decision center are format-converted to obtain the level decision feature.

3. The data processing method according to claim 2, characterized in that, The interval statistical features include interval weighted features and interval standard deviation features, and the initial level includes a preset number of initial levels; The process of obtaining the initial level and initial decision center based on the interval statistical characteristics includes: The initial level is obtained based on the aforementioned interval statistical characteristics; Based on the interval weighted features and the interval standard deviation features, the initial level interval corresponding to the preset number of levels is obtained; Determine the lower limit of the preceding initial level interval and the upper limit of the following initial level interval for each adjacent initial level interval in the initial level interval; The initial decision center is obtained based on the lower limit and the upper limit of the interval.

4. The data processing method according to claim 1, characterized in that, The plurality of first initial centers are obtained in the following manner: Obtain the set of candidate centers; the set of candidate centers includes the plurality of preset interval numbers; Based on the weighted weights, the first selected center is determined from the multiple preset interval numbers and placed into the selected center set; Based on the selected center set, the candidate center set, and the weighted weight, a second selected center is determined from the candidate center set; Add the second selected center to the set of selected centers; Repeat the process of determining a second selected center from the set of candidate centers based on the selected center set, the set of candidate centers, and the weighted weight; until the second selected center is added to the selected center set, until the number of selected centers in the selected center set reaches a preset level number; Based on the selected centers in the selected center set, the plurality of first initial centers are obtained.

5. The data processing method according to claim 4, characterized in that, The step of determining the second selected center from the set of candidate centers based on the selected center set, the set of candidate centers, and the weighted weight includes: Calculate the center distance information between each candidate center in the candidate center set and each selected center in the selected center set; Based on the weighted weight and center distance information corresponding to each candidate center, a candidate center score is obtained for each candidate center; The candidate center with the highest score among the candidate center scores is selected as the second selected center.

6. The data processing method according to claim 1, characterized in that, The method further includes: When the center offset information reaches the preset offset threshold, the process jumps to dividing the amplitude value range based on the multiple first initial centers to obtain multiple first center intervals.

7. The data processing method according to claim 1, characterized in that, The sampling amplitude value includes multiple amplitude values; the method further includes: Based on the preset interval width, the range of amplitude values ​​is divided to obtain the multiple preset value intervals; Based on the amplitude range corresponding to each of the plurality of preset value intervals, the plurality of amplitude values ​​are mapped to the plurality of preset value intervals according to the amplitude values; Determine the number of amplitude values ​​mapped to each of the multiple preset value intervals; The weighting weight is obtained based on the number of amplitude value mappings and the preset interval number corresponding to each preset value interval.

8. The data processing method according to claim 1, characterized in that, The acquisition of the sampling amplitude value of the target signal collected by the target oscilloscope includes: Obtain the initial sampling amplitude value of the target signal; Identify abnormal amplitude values ​​in the initial sampled amplitude values; The abnormal amplitude value is removed from the initial sampled amplitude value to obtain the sampled amplitude value.

9. A data processing apparatus, characterized in that, include: The first acquisition module is used to acquire the sampling amplitude value of the target signal collected by the target oscilloscope, the amplitude range corresponding to the sampling amplitude value, multiple preset value intervals corresponding to the amplitude range, and multiple first initial centers corresponding to the target signal; the multiple preset value intervals correspond to multiple preset interval numbers; the weighting weight corresponding to the preset interval number is the number of sampling amplitude values ​​within the corresponding preset value interval. The first interval acquisition module is used to divide the amplitude value range based on the plurality of first initial centers to obtain a plurality of first center intervals; The center acquisition module is used to perform weighted processing on the preset interval numbers corresponding to the preset value intervals within the plurality of first center intervals based on the weighted weights, so as to obtain the second initial center; The second interval acquisition module is used to divide the amplitude value range based on the overlap ratio between the second initial center and the preset interval when the center offset information between the plurality of first initial centers and the second initial center is less than a preset offset threshold, so as to obtain the second center interval. The second acquisition module is used to determine the level decision feature corresponding to the target signal based on the weighted weight and the preset interval number corresponding to the preset value interval in the second central interval; The display module is used to display the signal quality parameters corresponding to the target signal on the target oscilloscope based on the level decision characteristics.

10. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the data processing method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the data processing method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Network isolation method and device, storage medium and electronic equipment

    CN115277116A

  • Transformer area load decomposition method based on user grouping and related device

    CN119128579A