[go: up one dir, main page]

CN116319475A - A signal analysis method, device, equipment and storage medium - Google Patents

A signal analysis method, device, equipment and storage medium Download PDF

Info

Publication number
CN116319475A
CN116319475A CN202310260887.7A CN202310260887A CN116319475A CN 116319475 A CN116319475 A CN 116319475A CN 202310260887 A CN202310260887 A CN 202310260887A CN 116319475 A CN116319475 A CN 116319475A
Authority
CN
China
Prior art keywords
signal
pcie
tested
channel
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310260887.7A
Other languages
Chinese (zh)
Inventor
陈晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310260887.7A priority Critical patent/CN116319475A/en
Publication of CN116319475A publication Critical patent/CN116319475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application relates to the technical field of signal testing, in particular to a signal analysis method, a device, equipment and a storage medium, aiming at improving the speed of PCIE signal consistency analysis. The method comprises the following steps: loading a signal acquisition script into a server to be tested; when a channel information checking instruction aiming at a server to be tested is received, channel information of all PCIE channels corresponding to a CPU in the server to be tested is obtained through a signal acquisition script; determining PCIE channels to be tested from all PCIE channels according to the channel information; when a rate switching instruction aiming at the PCIE channel to be tested is received, switching the signal transmission rate of the PCIE channel to be tested to a target signal transmission rate corresponding to the rate switching instruction through a signal acquisition script; acquiring a signal waveform diagram of a PCIE channel to be tested at a target signal transmission rate; and according to the signal waveform diagram, carrying out signal analysis on the PCIE channel to be tested to obtain a signal analysis result.

Description

一种信号分析方法、装置、设备及存储介质A signal analysis method, device, equipment and storage medium

技术领域technical field

本申请实施例涉及信号测试技术领域,具体而言,涉及一种信号分析方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of signal testing, and in particular, to a signal analysis method, device, device, and storage medium.

背景技术Background technique

PCIE(Peripheral Component Interconnect Express,高速串行计算机扩展准线标准)是当今使用十分广泛的一种数据传输方式,计算机的CPU通过PCIE向对应的设备传输数据,PCIE的信号一致性分析有助于保证PCIE的数据传输的安全性和稳定性,是一项十分重要的工作,对PCIE信号进行信号一致性分析时,需要采集各个速率下的信号波形图进行对应的分析。现有技术中对PCIE进行信号一致性分析时,需要使用带有触发功能的多通道高速示波器连接至被检测设备,示波器向被检测设备发出一定频率的脉冲信号,实现PCIE通道内信号发送速率的切换,进而采集PCIE通道在各个信号发送速率下的信号波形图,完成PCIE的信号一致性分析。PCIE (Peripheral Component Interconnect Express, high-speed serial computer extended alignment standard) is a data transmission method that is widely used today. The CPU of the computer transmits data to the corresponding device through PCIE. The signal consistency analysis of PCIE helps to ensure The security and stability of PCIE data transmission is a very important task. When analyzing the signal consistency of PCIE signals, it is necessary to collect signal waveforms at various rates for corresponding analysis. When performing signal consistency analysis on PCIE in the prior art, it is necessary to use a multi-channel high-speed oscilloscope with a trigger function to connect to the tested device, and the oscilloscope sends a pulse signal of a certain frequency to the tested device to realize the signal transmission rate in the PCIE channel. Switch, and then collect the signal waveform diagram of the PCIE channel at each signal transmission rate, and complete the signal consistency analysis of PCIE.

在进行PCIE的信号一致性分析时,如果连接的示波器没有触发功能,则无法进行PCIE信号的一致性分析,进而影响信号分析的效率。When performing PCIE signal consistency analysis, if the connected oscilloscope does not have a trigger function, the PCIE signal consistency analysis cannot be performed, thereby affecting the efficiency of signal analysis.

发明内容Contents of the invention

本申请实施例提供一种信号分析方法、装置、设备及存储介质,旨在提升PCIE信号一致性分析的速度。Embodiments of the present application provide a signal analysis method, device, device, and storage medium, aiming at improving the speed of PCIE signal consistency analysis.

本申请实施例第一方面提供一种信号分析方法,所述方法包括:The first aspect of the embodiment of the present application provides a signal analysis method, the method comprising:

将预先编写的信号采集脚本加载至待测服务器中,所述信号采集脚本用于根据接收到的指令,执行针对所述待测服务器的PCIE信号采集的相关任务;The pre-written signal acquisition script is loaded into the server under test, and the signal acquisition script is used to perform relevant tasks for the PCIE signal acquisition of the server under test according to the received instruction;

当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息;When receiving the channel information viewing instruction for the server to be tested, obtain the channel information of all PCIE channels corresponding to the CPU in the server to be tested by the signal acquisition script;

根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道;Determine the PCIE channel to be tested from all the PCIE channels according to the channel information;

当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率;When receiving the rate switching instruction for the PCIE channel to be tested, the signal transmission rate of the PCIE channel to be tested is switched to the target signal transmission rate corresponding to the rate switching instruction by the signal acquisition script;

获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图;Obtain the signal waveform diagram of the PCIE channel to be tested at the target signal transmission rate;

根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果。According to the signal waveform diagram, signal analysis is performed on the PCIE channel to be tested, and a signal analysis result is obtained.

可选地,在通过所述信号采集脚本获取待测服务器中的CPU对应的所有的PCIE通道的通道信息之前,所述方法还包括:Optionally, before obtaining the channel information of all PCIE channels corresponding to the CPU in the server to be tested through the signal acquisition script, the method further includes:

将PC设备连接至所述待测服务器;PC equipment is connected to the server to be tested;

通过所述PC设备控制所述待测服务器运行所述信号采集脚本。The PC device is used to control the server under test to run the signal collection script.

可选地,所述当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息,包括:Optionally, when the channel information viewing instruction for the server under test is received, the channel information of all PCIE channels corresponding to the CPU in the server under test is obtained through the signal acquisition script, including:

当接收到所述通道信息查看指令时,通过所述信号采集脚本执行所述信息查看指令,对所述PCIE通道进行通道扫描;When receiving the channel information viewing instruction, execute the information viewing instruction through the signal acquisition script, and perform channel scanning on the PCIE channel;

根据扫描得到的所述PCIE通道的连接状态以及当前信号发送速率,生成所述PCIE通道的通道信息。Generate the channel information of the PCIE channel according to the connection status and the current signal transmission rate of the PCIE channel obtained through scanning.

可选地,所述根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道,包括:Optionally, according to the channel information, determining the PCIE channel to be tested from all the PCIE channels includes:

根据所述通道信息,确定所述所有的PCIE通道中的每个PCIE通道的连接状态;According to the channel information, determine the connection status of each PCIE channel in all the PCIE channels;

将连接状态为连接有效的PCIE通道作为所述待测试PCIE通道。The PCIE channel whose connection status is valid is used as the PCIE channel to be tested.

可选地,所述当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率,包括:Optionally, when the rate switching instruction for the PCIE channel to be tested is received, the signal transmission rate of the PCIE channel to be tested is switched to the target corresponding to the rate switching instruction through the signal acquisition script Signaling rate, including:

根据所述速率切换指令,确定所述PCIE通道的目标信号传输速率;According to the rate switching instruction, determine the target signal transmission rate of the PCIE channel;

通过所述信号采集脚本调用所述CPU的PCIE通道速率调整模块,将所述PCIE通道的信号传输速率调整至所述目标信号传输速率。The PCIE channel rate adjustment module of the CPU is invoked by the signal acquisition script to adjust the signal transmission rate of the PCIE channel to the target signal transmission rate.

可选地,所述获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图,包括:Optionally, the acquisition of the signal waveform of the PCIE channel to be tested at the target signal transmission rate includes:

将所述待测试PCIE通道的信号以所述目标信号传输速率传输至预先连接在所述待测服务器上的示波器中;The signal of the PCIE channel to be tested is transmitted to the oscilloscope pre-connected on the server to be tested with the target signal transmission rate;

通过所述示波器,根据所述待测试PCIE通道的信号,生成所述信号对应的信号波形图。Through the oscilloscope, according to the signal of the PCIE channel to be tested, a signal waveform diagram corresponding to the signal is generated.

可选地,所述根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果,包括:Optionally, according to the signal waveform diagram, the PCIE channel to be tested is subjected to signal analysis to obtain signal analysis results, including:

将所述信号波形图与预先存储的标准信号波形图进行对比,得到波形对比结果;Comparing the signal waveform diagram with a pre-stored standard signal waveform diagram to obtain a waveform comparison result;

根据预先设置的信号分析规则,结合所述波形图对比结果,得到所述信号分析结果。The signal analysis result is obtained according to the preset signal analysis rule and combined with the comparison result of the waveform diagram.

本申请实施例第二方面提供一种信号分析装置,所述装置包括:The second aspect of the embodiment of the present application provides a signal analysis device, the device includes:

文件加载模块,用于将预先编写的信号采集脚本加载至待测服务器中,所述信号采集脚本用于根据接收到的指令,执行针对所述待测服务器的PCIE信号采集的相关任务;The file loading module is used to load the pre-written signal acquisition script into the server to be tested, and the signal acquisition script is used to perform relevant tasks for the PCIE signal acquisition of the server to be tested according to the received instruction;

通道信息获取模块,用于当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息;The channel information acquisition module is used to obtain the channel information of all PCIE channels corresponding to the CPU in the server to be tested by the signal acquisition script when receiving the channel information viewing instruction for the server to be tested;

待测试通道确定模块,用于根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道;The channel to be tested determination module is used to determine the PCIE channel to be tested from all the PCIE channels according to the channel information;

速率切换模块,用于当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率;The rate switch module is used to switch the signal transmission rate of the PCIE channel to be tested to the target corresponding to the rate switch command through the signal acquisition script when receiving the rate switch command for the PCIE channel to be tested Signal transmission rate;

信号波形图获取模块,用于获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图;Signal waveform diagram acquisition module, used to obtain the signal waveform diagram of the PCIE channel to be tested under the target signal transmission rate;

信号分析结果获取模块,用于根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果。The signal analysis result acquisition module is used to perform signal analysis on the PCIE channel to be tested according to the signal waveform diagram to obtain a signal analysis result.

可选地,所述装置还包括:Optionally, the device also includes:

设备连接模块,用于将PC设备连接至所述待测服务器;A device connection module, configured to connect a PC device to the server to be tested;

程序运行模块,用于通过所述PC设备控制所述待测服务器运行所述信号采集脚本。A program running module, configured to control the server under test to run the signal collection script through the PC device.

可选地,所述通道信息获取模块包括:Optionally, the channel information acquisition module includes:

通道扫描子模块,用于当接收到所述通道信息查看指令时,通过所述信号采集脚本执行所述信息查看指令,对所述PCIE通道进行通道扫描;The channel scanning submodule is used to perform channel scanning on the PCIE channel by executing the information checking command through the signal acquisition script when the channel information checking command is received;

通道信息生成子模块,用于根据扫描得到的所述PCIE通道的连接状态以及当前信号发送速率,生成所述PCIE通道的通道信息。The channel information generation sub-module is used to generate the channel information of the PCIE channel according to the connection state of the PCIE channel obtained through scanning and the current signal transmission rate.

可选地,所述待测试通道确定模块包括:Optionally, the channel to be tested determination module includes:

连接状态确定子模块,用于根据所述通道信息,确定所述所有的PCIE通道中的每个PCIE通道的连接状态;A connection status determination submodule, configured to determine the connection status of each PCIE channel in all the PCIE channels according to the channel information;

待测试通道确定子模块,用于将连接状态为连接有效的PCIE通道作为所述待测试PCIE通道。The submodule for determining the channel to be tested is used to use the PCIE channel whose connection status is valid as the PCIE channel to be tested.

可选地,所述速率切换模块包括:Optionally, the rate switching module includes:

目标信号传输速率确定子模块,用于根据所述速率切换指令,确定所述PCIE通道的目标信号传输速率;The target signal transmission rate determination submodule is used to determine the target signal transmission rate of the PCIE channel according to the rate switching instruction;

速率切换子模块,用于通过所述信号采集脚本调用所述CPU的PCIE通道速率调整模块,将所述PCIE通道的信号传输速率调整至所述目标信号传输速率。The rate switching sub-module is used to call the PCIE channel rate adjustment module of the CPU through the signal acquisition script, and adjust the signal transmission rate of the PCIE channel to the target signal transmission rate.

可选地,所述信号波形图获取模块包括:Optionally, the signal waveform acquisition module includes:

信号传输子模块,用于将所述待测试PCIE通道的信号以所述目标信号传输速率传输至预先连接在所述待测服务器上的示波器中;The signal transmission submodule is used to transmit the signal of the PCIE channel to be tested to the oscilloscope pre-connected on the server to be tested at the target signal transmission rate;

信号波形图生成子模块,用于通过所述示波器,根据所述待测试PCIE通道的信号,生成所述信号对应的信号波形图。The signal waveform diagram generation submodule is used to generate a signal waveform diagram corresponding to the signal according to the signal of the PCIE channel to be tested through the oscilloscope.

可选地,所述信号分析结果获取模块包括:Optionally, the signal analysis result acquisition module includes:

波形对比结果获取子模块,用于将所述信号波形图与预先存储的标准信号波形图进行对比,得到波形对比结果;The waveform comparison result acquisition sub-module is used to compare the signal waveform diagram with the pre-stored standard signal waveform diagram to obtain the waveform comparison result;

信号分析结果获取子模块,用于根据预先设置的信号分析规则,结合所述波形图对比结果,得到所述信号分析结果。The signal analysis result acquisition sub-module is used to obtain the signal analysis result according to the preset signal analysis rules and in combination with the comparison result of the waveform diagram.

本申请实施例第三方面提供一种可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,实现如本申请第一方面所述的方法中的步骤。The third aspect of the embodiment of the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.

本申请实施例第四方面提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现本申请第一方面所述的方法的步骤。The fourth aspect of the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the first aspect of the present application is realized. The steps of the method described in the aspect.

采用本申请提供的信号分析方法,将预先编写的信号采集脚本加载至待测服务器中,所述信号采集脚本用于根据接收到的指令,执行针对所述待测服务器的PCIE信号采集的相关任务;当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息;根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道;当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率;获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图;根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果。本申请中,预先编写了用于执行PCIE信号采集的信号采集脚本,将信号采集脚本加载至待测服务器中,在对待测服务器的PCIE信号进行分析时,运行信号采集脚本,获取待测服务器中的CPU对应的所有PCIE通道的通道信息,根据该通道信息,确定待测的PCIE通道,通过信号采集脚本将待测试PCIE通道的信号传输速率切换至速率切换指令对应的目标信号传输速率,之后再对PCIE通道进行信号采集,得到PCIE通道的在目标信号传输速率下的信号波形图,对该信号波形图进行分析,得到PCIE信号一致性的分析结果,不需要通过带有触发功能的示波器发送脉冲信号进行信号速率的切换,只需要通过向待测服务器发送指令,运行信号测试脚本即可将PCIE通道的信号发送速率切换至任意的信号发送速率,节省了信号分析时信号采集的时间,提升了PCIE信号一致性分析的速度。Using the signal analysis method provided by the present application, the pre-written signal acquisition script is loaded into the server under test, and the signal acquisition script is used to perform related tasks for the PCIE signal acquisition of the server under test according to the received instructions ; When receiving the channel information check instruction for the server to be tested, obtain the channel information of all PCIE channels corresponding to the CPU in the server to be tested by the signal acquisition script; according to the channel information, from all the Determine the PCIE channel to be tested in the PCIE channel; when receiving the rate switching instruction for the PCIE channel to be tested, the signal transmission rate of the PCIE channel to be tested is switched to the rate switching instruction by the signal acquisition script Corresponding target signal transmission rate; Obtain the signal waveform diagram of the PCIE channel to be tested under the target signal transmission rate; According to the signal waveform diagram, carry out signal analysis to the PCIE channel to be tested, and obtain the signal analysis result. In this application, a signal acquisition script for performing PCIE signal acquisition is pre-written, and the signal acquisition script is loaded into the server to be tested, and when the PCIE signal of the server to be tested is analyzed, the signal acquisition script is run to obtain the The channel information of all PCIE channels corresponding to the CPU, according to the channel information, determine the PCIE channel to be tested, switch the signal transmission rate of the PCIE channel to be tested to the target signal transmission rate corresponding to the rate switching instruction through the signal acquisition script, and then Perform signal acquisition on the PCIE channel to obtain the signal waveform diagram of the PCIE channel at the target signal transmission rate, analyze the signal waveform diagram, and obtain the analysis result of the PCIE signal consistency, without sending pulses through an oscilloscope with a trigger function To switch the signal rate of the signal, you only need to send instructions to the server under test and run the signal test script to switch the signal transmission rate of the PCIE channel to any signal transmission rate, which saves the time of signal acquisition during signal analysis and improves The speed of PCIE signal consistency analysis.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1是本申请一实施例提出的信号分析方法的流程图;Fig. 1 is the flow chart of the signal analysis method that an embodiment of the present application proposes;

