CN117250388A - Leakage current testing device, testing method and electronic equipment - Google Patents

Leakage current testing device, testing method and electronic equipment Download PDF

Info

Publication number
CN117250388A
CN117250388A CN202210658342.7A CN202210658342A CN117250388A CN 117250388 A CN117250388 A CN 117250388A CN 202210658342 A CN202210658342 A CN 202210658342A CN 117250388 A CN117250388 A CN 117250388A
Authority
CN
China
Prior art keywords
test
communication interface
electronic device
current values
interface
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
CN202210658342.7A
Other languages
Chinese (zh)
Inventor
唐科狄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210658342.7A priority Critical patent/CN117250388A/en
Publication of CN117250388A publication Critical patent/CN117250388A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • 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
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/52Testing for short-circuits, leakage current or ground faults

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Fuel Cell (AREA)

Abstract

The disclosure relates to a leakage current testing device, a testing method and electronic equipment. The test device comprises: an upper computer; the adapter plate comprises a first communication interface and a second communication interface which are connected, and the first communication interface is used for being in communication connection with an electricity meter of the electronic equipment; the second communication interface is in communication connection with the upper computer; when the electronic equipment is in a shutdown state, the upper computer can acquire a test signal measured by the fuel gauge through the adapter plate, and determine whether leakage current abnormality exists in the electronic equipment or not based on the test signal. The embodiment of the disclosure can detect the leakage current of the electronic equipment under the condition that the electronic equipment is shut down.

Description

