CN117907669A - Peripheral circuit current detection method - Google Patents
Peripheral circuit current detection method Download PDFInfo
- Publication number
- CN117907669A CN117907669A CN202311870030.3A CN202311870030A CN117907669A CN 117907669 A CN117907669 A CN 117907669A CN 202311870030 A CN202311870030 A CN 202311870030A CN 117907669 A CN117907669 A CN 117907669A
- Authority
- CN
- China
- Prior art keywords
- peripheral circuit
- current
- detection
- detected
- resistor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 186
- 238000001514 detection method Methods 0.000 title claims abstract description 163
- 238000000034 method Methods 0.000 claims description 16
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000012360 testing method Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 16
- 238000013461 design Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/165—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
- G01R19/16528—Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values using digital techniques or performing arithmetic operations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R1/00—Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
- G01R1/30—Structural combination of electric measuring instruments with basic electronic circuits, e.g. with amplifier
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R15/00—Details of measuring arrangements of the types provided for in groups G01R17/00 - G01R29/00, G01R33/00 - G01R33/26 or G01R35/00
- G01R15/04—Voltage dividers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The application relates to the technical field of communication, and provides a peripheral circuit current detection method, which comprises the following steps: the current of a resistor connected in series with the peripheral circuit is collected by using a current detection amplifier, the collection of the current of the peripheral circuit is realized, the collected current is sent to detection demand equipment through a special channel in a multiplexer communicated with the current detection amplifier, and the detection demand equipment judges whether the working state of the peripheral circuit to be detected is normal or not by comparing the collected current with the standard current of the peripheral circuit. Compared with the mode of detecting the peripheral circuit through various special sensors, the embodiment of the application can solve the problem that the detection requirement equipment cannot detect the state of the indirectly controlled peripheral circuit at low cost.
Description
Technical Field
The application relates to the technical field of communication, in particular to a peripheral circuit current detection method.
Background
The 5G communication module has strong performance and rich interfaces, can be matched with various peripheral circuits to realize different functions, for example, industrial equipment with the 5G communication module is connected with a motor, and can control the operation of the motor. In practical applications, the 5G communication module needs to know whether the peripheral circuit is normal or not, so as to ensure that the peripheral circuit can normally communicate with the 5G communication module.
The current method for detecting whether the peripheral circuit is normal mainly comprises the following steps:
The method relies on the self-checking capability of the main chip of the peripheral circuit, when the self-checking reliability of the peripheral circuit is poor, the reliability of the judging result of the peripheral circuit state by the 5G communication module is low, and meanwhile, the method can not detect the state of the peripheral circuit of the executing element directly controlled by the main chip of the peripheral circuit and indirectly controlled by the 5G communication module.
The peripheral circuit is detected by various special sensors, such as a microcontroller, a temperature sensor, a light sensor, a spiral encoder, and the like. The mode has the advantages of large IO resource occupation, long design period, complex system and large volume, and the customized design is needed to be made on hardware, software and structure according to different peripheral configurations, so the cost is high.
Therefore, a method for detecting the current of the peripheral circuit is needed to solve the problem that the 5G communication module cannot detect the state of the indirectly controlled peripheral circuit at low cost.
Disclosure of Invention
In view of the above, the present application provides a peripheral circuit current detection method to solve the problem that a detection demand device cannot detect the state of an indirectly controlled peripheral circuit at low cost.
According to an aspect of the present application, there is provided a peripheral circuit current detection method, the method comprising: collecting current of a resistor connected in series with a peripheral circuit to be detected by using a current detection amplifier to obtain detection current of the peripheral circuit to be detected; transmitting the sense current to a sense demand device through a channel in a multiplexer connected to the current sense amplifier; and comparing the received detection current with the standard current of the peripheral circuit to be detected by using the detection demand equipment, and judging whether the state of the peripheral circuit to be detected is normal or not according to the comparison result.
According to the peripheral circuit current detection method, the problem that in the prior art, the detection requirement equipment cannot detect the state of the indirectly controlled peripheral circuit is solved. According to the application, through the combination of the resistor and the current detection amplifier, the current of the resistor is collected by the current detection amplifier, the collection of the current of the peripheral circuit communicated with the resistor is realized, the collected current is sent to the detection demand equipment by utilizing the channel of the current detection amplifier in the multiplexer, finally, the collected current and the standard current are compared, whether the working state of the peripheral circuit to be detected is normal or not is judged according to the comparison result, and compared with the detection mode of the peripheral circuit through various special sensors, the problem that the detection demand equipment cannot detect the state of the indirectly controlled peripheral circuit can be effectively solved at low cost.
In addition, each channel of the multiplexer includes a switch for controlling the on or off of the channel.
In addition, the multiplexer includes a controller for controlling the closing or opening of the switches on each channel.
In addition, the current sense amplifier acquires a sense current of a peripheral circuit connected in series with the resistor by: the current detection amplifier detects the voltage difference of the resistor and amplifies the voltage difference by utilizing a preset gain coefficient; and obtaining the detection current of the peripheral circuit according to the amplified voltage difference and the resistance value of the resistor.
In addition, the detection requirement device comprises an ADC module, and the ADC module is used for reading the current acquired by the current detection amplifier.
In addition, before the current detection amplifier is used to collect the current of the resistor connected in series with the peripheral circuit to be detected, the method further comprises: analyzing a detection instruction sent by the detection demand equipment to obtain a peripheral circuit to be detected and a specific working state; and when the peripheral circuit to be detected is in the specific working state, communicating a channel of the peripheral circuit to be detected in a multiplexer.
In addition, the analyzing and detecting the detection instruction sent by the demand equipment to obtain the peripheral circuit to be detected and the specific working state includes: acquiring the specific working state identification and the detection label value corresponding to each peripheral circuit from the detection instruction; and obtaining the peripheral circuit to be detected and the specific working state according to the specific working state identifier and the detection label corresponding to each peripheral circuit.
In addition, the channel connecting the peripheral circuit to be detected in the multiplexer comprises: acquiring a switch number of a multiplexer corresponding to a peripheral circuit to be detected; and closing the switch corresponding to the switch number, and opening the switches on other channels of the multiplexer.
In addition, the determining whether the state of the peripheral circuit to be detected is normal according to the comparison result includes:
when the comparison result is that the difference value between the detected current and the standard current is smaller than or equal to a preset deviation threshold value, generating information that the peripheral circuit to be detected is normal in state; and when the comparison result shows that the difference value between the detected current and the standard current is larger than the preset deviation threshold value, sending early warning information of abnormal peripheral circuit state to be detected.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and are intended to provide further explanation of the technology claimed.
Drawings
The above and other objects, features and advantages of the present application will become more apparent from the following more particular description of embodiments of the present application, as illustrated in the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
FIG. 1 is a schematic diagram of a peripheral circuit current sensing system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another configuration of a peripheral circuit current sensing system according to an embodiment of the present application;
Fig. 3 is a flowchart of a peripheral circuit current detection method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited by the example embodiments described herein.
An embodiment of the application relates to a peripheral circuit current detection system which can be used for simultaneously detecting a plurality of peripheral circuits. The system comprises: the system comprises a multiplexer, a plurality of groups of resistors and current detection amplifiers, wherein the multiplexer comprises a plurality of channels, the input end of each channel is connected with the output end of one of the current detection amplifiers, and the output end of each channel is connected with detection demand equipment; the resistor is connected in series between the peripheral circuit to be detected and the corresponding power supply, and both ends of the resistor are connected with the input end of one of the current detection amplifiers; the current detection amplifier acquires detection current of a peripheral circuit connected with the resistor in series by collecting current of the resistor connected with the current detection amplifier, the detection current is sent to the detection demand equipment through a channel in the multiplexer which is communicated with the detection current, and the detection demand equipment judges whether the state of the peripheral circuit is normal or not according to the detection current.
Specifically, as shown in fig. 1, the peripheral circuit current detection system includes: the multiplexer 10, the resistor 21 and the current sense amplifier 31, the resistor 22 and the current sense amplifier 32, …, the resistor 2n and the current sense amplifier 3n, n are natural numbers greater than 1, i.e. n groups of resistors and current sense amplifiers are included in the embodiment of the application. The peripheral circuit current detection system can measure a plurality of peripheral circuits simultaneously. The number of resistors and current sense amplifiers may be the same as the number of peripheral circuits, i.e., n peripheral circuits including peripheral circuit 41, peripheral circuits 42, … … and peripheral circuit 4n may be measured simultaneously in the embodiment of the present application.
In one embodiment of the present invention, peripheral circuit 4n is powered by power supply 60.
Further, in an embodiment of the present application, the multiplexer 10 includes several channels, for example, channel 1, channel 2, … and channel n, wherein an input terminal of channel n is connected to an output terminal of the current sense amplifier 3n, and an output terminal of channel n is connected to the sense demand device 50. For example, as shown in fig. 1, the input terminal of the channel 1 is connected to the output terminal of the current detection amplifier 31, and the output terminal of the channel 1 is connected to the detection demand device 50.
In the embodiment of the present application, one of the resistors 2n is connected in series between the peripheral circuit 4n and the power supply 60, wherein both ends of the resistor 2n are connected to the input end of the current detection amplifier 3 n. For example, as shown in fig. 1, a resistor 21 is connected in series between the peripheral circuit 41 and the power supply 1, both ends of the resistor 21 are connected to the input terminal of the current detection amplifier 31, and the output terminal of the current detection amplifier 31 is connected to the input terminal of the channel 1 of the multiplexer 10. The connection between the peripheral circuit 42 and the resistor 22 and the current sense amplifier 32, and the connection between the peripheral circuit 4n and the resistor 2n and the current sense amplifier 3n are the same as the connection between the peripheral circuit 41 and the resistor 21 and the current sense amplifier 31, as shown in fig. 1, and will not be repeated here.
In this embodiment, the current detection amplifier 3n acquires the detection current of the peripheral circuit 4n connected in series with the resistor 2n by collecting the current of the resistor 2n connected to the current detection amplifier 3n, and sends the detection current to the detection demand device 50 through the channel in the multiplexer 10 communicating with the current detection amplifier 3 n.
The current detection amplifier detects the voltage difference of the resistor, amplifies the voltage difference by utilizing a preset gain coefficient, and obtains the detection current of the peripheral circuit according to the amplified voltage difference and the resistance value of the resistor.
Specifically, as shown in fig. 1, when the power supply 60 supplies the power supply current to the peripheral circuit 41 through the resistor 21, a weak voltage difference, denoted as V 0, is generated at two ends of the resistor 21, the input end of the current detection amplifier 31 is connected to two ends of the resistor 21, the voltage difference V 0 is amplified to g×v 0, G is a gain coefficient of the current detection amplifier 31, and the detected current of the peripheral circuit 41 is obtained by dividing g×v 0 by the resistance value of the resistor 21. Further, the current sense amplifier 31 is connected to the channel 1 of the multiplexer 10, and the sense current of the peripheral circuit 41 is transmitted to the sense required device 50 through the channel 1. The detection requirement device 50 can compare the received detection current with the standard current of the peripheral circuit 41 in the working state, and determine whether the state of the peripheral circuit 41 is normal according to the comparison result.
In this embodiment, the detection requirement device 50 may be any device connected to a peripheral circuit, and needs to know the operation state of the peripheral circuit. For example, in a 5G communication scenario, the detection requirement device 50 may be a 5G communication device, such as a smart phone, an internet of things device, or an industrial device. The peripheral circuits may be speakers, leds, PTC (Positive Temperature Coefficient) components, motors, etc. connected to the 5G communication device. The 5G communication equipment detects the states of peripheral circuits such as a connected loudspeaker, an LED, a PTC, a motor and the like in real time so as to ensure normal communication with the peripheral circuits.
It should be noted that fig. 1 only shows a case where each peripheral circuit adopts a single power supply, when one peripheral circuit has multiple power supplies, a resistor needs to be connected in series between the peripheral circuit and each power supply, and then a current detection amplifier is connected between two ends of the series resistor, that is, the resistor and the current detection amplifier appear in pairs, so as to collect the current on each power line of the peripheral circuit. Further, a current sense amplifier is connected to a channel of the multiplexer 10, and the channel of the multiplexer 10 corresponds to the current sense amplifier one by one, in this way, it is ensured that the current of each peripheral circuit can be transmitted to the sensing demand device 50 through a dedicated channel.
In this embodiment, each channel of the multiplexer 10 is controllable to be connected or disconnected, i.e. by connecting or disconnecting one channel, control is implemented to detect whether the peripheral circuit connected to the channel is connected.
In one example, as shown in fig. 2, each channel in multiplexer 10 includes a switch for controlling the connection or disconnection of the channel, e.g., channel 1 has single pole single throw switch S1 mounted thereon, channel 2 has single pole single throw switch S2 mounted thereon, and channel n has single pole single throw switch Sn mounted thereon. The control of opening or closing the corresponding channels is realized by opening or closing the single-pole single-throw switch on each channel.
In one particular example, as shown in fig. 2, the multiplexer 10 includes a controller 11 for controlling the closing or opening of the switches on each channel. For example, the controller 11 is operated by the detection demand device 50 through IO to control the on or off of the switch on each channel, so as to control the on or off of the corresponding channel.
In a specific example, as shown in fig. 2, the detection requirement device 50 includes an ADC (analog-to-Digital Converter ) module 51, and the ADC module 51 reads the detection current collected by the current detection amplifier 3n, so that the detection current can be converted from an analog signal to a digital signal, so as to perform subsequent comparison calculation of the detection circuit and the standard current based on the digital signal. Meanwhile, the ADC module 51 has the characteristics of high speed, high precision, low power consumption, and the like, and can meet the requirement of high-speed data transmission.
According to the peripheral circuit current detection system provided by the embodiment of the application, through the combination of the resistor and the current detection amplifier, the current of the resistor is collected by the current detection amplifier, the collection of the detection current of the peripheral circuit connected in series with the resistor is realized, the collected detection current is sent to the detection requirement equipment by utilizing the channel of the current detection amplifier in the multiplexer, the collected detection current of the peripheral circuit can be used for analyzing the working state of the peripheral circuit, and the problem that the detection requirement equipment cannot detect the state of the indirectly controlled peripheral circuit is solved at low cost.
The embodiment of the application also provides a peripheral circuit current detection method executed by the peripheral circuit current detection system, which comprises the following steps: collecting current of a resistor connected in series with a peripheral circuit to be detected by using a current detection amplifier to obtain detection current of the peripheral circuit to be detected; transmitting the sense current to a sense demand device through a channel in a multiplexer connected to the current sense amplifier; and comparing the received detection current with the standard current of the peripheral circuit to be detected by using the detection demand equipment, and judging whether the state of the peripheral circuit to be detected is normal or not according to the comparison result.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments.
The implementation details of the peripheral circuit current detection method in this embodiment are specifically described below, and the following is only for facilitating understanding of the implementation details of this embodiment, and is not necessary for implementing this embodiment.
The specific flow is shown in fig. 3, and may include the following steps:
Step 301, collecting current of a resistor connected in series with a peripheral circuit to be detected by using a current detection amplifier, and obtaining detection current of the peripheral circuit to be detected.
In this embodiment, it is first required to explicitly detect which peripheral circuits the demand device 50 needs to know the operating states of, i.e. to explicitly detect whether the peripheral circuits to be detected, for example, the peripheral circuit 41, the peripheral circuit 42 or both peripheral circuits include. It is also necessary to know in which operating states the peripheral circuit to be tested is operating normally, i.e. to define specific operating states, for example when the motor is operating at high frequency, when the LEDs are on.
In one example, the peripheral circuit to be detected and the specific working state can be obtained by analyzing the detection instruction sent by the detection requirement device 50, and when the peripheral circuit to be detected is in the specific working state, the channel of the peripheral circuit to be detected in the multiplexer is connected. In the embodiment of the invention, the specific working state identifier and the detection label value corresponding to each peripheral circuit are obtained from the detection instruction; and obtaining the peripheral circuit to be detected and the specific working state according to the specific working state identifier and the detection label corresponding to each peripheral circuit. Specifically, a specific working state identifier and a detection tag value corresponding to each peripheral circuit are obtained from the detection instruction. For example, multiple working state identifiers may be predefined according to a common 5G communication scenario, where each working state identifier represents one working state, for example, 1 represents an overload carrying state, 2 represents an idle state of external equipment, 3 represents a grid-connected state, 4 represents a grid-disconnected state, and the like, and an actual specific working state is obtained by reading the working state identifier in the detection instruction. When the value of the detection tag of the peripheral circuit is equal to the value of the preset detection state, setting the corresponding peripheral circuit as the peripheral circuit to be detected. In practical implementation, different detection tag values may be defined for each peripheral circuit according to each operating state, for example, a preset detection state value of 1 is set for the peripheral circuit 41 in the grid-connected state, and correspondingly, a preset non-detection state value of 0 is set, when a specific operating state is the grid-connected state, if the detection tag value of the peripheral circuit 41 obtained by analyzing the detection instruction is 1, it indicates that the operation condition of the peripheral circuit 41 in the grid-connected state needs to be monitored, and if the detection tag value of the peripheral circuit 41 is 0, it indicates that the operation condition of the peripheral circuit 41 in the grid-connected state does not need to be monitored.
It should be noted that the peripheral circuit to be detected may be a plurality of peripheral circuits, and the specific working state may be a plurality of working states.
In this embodiment, when the peripheral circuit to be detected is in the specific operation state, the channels of the peripheral circuit to be detected in the multiplexer 10 are connected. In a specific embodiment, the switch number of the multiplexer 10 corresponding to the peripheral circuit to be detected is acquired, for example, S1; and closing the switch corresponding to the switch number, and opening the switches on other channels of the multiplexer 10. The operation can make the channels corresponding to the peripheral circuits to be detected in a connected state and the channels of other peripheral circuits not to be detected in a disconnected state, so that the idle channels do not occupy communication resources.
In one example, assuming that the peripheral circuit to be detected is the peripheral circuit 41, as shown in fig. 1, when the power supply 60 supplies the power supply current to the peripheral circuit 41 to flow through the resistor 21, a weak voltage difference V 0 is generated at two ends of the resistor 21, the input end of the current detection amplifier 31 is connected to two ends of the resistor 21, the voltage difference V 0 is amplified to g×v 0, G is a gain coefficient of the current detection amplifier 31, and the detected current of the peripheral circuit 41 is obtained by dividing g×v 0 by the resistance value of the resistor 21.
In this embodiment, through the combination of the resistor and the current detection amplifier, currents of different peripheral circuits in different working states are collected to obtain detection currents, and the detection currents can be used in analysis of the working states of the peripheral circuits to be detected.
Step 302, sending the detection current to the detection requirement device 50 through the channel in the multiplexer 10 to which the current detection amplifier is connected.
In one example, assuming that the peripheral circuit to be tested is peripheral circuit 41, as shown in FIG. 1, current sense amplifier 31 is connected to channel 1 of multiplexer 10, and the current of peripheral circuit 41 is transmitted to the test requirement device 50 through channel 1.
In one particular example, the sense demand device 50 reads the sense current collected by the current sense amplifier through the ADC module.
In this embodiment, a current sense amplifier is connected to a channel of the multiplexer 10, and the channel of the multiplexer 10 corresponds to the current sense amplifier one by one. The channels through the multiplexer 10 can ensure that proprietary data of the peripheral circuit to be detected is transmitted through the proprietary channels.
Step 303, comparing the received detection current with the standard current of the peripheral circuit to be detected by using the detection requirement device 50, and judging whether the state of the peripheral circuit to be detected is normal according to the comparison result.
In one example, when the comparison result is that the difference between the detected current and the standard current is smaller than or equal to the preset deviation threshold, information that the peripheral circuit to be detected is in a normal state is generated. And when the comparison result shows that the difference value between the detected current and the standard current is larger than the preset deviation threshold value, sending early warning information of abnormal peripheral circuit state to be detected. The preset deviation threshold value can be set according to an actual test result.
According to the peripheral circuit current detection method provided by the embodiment of the application, through the combination of the resistor and the current detection amplifier, the current of the resistor is collected by the current detection amplifier, the collection of the current of the peripheral circuit communicated with the resistor is realized, the collected current is sent to the detection demand equipment by utilizing the channel of the current detection amplifier in the multiplexer, finally, the collected current and the standard current are compared, whether the working state of the peripheral circuit to be detected is normal or not is judged according to the comparison result, and compared with the detection mode of the peripheral circuit through various special sensors, the problem that the detection demand equipment cannot detect the state of the indirectly controlled peripheral circuit can be effectively solved at low cost.
It is to be noted that this embodiment is a method example corresponding to the peripheral circuit current detection system example, and this embodiment may be implemented in cooperation with the above-described example. The related technical details mentioned in the foregoing embodiments are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the above-described embodiments.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
Those skilled in the art will appreciate that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, including instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiments described hereinabove are intended to provide those of ordinary skill in the art with a variety of modifications and variations that would make it possible to the embodiments without departing from the inventive concept, and thus the scope of the application is not limited by the embodiments described hereinabove but is to be accorded the broadest scope consistent with the innovative features recited in the claims.
Claims (10)
1. A method for detecting a peripheral circuit current, the method comprising:
Collecting current of a resistor connected in series with a peripheral circuit to be detected by using a current detection amplifier to obtain detection current of the peripheral circuit to be detected;
Transmitting the sense current to a sense demand device through a channel in a multiplexer connected to the current sense amplifier;
And comparing the received detection current with the standard current of the peripheral circuit to be detected by using the detection demand equipment, and judging whether the state of the peripheral circuit to be detected is normal or not according to the comparison result.
2. The peripheral circuit current detection method according to claim 1, wherein the multiplexer comprises a plurality of channels, an input end of each of the channels is connected with an output end of one of the current detection amplifiers, and an output end of each of the channels is connected with a detection demand device; the resistor is connected in series between the peripheral circuit to be detected and the corresponding power supply, and both ends of the resistor are connected with the input end of one of the current detection amplifiers;
The current detection amplifier acquires detection current of a peripheral circuit connected with the resistor in series by collecting current of the resistor connected with the current detection amplifier, the detection current is sent to the detection demand equipment through a channel in the multiplexer which is communicated with the detection current, and the detection demand equipment judges whether the state of the peripheral circuit is normal or not according to the detection current.
3. The peripheral circuit current detection method according to claim 2, wherein each channel of the multiplexer includes a switch for controlling on or off of the channel.
4. The peripheral circuit current detection method according to claim 2, wherein the multiplexer includes a controller for controlling the closing or opening of the switch on each channel.
5. The peripheral circuit current detection method according to claim 2, wherein the current detection amplifier acquires the detection current of the peripheral circuit connected in series with the resistor by:
the current detection amplifier detects the voltage difference of the resistor and amplifies the voltage difference by utilizing a preset gain coefficient;
And obtaining the detection current of the peripheral circuit according to the amplified voltage difference and the resistance value of the resistor.
6. The peripheral circuit current detection method according to claim 2, wherein the detection demand device includes an ADC module for reading the current collected by the current detection amplifier.
7. A peripheral circuit current testing method according to any of claims 1 to 6, wherein prior to said collecting the current of the resistor in series with the peripheral circuit to be tested using a current sense amplifier, said method further comprises:
Analyzing a detection instruction sent by the detection demand equipment to obtain a peripheral circuit to be detected and a specific working state;
And when the peripheral circuit to be detected is in the specific working state, communicating a channel of the peripheral circuit to be detected in a multiplexer.
8. The method for detecting a peripheral circuit current according to any one of claims 1 to 6, wherein analyzing the detection command issued by the detection demand device to obtain the peripheral circuit to be detected and the specific operating state comprises:
Acquiring the specific working state identification and the detection label value corresponding to each peripheral circuit from the detection instruction;
And obtaining the peripheral circuit to be detected and the specific working state according to the specific working state identifier and the detection label corresponding to each peripheral circuit.
9. The peripheral circuit current detecting method according to any one of claims 1 to 6, wherein said communicating the channel of the peripheral circuit to be detected in the multiplexer comprises:
acquiring a switch number of a multiplexer corresponding to a peripheral circuit to be detected;
and closing the switch corresponding to the switch number, and opening the switches on other channels of the multiplexer.
10. The peripheral circuit current detecting method according to any one of claims 1 to 6, wherein the judging whether the state of the peripheral circuit to be detected is normal or not based on the comparison result comprises:
When the comparison result is that the difference value between the detected current and the standard current is smaller than or equal to a preset deviation threshold value, generating information that the peripheral circuit to be detected is normal in state;
And when the comparison result shows that the difference value between the detected current and the standard current is larger than the preset deviation threshold value, sending early warning information of abnormal peripheral circuit state to be detected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311870030.3A CN117907669A (en) | 2023-12-29 | 2023-12-29 | Peripheral circuit current detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311870030.3A CN117907669A (en) | 2023-12-29 | 2023-12-29 | Peripheral circuit current detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117907669A true CN117907669A (en) | 2024-04-19 |
Family
ID=90681191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311870030.3A Pending CN117907669A (en) | 2023-12-29 | 2023-12-29 | Peripheral circuit current detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117907669A (en) |
-
2023
- 2023-12-29 CN CN202311870030.3A patent/CN117907669A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8443130B2 (en) | USB port detecting circuit | |
US20090217755A1 (en) | Smart sensor | |
CN112834904B (en) | Chip aging test system and method | |
CN111486875B (en) | Sensor device | |
CN110907056A (en) | Battery pack temperature detection system | |
US8044638B2 (en) | Monitoring system for monitoring low voltage disconnecting value of secondary batteries and method for the same | |
CN112130089A (en) | Module pin connectivity testing device and system | |
US20140163918A1 (en) | Fan module test system | |
US20020161938A1 (en) | Increasing control information from a single general purpose input/output (GPIO) mechanism | |
CN117907669A (en) | Peripheral circuit current detection method | |
CN111505531B (en) | Board card test system | |
CN109709373B (en) | Signal self-adaptive acquisition circuit and acquisition method | |
CN209877285U (en) | Circuit for judging running state of compressor | |
CN111882852B (en) | Access detection circuit, method, master device and storage medium | |
CN103109386B (en) | For reducing equipment and the method for the energy ezpenditure in the monitoring component of multiple piezoelectric element | |
CN115683395A (en) | Open circuit detection circuit and open circuit detection method for thermocouple | |
CN111123106B (en) | Sensor and method for checking a sensor | |
CN210895121U (en) | Automobile diagnosis equipment and system | |
CN113125847A (en) | Method and device for processing direct current signal | |
CN218271106U (en) | System capable of identifying and intelligently switching positive and negative ends of thermocouple | |
US20120056611A1 (en) | Connection detection circuit | |
CN221859616U (en) | Multichannel sensor diagnosis circuit | |
CN213688717U (en) | Multiplex detection circuitry and electrical apparatus of many temperature sensing package | |
US20240069077A1 (en) | Re-configurable sensor device and method for reconfiguring a sensor device using a pulse modulated signal | |
CN111077434A (en) | M2M module testing method and device |
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 |