CN114689969A - Interface detection method, device and storage medium - Google Patents

Interface detection method, device and storage medium Download PDF

Info

Publication number
CN114689969A
CN114689969A CN202210259491.6A CN202210259491A CN114689969A CN 114689969 A CN114689969 A CN 114689969A CN 202210259491 A CN202210259491 A CN 202210259491A CN 114689969 A CN114689969 A CN 114689969A
Authority
CN
China
Prior art keywords
load device
interface
detection
real
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210259491.6A
Other languages
Chinese (zh)
Inventor
邹华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LCFC Hefei Electronics Technology Co Ltd
Original Assignee
LCFC Hefei Electronics 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 LCFC Hefei Electronics Technology Co Ltd filed Critical LCFC Hefei Electronics Technology Co Ltd
Priority to CN202210259491.6A priority Critical patent/CN114689969A/en
Publication of CN114689969A publication Critical patent/CN114689969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values

Abstract

The present disclosure provides an interface detection method, apparatus and storage medium, the method comprising: determining the detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested; detecting the temperature of the load device to determine the real-time temperature of the load device; adjusting a control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit; under the condition that the detection current of the load device is kept constant, detecting the interface to be detected to determine a detection result corresponding to the interface to be detected; by applying the method provided by the embodiment of the disclosure, the situation that the detection current changes due to the resistance value change of the load device caused by the temperature change after the load device is loaded in the process of testing the interface is avoided, so that the test result can reflect the real test requirement.

Description

