CN111896884B - Charging detection method and device - Google Patents

Charging detection method and device Download PDF

Info

Publication number
CN111896884B
CN111896884B CN202010760545.8A CN202010760545A CN111896884B CN 111896884 B CN111896884 B CN 111896884B CN 202010760545 A CN202010760545 A CN 202010760545A CN 111896884 B CN111896884 B CN 111896884B
Authority
CN
China
Prior art keywords
adapter
charging
detection information
charging detection
terminal equipment
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
CN202010760545.8A
Other languages
Chinese (zh)
Other versions
CN111896884A (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.)
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 CN202010760545.8A priority Critical patent/CN111896884B/en
Publication of CN111896884A publication Critical patent/CN111896884A/en
Application granted granted Critical
Publication of CN111896884B publication Critical patent/CN111896884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • 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/56Testing of electric apparatus
    • 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/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
    • 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/00047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with provisions for charging different types of batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/20Charging or discharging characterised by the power electronics converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The disclosure relates to the technical field of electronic equipment, and particularly provides a charging detection method and device, wherein the method comprises the following steps: determining a first adapter among a plurality of power adapters such that a terminal device is charged through the first adapter; acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification; determining a second adapter different from the first adapter among the plurality of power adapters in response to the switching signal, and switching the first adapter to the second adapter so that the terminal device is charged through the second adapter; and continuing to perform the operation of acquiring the charging detection information until the charging detection information of each of the plurality of power adapters is verified. The method can switch and detect various adapters, so that the charging detection of the terminal equipment is more comprehensive and sufficient.

Description

Charging detection method and device
Technical Field
The disclosure relates to the technical field of electronic equipment, in particular to a charging detection method and device.
Background
Currently, in order to meet the portable demand, terminal devices generally have functions of charging and storing electricity. After the electronic device is designed, it must be tested for multiple functions and performance, one of which is the charging performance test.
In the related art, only one adapter, i.e., a device-labeled power adapter, is usually tested when charging a terminal device. However, in the use scenario of the terminal device, various types of adapters are often faced, and thus the charge detection in the related art is difficult to satisfy the use requirement.
Disclosure of Invention
In order to solve the technical problem that the charging detection in the related art is difficult to meet the requirement of the use scene, the embodiment of the disclosure provides a charging detection method, a device and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a charging detection method, including:
determining a first adapter among a plurality of power adapters such that a terminal device is charged through the first adapter;
acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification;
determining a second adapter different from the first adapter among the plurality of power adapters in response to the switching signal, and switching the first adapter to the second adapter so that the terminal device is charged through the second adapter;
and continuing to perform the operation of acquiring the charging detection information until the charging detection information of each of the plurality of power adapters is verified.
In some embodiments, the charge detection information includes a charge current, a charge voltage, and a charge type; acquiring charging detection information of the terminal equipment during charging comprises the following steps:
acquiring a power signal and a control signal when the terminal equipment is charged;
and obtaining the charging current and the charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
In some embodiments, switching the first adapter to a second adapter includes:
controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter;
and controlling a signal line change-over switch to change a first signal line connected with the terminal equipment by the first adapter into a second signal line connected with the terminal equipment by the second adapter.
In some embodiments, acquiring charging detection information when the terminal device is charged, and determining that the charging detection information is verified, includes:
acquiring a display image containing the charging detection information; the display image is an image displayed on a display screen of the terminal equipment;
and carrying out image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes recognition.
In some embodiments, acquiring charging detection information when the terminal device is charged, and determining that the charging detection information is verified, includes:
receiving charging detection information sent by the terminal equipment;
and when the charging detection information is confirmed to be the same as the prestored target charging information corresponding to the current charging adapter, determining that the charging detection information passes verification.
In a second aspect, embodiments of the present disclosure provide a charging detection apparatus, including:
a determining module for determining a first adapter among a plurality of power adapters so that a terminal device is charged through the first adapter;
the acquisition module is used for acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification;
a switching module configured to determine a second adapter different from a first adapter among the plurality of power adapters in response to the switching signal, and switch the first adapter to the second adapter so that the terminal device is charged through the second adapter;
the acquisition module is further configured to continue to perform an operation of acquiring the charging detection information until the charging detection information of each of the plurality of power adapters is verified.
In some embodiments, the charge detection information includes a charge current, a charge voltage, and a charge type; the acquiring module is specifically configured to, when configured to acquire charging detection information when the terminal device is charged:
acquiring a power signal and a control signal when the terminal equipment is charged;
and obtaining the charging current and the charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
In some embodiments, the switching module, when configured to switch the first adapter to the second adapter, is specifically configured to:
controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter;
and controlling a signal line change-over switch to change a first signal line connected with the terminal equipment by the first adapter into a second signal line connected with the terminal equipment by the second adapter.
In some embodiments, the acquiring module is configured to, when configured to acquire charging detection information when the terminal device is charged, and determine that the charging detection information passes verification, specifically:
acquiring a display image containing the charging detection information; the display image is an image displayed on a display screen of the terminal equipment;
and carrying out image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes recognition.
In some embodiments, the acquiring module is configured to, when configured to acquire charging detection information when the terminal device is charged, and determine that the charging detection information passes verification, specifically:
receiving charging detection information sent by the terminal equipment;
and when the charging detection information is confirmed to be the same as the prestored target charging information corresponding to the current charging adapter, determining that the charging detection information passes verification.
In a third aspect, embodiments of the present disclosure provide a charging detection apparatus, including:
a processor;
one end of the change-over switch is connected with the plurality of power adapters, the other end of the change-over switch is suitable for being connected with terminal equipment, and the control end of the change-over switch is in communication connection with the processor;
a memory storing computer readable instructions readable by the processor, which when read, performs the method according to any of the embodiments of the first aspect.
In some embodiments, the apparatus further comprises:
and the image acquisition device is used for acquiring the display image containing the charging detection information.
In a fourth aspect, the disclosed embodiments provide a storage medium storing computer readable instructions for causing a computer to perform the method according to any one of the embodiments of the first aspect.
The charging detection method of the embodiment of the disclosure comprises the steps of determining a first adapter in a plurality of power adapters, enabling terminal equipment to be charged through the first adapter, obtaining charging detection information when the terminal equipment is charged, after the fact that the charging detection information is confirmed to pass verification, indicating that the charging function of the first adapter is normal, switching the terminal equipment into a second adapter for charging according to a generated switching signal, continuously obtaining the charging detection information of the second adapter, and repeatedly executing the obtaining detection operation until each adapter passes verification. The method can switch and detect various adapters, so that the charging detection of the terminal equipment is more comprehensive and sufficient, the use requirement of the equipment is met, the switching detection of the various adapters can be realized through single plug-and-play, the charging detection flow is greatly simplified, and the detection efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the prior art, the drawings that are required in the detailed description or the prior art will be briefly described, it will be apparent that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to the drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic structural view of a charge detection device according to some embodiments of the present disclosure.
Fig. 2 is a flow chart of a charge detection method in accordance with some embodiments of the present disclosure.
Fig. 3 is a flow chart of a charge detection method according to other embodiments of the present disclosure.
Fig. 4 is a flow chart of a charge detection method in accordance with further embodiments of the present disclosure.
Fig. 5 is a flow chart of a charge detection method in accordance with further embodiments of the present disclosure.
Fig. 6 is a schematic structural view of a charge detection device according to other embodiments of the present disclosure.
Fig. 7 is a schematic structural view of a charge detection device according to still other embodiments of the present disclosure.
Fig. 8 is a block diagram of a charge detection device according to some embodiments of the present disclosure.
Fig. 9 is a block diagram of a computer system suitable for implementing the charge detection method of the present disclosure.
Detailed Description
The following description of the embodiments of the present disclosure will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure. In addition, technical features related to different embodiments of the present disclosure described below may be combined with each other as long as they do not make a conflict with each other.
The charging detection of the terminal device refers to the detection of the charging function of the terminal device after the terminal device is designed, such as the detection of the charging current, the charging voltage and the charging type of the terminal device, so as to determine whether the support of the terminal device to the power adapter meets the requirement standard.
In the related art, in the device charging detection stage, detection is often performed only for a power adapter to which the device is assigned. For example, for a terminal device such as a smart phone, a tablet, etc., which is typically accompanied by a standard power adapter, it is desirable for the user to charge the device through the standard adapter, so that in the charge detection phase, charge detection is typically only performed for the standard adapter.
In practical use scenarios, however, users often need to charge devices using multiple types of adapters whose charging voltages, currents, and charging protocols are not guaranteed to be exactly the same as the standard adapter. Therefore, in the related art, the charging detection of the terminal device is not sufficiently comprehensive, and once the user faces to the charging failure of some adapters, the user experience is greatly reduced, and even loss is caused to the user.
Based on the above-mentioned drawbacks of the related art, the embodiments of the present disclosure provide a charging detection apparatus and method. A schematic structural diagram of a charge detection device in some embodiments of the present disclosure is shown in fig. 1, and the charge detection device of the present disclosure is described below with reference to fig. 1.
As shown in fig. 1, in some embodiments, a charge detection apparatus of an embodiment of the present disclosure includes a controller 210 and a switch. In one example, the controller 200 and the switch are disposed on a motherboard 200, such as a PCB board (Printed Circuit Board ).
The controller 210 may act as a data receiving and processing core of the device that may be used to effect the receipt, operation, and transmission of data to effect the method steps in one or more of the embodiments described below. The controller 210 of the present disclosure may have various embodiments, and thus various implementation principles, and will be described in detail below, which is not described in detail herein.
The change-over switches include a signal line change-over switch 221 and a power line change-over switch 222. Taking the terminal device 100 as a mobile phone as an example, when the mobile phone is charged, the power line is used as a main power supply line to charge the mobile phone, and information such as charging current, charging voltage and the like, for example, a VBUS line on the USB adapter, can be obtained by detecting the power line signal. The signal line may transmit a charging control signal to the device, and information such as a charging type may be obtained by detecting the signal line, for example, a charging protocol of the Power adapter may be obtained, including a QC (Quick Charge) protocol, a PD (Power Delivery) protocol, or other proprietary protocols.
Accordingly, as shown in fig. 1, the signal line changeover switch 221 has input terminals connected to the signal lines of the plurality of power adapters, respectively, and output terminals connected to the terminal device 100. And the input terminals of the power line changeover switch 222 are respectively connected to the power lines of the plurality of power adapters, and the output terminals are connected to the terminal device 100.
It will be appreciated that in the example of fig. 1, only two power adapters, namely, a first adapter 231 and a second adapter 232, are shown for clarity of the drawing. While in other embodiments, the power adapters of the present disclosure may be any number greater than 1, such as 3, 5, 10, etc., as may be desired by one of ordinary skill in the art, and the present disclosure is not limited in this regard.
The charge detection method in some embodiments of the present disclosure will be specifically described below with reference to the flowchart of fig. 2 on the basis of the example of fig. 1, and the following method may be executed by the controller 210.
As shown in fig. 2, in some embodiments, the charge detection method of the present disclosure includes:
s201, determining a first adapter in a plurality of power adapters so that the terminal equipment is charged through the first adapter.
Specifically, at the time of detecting the charging of the terminal device 100, the terminal device 100 is connected to the detecting means. The first adapter 231 for charging the terminal device 100 is first determined, that is, the power line and the signal line of the first adapter 231 are connected to the terminal device 100 by controlling the change-over switch, while the other adapters are disconnected from the terminal device 100, so that the power supply charges the terminal device 100 through the first adapter 231.
S202, acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification.
Specifically, the charge detection information may refer to information of the terminal device 100 when charged through the first adapter 231, which may include related information of a charge current, a charge voltage, a charge protocol type, and the like.
In one example, the controller 210 may detect the power line signal and the signal line signal through the detection module, thereby obtaining the charge detection information.
In another example, the terminal device 100 may obtain the charge detection information by detecting the power line signal and the signal line signal, and the controller 210 receives the charge detection information from the terminal device 100 by wireless or wired communication.
In still another example, the terminal device 100 may obtain the charge detection information by detecting the power line signal and the signal line signal, and the charge detection information may be displayed on a display screen of the device, and the controller 210 may obtain an image containing the charge detection information through the image capturing apparatus.
It will be appreciated that the manner in which the charge detection information is obtained is not limited to the examples described above, but may be any other suitable manner, which is not enumerated by the present disclosure.
After the charging detection information is acquired, the charging detection information needs to be verified to determine whether the charging detection information meets the corresponding charging requirement standard.
In one example, the obtained charging detection information may be compared with the pre-stored target charging information of the first adapter 231 to verify, and if the charging detection information is the same as the target charging information, it indicates that the charging performance of the terminal device 100 and the first adapter 231 is normal, that is, the charging detection information is verified to pass. Otherwise, it indicates that the charging performance of the terminal device 100 and the first adapter 231 fails, that is, the verification of the charging detection information fails.
In another example, the obtained display image including the charging detection information may be subjected to image recognition, so that the recognition result is compared with the pre-stored result, and if the image recognition verification is passed, it means that the charging performance of the terminal device 100 and the first adapter 231 is normal, that is, the charging detection information verification is passed. Otherwise, it indicates that the charging performance of the terminal device 100 and the first adapter 231 fails, that is, the verification of the charging detection information fails.
After the authentication of the charging detection information when the terminal device 100 is charged through the first adapter 231 is passed, it is necessary to continue the switching authentication of the other adapters, thereby generating a switching signal. Otherwise, if the verification of the charging detection information fails, an alarm can be sent out through a display device or a loudspeaker device and the like to prompt that the charging fault exists.
S203, responding to the switching signal, determining a second adapter different from the first adapter in the plurality of power adapters, and switching the first adapter to the second adapter so that the terminal equipment is charged through the second adapter.
Specifically, after the switch signal is generated, it indicates that the first adapter 231 passes the verification, and it is necessary to continue to verify the other power adapters. In the example of fig. 1, in response to the switching signal, the controller 210 controls the signal line switching switch 221 to switch the signal line of the first adapter 231 to the signal line of the second adapter 232, while the controller 210 controls the power line switching switch 222 to switch the power line of the first adapter 231 to the power line of the second adapter 232. So that terminal device 100 switches to charge through second adapter 232.
S204, the operation of acquiring the charging detection information is continuously executed until the charging detection information of each of the plurality of power adapters is verified.
Specifically, after switching to the charging of the second adapter 232, the charging detection information when the terminal device 100 is charged through the second adapter 232 is continuously detected, and it is determined whether or not the charging detection information is authenticated. If the verification is passed, it indicates that the charging performance of the terminal device 100 and the second adapter 232 are adapted normally, and the next adapter to be verified is continuously switched. If the verification fails, a failure alarm may be issued indicating that there is a failure in the charging capabilities of the terminal device and the second adapter 232.
In this step, the process of acquiring and verifying the charging detection information and switching the adapter is referred to step S203, which is not described herein.
Until all the power adapters pass verification, the charging supportability and performance of the terminal device 100 and all the adapters are normal, and a prompt of passing the device detection can be sent out, so that the next terminal device is switched. If any adapter fails to verify, the terminal device 100 detects that there is a fault in charging performance, and the detection can be stopped, and a fault alarm is sent.
According to the charging detection method, when the terminal equipment is charged, the automatic switching detection can be performed on various adapters, so that the charging detection of the terminal equipment is more comprehensive and sufficient, the use requirement of the equipment is met, the switching detection of the various adapters can be realized through single plug-and-pull, the charging detection flow is greatly simplified, and the detection efficiency is improved.
In some embodiments, the charge detection information includes a charge current, a charge voltage, and a charge type. The charging type may represent a charging protocol between the terminal device 100 and the power adapter, utilizing QC protocol, PD protocol, and other proprietary protocols. As shown in fig. 3, in some embodiments, acquiring the charge detection information includes:
s301, acquiring a power supply signal and a control signal when the terminal equipment is charged.
S302, obtaining charging current and charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
Specifically, as shown in fig. 1, a power supply signal is obtained by detecting a power supply line, and a charging current and a charging voltage at the time of charging are obtained by processing the power supply signal. Meanwhile, a control signal is obtained through the detection signal line, and the control signal is processed to obtain the charging type, such as a charging protocol, during charging.
As shown in fig. 4, in some embodiments, in the step S203, switching the first adapter to the second adapter includes:
s401, controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter.
S402, controlling a signal line change-over switch to change over a first signal line connected with the terminal equipment by the first adapter to a second signal line connected with the terminal equipment by the second adapter.
Specifically, as shown in fig. 1, when switching from the first adapter 231 to the second adapter 232, the controller 210 controls the signal line switching switch 221 to switch the signal line of the first adapter 231 to the signal line of the second adapter 232, and at the same time, the controller 210 controls the power line switching switch 222 to switch the power line of the first adapter 231 to the power line of the second adapter 232. So that terminal device 100 switches to charge through second adapter 232.
As shown in fig. 5, in some embodiments, when verifying the charge detection information in the above step S202, it may include:
s501, a display image containing charging detection information is acquired, the display image being an image displayed on a display screen of a terminal device.
Specifically, the terminal device 100 may detect the charging state at the time of charging, and thereby display the detected charging detection information on its own display screen. For example, information such as the current charging current, charging voltage, and charging type is displayed on a display screen.
In one example, as shown in fig. 6, the controller 210 may acquire a display image of the terminal device 100 through the image acquisition device 240, for example, acquire a display screen of the terminal device 100 using an industrial camera, thereby obtaining the display image.
In another example, the terminal device 100 may acquire a display image of itself, such as a screen shot, etc., according to the current display information and transmit the display image to the controller 210 by wireless or wired communication.
S502, carrying out image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes the recognition.
Specifically, in one example, the display image may be identified using an image recognition technique, resulting in a recognition result, such as charge detection information contained in the display image. And comparing and verifying according to the identification result and the prestored information, and determining that the charging detection information passes the verification when the identification is passed.
It should be noted that, the controller 210 in the embodiment of the present disclosure may be implemented in various ways as a processing core of the device, and the execution subject of the method in the embodiment may be different in different implementations. For example, the processing core of the controller 210 may be a processor internal to the apparatus or a processor external to the apparatus, such as a processor of a terminal device. The following is a detailed description with reference to examples.
In one example, the controller 210 includes a processor and memory integrated on the motherboard 200. The processor may be of any type, a processor having one or more processing cores. It may perform single-threaded or multi-threaded operations for parsing instructions to perform operations such as fetching data, performing logical operation functions, and delivering operational processing results.
The memory may include a non-volatile computer-readable storage medium, such as at least one magnetic disk storage device, a flash memory device, a distributed storage device remotely located from the processor, or other non-volatile solid-state storage device. The memory may have program storage areas for storing non-volatile software programs, non-volatile computer-executable programs, and modules which are called by the processor to cause the processor to perform one or more of the method steps of the embodiments described above. The memory may also include a volatile random access medium, or a storage portion such as a hard disk, as a data storage area for storing the result of the arithmetic processing and the data issued and outputted by the processor.
The controller 210 may further include a communication module for establishing a wireless or wired communication connection with the terminal device 100, so that the processor receives the charge detection information transmitted from the terminal device 100 through the communication module. For example, the communication module is a wireless communication module such as a Wifi module or a bluetooth module, or a wired communication module with a data transmission interface.
In this example, the method steps in any of the embodiments described above may be performed by a processor of the controller 210.
In yet another example, the controller 210 includes a control terminal, such as a control chip, that can establish a communication connection with the terminal device 100 through the above-mentioned communication module, and the method steps in the embodiment of the present disclosure are performed by the processor of the terminal device 100.
Specifically, in performing the charge detection, the processor of the terminal device 100 determines the first adapter among the plurality of power adapters and transmits a control signal to the control terminal of the controller 210, so that the control terminal switches the first adapter to perform the charge according to the control signal. The processor of the terminal device acquires charge detection information at the time of charging, verifies the charge detection information, and after the verification is passed, sends a control signal for switching the second adapter to the control terminal of the controller 210, so that the control terminal switches the first adapter 231 to the second adapter 232 according to the control signal. The processor of the terminal device 100 continues to perform the operation of acquiring the charge detection information until all the power adapters are authenticated or a certain adapter fails to be authenticated.
In yet another example, as shown in fig. 7, the controller 210 includes a control terminal, such as a control chip, that establishes a communication connection with the PC terminal 250 in a wireless or wired manner, so that the method in the above embodiment may be performed by a processor of the PC terminal 250.
Specifically, in the charging detection, the processor of the PC side 250 determines the first adapter from among the plurality of power adapters and sends a control signal to the control side of the controller 210, so that the control side switches the first adapter to charge according to the control signal. The processor of the PC side 250 may acquire a display image including the charging detection information through the image acquisition device 240, and after the processor of the PC side 250 recognizes the display image, the processor sends a control signal for switching the second adapter to the control side of the controller 210, so that the control side switches the first adapter 231 to the second adapter 232 according to the control signal. The processor of the PC side 250 continues to perform the operation of acquiring the charge detection information until all the power adapters are authenticated or a certain adapter fails to authenticate.
From the foregoing, it will be appreciated that the processor body for performing the detection method in the embodiments of the present disclosure may be any suitable embodiment, and the present disclosure is not limited thereto. Those skilled in the art will certainly appreciate and practice the present disclosure fully based on the above disclosure, and will not be described in detail.
In addition, in the above embodiment, since the terminal device 100 generally has a display screen, the charging detection information may be intuitively displayed by directly using the display screen of the terminal device 100, so that the operator can observe the charging detection information conveniently. However, in other embodiments, the detection device of the present disclosure is not limited thereto, and for example, information may be displayed on the display screen of the PC end 250; for another example, a display module may be added to the main board 200 to display information; etc. The present disclosure is not limited in this regard.
According to the charging detection method, when the terminal equipment is charged, the automatic switching detection can be performed on various adapters, so that the charging detection of the terminal equipment is more comprehensive and sufficient, the use requirement of the equipment is met, the switching detection of the various adapters can be realized through single plug-and-pull, the charging detection flow is greatly simplified, and the detection efficiency is improved.
Embodiments of the present disclosure also provide a charge detection apparatus, some embodiments of which are shown in fig. 8.
As shown in fig. 8, in some embodiments, the charge detection apparatus of the present disclosure includes:
a determining module 10 for determining a first adapter among the plurality of power adapters so that the terminal device is charged through the first adapter;
an acquisition module 20, configured to acquire charging detection information when the terminal device is charged, and generate a switching signal after determining that the charging detection information passes verification;
a switching module 30 for determining a second adapter different from the first adapter among the plurality of power adapters in response to the switching signal, and switching the first adapter to the second adapter so that the terminal device is charged through the second adapter;
the acquisition module 20 is further configured to continue to perform the operation of acquiring the charge detection information until the charge detection information of each of the plurality of power adapters is verified.
In some embodiments, the charge detection information includes a charge current, a charge voltage, and a charge type; the acquiring module 20, when configured to acquire charging detection information during charging of the terminal device, is specifically configured to:
acquiring a power supply signal and a control signal when terminal equipment is charged;
and obtaining charging current and charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
In some embodiments, the switching module 30, when used to switch a first adapter to a second adapter, is specifically configured to:
controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter;
and controlling a signal line change-over switch to change a first signal line connected with the terminal equipment by the first adapter into a second signal line connected with the terminal equipment by the second adapter.
In some embodiments, the acquiring module 20 is specifically configured to, when configured to acquire charging detection information when the terminal device is charged, and determine that the charging detection information passes verification:
acquiring a display image containing charging detection information; the display image is an image displayed on a display screen of the terminal device;
and carrying out image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes the recognition.
In some embodiments, the acquiring module 20 is specifically configured to, when configured to acquire charging detection information when the terminal device is charged, and determine that the charging detection information passes verification:
receiving charging detection information sent by terminal equipment;
and when the charging detection information is confirmed to be the same as the prestored target charging information corresponding to the current charging adapter, determining that the charging detection information passes verification.
The disclosed embodiments also provide a storage medium storing computer readable instructions for causing a computer to perform the method described in any of the above embodiments.
Specifically, fig. 9 shows a schematic structural diagram of a computer system 600 suitable for implementing the methods of the present disclosure, and by the system shown in fig. 9, the corresponding functions of the controller and the storage medium described above are implemented.
As shown in fig. 9, the computer system 600 includes a processor (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the above method processes may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method described above. In such an embodiment, the computer program can be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be apparent that the above embodiments are merely examples for clarity of illustration and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the present disclosure.

Claims (7)

1. A charging detection method, characterized by comprising:
determining a first adapter among a plurality of power adapters such that a terminal device is charged through the first adapter;
acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification;
determining a second adapter different from the first adapter among the plurality of power adapters in response to the switching signal, and switching the first adapter to the second adapter so that the terminal device is charged through the second adapter;
continuing to execute the operation of acquiring the charging detection information until the charging detection information of each of the plurality of power adapters is verified;
acquiring charging detection information when the terminal equipment is charged, and determining that the charging detection information passes verification comprises the following steps:
acquiring a display image containing the charging detection information; the display image is an image displayed on a display screen of the terminal equipment;
performing image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes recognition;
the charging detection information comprises a charging current, a charging voltage and a charging type; acquiring charging detection information of the terminal equipment during charging comprises the following steps:
acquiring a power signal and a control signal when the terminal equipment is charged;
and obtaining the charging current and the charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
2. The method of claim 1, wherein switching the first adapter to a second adapter comprises:
controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter;
and controlling a signal line change-over switch to change a first signal line connected with the terminal equipment by the first adapter into a second signal line connected with the terminal equipment by the second adapter.
3. A charging detection apparatus, characterized by comprising:
a determining module for determining a first adapter among a plurality of power adapters so that a terminal device is charged through the first adapter;
the acquisition module is used for acquiring charging detection information when the terminal equipment is charged, and generating a switching signal after determining that the charging detection information passes verification;
a switching module configured to determine a second adapter different from a first adapter among the plurality of power adapters in response to the switching signal, and switch the first adapter to the second adapter so that the terminal device is charged through the second adapter;
the acquisition module is further configured to continue to perform an operation of acquiring the charging detection information until the charging detection information of each of the plurality of power adapters is verified;
the acquisition module is used for:
acquiring a display image containing the charging detection information; the display image is an image displayed on a display screen of the terminal equipment;
performing image recognition according to the display image, and determining that the charging detection information passes verification when the display image passes recognition;
the charging detection information comprises a charging current, a charging voltage and a charging type; the acquiring module is specifically configured to, when configured to acquire charging detection information when the terminal device is charged:
acquiring a power signal and a control signal when the terminal equipment is charged;
and obtaining the charging current and the charging voltage according to the power supply signal, and obtaining the charging type according to the control signal.
4. The apparatus of claim 3, wherein the switching module, when configured to switch the first adapter to the second adapter, is specifically configured to:
controlling a power line change-over switch to change a first power line connected with the terminal equipment by the first adapter into a second power line connected with the terminal equipment by the second adapter;
and controlling a signal line change-over switch to change a first signal line connected with the terminal equipment by the first adapter into a second signal line connected with the terminal equipment by the second adapter.
5. A charging detection apparatus, characterized by comprising:
a processor;
one end of the change-over switch is connected with the plurality of power adapters, the other end of the change-over switch is suitable for being connected with terminal equipment, and the control end of the change-over switch is in communication connection with the processor;
memory storing computer readable instructions readable by the processor, which when read, performs the method of claim 1 or 2.
6. The apparatus as recited in claim 5, further comprising:
and the image acquisition device is used for acquiring the display image containing the charging detection information.
7. A computer-readable storage medium, having stored thereon computer instructions for causing a computer to perform the method according to claim 1 or 2.
CN202010760545.8A 2020-07-31 2020-07-31 Charging detection method and device Active CN111896884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010760545.8A CN111896884B (en) 2020-07-31 2020-07-31 Charging detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010760545.8A CN111896884B (en) 2020-07-31 2020-07-31 Charging detection method and device

Publications (2)

Publication Number Publication Date
CN111896884A CN111896884A (en) 2020-11-06
CN111896884B true CN111896884B (en) 2023-11-14

Family

ID=73183901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010760545.8A Active CN111896884B (en) 2020-07-31 2020-07-31 Charging detection method and device

Country Status (1)

Country Link
CN (1) CN111896884B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113917274A (en) * 2021-10-25 2022-01-11 展讯通信(上海)有限公司 Charging test board and charging test system
CN114050634B (en) * 2022-01-12 2022-06-17 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system
CN115166538B (en) * 2022-06-30 2024-06-25 东莞新能安科技有限公司 Charging detection method, device, equipment and product

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201014323A (en) * 2008-09-19 2010-04-01 Chi Mei Comm Systems Inc System and method for testing current of a mobile device
CN201666925U (en) * 2009-08-17 2010-12-08 康佳集团股份有限公司 Detector, mobile phone with detecting function and charger assembly
CN202600077U (en) * 2012-05-30 2012-12-12 青岛海信电器股份有限公司 Multi-board combined test board and test system of remote controller
CN103645400A (en) * 2013-12-10 2014-03-19 Tcl通讯(宁波)有限公司 Charger detection system and charging detection method thereof
CN104808104A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Interface plugging anomaly detection circuit and method
CN106877462A (en) * 2017-04-21 2017-06-20 维沃移动通信有限公司 A kind of method and charger for detecting charged state
CN107706977A (en) * 2017-10-16 2018-02-16 广东欧珀移动通信有限公司 The detection method and charging device of a kind of charging current
CN107991571A (en) * 2016-10-26 2018-05-04 中兴通讯股份有限公司 It is a kind of to detect the abnormal method, apparatus of charging and power supply adaptor
CN208257455U (en) * 2018-05-15 2018-12-18 珠海贺纳电子科技有限公司 A kind of charging circuit and power circuit
CN109283395A (en) * 2018-11-30 2019-01-29 中国科学院上海微系统与信息技术研究所 A kind of multichannel resistance test system and its test method
CN109507507A (en) * 2018-11-20 2019-03-22 Oppo(重庆)智能科技有限公司 Adapter detection method, device, storage medium, test board and detection system
WO2019237330A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Adapter aging detection method and apparatus for device to be charged
CN110774906A (en) * 2019-11-01 2020-02-11 徐州晶茂电子科技有限公司 Electric vehicle charger with good safety performance
CN111263892A (en) * 2018-09-30 2020-06-09 Oppo广东移动通信有限公司 Method, device and equipment for detecting functions of adapter and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10634731B2 (en) * 2010-04-15 2020-04-28 FedEx Supply Chain Logistics & Electronics, Inc. Systems and methods for testing power supplies
US8988098B2 (en) * 2010-04-15 2015-03-24 Atc Logistics & Electronics, Inc. Systems and methods for modular testing of chargers
CN102437623B (en) * 2010-09-29 2014-07-02 联想(北京)有限公司 Adapter, terminal device, USB (universal serial bus) connection device and charging base station
JP7487166B2 (en) * 2018-09-29 2024-05-20 オッポ広東移動通信有限公司 Adapter test apparatus, method and computer storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201014323A (en) * 2008-09-19 2010-04-01 Chi Mei Comm Systems Inc System and method for testing current of a mobile device
CN201666925U (en) * 2009-08-17 2010-12-08 康佳集团股份有限公司 Detector, mobile phone with detecting function and charger assembly
CN202600077U (en) * 2012-05-30 2012-12-12 青岛海信电器股份有限公司 Multi-board combined test board and test system of remote controller
CN103645400A (en) * 2013-12-10 2014-03-19 Tcl通讯(宁波)有限公司 Charger detection system and charging detection method thereof
CN104808104A (en) * 2014-01-28 2015-07-29 广东欧珀移动通信有限公司 Interface plugging anomaly detection circuit and method
CN107991571A (en) * 2016-10-26 2018-05-04 中兴通讯股份有限公司 It is a kind of to detect the abnormal method, apparatus of charging and power supply adaptor
CN106877462A (en) * 2017-04-21 2017-06-20 维沃移动通信有限公司 A kind of method and charger for detecting charged state
CN107706977A (en) * 2017-10-16 2018-02-16 广东欧珀移动通信有限公司 The detection method and charging device of a kind of charging current
CN208257455U (en) * 2018-05-15 2018-12-18 珠海贺纳电子科技有限公司 A kind of charging circuit and power circuit
WO2019237330A1 (en) * 2018-06-15 2019-12-19 Oppo广东移动通信有限公司 Adapter aging detection method and apparatus for device to be charged
CN111263892A (en) * 2018-09-30 2020-06-09 Oppo广东移动通信有限公司 Method, device and equipment for detecting functions of adapter and storage medium
CN109507507A (en) * 2018-11-20 2019-03-22 Oppo(重庆)智能科技有限公司 Adapter detection method, device, storage medium, test board and detection system
CN109283395A (en) * 2018-11-30 2019-01-29 中国科学院上海微系统与信息技术研究所 A kind of multichannel resistance test system and its test method
CN110774906A (en) * 2019-11-01 2020-02-11 徐州晶茂电子科技有限公司 Electric vehicle charger with good safety performance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
车载快速充电适配器的安全与标准的研究;王成涛;《检验检疫学刊》;全文 *

Also Published As

Publication number Publication date
CN111896884A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN111896884B (en) Charging detection method and device
US11482871B2 (en) Electronic device and charging control method therefor
JP5409220B2 (en) Electronic device and power supply control method
US20140009120A1 (en) Method for charging battery and an electronic device thereof
EP2784661B1 (en) Computer program product, information processing method, and information processing apparatus
KR20200017305A (en) Electronic device having electronic pen and method for controlling communication connection between electronic device and electronic pen
EP3506050B1 (en) Electronic device with usb cable type detection and control method thereof
US9924058B2 (en) Information processing apparatus that controls power supply to different destinations, method of controlling the same, and storage
KR20210014925A (en) Electronic device and method of controlling frequency interference thereof
US11977618B2 (en) Electronic device and control method
KR20140126491A (en) power supply circuit and method for controlling thereof
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
CN111526289A (en) Shooting method and device, electronic equipment and readable storage medium
CN103905611A (en) Image acquisition unit compatible matching method and electronic device
KR20200101096A (en) Electronic device for controlling wireless charging and method for controlling thereof
US11599130B2 (en) Power receiving apparatus and control method
JP6491760B2 (en) Interface identification method and terminal
CN104850203A (en) Electronic apparatus reset method and electronic apparatus
KR20210033758A (en) Method for power supply and an electronic device thereof
CN110837450A (en) USB TYPE-C docking station test method and device, electronic equipment and storage medium
US20220115866A1 (en) Power supply apparatus and control method
US10142497B2 (en) Image printing system, method in image processing apparatus, and storage medium
US11714770B2 (en) Relay device and method of controlling relay device
CN113347508B (en) External device communication circuit, external device communication connection method and intelligent terminal device
US12032422B2 (en) Power supplying apparatus that supplies power to external apparatus based on power flow information and the role of the power supplying apparatus and a method of controlling the same

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