图2是本申请一实施例提出的PCIE通道扫描结果图;Fig. 2 is the PCIE channel scanning result figure that an embodiment of the present application proposes;

图3是需要触发通道的PCIE信号测试连线图;Figure 3 is a wiring diagram of the PCIE signal test that needs to trigger the channel;

图4是本申请一实施例提出的PCIE脚本指令图;Fig. 4 is the PCIE script instruction figure that an embodiment of the present application proposes;

图5是本申请一实施例提出的信号分析装置的示意图。FIG. 5 is a schematic diagram of a signal analysis device proposed by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

参考图1,图1是本申请一实施例提出的信号分析方法的流程图。如图1所示,该方法包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flowchart of a signal analysis method proposed by an embodiment of the present application. As shown in Figure 1, the method includes the following steps:

S11:将预先编写的信号采集脚本加载至待测服务器中,所述信号采集脚本用于根据接收到的指令,执行针对所述待测服务器的PCIE信号采集的相关任务。S11: Load a pre-written signal acquisition script into the server under test, the signal acquisition script is used to execute related tasks of PCIE signal acquisition for the server under test according to the received instruction.

本实施例中,信号采集脚本是为了PCIE(Peripheral Component InterconnectExpress,高速串行计算机扩展准线标准)信号的采集任务编写的程序指令合集,运行该脚本,输入对应的指令即可通过该脚本调用计算机中对应的模块执行该指令。PCIE信号是待测服务器的CPU(central processing unit,中央处理器)上的PCIE通道发送的信号,待测服务器是待测的目标设备,该设备中的CPU上包含若干条PCIE通道。In this embodiment, the signal acquisition script is a collection of program instructions written for the acquisition task of the PCIE (Peripheral Component InterconnectExpress, high-speed serial computer extended alignment standard) signal, run the script, and input the corresponding instruction to call the computer through the script The corresponding module in executes the instruction. The PCIE signal is a signal sent by the PCIE channel on the CPU (central processing unit, central processing unit) of the server to be tested. The server to be tested is the target device to be tested, and the CPU in the device includes several PCIE channels.

本实施例中,针对需要执行的PCIE信号采集的相关任务,通过程序语言编写信号采集脚本,将编写好的脚本文件存储至待测服务器中,运行该脚本就可以执行对应的信号采集任务。In this embodiment, for the relevant tasks of PCIE signal acquisition that need to be performed, a signal acquisition script is written by a programming language, and the written script file is stored in the server to be tested, and the corresponding signal acquisition task can be performed by running the script.

示例地,将信号测试脚本文件从开发者的设备拷贝至移动存储设备中,再将移动存储设备接在待测服务器的接口上,将脚本文件载入待测试服务器中。For example, the signal test script file is copied from the developer's device to a mobile storage device, and then the mobile storage device is connected to the interface of the server to be tested, and the script file is loaded into the server to be tested.

S12:当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息。S12: When the channel information viewing instruction for the server under test is received, acquire the channel information of all PCIE channels corresponding to the CPU in the server under test through the signal collection script.

本实施例中,通道信息查看指令用于触发信号采集脚本,对待测服务器进行PCIE通道扫描,获取当前的待测服务器中的CPU下挂的所有PCIE通道的通道信息。通道信息包括了PCIE通道的名称,编号,连接状态,通道的地址,当前通道的信号传输速率等PCIE通道的相关信息。In this embodiment, the channel information viewing instruction is used to trigger a signal acquisition script to scan the PCIE channel of the server under test to obtain channel information of all PCIE channels connected to the CPU of the current server under test. The channel information includes the PCIE channel's name, number, connection status, channel address, signal transmission rate of the current channel, and other related information of the PCIE channel.

本实施例中,在进行PCIE通道的信号一致性分析时,通过PC端向待测服务器发送信号查看指令,待测服务器接收到信号查看指令时,运行信号测试脚本,该信号测试脚本对CPU中的所有PCIE通道进行通道扫描,得到待测服务器中的CPU对应的所有PCIE通道的通道信息。In this embodiment, when performing the signal consistency analysis of the PCIE channel, the PC terminal sends a signal inspection instruction to the server to be tested, and when the server to be tested receives the signal inspection instruction, it runs a signal test script. All PCIE channels in the server under test are scanned to obtain the channel information of all PCIE channels corresponding to the CPU in the server to be tested.

参考图2,图2是本申请一实施例提出的PCIE通道扫描结果图,例如,在0001:00:01.0-1DEF:E102-Bridge Device-PCI/PcI bridge[x0,GEN 1](Link down)(s0 RC1.0)中,0001:00:00.0是PCIE通道的domain:b:d.f地址即PCIE通道在待测服务器中的地址,1DEF:E102表示了该PCIE通道的通道编号,Bridge Device-PCI/PCI bridge标识通道为PCIE通道,[x0,GEN 1]表示x0通道的速度为GEN1,GEN1是速度等级,各个速度等级对应不同的信号传输速率。(Link down)表示连接状态为未连接),(S0 RC1.0)表示0号CPU上的物理通道RC1.0。通过对待测服务器进行通道扫描,可以获取待测服务器中的CPU对应的所有PCIE通道的通道信息,并将通道信息整理显示在操作窗口中,形成如图2的显示结果。With reference to Fig. 2, Fig. 2 is the PCIE channel scanning result figure that an embodiment of the present application proposes, for example, at 0001:00:01.0-1DEF:E102-Bridge Device-PCI/PcI bridge[x0, GEN 1](Link down) In (s0 RC1.0), 0001:00:00.0 is the domain:b:d.f address of the PCIE channel, that is, the address of the PCIE channel in the server to be tested, 1DEF:E102 indicates the channel number of the PCIE channel, Bridge Device-PCI /PCI bridge indicates that the channel is a PCIE channel, [x0, GEN 1] indicates that the speed of the x0 channel is GEN1, and GEN1 is a speed grade, and each speed grade corresponds to a different signal transmission rate. (Link down) indicates that the connection status is not connected), (S0 RC1.0) indicates the physical channel RC1.0 on CPU No. 0. Through the channel scanning of the server to be tested, the channel information of all PCIE channels corresponding to the CPU in the server to be tested can be obtained, and the channel information is sorted and displayed in the operation window to form the display result shown in Figure 2.

本实施例中,信息查看指令是在编写信号检测脚本时预先设定好的指令,输入该信息查看指令,就可以通过信号检测脚本进行通道信息的查看。In this embodiment, the information viewing instruction is a pre-set instruction when writing the signal detection script, and the channel information can be checked through the signal detection script by inputting the information viewing instruction.

S13:根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道。S13: Determine the PCIE channel to be tested from all the PCIE channels according to the channel information.

本实施例中,待测试PCIE通道是需要进行信号一致性分析的PCIE通道,该PCIE通道已经连接至示波器中。In this embodiment, the PCIE channel to be tested is a PCIE channel that requires signal consistency analysis, and the PCIE channel has been connected to an oscilloscope.

本实施例中,在PCIE通道信息中可以查看到每个PCIE通道的连接状态,根据PCIE通道的连接状态,可以判断该PCIE通道是否已经与示波器建立了连接,进而从所有的PCIE通道中确定待测试PCIE通道。In this embodiment, the connection status of each PCIE channel can be checked in the PCIE channel information. According to the connection status of the PCIE channel, it can be judged whether the PCIE channel has established a connection with the oscilloscope, and then it is determined from all PCIE channels. Test the PCIE channel.

示例地,查看PCIE通道信息,当PCIE通道信息中显示通道(S0 RC1.0)的连接状态为(link on,连接正常)时,确定(S0 RC1.0)通道为待测试通道。For example, check the PCIE channel information, and when the connection status of the channel (S0 RC1.0) is displayed as (link on, normal connection) in the PCIE channel information, it is determined that the (S0 RC1.0) channel is the channel to be tested.

S14:当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率。S14: When receiving the rate switching instruction for the PCIE channel to be tested, switch the signal transmission rate of the PCIE channel to be tested to the target signal transmission rate corresponding to the rate switching instruction through the signal acquisition script.

本实施例中,速率切换指令用于切换PCIE通道的信号传输速率。目标信号传输速率是需要PCIE通道达到的信号传输速率。In this embodiment, the rate switching instruction is used to switch the signal transmission rate of the PCIE channel. The target signal transmission rate is the signal transmission rate that needs to be achieved by the PCIE channel.

本实施例中,通过PC端向待测服务器发送针对待测试PCIE通道的速率切换指令,待测时服务器运行信号采集脚本,信号采集脚本调用CPU中的信号速率控制模块,对待测试PCIE通道的信号发送速率进行切换。将待测试的PCIE通道的信号发送速率由原来的信号发送速率切换为目标信号发送速率。In this embodiment, send the rate switching instruction for the PCIE channel to be tested to the server under test through the PC end, the server runs the signal acquisition script during the test, and the signal acquisition script calls the signal rate control module in the CPU, and the signal of the PCIE channel to be tested The sending rate is switched. Switch the signal transmission rate of the PCIE channel to be tested from the original signal transmission rate to the target signal transmission rate.

示例地,速率切换指令是在编写信号采集脚本时预先设置好的,例如指令的格式为pci comp<domain:b:d.f><GEN>,具体的,指令pci comp0008:00:07.0 3 7代表的含义是将地址为0008:00:07.0的PCIE通道的信号传输速率切换为GEN3 Preset(预设值)7。Exemplarily, the rate switching instruction is preset when writing the signal acquisition script, for example, the format of the instruction is pci comp<domain:b:d.f><GEN>, specifically, the instruction pci comp0008:00:07.0 3 7 represents The meaning is to switch the signal transmission rate of the PCIE channel whose address is 0008:00:07.0 to GEN3 Preset (preset value) 7.

S15:获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图。S15: Obtain a signal waveform diagram of the PCIE channel to be tested at the target signal transmission rate.

本实施例中,信号波形图是根据PCIE信号生成的该信号对应的波形图,表示了信号传输时的幅值的变化。In this embodiment, the signal waveform diagram is a waveform diagram corresponding to the signal generated according to the PCIE signal, and represents a change in amplitude during signal transmission.

本实施例中,待测服务器上的待测试PCIE通道预先连接了示波器,在控制CPU以目标信号速率发送信号时,示波器对PCIE信号进行采集,根据该信号生成信号波形图。对PCIE通道进行测试时,需要收集在不同的信号发送速率下的信号波形图,以对PCIE通道进行信号一致性的分析。In this embodiment, the PCIE channel to be tested on the server to be tested is pre-connected to an oscilloscope, and when the control CPU sends signals at a target signal rate, the oscilloscope collects the PCIE signal and generates a signal waveform diagram according to the signal. When testing the PCIE channel, it is necessary to collect signal waveforms at different signal transmission rates to analyze the signal consistency of the PCIE channel.

一般进行PCIE信号一致性的分析时,在PCIE总线的物理链路的一个数据通路(Lane)中,由两组差分信号,共4根信号线组成,其中发送端(TX)的部件与接收端(RX)的部件使用一组差分信号连接,该链路也被称为发送端链路,也是接收端的接收链路,而发送端的RX部件与接收端的TX部件使用另一组差分信号进行连接,该链路也被称为发送端接收链路,也是接收端的发送链路。一个PCIE链路可以由多个通路组成。Generally, when analyzing the consistency of PCIE signals, in a data path (Lane) of the physical link of the PCIE bus, it consists of two sets of differential signals, a total of 4 signal lines, in which the components of the transmitting end (TX) and the receiving end (RX) components are connected using a set of differential signals. This link is also called the transmitting end link and is also the receiving link of the receiving end. The RX component at the transmitting end and the TX component at the receiving end are connected using another set of differential signals. This link is also known as the sender receive link, and is also the sender link of the receiver. A PCIE link can consist of multiple lanes.

PCIE链路使用差分信号进行数据传送,一个差分信号由D+和D-两个信号组成,信号接收端通过比较这两个信号的差值,判断发送端发送的是逻辑“1”还是逻辑“0”,与单端信号比,差分信号的抗干扰能力更强,因为差分信号在布线时要求等长,等宽,贴近,同层。因此外部干扰噪声对于两个差分信号是“通值”和“同时”的。其差值在理性情况下为0,对信号的逻辑值产生的影响较小,因此差分信号可以使用更高的总线频率。The PCIE link uses differential signals for data transmission. A differential signal is composed of two signals D+ and D-. The signal receiving end compares the difference between the two signals to determine whether the sending end is sending logic "1" or logic "0". "Compared with single-ended signals, differential signals have stronger anti-interference ability, because differential signals require equal length, equal width, close proximity, and the same layer when wiring. So the external disturbance noise is "passed" and "simultaneously" for the two differential signals. The difference is 0 under rational conditions, and has little influence on the logic value of the signal, so the differential signal can use a higher bus frequency.

当前PCIE已经发展到了GEN5,传输速率高达32Gb/s,GEN6的标准协议也已经发布,为了保证在高速传输数据的发送和接收的稳定执行,通过示波器对PCIE进行信号采集,采集得到PCIE信号在不同信号发送速率下的信号波形图,进而进行信号一致性分析。At present, PCIE has developed to GEN5, the transmission rate is as high as 32Gb/s, and the standard protocol of GEN6 has also been released. In order to ensure the stable execution of the transmission and reception of high-speed transmission data, the PCIE signal is collected through the oscilloscope, and the collected PCIE signal is in different Signal waveform diagram at the signal transmission rate, and then analyze the signal consistency.

参考图3,图3是需要触发通道的PCIE信号测试连线图,图3中显示了传统的PCIE测试时的连接方法,通过带有触发功能的多通道高速示波器,连接待测服务器PCIE插槽的始终信号CLK和TX端信号,并将示波器的触发通道和PCIE待测通道的RX端连接起来,在测试时,示波器的1、3通道采集由CPU发出的PCIE TX信号波形,2、4通道采集由CLK发出的时钟信号波形,触发通道连接到PCIE RX上。该示波器发出200mv的脉冲信号,该信号发送到PCIE通道的RX端,实现TX端信号的速率切换,进而采集信号波形。Refer to Figure 3, Figure 3 is the connection diagram of the PCIE signal test that needs to trigger the channel, Figure 3 shows the connection method of the traditional PCIE test, through a multi-channel high-speed oscilloscope with a trigger function, connect to the PCIE slot of the server to be tested Always signal CLK and TX terminal signals, and connect the trigger channel of the oscilloscope with the RX terminal of the PCIE channel to be tested. During the test, the 1 and 3 channels of the oscilloscope collect the PCIE TX signal waveform sent by the CPU, and the 2 and 4 channels Collect the clock signal waveform sent by CLK, and connect the trigger channel to PCIE RX. The oscilloscope sends out a 200mv pulse signal, which is sent to the RX end of the PCIE channel to realize the rate switching of the TX end signal, and then collect the signal waveform.

本实施例中,不同于图3中的连接方式,无需使用带有发送触发信号功能的示波器,只需要将示波器的通道连接至PCIE插槽的TX端,即可接收PCIE信号,而信号的发送速率是由信号采集脚本控制CPU自行调整的,在信号采集时更加的方便,对示波器的要求大大降低,节省了信号分析的成本,提升了信号分析的速率。In this embodiment, unlike the connection method in Fig. 3, there is no need to use an oscilloscope with the function of sending a trigger signal, and only need to connect the channel of the oscilloscope to the TX end of the PCIE slot to receive the PCIE signal, and the sending of the signal The rate is automatically adjusted by the CPU controlled by the signal acquisition script, which is more convenient during signal acquisition, greatly reduces the requirements for the oscilloscope, saves the cost of signal analysis, and improves the rate of signal analysis.

