CN116345596A - Charging fault detection method, device, equipment and storage medium - Google Patents

Charging fault detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN116345596A
CN116345596A CN202111602153.XA CN202111602153A CN116345596A CN 116345596 A CN116345596 A CN 116345596A CN 202111602153 A CN202111602153 A CN 202111602153A CN 116345596 A CN116345596 A CN 116345596A
Authority
CN
China
Prior art keywords
charging
equipment
protocol
detecting
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111602153.XA
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 CN202111602153.XA priority Critical patent/CN116345596A/en
Publication of CN116345596A publication Critical patent/CN116345596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/133Arrangements for measuring electric power or power factor by using digital technique
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • 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
    • 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/54Testing for continuity
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0036Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits

Abstract

The disclosure relates to a method, a device, equipment and a storage medium for detecting a charging fault, wherein the method is applied to first equipment, and the method comprises the following steps: in response to detecting that the first device and the second device to be detected for faults are in a charging connection state, acquiring request information for detecting the charging faults of the second device; determining a target detection item of the second device based on the request information; detecting a target detection item of the second equipment to obtain a fault detection result; and outputting the fault detection result. The method and the device can be used for efficiently and conveniently detecting the target detection item of the second equipment, and can be used for avoiding the disassembly detection of the second equipment, so that the loss of a bad site caused by the disassembly is avoided, and the subsequent rapid and accurate analysis of the reason of the charging fault of the second equipment is facilitated.

Description

Charging fault detection method, device, equipment and storage medium
Technical Field
The disclosure relates to the technical field of terminal charging, and in particular relates to a method, a device, equipment and a storage medium for detecting a charging fault.
Background
Nowadays, with the increasing use range of terminal devices such as smart phones in daily life of people, the requirements of the terminal devices on charging functions are higher and higher, and charging power is gradually increased from 5W to 30W, 65W and 120W before years, so that charging speed is higher and higher. However, the charging power is increased, and the charging circuit is more complex, which may lead to more various reasons for the subsequent occurrence of the charging failure. Therefore, how to quickly and accurately discover the charging failure information of the terminal device has become one of the technical problems to be solved in the present day.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for detecting a charging failure, which are used to solve the drawbacks in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a charging failure detection method, applied to a first device, the method including:
in response to detecting that the first device and the second device to be detected for faults are in a charging connection state, acquiring request information for detecting the charging faults of the second device;
determining a target detection item of the second device based on the request information;
detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
In an embodiment, the target detection item includes at least one of:
voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power.
In one embodiment, the target detection item includes: VBUS;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the VBUS voltage of the second equipment based on a preset analog-to-digital conversion ADC module to obtain a VBUS voltage value;
And if the VBUS voltage value is equal to a preset short-circuit voltage threshold value, determining that the fault detection result is that the VBUS of the second device is short-circuited.
In one embodiment, the target detection item includes: presetting a data interface;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the ground impedance of a first signal line in a preset data interface of the second equipment to obtain an impedance value;
if the impedance value is out of the preset impedance threshold range, determining that the fault detection result is that connectivity between the preset data interface of the second device and the main board is abnormal.
In one embodiment, the target detection item includes: a power supply voltage;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the power supply voltage of the second device based on a second signal wire of a preset data interface of the first device to obtain a power supply voltage value, wherein the second signal wire supports a single-wire protocol;
and if the power supply voltage value is smaller than or equal to a preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment does not support quick charging.
In an embodiment, the method further comprises:
and if the power supply voltage value is larger than the preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment supports quick charging.
In an embodiment, a detection resistor is disposed in VBUS of the first device, and the target detection term further includes: a charging current;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the charging current of the second equipment based on the detection resistor to obtain a charging current value;
and if the charging current value is within a preset current threshold range, determining that the fault detection result is that the charging current of the second equipment is normal.
In one embodiment, the target detection item includes: charging power;
the detecting the target detection item of the second device to obtain a fault detection result further includes:
determining an actual charging power of the second device based on a product of a currently detected charging current of the second device and a VBUS voltage value;
obtaining the maximum power required to be output by the first device from the second device, and determining a first difference value between the maximum power and the actual charging power;
And if the first difference value is larger than or equal to a preset power difference value threshold value, determining that the fault detection result is that the charging power of the second equipment is abnormal.
In one embodiment, the target detection item includes: a charging protocol;
the detecting the target detection item of the second device to obtain a fault detection result includes:
based on a first protocol chip preset in the first equipment and a second protocol chip of the second equipment, identifying two-party charging protocols to obtain a current charging protocol of the second equipment and a compatible charging protocol of the first equipment and the second equipment;
and in response to detecting that the current charging protocol is different from the compatible charging protocol, determining that the fault detection result is that the current charging protocol of the second device is abnormal.
In an embodiment, the method further comprises:
based on the identification of the first protocol chip and the second protocol chip, obtaining the maximum charging current under the compatible charging protocol;
in response to detecting that the current charging protocol is the same as the compatible charging protocol, determining a second difference value of the maximum charging current value and the currently acquired charging current value of the second device;
And in response to determining that the second difference value is smaller than or equal to a set normal charging current difference value threshold, determining that the fault detection result is that the current charging protocol and the charging current are normal.
According to a second aspect of embodiments of the present disclosure, there is provided a charging failure detection apparatus, applied to a first device, the apparatus including:
the first acquisition module is used for responding to the fact that the first equipment and the second equipment to be detected are in a charging connection state, and acquiring request information for detecting the charging failure of the second equipment;
a determining module, configured to determine a target detection item of the second device based on the request information;
the second acquisition module is used for detecting the target detection item of the second equipment to obtain a fault detection result;
and the result output module is used for outputting the fault detection result.
In an embodiment, the target detection item includes at least one of:
voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power.
In one embodiment, the target detection item includes: VBUS;
the second acquisition module comprises a VBUS detection unit;
The VBUS detection unit is used for:
detecting the VBUS voltage of the second equipment based on a preset analog-to-digital conversion ADC module to obtain a VBUS voltage value;
and when the VBUS voltage value is equal to a preset short-circuit voltage threshold value, determining that the fault detection result is that the VBUS of the second device is short-circuited.
In one embodiment, the target detection item includes: presetting a data interface;
the second acquisition module comprises a data interface detection unit;
the data interface detection unit is used for:
detecting the ground impedance of a first signal line in a preset data interface of the second equipment to obtain an impedance value;
and when the impedance value is out of a preset impedance threshold range, determining that the fault detection result is that connectivity between a preset data interface of the second device and a main board is abnormal.
In one embodiment, the target detection item includes: a power supply voltage;
the second acquisition module comprises a power supply voltage detection unit;
the power supply voltage detection unit is used for:
detecting the power supply voltage of the second device based on a second signal wire of a preset data interface of the first device to obtain a power supply voltage value, wherein the second signal wire supports a single-wire protocol;
And when the power supply voltage value is smaller than or equal to a preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment does not support quick charging.
In an embodiment, the power supply voltage detection unit is further configured to:
and when the power supply voltage value is larger than the preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment supports quick charging.
In an embodiment, a detection resistor is disposed in VBUS of the first device, and the target detection term further includes: a charging current;
the second acquisition module comprises a charging current detection unit:
the charging current detection unit is used for:
detecting the charging current of the second equipment based on the detection resistor to obtain a charging current value;
and when the charging current value is within a preset current threshold range, determining that the fault detection result is that the charging current of the second device is normal.
In one embodiment, the target detection item includes: charging power;
the second acquisition module further comprises a charging power detection unit:
the charging power detection unit is used for:
determining an actual charging power of the second device based on a product of a currently detected charging current of the second device and a VBUS voltage value;
Obtaining the maximum power required to be output by the first device from the second device, and determining a first difference value between the maximum power and the actual charging power;
and when the first difference value is larger than or equal to a preset power difference value threshold value, determining that the fault detection result is that the charging power of the second equipment is abnormal.
In one embodiment, the target detection item includes: a charging protocol;
the second acquisition module comprises a charging protocol detection unit:
the charging protocol detection unit is used for: based on a first protocol chip preset in the first equipment and a second protocol chip of the second equipment, identifying two-party charging protocols to obtain a current charging protocol of the second equipment and a compatible charging protocol of the first equipment and the second equipment;
and in response to detecting that the current charging protocol is different from the compatible charging protocol, determining that the fault detection result is that the current charging protocol of the second device is abnormal.
In an embodiment, the charging protocol detection unit is further configured to:
based on the identification of the first protocol chip and the second protocol chip, obtaining the maximum charging current under the compatible charging protocol;
In response to detecting that the current charging protocol is the same as the compatible charging protocol, determining a second difference value of the maximum charging current value and the currently acquired charging current value of the second device;
and in response to determining that the second difference value is smaller than or equal to a set normal charging current difference value threshold, determining that the fault detection result is that the current charging protocol and the charging current are normal.
According to a third aspect of embodiments of the present disclosure, there is provided a charging apparatus, the apparatus comprising:
a processor and a memory for storing a computer program;
wherein the processor is configured to implement, when executing the computer program:
in response to detecting that the charging equipment and the second equipment to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second equipment;
determining a target detection item of the second device based on the request information;
detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a charging device, implements:
In response to detecting that the charging equipment and the second equipment to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second equipment;
determining a target detection item of the second device based on the request information;
detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the method and the device, the first equipment and the second equipment to be detected are in a charging connection state, the request information for detecting the charging faults of the second equipment is acquired, the target detection item of the second equipment is determined based on the request information, then the target detection item of the second equipment is detected, the fault detection result is obtained, the fault detection result is further output, the target detection item of the second equipment can be detected efficiently and conveniently, the second equipment can be prevented from being detected by disassembling, loss of bad sites caused by disassembling is avoided, and the method and the device are beneficial to analyzing the reason of the charging faults of the second equipment more rapidly and accurately.
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 flow chart illustrating a method of detecting a charge failure according to an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a first exemplary embodiment of the present disclosure;
FIG. 3 is a flowchart showing how to detect a target detection item of a second device based on a detection component corresponding to the target detection item, according to a second exemplary embodiment of the present disclosure;
fig. 4 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a third exemplary embodiment of the present disclosure;
fig. 5 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a fourth exemplary embodiment of the present disclosure;
Fig. 6 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a fifth exemplary embodiment of the present disclosure;
fig. 7 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a sixth exemplary embodiment of the present disclosure;
FIG. 8 is a block diagram of a charge failure detection apparatus according to an exemplary embodiment of the present disclosure;
fig. 9 is a block diagram illustrating yet another charge failure detection apparatus according to an exemplary embodiment of the present disclosure;
fig. 10 is a block diagram of a charging device according to an exemplary embodiment of the present disclosure.
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 embodiments described in the following exemplary embodiments do not represent all embodiments 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.
FIG. 1 is a flow chart illustrating a method of charge failure detection according to an exemplary embodiment; the method of the embodiment can be applied to first equipment, and the first equipment can be terminal equipment such as a smart phone, a tablet personal computer and the like, equipment with a charging function such as a charger and the like, or charging fault detection equipment and the like.
As shown in fig. 1, the method includes the following steps S101-S104:
in step S101, in response to detecting that the first device and the second device to be detected for faults are in a charging connection state, request information for detecting the charging faults of the second device is acquired.
In this embodiment, the first device may be a charging device or a charged device, and the first device may perform fault detection on the second device that is in a charging connection state with the first device. When the first device and the second device to be detected for fault detection are detected to be in a charging connection state, the first device can acquire request information for detecting the charging fault of the second device, and the request information can carry identification information and the like of the second device.
It will be appreciated that the number of second devices may be at least one, i.e. the first device may establish a charging connection with at least one second device and perform fault detection on the at least one second device.
For example, when the first device and the second device to be detected for the fault are in a charging connection state, the user may trigger request information for detecting the charging fault on the first device, and then the first device may obtain the request information.
In step S102, a target detection item of the second device is determined based on the request information.
In this embodiment, after the first device obtains the request information for detecting the charging failure of the second device, the target detection item of the second device may be determined based on the request information. Wherein the target detection item may include at least one of: voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power. For example, the target detection item may be determined based on a default option or based on a selection operation by the user. Specifically, the determining procedure of the target detection item of the second device may include at least the following case one and case two:
determining a target detection item of the second device based on a selection operation of a user;
1) A general procedure for determining a target detection item of a second device based on a selection operation of a user:
In response to detecting that the first device and the second device to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second device, wherein the request information carries identification information of the second device; displaying a detection item of the second device based on the identification information of the second device; in response to a selection operation by the user, a target detection item of the second device is determined.
2) Another general procedure of determining the target detection item of the second device based on the selection operation of the user:
in response to detecting that the first device and the second device to be detected for faults are in a charging connection state, displaying detection items of the second device; and generating request information in response to the selection operation of the user, wherein the request information carries the target detection item.
For example, when the first device and the second device to be detected are in a charging connection state, the first device may display at least one preset detection item for selection, and then the user may select one or more items from the at least one preset detection item as target detection items to be detected based on actual needs, so as to realize subsequent detection of the target detection items of the second device.
Secondly, determining a target detection item based on a preset default option;
1) A general process of determining a target detection item for a second device:
and responding to the detection that the first equipment and the second equipment to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second equipment, wherein the request information carries a target detection item.
2) Another general procedure for determining a target detection item for a second device:
the user only selects the second equipment needing fault detection, the first equipment determines target detection items according to default detection items, and each item in the target detection items is sequentially detected.
For example: a target detection item associated with the second device is determined based on a preset relationship table of devices and detection items.
For example, when the first device and the second device to be detected for faults are in a charging connection state, the first device may determine at least one preset detection item as a target detection item directly based on request information triggered by a user for detecting the faults of the second device, and sequentially detect the target detection item to output a fault detection result.
In step S103, the target detection item of the second device is detected, so as to obtain a fault detection result. In this embodiment, after the first device determines the target detection item of the second device based on the request information, the first device may detect the target detection item of the second device, to obtain a fault detection result.
If the target detection item is one item, fault detection can be performed according to a detection flow corresponding to the target detection item;
if the target detection item is a plurality of items, the detection process may include the following case one and case two:
case one: and detecting each item in turn according to the sequence selected by the user.
For example, when the detection sequence selected by the user is the voltage bus VBUS, the preset data interface, the power supply voltage, the charging protocol, the charging current and the charging power, the first device may detect the voltage bus VBUS in sequence according to the detection sequence, and finally detect the charging power.
It will be appreciated that in practical applications, different detection orders or the same detection order of the target detection items may be set for different second devices, which is not limited in this embodiment.
And a second case: each item is detected in turn in a default order.
It will be appreciated that in practical applications, different detection orders or the same detection order of the target detection items may be set for different second devices, which is not limited in this embodiment.
For example, when the default sequence is the voltage bus VBUS, the preset data interface, the power supply voltage, the charging protocol, the charging current and the charging power, the first device may detect the voltage bus VBUS first and detect the charging power finally according to the detection sequence.
Optionally, after the first device determines the target detection item of the second device, a detection component corresponding to the target detection item may also be determined, so that the target detection item of the second device is detected based on the detection component, so as to obtain a fault detection result.
Wherein, the detection component corresponding to the target detection item can be determined based on the actual type of the target detection item. For example, if the target detection item is the voltage bus VBUS of the second device, the corresponding detection component may be an analog-to-digital conversion ADC module in the first device; if the target detection item is a preset data interface (such as TYPE-C) of the second device, the corresponding detection component may be a preset signal line in the first device.
In another embodiment, the above manner of detecting the target detection item of the second device to obtain the fault detection result may refer to the embodiments shown in fig. 2 to 7, which are not described in detail herein.
In step S103, the failure detection result is output.
In this embodiment, after the first device detects the target detection item of the second device to obtain the fault detection result, the fault detection result may be output in a text and/or voice broadcast manner. When the fault detection result is output, the fault detection result corresponding to each detection item can be output after the detection of each detection item is finished, or the fault detection result can be integrally output after the detection of all target detection items is finished.
For example, after the first device obtains the fault detection result of the second device, the fault detection result and/or a prompt message related to the fault detection result may be displayed on a screen associated with the first device, so that a user may know the fault detection result of the second device in time, which is beneficial to more quickly and accurately analyzing the cause of the charging fault.
The screen associated with the first device may include a screen of the first device itself or a screen of another device that may exchange data with the first device.
It should be noted that, the content of the prompt information may be set based on actual needs, for example, the prompt information may include at least one of the following:
(1) Prompting information of normal or abnormal fault detection results;
(2) And detection suggestion information matched with the current fault detection result.
As can be seen from the foregoing description, in the method of this embodiment, by responding to detection that the detection item display condition is satisfied, displaying at least one preset detection item, and responding to detection that an operation of selecting a target detection item to be detected from the at least one preset detection item is detected, detecting the target detection item of the second device based on a detection component corresponding to the target detection item, so as to obtain a fault detection result, where the second device is in a charging connection state with the first device, and further outputs the fault detection result, it is possible to implement efficient and convenient detection of the target detection item of the second device, and avoid machine disassembly detection of the second device, thereby avoiding loss of a bad site caused by machine disassembly, and being beneficial to more rapid and accurate analysis of the cause of the charging fault of the second device.
Fig. 2 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a first exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. The object detection item may include VBUS, among others. On this basis, as shown in fig. 2, the detection of the target detection item of the second device in the step S103 to obtain a fault detection result may include the following steps S201 to S204:
in step S201, the VBUS voltage of the second device is detected based on a preset analog-to-digital conversion ADC module, so as to obtain a VBUS voltage value.
In this embodiment, after the first device determines that the target detection item of the second device is VBUS based on the request information, it may be determined that a detection component corresponding to the target detection item is an analog-to-digital conversion ADC module, and further, the VBUS voltage of the second device may be detected based on the ADC module, so as to obtain a VBUS voltage value of the second device.
In step S202, it is determined whether the VBUS voltage value is equal to a preset short circuit voltage threshold: if yes, go to step S203; if not, step S204 is performed.
In this embodiment, when the first device detects the VBUS voltage of the second device based on the preset analog-to-digital conversion ADC module to obtain a VBUS voltage value, the VBUS voltage value may be compared with a preset short circuit voltage threshold to obtain a comparison result, and if the comparison result is that the VBUS voltage value is equal to the short circuit voltage threshold, step S203 is executed; or if the VBUS voltage value is not equal to the short-circuit voltage threshold, step S204 is performed.
The above-mentioned short-circuit voltage threshold may be set based on actual needs, for example, set to 0V.
In step S203, it is determined that the fault detection result is that VBUS is shorted.
In step S204, it is determined that the fault detection result is VBUS that no short circuit occurs.
For example, after the first device compares the VBUS voltage value with a preset short-circuit voltage threshold, if it is determined that the VBUS voltage value is equal to 0V, it may be determined that the fault detection result is VBUS short-circuit. On this basis, the prompting information for prompting the VBUS to generate a short circuit may be selectively output, which is not limited in this embodiment.
In contrast, if it is determined that the VBUS voltage value is not equal to 0V, it may be determined that the fault detection result is VBUS is not shorted. On this basis, the prompting information for prompting that the VBUS does not have a short circuit may also be selectively output, for example, the VBUS does not see an anomaly, which is not limited in this embodiment. As can be seen from the foregoing description, in this embodiment, by detecting the VBUS voltage of the second device based on the preset analog-to-digital conversion ADC module, a VBUS voltage value is obtained, and whether the VBUS voltage value is equal to a preset short circuit voltage threshold is determined, further when the VBUS voltage value is equal to the short circuit voltage threshold, it is determined that the fault detection result is that the VBUS is short-circuited, and when the VBUS voltage value is not equal to the short circuit voltage threshold, it is determined that the fault detection result is that the VBUS is not short-circuited, so that whether the VBUS of the second device is short-circuited can be conveniently and efficiently detected, and an accurate basis can be provided for subsequently analyzing the cause of the charging fault of the second device.
FIG. 3 is a flowchart showing how to detect a target detection item of a second device based on a detection component corresponding to the target detection item, according to a second exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. Wherein the target detection item may comprise a preset data interface. On this basis, as shown in fig. 3, the detection of the target detection item of the second device in the step S103 to obtain a fault detection result may include the following steps S301 to S304:
in step S301, the impedance to ground of the first signal line in the preset data interface of the second device is detected, so as to obtain an impedance value.
In this embodiment, after the first device determines, based on the request information, that the target detection item of the second device is a preset data interface, it may be determined that the detection component corresponding to the target detection item is a first signal line preset in the first device, and then, based on the first signal line, the impedance to ground of the first signal line in the preset data interface of the second device may be detected, so as to obtain the impedance value. It should be noted that the same type of first signal line is also disposed in the preset data interface of the second device.
Taking the TYPE-C interface as an example, the first signal line in the first device may be a CC line set in the first device in advance, and meanwhile, a CC line is also set in the preset data interface of the second device. The first device may be a fast charging device in the related art, and the charging device may support a PD protocol, and has a CC signal line therein, that is, the first device may measure the impedance to ground of the CC at the TYPE-C interface, so as to obtain an impedance value.
In step S302, it is determined whether the impedance value is outside the set normal impedance threshold range: if yes, go to step S303; if not, step S304 is performed.
In this embodiment, when the first device detects the impedance to ground of the first signal line at the TYPE-C interface of the second device based on the preset first signal line, after obtaining the impedance value, the impedance value may be compared with the set normal impedance threshold range to obtain a comparison result, and if the impedance value is outside the normal impedance threshold range, step S303 is executed; alternatively, if the impedance value is within the normal impedance threshold range, step S304 is performed.
The normal impedance threshold range may be set based on actual needs, for example, 1mΩ to 50mΩ, which is not limited in this embodiment.
In step S303, it is determined that the failure detection result is that connectivity between the preset data interface of the second device and the motherboard is abnormal.
In step S304, it is determined that the connectivity between the preset data interface of the second device and the motherboard is normal.
For example, after the first device compares the impedance value with the set normal impedance threshold range, if it is determined that the impedance value is outside the normal impedance threshold range, it may be determined that the connectivity between the preset data interface of the second device and the motherboard is abnormal as a result of the fault detection. On the basis, the method can also selectively output prompt information for prompting to check the connectivity between the preset data interface and the main board, such as 'TYPE-C interface is abnormal, please check the connectivity between TYPE-C interface and the main board', and the embodiment is not limited to this.
Conversely, if the impedance value is determined to be within the normal impedance threshold range, for example, the impedance value is detected to be 25mΩ, it may be determined that the connectivity of the preset data interface of the second device and the motherboard is normal as a result of the fault detection. On the basis, a prompt message for prompting that the connectivity between the preset data interface and the main board is normal, such as "no abnormality occurs in the TPYE-C interface", can also be selectively output, and the embodiment is not limited to this. As can be seen from the foregoing description, in this embodiment, by detecting the impedance to ground of the first signal line in the preset data interface of the second device, an impedance value is obtained, and when it is determined that the impedance value is outside the normal impedance threshold range, it is determined that the connectivity between the preset data interface and the motherboard is abnormal, and when it is determined that the impedance value is within the normal impedance threshold range, it is determined that the fault detection result is normal for the preset data interface, so that it is possible to conveniently and efficiently detect whether the preset data interface of the second device is normal, and further, it is possible to improve the accurate basis for subsequently analyzing the cause of the charging fault of the second device.
Fig. 4 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a third exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. Wherein the target detection term may comprise a supply voltage. On this basis, as shown in fig. 4, the detection of the target detection item of the second device in the step S103 to obtain a fault detection result may include the following steps S401 to S404:
in step S401, a power supply voltage of the second device is detected based on a second signal line of the preset data interface of the first device, so as to obtain a power supply voltage value, where the second signal line supports a single-wire protocol.
In step S402, it is determined that the power supply voltage value is less than or equal to a preset voltage threshold: if yes, go to step S403; if not, step S404 is performed.
In step S403, it is determined that the failure detection result is that the power supply voltage does not support quick charge.
In step S404, it is determined that the failure detection result is that the power supply voltage supports quick charge.
In this embodiment, after the first device determines, based on the request information, that the target detection item of the second device is the power supply voltage, it may be determined that the detection component corresponding to the target detection item is a second signal line preset in the preset data interface of the first device, and further, the power supply voltage of the second device may be detected based on the second signal line, so as to obtain the power supply voltage value.
It should be noted that the second signal line may be a signal line MI (Mobile Information) provided in the first device in advance. Wherein the signal line MI is a single-wire protocol that is programmable to transmit power supply voltage information of the second device. It can be understood that, when the second device establishes a charging connection with the first device, that is, when there is a voltage on VBUS of the second device, the internal chip of the second device may transmit the current power supply voltage to the internal chip of the first device through the signal line MI, so as to perform a subsequent detection step.
Specifically, when the power supply voltage of the second device is detected based on a second signal line preset in a preset data interface of the first device, after a power supply voltage value is obtained, the power supply voltage value can be compared with a set fast charging power supply voltage threshold value, so as to obtain a comparison result, for example: whether the power supply voltage value is less than or equal to the fast charge power supply voltage threshold; alternatively, the power supply voltage value is greater than the fast charge power supply voltage threshold.
The fast charging power supply voltage threshold may be set based on actual needs, for example, set to 3.4V.
On this basis, when it is determined that the power supply voltage value is less than or equal to the rapid charging power supply voltage threshold value, it may be determined that the power supply voltage does not support rapid charging as a result of the fault detection. On this basis, a prompt message for prompting to wait for the increase of the power supply voltage, for example, a prompt message indicating that the power supply voltage is too low and quick charge is not supported, or a prompt message indicating to wait for the increase of the power supply voltage can be selectively output, which is not limited in this embodiment.
Conversely, if it is determined that the power supply voltage value is greater than the quick charge power supply voltage threshold, it may be determined that the failure detection result is that the power supply voltage supports quick charge. On this basis, a prompt message for prompting the power supply voltage to support the quick charging may be selectively output, for example, the power supply voltage supports the quick charging, please continue to check whether the charging current is normal, which is not limited in this embodiment. As can be seen from the foregoing description, in this embodiment, by detecting the power supply voltage of the second device based on the preset second signal line to obtain a power supply voltage value, comparing the power supply voltage value with a set fast charging power supply voltage threshold, further determining, in response to determining that the power supply voltage value is less than or equal to the fast charging power supply voltage threshold, that the power supply voltage does not support fast charging, and in response to determining that the power supply voltage value is greater than the fast charging power supply voltage threshold, determining that the power supply voltage supports fast charging, it is possible to implement convenient and efficient detection of whether the power supply voltage of the second device supports fast charging, and further, it is possible to implement a subsequent accurate analysis of the cause of the charging failure of the second device.
Fig. 5 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a fourth exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. The VBUS of the first device is provided with a detection resistor, and the target detection item may include a charging current. On this basis, as shown in fig. 5, the detection of the target detection item of the second device in the step S103 to obtain a fault detection result may include the following steps S501 to S504:
in step S501, a charging current of the second device is detected based on the detection resistor, and a charging current value is obtained.
In this embodiment, after the first device determines, based on the request information, that the target detection item of the second device is the charging current, it may be determined that the detection component corresponding to the target detection item is a detection resistor (e.g., a Sense resistor) preset in the first device, and then the charging current of the second device may be detected based on the detection resistor, so as to obtain the charging current value.
It will be appreciated that by adding the Sense resistor described above to the internal VBUS of the first device, the magnitude of the charging current can be calculated by measuring the voltage across the Sense resistor.
In step S502, it is determined whether the charging current value is within a preset current threshold range: if yes, go to step S503; if not, step S504 is performed.
In this embodiment, when the charging current of the second device is detected based on the preset detection resistor, the charging current value may be obtained, and then the charging current may be compared with the preset current threshold range, and when it is determined whether the charging current value is within the preset current threshold range, step S503 is performed, and when it is determined whether the charging current value is outside the preset current threshold range, step S504 is performed.
In step S503, it is determined that the failure detection result is that the charging current of the second device is normal.
In step S504, it is determined that the failure detection result is that the charging current of the second device is abnormal.
For example, after the first device compares the charging current with the preset current threshold range, if it is determined that the charging current is within the preset current threshold range, it may be determined that the charging current of the second device is normal as a result of the fault detection. On the basis, a prompting message for prompting the normal charging current of the second device can also be selectively output, which is not limited in this embodiment.
In contrast, if it is determined that the charging current is out of the preset current threshold range, it may be determined that the fault detection result is that the charging current of the second device is abnormal. On the basis of this, a prompt message for prompting the abnormality of the charging current of the second device may also be selectively output, which is not limited in this embodiment.
As can be seen from the foregoing description, the present embodiment detects the charging current of the second device based on the detection resistor, so as to obtain a charging current value, and determines that the fault detection result is that the charging current of the second device is normal when the charging current value is within a preset current threshold range, and determines that the fault detection result is that the charging current of the second device is abnormal when the charging current value is outside the preset current threshold range, so that it is possible to conveniently and efficiently detect whether the charging current of the second device is normal, and provide an accurate basis for subsequently analyzing the cause of the charging fault of the second device.
Fig. 6 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a fifth exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. The target detection term may include, among other things, a charging power. On this basis, as shown in fig. 6, the detection of the target detection item of the second device in the step S103 to obtain a fault detection result may include the following steps S601 to S605:
In step S601, an actual charging power of the second device is determined based on a product of the currently detected charging current of the second device and the VBUS voltage value.
For example, when the first device detects the charging current of the second device based on the preset detection resistor, and obtains the charging current value, the actual charging power of the second device, that is, the actual power of the first device for charging the second device, may be determined based on the product of the charging current and the VBUS voltage value of the second device.
The VBUS voltage value of the second device may be detected based on the analog-to-digital conversion ADC module in the embodiment shown in fig. 2, or may be detected based on other manners in the related art, where the obtained results are applicable to the subsequent steps of the embodiment, and the embodiment is not limited to this. The charging current of the second device may be detected based on the detection resistor in the embodiment shown in fig. 5, or may be detected based on other manners in the related art, and the obtained results are applicable to the subsequent steps of the embodiment, which is not limited in the embodiment.
In step S602, the maximum power that the first device needs to output is obtained from the second device, and a first difference between the maximum power and the actual charging power is determined.
In this embodiment, the maximum power required to be output by the first device may be obtained from the second device in advance, where the maximum power may be the maximum power required to be output by the first device obtained by performing calculation fitting on the second device based on information such as the power supply voltage of the second device and the current temperature, and a specific calculation fitting manner may refer to an existing scheme in the related art, which is not limited in this embodiment. On the basis of this, a difference between the maximum power and the actual charging power determined in the above step S502, that is, the above-described first difference, may be calculated.
In step S603, it is determined whether the first difference is greater than or equal to a preset power difference threshold: if yes, go to step S604; if not, step S605 is executed.
In this embodiment, after determining the first difference between the maximum power obtained in advance and the actual charging power, the first difference may be compared with a set power difference threshold to obtain a comparison result, for example: the first difference is greater than or equal to the power difference threshold; alternatively, the first difference is less than the power difference threshold.
The power difference threshold may be set based on actual needs.
In step S604, it is determined that the failure detection result is that the charging power of the second device is abnormal.
In step S605, it is determined that the failure detection result is that the charging power of the second device is normal.
In this embodiment, after the first device compares the first difference value with the set power difference value threshold, it may determine that the fault detection result is that the charging power is abnormal in response to determining that the first difference value is greater than or equal to the power difference value threshold. On the basis, the method can also selectively output prompt information for prompting that the charging power is abnormal and/or output prompt information for prompting that whether the charging chip is normal or not is continuously checked.
In contrast, if it is determined that the first difference is smaller than the power difference threshold, it may be determined that the failure detection result is that the charging power is normal. On this basis, a prompt message for prompting that the charging power is normal, for example, "the charging power is not abnormal" may be selectively output, which is not limited in this embodiment.
As can be seen from the foregoing description, in this embodiment, by determining the actual charging power of the second device based on the product of the charging current of the second device and the VBUS voltage value, then determining the difference between the maximum power required to be output by the first device obtained in advance and the actual charging power, and comparing the difference with a set power difference threshold, when it is determined that the difference is greater than or equal to the power difference threshold, it is determined that the charging power is abnormal, and when it is determined that the difference is less than the power difference threshold, it is determined that the charging power is normal, so that it is possible to conveniently and efficiently detect whether the charging power of the second device is normal, and further, it is possible to accurately analyze the cause of the charging failure of the second device.
Fig. 7 is a flowchart showing how to detect a target detection item of a second device based on a detection means corresponding to the target detection item according to a sixth exemplary embodiment of the present disclosure; the present embodiment exemplifies how to detect the target detection item of the second device based on the detection section corresponding to the target detection item on the basis of the above-described embodiments. The target detection item may include a charging protocol, among other things. On this basis, as shown in fig. 7, the detection of the target detection item of the second device described in the above step S103, to obtain a fault detection result, may include the following steps S701 to S707:
in step S701, the current charging protocol of the second device, the compatible charging protocol of the first device and the second device, and the maximum charging current under the compatible charging protocol are obtained based on the identification of the two charging protocols of the first protocol chip preset in the first device and the second protocol chip of the second device.
In step S702, it is determined whether the current charging protocol is the same as the compatible charging protocol: if not, go to step S703; if yes, go to step S704.
In step S703, it is determined that the failure detection result is that the current charging protocol of the second device is abnormal.
In step S704, a second difference between the maximum charging current value and the currently acquired charging current value of the second device is determined.
In step S705, it is determined whether the second difference is less than or equal to a set normal charging current difference threshold: if yes, go to step S706; if not, step S707 is executed.
In step S706, it is determined that the fault detection result is determined that the current charging protocol and the charging current are both normal.
In step S707, it is determined that the failure detection result is determined that the current charging protocol is normal, but the charging current is abnormal.
In this embodiment, after the first device determines, based on the request information, that the target detection item of the second device is a charging protocol, it may be determined that a detection component corresponding to the target detection item is a preset first protocol chip, and further, identification of a charging protocol of both sides may be performed based on the preset first protocol chip and the second protocol chip of the second device, so as to obtain a current charging protocol of the second device, a compatible charging protocol of the charging device and the second device, and a maximum charging current under the compatible charging protocol.
Further, after the first device obtains the current charging protocol of the second device and the charging protocol compatible with the second device, it may be determined whether the current charging protocol is the same as the compatible charging protocol; if the current charging protocol is not the same, the fault detection result can be determined to be abnormal; and if so, may continue to determine a difference between the maximum charging current value and the currently acquired charging current value of the second device.
The currently obtained charging current value of the second device may be detected based on the detection resistor in the embodiment shown in fig. 5, or may be detected based on other manners in the related art, where the obtained results are applicable to the subsequent steps of the embodiment, and the embodiment is not limited to this.
On the basis, the second difference value can be compared with a set normal charging current difference value threshold value to obtain a comparison result, and if the difference value is smaller than or equal to the normal charging current difference value threshold value; alternatively, the difference is greater than the normal charge current difference threshold.
The normal charging current difference threshold may be set based on actual needs.
Further, when the difference is determined to be less than or equal to the normal charging current difference threshold, it may be determined that the fault detection result is that both the present charging protocol and the charging current are normal. On the basis, the method can also selectively output prompt information for prompting that the current charging protocol and the charging current are normal, such as 'charging protocol is normal, charging current is normal', and the embodiment is not limited to the prompt information.
In contrast, if it is determined that the difference is greater than the normal charging current difference threshold, it may be determined that the failure detection result is that the charging protocol is normal but the charging current is abnormal. On this basis, a prompt message for prompting that the charging protocol is normal but the charging current is abnormal may also be selectively output, for example, if the charging protocol is normal but the charging current is abnormal, please check whether the internal charging chip is abnormal, etc., which is not limited in this embodiment.
As can be seen from the foregoing description, in this embodiment, by identifying, based on a preset first protocol chip and a second protocol chip of the second device, two charging protocols, a current charging protocol of the second device, a charging protocol compatible with the second device, and a maximum charging current under the compatible charging protocol are obtained, and in response to detecting that the current charging protocol is different from the compatible charging protocol, a fault detection result that the current charging protocol is abnormal is determined, and in response to detecting that the current charging protocol is the same as the compatible charging protocol, a difference value between the maximum charging current value and a charging current value of the currently obtained second device is determined, and then when determining that the difference value is less than or equal to the normal charging current difference value threshold, the current charging protocol and the charging current are both normal, and when determining that the difference value is greater than the normal charging current difference value threshold, the current charging protocol is normal but the charging current is abnormal is determined, it is possible to implement convenient and efficient detection of whether the current charging of the second device and the corresponding current charging protocol is improved according to the accurate cause of the subsequent fault.
The charging fault detection method of the present disclosure is described below by taking a first device as a charger and a second device as a smart phone as an example. The charger can sequentially detect the smart phone according to the following sequence of (1) to (5):
(1) A voltage bus VBUS;
when the charger is connected to the mobile phone, namely, after the charger and the mobile phone are in charging connection, the charger can sample and detect the voltage of the VBUS of the mobile phone through a preset ADC module, further, when the VBUS voltage is detected to be 0V, the VBUS inside the mobile phone is confirmed to have a short circuit to ground, and prompt information of 'please check whether a TVS tube of the VBUS is short-circuited' can be output. When the VBUS voltage is detected to be not 0V, the fact that the VBUS in the mobile phone is not in short circuit to the ground can be confirmed, and prompt information of 'the VBUS is not in short circuit' can be output.
(2) TYPE-C interface (preset data interface);
in this embodiment, the charger may be an android fast charger, which may support a PD protocol, and a CC signal line may be preset in the charger, so that the charger may measure the impedance to ground of the CC signal line at the joint of TYPE-C of the mobile phone. Further, when the impedance to ground of the CC signal line is measured to be infinite (for example, the impedance to ground is actually detected to be greater than 50mΩ), it may be confirmed that the TPYE-C interface of the mobile phone and the motherboard are in an open state, and a prompt message "please check connectivity between TYPE-C and the motherboard" may be output; if the impedance to the ground of the CC signal line is measured to be about 25MΩ, it can be confirmed that the TPYE-C interface and the motherboard of the mobile phone are not in an open circuit state, and a prompt message of "no abnormality in the impedance of the TPYE-C" can be output.
(3) Battery voltage (voltage);
in this embodiment, it is considered that some mobile phones are charged slowly or not, which is caused by the fact that the battery voltage (i.e. the above-mentioned power supply voltage) is too low. Therefore, in this embodiment, in order to read the battery voltage of the mobile phone, a MI (Mobile Information) signal line may be added to the TYPE-C interface of the charger, and the MI signal line is a single-wire protocol capable of supporting programming, so that the battery voltage information of the mobile phone may be transmitted. Furthermore, when the mobile phone is connected to the charger, that is, when there is a voltage on the VBUS of the mobile phone, the internal chip of the mobile phone can transmit the battery voltage of the current mobile phone to the internal chip of the charger through the MI signal line. On the basis, when the battery voltage is lower than 3.4V, the battery voltage of the mobile phone can be determined not to support quick charge, and prompt information of 'the battery voltage is too low and not to support quick charge' can be output, and the user can wait for the rising of the battery voltage; when the battery voltage is higher than 3.4V, the battery voltage of the mobile phone can be determined to support the quick charge, and prompt information of 'the battery voltage supports the quick charge' can be output, and whether the charging current is normal or not is checked.
(4) Charging current and charging power;
In this embodiment, a detection resistor (Sense resistor) may be added to VBUS inside the charger in advance, and then the magnitude of the charging current of the mobile phone may be calculated by measuring the voltages at two ends of the Sense resistor. Based on this, the current actual charging power of the mobile phone (i.e., the actual output power of the charger for charging the mobile phone) can be determined based on the product of the charging current and the VBUS voltage of the mobile phone. On the other hand, the charger can receive the 'maximum power required to be output by the current charger' transmitted by the mobile phone through the MI signal line, wherein the maximum power can be the maximum power required to be output by the charging equipment, which is obtained by calculating and fitting the information such as the power supply voltage, the current temperature and the like of the mobile phone terminal. On the basis, the charger can compare the actual charging power with the maximum power, and when detecting that the difference between the actual charging power and the maximum power is large (for example, the difference between the maximum power and the actual charging power is larger than or equal to a preset power difference threshold value), the charger can determine that the charging power of the mobile phone is abnormal, and can output corresponding prompt information, such as "the charging power is abnormal, please check whether the charging chip is normal", and the like; in contrast, the charging power of the mobile phone can be determined to be normal, and corresponding prompt information such as charging current and power are output.
(5) A charging protocol;
in this embodiment, after the mobile phone is connected to the charger, both parties can perform USB protocol identification based on the respective protocol chips, so that the charger can obtain the current charging protocol of the mobile phone, the compatible protocol of the charger and the mobile phone, and the maximum charging current under the compatible protocol. On the basis, if the current charging protocol of the mobile phone is detected to be different from the compatible protocol, the fact that the compatible charging protocol cannot be achieved due to the fault of the mobile phone circuit can be confirmed, and then prompt information of' whether the current protocol is abnormal or not and whether an internal charging chip is abnormal or not can be output. If the current charging protocol of the mobile phone is detected to be the same as the compatible protocol, and the current charging current of the mobile phone (namely, the charging current detected in the (4)) can reach the maximum charging current under the compatible protocol, the charging protocol and the charging current of the mobile phone can be confirmed to be normal, and then prompt information of normal protocol identification and normal charging current can be output.
It should be noted that the above detection sequence may be adjusted according to actual requirements, and is not limited to the detection sequence shown above.
According to the above description, the charging fault information of the mobile phone can be accurately detected through the scheme, and then the fault detection result and related prompt information can be output, so that research personnel or after-sales personnel can be helped to analyze the fault reason more efficiently and conveniently, the process of analyzing the charging fault reason can be faster and more convenient, the fault detection can be realized without disassembling the mobile phone, the loss of bad field phenomenon caused by disassembling the mobile phone can be avoided, and research personnel or after-sales personnel can be further helped to improve the fault analysis efficiency and quality.
Fig. 8 is a block diagram illustrating a charge failure detection apparatus according to an exemplary embodiment; the device of the embodiment can be applied to first equipment, and the first equipment can be terminal equipment such as a smart phone, a tablet personal computer and the like, equipment with a charging function such as a charger and the like, or charging fault detection equipment and the like.
As shown in fig. 8, the apparatus includes: a first acquisition module 110, a determination module 120, a second acquisition module 130, and a result output module 140, wherein:
a first obtaining module 110, configured to obtain, in response to detecting that the first device and a second device to be detected are in a charging connection state, request information for detecting a charging failure of the second device;
a determining module 120, configured to determine, based on the request information, a target detection item of the second device;
a second obtaining module 130, configured to detect a target detection item of the second device, to obtain a fault detection result;
and a result output module 140, configured to output the fault detection result.
As can be seen from the foregoing description, the apparatus in this embodiment obtains, in response to detecting that the first device and the second device to be detected are in a charging connection state, request information for detecting a charging failure of the second device, and determines, based on the request information, a target detection item of the second device, and then detects the target detection item of the second device, thereby obtaining a failure detection result, and further outputting the failure detection result.
Fig. 9 is a block diagram of a charge failure detection apparatus according to still another exemplary embodiment; the device of the embodiment can be applied to first equipment, and the first equipment can be terminal equipment such as a smart phone, a tablet personal computer and the like, equipment with a charging function such as a charger and the like, or charging fault detection equipment and the like.
The functions of the first obtaining module 210, the determining module 220, the second obtaining module 230, and the result output module 240 are the same as those of the first obtaining module 110, the determining module 120, the second obtaining module 130, and the result output module 140 in the embodiment shown in fig. 8, and are not described herein. In an embodiment, the target detection item may include at least one of:
voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power.
In an embodiment, the target detection item may include: VBUS;
as shown in fig. 9, the second acquisition module 230 may include a VBUS detection unit 231;
the VBUS detection unit 231 is configured to:
detecting the VBUS voltage of the second equipment based on a preset analog-to-digital conversion ADC module to obtain a VBUS voltage value;
and when the VBUS voltage value is equal to a preset short-circuit voltage threshold value, determining that the fault detection result is that the VBUS of the second device is short-circuited.
In one embodiment, the target detection item includes: presetting a data interface;
a second acquisition module 230 including a data interface detection unit 232;
the data interface detection unit 232 is configured to:
detecting the ground impedance of a first signal line in a preset data interface of the second equipment to obtain an impedance value;
and when the impedance value is out of a preset impedance threshold range, determining that the fault detection result is that connectivity between a preset data interface of the second device and a main board is abnormal.
In one embodiment, the target detection item includes: a power supply voltage;
a second acquisition module 230 including a power supply voltage detection unit 233;
the power supply voltage detecting unit 233 is configured to:
detecting the power supply voltage of the second device based on a second signal wire of a preset data interface of the first device to obtain a power supply voltage value, wherein the second signal wire supports a single-wire protocol;
and when the power supply voltage value is smaller than or equal to a preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment does not support quick charging.
In an embodiment, the power supply voltage detection unit 233 is further configured to:
And when the power supply voltage value is larger than the preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment supports quick charging.
In an embodiment, a detection resistor is disposed in VBUS of the first device, and the target detection term further includes: a charging current;
the second acquisition module 230 includes a charging current detection unit 234:
the charging current detection unit 234 is configured to:
detecting the charging current of the second equipment based on the detection resistor to obtain a charging current value;
and when the charging current value is within a preset current threshold range, determining that the fault detection result is that the charging current of the second device is normal.
In one embodiment, the target detection item includes: charging power;
the second acquisition module 230 further includes a charging power detection unit 235:
the charging power detection unit 235 is configured to:
determining an actual charging power of the second device based on a product of a currently detected charging current of the second device and a VBUS voltage value;
obtaining the maximum power required to be output by the first device from the second device, and determining a first difference value between the maximum power and the actual charging power;
And when the first difference value is larger than or equal to a preset power difference value threshold value, determining that the fault detection result is that the charging power of the second equipment is abnormal.
In one embodiment, the target detection item includes: a charging protocol;
the second acquisition module 230 includes a charging protocol detection unit 236:
the charging protocol detection unit 236 is configured to: based on a first protocol chip preset in the first equipment and a second protocol chip of the second equipment, identifying two-party charging protocols to obtain a current charging protocol of the second equipment and a compatible charging protocol of the first equipment and the second equipment;
and in response to detecting that the current charging protocol is different from the compatible charging protocol, determining that the fault detection result is that the current charging protocol of the second device is abnormal.
In an embodiment, the charging protocol detection unit 236 is further configured to:
based on the identification of the first protocol chip and the second protocol chip, obtaining the maximum charging current under the compatible charging protocol;
in response to detecting that the current charging protocol is the same as the compatible charging protocol, determining a second difference value of the maximum charging current value and the currently acquired charging current value of the second device;
And in response to determining that the second difference value is smaller than or equal to a set normal charging current difference value threshold, determining that the fault detection result is that the current charging protocol and the charging current are normal.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 10 is a block diagram of a first device, according to an example embodiment. For example, device 900 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 10, device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 902 can include one or more modules that facilitate interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, 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 supply component 906 provides power to the various components of the device 900. Power supply components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900.
The multimedia component 908 comprises a screen between the device 900 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 908 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 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 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the device 900 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 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 914 includes one or more sensors for providing status assessment of various aspects of the device 900. For example, the sensor assembly 914 may detect the on/off state of the device 900, the relative positioning of the components, such as the display and keypad of the device 900, the sensor assembly 914 may also change the position of the first device 900 or one of the components of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration/deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 may also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 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 914 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the device 900 and other devices, either wired or wireless. The device 900 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 916 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 apparatus 900 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 components for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 904 including instructions executable by the processor 920 of the device 900 to perform the above-described method. 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 (22)