Interface detection method, device and storage medium
Technical Field
The present disclosure relates to the field of interface detection technologies, and in particular, to an interface detection method, an interface detection apparatus, and a storage medium.
Background
With the coming of modern information society, people have more and more demands on computer products, and the application of transmission and exchange among various data is more and more extensive, so that more and more interface devices for transmitting data are provided, the interface needs to be tested in actual production and life, so as to detect whether the output of the interface meets the specification requirements under a certain detection current, a high-power resistor is usually selected to be connected outside the interface for a pull-load test, when the test of a certain detection current is carried out, a resistor with a corresponding resistance value is selected to be connected into a circuit, and whether the output voltage of the interface meets the specification requirements is measured, but in the test process, the temperature is increased after the load is loaded, so that the detection current is reduced, and the test result can not completely reflect the real test requirements.
Disclosure of Invention
The present disclosure provides an interface detection method, apparatus and storage medium to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided an interface detection method, the method including: determining the detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested; performing temperature detection on the load device to determine a real-time temperature of the load device; adjusting a control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit; and under the condition that the detection current of the load device is kept constant, detecting the interface to be detected so as to determine a detection result corresponding to the interface to be detected.
In an embodiment, the adjusting the control resistor according to the real-time temperature of the load device and the detection current to keep the detection current constant includes: determining a real-time resistance value of the load device according to the real-time temperature of the load device; determining a real-time voltage according to the real-time resistance value and the detection current; and adjusting the control resistor according to the real-time temperature of the load device to enable the voltage at two ends of the load device to be the real-time voltage so as to keep the detection current unchanged.
In one embodiment, before determining the detection current of the load device according to the interface to be tested, the method further includes: detecting whether the interface to be detected is connected into the detection circuit; and if the interface to be detected is detected to be connected into the detection circuit, determining the detection current of the load device according to the interface to be detected.
In an implementation manner, the detecting the interface to be tested to determine a detection result corresponding to the interface to be tested while the detection current of the load device is kept constant includes: under the condition that the detection current of the load device is kept constant, voltage detection is carried out on the interface to be detected to obtain interface voltage; comparing the interface voltage with a specific voltage to obtain a comparison result; and if the comparison result is that the interface voltage meets the specific voltage, determining that the detection result corresponding to the interface to be detected is qualified.
In an embodiment, the adjusting the control resistor according to the real-time temperature of the load device to make the voltage across the load device the real-time voltage includes: determining the current temperature range to which the real-time temperature belongs according to the real-time temperature; and adjusting the number of control resistors connected into the detection circuit according to the current temperature range so as to enable the voltage at two ends of the load device to be the real-time voltage.
In an embodiment, the adjusting the number of control resistors connected to the detection circuit according to the current temperature range to make the voltage across the load device the real-time voltage includes: judging whether the real-time temperature of the load device is the maximum temperature value of the current temperature range; and if the real-time temperature of the load device is the maximum temperature value of the current temperature range, adjusting the number of control resistors connected into the detection circuit according to the current temperature range.
According to a second aspect of the present disclosure, there is provided an interface detecting apparatus, the apparatus comprising: the first determining module is used for determining the detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested; the temperature detection module is used for detecting the temperature of the load device so as to determine the real-time temperature of the load device; the processing module is used for adjusting the control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit; and the first interface detection module is used for detecting the interface to be detected under the condition that the detection current of the load device is kept constant so as to determine a detection result corresponding to the interface to be detected.
In one embodiment, the processing module includes: the resistance value determining module is used for determining the real-time resistance value of the load device according to the real-time temperature of the load device; the voltage determining module is used for determining real-time voltage according to the real-time resistance value and the detection current; and the adjusting module is used for adjusting the control resistor according to the real-time temperature of the load device to enable the voltage at two ends of the load device to be the real-time voltage so as to keep the detection current unchanged.
In one embodiment, the apparatus further comprises: the second interface detection module is used for detecting whether the interface to be detected is connected into the detection circuit or not; the first determining module is further configured to determine a detection current of the load device according to the interface to be detected if it is detected that the interface to be detected is connected to the detection circuit.
In an embodiment, the first interface detection module includes: the voltage detection module is used for detecting the voltage of the interface to be detected under the condition that the detection current of the load device is kept constant to obtain the interface voltage; the comparison module is used for comparing the interface voltage with a specific voltage to obtain a comparison result; and the second determining module is used for determining that the detection result corresponding to the interface to be detected is qualified if the interface voltage meets the specific voltage according to the comparison result.
In an embodiment, the adjusting module includes: the third determining module is used for determining the current temperature range to which the real-time temperature belongs according to the real-time temperature; and the resistance value adjusting module is used for adjusting the number of control resistors connected into the detection circuit according to the current temperature range so as to enable the voltage at two ends of the load device to be the real-time voltage.
In one embodiment, the resistance value adjusting module includes: the judging module is used for judging whether the real-time temperature of the load device is the maximum temperature value of the current temperature range; and the resistance value adjusting submodule is used for adjusting the number of the control resistors connected into the detection circuit according to the current temperature range if the real-time temperature of the load device is the maximum temperature value of the current temperature range.
According to a third aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the present disclosure.
The interface detection method, the device and the storage medium disclosed by the invention can be used for detecting whether the output of an interface to be tested at a certain detection current meets the specification requirement or not, firstly determining the detection current of a load device, adjusting a control resistor connected with the load device in a detection circuit according to the real-time temperature and the detection current of the load device so as to keep the detection current constant, and detecting the interface to be tested under the condition that the detection current of the load device is kept constant so as to determine whether the output of the interface to be tested at the detection current meets the specification requirement or not, so that the problem that the resistance value change of the load device caused by the temperature change after the load device is loaded in the process of testing the interface is avoided to cause the change of the test current, and a test result can reflect the real test requirement.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a schematic flow chart illustrating an implementation flow of an interface detection method according to a first embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating an implementation flow of an interface detection method according to a first embodiment of the present disclosure;
fig. 3 is a schematic flow chart showing an implementation of an interface detection method according to a first embodiment of the present disclosure;
fig. 4 is a circuit diagram of an implementation of an interface detection method according to a second embodiment of the disclosure;
fig. 5 is a flowchart illustrating an implementation of an interface detection method according to a second embodiment of the present disclosure;
fig. 6 shows a block diagram of an interface detection apparatus according to a third embodiment of the present disclosure;
fig. 7 shows a schematic structural diagram of an electronic device according to a fourth embodiment of the disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more apparent and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 shows a first implementation flow diagram of an interface detection method according to a first embodiment of the present disclosure.
Referring to fig. 1, according to a first aspect of the embodiments of the present disclosure, there is provided an interface detection method, including: step 101, determining the detection current of a load device according to an interface to be detected; the load device is connected with the interface to be tested; 102, detecting the temperature of a load device to determine the real-time temperature of the load device; 103, adjusting the control resistor according to the real-time temperature and the detection current of the load device so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit; and 104, detecting the interface to be detected under the condition that the detection current of the load device is kept constant so as to determine a detection result corresponding to the interface to be detected.
The interface detection method provided by the embodiment of the disclosure is used for detecting whether the output of an interface to be tested at a certain detection current meets the specification requirement, firstly, the detection current of a load device is determined, a control resistor connected with the load device in a detection circuit is adjusted according to the real-time temperature and the detection current of the load device, so that the detection current is kept constant, and the interface to be tested is detected under the condition that the detection current of the load device is kept constant, so that whether the output of the interface to be tested at the detection current meets the specification requirement is determined, so that the problem that the resistance value change of the load device caused by the temperature change after the load device is loaded in the process of testing the interface is avoided, and a test result can reflect the real test requirement.
In step 101, the interface to be tested is an interface that can be used for data transmission, such as a USB Type-a interface, a USB Type-B interface, a USB Type-C interface, and the like, when the external power supply supplies power to the interface to be tested, when a large current is generated, a voltage drop at the interface is large, which may cause that a device that is connected to the interface to be tested and performs data transmission through the interface to be tested cannot normally operate, and therefore, the interface to be tested is detected before performing data transmission through the interface to be tested. The method comprises the steps of connecting a load device with an interface to be detected, and then determining a detection current, wherein the detection current is the current flowing through the load device, for example, the detection current is 0.5A, 1A, 2A and the like, namely, the load device works under the detection current, and the load device generally selects a single resistor or a load resistor network formed by connecting a plurality of resistors in series and/or in parallel, and can also select other components.
In step 102, as the test is performed, the temperature of the load device changes after the load device is loaded, and when the interface is detected, the detection result is inaccurate due to the change of the temperature of the load device, so that the temperature of the load device needs to be detected to obtain the real-time temperature of the load device, and the temperature of the load device is detected by the temperature detection device, such as a negative temperature coefficient sensor, to obtain the real-time temperature of the load device.
In step 103, the control resistor is adjusted according to the detected real-time temperature of the load device and the detected current, the control resistor is connected to the load device and connected to the detection circuit, the control resistor may be a fixed resistor or a variable resistor, the detection circuit is connected to at least one control resistor, and the voltage at the two ends of the load device is changed by changing the resistance value of the control resistor connected to the detection circuit, so that the ratio of the voltage at the two ends of the load device to the resistance value of the load device is still constant as the detected current.
In step 104, after the detection current is kept unchanged by changing the resistance of the control resistor in the access circuit, the voltage of the interface to be detected is detected by using the voltage detection device, whether the interface to be detected is qualified is determined by the detected voltage of the interface to be detected, and when the detected voltage of the interface meets the specification, the detection result corresponding to the interface to be detected is determined to be qualified, wherein the specification meeting means that when the load device connected with the interface to be detected works with the detection current, the voltage output by the interface to be detected is greater than or equal to the specified voltage under the corresponding detection current.
Fig. 2 shows a schematic implementation flow chart of an interface detection method according to a first embodiment of the present disclosure.
Referring to fig. 2, in the embodiment of the present invention, step 103, adjusting the control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant includes: step 1031, determining a real-time resistance value of the load device according to the real-time temperature of the load device; step 1032, determining a real-time voltage according to the real-time resistance value and the detection current; and 1033, adjusting the control resistor according to the real-time temperature of the load device to make the voltage at the two ends of the load device be real-time voltage so as to keep the detection current unchanged.
Specifically, the resistance value of the resistor changes along with the change of the temperature, so that the resistance value of the load device changes along with the change of the temperature of the load device, the real-time temperature of the load device is measured through the temperature detection device, the resistivity of the load device at the real-time temperature is calculated according to the change curve of the resistivity of the load device along with the temperature, the real-time resistance value of the load device at the real-time temperature is calculated through the resistivity corresponding to the real-time temperature, the change condition of the resistivity of the load device along with the temperature is related to the material of the load device, and the change of the resistivity of the load device along with the temperature is different for load devices of different materials.
Therefore, under the condition that the resistance value of the load device changes, the voltage at two ends of the load device needs to be changed correspondingly, and the ratio of the real-time voltage at two ends of the load device to the real-time resistance value of the load device is kept constant at any temperature, even if the detection current of the load device is kept constant.
The real-time voltages at the two ends of the load device can be calculated according to the real-time resistance value of the load device and the detection current, and then the resistance value of the control resistor in the detection circuit is adjusted to enable the voltages at the two ends of the load device to be the real-time voltages, so that the detection current can be kept unchanged and is not influenced by the temperature of the load device.
In one embodiment, before determining the detection current of the load device according to the interface to be tested, the method further includes: detecting whether the interface to be detected is connected into the detection circuit; and if the interface to be detected is detected to be connected into the detection circuit, determining the detection current of the load device according to the interface to be detected.
Specifically, before detecting the interface to be detected, the interface to be detected is connected to the circuit and connected to the load device, and when the interface to be detected is detected to be connected to the detection circuit and connected to the load device, the detection current of the load device is determined, and the interface to be detected is detected under the detection current.
Fig. 3 shows a third implementation flow diagram of an interface detection method according to the first embodiment of the present disclosure.
Referring to fig. 3, in the embodiment of the present invention, in step 104, detecting the interface to be tested to determine a detection result corresponding to the interface to be tested under the condition that the detection current of the load device is kept constant, includes: step 1041, under the condition that the detection current of the load device is kept constant, performing voltage detection on the interface to be detected to obtain interface voltage; step 1042, comparing the interface voltage with a specific voltage to obtain a comparison result; and step 1043, if the interface voltage meets the specific voltage according to the comparison result, determining that the detection result corresponding to the interface to be detected is qualified.
Specifically, under the condition that the detection current of the load device is constant, the voltage of the interface to be detected is detected through the voltage detection device, the detected voltage is recorded as interface voltage, then the interface voltage is compared with specific voltage, and when the interface to be detected is externally connected with the load device to be detected and detected, the detection voltage of the interface to be detected can be reduced, but the voltage reduction value of the voltage cannot exceed the specified range, so that the stability of the interface is ensured.
When the measured interface voltage is less than the specific voltage, the voltage drop value of the voltage of the interface to be measured exceeds a specified range, the stability of the interface to be measured is poor, the interface to be measured is easy to burn out under the working condition, and when the measured interface voltage is greater than the specific voltage, the voltage drop value of the voltage of the interface to be measured is within the specified range, which indicates that the detection of the interface to be measured is qualified.
In an implementation manner, if the USB interface is tested, the USB3.0 protocol provides that the USB interface is externally connected to the load device, and when the test current of the load device is 1A, to ensure the stability of the USB interface, the voltage drop value of the USB interface cannot exceed 250mv, that is, when the measured interface voltage of the USB is greater than 4.75V, the USB interface is qualified for testing, and when the measured interface voltage of the USB is less than 4.75V, the USB interface is not qualified for testing.
In one embodiment, step 1033, adjusting the control resistor to make the voltage across the load device a real-time voltage according to the real-time temperature of the load device includes: firstly, determining the current temperature range to which the real-time temperature belongs according to the real-time temperature; and secondly, adjusting the number of control resistors connected into the detection circuit according to the current temperature range so as to enable the voltage at two ends of the load device to be real-time voltage.
Specifically, the resistance of the load device is nonlinear with the change of the temperature, and when the temperature of the load device slightly changes, the change of the resistance of the load device is small, so the change of the detection current is small, therefore, in the detection process, the temperature can be divided into a plurality of temperature ranges according to the actual detection requirement, the control resistors are correspondingly adjusted according to the temperature ranges, a plurality of control resistors can be connected into the detection circuit, the adjustment of the control resistors is realized by adjusting the number of the control resistors connected into the detection circuit, the temperature detection device judges the current temperature range to which the real-time temperature belongs after detecting the real-time temperature of the load device, and the number of the control resistors connected into the detection circuit is adjusted according to the current temperature range.
In an implementation mode, when the USB interface is detected, three temperature ranges of 20 ℃ to 30 ℃, 30 ℃ to 40 ℃ and 40 ℃ to 50 ℃ can be divided according to the test requirement, the real-time temperature of the load device is detected by the temperature detection device, which temperature range the real-time temperature is in is judged, and the number of the control resistors connected to the detected electrical junction is adjusted according to the temperature range.
The temperature range may be divided according to the selection of the load device in the actual test and the actual test precision, for example, when the test precision requirement is high, the divided temperature range should be reduced, and the division of the temperature range is not specified in this embodiment.
In an implementation manner, the control resistor may be a variable resistor, and when it is required to detect whether the interface to be detected is qualified under other detection currents, the load device does not need to be replaced, and the detection current of the load device can be changed by adjusting the resistance value of the control resistor, so as to detect the interface to be detected under other detection currents.
In one embodiment, adjusting the number of control resistors connected into the detection circuit according to the current temperature range includes: firstly, judging whether the real-time temperature of the load device is the maximum temperature value of the current temperature range; and secondly, if the real-time temperature of the load device is the maximum temperature value of the current temperature range, adjusting the number of control resistors connected into the detection circuit according to the current temperature range.
Specifically, when the real-time temperature of the load device is detected to be the maximum temperature value in the current temperature range, the number of the control resistors in the detection circuit is adjusted, for example, the real-time temperature is divided into a temperature range from 20 ℃ to 30 ℃, when the real-time temperature of the load device is detected to be 25 ℃, the real-time temperature is determined to be in the temperature range from 20 ℃ to 30 ℃, the number of the control resistors connected into the detection circuit is not changed, when the real-time temperature of the load device is detected to be 30 ℃, the real-time temperature is in the temperature range from 20 ℃ to 30 ℃, the real-time temperature of the load device is the maximum temperature value in the current temperature range, and the number of the control resistors connected into the circuit is adjusted.
To facilitate a further understanding of the above embodiments, a specific implementation scenario is provided below.
FIG. 4 is a circuit diagram of an implementation of a method for detecting an interface according to a second embodiment of the disclosure; fig. 5 is a flowchart illustrating an implementation of an interface detection method according to a second embodiment of the present disclosure.
Referring to fig. 4 and 5, the USB interface 405 is tested, and the detection current is 1A, and the micro-processing controller MCU 403 ensures that the detection current of the load device connected to the USB interface 405 is 1A by controlling the level state of its pin according to the temperature of the load resistor network.
The load resistance network RL 401 is a resistance network formed by connecting a plurality of resistors in series and in parallel, the resistance value of the load resistance network RL 401 is 2.20 omega at 20 ℃, before the test, the MCU 403 controls the CRTL0 pin to be in a high state, and the USB interface 405 is in a state of not accessing the detection circuit, when the detection is started, the MCU 403 switches the CRTL0 pin to a low state, and the USB interface 405 is connected to the detection circuit, the microprocessor controller MCU 403 controls the pins CRTL1, CRTL2 and CRTL3 to be all low, the resistors R5, Rx and Ry connected with the CRTL1, CRTL2 and CRTL3 are accessed into the detection circuit, the resistance of the resistor R5 is 30K Ω, the resistance of the resistor Rx is 150K Ω, the resistance of the resistor Ry is 120K Ω, the voltage Vout at the two ends of the load resistor network is 2.2V, and the detection current of the load device connected to the USB interface 405 is 1A.
In the testing process, the temperature of the load resistance network RL 401 is gradually increased, the negative temperature coefficient detection sensor RT 402 senses the temperature of the load resistance network RL 401, the microprocessor controller MCU 403 detects the temperature of the negative temperature coefficient sensor RT 402 in real time, initially, the temperature of the load resistance network RL 401 is 20 ℃, the temperature of the load resistance network is increased along with the testing, the negative temperature coefficient detection sensor RT 402 senses the real-time temperature T of the load resistance network RL 401 and transmits the real-time temperature T to the microprocessor controller MCU 403, the microprocessor controller MCU 403 judges that the real-time temperature T is within the range of T being greater than or equal to 20 ℃ and less than 30 ℃, and pins of the microprocessor controller MCU 403 are not adjusted, that is, when the real-time resistance T is within the range of T being greater than or equal to 20 ℃ and less than 30 ℃, the pins CRTL1, cr 2 and CRTL3 of the microprocessor controller MCU 403 are all at low level.
With the progress of the test, the temperature of the load resistance network RL 401 continues to rise, when the temperature of the load resistance network RL 401 rises to 30 ℃, the resistance value of the load resistance network RL 401 at this time is calculated to rise to 2.29 Ω according to the change curve of the resistivity of the load resistance network RL 401 along with the temperature, in order to make the detection current still be 1A, the voltage at the two ends of the load resistance network RL 401 needs to be adjusted to 2.29V, at this time, the microprocessor controller MCU 403 controls the pins CRTL1 and CRTL2 to be still at the low level, the pin CRTL3 is at the high level, at this time, the resistors R5 and Rx connected with the pins CRTL1 and CRTL2 are connected into the detection circuit, the resistor Ry connected with the pin CRTL3 is not connected into the detection circuit, after the operational amplifier OP 404 is stably operated, the voltage at the forward input end Vp 404 of the inverting input end of the operational amplifier is equal to the voltage at the inverting input end Vn, the voltage at the two ends of the load resistance network RL 401 is equal to 2.29V, the detected current of the load device connected to the USB interface 405 is 1A.
If the temperature continues to rise during the detection process, the micro-processing controller MCU 403 will still determine the range of the real-time temperature T of the load resistance network RL 401, when the temperature of the load resistance network RL 401 rises to 40 ℃, the resistance value of the load resistance network RL 401 rises to 2.37 Ω, in order to make the detection current still be 1A, the voltage at the two ends of the load resistance network RL 401 needs to be adjusted to 2.37V, at this time, the microprocessor controller MCU 403 controls the pin CRTL1 to be still at low level, the pins CRTL2 and CRTL3 are at high level, at this time, the resistor R5 connected with the pin CRTL1 is connected into the detection circuit, the resistors Rx and Ry connected to the pins CRTL2 and CRTL3 are not connected to the detection circuit, in the same way as above, after the operational amplifier OP 404 operates stably, the voltage across the load resistance network RL 401 is 2.37V, and the detection current of the load device connected to the USB interface 405 is 1A.
In the whole detection process, the microprocessor controller MCU 403 may always detect the Vbus voltage of the USB interface 405, and if the Vbus voltage is greater than 4.75V in the test process, the USB interface 405 is qualified in detection, and if the Vbus voltage is not greater than 4.75V in the detection process, the USB interface 405 is not qualified in detection.
After the test is finished, the micro-processing controller MCU 403 controls the pin CRTL0 to be in the high level state, so that the USB interface 405 is in the state of not accessing the detection circuit.
Fig. 6 shows a block diagram of an interface detection apparatus according to a third embodiment of the present disclosure.
Referring to fig. 6, according to a second aspect of the embodiments of the present disclosure, there is provided an interface detecting apparatus, the apparatus including: a first determining module 601, configured to determine a detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested; a temperature detection module 602, configured to perform temperature detection on the load device to determine a real-time temperature of the load device; a processing module 603, configured to adjust the control resistor according to the real-time temperature of the load device and the detection current, so that the detection current is kept constant; the control resistor is connected with the load device and connected into the detection circuit; the first interface detecting module 604 is configured to detect the interface to be detected when the detection current of the load device is kept constant, so as to determine a detection result corresponding to the interface to be detected.
In one embodiment, the processing module 603 includes: a resistance determination module 6031 configured to determine a real-time resistance of the load device according to a real-time temperature of the load device; a voltage determination module 6032 configured to determine a real-time voltage according to the real-time resistance value and the detection current; and an adjusting module 6033, configured to adjust the control resistor according to the real-time temperature of the load device, so that the voltage across the load device is a real-time voltage, and the detected current remains unchanged.
In one embodiment, the apparatus further comprises: the second interface detection module is used for detecting whether the interface to be detected is connected into the detection circuit or not; the first determining module is further configured to determine a detection current of the load device according to the interface to be detected if it is detected that the interface to be detected is connected to the detection circuit.
In one embodiment, the first interface detecting module 604 includes: a voltage detection module 6041, configured to perform voltage detection on the interface to be detected to obtain an interface voltage when a detection current of the load device is kept constant; a comparison module 6042, configured to compare the interface voltage with a specific voltage to obtain a comparison result; the second determining module 6043 is configured to determine that, if the interface voltage meets the specific voltage according to the comparison result, the detection result corresponding to the interface to be detected is qualified.
In one implementation, the adjustment module 6033 includes; the third determining module is used for determining the current temperature range to which the real-time temperature belongs according to the real-time temperature; and the resistance value adjusting module is used for adjusting the number of control resistors connected into the detection circuit according to the current temperature range so as to enable the voltage at two ends of the load device to be real-time voltage.
In one embodiment, the resistance value adjusting module includes: the judging module is used for judging whether the real-time temperature of the load device is the maximum temperature value of the current temperature range; and the resistance value adjusting submodule is used for adjusting the number of the control resistors connected into the detection circuit according to the current temperature range if the real-time temperature of the load device is the maximum temperature value of the current temperature range.
The present disclosure also provides an electronic device and a readable storage medium according to an embodiment of the present disclosure.
Fig. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement a fourth embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information or data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as an interface detection method. For example, in some embodiments, an interface detection method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of an interface detection method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform an interface detection method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions or operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means two or more unless specifically limited otherwise.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. An interface detection method, the method comprising:
determining the detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested;
performing temperature detection on the load device to determine a real-time temperature of the load device;
adjusting a control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit;
and under the condition that the detection current of the load device is kept constant, detecting the interface to be detected so as to determine a detection result corresponding to the interface to be detected.
2. The method of claim 1, wherein adjusting the control resistance based on the real-time temperature of the load device and the sensed current to maintain the sensed current constant comprises:
determining a real-time resistance value of the load device according to the real-time temperature of the load device;
determining a real-time voltage according to the real-time resistance value and the detection current;
and adjusting the control resistor according to the real-time temperature of the load device to enable the voltage at two ends of the load device to be the real-time voltage so as to keep the detection current unchanged.
3. The method of claim 1, wherein prior to determining the sensed current of the load device from the interface under test, the method further comprises:
detecting whether the interface to be detected is connected into the detection circuit;
and if the interface to be detected is detected to be connected into the detection circuit, determining the detection current of the load device according to the interface to be detected.
4. The method according to claim 1, wherein the detecting the interface to be tested to determine a detection result corresponding to the interface to be tested while the detection current of the load device is kept constant comprises:
under the condition that the detection current of the load device is kept constant, voltage detection is carried out on the interface to be detected, and interface voltage is obtained;
comparing the interface voltage with a specific voltage to obtain a comparison result;
and if the comparison result is that the interface voltage meets the specific voltage, determining that the detection result corresponding to the interface to be detected is qualified.
5. The method of claim 2, wherein adjusting the control resistance to cause the voltage across the load device to be the real-time voltage based on the real-time temperature of the load device comprises:
determining the current temperature range to which the real-time temperature belongs according to the real-time temperature;
and adjusting the number of control resistors connected into the detection circuit according to the current temperature range so as to enable the voltage at two ends of the load device to be the real-time voltage.
6. The method of claim 5, wherein adjusting the number of control resistors connected to the detection circuit to make the voltage across the load device the real-time voltage according to the current temperature range comprises:
judging whether the real-time temperature of the load device is the maximum temperature value of the current temperature range;
and if the real-time temperature of the load device is the maximum temperature value of the current temperature range, adjusting the number of control resistors connected into the detection circuit according to the current temperature range.
7. An interface detection apparatus, the apparatus comprising:
the first determining module is used for determining the detection current of the load device according to the interface to be detected; the load device is connected with the interface to be tested;
the temperature detection module is used for detecting the temperature of the load device so as to determine the real-time temperature of the load device;
the processing module is used for adjusting the control resistor according to the real-time temperature of the load device and the detection current so as to keep the detection current constant; the control resistor is connected with the load device and connected into the detection circuit;
and the first interface detection module is used for detecting the interface to be detected under the condition that the detection current of the load device is kept constant so as to determine a detection result corresponding to the interface to be detected.
8. The apparatus of claim 7, wherein the processing module comprises:
the resistance value determining module is used for determining the real-time resistance value of the load device according to the real-time temperature of the load device;
the voltage determining module is used for determining real-time voltage according to the real-time resistance value and the detection current;
and the adjusting module is used for adjusting the control resistor according to the real-time temperature of the load device to enable the voltage at two ends of the load device to be the real-time voltage so as to keep the detection current unchanged.
9. The apparatus of claim 7, wherein the first interface detection module comprises:
the voltage detection module is used for detecting the voltage of the interface to be detected under the condition that the detection current of the load device is kept constant to obtain the interface voltage;
the comparison module is used for comparing the interface voltage with a specific voltage to obtain a comparison result;
and the second determining module is used for determining that the detection result corresponding to the interface to be detected is qualified if the interface voltage meets the specific voltage according to the comparison result.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN202210259491.6A 2022-03-16 2022-03-16 Interface detection method, device and storage medium Pending CN114689969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210259491.6A CN114689969A (en) 2022-03-16 2022-03-16 Interface detection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210259491.6A CN114689969A (en) 2022-03-16 2022-03-16 Interface detection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114689969A true CN114689969A (en) 2022-07-01