S16:根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果。S16: Perform signal analysis on the PCIE channel to be tested according to the signal waveform diagram, and obtain a signal analysis result.

本实施例中,在获取了信号波形图后,根据预先设定的PCIE信号的分析规则,对待测试的PCIE通道进行信号一致性分析,得到信号分析结果。In this embodiment, after the signal waveform diagram is obtained, the signal consistency analysis is performed on the PCIE channel to be tested according to the preset analysis rule of the PCIE signal, and the signal analysis result is obtained.

本实施例中,在采集完毕信号波形图之后,通过待测服务器获取该信号波形图,将该信号波形图与预先存储的标准信号波形图进行对比,可以确定采集到的信号波形图中的波形是否有异常,进而根据预设的PCIE信号分析规则,判断该PCIE通道的存在的问题。In this embodiment, after the signal waveform diagram is collected, the signal waveform diagram is obtained by the server to be tested, and the signal waveform diagram is compared with the pre-stored standard signal waveform diagram, so that the waveform in the collected signal waveform diagram can be determined Whether there is any abnormality, and then judge the existence of the PCIE channel according to the preset PCIE signal analysis rules.

本实施例中,通过预先编写的信号采集脚本执行待测试服务器中的PCIE通道的信号采集的相关任务,不需要通过发射脉冲来调整PCIE通道的信号传输速率,只需要通过输入指令就可以将PCIE通道的信号传输速率调整为需要的速率,节省了信号一致性分析的成本,提升了信号一致性分析的速率。In this embodiment, the relevant tasks of signal acquisition of the PCIE channel in the server to be tested are executed through the pre-written signal acquisition script, and it is not necessary to adjust the signal transmission rate of the PCIE channel by transmitting pulses, and the PCIE channel can be transferred only by inputting instructions. The signal transmission rate of the channel is adjusted to the required rate, which saves the cost of signal consistency analysis and improves the rate of signal consistency analysis.

在本申请另一个实施例中,在步骤S12之前,所述方法还包括:In another embodiment of the present application, before step S12, the method further includes:

S21:将PC设备连接至所述待测服务器。S21: Connect the PC device to the server to be tested.

本实施例中,PC(personal computer)设备是测试人员的电脑端,PC设备通过串口线连接到待测服务器的系统串口,PC设备就可以控制待测服务器。In this embodiment, the PC (personal computer) device is the tester's computer terminal, and the PC device is connected to the system serial port of the server to be tested through a serial cable, and the PC device can control the server to be tested.

本实施例中,在对待测服务器进行PCIE信号一致性分析时,将PC设备连接至待测服务器。In this embodiment, when the PCIE signal consistency analysis is performed on the server to be tested, the PC device is connected to the server to be tested.

示例地,PC设备可以是台式电脑或者平板电脑。Exemplarily, the PC device may be a desktop computer or a tablet computer.

S22:通过所述PC设备控制所述待测服务器运行所述信号采集脚本。S22: Using the PC device to control the server under test to run the signal collection script.

本实施例中,当PC设备连接至待测服务器之后,控制待测服务器运行信号采集脚本。In this embodiment, after the PC device is connected to the server to be tested, the server to be tested is controlled to run the signal collection script.

本实施例中,PC设备上安装有终端模拟软件,终端模拟软件用于运行信号采集脚本,终端模拟软件提供一个端口,测试人员可以通过该终端模拟软件与待测服务器进行交互,向待测服务器发出指令,接收待测服务器返回的数据。In this embodiment, the terminal simulation software is installed on the PC equipment, and the terminal simulation software is used to run the signal acquisition script. The terminal simulation software provides a port, and the tester can interact with the server to be tested through the terminal simulation software, and send data to the server to be tested. Issue instructions to receive the data returned by the server under test.

示例地,终端模拟软件在此不做限制,例如可以使用putty(串行接口连接软件)或xSHELL(安全终端模拟软件)。Exemplarily, the terminal simulation software is not limited here, for example, putty (serial interface connection software) or xSHELL (secure terminal simulation software) can be used.

本实施例中,参考图4,图4是本申请一实施例提出的PCIE脚本指令图,输入图4中的各个指令,可以控制脚本执行对应的功能。测试人员启动信号采集脚本之后,在终端模拟软件的窗口中输入指令“pci help”之后,会显示信号采集脚本中预设的PCIE相关指令,测试人员可以根据这些指令,实现对应的功能。In this embodiment, refer to FIG. 4 . FIG. 4 is a PCIE script instruction diagram proposed by an embodiment of the present application. Input each instruction in FIG. 4 to control the script to perform corresponding functions. After the tester starts the signal acquisition script and enters the command "pci help" in the window of the terminal simulation software, the preset PCIE-related commands in the signal acquisition script will be displayed, and the tester can realize the corresponding functions according to these commands.

本实施例中,通过PC设备连接待测试服务器,使用该PC设备运行待测试服务器中的脚本,方便了测试人员快速进行PCIE信号的采集以及分析。In this embodiment, the PC device is connected to the server to be tested, and the PC device is used to run the script in the server to be tested, which facilitates the rapid collection and analysis of PCIE signals by testers.

在本申请的另一个实施例中,所述当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息,包括:In another embodiment of the present application, when the channel information viewing instruction for the server under test is received, the channel information of all PCIE channels corresponding to the CPU in the server under test is acquired through the signal acquisition script, include:

S31:当接收到所述通道信息查看指令时,通过所述信号采集脚本执行所述信息查看指令,对所述PCIE通道进行通道扫描。S31: When the channel information viewing instruction is received, execute the information viewing instruction through the signal acquisition script, and perform channel scanning on the PCIE channel.

本实施例中,当待测服务器接收到通道信息查看指令时,运行信号采集脚本,执行信息查看指令,对待测服务器中的CPU对应的所有的PCIE通道进行通道扫描。通过对CPU进行通道扫描,可以得知PCIE通道的连接状态,PCIE通道的信号发送速率等信息。In this embodiment, when the server under test receives the channel information viewing instruction, it runs the signal collection script, executes the information viewing instruction, and performs channel scanning for all PCIE channels corresponding to the CPU in the server under test. Through the channel scan of the CPU, you can know the connection status of the PCIE channel, the signal transmission rate of the PCIE channel and other information.

S32:根据扫描得到的所述PCIE通道的连接状态以及当前信号发送速率,生成所述PCIE通道的通道信息。S32: Generate channel information of the PCIE channel according to the connection status of the PCIE channel and the current signal transmission rate obtained through scanning.

本实施例中,在扫描得到每个PCIE通道的连接状态以及当前信号发送速率后,生成PCIE通道的通道信息,如图2所示,将PCIE的通道信息集中显示在PC设备的终端模拟软件的窗口界面中,测试人员可以查看任意一条PCIE通道的通道信息。In the present embodiment, after scanning to obtain the connection state of each PCIE channel and the current signal transmission rate, generate the channel information of the PCIE channel, as shown in Figure 2, the channel information of PCIE is displayed in the terminal simulation software of the PC equipment In the window interface, testers can view the channel information of any PCIE channel.

本实施例中,在进行PCIE通道的信号一致性分析时,输入对应的指令,直接可以查看到所有PCIE通道的通道信息,提升了进行PCIE信号一致性分析的速度。In this embodiment, when performing the signal consistency analysis of the PCIE channel, inputting the corresponding command can directly view the channel information of all the PCIE channels, which improves the speed of performing the PCIE signal consistency analysis.

在本申请的另一个实施例中,根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道,包括:In another embodiment of the present application, according to the channel information, determine the PCIE channel to be tested from all the PCIE channels, including:

S41:根据所述通道信息,确定所述所有的PCIE通道中的每个PCIE通道的连接状态。S41: According to the channel information, determine the connection status of each PCIE channel in all the PCIE channels.

本实施例中,在PCIE通道的通道信息中,包含了每个PCIE通道的连接状态,查看该PCIE通道的通道信息,即可确定该PCIE通道的连接状态,连接状态分为连接有效状态和未连接状态。In the present embodiment, in the channel information of PCIE channel, have included the connection state of each PCIE channel, check the channel information of this PCIE channel, can determine the connection status of this PCIE channel, the connection status is divided into connection valid state and unavailable Connection Status.

示例地,连接有效状态表示为link on,未连接状态标识为link down。Exemplarily, the valid connection state is indicated as link on, and the unconnected state is indicated as link down.

S42:将连接状态为连接有效的PCIE通道作为所述待测试PCIE通道。S42: Use the PCIE channel whose connection status is valid as the PCIE channel to be tested.

本实施例中,将连接状态为连接有效的PCIE通道作为待测试PCIE通道。In this embodiment, the PCIE channel whose connection status is valid is used as the PCIE channel to be tested.

本实施例中,当PCIE通道的连接状态为连接有效时,说明该PCIE通道已经与示波器进行了连接,可以将PCIE通道的信号发送至示波器中,进而完成PCIE通道的信号采集。当需要采集另一个通道的PCIE信号时,可以将示波器重新连接至另一个PCIE通道中,也可以预先将所有的通道都连接至示波器中,当想要采集某一个PCIE通道的通道信号时,通过指令来指定需要采集的PCIE通道信号。In this embodiment, when the connection status of the PCIE channel is valid, it means that the PCIE channel has been connected to the oscilloscope, and the signal of the PCIE channel can be sent to the oscilloscope to complete the signal acquisition of the PCIE channel. When it is necessary to collect the PCIE signal of another channel, the oscilloscope can be reconnected to another PCIE channel, or all channels can be connected to the oscilloscope in advance. When it is desired to collect the channel signal of a certain PCIE channel, through command to specify the PCIE channel signal to be collected.

本实施例中,根据PCIE通道的通道信息确定了待测试的PCIE通道,保证了可以准确采集到待测试的PCIE通道的信号。In this embodiment, the PCIE channel to be tested is determined according to the channel information of the PCIE channel, which ensures that the signal of the PCIE channel to be tested can be accurately collected.

在本申请的另一个实施例中,所述当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率,包括:In another embodiment of the present application, when the rate switching instruction for the PCIE channel to be tested is received, the signal transmission rate of the PCIE channel to be tested is switched to the The target signal transmission rate corresponding to the rate switching command, including:

S51:根据所述速率切换指令,确定所述PCIE通道的目标信号传输速率。S51: Determine the target signal transmission rate of the PCIE channel according to the rate switching instruction.

本实施例中,速率切换指令中包含有PCIE通道的通道地址以及需要将该PCIE通道切换到的目标信号传输速率。In this embodiment, the rate switching instruction includes the channel address of the PCIE channel and the target signal transmission rate to which the PCIE channel needs to be switched.

本实施例中,当待测服务器接收到速率切换指令时,读取该速率切换指令中包含的目标信号传输速率,确定待测PCIE通道需要切换到的具体信号发送速率。In this embodiment, when the server to be tested receives the rate switching instruction, it reads the target signal transmission rate included in the rate switching instruction, and determines the specific signal transmission rate to which the PCIE channel to be tested needs to be switched.

示例地,当指令为“pci comp 0008:00:07.0 3 7”时,其中包含的目标信号发送速率为GEN3,GEN3的信号发送速率的具体数值为8Gb/s。For example, when the command is "pci comp 0008:00:07.0 3 7", the target signal transmission rate contained therein is GEN3, and the specific value of the signal transmission rate of GEN3 is 8Gb/s.

S52:通过所述信号采集脚本调用所述CPU的PCIE通道速率调整模块,将所述PCIE通道的信号传输速率调整至所述目标信号传输速率。S52: Call the PCIE channel rate adjustment module of the CPU through the signal acquisition script, and adjust the signal transmission rate of the PCIE channel to the target signal transmission rate.

本实施例中,通道速率调整模块是CPU中集成的一个模块,专用于调整PCIE通道信号的发送速率。In this embodiment, the channel rate adjustment module is a module integrated in the CPU, which is specially used to adjust the transmission rate of the PCIE channel signal.

本实施例中,待测服务器在确定目标信号发送速率之后,通过信号采集脚本调用待测服务器中的CPU中的PCIE通道速率调整模块,将待测PCIE通道的信号发送速率从原有的发送速率切换至目标信号发送速率。In this embodiment, after determining the target signal transmission rate, the server to be tested calls the PCIE channel rate adjustment module in the CPU in the server to be tested by the signal acquisition script, and the signal transmission rate of the PCIE channel to be tested is changed from the original transmission rate Switch to target signaling rate.

本实施例中,通过脚本控制CPU对PCIE通道的信号发送速率进行调整,使得PCIE通道的信号发送速率可以实现跳转切换,有效的提高了信号一致性分析的速率。In this embodiment, the CPU is controlled by a script to adjust the signal transmission rate of the PCIE channel, so that the signal transmission rate of the PCIE channel can realize jump switching, which effectively improves the rate of signal consistency analysis.

在本申请另一个实施例中,所述获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图,包括:In another embodiment of the present application, the acquisition of the signal waveform diagram of the PCIE channel to be tested at the target signal transmission rate includes:

S61:将所述待测试PCIE通道的信号以所述目标信号传输速率传输至预先连接在所述待测服务器上的示波器中。S61: Transmit the signal of the PCIE channel to be tested to the oscilloscope pre-connected to the server to be tested at the target signal transmission rate.

本实施例中,待测服务器在将PCIE通道的信号传输速率调整至目标信号传输速率之后,以目标信号传输速率,将PCIE通道的信号传输至示波器中。In this embodiment, after adjusting the signal transmission rate of the PCIE channel to the target signal transmission rate, the server to be tested transmits the signal of the PCIE channel to the oscilloscope at the target signal transmission rate.

S62:通过所述示波器,根据所述待测试PCIE通道的信号,生成所述信号对应的信号波形图。S62: Using the oscilloscope, according to the signal of the PCIE channel to be tested, generate a signal waveform diagram corresponding to the signal.

本实施例中,示波器在接收到PCIE通道发送的信号时,根据待测试的PCIE通道的信号,生成该信号对应的波形图。In this embodiment, when the oscilloscope receives the signal sent by the PCIE channel, it generates a waveform diagram corresponding to the signal according to the signal of the PCIE channel to be tested.

本实施例中,示波器根据接收信号期间的信号的幅值,在示波器的显示屏上显示出对应的信号波形图,示波器在波形图显示完成后,还可以将波形图进行存储并发送至待测服务器中。In this embodiment, the oscilloscope displays the corresponding signal waveform diagram on the display screen of the oscilloscope according to the amplitude of the signal during the signal receiving period. After the waveform diagram display is completed, the oscilloscope can also store the waveform diagram and send it to the in the server.

在本申请另一个实施例中,所述根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果,包括:In another embodiment of the present application, the described signal analysis is performed on the PCIE channel to be tested according to the signal waveform diagram, and the signal analysis results are obtained, including:

S71:将所述信号波形图与预先存储的标准信号波形图进行对比,得到波形对比结果。S71: Comparing the signal waveform diagram with a pre-stored standard signal waveform diagram to obtain a waveform comparison result.

本实施例中,标准信号波形图是PCIE通道信号在正常情况下的波形图,该标准信号波形图预先存储至待测服务器中。In this embodiment, the standard signal waveform diagram is a waveform diagram of the PCIE channel signal under normal conditions, and the standard signal waveform diagram is pre-stored in the server to be tested.

本实施例中,待测服务器在获取到待测PCIE通道的信号波形图后,从服务器的存储空间中获取预先存储的标准信号波形图,该标准信号波形图对应的信号的速率是待测PCIE通道的当前速率,将标准信号波形图与待测PCIE通道的信号波形图进行对比,得到波形图对比结果。In this embodiment, after the server to be tested obtains the signal waveform diagram of the PCIE channel to be tested, it obtains a pre-stored standard signal waveform diagram from the storage space of the server, and the rate of the signal corresponding to the standard signal waveform diagram is the PCIE channel to be tested. The current rate of the channel, compare the standard signal waveform diagram with the signal waveform diagram of the PCIE channel to be tested, and obtain the comparison result of the waveform diagram.

示例地,当两个波形图之间存在差异时,可以在待测试PCIE波形图中标记出与标准PCIE波形图不同的地方,将标记后的PCIE波形图作为波形图对比结果。For example, when there is a difference between the two waveform diagrams, the difference between the PCIE waveform diagram to be tested and the standard PCIE waveform diagram can be marked, and the marked PCIE waveform diagram can be used as the comparison result of the waveform diagrams.

S72:根据预先设置的信号分析规则,结合所述波形图对比结果,得到所述信号分析结果。S72: Obtain the signal analysis result according to the preset signal analysis rule and in combination with the comparison result of the waveform graph.

本实施例中,信号分析规则就是根据历史的信号一致性分析过程中出现的信号波形图存在的问题,总结的波形图的图像与对应的问题之间的规则,预先设置的信号分析规则存储在待测服务器中。In this embodiment, the signal analysis rules are based on the problems existing in the signal waveform diagrams during the historical signal consistency analysis process, the summarized rules between the waveform diagram images and the corresponding problems, and the preset signal analysis rules are stored in in the server under test.

本实施例中,待测服务器根据在获取波形图对比结果之后,根据预先设置的信号分析规则,查看波形图对比结果,当波形图对比结果中信号波形出现的问题与信号分析规则中出现的问题相同时,可以得到对应的信号分析结果。In this embodiment, the server to be tested checks the comparison result of the waveform diagram according to the pre-set signal analysis rules after obtaining the comparison result of the waveform diagram. At the same time, the corresponding signal analysis results can be obtained.

本实施例中,信号分析规则可以自行设置总结,可以随时将新增的信号分析规则添加至待测服务器的存储空间中。In this embodiment, the signal analysis rules can be set and summarized by themselves, and new signal analysis rules can be added to the storage space of the server to be tested at any time.

本实施例中,在采集得到待测试PCIE通道的信号波形图后,根据信号波形图中出现的异常,结合预先设置的信号分析规则,得到对应的信号分析结果,提升了PCIE信号一致性分析的速度。In this embodiment, after collecting the signal waveform diagram of the PCIE channel to be tested, according to the abnormalities in the signal waveform diagram, combined with the pre-set signal analysis rules, the corresponding signal analysis results are obtained, which improves the performance of PCIE signal consistency analysis. speed.

基于同一发明构思,本申请一实施例提供一种信号分析装置。参考图5,图5是本申请一实施例提出的信号分析装置500的示意图。如图5所示,该装置包括:Based on the same inventive concept, an embodiment of the present application provides a signal analysis device. Referring to FIG. 5 , FIG. 5 is a schematic diagram of a signal analysis device 500 according to an embodiment of the present application. As shown in Figure 5, the device includes:

文件加载模块501,用于将预先编写的信号采集脚本加载至待测服务器中,所述信号采集脚本用于根据接收到的指令,执行针对所述待测服务器的PCIE信号采集的相关任务;The file loading module 501 is used to load the pre-written signal acquisition script into the server under test, and the signal acquisition script is used to perform relevant tasks for the PCIE signal acquisition of the server under test according to the received instruction;

通道信息获取模块502,用于当接收到针对待测服务器的通道信息查看指令时,通过所述信号采集脚本获取所述待测服务器中的CPU对应的所有PCIE通道的通道信息;Channel information acquisition module 502, for when receiving the channel information viewing instruction for the server to be tested, obtain the channel information of all PCIE channels corresponding to the CPU in the server to be tested by the signal acquisition script;

待测试通道确定模块503,用于根据所述通道信息,从所述所有的PCIE通道中确定待测试PCIE通道;Passage to be tested determining module 503, for determining the PCIE passage to be tested from all PCIE passages according to the passage information;

速率切换模块504,用于当接收到针对所述待测试PCIE通道的速率切换指令时,通过所述信号采集脚本,将所述待测试PCIE通道的信号传输速率切换至所述速率切换指令对应的目标信号传输速率;The rate switching module 504 is used to switch the signal transmission rate of the PCIE channel to be tested to the rate corresponding to the rate switching command by the signal acquisition script when receiving the rate switching command for the PCIE channel to be tested. target signaling rate;

信号波形图获取模块505,用于获取所述待测试PCIE通道在所述目标信号传输速率下的信号波形图;Signal waveform diagram acquisition module 505, used to obtain the signal waveform diagram of the PCIE channel to be tested under the target signal transmission rate;

信号分析结果获取模块506,用于根据所述信号波形图,对所述待测试PCIE通道进行信号分析,得到信号分析结果。The signal analysis result acquisition module 506 is configured to perform signal analysis on the PCIE channel to be tested according to the signal waveform diagram to obtain a signal analysis result.

可选地,所述装置还包括:Optionally, the device also includes:

设备连接模块,用于将PC设备连接至所述待测服务器;A device connection module, configured to connect a PC device to the server to be tested;

程序运行模块,用于通过所述PC设备控制所述待测服务器运行所述信号采集脚本。A program running module, configured to control the server under test to run the signal collection script through the PC device.

可选地,所述通道信息获取模块包括:Optionally, the channel information acquisition module includes:

通道扫描子模块,用于当接收到所述通道信息查看指令时,通过所述信号采集脚本执行所述信息查看指令,对所述PCIE通道进行通道扫描;The channel scanning submodule is used to perform channel scanning on the PCIE channel by executing the information checking command through the signal acquisition script when the channel information checking command is received;

通道信息生成子模块,用于根据扫描得到的所述PCIE通道的连接状态以及当前信号发送速率,生成所述PCIE通道的通道信息。The channel information generation sub-module is used to generate the channel information of the PCIE channel according to the connection state of the PCIE channel obtained through scanning and the current signal transmission rate.

可选地,所述待测试通道确定模块包括:Optionally, the channel to be tested determination module includes:

连接状态确定子模块,用于根据所述通道信息,确定所述所有的PCIE通道中的每个PCIE通道的连接状态;A connection status determination submodule, configured to determine the connection status of each PCIE channel in all the PCIE channels according to the channel information;

待测试通道确定子模块,用于将连接状态为连接有效的PCIE通道作为所述待测试PCIE通道。The submodule for determining the channel to be tested is used to use the PCIE channel whose connection status is valid as the PCIE channel to be tested.

可选地,所述速率切换模块包括:Optionally, the rate switching module includes:

目标信号传输速率确定子模块,用于根据所述速率切换指令,确定所述PCIE通道的目标信号传输速率;The target signal transmission rate determination submodule is used to determine the target signal transmission rate of the PCIE channel according to the rate switching instruction;

速率切换子模块,用于通过所述信号采集脚本调用所述CPU的PCIE通道速率调整模块,将所述PCIE通道的信号传输速率调整至所述目标信号传输速率。The rate switching sub-module is used to call the PCIE channel rate adjustment module of the CPU through the signal acquisition script, and adjust the signal transmission rate of the PCIE channel to the target signal transmission rate.

可选地,所述信号波形图获取模块包括:Optionally, the signal waveform acquisition module includes:

信号传输子模块,用于将所述待测试PCIE通道的信号以所述目标信号传输速率传输至预先连接在所述待测服务器上的示波器中;The signal transmission submodule is used to transmit the signal of the PCIE channel to be tested to the oscilloscope pre-connected on the server to be tested at the target signal transmission rate;

信号波形图生成子模块,用于通过所述示波器,根据所述待测试PCIE通道的信号,生成所述信号对应的信号波形图。The signal waveform diagram generation submodule is used to generate a signal waveform diagram corresponding to the signal according to the signal of the PCIE channel to be tested through the oscilloscope.

可选地,所述信号分析结果获取模块包括:Optionally, the signal analysis result acquisition module includes:

波形对比结果获取子模块,用于将所述信号波形图与预先存储的标准信号波形图进行对比,得到波形对比结果;The waveform comparison result acquisition sub-module is used to compare the signal waveform diagram with the pre-stored standard signal waveform diagram to obtain the waveform comparison result;

信号分析结果获取子模块,用于根据预先设置的信号分析规则,结合所述波形图对比结果,得到所述信号分析结果。The signal analysis result acquisition sub-module is used to obtain the signal analysis result according to the preset signal analysis rules and in combination with the comparison result of the waveform diagram.