1. A method of detecting a charge failure, applied to a first device, the method comprising:
in response to detecting that the first device and the second device to be detected for faults are in a charging connection state, acquiring request information for detecting the charging faults of the second device;
determining a target detection item of the second device based on the request information;
Detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
2. The method of claim 1, wherein the target detection item comprises at least one of:
voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power.
3. The method according to claim 1 or 2, wherein the target detection item comprises: VBUS;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the VBUS voltage of the second equipment based on a preset analog-to-digital conversion ADC module to obtain a VBUS voltage value;
and if the VBUS voltage value is equal to a preset short-circuit voltage threshold value, determining that the fault detection result is that the VBUS of the second device is short-circuited.
4. The method according to claim 1 or 2, wherein the target detection item comprises: presetting a data interface;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the ground impedance of a first signal line in a preset data interface of the second equipment to obtain an impedance value;
If the impedance value is out of the preset impedance threshold range, determining that the fault detection result is that connectivity between the preset data interface of the second device and the main board is abnormal.
5. The method of claim 1, wherein the target detection item comprises: a power supply voltage;
the detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the power supply voltage of the second device based on a second signal wire of a preset data interface of the first device to obtain a power supply voltage value, wherein the second signal wire supports a single-wire protocol;
and if the power supply voltage value is smaller than or equal to a preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment does not support quick charging.
6. The method of claim 5, wherein the method further comprises:
and if the power supply voltage value is larger than the preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment supports quick charging.
7. The method of claim 1 or 6, wherein a detection resistor is provided in the VBUS of the first device, and the target detection term further comprises: a charging current;
The detecting the target detection item of the second device to obtain a fault detection result includes:
detecting the charging current of the second equipment based on the detection resistor to obtain a charging current value;
and if the charging current value is within a preset current threshold range, determining that the fault detection result is that the charging current of the second equipment is normal.
8. The method of claim 1, wherein the target detection item comprises: charging power;
the detecting the target detection item of the second device to obtain a fault detection result further includes:
determining an actual charging power of the second device based on a product of a currently detected charging current of the second device and a VBUS voltage value;
obtaining the maximum power output by the first device from the second device, and determining a first difference value between the maximum power and the actual charging power;
and if the first difference value is larger than or equal to a preset power difference value threshold value, determining that the fault detection result is that the charging power of the second equipment is abnormal.
9. The method of claim 1, wherein the target detection item comprises: a charging protocol;
The detecting the target detection item of the second device to obtain a fault detection result includes:
based on a first protocol chip preset in the first equipment and a second protocol chip of the second equipment, identifying two-party charging protocols to obtain a current charging protocol of the second equipment and a compatible charging protocol of the first equipment and the second equipment;
and if the current charging protocol is different from the compatible charging protocol, determining that the fault detection result is that the current charging protocol of the second device is abnormal.
10. The method according to claim 9, wherein the method further comprises:
based on the identification of the first protocol chip and the second protocol chip, obtaining the maximum charging current under the compatible charging protocol;
in response to detecting that the current charging protocol is the same as the compatible charging protocol, determining a second difference value of the maximum charging current value and the currently acquired charging current value of the second device;
and if the second difference value is smaller than or equal to the set normal charging current difference value threshold value, determining that the fault detection result is that the current charging protocol and the charging current are normal.
11. A charging failure detection apparatus, characterized by being applied to a first device, the apparatus comprising:
the first acquisition module is used for responding to the fact that the first equipment and the second equipment to be detected are in a charging connection state, and acquiring request information for detecting the charging failure of the second equipment;
a determining module, configured to determine a target detection item of the second device based on the request information;
the second acquisition module is used for detecting the target detection item of the second equipment to obtain a fault detection result;
and the result output module is used for outputting the fault detection result.
12. The apparatus of claim 11, wherein the target detection item comprises at least one of:
voltage bus VBUS, preset data interface, supply voltage, charging protocol, charging current and charging power.
13. The apparatus according to claim 11 or 12, wherein the object detection item comprises: VBUS;
the second acquisition module comprises a VBUS detection unit;
the VBUS detection unit is used for:
detecting the VBUS voltage of the second equipment based on a preset analog-to-digital conversion ADC module to obtain a VBUS voltage value;
And when the VBUS voltage value is equal to a preset short-circuit voltage threshold value, determining that the fault detection result is that the VBUS of the second device is short-circuited.
14. The apparatus according to claim 11 or 12, wherein the object detection item comprises: presetting a data interface;
the second acquisition module comprises a data interface detection unit;
the data interface detection unit is used for:
detecting the ground impedance of a first signal line in a preset data interface of the second equipment to obtain an impedance value;
and when the impedance value is out of a preset impedance threshold range, determining that the fault detection result is that connectivity between a preset data interface of the second device and a main board is abnormal.
15. The apparatus of claim 11, wherein the target detection term comprises: a power supply voltage;
the second acquisition module comprises a power supply voltage detection unit;
the power supply voltage detection unit is used for:
detecting the power supply voltage of the second device based on a second signal wire of a preset data interface of the first device to obtain a power supply voltage value, wherein the second signal wire supports a single-wire protocol;
And when the power supply voltage value is smaller than or equal to a preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment does not support quick charging.
16. The apparatus of claim 15, wherein the supply voltage detection unit is further configured to:
and when the power supply voltage value is larger than the preset voltage threshold value, determining that the fault detection result is that the power supply voltage of the second equipment supports quick charging.
17. The apparatus of claim 11 or 16, wherein a detection resistor is provided in the VBUS of the first device, and the target detection term further comprises: a charging current;
the second acquisition module comprises a charging current detection unit:
the charging current detection unit is used for:
detecting the charging current of the second equipment based on the detection resistor to obtain a charging current value;
and when the charging current value is within a preset current threshold range, determining that the fault detection result is that the charging current of the second device is normal.
18. The apparatus of claim 11, wherein the target detection term comprises: charging power;
the second acquisition module further comprises a charging power detection unit:
The charging power detection unit is used for:
determining an actual charging power of the second device based on a product of a currently detected charging current of the second device and a VBUS voltage value;
obtaining the maximum power required to be output by the first device from the second device, and determining a first difference value between the maximum power and the actual charging power;
and when the first difference value is larger than or equal to a preset power difference value threshold value, determining that the fault detection result is that the charging power of the second equipment is abnormal.
19. The apparatus of claim 11, wherein the target detection term comprises: a charging protocol;
the second acquisition module comprises a charging protocol detection unit:
the charging protocol detection unit is used for: based on a first protocol chip preset in the first equipment and a second protocol chip of the second equipment, identifying two-party charging protocols to obtain a current charging protocol of the second equipment and a compatible charging protocol of the first equipment and the second equipment;
and in response to detecting that the current charging protocol is different from the compatible charging protocol, determining that the fault detection result is that the current charging protocol of the second device is abnormal.
20. The apparatus of claim 19, wherein the charging protocol detection unit is further configured to:
based on the identification of the first protocol chip and the second protocol chip, obtaining the maximum charging current under the compatible charging protocol;
in response to detecting that the current charging protocol is the same as the compatible charging protocol, determining a second difference value of the maximum charging current value and the currently acquired charging current value of the second device;
and in response to determining that the second difference value is smaller than or equal to a set normal charging current difference value threshold, determining that the fault detection result is that the current charging protocol and the charging current are normal.
21. A charging apparatus, the apparatus comprising:
a processor and a memory for storing a computer program;
wherein the processor is configured to implement, when executing the computer program:
in response to detecting that the charging equipment and the second equipment to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second equipment;
determining a target detection item of the second device based on the request information;
Detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
22. A computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor of a charging device, implements:
in response to detecting that the charging equipment and the second equipment to be detected are in a charging connection state, acquiring request information for detecting the charging failure of the second equipment;
determining a target detection item of the second device based on the request information;
detecting a target detection item of the second equipment to obtain a fault detection result;
and outputting the fault detection result.
CN202111602153.XA 2021-12-24 2021-12-24 Charging fault detection method, device, equipment and storage medium Pending CN116345596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111602153.XA CN116345596A (en) 2021-12-24 2021-12-24 Charging fault detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111602153.XA CN116345596A (en) 2021-12-24 2021-12-24 Charging fault detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116345596A true CN116345596A (en) 2023-06-27

Family

ID=86875157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111602153.XA Pending CN116345596A (en) 2021-12-24 2021-12-24 Charging fault detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116345596A (en)

Similar Documents

Publication Publication Date Title
US10205332B2 (en) Efficient two way charging method using master and slave devices
CN111200304B (en) Temperature detection circuit, method and device of wireless charging coil and storage medium
CN104834559A (en) Notification message display method and device
CN106253996B (en) Sensitivity attenuation test method and device
US11205906B2 (en) Charging processing method, terminal device and storage medium
US10852798B2 (en) Power supply control method and apparatus for power strip, and storage medium
CN112448423B (en) Charging method and device, electronic equipment and storage medium
CN105446854A (en) Power consumption detection method, system, and terminal
CN107681727B (en) Control method and device of electronic equipment
CN106877451B (en) Charging port short-circuit protection method and device
CN107733021B (en) Control method and device of electronic equipment
CN106446827B (en) Iris recognition function detection method and device
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
US10187498B2 (en) Method and apparatus for setting waiting time duration
CN105142190A (en) Network cell reselection method and device
CN116345596A (en) Charging fault detection method, device, equipment and storage medium
CN112710893B (en) Electronic device and bottom current testing device
CN116859248A (en) Battery cycle life prediction method, device and storage medium
CN112444599B (en) Battery damage detection method and device
CN112214433B (en) Terminal device, control method thereof, auxiliary device, and storage medium
CN113346564A (en) Power management chip control method and device and terminal equipment
CN113810240A (en) Communication protocol analysis method, device and computer readable storage medium
US11846676B2 (en) Method and apparatus for predicting remaining charging time and storage medium
CN111668889B (en) Charging efficiency determining method and device for charging chip and storage medium
EP3828716A1 (en) Method and apparatus for identifying electronic device, terminal device, and electronic 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