Family

ID=82138873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210259491.6A Pending CN114689969A (en) 2022-03-16 2022-03-16 Interface detection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114689969A (en)

Similar Documents

Publication Publication Date Title
US20090327785A1 (en) Power management device and method thereof for managing power consumption of electronic device
CN111211937B (en) Method, device and system for testing stability of server link signals
CN109309735B (en) Connection processing method, server, system and storage medium
CN111578846A (en) Detection method, detection device and computer readable medium
CN115718265A (en) Method for correcting battery DC resistance test value, electronic device and storage medium
US10982971B2 (en) Method and apparatus for detecting background noise of sensor
CN114689969A (en) Interface detection method, device and storage medium
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN114779058B (en) Mainboard detection method, device, equipment and medium for dynamically adjusting item measurement proportion
CN115267312B (en) ADC voltage detection compensation method, device, equipment and storage medium
US20230333619A1 (en) System and method for power supply input power management
CN116302897B (en) Data set establishing method and device, electronic equipment and storage medium
CN115289043A (en) Information processing method, information processing device, electronic equipment and storage medium
CN116840715A (en) Method, device and system for detecting power consumption of battery of electronic equipment
CN115440295B (en) Device and method for testing data loading capacity of eMMC chip
CN113111533A (en) Method and device for determining heating temperature
CN116691341A (en) Vehicle speed adjusting method, device, equipment and storage medium based on vehicle accelerator
CN115291710A (en) Server power consumption control method, device and medium
CN115824336A (en) Medium mass flow determining method and device, electronic equipment and storage medium
CN116126522A (en) Server power transmission optimization method, system, electronic device and storage medium
CN115931299A (en) Maximum brightness and service life acquisition method and device, storage medium and electronic equipment
CN117667614A (en) Method, device, equipment and medium for adjusting response time of pressure measurement system
CN115931298A (en) Method and device for acquiring maximum brightness and service life, storage medium and electronic equipment
CN117471211A (en) Method, device, equipment and storage medium for determining reference neutral point
CN111722170A (en) Device and method for determining stability of electric quantity transmitter calibrating device and electronic equipment

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