CN114705943A - Signal quality detection system, method and computer equipment - Google Patents
Signal quality detection system, method and computer equipment Download PDFInfo
- Publication number
- CN114705943A CN114705943A CN202210629986.3A CN202210629986A CN114705943A CN 114705943 A CN114705943 A CN 114705943A CN 202210629986 A CN202210629986 A CN 202210629986A CN 114705943 A CN114705943 A CN 114705943A
- Authority
- CN
- China
- Prior art keywords
- signal
- detected
- output
- output signal
- comparator
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 77
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 24
- 230000002159 abnormal effect Effects 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 21
- 238000002955 isolation Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 10
- 239000000872 buffer Substances 0.000 description 8
- 230000008569 process Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
本申请涉及一种信号质量检测系统、方法和计算机设备。所述系统包括:电阻,以用于获取待检测信号;参考电平源,用于输出参考电平;比较器,以用于输出信号;信号状态判断单元,以用于判断所述待检测信号状态。基于本申请所述的信号质量检测系统,将所述信号质量检测系统连接至信号质量待检测单元后,对待检测信号的影响几乎可以忽略不计,并且可以更直接、更直观地对待检测信号的信号质量进行展示,而无需进行额外的参数调整和运算,一方面减轻了本领域技术人员的工作量,另一方面,减少了人为介入,降低了整个信号质量检测系统的出错率。
The present application relates to a signal quality detection system, method and computer equipment. The system includes: a resistor for obtaining a signal to be detected; a reference level source for outputting a reference level; a comparator for outputting a signal; a signal state judgment unit for judging the signal to be detected state. Based on the signal quality detection system described in this application, after the signal quality detection system is connected to the signal quality to-be-detected unit, the influence of the signal to be detected is almost negligible, and the signal of the to-be-detected signal can be more directly and intuitively detected. The quality is displayed without additional parameter adjustment and operation. On the one hand, the workload of those skilled in the art is reduced, and on the other hand, human intervention is reduced, and the error rate of the entire signal quality detection system is reduced.
Description
技术领域technical field
本申请涉及信号测试技术领域,特别是涉及一种信号质量检测系统、方法和计算机设备。The present application relates to the technical field of signal testing, and in particular, to a signal quality detection system, method and computer equipment.
背景技术Background technique
在由电子芯片组成的产品中,通常在产品设计到量产阶段,会有信号质量测试,此时,对产品各关键信号质量进行有效测试,以保证产品设计的可靠和稳定。对于量产的产品,会在产品出厂前,对信号的检测,保证生产的产品质量,而对于一些高可靠性的应用领域,比如汽车电子、高铁、航空、航天、核电子领域等关系到生命安全及重大财产损失的电子产品,面对由偶发事件(如单粒子效应,强电磁干扰导致的闩锁,静电导致失效等)导致的信号异常,在硬件层面,通常需要增加在线检测电路,检测关键信号的缺失或工作不正常,以便及时采取措施,防止出现重大事故。In products composed of electronic chips, there is usually a signal quality test in the stage from product design to mass production. At this time, the key signal quality of the product is effectively tested to ensure the reliability and stability of the product design. For mass-produced products, the signal will be detected before the product leaves the factory to ensure the quality of the produced products. For some high-reliability application fields, such as automotive electronics, high-speed rail, aviation, aerospace, nuclear electronics, etc. For electronic products with safety and major property damage, in the face of signal abnormalities caused by accidental events (such as single event effects, latches caused by strong electromagnetic interference, and failures caused by static electricity, etc.), at the hardware level, it is usually necessary to add online detection circuits to detect The absence or malfunction of critical signals so that timely action can be taken to prevent a major accident.
现有技术中,通常基于以下几种方法在硬件层面实现对关键信号的检测,如:采用缓冲器,将待检测电路信号通过缓冲器引入处理器,如单片机、FPGA、CPU等,通过检测信号有无及频率是否正常,来判断信号是否正常;通过逻辑电路,实现亚稳态检测电路;或者是基于模数变换器(全称:Analog to Digital Converter;简称:ADC)实现信号质量检测。基于上述方法在硬件层面实现对关键信号的检测存在以下弊端:引入缓冲器、逻辑电路、ADC,会对信号引入通常几皮法的容性负载,增加驱动端的负载;对于采用缓冲器或逻辑电路的方案,判决电平与接收端的判决电平不相同,比如接收判断2.4V为高,缓冲器的阈值在2V可能就会认为为高电平(不同芯片,甚至不同批次芯片此值有区别),如果出现2.1V的信号或信号回勾,虽然缓冲器认为信号正常,但对于接收芯片,信号已经处于异常状态。引入缓冲器、逻辑电路、ADC检测电路,会降低关键信号电路的可靠性,由于检测电路的失效(比如缓冲器输入引脚对地短路),会导致关键信号电路的失效;对于ADC检测电路,由于ADC的采样速率限制,对于一些高速信号的检测并不适用。而对于采用高速ADC,会增加系统成本和复杂度。In the prior art, the detection of key signals is usually implemented at the hardware level based on the following methods, such as: using a buffer, the circuit signal to be detected is introduced into the processor through the buffer, such as a single-chip microcomputer, FPGA, CPU, etc., through the detection signal. Whether the signal is normal or not is judged by the presence or absence of the frequency and whether the frequency is normal; the metastable detection circuit is realized through the logic circuit; or the signal quality detection is realized based on the analog-to-digital converter (full name: Analog to Digital Converter; abbreviation: ADC). The detection of key signals at the hardware level based on the above method has the following disadvantages: the introduction of buffers, logic circuits, and ADCs will introduce capacitive loads of usually a few picofarads to the signals, increasing the load on the driver; The decision level is different from the decision level of the receiving end. For example, if the receiving judgment is 2.4V high, the buffer threshold may be considered as high level at 2V (different chips, even different batches of chips, this value is different ), if there is a 2.1V signal or the signal is hooked back, although the buffer considers the signal to be normal, for the receiving chip, the signal is already in an abnormal state. The introduction of buffers, logic circuits, and ADC detection circuits will reduce the reliability of key signal circuits. Due to the failure of the detection circuit (for example, the buffer input pin is short-circuited to ground), it will lead to the failure of key signal circuits; for the ADC detection circuit, Due to the limitation of the sampling rate of the ADC, it is not suitable for the detection of some high-speed signals. For the use of high-speed ADC, it will increase the system cost and complexity.
除此之外,需要理解的是,现有的信号质量检测方法通常是将采集到的信号质量直接输入至单个的比较器,将采集到的信号质量与一个参考值进行比对,或者将采集到的信号质量进行调整,并将调整前和调整后的两个信号质量分别输入两个比较器,并将一个参考值同时输入两个比较器,以实现信号质量的检测,但是在实际的应用场景中,满足系统或产品可以稳定和可靠运行的信号并非是一个恒定的绝对值。也就是说,在实际的应用场景中,只要信号质量不高于预设的上限值和低于预设的下限值,系统或产品都是可以稳定地运行的,因此要想基于单个参考值判断信号质量是否处于预设的上限值和下限值之间,就需要本领域的技术人员基于实际应用情况不断地对预设的参考值进行调整,将预设的固定值从下限值更改为上限值,或将预设的固定值从上限值更改为下限值,本领域技术人员基于实际应用情况不断对预设的固定值进行调整,一方面会消耗过多的人力,另一方面由于人为的介入,极有可能会发生固定值调整出错、无法准确获取信号质量的情况,甚至还会因为技术人员操作不当对设备造成机械损伤;通过获取监测到的信号质量和预设值之间的差值以判读信号质量是否满足作业要求,一方面会增加运算量,另一方面计算过程中产生的误差极有可能会导致检测结果不准确,从而造成技术人员对信号质量的误判。In addition, it should be understood that the existing signal quality detection methods usually directly input the collected signal quality to a single comparator, compare the collected signal quality with a reference value, or compare the collected signal quality with a reference value. The obtained signal quality is adjusted, and the two signal qualities before and after adjustment are respectively input into two comparators, and a reference value is input into two comparators at the same time to realize the detection of signal quality, but in practical applications In the scenario, the signal that satisfies the stable and reliable operation of the system or product is not a constant absolute value. That is to say, in actual application scenarios, as long as the signal quality is not higher than the preset upper limit value and lower than the preset lower limit value, the system or product can run stably. To judge whether the signal quality is between the preset upper limit and lower limit, it is necessary for those skilled in the art to continuously adjust the preset reference value based on the actual application situation, and change the preset fixed value from the lower limit to the preset reference value. The value is changed to the upper limit value, or the preset fixed value is changed from the upper limit value to the lower limit value. Those skilled in the art constantly adjust the preset fixed value based on the actual application situation, on the one hand, it will consume too much manpower On the other hand, due to human intervention, it is very likely that there will be errors in the adjustment of the fixed value, the signal quality cannot be accurately obtained, and even mechanical damage to the equipment due to improper operation by technicians; Setting the difference between the values to judge whether the signal quality meets the operation requirements will increase the amount of computation on the one hand, and on the other hand, the errors generated during the calculation process are very likely to cause inaccurate detection results, thus causing the technicians to be unsure of the signal quality. misjudgment.
因此,急需提出一种在不更改待检测信号单元电路及不影响待检测信号单元电路工作正常的情况下,能够高效、安全、准确和可靠实现信号质量在线或非在线检测的信号质量检测系统、方法和计算机设备。Therefore, there is an urgent need to propose a signal quality detection system that can efficiently, safely, accurately and reliably realize on-line or off-line detection of signal quality without changing the signal unit circuit to be detected and without affecting the normal operation of the signal unit circuit to be detected. Method and computer apparatus.
发明内容SUMMARY OF THE INVENTION
基于此,有必要针对上述技术问题,提供一种在不更改待检测信号单元电路及不影响待检测信号单元电路工作正常的情况下,能够高效、安全实现信号质量在线或非在线检测的信号质量检测系统、方法和计算机设备。Based on this, it is necessary to address the above technical problems to provide a signal quality that can efficiently and safely realize online or off-line detection of signal quality without changing the signal unit circuit to be detected and without affecting the normal operation of the signal unit circuit to be detected. Detection systems, methods, and computer devices.
一方面,提供一种信号质量检测系统,连接于信号质量待检测单元的信号输出端,所述系统包括:电阻,所述电阻的信号输入端与所述信号质量待检测单元的信号输出端连接,以用于获取待检测信号;第一参考电平源,用于输出第一参考电平;第二参考电平源,用于输出第二参考电平;第一比较器,所述第一比较器的负向输入端与所述电阻的信号输出端连接,所述第一比较器的正向输入端与所述第一参考电平源连接,以用于输出第一输出信号;第二比较器,所述第二比较器的正向输入端与所述电阻的信号输出端连接,所述第二比较器的负向输入端与第二参考电平源连接,以用于输出第二输出信号;信号状态判断单元,所述信号状态判断单元分别与所述第一比较器的信号输出端,和,所述第二比较器的信号输出端连接,以用于判断所述待检测信号状态。In one aspect, a signal quality detection system is provided, which is connected to the signal output end of the signal quality to be detected unit, the system includes: a resistor, the signal input end of the resistor is connected to the signal output end of the signal quality to be detected unit , used to obtain the signal to be detected; the first reference level source, used to output the first reference level; the second reference level source, used to output the second reference level; the first comparator, the first reference level The negative input terminal of the comparator is connected to the signal output terminal of the resistor, and the positive input terminal of the first comparator is connected to the first reference level source for outputting the first output signal; the second a comparator, the positive input terminal of the second comparator is connected to the signal output terminal of the resistor, and the negative input terminal of the second comparator is connected to the second reference level source for outputting the second output signal; a signal state judging unit, the signal state judging unit is respectively connected with the signal output end of the first comparator and the signal output end of the second comparator, so as to judge the signal to be detected state.
在其中一个实施例中,当所述信号质量待检测单元为多个时,所述系统包括:多路模拟开关,及,与每一所述信号质量检测单元的信号输出端一一对应连接的若干个电阻;所述多路模拟开关的不动端分别连接于所述第一比较器的负向输入端与所述第二比较器的正向输入端,所述多路模拟开关的动端分别连接于每一所述电阻的信号输出端。In one of the embodiments, when there are multiple signal quality detection units, the system includes: a multi-channel analog switch, and a signal output terminal connected to the signal quality detection unit in a one-to-one correspondence several resistors; the fixed end of the multi-channel analog switch is respectively connected to the negative input end of the first comparator and the positive input end of the second comparator, and the moving end of the multi-channel analog switch are respectively connected to the signal output terminals of each of the resistors.
在其中一个实施例中,所述信号状态判断单元包括:异或门,以基于所述第一输出信号和所述第二输出信号的电平,判断所述待检测信号的状态;和/或,现场可编程逻辑门阵列,以基于所述第一输出信号和所述第二输出信号的信号时钟个数,判断所述待检测信号的状态;和/或,中央处理器,以基于所述第一输出信号和所述第二输出信号的信号间隔,判断所述待检测信号的状态。In one of the embodiments, the signal state judging unit includes: an exclusive OR gate to judge the state of the to-be-detected signal based on the levels of the first output signal and the second output signal; and/or , a field programmable logic gate array, to judge the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal; and/or, the central processing unit, to be based on the The signal interval between the first output signal and the second output signal determines the state of the signal to be detected.
在其中一个实施例中,当所述待检测信号为高速信号时,所述电阻的阻值不低于1000欧姆;所述第一比较器与所述第二比较器为高阻抗比较器。In one embodiment, when the signal to be detected is a high-speed signal, the resistance of the resistor is not lower than 1000 ohms; the first comparator and the second comparator are high-impedance comparators.
另一方面,提供一种信号质量检测方法,其特征在于,应用于信号质量检测系统,所述方法包括:On the other hand, a signal quality detection method is provided, characterized in that, applied to a signal quality detection system, the method includes:
步骤A:获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;Step A: obtaining a signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
步骤B:将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;Step B: sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
步骤C:将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;Step C: sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
步骤D:所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;Step D: the first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a first output signal based on the second reference level and the to-be-detected signal the second output signal;
步骤E:基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Step E: Determine the state of the signal to be detected based on the first output signal and the second output signal.
在其中一个实施例中,判断所述待检测信号状态,包括基于异或门信号状态判断单元,判断所述待检测信号状态:将所述第一输出信号和所述第二输出信号输入至所述异或门; 若所述第一输出信号和所述第二输出信号电平相同,则输出低电平0,判定所述待检测信号异常;若所述第一输出信号和所述第二输出信号电平不相同,则输出高电平1,判定所述待检测信号正常。In one of the embodiments, judging the state of the signal to be detected includes: judging the state of the signal to be detected based on an exclusive OR gate signal state judging unit: inputting the first output signal and the second output signal to the The XOR gate; if the first output signal and the second output signal have the same level, output a low level 0 to determine that the to-be-detected signal is abnormal; if the first output signal and the second output signal have the same level If the output signal levels are not the same, a high level of 1 is output, and it is determined that the to-be-detected signal is normal.
在其中一个实施例中,判断所述待检测信号状态,包括基于现场可编程逻辑门阵列信号状态判断单元,判断所述待检测信号状态:将所述第一输出信号和所述第二输出信号发送至所述现场可编程逻辑门阵列;所述现场可编程逻辑门阵列基于所述第一输出信号与所述第二输出信号的信号时钟个数判断所述待检测信号状态;若所述第一输出信号与所述第二输出信号的信号时钟个数相等,则判定所述待检测信号状态正常;反之,则判定所述待检测信号状态异常。In one of the embodiments, judging the state of the signal to be detected includes, based on a field programmable logic gate array signal state judging unit, judging the state of the signal to be detected: combining the first output signal and the second output signal sent to the field programmable logic gate array; the field programmable logic gate array judges the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal; When the number of signal clocks of an output signal and the second output signal is equal, it is determined that the state of the signal to be detected is normal; otherwise, it is determined that the state of the signal to be detected is abnormal.
在其中一个实施例中,判断所述待检测信号状态,包括基于中央处理器信号状态判断单元,判断所述待检测信号状态:将所述第一输出信号和所述第二输出信号发送至中央处理器;所述中央处理器基于所述第一输出信号和所述第二输出信号,通过计时器进行脉冲计数;基于所述第一输出信号和所述第二输出信号的脉冲计数数目,获得所述第一输出信号和所述第二输出信号的信号间隔;若所述第一输出信号和所述第二输出信号的信号间隔相等,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。In one embodiment, judging the state of the signal to be detected includes: judging the state of the signal to be detected based on a signal state determination unit of a central processing unit: sending the first output signal and the second output signal to the central processor; the central processing unit counts pulses by a timer based on the first output signal and the second output signal; based on the pulse count number of the first output signal and the second output signal, obtain The signal interval between the first output signal and the second output signal; if the signal interval between the first output signal and the second output signal is equal, it is determined that the signal to be detected is normal; otherwise, it is determined that the signal to be detected is normal. The signal to be detected is abnormal.
在其中一个实施例中,当基于所述异或门信号状态判断单元,所述现场可编程逻辑门阵列信号状态判断单元,和,所述中央处理器信号状态判断单元联合判断所述待检测信号状态时,所述方法包括:其中至少两个信号状态判断单元判定所述待检测信号正常时,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。In one embodiment, when based on the XOR gate signal state judging unit, the field programmable logic gate array signal state judging unit, and the central processing unit signal state judging unit jointly judge the to-be-detected signal The method includes: when at least two signal state judging units determine that the signal to be detected is normal, the signal to be detected is determined to be normal; otherwise, the signal to be detected is determined to be abnormal.
再一方面,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, the processor implementing the following steps when executing the computer program:
步骤A:获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;Step A: obtaining a signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
步骤B:将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;Step B: sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
步骤C:将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;Step C: sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
步骤D:所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;Step D: the first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a first output signal based on the second reference level and the to-be-detected signal the second output signal;
步骤E:基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Step E: Determine the state of the signal to be detected based on the first output signal and the second output signal.
又一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In yet another aspect, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤A:获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;Step A: obtaining a signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
步骤B:将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;Step B: sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
步骤C:将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;Step C: sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
步骤D:所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;Step D: the first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a first output signal based on the second reference level and the to-be-detected signal the second output signal;
步骤E:基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Step E: Determine the state of the signal to be detected based on the first output signal and the second output signal.
上述信号质量检测系统、方法和计算机设备,所述系统连接于信号质量待检测单元的信号输出端,所述系统包括:The above signal quality detection system, method and computer equipment, the system is connected to the signal output end of the signal quality to be detected unit, and the system includes:
电阻,所述电阻的信号输入端与所述信号质量待检测单元的信号输出端连接,以用于获取待检测信号;第一参考电平源,用于输出第一参考电平;第二参考电平源,用于输出第二参考电平;第一比较器,所述第一比较器的负向输入端与所述电阻的信号输出端连接,所述第一比较器的正向输入端与所述第一参考电平源连接,以用于输出第一输出信号;第二比较器,所述第二比较器的正向输入端与所述电阻的信号输出端连接,所述第二比较器的负向输入端与所述第二参考电平源连接,以用于输出第二输出信号;信号状态判断单元,所述信号状态判断单元分别与所述第一比较器的信号输出端,和,所述第二比较器的信号输出端连接,以用于判断所述待检测信号状态。基于本申请所述的信号质量检测系统,将所述信号质量检测系统连接至信号质量待检测单元后,对待检测信号的影响几乎可以忽略不计,并且在信号质量检测系统失效或短路后,并不影响信号质量待检测单元的正常工作。并且,可以直接、快速、高效和直观实现对待检测信号的信号检测。a resistor, the signal input end of the resistor is connected to the signal output end of the signal quality to-be-detected unit for acquiring the signal to be detected; the first reference level source is used to output the first reference level; the second reference a level source for outputting a second reference level; a first comparator, the negative input terminal of the first comparator is connected to the signal output terminal of the resistor, and the positive input terminal of the first comparator connected to the first reference level source for outputting a first output signal; a second comparator, the positive input terminal of the second comparator is connected to the signal output terminal of the resistor, the second comparator The negative input end of the comparator is connected to the second reference level source for outputting the second output signal; the signal state judging unit, the signal state judging unit is respectively connected with the signal output end of the first comparator , and, the signal output end of the second comparator is connected for judging the state of the signal to be detected. Based on the signal quality detection system described in this application, after the signal quality detection system is connected to the signal quality to-be-detected unit, the influence of the signal to be detected is almost negligible, and after the signal quality detection system fails or is short-circuited, the Affect the normal operation of the signal quality unit to be detected. Moreover, the signal detection of the signal to be detected can be realized directly, quickly, efficiently and intuitively.
附图说明Description of drawings
图1为一个实施例中信号质量检测系统的结构框图;1 is a structural block diagram of a signal quality detection system in one embodiment;
图2为一个实施例中信号质量检测系统的结构框图;Fig. 2 is the structural block diagram of the signal quality detection system in one embodiment;
图3为一个实施例中信号状态判断单元的结构框图;Fig. 3 is a structural block diagram of a signal state judging unit in one embodiment;
图4为一个实施例中待检测信号、第一参考电平和第二参考电平的关系示意图;4 is a schematic diagram of the relationship between a signal to be detected, a first reference level and a second reference level in an embodiment;
图5为一个实施例中信号质量检测方法的应用环境示意图;5 is a schematic diagram of an application environment of the signal quality detection method in one embodiment;
图6为一个实施例中信号质量检测方法的流程示意图;6 is a schematic flowchart of a method for detecting signal quality in an embodiment;
图7为一个实施例中信号质量检测方法的流程示意图;7 is a schematic flowchart of a method for detecting signal quality in one embodiment;
图8为一个实施例中信号质量检测方法的流程示意图;8 is a schematic flowchart of a signal quality detection method in one embodiment;
图9为一个实施例中信号质量检测方法的流程示意图;9 is a schematic flowchart of a method for detecting signal quality in one embodiment;
图10为一个实施例中计算机设备的内部结构图。Figure 10 is a diagram of the internal structure of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
实施例一Example 1
本申请提供的一种信号质量检测系统,如图1所示,连接于信号质量待检测单元的信号输出端,所述系统包括:电阻,所述电阻的信号输入端与所述信号质量待检测单元的信号输出端连接,以用于获取待检测信号;第一参考电平源,用于输出第一参考电平;第二参考电平源,用于输出第二参考电平;第一比较器,所述第一比较器的负向输入端与所述电阻的信号输出端连接,所述第一比较器的正向输入端与所述第一参考电平源连接,以用于输出第一输出信号;第二比较器,所述第二比较器的正向输入端与所述电阻的信号输出端连接,所述第二比较器的负向输入端与所述第二参考电平源连接,以用于输出第二输出信号;信号状态判断单元,所述信号状态判断单元分别与所述第一比较器的信号输出端,和,所述第二比较器的信号输出端连接,以用于判断所述待检测信号状态。A signal quality detection system provided by the present application, as shown in FIG. 1 , is connected to the signal output end of the signal quality to-be-detected unit, the system includes: a resistor, the signal input end of the resistor and the signal quality to-be-detected unit The signal output end of the unit is connected to obtain the signal to be detected; the first reference level source is used to output the first reference level; the second reference level source is used to output the second reference level; the first comparison The negative input terminal of the first comparator is connected to the signal output terminal of the resistor, and the positive input terminal of the first comparator is connected to the first reference level source for outputting the first reference level source. an output signal; a second comparator, the positive input terminal of the second comparator is connected to the signal output terminal of the resistor, and the negative input terminal of the second comparator is connected to the second reference level source connected to output a second output signal; a signal state judgment unit, the signal state judgment unit is respectively connected with the signal output end of the first comparator, and the signal output end of the second comparator, to for judging the state of the signal to be detected.
具体地,连接电阻于信号质量待检测单元的信号输出端,以实现隔离信号质量检测系统,减少信号质量检测系统对信号质量待检测单元的干扰。通过将待检测信号通过第一比较器的负向输入端输入至第一比较器,将待检测信号通过第二比较器的正向输入端输入至第二比较器。以实现当待检测信号的电平比第一参考电平高时,第一输出信号为高电平,否则第一输出信号为低电平;当待检测信号的电平比第二参考电平低时,第二输出信号为高电平,否则为低电平,再基于第一输出信号和第二输出信号,可以更直接、更直观地对待检测信号的信号质量进行展示,而无需进行额外的参数调整和运算,一方面减轻了本领域技术人员的工作量,另一方面,减少了人为介入,降低了整个信号质量检测系统的出错率。Specifically, a resistor is connected to the signal output end of the unit to be tested for signal quality, so as to isolate the signal quality detection system and reduce the interference of the signal quality detection system to the unit to be tested for signal quality. The signal to be detected is input to the first comparator through the negative input terminal of the first comparator, and the signal to be detected is input to the second comparator through the positive input terminal of the second comparator. In order to realize that when the level of the signal to be detected is higher than the first reference level, the first output signal is high level, otherwise the first output signal is low level; when the level of the signal to be detected is higher than the second reference level When it is low, the second output signal is high level, otherwise it is low level. Based on the first output signal and the second output signal, the signal quality of the signal to be detected can be displayed more directly and intuitively without additional On the one hand, it reduces the workload of those skilled in the art; on the other hand, it reduces human intervention and reduces the error rate of the entire signal quality detection system.
在一个实施例中,所述第一参考电平和第二参考电平可以是由数模转换器,或,对应于信号待检测单元的信号接收端产生,所述第一参考电平和第二参考电平可以分别对应待检测信号的下限值和上限值,也就是说,当待检测信号处于下限值和上限值之间时,则表明信号质量待检测单元的待检测信号状态正常。In one embodiment, the first reference level and the second reference level may be generated by a digital-to-analog converter, or a signal receiving end corresponding to the signal to be detected unit, the first reference level and the second reference level The level can respectively correspond to the lower limit value and upper limit value of the signal to be detected, that is to say, when the signal to be detected is between the lower limit value and the upper limit value, it indicates that the signal quality of the to-be-detected signal of the unit to be detected is normal. .
在一个实施例中,当待检测信号的电平高于第一参考电平时,则第一输出信号为高电平,当待检测信号的电平低于第一参考电平时,则第一输出信号为低电平。当待检测信号的电平高于第二参考电平时,则第二输出信号为低电平,当待检测信号的电平低于第二参考电平时,则第二输出信号为高电平。如图4即为待检测信号、第一参考电平和第二参考电平三者之间的关系示意图,基于图4所示的示意图可以看出,对于待检测信号波形的信号回勾、上升沿变化、幅值变化等情况都可以通过输出信号进行有效的检出。In one embodiment, when the level of the signal to be detected is higher than the first reference level, the first output signal is a high level, and when the level of the signal to be detected is lower than the first reference level, the first output signal is signal is low. When the level of the signal to be detected is higher than the second reference level, the second output signal is low level, and when the level of the signal to be detected is lower than the second reference level, the second output signal is high level. Figure 4 is a schematic diagram of the relationship between the signal to be detected, the first reference level and the second reference level. Based on the schematic diagram shown in Figure 4, it can be seen that for the signal hook and rising edge of the waveform of the signal to be detected Changes, amplitude changes, etc. can be effectively detected through the output signal.
在一个实施例中,如图2所示,当所述信号质量待检测单元为多个时,所述系统包括:多路模拟开关,及,与每一所述信号质量检测单元的信号输出端一一对应连接的若干个电阻;所述多路模拟开关的不动端分别连接于所述第一比较器的负向输入端与所述第二比较器的正向输入端,所述多路模拟开关的动端分别连接于每一所述电阻的信号输出端。In one embodiment, as shown in FIG. 2 , when there are multiple units to be detected for the signal quality, the system includes: a multi-channel analog switch, and a signal output terminal connected to each of the signal quality detection units A number of resistors connected in one-to-one correspondence; the stationary terminals of the multi-channel analog switches are respectively connected to the negative input terminal of the first comparator and the positive input terminal of the second comparator, and the multi-channel analog switch is connected to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively. The moving ends of the analog switches are respectively connected to the signal output ends of each of the resistors.
需要理解的是,所述第一比较器与所述第二比较器的信号输入端均包括正向输入端和负向输入端。同时,由于输入电阻很大(典型100K),即使加在高频信号(如100MHz)上并且分出信号线分支(电阻可保证分支最短),对信号质量的影响也可以忽略不计,所以可以通过多路模块开关的切换,来分时复用检测电路,检测不同的高速信号。后级输出电路的检测同单路相同,这样对于多路的检测,在可以降低检测成本和难度的同时,也保证了检测信号的可靠性。It should be understood that the signal input terminals of the first comparator and the second comparator both include a positive input terminal and a negative input terminal. At the same time, due to the large input resistance (typically 100K), even if it is added to a high-frequency signal (such as 100MHz) and the signal line branch is branched (the resistance can ensure the shortest branch), the impact on the signal quality can be ignored, so it can be passed The switching of the multi-channel module switches is used to time-division multiplexing detection circuits to detect different high-speed signals. The detection of the output circuit of the latter stage is the same as that of the single channel, so for the detection of multiple channels, the detection cost and difficulty can be reduced, and the reliability of the detection signal is also guaranteed.
在一个实施例中,所述系统可以包含多个电阻,所述多个电阻可以是串联在一起的,也可以是并联在一起的。电阻的失效率为几个Fit,集成电路的失效率为几百fit的数量级,通过两者串联系,甚至于多个电阻的串联,使检测集成电路失效引起的故障对检测信号的影响降到可以忽略不计。使整机的可靠性增加。对于无电阻,或是小电阻的缓冲器检测电路,有明显优势。其中,fit表示失效概率,即指的是工作到某一时刻尚未失效的产品,在该时刻后,单位时间内发生失效的概率。In one embodiment, the system may include a plurality of resistors, which may be connected in series or in parallel. The failure rate of resistors is a few Fits, and the failure rate of integrated circuits is in the order of hundreds of Fits. Through the series connection of the two, or even the series connection of multiple resistors, the influence of the failure caused by the failure of the detection integrated circuit on the detection signal is reduced to can be ignored. Increase the reliability of the whole machine. There are obvious advantages for the buffer detection circuit with no resistance or small resistance. Among them, fit represents the probability of failure, which refers to the probability that the product has not failed until a certain time, and the probability of failure per unit time after this time.
在一个实施例中,所述信号状态判断单元包括:异或门(如图3和图4所示),以基于所述第一输出信号和所述第二输出信号的电平,判断所述待检测信号的状态;和/或,现场可编程逻辑门阵列,以基于所述第一输出信号和所述第二输出信号的信号时钟个数,判断所述待检测信号的状态;和/或,中央处理器,以基于所述第一输出信号和所述第二输出信号的信号间隔,判断所述待检测信号的状态。也就是说,在对输出的第一输出信号和第二输出信号进行判断时,可以采用其中一个信号状态判断单元,或,其中两个信号状态判断单元,或联合所有信号状态判断单元对第一输出信号和第二输出信号的信号质量进行状态判断。In one embodiment, the signal state determination unit includes: an exclusive OR gate (as shown in FIG. 3 and FIG. 4 ), so as to determine the level of the first output signal and the level of the second output signal The state of the signal to be detected; and/or, a field programmable logic gate array to determine the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal; and/or , the central processing unit, to judge the state of the signal to be detected based on the signal interval between the first output signal and the second output signal. That is to say, when judging the outputted first output signal and the second output signal, one of the signal state judging units, or two of the signal state judging units, or a combination of all the signal state judging units can be used to judge the first output signal. The signal quality of the output signal and the second output signal is used for state judgment.
在一个实施例中,当所述待检测信号为高速信号时,所述电阻的阻值不低于1000欧姆;所述第一比较器与所述第二比较器为高阻抗比较器。需要理解的是,在本领域中,当信号的上升沿小于50皮秒,或,信号所在的传输路径长度大于传输信号的波长的六分之一倍时,则定义所述信号为高速信号。由于输入大电阻、高输入阻抗比较器,以及模拟开关的采用,可以实现多路的检测且不影响信号质量,典型的通过串联两级8路模拟开关,可以实现64路信号的检测。In one embodiment, when the signal to be detected is a high-speed signal, the resistance of the resistor is not lower than 1000 ohms; the first comparator and the second comparator are high-impedance comparators. It should be understood that, in the art, when the rising edge of the signal is less than 50 picoseconds, or the length of the transmission path where the signal is located is greater than one sixth of the wavelength of the transmission signal, the signal is defined as a high-speed signal. Due to the large input resistance, high input impedance comparator, and the use of analog switches, multi-channel detection can be achieved without affecting the signal quality. Typically, 64-channel signal detection can be achieved by connecting two-stage 8-channel analog switches in series.
在一个实施例中,当所述信号为高速信号时,所述电阻的阻值取值范围为一万欧姆和一千万欧姆。为增加信号质量检测系统的可靠性,可以将多个电阻进行串联使用,比如将两个十万欧姆的电阻串联使用。In one embodiment, when the signal is a high-speed signal, the resistance value of the resistor ranges from 10,000 ohms to 10,000,000 ohms. In order to increase the reliability of the signal quality detection system, multiple resistors can be used in series, for example, two 100,000 ohm resistors can be used in series.
在一个实施例中,所述高阻抗比较器的型号为TLV7211,输入电流为0.04pA。In one embodiment, the model of the high-impedance comparator is TLV7211, and the input current is 0.04pA.
上述信号质量检测系统中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned signal quality detection system can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
上述信号质量检测系统,所述系统连接于信号质量待检测单元的信号输出端,所述系统包括: 电阻,所述电阻的信号输入端与所述信号质量待检测单元的信号输出端连接,以用于获取待检测信号;第一参考电平源,用于输出第一参考电平;第二参考电平源,用于输出第二参考电平;第一比较器,所述第一比较器的负向输入端与所述电阻的信号输出端连接,所述第一比较器的正向输入端与所述第一参考电平源连接,以用于输出第一输出信号;第二比较器,所述第二比较器的正向输入端与所述电阻的信号输出端连接,所述第二比较器的负向输入端与第二参考电平源连接,以用于输出第二输出信号;信号状态判断单元,所述信号状态判断单元分别与所述第一比较器的信号输出端,和,所述第二比较器的信号输出端连接,以用于判断所述待检测信号状态。基于本申请所述的信号质量检测系统,将所述信号质量检测系统连接至信号质量待检测单元后,对待检测信号的影响几乎可以忽略不计,并且在信号质量检测系统失效或短路后,并不影响信号质量待检测单元的正常工作。The above-mentioned signal quality detection system, the system is connected to the signal output end of the signal quality unit to be detected, the system includes: a resistance, the signal input end of the resistance is connected with the signal output end of the signal quality unit to be detected, to used to obtain the signal to be detected; the first reference level source, used to output the first reference level; the second reference level source, used to output the second reference level; the first comparator, the first comparator The negative input terminal of the first comparator is connected to the signal output terminal of the resistor, and the positive input terminal of the first comparator is connected to the first reference level source for outputting the first output signal; the second comparator , the positive input terminal of the second comparator is connected to the signal output terminal of the resistor, and the negative input terminal of the second comparator is connected to the second reference level source for outputting the second output signal ; a signal state judging unit, the signal state judging unit is respectively connected with the signal output end of the first comparator and the signal output end of the second comparator, for judging the state of the signal to be detected. Based on the signal quality detection system described in this application, after the signal quality detection system is connected to the signal quality to-be-detected unit, the influence of the signal to be detected is almost negligible, and after the signal quality detection system fails or is short-circuited, the Affect the normal operation of the signal quality unit to be detected.
实施例二Embodiment 2
本申请提供的信号质量检测方法,可以应用于如图5所示的应用环境中。其中,终端102通过网络与服务器104通过网络进行通信。服务器104实时获取信号质量检测结果,并将信号质量检测结果实时返回给终端102,终端102通过服务器104实现于信号质量检测系统的通讯。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机和平板电脑,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The signal quality detection method provided by the present application can be applied to the application environment shown in FIG. 5 . The terminal 102 communicates with the
在一个实施例中,如图6所示,提供了一种信号质量检测方法,包括以下步骤:In one embodiment, as shown in Figure 6, a signal quality detection method is provided, comprising the following steps:
获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;acquiring the signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;The first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a second output based on the second reference level and the to-be-detected signal Signal;
基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Based on the first output signal and the second output signal, the state of the signal to be detected is determined.
在一个实施例中,判断所述待检测信号状态,包括基于异或门信号状态判断单元,判断所述待检测信号状态,如图7所示:将所述第一输出信号和所述第二输出信号输入至所述异或门; 若所述第一输出信号和所述第二输出信号电平相同,则输出低电平0,判定所述待检测信号异常;若所述第一输出信号和所述第二输出信号电平不相同,则输出高电平1,判定所述待检测信号正常。In one embodiment, judging the state of the signal to be detected includes judging the state of the signal to be detected based on an exclusive OR gate signal state judging unit, as shown in FIG. 7 : combining the first output signal and the second output signal The output signal is input to the XOR gate; if the first output signal and the second output signal have the same level, a low level 0 is output to determine that the signal to be detected is abnormal; if the first output signal If the level of the second output signal is different from that of the second output signal, a high level of 1 is output, and it is determined that the signal to be detected is normal.
在一个实施例中,判断所述待检测信号状态,包括基于现场可编程逻辑门阵列信号状态判断单元,判断所述待检测信号状态,如图8所示:将所述第一输出信号和所述第二输出信号发送至所述现场可编程逻辑门阵列;所述现场可编程逻辑门阵列基于所述第一输出信号与所述第二输出信号的信号时钟个数判断所述待检测信号状态;若所述第一输出信号与所述第二输出信号的信号时钟个数相等,则判定所述待检测信号状态正常;反之,则判定所述待检测信号状态异常。In one embodiment, judging the state of the signal to be detected includes judging the state of the signal to be detected based on a field programmable logic gate array signal state judging unit, as shown in FIG. 8 : combining the first output signal and the The second output signal is sent to the field programmable logic gate array; the field programmable logic gate array judges the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal ; If the number of signal clocks of the first output signal and the second output signal is equal, it is determined that the state of the signal to be detected is normal; otherwise, it is determined that the state of the signal to be detected is abnormal.
具体地,基于现场可编程逻辑门阵列信号状态判断单元,可以有效判断待检测信号的状态。根据不同的信号,可用不同的判定办法,比如是100MHz的待测时钟信号,可以接入FPGA生成的计数器,统计在1秒内的时钟个数,第一输出信号和第二输出信号时钟个数应该是相等的,如果不相等,说明信号质量有问题,达到高低限电平的次数不同。如果是协议类的信号,比如串口信号,这时间用FPGA内部的高速时钟采样,可以通过高低电平,精确的测出待测信号的高低电平的时间,根据串口的波特率的不同,来判定信号是否正常。Specifically, based on the field programmable logic gate array signal state determination unit, the state of the signal to be detected can be effectively determined. According to different signals, different judgment methods can be used. For example, the 100MHz clock signal to be tested can be connected to the counter generated by the FPGA to count the number of clocks in 1 second, the number of clocks of the first output signal and the second output signal. They should be equal. If they are not equal, it means that there is a problem with the signal quality, and the number of times the high and low levels are reached are different. If it is a protocol signal, such as a serial port signal, at this time, the high-speed clock inside the FPGA is used to sample, and the high and low level time of the signal to be tested can be accurately measured through the high and low levels. According to the different baud rates of the serial port, to determine whether the signal is normal.
在一个实施例中,判断所述待检测信号状态,包括基于中央处理器信号状态判断单元,判断所述待检测信号状态,如图9所示:将所述第一输出信号和所述第二输出信号发送至中央处理器;所述中央处理器基于所述第一输出信号和所述第二输出信号,通过计时器进行脉冲计数;基于所述第一输出信号和所述第二输出信号的脉冲计数数目,获得所述第一输出信号和所述第二输出信号的信号间隔;若所述第一输出信号和所述第二输出信号的信号间隔相等,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。In one embodiment, judging the state of the signal to be detected includes judging the state of the signal to be detected based on a signal state judging unit of a central processing unit, as shown in FIG. 9 : combining the first output signal and the second output signal The output signal is sent to the central processing unit; the central processing unit counts pulses through a timer based on the first output signal and the second output signal; based on the first output signal and the second output signal The number of pulse counts to obtain the signal interval between the first output signal and the second output signal; if the signal interval between the first output signal and the second output signal is equal, it is determined that the signal to be detected is normal; On the contrary, it is determined that the signal to be detected is abnormal.
具体地,将信号待检测单元接入中央处理器或单片机,其中,时钟类的信号可以接入单片机或中央处理器的计数器,判断第一输出信号和第二输出信号单位时间内的数量。也可用单片机或中央处理器的计时电路,即当脉冲来的时候开始计数,再一次来的时候停止计数,计算中间间隔,来实现协议类信号的信号质量判定。Specifically, the signal to be detected unit is connected to the central processing unit or the single-chip computer, wherein the clock-like signal can be connected to the single-chip computer or the counter of the central processing unit to determine the quantity of the first output signal and the second output signal per unit time. The timing circuit of the single-chip computer or the central processing unit can also be used, that is, when the pulse comes, it starts counting, when it comes again, it stops counting, and calculates the intermediate interval to realize the signal quality judgment of the protocol signal.
在一个实施例中,当基于所述异或门信号状态判断单元,所述现场可编程逻辑门阵列信号状态判断单元,和,所述中央处理器信号状态判断单元联合判断所述待检测信号状态时,所述方法包括:其中至少两个信号状态判断单元判定所述待检测信号正常时,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。In one embodiment, when based on the XOR gate signal state judging unit, the field programmable logic gate array signal state judging unit, and the central processing unit signal state judging unit jointly judge the state of the signal to be detected The method includes: when at least two signal state judging units determine that the signal to be detected is normal, the signal to be detected is determined to be normal; otherwise, the signal to be detected is determined to be abnormal.
应该理解的是,虽然图6-9的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图6-9中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 6-9 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 6-9 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
关于信号质量检测方法的具体限定可以参见上文中对于信号质量检测系统的限定,在此不再赘述。For specific limitations on the signal quality detection method, reference may be made to the above limitations on the signal quality detection system, which will not be repeated here.
实施例三Embodiment 3
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图10所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储待检测信号状态正常或异常数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种信号质量检测方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 10 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing normal or abnormal data of the state of the signal to be detected. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a signal quality detection method.
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 10 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor implements the following steps when executing the computer program:
步骤A:获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;Step A: obtaining a signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
步骤B:将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;Step B: sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
步骤C:将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;Step C: sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
步骤D:所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;Step D: the first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a first output signal based on the second reference level and the to-be-detected signal the second output signal;
步骤E:基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Step E: Determine the state of the signal to be detected based on the first output signal and the second output signal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
将所述第一输出信号和所述第二输出信号输入至所述异或门;inputting the first output signal and the second output signal to the XOR gate;
若所述第一输出信号和所述第二输出信号电平相同,则输出低电平0,判定所述待检测信号异常;If the first output signal and the second output signal have the same level, output a low level of 0, and determine that the signal to be detected is abnormal;
若所述第一输出信号和所述第二输出信号电平不相同,则输出高电平1,判定所述待检测信号正常。If the first output signal and the second output signal have different levels, a high level of 1 is output, and it is determined that the signal to be detected is normal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
将所述第一输出信号和所述第二输出信号发送至所述现场可编程逻辑门阵列;sending the first output signal and the second output signal to the field programmable logic gate array;
所述现场可编程逻辑门阵列基于所述第一输出信号与所述第二输出信号的信号时钟个数判断所述待检测信号状态;The field programmable logic gate array determines the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal;
若所述第一输出信号与所述第二输出信号的信号时钟个数相等,则判定所述待检测信号状态正常;反之,则判定所述待检测信号状态异常。If the number of signal clocks of the first output signal and the second output signal is equal, it is determined that the state of the signal to be detected is normal; otherwise, it is determined that the state of the signal to be detected is abnormal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
将所述第一输出信号和所述第二输出信号发送至中央处理器;sending the first output signal and the second output signal to a central processing unit;
所述中央处理器基于所述第一输出信号和所述第二输出信号,通过计时器进行脉冲计数;The central processing unit performs pulse counting through a timer based on the first output signal and the second output signal;
基于所述第一输出信号和所述第二输出信号的脉冲计数数目,获得所述第一输出信号和所述第二输出信号的信号间隔;obtaining a signal interval of the first output signal and the second output signal based on the number of pulse counts of the first output signal and the second output signal;
若所述第一输出信号和所述第二输出信号的信号间隔相等,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。If the signal intervals of the first output signal and the second output signal are equal, it is determined that the signal to be detected is normal; otherwise, it is determined that the signal to be detected is abnormal.
在一个实施例中,处理器执行计算机程序时还实现以下步骤:In one embodiment, the processor further implements the following steps when executing the computer program:
当其中至少两个信号状态判断单元判定所述待检测信号正常时,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。When at least two of the signal state determination units determine that the signal to be detected is normal, it is determined that the signal to be detected is normal; otherwise, it is determined that the signal to be detected is abnormal.
实施例四Embodiment 4
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤A:获取待检测信号,将所述待检测信号输入至电阻,以实现对信号质量待检测单元的隔离保护;Step A: obtaining a signal to be detected, and inputting the signal to be detected into a resistor, so as to realize isolation protection for the unit to be detected for signal quality;
步骤B:将经所述电阻输出的待检测信号分别发送至第一比较器的负向输入端与第二比较器的正向输入端;Step B: sending the signal to be detected outputted by the resistor to the negative input terminal of the first comparator and the positive input terminal of the second comparator respectively;
步骤C:将第一参考电平发送至所述第一比较器的正向输入端,将第二参考电平发送至所述第二比较器的负向输入端;Step C: sending the first reference level to the positive input terminal of the first comparator, and sending the second reference level to the negative input terminal of the second comparator;
步骤D:所述第一比较器基于所述第一参考电平和所述待检测信号,输出第一输出信号;所述第二比较器基于所述第二参考电平和所述待检测信号,输出第二输出信号;Step D: the first comparator outputs a first output signal based on the first reference level and the to-be-detected signal; the second comparator outputs a first output signal based on the second reference level and the to-be-detected signal the second output signal;
步骤E:基于所述第一输出信号和所述第二输出信号,判断所述待检测信号状态。Step E: Determine the state of the signal to be detected based on the first output signal and the second output signal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
将所述第一输出信号和所述第二输出信号输入至所述异或门;inputting the first output signal and the second output signal to the XOR gate;
若所述第一输出信号和所述第二输出信号电平相同,则输出低电平0,判定所述待检测信号异常;If the first output signal and the second output signal have the same level, output a low level of 0, and determine that the signal to be detected is abnormal;
若所述第一输出信号和所述第二输出信号电平不相同,则输出高电平1,判定所述待检测信号正常。If the first output signal and the second output signal have different levels, a high level of 1 is output, and it is determined that the signal to be detected is normal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
将所述第一输出信号和所述第二输出信号发送至所述现场可编程逻辑门阵列;sending the first output signal and the second output signal to the field programmable logic gate array;
所述现场可编程逻辑门阵列基于所述第一输出信号与所述第二输出信号的信号时钟个数判断所述待检测信号状态;The field programmable logic gate array determines the state of the signal to be detected based on the number of signal clocks of the first output signal and the second output signal;
若所述第一输出信号与所述第二输出信号的信号时钟个数相等,则判定所述待检测信号状态正常;反之,则判定所述待检测信号状态异常。If the number of signal clocks of the first output signal and the second output signal is equal, it is determined that the state of the signal to be detected is normal; otherwise, it is determined that the state of the signal to be detected is abnormal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:In one embodiment, the computer program further implements the following steps when executed by the processor:
将所述第一输出信号和所述第二输出信号发送至中央处理器;sending the first output signal and the second output signal to a central processing unit;
所述中央处理器基于所述第一输出信号和所述第二输出信号,通过计时器进行脉冲计数;The central processing unit performs pulse counting through a timer based on the first output signal and the second output signal;
基于所述第一输出信号和所述第二输出信号的脉冲计数数目,获得所述第一输出信号和所述第二输出信号的信号间隔;obtaining a signal interval of the first output signal and the second output signal based on the number of pulse counts of the first output signal and the second output signal;
若所述第一输出信号和所述第二输出信号的信号间隔相等,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。If the signal intervals of the first output signal and the second output signal are equal, it is determined that the signal to be detected is normal; otherwise, it is determined that the signal to be detected is abnormal.
在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当其中至少两个信号状态判断单元判定所述待检测信号正常时,则判定所述待检测信号正常;反之,则判定所述待检测信号异常。In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when at least two of the signal state determination units determine that the signal to be detected is normal, then determine that the signal to be detected is normal; otherwise, determine that the signal to be detected is normal; otherwise, determine that the signal to be detected is normal. The signal to be detected is abnormal.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM) and so on.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210629986.3A CN114705943A (en) | 2022-06-06 | 2022-06-06 | Signal quality detection system, method and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210629986.3A CN114705943A (en) | 2022-06-06 | 2022-06-06 | Signal quality detection system, method and computer equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114705943A true CN114705943A (en) | 2022-07-05 |
Family
ID=82178011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210629986.3A Pending CN114705943A (en) | 2022-06-06 | 2022-06-06 | Signal quality detection system, method and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114705943A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118890312A (en) * | 2024-09-30 | 2024-11-01 | 北京东方逸腾数码医疗设备技术有限公司 | A communication method, device and system for key signals |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4165458A (en) * | 1976-04-23 | 1979-08-21 | Mitsubishi Denki Kabushiki Kaisha | Signal decision system |
| CN1430066A (en) * | 2003-01-13 | 2003-07-16 | 威盛电子股份有限公司 | Method and device for detecting circuit board signal transmission quality |
| JP2011010190A (en) * | 2009-06-29 | 2011-01-13 | Denso Corp | Disconnection abnormality detecting device |
| CN103107776A (en) * | 2011-11-14 | 2013-05-15 | 嘉兴联星微电子有限公司 | Ultralow power consumption band-pass frequency detector and frequency discrimination method of the ultralow power consumption band-pass frequency detector |
| CN103371816A (en) * | 2012-04-25 | 2013-10-30 | 深圳迈瑞生物医疗电子股份有限公司 | Bio-electricity signal detection circuit, lead wire detection circuit and medical device |
| CN203705576U (en) * | 2014-01-29 | 2014-07-09 | 浙江网新技术有限公司 | Signal detection device |
| CN204330870U (en) * | 2014-12-31 | 2015-05-13 | 武汉华中数控股份有限公司 | A kind of on-off model testing circuit |
| CN105956566A (en) * | 2016-05-09 | 2016-09-21 | 中国海洋石油总公司 | Deep-sea drilling gas cut detection signal processing method and processing circuit |
| CN112067883A (en) * | 2020-09-14 | 2020-12-11 | 珠海格力电器股份有限公司 | Voltage detection circuit and method and electric equipment |
| CN213659588U (en) * | 2020-12-18 | 2021-07-09 | 百富计算机技术(深圳)有限公司 | A kind of information leakage prevention circuit and POS machine |
| CN215866993U (en) * | 2021-09-01 | 2022-02-18 | 炬芯科技股份有限公司 | Chip pin test circuit and test system |
| CN114112169A (en) * | 2020-08-28 | 2022-03-01 | 深圳市帝迈生物技术有限公司 | Pressure detection circuit and blood analysis device |
-
2022
- 2022-06-06 CN CN202210629986.3A patent/CN114705943A/en active Pending
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4165458A (en) * | 1976-04-23 | 1979-08-21 | Mitsubishi Denki Kabushiki Kaisha | Signal decision system |
| CN1430066A (en) * | 2003-01-13 | 2003-07-16 | 威盛电子股份有限公司 | Method and device for detecting circuit board signal transmission quality |
| JP2011010190A (en) * | 2009-06-29 | 2011-01-13 | Denso Corp | Disconnection abnormality detecting device |
| CN103107776A (en) * | 2011-11-14 | 2013-05-15 | 嘉兴联星微电子有限公司 | Ultralow power consumption band-pass frequency detector and frequency discrimination method of the ultralow power consumption band-pass frequency detector |
| CN103371816A (en) * | 2012-04-25 | 2013-10-30 | 深圳迈瑞生物医疗电子股份有限公司 | Bio-electricity signal detection circuit, lead wire detection circuit and medical device |
| CN203705576U (en) * | 2014-01-29 | 2014-07-09 | 浙江网新技术有限公司 | Signal detection device |
| CN204330870U (en) * | 2014-12-31 | 2015-05-13 | 武汉华中数控股份有限公司 | A kind of on-off model testing circuit |
| CN105956566A (en) * | 2016-05-09 | 2016-09-21 | 中国海洋石油总公司 | Deep-sea drilling gas cut detection signal processing method and processing circuit |
| CN114112169A (en) * | 2020-08-28 | 2022-03-01 | 深圳市帝迈生物技术有限公司 | Pressure detection circuit and blood analysis device |
| CN112067883A (en) * | 2020-09-14 | 2020-12-11 | 珠海格力电器股份有限公司 | Voltage detection circuit and method and electric equipment |
| CN213659588U (en) * | 2020-12-18 | 2021-07-09 | 百富计算机技术(深圳)有限公司 | A kind of information leakage prevention circuit and POS machine |
| CN215866993U (en) * | 2021-09-01 | 2022-02-18 | 炬芯科技股份有限公司 | Chip pin test circuit and test system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118890312A (en) * | 2024-09-30 | 2024-11-01 | 北京东方逸腾数码医疗设备技术有限公司 | A communication method, device and system for key signals |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9082242B2 (en) | Vehicle network health assessment | |
| US11927627B2 (en) | Systems, methods, and devices for high-speed input/output margin testing | |
| US6546507B1 (en) | Method and apparatus for operational envelope testing of busses to identify halt limits | |
| TW202217346A (en) | Integrated circuit margin measurement for structural testing | |
| CN111551865B (en) | Apparatus and method for monitoring reliability of cell impedance measurements of battery cells | |
| US6473871B1 (en) | Method and apparatus for HASS testing of busses under programmable control | |
| US9222971B2 (en) | Functional path failure monitor | |
| WO2016003800A1 (en) | Duty cycle based timing margining for i/o ac timing | |
| CN101932943B (en) | Semiconductor device test system | |
| CN115792583B (en) | Method, device, equipment and medium for testing vehicle-gauge chip | |
| CN102412909A (en) | Fault injection equipment | |
| CN114397561B (en) | Timing error detection circuit, method and electronic equipment | |
| US9501376B2 (en) | Testing I/O timing defects for high pin count, non-contact interfaces | |
| CN114705943A (en) | Signal quality detection system, method and computer equipment | |
| EP2580864B1 (en) | Integrated circuit device, electronic device and method for detecting timing violations within a clock | |
| US8378707B2 (en) | Evaluation of an output signal of a device under test | |
| CN117560593A (en) | Signal transmission method, device, equipment and medium in self-adaptive IO module | |
| TW201500752A (en) | Semiconductor test apparatus for controlling tester | |
| CN115902605A (en) | Universal multichannel relay switch contact rapid detection system and method | |
| CN115184822B (en) | Multi-channel switching HI-POT test device and contact self-test method thereof | |
| EP4220205A1 (en) | Integrated circuit having an in-situ circuit for detecting an impending circuit failure | |
| CN119805197B (en) | An adaptive contact test state and jitter fault test device and method | |
| US8169228B2 (en) | Chip testing circuit | |
| US11933859B2 (en) | Multi-cell battery fault indicator | |
| CN110542825A (en) | testing equipment and testing method for wiring integrity of product |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220705 |
|
| RJ01 | Rejection of invention patent application after publication |