Leakage current testing device, testing method and electronic equipment
Technical Field
The disclosure relates to the technical field of leakage current testing, and in particular relates to a leakage current testing device, a leakage current testing method and electronic equipment.
Background
With the increasing popularity of consumer electronic devices, the reliability and safety of the electronic devices are increasingly emphasized, and part of products cannot work normally due to electric leakage of the whole machine. The leakage current testing method in the related art has the problem of limited applicable scenes.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a leakage current testing device, a testing method and an electronic device, which can make the testing of the leakage current more flexible on the basis of ensuring the reliability and safety of the electronic device, and expand the applicable scenario of testing the leakage current.
According to a first aspect of an embodiment of the present disclosure, there is provided a leakage current testing apparatus, including:
an upper computer;
the adapter plate comprises a first communication interface, a second communication interface and a conversion module connected between the first communication interface and the second communication interface, wherein the first communication interface is used for being in communication connection with an electricity meter of electronic equipment; the second communication interface is in communication connection with the upper computer, and the conversion module is used for converting the test signal of the first protocol received and transmitted by the first communication interface into the test signal of the second protocol received and transmitted by the second communication interface;
when the electronic equipment is in a shutdown state, the upper computer can acquire a test signal measured by the fuel gauge through the adapter plate, and determine whether leakage current abnormality exists in the electronic equipment or not based on the test signal.
In some embodiments, the host computer is further configured to power a switch module of the electronic device, so that the switch module is closed and the first communication interface of the adapter board is capable of establishing a communication connection with the fuel gauge through the switch module.
In some embodiments, the adapter plate further comprises a first power supply interface, a second power supply interface, and a voltage dividing module connected between the first power supply interface and the second power supply interface; the first power supply interface is connected with the upper computer, the second power supply interface is connected with the electronic equipment, and the voltage dividing module is used for converting the voltage of the power supplied by the upper computer into the voltage required by the switch module.
In some embodiments, the upper computer is further configured to select N test current values corresponding to N consecutive test sampling points from the test signals measured by the fuel gauge; inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points; when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment; wherein one of the test sampling points corresponds to one of the test current values and one of the calculated current values; n and K are positive integers, and N is greater than or equal to K.
In some embodiments, the host computer is further configured to obtain a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic device; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
According to a second aspect of embodiments of the present disclosure, there is provided an electronic device including:
an electricity meter;
the third communication interface is connected with the fuel gauge, and communication connection is established between the third communication interface and an upper computer in the testing device through the first communication interface and the second communication interface of the adapter plate in the testing device;
when the electronic equipment is in a shutdown state, a test signal measured by the fuel gauge is sent to the upper computer through the third communication interface, the first communication interface and the second communication interface, so that the upper computer can determine whether leakage current abnormality exists in the electronic equipment based on the test signal.
In some embodiments, the electronic device further comprises:
the switch module is provided with a first connecting end and a second connecting end, the first connecting end is connected with the third communication interface, and the second connecting end is connected with the fuel gauge;
When the electronic equipment is in a shutdown state, the switch module is in a conduction state, so that the fuel gauge and the third communication interface are in communication connection.
In some embodiments, the switch module further has a power terminal;
the electronic device further includes:
the power supply interface is connected with the second power supply interface of the adapter plate and the power supply end and is used for receiving a power supply signal transmitted by the second power supply interface so that the power supply signal can supply power to the switch module;
wherein the switch module is closed upon receipt of the power signal to establish a communication connection between the fuel gauge and the third communication interface.
In some embodiments, the electronic device further comprises:
the impedance module is connected with the switch module and the power interface and used for changing the impedance of a power supply connecting line between the power interface and the switch module; and/or the number of the groups of groups,
and the voltage stabilizing module is connected with the switch module and the power interface and is used for providing stable power supply signals for the switch module.
According to a third aspect of embodiments of the present disclosure, there is provided a testing method applied to a testing apparatus, the method further comprising:
When the electronic equipment is in a shutdown state, acquiring a test signal measured by an electricity meter of the electronic equipment;
and determining whether leakage current abnormality exists in the electronic equipment based on the test signal.
In some embodiments, the determining whether the electronic device has a leakage current anomaly based on the test signal includes:
selecting N test current values corresponding to continuous N test sampling points from the test signals measured by the fuel gauge;
inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points;
when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment;
wherein one of the test sampling points corresponds to one of the test current values and one of the calculated current values; n and K are positive integers, and N is greater than or equal to K.
In some embodiments, the method further comprises:
acquiring a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic equipment; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, when the electronic equipment is in a shutdown state, the upper computer can acquire a test signal measured by the fuel gauge through the adapter plate, and determine whether leakage current abnormality exists in the electronic equipment based on the test signal. That is, the test device of the embodiment of the disclosure can detect the leakage current of the electronic device in the shutdown state, can make the test of the leakage current more flexible on the basis of guaranteeing the reliability and the safety of the electronic device, and expands the applicable scene of testing the leakage current.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a structure of a test apparatus and an electronic device according to an exemplary embodiment.
Fig. 2 is a schematic diagram of a test apparatus and an electronic device according to a second exemplary embodiment.
Fig. 3 is a schematic diagram III of a test apparatus and an electronic device according to an exemplary embodiment.
Fig. 4 is a schematic diagram of a test apparatus and an electronic device according to an exemplary embodiment.
Fig. 5 is a schematic diagram of a test apparatus and an electronic device according to an exemplary embodiment.
Fig. 6 is a schematic diagram six of a structure of a test apparatus and an electronic device according to an exemplary embodiment.
Fig. 7 is a schematic diagram seven of the structure of the test apparatus and the electronic device shown according to an exemplary embodiment.
Fig. 8 is a schematic diagram eight of a structure of a test apparatus and an electronic device shown according to an exemplary embodiment.
Fig. 9 is a flow chart of a test method according to an exemplary embodiment.
FIG. 10 is a schematic fit of a current calculation model shown according to an exemplary embodiment.
Fig. 11 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the current scene of testing leakage current, the leakage current can be usually tested before the battery is assembled and the leakage current of the assembled electronic equipment or the leakage current of the electronic equipment aged for a long time can be collected through an electricity meter in the electronic equipment. However, the leakage current test can only test the electronic device in a working state when testing the assembled electronic device, and further has the problem that the use field of the leakage current test is limited.
Based on this, the embodiment of the disclosure provides a leakage current testing device capable of detecting leakage current of an electronic device in a shutdown state. As shown in fig. 1 and 2, the leakage current testing apparatus 100 includes:
an upper computer 101;
the adapter board 102 comprises a first communication interface 102A, a second communication interface 102B and a conversion module 102C connected between the first communication interface 102A and the second communication interface 102B; the first communication interface 102A is configured to be communicatively connected to the fuel gauge 201 of the electronic device 200; the second communication interface 102B is in communication connection with the upper computer 101; the conversion module 102C is configured to convert the test signal of the first protocol received and transmitted by the first communication interface 102A into the test signal of the second protocol received and transmitted by the second communication interface 102B;
When the electronic device 200 is in a power-off state, the upper computer 101 can obtain a test signal measured by the fuel gauge 201 through the adapter board 102, and determine whether the electronic device 200 has a leakage current abnormality based on the test signal.
In the embodiment of the disclosure, the testing device 100 is used for detecting whether the electronic equipment 200 has abnormal leakage current, and can be applied to leakage current detection of a complete machine assembled at a production end, and can also be used as a scene of after-sale nondestructive detection of leakage current.
Wherein, this electronic equipment 200 includes: mobile terminal device or wearable electronic device; the mobile terminal device may include: smart phones or tablet computers; the wearable electronic device may include a smart watch or a smart bracelet, and embodiments of the present disclosure are not limited.
In the embodiment of the present disclosure, the adapter board 102 is used as an intermediate adapter device for enabling the upper computer 101 and the electricity meter 201 of the electronic device 200 to establish communication, so that the upper computer 101 can acquire a test signal measured by the electricity meter 201.
Here, the interposer 102 may be formed of a printed circuit board, and embodiments of the present disclosure are not limited.
The fuel gauge 201 of the electronic device 200 described above may be located in a battery assembly of the electronic device 200. It should be noted that, since the fuel gauge 201 is located in the battery assembly of the electronic device 200, the battery assembly can supply power to the fuel gauge 201, so that the fuel gauge 201 can also measure the test signal when the electronic device 200 is in the off state, and the host computer 101 can obtain the test signal through the first communication interface 102A and the second communication interface 102B on the adapter board 102.
Here, the test signal may comprise an electrical signal measured by an electricity meter, and embodiments of the present disclosure are not limited.
In the process of establishing the communication connection between the first communication interface 102A and the electronic device 200, the first communication interface 102A may be connected to the third communication interface of the electronic device 200 to enable communication data to be transmitted.
Illustratively, the first communication interface 102A has the same communication protocol as the third communication interface.
In the process of establishing the communication connection between the second communication interface 102B and the upper computer 101, the second communication interface 102B may be connected to the fourth communication interface of the upper computer 101 to enable communication data to be transmitted.
Illustratively, the second communication interface 102B has the same communication protocol as the fourth communication interface.
Since the fourth communication interface of the host computer 101 is different from the third communication interface of the electronic device 200, the second communication interface connected to the fourth communication interface of the host computer is different from the first communication interface connected to the third communication interface of the electronic device.
The first communication interface 102A of the adapter plate 102 establishes communication connection with the fuel gauge 201, and the second communication interface 102B of the adapter plate 102 establishes communication connection with the upper computer 101, so that the upper computer 101 and the fuel gauge 201 can realize indirect communication connection through the adapter plate 102, and the upper computer 101 can obtain test signals of the fuel gauge side.
In the disclosed embodiment, the first communication interface 102A may be a first type of interface among universal serial bus (Universal Serial Bus, USB) interfaces. The first Type of interface includes, but is not limited to, a communication interface in a Type-C interface.
The second communication interface 102B may be a second Type of interface in the USB interface including, but not limited to, a communication interface in the Type-a interface.
It should be noted that, the transmission of the test signal measured by the fuel gauge 201 follows a first protocol, the host computer 101 obtains the test signal and follows a second protocol, and the first protocol is different from the second protocol, and the first protocol may be an I2C protocol, and the second protocol may be a USB protocol.
Illustratively, the first communication interface 102A may be an SBU interface of the Type-C interface, and the second communication interface 102B may be a positive Data line (Data Plus, DP) or negative Data line (Data Minus, DM) interface of the Type-A interface.
In the present embodiment, since the electronic device 200 generates a leakage current when the device is damaged, the host computer 101 in the embodiment of the present disclosure obtains the test signal measured by the fuel gauge 201 to determine whether the electronic device 200 has an abnormal leakage current.
Here, whether the electronic device has the leakage current abnormality may be determined by directly comparing the test signal with the threshold value, or whether the electronic device has the leakage current abnormality may be determined based on the test signal and the current calculation model, which is not limited by the embodiment of the present disclosure.
In the embodiment of the present disclosure, when the electronic device 200 is in the power-off state, the upper computer 101 obtains the test signal measured by the fuel gauge 201 through the adapter board 102, and determines whether the electronic device 200 has a leakage current abnormality based on the test signal. That is, the test device of the embodiment of the present disclosure can detect the leakage current of the electronic device 200 in the shutdown state, so that the test of the leakage current is more flexible on the basis of ensuring the reliability and safety of the electronic device 200, and the applicable scenario of testing the leakage current is enlarged.
In some embodiments, the host computer is further configured to power a switch module of the electronic device 200, such that the switch module is closed and the first communication interface 102A of the patch panel 102 is capable of establishing a communication connection with the fuel gauge 201 through the switch module.
That is, when the electronic device 200 is in the off state, the upper computer 101 can establish a communication connection with the fuel gauge 201 through the closed switch module, so as to detect the leakage current of the electronic device 200 in the off state based on the acquired test signal.
In some embodiments, as shown in fig. 3 and 4, the patch panel 102 further includes a first power interface 102D and a second power interface 102E connected; the first power supply interface 102D is connected to the upper computer 101, and the second power supply interface 102E is connected to the electronic device 200;
Wherein, the upper computer 101 transmits a power supply signal to the electronic device 200 through the first power supply interface 102D and the second power supply interface 102E;
the adapter plate 102 further includes a voltage dividing module 102F;
the voltage dividing module 102F is connected to the first power supply interface 102D and the second power supply interface 102E, and is configured to convert a voltage of the power supplied by the host computer 101 into a voltage required by the switch module.
In the embodiment of the disclosure, when the electronic device 200 is turned off, the electronic device 200 cannot provide enough electric quantity for enabling the switch module to be turned on to transmit the test signal, and at this time, the upper computer 101 supplies power to the adapter plate 102 through the first power supply interface 102D and the second power supply interface 102E, and the adapter plate 102 supplies power to the electronic device 200, so that the test signal can be transmitted to the upper computer 101.
The power supply signal provided by the upper computer 101 is transmitted to the electronic device 200 through the power supply end of the upper computer 101 via the first power supply interface 102D and the second power supply interface 102E of the adapter board 102. The first power supply interface 102D may be a VBUS interface, and the second power supply interface 102E may be a DP or DM interface.
In the embodiment of the disclosure, the adapter board 102 transmits the divided power supply signal to the electronic device 200 based on the voltage division module 102F, so as to supply power to the switch module of the electronic device 200, so that the electronic device 200 can transmit the test signal.
In the embodiment of the disclosure, the voltage dividing module 102F may step down the power supply signal of the first voltage output by the power supply terminal of the host computer 101 to the power supply signal of the second voltage.
Illustratively, the first voltage may be in the range of 4.5V to 5.5V and the second voltage may be in the range of 1.6 to 3V.
In the embodiment of the disclosure, the voltage division module 102F divides the power supply signal output by the power supply end of the upper computer 101, so that the electronic device 200 can transmit the test signal of the fuel gauge 201 under the condition of shutdown, and the electronic device 200 can be prevented from being started up due to direct power supply of the power supply signal to the electronic device 200.
In some embodiments, the upper computer is further configured to select N test current values corresponding to N consecutive test sampling points from the test signals measured by the fuel gauge; inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points; when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment; wherein one test sampling point corresponds to one test current value and one calculated current value; n and K are positive integers, and N is greater than or equal to K.
In the embodiment of the disclosure, in the process of determining whether the electronic device has the leakage current abnormality, a plurality of current calculation values are required to be compared with threshold values in a current threshold range, and if a plurality of continuous current calculation values are all in the current threshold range, it is determined that the electronic device has no leakage current abnormality. If the preset times are compared, and a plurality of continuous current calculation values are not in the current threshold range, determining that the leakage current abnormality exists in the electronic equipment.
It should be noted that the preset number of times may be set according to practical situations, and the embodiments of the present disclosure are not limited.
In the embodiment of the disclosure, the number of the selected test current values may be set according to practical situations, for example, the number of the selected test current values is 5.
It should be noted that selecting N test current values corresponding to N consecutive test sampling points may include: selecting continuous current N test sampling points from the M test sampling points, and taking N current test current values corresponding to the current N test sampling points as N selected test current values.
The method comprises the steps of selecting continuous current N test sampling points from M test sampling points, wherein the continuous current N test sampling points comprise:
When the current N test sampling points are obtained for the first time, taking the first test sampling point to the Nth test sampling point in the M test sampling points as the current N test sampling points;
when the current N test sampling points are not acquired for the first time, the i+1 to i+N test sampling points are acquired last time, and the i+2 to i+N+1 test sampling points are taken as the current N test sampling points.
In the embodiment of the disclosure, when it is determined that the electronic device has no leakage current abnormality, the selection of the current N test sampling points is stopped, otherwise, the selection of the current N test sampling points is continued until the acquisition of the M test sampling points is completed. If M test sampling points are obtained, judging that the electronic equipment has leakage current, and determining that the electronic equipment has leakage current abnormality. Wherein M, N, K and i are positive integers, M is greater than N, N is greater than or equal to K, and i is any one of M test sampling points.
Illustratively, M is 20; n is 5; k is 3; and selecting test current values corresponding to the 1 st to 5 th test sampling points, inputting the 5 test current values corresponding to the 5 test sampling points into a current calculation model to obtain 5 calculation current values corresponding to the test sampling points, and if all 3 calculation current values corresponding to 3 continuous test sampling points in the 5 calculation current values are within a threshold value range, determining that the electronic equipment has no leakage current abnormality. Stopping selecting the test sampling point when the electronic equipment is determined to have no leakage current abnormality; otherwise, discarding the current test value corresponding to the 1 st test sampling point, continuing to acquire the current test value corresponding to the 6 th test sampling point, continuing to judge whether the electronic equipment has leakage current abnormality based on the current test value corresponding to the 2 nd test sampling point to the current test value corresponding to the 6 th test sampling point, and so on until the 20 th test sampling point is acquired.
In the embodiment of the disclosure, the current calculation model may be obtained by fitting data distribution values of the electronic device under different current conditions measured by the fuel gauge. In some embodiments, a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic device are obtained; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
In the embodiment of the disclosure, the electronic equipment has different loads, the sample calculation current values are different, and the corresponding sample test current values measured by the fuel gauge are also different.
It should be noted that, the sample calculated current value is an actual leakage current value of the electronic device, and the sample calculated current value may be obtained under an experimental condition, which is not limited in the embodiments of the present disclosure.
For example, as shown in fig. 10, the current calculation model may be obtained by linear fitting based on a sample test current value of 5.16mA corresponding to a sample test current value of-4 mA, a sample test current value of 4.16mA corresponding to a sample test current value of-3 mA, a sample test current value of 3.16mA corresponding to a sample test current value of-2 mA, a sample test current value of 2mA corresponding to a sample test current value of-1 mA, a sample test current value of 1mA corresponding to a sample test current value of 0mA, and a sample test current value of 0.04mA corresponding to a sample test current value of 1 mA. The fitted current calculation model may be the following formula. Wherein I is 1 Expressed as calculated current value, I 2 Expressed as a test current value []Expressed as an integer.
I 1 =[1-I 2 ]
In the embodiment of the disclosure, in the actual operation process of the electronic device, the leakage current of the electronic device is usually weak, the measurement accuracy of the fuel gauge itself exists, the value of the test signal of the electronic device measured by the fuel gauge deviates from the actual value, and the electronic device is in a shutdown state, but still has a part of normal working current, and a part of electric quantity keeps a part of functions to operate, such as an alarm clock and a time part.
In consideration of the above factors, after acquiring the test signal, the upper computer does not directly determine whether there is a leakage current abnormality based on the test current value of the test signal, but obtains a calculated current value by inputting the test current value into a current calculation model, and determines whether there is a leakage current abnormality based on the calculated current value. Therefore, the leakage current test of the embodiment of the disclosure considers the measurement error of the fuel gauge and the influence of the actual working current of the electronic equipment on the leakage current test, and further proposes to correct the test data measured by the fuel gauge through the current calculation model, so that the test accuracy of the leakage current can be improved.
The embodiment of the present disclosure further provides an electronic device, as shown in fig. 5, the electronic device 200 includes:
an electricity meter 201;
a third communication interface 202 connected to the electricity meter 201, wherein the third communication interface 202 establishes communication connection with the upper computer 101 in the test device 100 through the first communication interface 102A and the second communication interface 102B of the adapter plate 102 in the test device 100;
wherein, when the electronic device 200 is in a shutdown state, a test signal measured by the fuel gauge 201 is sent to the upper computer 101 through the third communication interface 202, the first communication interface 102A and the second communication interface 102B, so that the upper computer 101 can determine whether the electronic device 200 has a leakage current abnormality based on the test signal.
The fuel gauge 201 may be located in a battery pack of the electronic device 200, and the fuel gauge 201 can be powered based on the battery pack, so that an additional power supply is not required to be connected to power the fuel gauge in an actual test process.
The test signal may include an electrical signal, for example, the test signal may include a current value tested by the fuel gauge 201.
In the embodiment of the disclosure, the electronic device 200 includes an electricity meter 201 and a third communication interface 202, where the electricity meter 201 is used to measure leakage current of an element to be tested in the electronic device 200, the third communication interface 202 is connected to the first communication interface 102A of the adapter board 102, and the second communication interface 102B of the adapter board 102 is connected to the fourth communication interface of the host computer 101. The test signal is transmitted to the first communication interface 102A of the adapter plate through the third communication interface 202 and the second communication interface 102B, and then transmitted to the upper computer 101 through the adapter plate 102, and the upper computer 101 determines whether the electronic device 200 has abnormal leakage current according to the test signal.
In some embodiments, as shown in fig. 6, the electronic device 200 further includes:
a switch module 203 having a first connection end and a second connection end, the first connection end being connected to the third communication interface 202, the second connection end being connected to the fuel gauge 201;
when the electronic device 200 is in the off state, the switch module 203 is in the on state, so that the fuel gauge 201 and the third communication interface 202 are in communication connection.
In the embodiment of the disclosure, the electronic device 200 further includes a switch module 203, where the switch module 203 has two states of on and off, one end is connected to the fuel gauge 201, and the other end is connected to the host computer 101 through the third communication interface 202, the second communication interface 102B, and the first communication interface 102A.
When the electronic device 200 is in the off state, the switch module 203 in the on state can realize communication connection between the fuel gauge 201 and the third communication interface 202, and the fuel gauge 201 can send the measured test signal to the upper computer 101.
Optionally, when the electronic device 200 is in an on state, the switch module 203 is in an off state, so that the communication connection between the fuel gauge 201 and the third communication interface 202 is disconnected.
When the electronic device 200 is in a power-on state, the electronic device 200 can switch the switch state of the switch module 203 from a conducting state to a disconnecting state, thereby playing an isolating role and reducing the influence of external signals introduced by the testing device on the electronic device.
It should be noted that, the electronic device 200 may control the switch state of the switch module 203 through the high-low level of the General-purpose Input/Output (GPIO) Output.
Illustratively, the connection channel between the first communication interface 102A of the patch panel 102 and the third communication interface 202 may be an SBU connection channel, and the connection channel between the third communication interface 202 and the fuel gauge may be an I2C connection channel.
Here, the I2C transmission line corresponding to the I2C connection channel is an internal line of the electronic device, and the I2C transmission line connected to the fuel gauge when the switch module 203 is in the off state may be used by the electronic device to implement other functions of the electronic device.
In the embodiment of the disclosure, the switch module 203 is located between the SBU connection channel and the I2C connection channel, and when the switch module 203 is in the on state, the SBU connection channel and the I2C connection channel are communicated. At this time, a communication connection can be established between the electricity meter 201 and the third communication interface 202.
When the switch module 203 is in the off state, the communication between the SBU connection channel and the I2C connection channel is disconnected. At this time, the external signal introduced by the test device cannot be transmitted to the fuel gauge 201 through the third communication interface 202, reducing the influence of the external signal introduced by the test device on the electronic apparatus 200.
In some embodiments, as shown in fig. 7, the switch module 203 further has a power terminal;
the electronic device 200 further comprises:
the power interface 204 is connected with the second power supply interface 102E of the adapter plate and the power supply end, and is configured to receive a power supply signal transmitted by the second power supply interface 102E, so that the power supply signal can supply power to the switch module 203;
wherein the switch module is closed upon receipt of the power signal to establish a communication connection between the fuel gauge and a third communication interface.
In the embodiment of the disclosure, when the electronic device 200 is turned off, the electronic device 200 cannot provide enough electric quantity for transmitting the test signal, at this time, the upper computer 101 provides the power supply signal for the adapter plate 102 through the power supply end, the adapter plate 102 converts the power supply signal based on the voltage division module 102F and transmits the converted power supply signal to the switch module 203 through the second power supply interface 102E, so that the switch module 203 can be in a conducting state when the electronic device 200 is in a shutdown state, and the test device can acquire the test signal to detect whether the electronic device 200 has a leakage current abnormality when the electronic device 200 is in the shutdown state.
Illustratively, the voltage of the power supply signal provided by the upper computer 101 is in the range of 4.5V to 5.5V; the voltage of the divided power supply signal obtained through the voltage division module 102F on the interposer 102 may be set in a range of 1.6 to 3V.
In the disclosed embodiment, the power interface and the third communication interface 202 of the electronic device 200 may be interfaces for two different functions of the interface component in the electronic device 200.
Illustratively, the power interface may include a DP or DM interface among USB interfaces.
In some embodiments, as shown in fig. 7 and 8, the electronic device 200 further includes:
an impedance module 205, connected to the switch module 203 and the power interface 204, for changing the impedance of a power supply connection line between the power interface 204 and the switch module 203; and/or the number of the groups of groups,
and the voltage stabilizing module 206 is connected with the switch module 203 and the power interface and is used for providing stable power supply signals for the switch module 203.
In the embodiment of the disclosure, the impedance module 205 is disposed on the power supply line between the power interface 204 and the switch module 203, so that the power supply line is less affected by the high-speed signal.
Illustratively, the impedance module 205 may include at least one of: a resistive element, a capacitive element, or an inductive element. When the impedance module 205 is a resistor, the resistor may be a resistor with a resistance value of 1K.
In the embodiment of the disclosure, the voltage stabilizing module 206 is configured to protect the voltage of the power supply signal transmitted by the third communication interface, and provide a stable voltage for the switch module.
Illustratively, the voltage regulator module 206 may include a 3V voltage regulator tube, and embodiments of the present disclosure are not limited.
The embodiment of the disclosure also provides a testing method, which is applied to a testing device, as shown in fig. 9, and the testing device performs the testing method, and includes the following steps:
s901, when the electronic equipment is in a shutdown state, acquiring a test signal measured by an electricity meter of the electronic equipment;
s902, based on the test signal, determining whether leakage current abnormality exists in the electronic equipment.
In the embodiment of the disclosure, the test signal may be obtained by the upper computer of the test device in one or more embodiments, and whether the electronic device has the leakage current abnormality may be determined based on the test signal.
The acquiring the test signal measured by the fuel gauge of the electronic device may include: the test signal of the fuel gauge measurement is acquired through a polling mechanism of the universal serial bus.
It should be noted that the test signal may include a current signal.
In an embodiment of the present disclosure, determining whether a leakage current abnormality exists in an electronic device based on a test signal includes: converting a test signal of a first protocol received and transmitted by a first communication interface into a test signal of a second protocol received and transmitted by a second communication interface through a conversion module; and determining whether the electronic equipment has leakage current abnormality based on the test signal of the second protocol.
In the embodiment of the disclosure, when the electronic equipment is in a shutdown state, the upper computer acquires a test signal measured by the fuel gauge through the first communication interface and the second communication interface, and determines whether leakage current abnormality exists in the electronic equipment based on the test signal. That is, the embodiment of the disclosure can detect the leakage current of the electronic device in the shutdown state, so that the leakage current can be tested more flexibly on the basis of ensuring the reliability and the safety of the electronic device, and the applicable scene of testing the leakage current is enlarged.
In some embodiments, the determining whether the electronic device has a leakage current anomaly based on the test signal includes:
selecting N test current values corresponding to continuous N test sampling points from the test signals measured by the fuel gauge;
inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points;
when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment; wherein one test sampling point corresponds to one test current value and one calculated current value; n and K are positive integers, and N is greater than or equal to K.
In the embodiment of the disclosure, after the upper computer obtains the test signal, whether the leakage current abnormality exists is not determined directly based on the test current value of the test signal, but a calculated current value is obtained by inputting the test current value into a current calculation model, and whether the leakage current abnormality exists is determined based on the calculated current value. Therefore, the leakage current test of the embodiment of the disclosure considers the measurement error of the fuel gauge and the influence of the actual working current of the electronic equipment on the leakage current test, and further proposes to correct the test data measured by the fuel gauge through the current calculation model, so that the test accuracy of the leakage current can be improved.
In some embodiments, the method further comprises:
acquiring a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic equipment; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
In the embodiment of the disclosure, the current calculation model can be obtained in advance, so that the current calculation model can be directly used for judging whether the electronic equipment has leakage current abnormality in the leakage current test. Thus, the efficiency of the leakage current test can be improved.
With respect to the methods in the above embodiments, the specific implementation of each method has been described in detail in the embodiments related to the test apparatus, and will not be described in detail herein.
Fig. 11 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 11, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to the various components of the electronic device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided that includes instructions, such as memory 804 including instructions, that are executable by processor 820 of electronic device 800 to complete. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A leakage current testing apparatus, comprising:
an upper computer;
the adapter plate comprises a first communication interface, a second communication interface and a conversion module connected between the first communication interface and the second communication interface, wherein the first communication interface is used for being in communication connection with an electricity meter of electronic equipment; the second communication interface is in communication connection with the upper computer, and the conversion module is used for converting the test signal of the first protocol received and transmitted by the first communication interface into the test signal of the second protocol received and transmitted by the second communication interface;
when the electronic equipment is in a shutdown state, the upper computer can acquire a test signal measured by the fuel gauge through the adapter plate, and determine whether leakage current abnormality exists in the electronic equipment or not based on the test signal.
2. The test device of claim 1, wherein the host computer is further configured to power a switch module of the electronic device such that the switch module is closed and the first communication interface of the patch panel is capable of establishing a communication connection with the fuel gauge through the switch module.
3. The test device of claim 2, wherein the adapter plate further comprises a first power supply interface, a second power supply interface, and a voltage dividing module connected between the first power supply interface and the second power supply interface; the first power supply interface is connected with the upper computer, the second power supply interface is connected with the electronic equipment, and the voltage dividing module is used for converting the voltage of the power supplied by the upper computer into the voltage required by the switch module.
4. The test device according to any one of claims 1 to 3, wherein the host computer is further configured to select N test current values corresponding to N consecutive test sampling points from the test signals measured by the fuel gauge; inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points; when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment; wherein one of the test sampling points corresponds to one of the test current values and one of the calculated current values; n and K are positive integers, and N is greater than or equal to K.
5. A test apparatus according to any one of claims 1 to 3, wherein the host computer is further configured to obtain a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic device; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
6. An electronic device, the electronic device comprising:
an electricity meter;
the third communication interface is connected with the fuel gauge, and communication connection is established between the third communication interface and an upper computer in the testing device through the first communication interface and the second communication interface of the adapter plate in the testing device;
when the electronic equipment is in a shutdown state, a test signal measured by the fuel gauge is sent to the upper computer through the third communication interface, the first communication interface and the second communication interface, so that the upper computer can determine whether leakage current abnormality exists in the electronic equipment based on the test signal.
7. The electronic device of claim 6, wherein the electronic device further comprises:
The switch module is provided with a first connecting end and a second connecting end, the first connecting end is connected with the third communication interface, and the second connecting end is connected with the fuel gauge;
when the electronic equipment is in a shutdown state, the switch module is in a conduction state, so that the fuel gauge and the third communication interface are in communication connection.
8. The electronic device of claim 7, wherein the switch module further has a power terminal;
the electronic device further includes:
the power supply interface is connected with the second power supply interface of the adapter plate and the power supply end and is used for receiving a power supply signal transmitted by the second power supply interface so that the power supply signal can supply power to the switch module;
wherein the switch module is closed upon receipt of the power signal to establish a communication connection between the fuel gauge and the third communication interface.
9. The electronic device of claim 8, wherein the electronic device further comprises:
the impedance module is connected with the switch module and the power interface and used for changing the impedance of a power supply connecting line between the power interface and the switch module; and/or the number of the groups of groups,
And the voltage stabilizing module is connected with the switch module and the power interface and is used for providing stable power supply signals for the switch module.
10. A test method for use with a test apparatus, the method comprising:
when the electronic equipment is in a shutdown state, acquiring a test signal measured by an electricity meter of the electronic equipment;
and determining whether leakage current abnormality exists in the electronic equipment based on the test signal.
11. The method of claim 10, wherein the determining whether the electronic device has a leakage current anomaly based on the test signal comprises:
selecting N test current values corresponding to continuous N test sampling points from the test signals measured by the fuel gauge;
inputting the N test current values into a current calculation model to obtain N calculation current values corresponding to the N test sampling points;
when K calculated current values corresponding to K continuous test sampling points in the N calculated current values are all in a current threshold range, determining that leakage current abnormality does not exist in the electronic equipment;
wherein one of the test sampling points corresponds to one of the test current values and one of the calculated current values; n and K are positive integers, and N is greater than or equal to K.
12. The method of claim 11, wherein the method further comprises:
acquiring a plurality of sample test current values measured by the fuel gauge and a plurality of sample calculation current values of the electronic equipment; and performing linear fitting on the plurality of sample test current values and the plurality of sample calculation current values to obtain the current calculation model.
CN202210658342.7A 2022-06-10 2022-06-10 Leakage current testing device, testing method and electronic equipment Pending CN117250388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210658342.7A CN117250388A (en) 2022-06-10 2022-06-10 Leakage current testing device, testing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210658342.7A CN117250388A (en) 2022-06-10 2022-06-10 Leakage current testing device, testing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117250388A true CN117250388A (en) 2023-12-19

Family

ID=89127000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210658342.7A Pending CN117250388A (en) 2022-06-10 2022-06-10 Leakage current testing device, testing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN117250388A (en)

Similar Documents

Publication Publication Date Title
CN107843802B (en) Internal short circuit detection method and device
CN109150242B (en) Method and device for testing line loss
CN106253996B (en) Sensitivity attenuation test method and device
US11205906B2 (en) Charging processing method, terminal device and storage medium
CN112448423B (en) Charging method and device, electronic equipment and storage medium
CN109212450A (en) The detection method and device of power loss in test macro
CN107681727B (en) Control method and device of electronic equipment
CN113725954B (en) Charging method, device, equipment and storage medium
CN105446854A (en) Power consumption detection method, system, and terminal
CN112798988A (en) Detection circuit, detection method and device, and electronic device
CN117250388A (en) Leakage current testing device, testing method and electronic equipment
CN107733021B (en) Control method and device of electronic equipment
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN106446827B (en) Iris recognition function detection method and device
CN112710893B (en) Electronic device and bottom current testing device
CN112214433B (en) Terminal device, control method thereof, auxiliary device, and storage medium
CN114069801A (en) Quick charging connection circuit, quick charging connection device and charging control method
CN117460961A (en) Battery temperature detection circuit and method, battery protection board, battery and mobile terminal
CN115687205A (en) Debugging module, terminal equipment, debugging method and device
CN112986879B (en) Fuel gauge correction method and device, electronic equipment and storage medium
CN107463471B (en) Method and device for diagnosing terminal screen
CN113922459A (en) Charging protection method and device, electronic equipment and storage medium
EP3828716A1 (en) Method and apparatus for identifying electronic device, terminal device, and electronic device
CN113626322A (en) Interface test method, device, equipment and medium based on binary data communication
CN112019681B (en) Control method of mobile terminal, mobile terminal and storage medium

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