基于同一发明构思,本申请另一实施例提供一种可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请上述任一实施例所述的信号分析方法中的步骤。Based on the same inventive concept, another embodiment of the present application provides a readable storage medium on which a computer program is stored, and when the program is executed by a processor, the signal analysis method described in any of the above embodiments of the present application is implemented. step.

基于同一发明构思,本申请另一实施例提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现本申请上述任一实施例所述的信号分析方法中的步骤。Based on the same inventive concept, another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. The steps in the signal analysis method described in the embodiment.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本领域内的技术人员应明白,本申请实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiment of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or processor of other programmable data processing terminal equipment to produce a machine such that instructions executed by the computer or processor of other programmable data processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While the preferred embodiments of the embodiments of the present application have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is understood. Therefore, the appended claims are intended to be interpreted to cover the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the application.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or terminal equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上对本申请所提供的信号分析方法、装置、设备及存储介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The signal analysis method, device, equipment and storage medium provided by this application have been introduced in detail above. In this paper, specific examples have been used to illustrate the principle and implementation of this application. The description of the above embodiments is only used to help understanding The method of this application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not understood as a limitation of the application.

Claims (10)

1. A method of signal analysis, the method comprising:
loading a pre-written signal acquisition script into a server to be tested, wherein the signal acquisition script is used for executing related tasks aiming at PCIE signal acquisition of the server to be tested according to a received instruction;
when a channel information checking instruction aiming at a server to be tested is received, channel information of all PCIE channels corresponding to a CPU in the server to be tested is acquired through the signal acquisition script;
determining PCIE channels to be tested from all PCIE channels according to the channel information;
when a rate switching instruction for the PCIE channel to be tested is received, switching the signal transmission rate of the PCIE channel to be tested to a target signal transmission rate corresponding to the rate switching instruction through the signal acquisition script;
Acquiring a signal waveform diagram of the PCIE channel to be tested at the target signal transmission rate;
and according to the signal waveform diagram, carrying out signal analysis on the PCIE channel to be tested to obtain a signal analysis result.
2. The method of claim 1, wherein before obtaining channel information of all PCIE channels corresponding to CPUs in the server to be tested through the signal acquisition script, the method further comprises:
connecting PC equipment to the server to be tested;
and controlling the server to be tested to run the signal acquisition script through the PC equipment.
3. The method of claim 1, wherein when the channel information viewing instruction for the server to be tested is received, obtaining, by the signal acquisition script, channel information of all PCIE channels corresponding to the CPU in the server to be tested, includes:
when the channel information checking instruction is received, executing the information checking instruction through the signal acquisition script, and carrying out channel scanning on the PCIE channel;
and generating channel information of the PCIE channel according to the connection state of the PCIE channel obtained by scanning and the current signal sending rate.
4. The method of claim 1, wherein the determining PCIE lanes to be tested from the PCIE lanes according to the lane information includes:
determining the connection state of each PCIE channel in all PCIE channels according to the channel information;
and taking the PCIE channel with the connection state of being connection-valid as the PCIE channel to be tested.
5. The method of claim 1, wherein when the rate switching instruction for the PCIE channel to be tested is received, switching, by the signal acquisition script, a signal transmission rate of the PCIE channel to be tested to a target signal transmission rate corresponding to the rate switching instruction, includes:
determining a target signal transmission rate of the PCIE channel according to the rate switching instruction;
and calling a PCIE channel rate adjusting module of the CPU through the signal acquisition script, and adjusting the signal transmission rate of the PCIE channel to the target signal transmission rate.
6. The method of claim 1, wherein the obtaining the signal waveform diagram of the PCIE lane to be tested at the target signal transmission rate comprises:
Transmitting the signals of the PCIE channels to be tested to an oscilloscope which is connected to the server to be tested in advance at the target signal transmission rate;
and generating a signal waveform diagram corresponding to the signal according to the signal of the PCIE channel to be tested by the oscilloscope.
7. The method of claim 1, wherein the performing signal analysis on the PCIE lane to be tested according to the signal waveform diagram to obtain a signal analysis result includes:
comparing the signal waveform diagram with a pre-stored standard signal waveform diagram to obtain a waveform comparison result;
and according to a preset signal analysis rule, combining the waveform diagram comparison result to obtain the signal analysis result.
8. A signal analysis device, the device comprising:
the file loading module is used for loading a pre-written signal acquisition script into a server to be tested, and the signal acquisition script is used for executing related tasks aiming at PCIE signal acquisition of the server to be tested according to the received instruction;
the channel information acquisition module is used for acquiring the channel information of all PCIE channels corresponding to the CPU in the server to be tested through the signal acquisition script when a channel information checking instruction aiming at the server to be tested is received;
The channel to be tested determining module is used for determining PCIE channels to be tested from all PCIE channels according to the channel information;
the rate switching module is used for switching the signal transmission rate of the PCIE channel to be tested to the target signal transmission rate corresponding to the rate switching instruction through the signal acquisition script when the rate switching instruction for the PCIE channel to be tested is received;
the signal waveform diagram acquisition module is used for acquiring a signal waveform diagram of the PCIE channel to be tested at the target signal transmission rate;
and the signal analysis result acquisition module is used for carrying out signal analysis on the PCIE channel to be tested according to the signal waveform diagram to obtain a signal analysis result.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
CN202310260887.7A 2023-03-17 2023-03-17 A signal analysis method, device, equipment and storage medium Pending CN116319475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310260887.7A CN116319475A (en) 2023-03-17 2023-03-17 A signal analysis method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310260887.7A CN116319475A (en) 2023-03-17 2023-03-17 A signal analysis method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116319475A true CN116319475A (en) 2023-06-23

Family

ID=86777580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310260887.7A Pending CN116319475A (en) 2023-03-17 2023-03-17 A signal analysis method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116319475A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522878A (en) * 2023-07-04 2023-08-01 成都领目科技有限公司 Method, device and medium for maintaining consistency import report of oscilloscope test data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116522878A (en) * 2023-07-04 2023-08-01 成都领目科技有限公司 Method, device and medium for maintaining consistency import report of oscilloscope test data
CN116522878B (en) * 2023-07-04 2023-10-24 成都领目科技有限公司 Method, device and medium for maintaining consistency import report of oscilloscope test data

Similar Documents

Publication Publication Date Title
US6915343B1 (en) System and method of running diagnostic testing programs on a diagnostic adapter card and analyzing the results for diagnosing hardware and software problems on a network computer
CN101110051A (en) A test method and system for single-board debugging serial port function
CN113347067B (en) Method, device and device for determining bandwidth of PCIe signal
CN107491369A (en) A kind of detection method and system of quick PCIE3.0 signal integrities
CN110515788A (en) A kind of test device of data-interface
CN106933711A (en) A kind of PCIe3.0 Tx signal method for automatic measurement
CN111190089B (en) Method and device for determining jitter time, storage medium and electronic equipment
CN116319475A (en) A signal analysis method, device, equipment and storage medium
CN108776723B (en) Test system self-checking adapter connection line generation method, device, equipment and storage medium
CN107239375A (en) It is a kind of to realize the method for testing that USB2.0 High Speed controls are given out a contract for a project
CN110381035A (en) Network security test method, device, computer equipment and readable storage medium storing program for executing
CN116760753A (en) A signal test circuit and signal test method, device and medium
CN104182317A (en) DMI (desktop management interface) bus signal integrity testing method
CN113268390A (en) Test fixture, system and method for mSATA interface
CN113778796A (en) Method for monitoring serial port communication through USB
CN115525495A (en) High-speed serial bus allowance testing method, device, equipment and medium
CN115967658A (en) CCIX signal testing method, device and medium
CN115794530A (en) Hardware connection testing method, device, equipment and readable storage medium
CN115356527A (en) A fault detection method, device and equipment
CN109039813B (en) Method, system and equipment for detecting internet access
CN109254937B (en) USB hub, USB device enumeration exception detection method and computer storage medium
CN110674000B (en) Signal testing method and device
CN116306409B (en) Chip verification method, device, equipment and storage medium
CN116775390B (en) Interface protocol conversion verification system and method, electronic equipment and storage medium
CN109474394A (en) The detection method and system of a kind of sound card communication data, the device that the sound card communication data received is detected

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination