CN114047378B - Signal voltage detection method, system, equipment and server - Google Patents

Signal voltage detection method, system, equipment and server Download PDF

Info

Publication number
CN114047378B
CN114047378B CN202210029328.0A CN202210029328A CN114047378B CN 114047378 B CN114047378 B CN 114047378B CN 202210029328 A CN202210029328 A CN 202210029328A CN 114047378 B CN114047378 B CN 114047378B
Authority
CN
China
Prior art keywords
voltage
signal
detected
converter
voltage value
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.)
Active
Application number
CN202210029328.0A
Other languages
Chinese (zh)
Other versions
CN114047378A (en
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 CN202210029328.0A priority Critical patent/CN114047378B/en
Publication of CN114047378A publication Critical patent/CN114047378A/en
Application granted granted Critical
Publication of CN114047378B publication Critical patent/CN114047378B/en
Priority to PCT/CN2022/098736 priority patent/WO2023134111A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • G01R19/2503Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques for measuring voltage only, e.g. digital volt meters (DVM's)

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention discloses a signal voltage detection method, a system, equipment and a server, wherein the voltage of a signal to be detected is detected through an A/D converter in BMC, the voltage value of the signal to be detected is calculated according to the preset corresponding relation between the sampled voltage value and the voltage value of the signal to be detected and the sampled voltage value, and the voltage value of the signal to be detected is sent to a terminal to generate the waveform of the signal voltage, so that technical personnel can conveniently perform troubleshooting. Because the signal voltage is detected by the aid of the A/D converter in the BMC, compared with an oscilloscope, cost is greatly saved, and the problem that the BMC is large in size and not easy to carry is solved.

Description

Signal voltage detection method, system, equipment and server
Technical Field
The invention relates to the field of server testing, in particular to a signal voltage detection method, a system, equipment and a server.
Background
In the development stage and the mass production stage of the server, debugging and fault detection are required to be performed on the server, for example, a technician suspects that the waveform of a certain signal voltage in the server is abnormal, an oscilloscope is required to be used for detecting the waveform of the signal voltage, and the oscilloscope is connected to the signal voltage and used for displaying the waveform of the signal voltage so as to observe whether the signal voltage is abnormal or not. However, oscilloscopes are high in cost and large in size, and fault detection performed in a customer site is often difficult to carry with the oscilloscopes.
Disclosure of Invention
The invention aims to provide a signal voltage detection method, a signal voltage detection system, signal voltage detection equipment and a signal voltage detection server.
In order to solve the above technical problem, the present invention provides a signal voltage detection method, which is applied to a BMC in a server, where the BMC includes an a/D converter, and the signal voltage detection method includes:
determining the frequency of the voltage of the signal to be detected;
setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected;
controlling the A/D converter to sample the voltage of a signal to be tested of a test channel connected with the A/D converter;
acquiring a voltage value sampled by the A/D converter;
calculating the voltage value of the signal voltage to be detected according to the preset corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be detected and the sampled voltage value;
and sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
Preferably, the setting of the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured includes:
judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a first preset ratio, wherein the first preset ratio is not less than 1;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the first preset ratio.
Preferably, determining the frequency of the voltage of the signal to be measured comprises:
and when receiving the frequency of the signal voltage to be measured input by a user, converting the frequency of the signal voltage to be measured into integer data.
Preferably, before setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured, the method further includes:
determining the signal type of the voltage of the signal to be detected, wherein the signal type comprises a digital signal and an analog signal;
setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be measured, comprising:
when the voltage of the signal to be detected is a digital signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a second preset ratio or not;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the second preset ratio;
when the voltage of the signal to be detected is an analog signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a third preset ratio, wherein the second preset ratio and the third preset ratio are not less than 1, and the second preset ratio is less than the third preset ratio;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the third preset ratio.
Preferably, the obtaining the voltage value sampled by the a/D converter includes:
periodically reading the voltage value sampled by the A/D converter and stored in the register of the A/D converter, wherein the reading frequency is equal to the sampling rate of the A/D converter.
Preferably, when a sliding rheostat for voltage division is arranged between the a/D converter and the test channel, a first fixed end of the sliding rheostat is connected with the test channel, a second fixed end of the sliding rheostat is grounded, a sliding end of the sliding rheostat is connected with the a/D converter, and a corresponding relation between a sampled voltage value and a voltage value of a signal voltage to be measured is preset as follows:
V1=(m/2n)*(Rm/R1)*(Vm+1), wherein V1Is the voltage value, V, of the signal voltage to be measuredmVoltage value, R, sampled for the A/D convertermIs the nominal value, R, of the sliding rheostat1M is a resistance value between the second fixed end and the sliding end, and m is a maximum input voltage of the A/D converter, and the precision of the A/D converter is n bits.
Preferably, before sending the voltage value of the signal voltage to be measured to the terminal, the method further includes:
determining a current working mode, wherein the current working mode comprises a normal mode, a rising edge trigger mode and a falling edge trigger mode;
determining a trigger voltage when the current working mode is the rising edge trigger mode or the falling edge trigger mode;
sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected, and the method comprises the following steps:
when the current working mode is the normal mode, sending the voltage values of the signal voltages to be detected in a first preset number to the terminal each time, so that the terminal determines and displays the waveform of the signal voltages to be detected according to the voltage values of the signal voltages to be detected in the first preset number;
when the current working mode is the rising edge trigger mode, judging whether the trigger voltage is smaller than the voltage value of the newly obtained signal voltage to be detected and larger than the voltage value of the last obtained signal voltage to be detected;
if so, sending a second preset number of voltage values calculated before the latest obtained voltage value of the signal to be detected and a second preset number of voltage values calculated after the latest obtained voltage value of the signal to be detected to the terminal, so that the terminal can determine and display the waveform of the signal to be detected according to the voltage value of the signal to be detected;
when the current working mode is the falling edge trigger mode, judging whether the trigger voltage is larger than the voltage value of the newly obtained signal voltage to be detected and smaller than the voltage value of the last obtained signal voltage to be detected;
and if so, sending the voltage values of the third preset number calculated before the voltage value of the signal voltage to be detected which is obtained latest and the voltage values of the third preset number calculated after the voltage value of the signal voltage to be detected which is obtained latest to the terminal, so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
The present invention also provides a signal voltage detection system, comprising:
the frequency determining unit is used for determining the frequency of the voltage of the signal to be measured;
the sampling rate determining unit is used for setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected;
the A/D converter control unit is used for controlling the A/D converter to sample the voltage of a signal to be tested of a test channel connected with the A/D converter;
a sampling voltage value acquisition unit for acquiring a voltage value sampled by the A/D converter;
the voltage value calculation unit of the signal voltage to be measured is used for calculating the voltage value of the signal voltage to be measured according to the preset corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be measured and the sampled voltage value;
and the voltage value sending unit of the signal voltage to be detected is used for sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
The present invention also provides a signal voltage detection apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the signal voltage detection method as described above when executing the computer program.
The invention also provides a server, which comprises the signal voltage detection equipment and a plurality of A/D converters, wherein the A/D converters are connected with the signal voltage detection equipment.
The invention provides a signal voltage detection method, a system, equipment and a server, which are used for detecting the voltage of a signal to be detected through an A/D converter in BMC, calculating the voltage value of the voltage of the signal to be detected according to the preset corresponding relation between the sampled voltage value and the voltage value of the voltage of the signal to be detected and the sampled voltage value, and sending the voltage value of the signal to be detected to a terminal to generate the waveform of the signal voltage so as to facilitate technical personnel to carry out troubleshooting. Because the signal voltage is detected by the aid of the A/D converter in the BMC, compared with an oscilloscope, cost is greatly saved, and the problem that the BMC is large in size and not easy to carry is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a signal voltage detection method according to the present invention;
FIG. 2 is a schematic structural diagram of a signal voltage detection system according to the present invention;
fig. 3 is a schematic structural diagram of a signal voltage detection device according to the present invention.
Detailed Description
The core of the invention is to provide a signal voltage detection method, a system, equipment and a server, compared with an oscilloscope, the cost is greatly saved, and the problem that the oscilloscope is large in size and not easy to carry is solved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a signal voltage detection method according to the present invention.
A signal voltage detection method is applied to a Baseboard Management Controller (BMC) in a server, wherein the BMC comprises an analog-to-digital (A/D) converter, and the signal voltage detection method comprises the following steps:
s1: determining the frequency of the voltage of the signal to be detected;
s2: setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected;
in view of the fact that when the a/D converter is used to sample the voltage of the signal to be measured, if the sampling rate is too low, the number of times of sampling by the a/D converter is small in one period of the voltage of the signal to be measured, so that the accuracy of the waveform of the voltage of the signal to be measured obtained after the processing according to the voltage value sampled by the a/D converter is not high, and the requirement for diagnosing the voltage of the signal to be measured cannot be met, in this embodiment, the frequency of the voltage of the signal to be measured is determined first, for example, the frequency of the voltage of the signal to be measured is obtained by prompting a user to input the frequency of the voltage of the signal to be measured. The sampling rate of the a/D converter is then set according to the frequency of the signal to be measured so that the a/D converter can sample the signal voltage to be measured a plurality of times within one period of the signal voltage to be measured.
It should be noted that, in order to make the a/D converter operate normally, before setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured, the state register of the a/D converter needs to be read to determine whether the a/D converter performs timing initialization, and if the a/D converter does not perform timing initialization, the a/D converter needs to be subjected to timing initialization. If the time sequence initialization is completed, the compensation value of the A/D converter is calculated and configured according to the requirement of the A/D converter to correct the error, and the clock frequency of the A/D converter is calculated and configured according to the frequency of the signal voltage to be measured.
S3: controlling the A/D converter to sample the voltage of a signal to be tested of a test channel connected with the A/D converter;
in order to obtain the waveform of the signal voltage to be tested, the signal voltage to be tested needs to be sampled for multiple times to obtain the voltage values of the signal voltages to be tested.
S4: acquiring a voltage value sampled by an A/D converter;
in order to obtain the voltage value of the signal voltage to be measured, the voltage value sampled by the a/D converter needs to be read from the a/D converter first, so that the voltage value of the signal voltage to be measured is obtained according to the corresponding relationship between the preset sampled voltage value and the voltage value of the signal voltage to be measured.
S5: calculating the voltage value of the voltage of the signal to be detected according to the preset corresponding relation between the sampled voltage value and the voltage value of the voltage of the signal to be detected and the sampled voltage value;
the preset corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be measured can be V1=(m/2n) *(Vm+1), wherein V1Is the voltage value, V, of the signal voltage to be measuredmThe sampled voltage value m is the maximum input voltage of the a/D converter, and the accuracy of the a/D converter is n bits, which is not particularly limited in this embodiment.
S6: and sending the voltage value of the voltage of the signal to be detected to the terminal so that the terminal can determine and display the waveform of the voltage of the signal to be detected according to the voltage value of the voltage of the signal to be detected.
After the voltage value of the signal voltage to be measured is calculated according to the preset corresponding relationship between the sampled voltage value and the voltage value of the signal voltage to be measured and the sampled voltage value, in order to obtain the waveform of the signal voltage to be measured according to the voltage value of the signal voltage to be measured, the calculated voltage value of the signal voltage to be measured needs to be sent to a terminal, such as a server, and after the terminal receives the voltage value of the signal to be measured, the waveform of the signal voltage to be measured is constructed according to the voltage value of the signal voltage to be measured.
In addition, when the voltage value of the signal voltage to be measured is transmitted to the terminal, the voltage value may be transmitted through a network protocol, such as bluetooth or Wi-Fi, and the embodiment is not particularly limited herein.
In summary, in this embodiment, the voltage of the signal to be detected is detected by the a/D converter in the BMC, the voltage value of the signal to be detected is calculated according to the preset corresponding relationship between the sampled voltage value and the voltage value of the signal to be detected and the sampled voltage value, and the voltage value of the signal to be detected is sent to the terminal to generate the waveform of the signal voltage, so that the technician can perform troubleshooting. Because the signal voltage is detected by the aid of the A/D converter in the BMC, compared with an oscilloscope, cost is greatly saved, and the problem that the BMC is large in size and not easy to carry is solved. In addition, the A/D converter in the BMC can be used for sampling and detecting the voltage value of the signal voltage and the voltage value of the direct-current voltage, and can be used for measuring the voltage instead of a universal meter.
On the basis of the above-described embodiment:
as a preferred embodiment, setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured includes:
judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a first preset ratio, wherein the first preset ratio is not less than 1;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to a first preset ratio.
Since the ratio of the sampling rate of the a/D converter to the frequency of the signal voltage to be measured indicates the number of times the a/D converter samples the signal voltage to be measured in one signal period. In a signal period of the voltage of the signal to be detected, if the sampling times of the A/D converter on the signal to be detected are more, the waveform of the voltage of the signal to be detected is more accurate. Based on the above principle, in this embodiment, it is determined whether the ratio of the maximum sampling rate of the a/D converter to the frequency of the signal voltage to be measured is not less than a first predetermined ratio, that is, whether the maximum sampling times of the a/D converter in one signal period of the voltage of the signal to be measured is not less than the first preset ratio, if so, it means that the frequency of the voltage of the signal to be measured is too high, the waveform accuracy obtained by sampling the voltage of the signal to be measured by the a/D converter is very low, if not less, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be measured so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be measured is equal to a first preset ratio, that is, the sampling frequency in one signal period of the signal voltage to be measured reaches the first preset ratio, so that the obtained waveform of the signal voltage to be measured is accurate enough.
As a preferred embodiment, determining the frequency of the voltage of the signal under test comprises:
and when receiving the frequency of the signal voltage to be measured input by a user, converting the frequency of the signal voltage to be measured into integer data.
Since the frequency of the signal voltage to be tested input by the user is a visible character, in order to facilitate the BMC to process the frequency of the signal voltage to be tested, the frequency of the signal voltage to be tested needs to be quasi-converted into integer data.
As a preferred embodiment, before setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured, the method further includes:
determining the signal type of the voltage of the signal to be detected, wherein the signal type comprises a digital signal and an analog signal;
the method for setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be measured comprises the following steps:
when the voltage of the signal to be detected is a digital signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a second preset ratio or not;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to a second preset ratio;
when the voltage of the signal to be detected is an analog signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a third preset ratio, wherein the second preset ratio and the third preset ratio are not less than 1, and the second preset ratio is less than the third preset ratio;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to a third preset ratio.
Considering that the voltage of the signal to be tested may be an analog signal or a digital signal, when the voltage of the signal to be tested is a digital signal, the number of sampling times of the a/D converter on the voltage of the signal to be tested may be relatively small in one signal period of the voltage of the signal to be tested, and when the voltage of the signal to be tested is an analog signal, the number of sampling times of the a/D converter on the voltage of the signal to be tested is larger in one signal period of the voltage of the signal to be tested in order to more accurately construct the waveform of the analog signal. Therefore, in this embodiment, the a/D sampling rate is set for the digital signal, so that the ratio of the sampling rate of the a/D converter to the frequency of the voltage of the signal to be measured is equal to the second preset ratio, that is, the voltage of the second preset ratio is sampled for the number of times in one signal period of the digital signal; the analog signal is set with an A/D sampling rate, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be measured is equal to a third preset ratio, namely the voltage of the third preset ratio is sampled for times in one signal period of the digital signal. The third predetermined ratio is larger than the second predetermined ratio, that is, the number of times of sampling the analog signal is more than that of sampling the digital signal in one signal period, so that the waveform of the analog signal can be more accurately constructed. If the ratio of the maximum sampling rate of the a/D converter to the frequency of the signal voltage to be tested is smaller than the second preset ratio when the signal voltage to be tested is a digital signal or the ratio of the maximum sampling rate of the a/D converter to the frequency of the signal voltage to be tested is smaller than the third preset ratio when the signal voltage to be tested is an analog signal, it indicates that the frequency of the signal voltage to be tested is too high, the number of sampling times in one signal period when the signal voltage to be tested is sampled by the a/D converter is too low, and the waveform of the signal voltage to be tested cannot be accurately constructed, which can prompt the user that the frequency of the signal voltage to be tested does not meet the test requirement.
For example, when the maximum sampling rate of the a/D converter is 1 mhz, the second predetermined ratio is 2, and the third predetermined ratio is 10, the frequency cannot exceed 500 khz when the voltage of the signal to be measured is a digital signal, and the frequency cannot exceed 100 khz when the voltage of the signal to be measured is an analog signal.
As a preferred embodiment, acquiring the voltage value sampled by the a/D converter includes:
the voltage values sampled by the A/D converter stored in the register of the A/D converter are read periodically and the reading frequency is equal to the sampling rate of the A/D converter.
Since the voltage value sampled by the a/D converter is stored in the register, the voltage value sampled by the a/D converter needs to be obtained by reading the voltage value stored in the register, and when the voltage value sampled by the a/D converter stored in the register is periodically read, if the frequency of the reading operation is too high, the same voltage value stored in the register is repeatedly read, and if the frequency of the reading operation is too low, the voltage value sampled by the a/D converter cannot be obtained in time. Therefore, in the embodiment, the reading operation frequency for reading the data in the register is equal to the sampling rate of the a/D converter, which ensures that the voltage value sampled by the a/D converter is read in time.
As a preferred embodiment, when a sliding rheostat for voltage division is disposed between the a/D converter and the test channel, a first fixed end of the sliding rheostat is connected to the test channel, a second fixed end of the sliding rheostat is grounded, a sliding end of the sliding rheostat is connected to the a/D converter, and a corresponding relationship between a sampled voltage value and a voltage value of a signal voltage to be measured is preset as follows:
V1=(m/2n)*(Rm/R1)*(Vm+1), wherein V1Is the voltage value, V, of the signal voltage to be measuredmVoltage value, R, sampled for A/D convertermIs the nominal value of the sliding rheostat, R1M is the maximum input voltage of the A/D converter, and the precision of the A/D converter is n bits.
In order to solve the above problem, a sliding rheostat for voltage division may be disposed between the a/D converter and the test channel, and a technician may adjust a resistance value of the sliding rheostat according to a magnitude of the signal voltage to be tested and a maximum input voltage of the a/D converter, so that the voltage input to the a/D converter does not exceed the maximum input voltage of the a/D converter. After the slide rheostat is arranged, the corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be measured is preset as V1=(m/2n)*(Rm/R1)*(Vm+1), for example, when the accuracy of the a/D converter is 10 bits and the maximum input voltage is 1.8V, V is1=(1.8/210)*(Rm/R1)*(Vm+1). By arranging between A/D converter and test channelA slide rheostat is arranged, and the maximum signal voltage to be tested which can be input by the A/D converter is increased.
As a preferred embodiment, before sending the voltage value of the signal voltage to be measured to the terminal, the method further includes:
determining a current working mode, wherein the current working mode comprises a normal mode, a rising edge trigger mode and a falling edge trigger mode;
determining a trigger voltage when the current working mode is a rising edge trigger mode or a falling edge trigger mode;
sending the voltage value of the signal voltage to be measured to the terminal so that the terminal determines and displays the waveform of the signal voltage to be measured according to the voltage value of the signal voltage to be measured, and the method comprises the following steps:
when the current working mode is a normal mode, sending the voltage values of the signal voltages to be detected in a first preset number to the terminal each time, so that the terminal determines and displays the waveform of the signal voltages to be detected according to the voltage values of the signal voltages to be detected in the first preset number;
when the current working mode is a rising edge trigger mode, judging whether the trigger voltage is smaller than the voltage value of the newly obtained signal voltage to be detected and larger than the voltage value of the last obtained signal voltage to be detected;
if so, sending the voltage values of a second preset number calculated before the latest obtained voltage value of the signal to be detected and the voltage values of the second preset number calculated after the latest obtained voltage value of the signal to be detected to the terminal so that the terminal can determine and display the waveform of the signal to be detected according to the voltage value of the signal to be detected;
when the current working mode is a falling edge trigger mode, judging whether the trigger voltage is larger than the voltage value of the newly obtained signal voltage to be detected and smaller than the voltage value of the last obtained signal voltage to be detected;
if so, sending the voltage values of the third preset number calculated before the voltage value of the signal voltage to be detected which is obtained latest and the voltage values of the third preset number calculated after the voltage value of the signal voltage to be detected which is obtained latest to the terminal, so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
In the embodiment, the testing requirements of technicians in different scenes are met by setting different working modes. For example, for a certain signal voltage to be tested, the signal voltage to be tested should be a square wave with a low level of 0V and a high level of 1.5V during normal operation, a technician wants to detect whether a certain waveform in the waveform has a high level exceeding 1.5V, the technician sets a trigger voltage to 1.5V, and sets the current operating mode to be rising edge trigger, the second preset number is 10, once a trigger condition is met, for example, the latest voltage value of the signal voltage to be tested is 1.6V and the last voltage value of the signal voltage to be tested is 0V, the latest voltage value of the signal voltage to be tested, that is, the voltage values of 10 signal voltages to be tested calculated before 1.6V and the voltage values of 10 signal voltages to be tested calculated after 1.6V are sent to a terminal to construct a waveform and display the waveform.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a signal voltage detection system according to the present invention.
The present invention also provides a signal voltage detection system, comprising:
a frequency determining unit 21 for determining a frequency of the voltage of the signal to be measured;
a sampling rate determining unit 22 for setting a sampling rate of the a/D converter according to a frequency of the signal voltage to be measured;
an a/D converter control unit 23, configured to control the a/D converter to sample a voltage of a signal to be tested of a test channel connected to the a/D converter;
a sampled voltage value acquisition unit 24 for acquiring a voltage value sampled by the a/D converter;
a voltage value calculation unit 25 of the signal voltage to be measured, configured to calculate a voltage value of the signal voltage to be measured according to a preset correspondence between the sampled voltage value and the voltage value of the signal voltage to be measured and the sampled voltage value;
and the voltage value sending unit 26 of the signal voltage to be measured is used for sending the voltage value of the signal voltage to be measured to the terminal, so that the terminal determines the waveform of the signal voltage to be measured according to the voltage value of the signal voltage to be measured.
For a related description of the signal voltage detection system, please refer to the above embodiments, which are not repeated herein.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a signal voltage detection device according to the present invention.
The present invention also provides a signal voltage detection apparatus, comprising:
a memory 31 for storing a computer program;
and a processor 32 for implementing the steps of the signal voltage detection method when executing the computer program.
For a related description of the signal voltage detection device, please refer to the above embodiments, which are not repeated herein.
The invention also provides a server, which comprises the signal voltage detection device and a plurality of A/D converters, wherein the A/D converters are connected with the signal voltage detection device.
For the related description of the server, please refer to the above embodiments, which are not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (9)

1. A signal voltage detection method is applied to a BMC in a server, wherein the BMC comprises an A/D converter, and the signal voltage detection method comprises the following steps:
determining the frequency of the voltage of the signal to be detected;
setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected;
controlling the A/D converter to sample the voltage of a signal to be tested of a test channel connected with the A/D converter;
acquiring a voltage value sampled by the A/D converter;
calculating the voltage value of the signal voltage to be detected according to the preset corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be detected and the sampled voltage value;
sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected;
before sending the voltage value of the signal voltage to be measured to a terminal, the method further comprises the following steps:
determining a current working mode, wherein the current working mode comprises a normal mode, a rising edge trigger mode and a falling edge trigger mode;
determining a trigger voltage when the current working mode is the rising edge trigger mode or the falling edge trigger mode;
sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected, and the method comprises the following steps:
when the current working mode is the normal mode, sending the voltage values of the signal voltages to be detected in a first preset number to the terminal each time, so that the terminal determines and displays the waveform of the signal voltages to be detected according to the voltage values of the signal voltages to be detected in the first preset number;
when the current working mode is the rising edge trigger mode, judging whether the trigger voltage is smaller than the voltage value of the newly obtained signal voltage to be detected and larger than the voltage value of the last obtained signal voltage to be detected;
if so, sending a second preset number of voltage values calculated before the latest obtained voltage value of the signal to be detected and a second preset number of voltage values calculated after the latest obtained voltage value of the signal to be detected to the terminal, so that the terminal can determine and display the waveform of the signal to be detected according to the voltage value of the signal to be detected;
when the current working mode is the falling edge trigger mode, judging whether the trigger voltage is larger than the voltage value of the newly obtained signal voltage to be detected and smaller than the voltage value of the last obtained signal voltage to be detected;
and if so, sending the voltage values of the third preset number calculated before the voltage value of the signal voltage to be detected which is obtained latest and the voltage values of the third preset number calculated after the voltage value of the signal voltage to be detected which is obtained latest to the terminal, so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
2. The signal voltage detecting method according to claim 1, wherein setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured includes:
judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a first preset ratio, wherein the first preset ratio is not less than 1;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the first preset ratio.
3. The signal voltage detection method of claim 1, wherein determining the frequency of the signal voltage to be measured comprises:
and when receiving the frequency of the signal voltage to be measured input by a user, converting the frequency of the signal voltage to be measured into integer data.
4. The signal voltage detecting method according to claim 1, before setting the sampling rate of the a/D converter according to the frequency of the signal voltage to be measured, further comprising:
determining the signal type of the voltage of the signal to be detected, wherein the signal type comprises a digital signal and an analog signal;
setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be measured, comprising:
when the voltage of the signal to be detected is a digital signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a second preset ratio or not;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the second preset ratio;
when the voltage of the signal to be detected is an analog signal, judging whether the ratio of the maximum sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is not less than a third preset ratio, wherein the second preset ratio and the third preset ratio are not less than 1, and the second preset ratio is less than the third preset ratio;
if not, setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected, so that the ratio of the sampling rate of the A/D converter to the frequency of the voltage of the signal to be detected is equal to the third preset ratio.
5. The signal voltage detection method of claim 1, wherein obtaining the voltage value sampled by the a/D converter comprises:
periodically reading the voltage value sampled by the A/D converter and stored in the register of the A/D converter, wherein the reading frequency is equal to the sampling rate of the A/D converter.
6. The signal voltage detecting method according to claim 1, wherein when a sliding varistor for voltage division is disposed between the a/D converter and the test channel, a first fixed end of the sliding varistor is connected to the test channel, a second fixed end of the sliding varistor is connected to ground, a sliding end of the sliding varistor is connected to the a/D converter, and a relationship between a sampled voltage value and a voltage value of the signal voltage to be detected is preset as:
V1=(m/2n)*(Rm/R1)*(Vm+1), wherein V1Is the voltage value, V, of the signal voltage to be measuredmVoltage value, R, sampled for the A/D convertermIs the nominal value, R, of the sliding rheostat1M is a resistance value between the second fixed end and the sliding end, and m is a maximum input voltage of the A/D converter, and the precision of the A/D converter is n bits.
7. A signal voltage detection system, comprising:
the frequency determining unit is used for determining the frequency of the voltage of the signal to be measured;
the sampling rate determining unit is used for setting the sampling rate of the A/D converter according to the frequency of the voltage of the signal to be detected;
the A/D converter control unit is used for controlling the A/D converter to sample the voltage of a signal to be tested of a test channel connected with the A/D converter;
a sampling voltage value acquisition unit for acquiring a voltage value sampled by the A/D converter;
the voltage value calculation unit of the signal voltage to be measured is used for calculating the voltage value of the signal voltage to be measured according to the preset corresponding relation between the sampled voltage value and the voltage value of the signal voltage to be measured and the sampled voltage value;
the voltage value sending unit of the signal voltage to be detected is used for sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected;
before sending the voltage value of the signal voltage to be detected to the terminal, the signal voltage detection system is further configured to:
determining a current working mode, wherein the current working mode comprises a normal mode, a rising edge trigger mode and a falling edge trigger mode;
determining a trigger voltage when the current working mode is the rising edge trigger mode or the falling edge trigger mode;
sending the voltage value of the signal voltage to be detected to a terminal so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected, and the method comprises the following steps:
when the current working mode is the normal mode, sending the voltage values of the signal voltages to be detected in a first preset number to the terminal each time, so that the terminal determines and displays the waveform of the signal voltages to be detected according to the voltage values of the signal voltages to be detected in the first preset number;
when the current working mode is the rising edge trigger mode, judging whether the trigger voltage is smaller than the voltage value of the newly obtained signal voltage to be detected and larger than the voltage value of the last obtained signal voltage to be detected;
if so, sending a second preset number of voltage values calculated before the latest obtained voltage value of the signal to be detected and a second preset number of voltage values calculated after the latest obtained voltage value of the signal to be detected to the terminal, so that the terminal can determine and display the waveform of the signal to be detected according to the voltage value of the signal to be detected;
when the current working mode is the falling edge trigger mode, judging whether the trigger voltage is larger than the voltage value of the newly obtained signal voltage to be detected and smaller than the voltage value of the last obtained signal voltage to be detected;
and if so, sending the voltage values of the third preset number calculated before the voltage value of the signal voltage to be detected which is obtained latest and the voltage values of the third preset number calculated after the voltage value of the signal voltage to be detected which is obtained latest to the terminal, so that the terminal can determine and display the waveform of the signal voltage to be detected according to the voltage value of the signal voltage to be detected.
8. A signal voltage detection device characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the signal voltage detection method according to any one of claims 1 to 6 when executing the computer program.
9. A server comprising the signal voltage detection device according to claim 8 and a plurality of a/D converters, each of the plurality of a/D converters being connected to the signal voltage detection device.
CN202210029328.0A 2022-01-12 2022-01-12 Signal voltage detection method, system, equipment and server Active CN114047378B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210029328.0A CN114047378B (en) 2022-01-12 2022-01-12 Signal voltage detection method, system, equipment and server
PCT/CN2022/098736 WO2023134111A1 (en) 2022-01-12 2022-06-14 Signal voltage measurement method, system and device, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210029328.0A CN114047378B (en) 2022-01-12 2022-01-12 Signal voltage detection method, system, equipment and server

Publications (2)

Publication Number Publication Date
CN114047378A CN114047378A (en) 2022-02-15
CN114047378B true CN114047378B (en) 2022-04-22

Family

ID=80196346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210029328.0A Active CN114047378B (en) 2022-01-12 2022-01-12 Signal voltage detection method, system, equipment and server

Country Status (2)

Country Link
CN (1) CN114047378B (en)
WO (1) WO2023134111A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047378B (en) * 2022-01-12 2022-04-22 苏州浪潮智能科技有限公司 Signal voltage detection method, system, equipment and server
CN116312308B (en) * 2023-04-27 2023-10-13 海的电子科技(苏州)有限公司 Output voltage calibration method and device for shortening Bar and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202339369U (en) * 2011-12-01 2012-07-18 北京航天测控技术有限公司 Alternating current low-frequency RMS (Root Mean Square) value conversion device
CN106407059A (en) * 2016-09-28 2017-02-15 郑州云海信息技术有限公司 Server node testing system and method
CN108761163A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of oscillograph and Fault Locating Method safeguarded for server
CN110018938A (en) * 2019-04-22 2019-07-16 苏州浪潮智能科技有限公司 A kind of hardware ID identification device, method and server system
CN112666485A (en) * 2020-11-25 2021-04-16 山东云海国创云计算装备产业创新中心有限公司 Power stability analysis device and power system
CN113866671A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 Method and system for monitoring voltage leakage of server, implementation method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4210859B2 (en) * 2005-10-31 2009-01-21 ソニー株式会社 Method for measuring frequency characteristics and impulse response rise time, and sound field correction apparatus
CN103245825A (en) * 2012-02-07 2013-08-14 鸿富锦精密工业(深圳)有限公司 Voltage detecting system and method
WO2016018351A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. Removable test and diagnostics circuit
CN109633253B (en) * 2018-12-07 2020-12-08 中电科仪器仪表(安徽)有限公司 Circuit and method for realizing voltage transient signal detection based on FPGA
CN110133363B (en) * 2019-05-30 2021-01-15 北京机械设备研究所 Cable level change detection device and method
CN211478926U (en) * 2020-03-23 2020-09-11 杭州远方光电信息股份有限公司 Multi-frequency automatic switching sampling device
CN111367222A (en) * 2020-03-23 2020-07-03 杭州远方光电信息股份有限公司 Multi-frequency automatic switching sampling method and device
CN111478617B (en) * 2020-04-02 2021-11-16 广东美的制冷设备有限公司 Pulse circuit, half-bridge drive circuit, circuit board and air conditioner
CN114047378B (en) * 2022-01-12 2022-04-22 苏州浪潮智能科技有限公司 Signal voltage detection method, system, equipment and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202339369U (en) * 2011-12-01 2012-07-18 北京航天测控技术有限公司 Alternating current low-frequency RMS (Root Mean Square) value conversion device
CN106407059A (en) * 2016-09-28 2017-02-15 郑州云海信息技术有限公司 Server node testing system and method
CN108761163A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of oscillograph and Fault Locating Method safeguarded for server
CN110018938A (en) * 2019-04-22 2019-07-16 苏州浪潮智能科技有限公司 A kind of hardware ID identification device, method and server system
CN112666485A (en) * 2020-11-25 2021-04-16 山东云海国创云计算装备产业创新中心有限公司 Power stability analysis device and power system
CN113866671A (en) * 2021-08-30 2021-12-31 苏州浪潮智能科技有限公司 Method and system for monitoring voltage leakage of server, implementation method and device

Also Published As

Publication number Publication date
WO2023134111A1 (en) 2023-07-20
CN114047378A (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN114047378B (en) Signal voltage detection method, system, equipment and server
CN101413967B (en) Method for controlling automatic measurement of oscilloscope
KR101151742B1 (en) Portable System for Diagnosis of Partial Discharge
US6542838B1 (en) System and method for performing autoranging in a measurement device
CN212514879U (en) Operational amplifier test system
CN112557722A (en) Universal oscillograph
EP2905625B1 (en) Method for probe equalization
JPH09510783A (en) Method and apparatus for waveform analysis
US6990416B2 (en) Qualification signal measurement, trigger, and/or display system
CN109001578B (en) Testing device and method for detecting CELL panel signal generator
CN111220901A (en) Operational amplifier testing system and method
CN111258828A (en) I2C bus test method, test device and computer readable storage medium
EP0702235A1 (en) Graphical trend display methods and apparatus in a test instrument
JP5174433B2 (en) AD converter and scale
CN108254661B (en) Hardware discharge voltage test system and method
JPH06258356A (en) Device for measuring maximum and minimum value of signal waveform
CN112885274A (en) Display signal testing device and method
JP5855667B2 (en) Calibration detection system and method
EP3635416B1 (en) Meter for measuring an electrical parameter
KR200361355Y1 (en) The digital voltage-current measure controller
CN115219971B (en) Oscillograph waveform checking method, oscillograph waveform checking device, oscillograph waveform checking equipment and oscillograph waveform checking storage medium
Clarkson et al. The calibration of IEC standard flickermeters using complex modulated signals
Artyukh et al. Statistical Approach to Linearity Evaluation of High-precision Event Timers
Živanović et al. Script files approach in the power quality events generation
CN115704874A (en) System for managing calibration and method for managing calibration

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
GR01 Patent grant
GR01 Patent grant