CN115902490B - Detection method and device of charging equipment, electronic equipment and storage medium - Google Patents

Detection method and device of charging equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN115902490B
CN115902490B CN202211592914.2A CN202211592914A CN115902490B CN 115902490 B CN115902490 B CN 115902490B CN 202211592914 A CN202211592914 A CN 202211592914A CN 115902490 B CN115902490 B CN 115902490B
Authority
CN
China
Prior art keywords
period
sub
target
pumping
periods
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211592914.2A
Other languages
Chinese (zh)
Other versions
CN115902490A (en
Inventor
聂振超
梁源超
熊富贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Zhirong Technology Co ltd
Original Assignee
Zhuhai Zhirong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Zhirong Technology Co ltd filed Critical Zhuhai Zhirong Technology Co ltd
Priority to CN202211592914.2A priority Critical patent/CN115902490B/en
Publication of CN115902490A publication Critical patent/CN115902490A/en
Application granted granted Critical
Publication of CN115902490B publication Critical patent/CN115902490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Abstract

The application discloses a detection method and device of charging equipment, electronic equipment and a storage medium, and belongs to the technical field of charging equipment. The detection method of the charging equipment comprises the following steps: determining a pumping state corresponding to a target first period based on first pumping current values and first current thresholds of the equipment to be tested in the target first periods in M first periods, wherein the pumping state comprises an abnormal pumping state or a normal pumping state; under the condition that the pumping state corresponding to the target first period is a normal pumping state, determining the type of the equipment to be tested based on the acquired second pumping current value and second current threshold value of the equipment to be tested in the target second period; the type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold. The detection method of the charging equipment has higher judgment accuracy and wider application scene.

Description

Detection method and device of charging equipment, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of charging equipment, and particularly relates to a detection method and device of charging equipment, electronic equipment and a storage medium.
Background
With the development of electronic technology, heating devices such as hand warmer, heating jacket, heating blanket and shoe dryer gradually support to use USB power supply to cooperate energy storage devices such as portable power source to carry the trip, have made things convenient for daily heating and demand such as dehumidification. In the related art, if the pumping detection is carried out in the time of stopping pumping in the intermittent pumping period of the USB equipment such as the hand warmer, the heating jacket and the like, the USB equipment is mistakenly considered to be fully charged or pulled out, so that the power supply port of the USB equipment is controlled to be actively closed to stop supplying power to the USB equipment, and the intermittent pumping equipment such as the hand warmer, the heating jacket and the like cannot work normally; in addition, in the related art, whether the power supply device is connected to the wireless charging device or the intermittent pumping device (such as a hand warmer, a heating jacket, etc.) cannot be distinguished.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides a detection method, a detection device, an electronic device and a storage medium of the charging equipment, which can accurately distinguish intermittent charging equipment from wireless charging equipment, and have higher judgment accuracy and wider application scenes.
In a first aspect, the present application provides a method for detecting a charging device, the method comprising:
determining a pumping state corresponding to a target first period in M first periods based on first pumping current values and first current thresholds of the obtained equipment to be tested in the target first period, wherein the pumping state comprises an abnormal pumping state or a normal pumping state;
under the condition that the pumping state corresponding to the target first period is the normal pumping state, determining the type of the equipment to be tested based on the acquired second pumping current value and second current threshold value of the equipment to be tested in the target second period;
the type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold.
According to the detection method of the charging equipment, the first pumping current value and the first current threshold value in the first period of the target are used for determining the pumping state corresponding to the first period of the target, and the second pumping current value and the second current threshold value in the second period of the target are used for determining the type of equipment to be detected, so that misjudgment caused by pumping detection of the intermittent charging equipment in the period of stopping pumping electricity in the intermittent pumping period can be reduced, the accuracy of the pumping state judgment result is remarkably improved, in addition, the intermittent charging equipment and the wireless charging equipment can be accurately distinguished, the judgment accuracy is high, the method is suitable for charging equipment of any type (wireless charging equipment, intermittent charging equipment, non-intermittent charging equipment and the like), and the method has wider application scenes and high universality.
According to one embodiment of the present application, the target first period includes P first sub-periods, and the determining, based on the obtained first pumping current values and the first current threshold values of the device to be tested in the target first periods of the M first periods, the pumping state corresponding to the target first periods includes:
determining a pumping state corresponding to a target first sub-period in the P first sub-periods based on the first pumping current value and the first current threshold;
acquiring the P first sub-periods, wherein the pumping state is a first number of the first sub-periods of the abnormal pumping state;
under the condition that the first number is larger than a first preset value, determining that the target first period is the abnormal pumping state;
under the condition that the first number is not larger than a first preset value, determining that the target first period is the normal pumping state;
wherein P is a positive integer.
According to an embodiment of the present application, the determining, based on the first pumping current value and the first current threshold, a pumping state corresponding to a target first sub-period of the P first sub-periods includes:
q first pumping current values in a first target sub-period are obtained;
Determining a second number of the first current values being less than the first current threshold within the target first sub-period;
determining that the target first sub-period is the abnormal pumping state under the condition that the second number is larger than a second preset value;
determining that the target first sub-period is the normal pumping state under the condition that the second number is not larger than a second preset value;
wherein Q is a positive integer.
According to one embodiment of the present application, the target second period includes L second sub-periods, and the determining the type of the device under test based on the obtained second pumping current value and the second current threshold value of the device under test in the target second period includes:
acquiring O second pumping current values in a second sub-period of the target;
determining a third amount of the second pump current value that is greater than the second current threshold within the target second sub-period;
determining that the device to be tested is the non-wireless charging device under the condition that the third quantity is larger than a third preset value;
wherein L and O are both positive integers.
According to one embodiment of the application, after said determining that said second current value is greater than said third current threshold value by a third amount within said target second sub-period, said method further comprises:
And under the condition that the third number is not larger than a third preset value, acquiring a second pumping current value in one sub-period after the target second sub-period in the L second sub-periods.
According to one embodiment of the present application, the first period includes P first sub-periods, and the 2 nd to P (th) first sub-periods of the previous first period are the 1 st to (P-1) first sub-periods of the next first period adjacent to the previous first period.
According to one embodiment of the present application, the target second period includes L second sub-periods, the second sub-periods include O second pumping current values, and the 2 nd to O (second) pumping current values in a previous second sub-period are the 1 st to (O-1) th second pumping current values in a next second sub-period adjacent to the previous second sub-period.
In a second aspect, the present application provides a detection apparatus for a charging device, the apparatus comprising:
the first processing device is used for determining a pumping state corresponding to a target first period in M first periods based on a first pumping current value and a first current threshold value of the obtained device to be tested in the target first period, wherein the pumping state comprises an abnormal pumping state or a normal pumping state;
The second processing device is used for determining the type of the equipment to be tested based on the acquired second pumping current value and second current threshold value of the equipment to be tested in the second period of the target under the condition that the pumping state corresponding to the first period of the target is the normal pumping state;
the type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold.
According to the detection device of the charging equipment, the first pumping current value and the first current threshold value in the first period of the target are used for determining the pumping state corresponding to the first period of the target, and the second pumping current value and the second current threshold value in the second period of the target are used for determining the type of equipment to be detected, so that misjudgment caused by pumping detection of the intermittent charging equipment in the period of stopping pumping electricity in the intermittent pumping period can be reduced, the accuracy of the pumping state judgment result is remarkably improved, in addition, the intermittent charging equipment and the wireless charging equipment can be accurately distinguished, the judgment accuracy is high, the detection device is suitable for charging equipment of any type (wireless charging equipment, intermittent charging equipment, non-intermittent charging equipment and the like), and the detection device has wider application scenes and high universality.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for detecting a charging device according to the first aspect when the processor executes the computer program.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of detecting a charging device as described in the first aspect above.
In a fifth aspect, the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor being coupled, the processor being configured to execute a program or instructions to implement the method for detecting a charging device according to the first aspect.
In a sixth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements a method of detecting a charging device as described in the first aspect above.
The above technical solutions in the embodiments of the present application at least have the following technical effects: the first pumping current value and the first current threshold value in the first period of the target are used for determining the pumping state corresponding to the first period of the target, and the second pumping current value and the second current threshold value in the second period of the target are used for determining the type of the equipment to be tested, so that misjudgment caused by pumping detection on the intermittent charging equipment in the period of stopping pumping in the intermittent pumping period can be reduced, and in addition, the accuracy of the pumping state judgment result is remarkably improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
fig. 1 is a schematic flow chart of a detection method of a charging device according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for detecting a charging device according to an embodiment of the present application;
fig. 3 is a third flowchart of a method for detecting a charging device according to an embodiment of the present application;
fig. 4 is a schematic diagram of a detection method of a charging device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a second embodiment of a detection method of a charging device according to the present application;
fig. 6 is a schematic diagram III of a detection method of a charging device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a detection method of a charging device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a detection device of a charging apparatus according to an embodiment of the present application;
fig. 9 is a second schematic structural diagram of a detection device of a charging apparatus according to an embodiment of the present application;
Fig. 10 is a third schematic structural diagram of a detection device of a charging apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for detecting the charging device, the device for detecting the charging device, the electronic device and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The detection method of the charging device can be applied to the terminal, and can be specifically executed by hardware or software in the terminal.
The implementation main body of the detection method of the charging device provided by the embodiment of the application may be an electronic device or a functional module or a functional entity capable of implementing the detection method of the charging device in the electronic device, where the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the detection method of the charging device provided by the embodiment of the application is described below by taking the electronic device as an implementation main body as an example.
The detection method of the charging device can be applied to power supply devices.
As shown in fig. 1, the detection method of the charging device includes: step 110 and step 120.
Step 110, determining a pumping state corresponding to a target first period based on first pumping current values and first current thresholds of the obtained to-be-tested equipment in the target first periods in M first periods, wherein the pumping state comprises an abnormal pumping state or a normal pumping state; wherein M is a positive integer;
In the step, the first pumping current value is a current value actually pumped by the device to be tested corresponding to the first period from the power supply device.
M is a positive integer.
M is the total number of first periods, each first period comprises a plurality of first subcycles, and each first subcycle can comprise a plurality of pumping current collection times.
The target first period may be any of M first periods.
The pumping state corresponding to the first period of the target comprises an abnormal pumping state or a normal pumping state.
The abnormal pumping state comprises an idle state and a full charge state.
The first current threshold may be a value preset by a user, and is used for judging whether the device to be tested is normally loaded.
It can be appreciated that in the case of normal pumping of the device under test, the first pumping current value is greater than the first current threshold value.
In some embodiments, the first period may include P first sub-periods, and the 2 nd to P first sub-periods of the previous first period among the M first periods are the 1 st to (P-1) th first sub-periods of the next first period adjacent to the previous first period.
In this embodiment, P is a positive integer, and P > 1.
Each first sub-period may include a plurality of pumping current acquisitions.
As shown in FIG. 4, C2 1 And C2 2 The first sub-periods are all first sub-periods, each first sub-period comprises a plurality of pumping current collection times, and the pumping current collection times in each first sub-period are the same. For example, with continued reference to FIG. 4, a first sub-period C2 1 Comprising the following steps: C1C 1 1 、C1 2 ……C1 NSET1 The number of times of collection of a plurality of pumping currents is equal, and the first sub-period C2 2 Comprising the following steps: C1C 1 NSET1+1 ……C1 2 * NSET1 The number of times of collection of a plurality of pumping currents and so on.
As shown in fig. 5, the M first periods may include: C3C 3 1 、C3 2 And C3 3 A plurality of first periods; wherein C3 1 IncludedC2 1 、C2 1 ……C2 NSET2 The P first sub-periods are equal; C3C 3 2 Comprising C2 2 、C2 3 ……C2 NSET2+1 The P first sub-periods are equal; C3C 3 3 Comprising C2 3 、C2 4 ……C2 NSET2+2 And P first sub-periods.
The implementation of step 110 is described in detail below.
As shown in fig. 2, in some embodiments, the target first period may include P first sub-periods, and step 110 may include:
determining a pumping state corresponding to a target first sub-period in the P first sub-periods based on the first pumping current value and the first current threshold;
acquiring P first sub-periods, wherein the pumping state is the first number of the first sub-periods of the abnormal pumping state;
under the condition that the first number is larger than a first preset value, determining that the target first period is in an abnormal pumping state;
Under the condition that the first number is not larger than a first preset value, determining that the target first period is in a normal pumping state;
wherein P is a positive integer.
In this embodiment, the target first sub-period may be any of the P first sub-periods.
The pumping state corresponding to the first sub-period of the target comprises an abnormal pumping state or a normal pumping state.
And determining the pumping state corresponding to the first period of the target based on the pumping state corresponding to each first sub-period in the first period of the target.
The first preset value is a user-defined numerical value, and may be expressed as a number or as a ratio, which is not limited herein.
For example, in the case that the first preset value is the number, when the first number is greater than the first preset value, determining that the target first period is an abnormal pumping state; and when the first number is not greater than a first preset value, determining that the target first period is in a normal pumping state.
For another example, under the condition that the first preset value is a ratio, when the ratio of the first number to the P is greater than the first preset value, determining that the target first period is an abnormal pumping state; and when the ratio of the first quantity to the P is not greater than a first preset value, determining that the target first period is in a normal pumping state.
In some embodiments, obtaining P first sub-periods, the first number of first sub-periods in which the pumping state is an abnormal pumping state may include: and under the condition that P is not smaller than a first acquisition threshold value, P first sub-periods are acquired, and the pumping state is the first number of the first sub-periods of the abnormal pumping state.
In this embodiment, the first acquisition threshold is a user-defined value, and is used to determine whether the first number of sub-periods acquired in each first period satisfies a preset number of sub-periods, so as to reduce the influence of random errors on a subsequent determination result.
According to the detection method of the charging equipment, provided by the embodiment of the application, the pumping state of the equipment to be detected in the target first period is judged by comparing the magnitude relation between the first number of the first sub-periods with the abnormal pumping state and the first preset value in the plurality of first sub-periods in the target first period, so that misjudgment caused by pumping detection of the intermittent charging equipment in the period of stopping pumping in the intermittent pumping period can be reduced, the accuracy of the pumping state judgment result is obviously improved, the detection method is suitable for charging equipment of any type (intermittent charging equipment, non-intermittent charging equipment and the like), and the detection method has wider application scenes and high universality.
The following describes a specific way of determining the pumping state corresponding to the first sub-period of the target.
With continued reference to fig. 2, in some embodiments, determining the pumping state corresponding to the target first sub-period of the P first sub-periods based on the first pumping current value and the first current threshold may include:
q first pumping current values in a first target sub-period are obtained;
determining a second number of first pumping current values smaller than a first current threshold value in a first target subcycle;
under the condition that the second number is larger than a second preset value, determining that the target first sub-period is in an abnormal pumping state;
under the condition that the second number is not larger than a second preset value, determining that the target first sub-period is in a normal pumping state;
wherein Q is a positive integer.
In this embodiment, the target first sub-period may be any of the P first sub-periods.
For any first sub-period, respectively judging the magnitude of a first pumping current value and a first current threshold value acquired each time in the first sub-period, and when the first pumping current value is smaller than the first current threshold value, considering the equipment to be tested at the acquisition moment to be in an abnormal pumping state; and when the first pumping current value is not smaller than the first current threshold value, the equipment to be tested is considered to be in a normal pumping state at the acquisition moment.
The number of abnormal pumping states (i.e., the second number) in each first sub-period is obtained, and the second number is compared with a second preset value.
The second preset value is a user-defined value, and can be expressed in the form of number or ratio.
For example, when the second preset value is a ratio, and when the ratio of the second number to Q is greater than the second preset value, the device to be tested in the first sub-period is approximately considered to be an abnormal pumping state, and the state corresponding to the first sub-period is determined to be an abnormal pumping state; and under the condition that the ratio of the second quantity to the Q is not greater than a second preset value, the equipment to be tested is approximately considered to be normally loaded in the first sub-period, and the state corresponding to the first sub-period is determined to be the normally loaded state.
In some embodiments, determining a second number of target first sub-periods for which the first value of the current draw is less than the first current threshold may include: and under the condition that Q is not smaller than a second acquisition threshold value, determining a second quantity that the first pumping current value is smaller than the first current threshold value in the first target subcycle.
In this embodiment, the second acquisition threshold is a user-defined value, which is used to determine whether the number of the first pumping current values acquired in each first sub-period meets the preset acquisition number, so as to reduce the influence of random errors on the subsequent determination result.
According to the detection method of the charging equipment, provided by the embodiment of the application, the magnitude of the first pumping current value and the magnitude of the first current threshold value in the first sub-period of the target are compared, and the pumping state of the first sub-period of the target is further determined based on the magnitude relation between the second number of the first pumping current value smaller than the first current threshold value and the second preset value, so that the influence of sampling errors on a judgment result is effectively reduced, and the accuracy and precision of the detection result are improved.
Step 120, determining the type of the device to be tested based on the obtained second pumping current value and the second current threshold value of the device to be tested in the second period of the target under the condition that the pumping state corresponding to the first period of the target is the normal pumping state;
the type of the device to be tested comprises a non-wireless charging device and a wireless charging device, and the second current threshold value is larger than the first current threshold value.
In the step, the second pumping current value is a current value actually pumped by the device to be tested corresponding to the second period from the power supply device.
It should be noted that the second pumping current value and the first pumping current value may be the same value. That is, steps 110 and 120 may be performed sequentially or may be performed simultaneously, which is not limited by the present application.
The target second period may be any one of a plurality of second periods.
The second period may be the same period as the first period, and in the case that the second period is the same as the second period, the first pumping current value is the same as the second pumping current value, and step 110 and step 120 are performed synchronously.
It will be appreciated that each second cycle includes a plurality of second sub-cycles, each of which may include a plurality of pumping current acquisitions.
The second current threshold may be a value preset by a user, and is used for judging the magnitude of a current value pumped by the device to be tested, so as to further judge the type of the device to be tested based on the magnitude of the current value.
The type of the device to be tested comprises a non-wireless charging device or a wireless charging device.
The non-wireless charging equipment comprises intermittent charging equipment such as hand warmer, electric blanket and shoe dryer.
It can be understood that, in the case that the device to be tested is an intermittent charging device, the second pumping current value should be greater than the second current threshold under the normal pumping condition; under the condition that the device to be tested is a wireless charging device, the second pumping current value is not larger than the second current threshold value under the normal pumping condition.
In some embodiments, the target second period may include L second sub-periods including O second pumping current values, and the 2 nd to O second pumping current values in a previous second sub-period are 1 st to (O-1) th second pumping current values in a subsequent second sub-period adjacent to the previous second sub-period.
In this embodiment, L and O are both positive integers, and L > 1,O > 1.
Each second sub-period may include a plurality of current-carrying acquisitions.
As shown in FIG. 6, C4 1 、C4 2 、C4 3 … … and C4 NSET3+3 The same is the number of times of collection of the pumping current.
With continued reference to fig. 6, the l second sub-periods may include: C5C 5 1 、C5 2 And C5 3 A plurality of second sub-periods; wherein C5 1 Comprising C4 1 、C4 1 ……C4 NSET3 The value of O second pumping current is equal; C5C 5 2 Comprising C4 2 、C4 3 ……C4 NSET3+1 The value of O second pumping current is equal; C5C 5 3 Comprising C4 3 、C4 4 ……C4 NSET3+2 And (5) waiting for O second pumping current values.
The implementation of step 120 is described in detail below.
With continued reference to fig. 2, in some embodiments, the target second period may include L second sub-periods, and step 120 may include:
acquiring O second pumping current values in a second sub-period of the target;
determining a third number of second pumping current values greater than a second current threshold within a second sub-period of the target;
Under the condition that the third quantity is larger than a third preset value, determining that the equipment to be detected is non-wireless charging equipment;
wherein L and O are both positive integers.
In this embodiment, the target second sub-period may be any of the L second sub-periods.
In the application, the extraction current value of which the second extraction current value is larger than the second current threshold value can be approximately regarded as large current, and the extraction current value of which the second extraction current value is smaller than the second current threshold value can be approximately regarded as small current.
It can be understood that, in the practical application process, after the wireless charger is connected to the USB power supply device, the wireless charger intermittently sends a signal to detect whether a powered device such as a mobile phone or a bluetooth headset is connected. During the signal transmission period of the wireless charger, larger current is consumed; that is, after the wireless charger is connected to the USB port, the situation of pumping is similar to that of intermittent pumping USB equipment.
Fig. 7 illustrates three types of pump current patterns corresponding to the device under test, where ISET1 is a first current threshold and ISET2 is a second current threshold.
As can be seen from fig. 7, the pumping current corresponding to the non-intermittent pumping device is constant in the whole sampling period under the normal pumping state, and the value of the pumping current is larger (larger than the second current threshold ISET 2); the pumping current corresponding to the intermittent pumping equipment periodically changes in the whole sampling period, and the value of the corresponding pumping current is larger (larger than a second current threshold ISET 2) in a normal pumping state; the pumping current corresponding to the wireless charging equipment periodically changes in the whole sampling period, and in a normal pumping state, the value of the corresponding pumping current is smaller (larger than the first current threshold ISET1 and smaller than the second current threshold ISET 2).
For any second sub-period, respectively judging the magnitude of a second pumping current value and a second current threshold value acquired each time in the second sub-period, and when the second pumping current value is larger than the second current threshold value, considering the equipment to be tested at the acquisition moment as larger pumping current; and when the second pumping current value is not greater than the second current threshold value, the current pumped by the equipment to be tested at the collection moment is considered to be smaller.
And acquiring a larger number of times (namely a third quantity) of the pumping current in each second sub-period, and comparing the third quantity with a third preset value.
The third preset value is a user-defined numerical value, and the third preset value can be expressed as a number or as a ratio, which is not limited herein.
For example, for any second sub-period, when the third preset value is a ratio, and when the ratio of the third number to O is greater than the third preset value, it is approximately considered that the device to be tested normally pumps and the pumping current is greater in the second sub-period, so that the possibility that the device to be tested is a wireless charging device can be eliminated, and the device to be tested is determined to be a non-wireless charging device (i.e., an intermittent pumping device).
In some embodiments, determining a third amount by which the second pump current value is greater than the second current threshold value within the target second sub-period may include: and under the condition that O is not smaller than a third acquisition threshold value, determining a third quantity that the second pumping current value is larger than the second current threshold value in a second target subcycle.
In this embodiment, the third collection threshold is a user-defined value, which is used to determine whether the number of collected second pumping current values collected in each second sub-period meets the preset collection number, so as to reduce the influence of random errors on the subsequent determination result.
According to the detection method of the charging equipment, provided by the embodiment of the application, under the condition that the normal pumping of the equipment to be detected is determined, the magnitude relation between the second pumping current value and the second current threshold value in the second target sub-period is compared, and further under the condition that the pumping current is determined to be large, the equipment to be detected is determined to be the non-wireless charging equipment, so that the intermittent pumping equipment and the wireless charging equipment can be accurately distinguished, the identification precision and the judgment accuracy are higher, the detection method is suitable for the charging equipment of any type (wireless charging equipment, intermittent charging equipment and the like), and the detection method has wider application scenes and high universality.
The manner of determining the current information corresponding to the second sub-period of the target will be described below.
With continued reference to fig. 2, in some embodiments, after determining a third amount that the second pump current value is greater than the second current threshold value within the target second sub-period, the method may further include:
And under the condition that the third number is not larger than a third preset value, acquiring second pumping current values in one sub-period after the target second sub-period in the L second sub-periods.
In this embodiment, for example, in the case that the third preset value is a ratio, when the ratio of the third number to O is not greater than the third preset value, it is approximately considered that the pumping current corresponding to the device to be tested in the second sub-period is smaller, and at this time, the device to be tested cannot be excluded as the wireless charging device, then the next second sub-period is repeated to perform the above steps for determining.
The second pumping current value included in the next second sub-period may be other second pumping current values except the earliest second pumping current value collected at one time in the current second sub-period, and the second pumping current value collected at the next time.
According to the detection method of the charging equipment, provided by the embodiment of the application, the influence of sampling errors on the judgment result can be effectively reduced by repeatedly judging the magnitudes of the second pumping currents corresponding to the plurality of second sub-periods under the condition that the pumping currents are smaller, so that the accuracy and precision of the detection result are improved.
In some embodiments, after step 110, the method may further comprise: and under the condition that the pumping state corresponding to the first period of the target is no-load or full-charge, ending the no-load judgment of the wheel, emptying all values, and closing no-load detection.
In the next detection scenario, the first pumping current value is re-acquired to repeat the steps 110 and 120.
In some embodiments, after step 110 and/or after step 120, the method may further comprise: and controlling the working state of the power supply equipment based on the pumping state and/or the type of the equipment to be tested.
In this embodiment, the operating state of the power supply device includes turning on or off the power supply.
It can be appreciated that in the case that the current state is determined to be the idle state, the power supply device is controlled to disconnect the power supply, so as to save electric energy.
And under the condition that the current state is determined to be the normal pumping state or the condition that the equipment to be tested is determined to be the intermittent pumping equipment, controlling the power supply equipment to start power supply so as to normally supply power.
According to the detection method of the charging equipment provided by the embodiment of the application, the first pumping current value and the first current threshold value in the first period of the target are used for determining the pumping state corresponding to the first period of the target, and the second pumping current value and the second current threshold value in the second period of the target are used for determining the type of equipment to be detected, so that misjudgment caused by pumping detection on the intermittent charging equipment in the period of stopping pumping in the intermittent pumping period can be reduced, the accuracy of the pumping state judgment result is obviously improved, in addition, the intermittent charging equipment and the wireless charging equipment can be accurately distinguished, the judgment accuracy is high, the method is suitable for charging equipment of any type (wireless charging equipment, intermittent charging equipment, non-intermittent charging equipment and the like), and the method has wider application scenes and high universality.
In actual implementation, the above-described steps 110 and 120 of the present application may be implemented by the detection means of the charging device as shown in fig. 8 and 9. The detection device of the charging device can be arranged on the power supply device.
As shown in fig. 8, the apparatus may include a power supply module, an identification control module, and a current detection module.
Wherein, as shown in fig. 9, the power supply module includes a power supply and a pass-through tube Q1.
The channel Q1 is directly connected to the power supply and the USB load, and serves to control whether the power supply supplies the USB load.
The current detection module includes an amplifier AMP1, a comparator CMP2, a reference voltage VREF1, and a reference voltage VREF2.
The current detection module is used for detecting the voltage drop of the channel tube Q1, and sending the comparison result to the identification control module after amplification and comparison.
The identification control module detects the current extracted by the USB load by controlling the current detection module and compares the current with different reference voltages to obtain a corresponding result, and then controls the on and off of the channel tube Q1 according to the detection result to control whether the power supply supplies to the USB load.
The implementation of the present application will be specifically described with reference to fig. 3, 8 and 9.
Step 401, detecting that the USB device is accessed, or opening the USB port by other means, then step 402 is entered.
Step 402, detecting that the port is open and enabling no-load detection, and then step 403 is entered.
In step 403, the voltage drop of the pass transistor Q1 is amplified by AMP1 and compared with VREF1 (i.e., the first current threshold) by CMP1, to obtain a first comparison result C1, and the process proceeds to step 404.
In step 404, a determination is made as to whether the first comparison result C1 is high.
The first comparison result C1 is high, which indicates that the first pumping current of the USB equipment detected at the time is lower than a first current threshold represented by VREF 1; step 405 is entered.
The first comparison result C1 is low, which indicates that the first pumping current of the USB equipment detected at the time is higher than a first current threshold represented by VREF 1; step 405 is entered.
In step 405, the counters M1 and N1 are operated according to the result of the first comparison result C1.
If the first comparison result C1 is high, the counter M1 is controlled to be increased by 1, and the counter N1 is controlled to be increased by 1; step 406 is entered.
If the first comparison result C1 is low, the counter M1 is controlled to be unchanged, and the counter N1 is increased by 1; step 406 is entered.
Wherein the counter M1 is used for counting the number of times the first comparison result C1 is high (i.e., the second number above), and the counter N1 is used for counting the total number of times the first comparison result C1 is high (i.e., the Q above).
In step 406, it is determined whether the value of the counter N1 (i.e. Q) is equal to the preset detection number NSET1 (i.e. the second acquisition threshold).
If so, then the first sub-period is deemed to have collected enough data and step 407 is entered.
If not, it is considered that enough data is not acquired in the first sub-period, and data needs to be acquired again, and step 403 is performed to continue to acquire the first pumping current.
Step 407, comparing the value (i.e. the second number) of the counter M1 with a preset count value MSET1 (i.e. a second preset value) to obtain a second comparison result C2, and clearing the count values of M1 and N1 after obtaining C2; step 408 is entered.
The second preset value is smaller than or equal to a second acquisition threshold value.
In step 408, a determination is made as to whether the second comparison result C2 is high.
If the second comparison result C2 is high, the USB device is considered to be fully charged or the USB device is extracted in the second comparison result C2 acquisition period (i.e., the first sub-period), i.e., no load is detected; step 409 is entered.
If the second comparison result C2 is low, the USB equipment is considered to be normally in the second comparison result C2 acquisition period (namely the first sub-period); step 409 is entered.
Step 409, according to the determination result of the second comparison result C2, the counters M2 and N2 are operated.
If the second comparison result C2 is high, the counter M2 is controlled to be increased by 1, and the counter N2 is controlled to be increased by 1; step 410 is entered.
If the second comparison result C2 is low, the counter M2 is unchanged, and the counter N2 is increased by 1; step 410 is entered.
The counter M2 is used for counting the number of times the second comparison result C2 is high (i.e., the first number), and the counter N2 is used for counting the total number of times the second comparison result C2 is high (i.e., P).
In step 410, it is determined whether the value of the counter N2 (i.e., P) is equal to the preset detection count NSET2 (i.e., the first acquisition threshold).
If so, the large period (i.e., the first period) is considered to have enough data collected, and step 411 is entered.
If not, it is indicated that the large period (i.e., the first period) does not collect enough data, and the data needs to be collected again, and the process proceeds to step 403.
Step 411, comparing the value (i.e. the first number) of the counter M2 with a preset count value MSET2 (i.e. a first preset value) to obtain a third comparison result C3; step 412 is entered.
The first preset value is smaller than or equal to a first acquisition threshold value.
In step 412, a determination is made as to whether the third comparison result C3 is high.
If the third comparison result C3 is high, it is considered that the USB device is fully charged or the USB device is unplugged in the third comparison result C3 acquisition period (i.e., the first period), i.e., no load is detected, and the process proceeds to step 413.
If the third comparison result C3 is low, the USB device is considered to be normally booted in the third comparison result C3 acquisition cycle (i.e. the first cycle), and step 414 is entered.
In step 413, the third comparison result C3 is high, which indicates that the USB device is fully charged or the USB device is pulled out in the third comparison result C3 acquisition period, the USB port is in an idle state, the identification detection module closes the channel Q1 and clears the counters M1, M2, M3, N1, N2 and N3, and finally closes the idle detection, and the idle detection flow ends.
Step 414, the third comparison result C3 is low, which indicates that the USB device in the third comparison result C3 acquisition period is normally booted, the second comparison result C2 with the earliest time in the third comparison result C3 acquisition period is removed, and the rest of the second comparison results C2 enter the next third comparison result C3 acquisition period (i.e., enter the next first period); step 415 is entered.
Step 415, determining whether the removed second comparison result C2 is high; step 416 is entered.
Step 416, if the removed second comparison result C2 is high, the counter M2 is controlled to decrease by 1, and the counter N2 is controlled to decrease by 1; step 403 is entered.
If the removed second comparison result C2 is low, the counter M2 is controlled to be unchanged, and the counter N2 is decremented by 1; step 403 is entered.
Step 417, the voltage drop of the channel Q1 is amplified by AMP1 and compared with VREF2 (i.e., the second current threshold) by CMP2, to obtain a fourth comparison result C4; step 418 is entered.
In step 418, a determination is made as to whether the fourth comparison result C4 is high.
If the fourth comparison result C4 is high, the second pumping current of the detected USB device is higher than the set current represented by VREF2 (i.e., the second current threshold); step 419 is entered.
If the first comparison result C1 is low, the second pumping current of the detected USB device is lower than the set current represented by VREF2 (i.e., the second current threshold); step 419 is entered.
In step 419, the counters M3 and N3 are operated according to the result of the fourth comparison result C4.
If the fourth comparison result C4 is high, the counter M3 is controlled to be increased by 1, and the counter N3 is controlled to be increased by 1; step 420 is entered.
If the fourth comparison result C4 is low, the counter M3 is controlled to be unchanged, and the counter N3 is increased by 1; step 420 is entered.
The counter M3 is used for counting the number of times the fourth comparison result C4 is high (i.e., the third number), and the counter N3 is used for counting the total number of times the fourth comparison result C4 is high (i.e., O).
In step 420, it is determined whether the value of the counter N3 (i.e. O) is equal to the preset detection number NSET3 (the third acquisition threshold).
If the data are equal, the fourth comparison result C4 is considered to have acquired enough data in the acquisition period (i.e., the second sub-period), and the process proceeds to step 421.
If not, it is assumed that the fourth comparison result C4 does not acquire enough data in the acquisition period (i.e., the second sub-period), and the data needs to be acquired again, and the process proceeds to step 417.
Step 421, comparing the value of the counter M3 (i.e. the third number) with the preset count value MSET3 (i.e. the third preset value) to obtain a fifth comparison result C5; step 422 is entered.
The third preset value is smaller than or equal to a third acquisition threshold value.
In step 422, a determination is made as to whether the fifth comparison result C5 is high.
If the fifth comparison result C5 is high, it is considered that the USB device is normally loaded and the current drawn by the USB device is larger in the fifth comparison result C5 acquisition period (i.e., the second sub-period), so that the wireless charger can be eliminated, and step 423 is entered.
If the fifth comparison result C5 is low, it is considered that the USB device in the fifth comparison result C5 acquisition period (i.e. the second sub-period) has a smaller current, and the wireless charger cannot be excluded, and the process proceeds to step 424.
Step 423, if the fifth comparison result C5 is high, the USB device is considered to be normally loaded and the current drawn by the USB device is larger in the fifth comparison result C5 acquisition period (i.e., the second sub-period), so that the wireless charger can be eliminated; resetting M1, M2, M3, N1, N2 and N3, and resetting the no-load detection; step 417 is entered.
Step 424, if the fifth comparison result C5 is low, the USB device in the fifth comparison result C5 acquisition period (i.e. the second sub-period) is considered to have a smaller current, which cannot exclude the wireless charger; removing the fourth comparison result C4 with the earliest time in the fifth comparison result C5 acquisition period, and entering the next fifth comparison result C5 acquisition period (i.e. entering the next second sub-period) by the rest of the fourth comparison results C4; step 425 is entered.
Step 425, determining whether the removed fourth comparison result C4 is high; step 426 is entered.
Step 426, if the removed fourth comparison result C4 is high, the counter M3 is controlled to be decremented by 1, and the counter N3 is controlled to be decremented by 1; step 417 is entered.
If the removed fourth comparison result C4 is low, the counter M3 is controlled to be unchanged, and the counter N3 is decremented by 1; step 417 is entered.
Wherein step 403 and steps below are performed in parallel with step 417 and steps below.
The identification control module controls whether the power supply module stops supplying power or not based on the judging result.
Of course, in other embodiments, the M first periods may be a plurality of periods that do not overlap with each other; alternatively, the L second sub-periods may be a plurality of sub-periods that do not overlap with each other; alternatively, the first period and the second period may be different periods, and the present application is not limited thereto.
According to the detection method for the charging equipment provided by the embodiment of the application, the execution main body can be a detection device of the charging equipment. In the embodiment of the present application, a method for detecting a charging device by using a detecting device of a charging device is taken as an example, and the detecting device of the charging device provided in the embodiment of the present application is described.
The embodiment of the application also provides a detection device of the charging equipment.
As shown in fig. 10, the detecting device of the charging apparatus includes a first processing module 1010 and a second processing module 1020.
The first processing device 1010 is configured to determine, based on the obtained first pumping current values and the first current threshold values of the device to be tested in the target first periods of the M first periods, a pumping state corresponding to the target first periods, where the pumping state includes an abnormal pumping state or a normal pumping state;
the second processing device 1020 is configured to determine, based on the obtained second pumping current value and the second current threshold value of the device to be tested in the second period of the target, when the pumping state corresponding to the first period of the target is a normal pumping state;
the type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold.
According to the detection device for the charging equipment provided by the embodiment of the application, the first pumping current value and the first current threshold value in the first period of the target are used for determining the pumping state corresponding to the first period of the target, and the second pumping current value and the second current threshold value in the second period of the target are used for determining the type of the equipment to be detected, so that misjudgment caused by pumping detection on the intermittent charging equipment in the period of stopping pumping in the intermittent pumping period can be reduced, the accuracy of the pumping state judgment result is obviously improved, in addition, the intermittent charging equipment and the wireless charging equipment can be accurately distinguished, the judgment accuracy is high, the detection device is suitable for charging equipment of any type (wireless charging equipment, intermittent charging equipment, non-intermittent charging equipment and the like), and the detection device has wider application fields and high universality.
In some embodiments, the target first period may include P first sub-periods, and the first processing device 1010 may be further configured to:
determining a pumping state corresponding to a target first sub-period in the P first sub-periods based on the first pumping current value and the first current threshold;
acquiring P first sub-periods, wherein the pumping state is the first number of the first sub-periods of the abnormal pumping state;
Under the condition that the first number is larger than a first preset value, determining that the target first period is in an abnormal pumping state;
under the condition that the first number is not larger than a first preset value, determining that the target first period is in a normal pumping state;
wherein P is a positive integer.
In some embodiments, the first processing device 1010 may also be configured to:
q first pumping current values in a first target sub-period are obtained;
determining a second number of first pumping current values smaller than a first current threshold value in a first target subcycle;
under the condition that the second number is larger than a second preset value, determining that the target first sub-period is in an abnormal pumping state;
under the condition that the second number is not larger than a second preset value, determining that the target first sub-period is in a normal pumping state;
wherein Q is a positive integer.
In some embodiments, the target second period includes L second sub-periods, and the second processing means 1020 may be further configured to:
acquiring O second pumping current values in a second sub-period of the target;
determining a third number of second pumping current values greater than a second current threshold within a second sub-period of the target;
under the condition that the third quantity is larger than a third preset value, determining that the equipment to be detected is non-wireless charging equipment;
Wherein L and O are both positive integers.
In some embodiments, the second processing device 1020 may also be configured to: and after determining that the second pumping current value is larger than the third quantity of the second current threshold value in the target second sub-period, acquiring the second pumping current values in one sub-period after the target second sub-period in the L second sub-periods under the condition that the third quantity is not larger than a third preset value.
The detection device of the charging device in the embodiment of the application can be an electronic device, and also can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The detection device of the charging device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The detection device for the charging device provided by the embodiment of the present application can implement each process implemented by the embodiments of the method of fig. 1 to 7, and in order to avoid repetition, a description is omitted here.
In some embodiments, as shown in fig. 11, an electronic device 1100 is further provided in the embodiments of the present application, which includes a processor 1101, a memory 1102, and a computer program stored in the memory 1102 and capable of running on the processor 1101, where the program when executed by the processor 1101 implements the processes of the foregoing embodiments of the method for detecting a charging device, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
The embodiment of the application also provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the detection method embodiment of the charging device, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the detection method of the charging equipment when being executed by a processor.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the detection method embodiment of the charging equipment can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the application, the scope of which is defined by the claims and their equivalents.

Claims (7)

1. A method of detecting a charging device, comprising:
determining a pumping state corresponding to a target first period in M first periods based on first pumping current values and first current thresholds of the obtained equipment to be tested in the target first period, wherein the pumping state comprises an abnormal pumping state or a normal pumping state; the abnormal pumping state comprises: an empty state and a fully charged state;
under the condition that the pumping state corresponding to the target first period is the normal pumping state, determining the type of the equipment to be tested based on the acquired second pumping current value and second current threshold value of the equipment to be tested in the target second period;
the type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold;
the target first period includes P first sub-periods, and determining a pumping state corresponding to the target first period based on the obtained first pumping current value and the first current threshold of the device to be tested in the target first period in the M first periods includes:
determining a pumping state corresponding to a target first sub-period in the P first sub-periods based on the first pumping current value and the first current threshold;
Acquiring the P first sub-periods, wherein the pumping state is a first number of the first sub-periods of the abnormal pumping state;
under the condition that the first number is larger than a first preset value, determining that the target first period is the abnormal pumping state;
under the condition that the first number is not larger than a first preset value, determining that the target first period is the normal pumping state;
wherein P is a positive integer;
the determining, based on the first pumping current value and the first current threshold, a pumping state corresponding to a target first sub-period in the P first sub-periods includes:
q first pumping current values in a first target sub-period are obtained;
determining a second number of the first current values being less than the first current threshold within the target first sub-period;
determining that the target first sub-period is the abnormal pumping state under the condition that the second number is larger than a second preset value;
determining that the target first sub-period is the normal pumping state under the condition that the second number is not larger than a second preset value;
wherein Q is a positive integer;
the target second period includes L second sub-periods, and determining the type of the device to be tested based on the acquired second pumping current value and second current threshold of the device to be tested in the target second period includes:
Acquiring O second pumping current values in a second sub-period of the target;
determining a third amount of the second pump current value that is greater than the second current threshold within the target second sub-period;
determining that the device to be tested is the non-wireless charging device under the condition that the third quantity is larger than a third preset value;
wherein L and O are both positive integers.
2. The method of detecting a charging device according to claim 1, wherein after said determining that the second pump current value is greater than the third amount of the second current threshold value within the target second sub-period, the method further comprises:
and under the condition that the third number is not larger than a third preset value, acquiring a second pumping current value in one sub-period after the target second sub-period in the L second sub-periods.
3. The detection method of a charging device according to claim 1 or 2, wherein the first period includes P first sub-periods, and 2 nd to P (th) first sub-periods of the preceding one of the M first periods are 1 st to (P-1) first sub-periods of the following one of the first periods adjacent to the preceding one of the first periods.
4. The detection method of a charging apparatus according to claim 1 or 2, wherein the target second period includes L second sub-periods including O second pumping current values, and the 2 nd to O (second) pumping current values in a preceding one of the second sub-periods are the 1 st to (O-1) th of the second pumping current values in a succeeding one of the second sub-periods adjacent to the preceding one of the second sub-periods.
5. A detection device of a charging apparatus, characterized by comprising:
the first processing device is used for determining a pumping state corresponding to a target first period in M first periods based on a first pumping current value and a first current threshold value of the obtained device to be tested in the target first period, wherein the pumping state comprises an abnormal pumping state or a normal pumping state; the abnormal pumping state comprises: an empty state and a fully charged state;
the second processing device is used for determining the type of the equipment to be tested based on the acquired second pumping current value and second current threshold value of the equipment to be tested in the second period of the target under the condition that the pumping state corresponding to the first period of the target is the normal pumping state;
The type of the equipment to be tested comprises non-wireless charging equipment and wireless charging equipment, wherein M is a positive integer; the second current threshold is greater than the first current threshold;
the target first period includes P first sub-periods, and the first processing device is further configured to: determining a pumping state corresponding to a target first sub-period in the P first sub-periods based on the first pumping current value and the first current threshold;
acquiring the P first sub-periods, wherein the pumping state is a first number of the first sub-periods of the abnormal pumping state;
under the condition that the first number is larger than a first preset value, determining that the target first period is the abnormal pumping state;
under the condition that the first number is not larger than a first preset value, determining that the target first period is the normal pumping state;
wherein P is a positive integer;
the first processing device is further configured to:
q first pumping current values in a first target sub-period are obtained;
determining a second number of the first current values being less than the first current threshold within the target first sub-period;
determining that the target first sub-period is the abnormal pumping state under the condition that the second number is larger than a second preset value;
Determining that the target first sub-period is the normal pumping state under the condition that the second number is not larger than a second preset value;
wherein Q is a positive integer;
the target second period includes L second sub-periods, and the second processing device is further configured to:
acquiring O second pumping current values in a second sub-period of the target;
determining a third amount of the second pump current value that is greater than the second current threshold within the target second sub-period;
determining that the device to be tested is the non-wireless charging device under the condition that the third quantity is larger than a third preset value;
wherein L and O are both positive integers.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of detecting a charging device according to any of claims 1-4 when executing the computer program.
7. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a method of detecting a charging device according to any one of claims 1-4.
CN202211592914.2A 2022-12-13 2022-12-13 Detection method and device of charging equipment, electronic equipment and storage medium Active CN115902490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211592914.2A CN115902490B (en) 2022-12-13 2022-12-13 Detection method and device of charging equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211592914.2A CN115902490B (en) 2022-12-13 2022-12-13 Detection method and device of charging equipment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115902490A CN115902490A (en) 2023-04-04
CN115902490B true CN115902490B (en) 2023-09-29

Family

ID=86477923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211592914.2A Active CN115902490B (en) 2022-12-13 2022-12-13 Detection method and device of charging equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115902490B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN103558483A (en) * 2013-11-18 2014-02-05 宁波钜隆电子科技有限公司 Charging equipment non-load detecting method and device, MCU and power supply equipment connecting wire
CN103597423A (en) * 2011-06-16 2014-02-19 微软公司 Mobile device operations with battery optimization
JP2020025404A (en) * 2018-08-07 2020-02-13 富士電機株式会社 Charge/discharge device and power storage system
CN112098864A (en) * 2020-09-25 2020-12-18 Oppo广东移动通信有限公司 Leakage current detection method and device, electronic equipment and storage medium
CN112162166A (en) * 2020-09-25 2021-01-01 珠海智融科技有限公司 USB charging port no-load detection circuit and detection method thereof
CN112630678A (en) * 2020-12-11 2021-04-09 浪潮电子信息产业股份有限公司 Test system of mainboard core power supply
CN214380225U (en) * 2021-02-23 2021-10-08 深圳市晖耀电子有限公司 Portable wireless charger

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9350193B2 (en) * 2011-06-01 2016-05-24 Samsung Electronics Co., Ltd. Method and apparatus for detecting load fluctuation of wireless power transmission
KR102625423B1 (en) * 2018-01-15 2024-01-16 삼성전자 주식회사 Method for transmitting information of wireless charging stop reason and electronic device using the same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030189A (en) * 2007-03-09 2007-09-05 华为技术有限公司 Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface
CN103597423A (en) * 2011-06-16 2014-02-19 微软公司 Mobile device operations with battery optimization
CN103558483A (en) * 2013-11-18 2014-02-05 宁波钜隆电子科技有限公司 Charging equipment non-load detecting method and device, MCU and power supply equipment connecting wire
JP2020025404A (en) * 2018-08-07 2020-02-13 富士電機株式会社 Charge/discharge device and power storage system
CN112098864A (en) * 2020-09-25 2020-12-18 Oppo广东移动通信有限公司 Leakage current detection method and device, electronic equipment and storage medium
CN112162166A (en) * 2020-09-25 2021-01-01 珠海智融科技有限公司 USB charging port no-load detection circuit and detection method thereof
CN112630678A (en) * 2020-12-11 2021-04-09 浪潮电子信息产业股份有限公司 Test system of mainboard core power supply
CN214380225U (en) * 2021-02-23 2021-10-08 深圳市晖耀电子有限公司 Portable wireless charger

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种用于电容器早期故障在线检测系统的实现方法;李晓旭;谢明磊;杨文光;刘彦文;李海;王芳;齐向华;赵立强;安本迅;;信息化建设(05);全文 *
阈值可编程锂电池组过流保护电路设计;王永春;周泽坤;刘明亮;明鑫;张波;;微电子学(03);全文 *

Also Published As

Publication number Publication date
CN115902490A (en) 2023-04-04

Similar Documents

Publication Publication Date Title
CN106772091B (en) Method and device for updating battery capacity value and terminal
CN103914365B (en) Method and device for acquiring power consumption of mobile terminal application
US9537337B2 (en) Selecting a configuration of coils in response to a multi-coil wireless charging system initiating charging
CN104978300B (en) Mobile terminal and its detection method being connect with external equipment and device
US10983633B2 (en) Key detecting method and apparatus
CN108287312B (en) Sorting method, system and device for retired batteries
CN103033758A (en) Display electric quantity value calibration method and device
CN110021792B (en) Charging control method and device, terminal equipment and computer storage medium
WO2018120771A1 (en) Battery target soc determining method and device
CN115902490B (en) Detection method and device of charging equipment, electronic equipment and storage medium
CN111740464A (en) Battery power compensation method, device, equipment and readable storage medium
JP2023101509A (en) Semiconductor device and method for detecting remaining amount of battery
US20210215763A1 (en) Method for improving accuracy of capacity measurement
CN114563753B (en) Method, device, equipment and computer readable storage medium for detecting power failure of electric energy meter
CN107704317A (en) Smart machine and its application management method and the device with store function
CN109376051A (en) Detect the method and terminal device of mobile device application program power consumption
Höpfner et al. On Measuring Smartphones' Software Energy Requirements.
KR102511224B1 (en) Fuel Gauge System for Measuring Amount of Current of Battery and Portable Electronic Device Including the Same
CN106772092B (en) Charging current setting system and method for obtaining battery voltage based on mobile terminal
CN113156319B (en) Residual electric quantity determining method, device, vehicle, medium and program product
JP2018200306A (en) Battery residual amount detection circuit, electronic apparatus using the same, and detection method of battery residual amount
CN111157907B (en) Detection method and device, charging method and device, electronic device and storage medium
CN111509810A (en) Lithium battery charging state detection method and device and storage medium
CN113010004A (en) Abnormal power consumption processing method and device and electronic equipment
CN110970947B (en) Charging method, terminal and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant