A charging test system and method

By designing a charging test system that automatically switches multiple charging ports, the problem of manually switching charging ports in the prior art increases the complexity of testing, and the convenience and automation of charging tests are achieved.

CN114222018BActive Publication Date: 2025-03-28SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111521085.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2025-03-28
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

The existing charging test system requires manual switching of multiple charging ports, which increases the complexity and inconvenience of testing.

Method used

A charging test system is designed, including electronic devices, switch control modules, output modules and multiple charging ports. Charging tests are completed by automatically switching multiple charging ports, reducing manual operations.

Benefits of technology

It realizes automation of charging tests, improves the convenience and efficiency of testing, and does not require manual switching of charging ports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114222018B_ABST
    Figure CN114222018B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a charging test system and method. The method includes: the electronic device sends a start signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test, so that the switch control module responds to the start signal of the current charging port, controls the current charging port to be connected with the output module, and the current charging port charges the device under test through the output module, and the electronic device detects the device under test to obtain charging test information; when the electronic device determines that the serial number of the current charging port is less than the total number of multiple charging ports, the serial number of the current charging port is added by 1, and the electronic device continues to send the start signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test, so as to realize automatic switching of multiple charging ports to complete the charging test process, thereby improving the convenience of charging test.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The embodiments of the present invention relate to the field of charging technology, and in particular to a charging test system and method. [Background technology]

[0002] With the rapid development of portable electronic products, the output of rechargeable batteries has also increased greatly, which has led to an increase in battery varieties and an improvement in battery performance. Mobile phones are a common electronic product, and the charging function is often used in mobile phones. The realization of the charging function of mobile phones is inseparable from charging equipment. When mobile phone manufacturers test the charging compatibility and charging performance of mobile phones, charging equipment is indispensable. The charging function is a key function of mobile phones. The quality of the charging function will affect the use of mobile phones, so charging testing is very important.

[0003] In the prior art, when multiple charging ports in a charging device are used to test the charging compatibility of a mobile phone, most of the charging tests rely on manually switching the multiple charging ports, which increases the complexity of the charging test. [Summary of the invention]

[0004] In view of this, an embodiment of the present invention provides a charging test system and method to improve the convenience of charging test.

[0005] In a first aspect, an embodiment of the present invention provides a charging test system, the system comprising an electronic device, a switch control module, an output module and a plurality of charging ports;

[0006] The electronic device, the output module and the plurality of charging ports are connected to the switch control module;

[0007] The electronic device is also connected to the device under test;

[0008] The output module is also connected to the device under test.

[0009] In a possible implementation, the device under test includes a first port and a second port, the first port is used for data transmission, and the second port is used for charging;

[0010] The electronic device is connected to the first port, and the output module is connected to the second port.

[0011] In a second aspect, an embodiment of the present invention provides a charging test method, which is applied to an electronic device;

[0012] The method comprises:

[0013] According to the charging information of the device under test when the last charging port detected charged the device under test, a start signal of the current charging port is sent to the switch control module, so that the switch control module responds to the start signal of the current charging port and controls the current charging port to be connected with the output module, and the current charging port charges the device under test through the output module;

[0014] Detecting the device under test to obtain charging test information;

[0015] Determine whether the sequence number of the current charging port is less than or equal to the total number of the multiple charging ports;

[0016] If it is determined that the serial number of the current charging port is less than the total number of the multiple charging ports, the serial number of the current charging port is increased by 1, and the step of sending an opening signal of the current charging port to the switch control module according to the charging information of the device under test when the device under test is charged by the last charging port detected is executed;

[0017] If it is determined that the sequence number of the current charging port is equal to the total number of the multiple charging ports, the charging test is stopped.

[0018] In a possible implementation, the charging information includes the power level or charging duration of the device under test.

[0019] In a possible implementation manner, the charging test information includes charging current change information and / or charging voltage change information.

[0020] In a possible implementation, before sending a start signal of the current charging port to the switch control module based on the charging information of the device under test when the last charging port detected charged the device under test, the method includes:

[0021] Obtaining the current power of the device under test;

[0022] Determining whether the current power level is less than a first power level threshold;

[0023] If it is determined that the current power level is less than the first power level threshold, the step of sending an activation signal of the current charging port to the switch control module based on the charging information of the device under test when the last charging port detected charged the device under test is executed.

[0024] In a possible implementation, the method further includes:

[0025] If it is determined that the current power level is greater than or equal to the first power level threshold, a discharge instruction is sent to the device under test, so that the device under test discharges in response to the discharge instruction;

[0026] Detecting the amount of electricity after the device under test is discharged;

[0027] Determining whether the amount of electricity after the discharge is greater than a second amount threshold;

[0028] If it is determined that the amount of electricity after discharge is greater than the second amount threshold, the step of sending a discharge instruction to the device under test is performed.

[0029] In a possible implementation, the method further includes:

[0030] If it is determined that the amount of power after discharge is less than or equal to a second power threshold, the step of sending an activation signal of the current charging port to the switch control module according to the charging information corresponding to the last charging port detected is executed, and the second power threshold is less than the first power threshold.

[0031] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0032] One or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to perform the charging test method in the second aspect or any possible implementation of the second aspect.

[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the charging test method in the second aspect or any possible implementation of the second aspect.

[0034] In the technical solution provided in the embodiment of the present invention, the electronic device sends an activation signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test, so that the switch control module responds to the activation signal of the current charging port to control the current charging port to be connected with the output module, and the current charging port charges the device under test through the output module, and the electronic device detects the device under test to obtain charging test information; it is determined that the sequence number of the current charging port is less than or equal to the total number of multiple charging ports, and when the electronic device determines that the sequence number of the current charging port is less than the total number of multiple charging ports, the sequence number of the current charging port is increased by 1, and the electronic device continues to send the activation signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test; when the electronic device determines that the sequence number of the current charging port is equal to the total number of multiple charging ports, the charging test is stopped, and there is no need to rely on manual switching of multiple charging ports to complete the function of the charging test, and automatic switching of multiple charging ports to complete the charging test process is realized, thereby improving the convenience of the charging test.

Brief Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A schematic diagram of the structure of a charging test system provided by an embodiment of the present invention;

[0037] Figure 2 A flow chart of a charging test method provided by an embodiment of the present invention;

[0038] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention. [Specific implementation method]

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0042] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0043] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0044] The embodiment of the present invention provides a charging test system. Figure 1 A schematic diagram of a charging test system provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the system includes: an electronic device 11, a switch control module 13, an output module 14 and a plurality of charging ports, for example, the plurality of charging ports include charging port 1 to charging port 8. The electronic device 11, the output module 14 and the plurality of charging ports are connected to the switch control module 13; the electronic device 11 is also connected to the device under test 15; the output module 14 is also connected to the device under test 15.

[0045] In the embodiment of the present invention, the switch control module 13 , the output module 14 and a plurality of charging ports are integrated into the charging on / off board 12 .

[0046] In the embodiment of the present invention, the device under test 15 includes a first port 16 and a second port 17 , the first port 16 is used for data transmission, and the second port 17 is used for charging; the electronic device 11 is connected to the first port 16 , and the output module 14 is connected to the second port 17 .

[0047] In the embodiment of the present invention, the first port 16 is a UART port, and the second port 17 is a USB port. For example, the USB port includes but is not limited to B-5Pin, B-4Pin, B-8Pin, B-8Pin-2×4, Micro USB or Type-C.

[0048] Each step of the embodiment of the present invention may be performed by an electronic device, which includes but is not limited to a tablet computer, a portable PC, a desktop computer, etc.

[0049] The devices under test in the embodiments of the present invention include but are not limited to smart phones, tablet computers, wearable devices, etc.

[0050] In the technical solution of the charging test system provided in the embodiment of the present invention, the electronic device, the output module and the multiple charging ports are connected to the switch control module; the electronic device is also connected to the device under test, and the output module is also connected to the device under test. The switch control module, the output module and the multiple charging ports are integrated into the charging on-off board. The device under test includes a first port and a second port, the first port is used for data transmission, and the second port is used for charging; the electronic device is connected to the first port, and the output module is connected to the second port. The charging test system of the embodiment of the present invention adopts the above structure to realize automatic switching of multiple charging ports to complete the charging test process, without relying on manual switching of multiple charging ports to complete the charging test function, thereby improving the convenience of the charging test.

[0051] The embodiment of the present invention provides a charging test method, which can be based on Figure 1 The charging test system shown in is implemented as follows, Figure 2 A flow chart of a charging test method provided by an embodiment of the present invention, such as Figure 2 As shown, the method includes:

[0052] Step 101: The electronic device obtains the current power level of the device under test.

[0053] The electronic device is electrically connected to the device under test through the UART port, so the electronic device can detect the current power of the device under test through the UART port. For example, before any charging port charges the device under test, the electronic device can obtain the current power of the device under test through the UART port.

[0054] Step 102 , the electronic device determines whether the current power level is less than a first power level threshold, if so, executes step 103 ; if not, executes step 110 .

[0055] If the electronic device determines that the current power is less than the first power threshold, it indicates that the device under test can be charged and tested; if the electronic device determines that the current power is greater than or equal to the first power threshold, it indicates that the current power of the device under test is too high and the device under test can be discharged. For example, if the first power threshold is set to 90%, when the current power is 45%, the current power is less than 90%, and the device under test can be charged and tested, the electronic device can obtain complete charging information within the set charging time; when the current power is 97%, the current power is greater than 90%, and the current power of the device under test is too high. If the device under test is charged and tested at this time, the electronic device cannot obtain complete charging information within the set charging time, and the device under test can be discharged.

[0056] Step 103: The electronic device sends an activation signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charged the device under test.

[0057] The charging information includes the power level of the device under test or the charging time.

[0058] As an optional solution, the charging information includes the power of the device under test. If the charging information of the device under test reaches the set power, the electronic device sends a start signal of the current charging port to the switch control module. For example, the set power is 45%, the current charging port is charging port 2, and the power of the device under test reaches 45%, and the electronic device sends a start signal of charging port 2 to the switch control module.

[0059] As another optional solution, the charging information includes the charging time. If the charging time of the device under test reaches the set time, the electronic device sends a start signal of the current charging port to the switch control module. For example, if the set time is 5 minutes, the current charging port is charging port 3, and the charging time of the device under test reaches 5 minutes, the electronic device sends a start signal of charging port 3 to the switch control module.

[0060] Step 104: The switch control module controls the current charging port to be connected to the output module in response to the start signal of the current charging port.

[0061] The switch control module determines that the current charging port needs to be controlled to charge the device under test according to the start-up signal of the current charging port, and then controls the current charging port to be connected with the output module, so that the current charging port is electrically connected with the output module through the switch control module.

[0062] Step 105: The current charging port charges the device under test through the output module.

[0063] The device under test is connected to the output module via the USB port, so the current charging port charges the device under test via the switch control module, the output module and the USB port.

[0064] Step 106: The electronic device detects the device under test to obtain charging test information.

[0065] The charging test information includes the current charging voltage, current charging current, current battery power percentage and charging protocol type. When the charging port is charging the device under test, the electronic device can obtain the current charging voltage, current charging current, current battery power percentage and charging protocol type of the device under test through the UART port. Among them, the charging protocol type includes but is not limited to a dedicated charging port (Dedicated Charging Port, DCP), a standard downstream port (Standard Downstream Port, SDP) or a charging downstream port (Charging Downstream Port, CDP).

[0066] Step 107 , the electronic device determines whether the sequence number of the current charging port is less than or equal to the total number of the multiple charging ports. If so, step 108 is executed; if so, step 109 is executed.

[0067] If the electronic device determines that the sequence number of the current charging port is less than the total number of multiple charging ports, it indicates that there is a charging port that has not performed a charging test on the device under test; if the electronic device determines that the sequence number of the current charging port is equal to the total number of multiple charging ports, it indicates that all multiple charging ports have completed the charging test on the device under test. Figure 1 As shown, the multiple charging ports include charging port 1 to charging port 8, and the serial numbers of the multiple charging ports include 1 to 8, and the total number of the multiple charging ports is 8. For example, when the serial number of the current charging port is 3, the serial number 3 of the current charging port is less than 8, indicating that there is a charging port that has not performed a charging test on the device under test; when the serial number of the current charging port is 8, the serial number 8 of the current charging port is equal to 8, indicating that all charging ports have completed the charging test on the device under test.

[0068] Step 108 : The electronic device adds 1 to the serial number of the current charging port and executes step 103 .

[0069] When the serial number of the current charging port is 5, the electronic device adds 1 to the serial number of the current charging port, and the charging port with serial number 5 is changed to the previous charging port, and the charging port with serial number 6 is changed to the current charging port; when the serial number of the current charging port is 7, the electronic device adds 1 to the serial number of the current charging port, and the charging port with serial number 7 is changed to the previous charging port, and the charging port with serial number 8 is changed to the current charging port.

[0070] Step 109: The electronic device stops charging test.

[0071] When the electronic device determines that the sequence number of the current charging port is equal to the total number of multiple charging ports, it indicates that all multiple charging ports have completed the charging test on the device under test, and the charging test on the device under test is stopped. For example, when the sequence number of the current charging port is 8, it indicates that all of the 8 charging ports have completed the charging test on the device under test, and the charging test on the device under test is stopped.

[0072] Step 110: The electronic device sends a discharge instruction to the device under test.

[0073] The current power of the device under test is too high, so the device under test needs to be discharged to reduce the current power of the device under test.

[0074] Step 111: The device under test discharges in response to a discharge instruction, and the electronic device detects the amount of electricity of the device under test after discharge.

[0075] After receiving the discharge instruction sent by the electronic device, the device under test discharges, and the electronic device can detect the amount of electricity after the device under test is discharged.

[0076] Step 112 , the electronic device determines whether the amount of electricity after discharge is greater than a second electricity threshold value, if not, execute step 103 ; if yes, execute step 110 .

[0077] If the electronic device determines that the power after discharge is less than or equal to the second power threshold, it indicates that the power of the device under test meets the conditions for charging test and no discharge process is required; if the electronic device determines that the power after discharge is greater than the second power threshold, it indicates that the power of the device under test is too high and the device under test needs to continue to be discharged. For example, if the second power threshold is set to 10%, when the current power is 5%, the current power is less than 10%, then the power of the device under test meets the conditions for charging test and the device under test can be charged; when the current power is 45%, the current power is greater than 10%, and the device under test needs to continue to be discharged.

[0078] In the embodiment of the present invention, the first power threshold is greater than the second power threshold.

[0079] Combine the following Figure 1 , through a specific example Figure 2 The charging test method is described in detail in Figure 1 As shown, 8 charging ports are taken as an example for description, and the 8 charging ports are arranged in the order of serial numbers.

[0080] The electronic device obtains the current power of the device under test. If the current power is less than or equal to the second power threshold, the electronic device sends a start signal of the charging port 1 to the switch control module. The switch control module responds to the start signal of the charging port 1 and controls the charging port 1 to be connected with the output module. The charging port 1 charges the device under test through the output module, and the electronic device detects the device under test to obtain charging test information. After the charging port 1 charges the device under test for a set time, when the electronic device detects that the power of the device under test is higher than the second power threshold, it sends a closing signal of the charging port 1 to the switch control module to stop charging the device under test. The current power of the device under test is greater than the second power threshold, and the electronic device continues to send the start signal of the charging port 1 to the switch control module; the switch control module responds to the start signal of the charging port 1, controls the charging port 1 to be connected with the output module, and the charging port 1 charges the device under test through the output module. The electronic device detects the device under test and obtains charging test information. After charging port 1 charges the device under test for a set time, the electronic device sends a start signal of charging port 2 to the switch control module based on the charging information of the device under test when the charging port 1 is detected to charge the device under test, and charging port 1 stops charging the device under test. The switch control module responds to the start signal of charging port 2 and controls charging port 2 to be connected with the output module. Charging port 2 charges the device under test through the output module, and the electronic device detects the device under test to obtain charging test information. After charging port 2 completes charging, if the electronic device determines that the current power of the device under test is greater than or equal to the first power threshold, it sends a discharge instruction to the device under test, and the device under test discharges in response to the discharge instruction, and the electronic device detects the power of the device under test after discharge. The electronic device determines whether the power after discharge is greater than the second power threshold. If the electronic device determines that the power after discharge is greater than the second power threshold, it continues to send a discharge instruction to the device under test. If the electronic device determines that the amount of electricity after discharge is less than or equal to the second electricity threshold, the electronic device sends a start signal of charging port 3 to the switch control module according to the charging information of the device under test when the charging port 2 is detected to charge the device under test; the switch control module responds to the start signal of charging port 3, controls charging port 3 to be connected with the output module, and charging port 3 charges the device under test through the output module; the electronic device detects the device under test and obtains charging test information. The charging tests of charging ports 4 to 8 are completed in sequence according to the charging test method of charging port 3, and the charging test is stopped when charging port 8 completes charging the device under test.

[0081] In the technical solution of the charging test method provided in the embodiment of the present invention, the electronic device sends an activation signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test; the switch control module controls the current charging port to be connected with the output module in response to the activation signal of the current charging port; the current charging port charges the device under test through the output module, and the electronic device detects the device under test to obtain the charging test information; when the electronic device determines that the sequence number of the current charging port is less than the total number of multiple charging ports, the sequence number of the current charging port is increased by 1, and the electronic device continues to send the activation signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charges the device under test; when the electronic device determines that the sequence number of the current charging port is equal to the total number of multiple charging ports, the charging test is stopped. The embodiment of the present invention can realize automatic switching of multiple charging ports to complete the charging test process, without relying on manual switching of multiple charging ports to complete the charging test function, thereby improving the convenience of the charging test.

[0082] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is executed, the electronic device where the computer-readable storage medium is located is controlled to execute the embodiment of the above-mentioned charging test method.

[0083] An embodiment of the present invention provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to execute an embodiment of the above-mentioned charging test method.

[0084] Figure 3 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, the electronic device 2 of this embodiment includes: a processor 21, a memory 22, and a computer program 23 stored in the memory 22 and executable on the processor 21. When the computer program 23 is executed by the processor 21, the message processing method of the embodiment is implemented. To avoid repetition, they are not described one by one here.

[0085] The electronic device 2 includes, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that Figure 3 It is only an example of electronic device 2 and does not constitute a limitation of electronic device 2. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, a network device may also include input and output devices, network access devices, buses, etc.

[0086] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0087] The memory 22 may be an internal storage unit of the electronic device 2, such as a hard disk or memory of the electronic device 2. The memory 22 may also be an external storage device of the electronic device 2, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 2. Further, the memory 22 may also include both an internal storage unit of the electronic device 2 and an external storage device. The memory 22 is used to store computer programs and other programs and data required by network devices. The memory 22 may also be used to temporarily store data that has been output or is to be output.

[0088] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A charging test system, characterized in that: include: Electronic devices, switch control modules, output modules and multiple charging ports; The electronic device, the output module and the plurality of charging ports are connected to the switch control module; The electronic device is also connected to a device under test, wherein the device under test is a mobile terminal device; The output module is also connected to the device under test; The electronic device is used to send a start signal of the current charging port to the switch control module according to the charging information of the device under test when the last charging port detected charged the device under test; The switch control module is used to control the current charging port to be connected with the output module in response to the start signal of the current charging port, so that the current charging port charges the device under test through the output module; The electronic device is further used to detect the device under test to obtain charging test information, wherein the charging test information includes: charging current change information, charging voltage change information, battery power percentage change information and charging protocol change type; The electronic device is further used to determine whether the sequence number of the current charging port is less than or equal to the total number of the plurality of charging ports; The electronic device is further configured to, if it is determined that the serial number of the current charging port is less than the total number of the multiple charging ports, add 1 to the serial number of the current charging port, and execute the step of sending an opening signal of the current charging port to the switch control module according to the charging information of the device under test when the device under test was charged by the last charging port detected; If it is determined that the sequence number of the current charging port is equal to the total number of the multiple charging ports, the charging test is stopped.

2. The system according to claim 1, characterized in that The device under test comprises a first port and a second port, the first port is used for data transmission, and the second port is used for charging; The electronic device is connected to the first port, and the output module is connected to the second port.

3. A charging test method, characterized in that: An electronic device as claimed in any one of claims 1 to 2; The method comprises: According to the charging information of the device under test when the last charging port detected charged the device under test, a start signal of the current charging port is sent to the switch control module, so that the switch control module responds to the start signal of the current charging port to control the current charging port to be connected with the output module, and the current charging port charges the device under test through the output module, and the device under test is a mobile terminal device; Detecting the device under test to obtain charging test information, the charging test information including: charging current change information, charging voltage change information, battery power percentage change information and charging protocol change type; Determine that the sequence number of the current charging port is less than or equal to the total number of the multiple charging ports; If it is determined that the serial number of the current charging port is less than the total number of the multiple charging ports, the serial number of the current charging port is increased by 1, and the step of sending an opening signal of the current charging port to the switch control module according to the charging information of the device under test when the device under test is charged by the last charging port detected is executed; If it is determined that the sequence number of the current charging port is equal to the total number of the multiple charging ports, the charging test is stopped.

4. The method according to claim 3, characterized in that The charging information includes the power level or charging time of the device under test.

5. The method according to claim 3, characterized in that: Before sending the start signal of the current charging port to the switch control module based on the charging information of the device under test when the last charging port detected charged the device under test, the method includes: Obtaining the current power of the device under test; Determining whether the current power level is less than a first power level threshold; If it is determined that the current power level is less than the first power level threshold, the step of sending an activation signal of the current charging port to the switch control module based on the charging information of the device under test when the last charging port detected charged the device under test is executed.

6. The method according to claim 5, characterized in that Also includes: If it is determined that the current power level is greater than or equal to the first power level threshold, a discharge instruction is sent to the device under test, so that the device under test discharges in response to the discharge instruction; Detecting the amount of electricity after the device under test is discharged; Determining whether the amount of electricity after the discharge is greater than a second amount threshold; If it is determined that the amount of electricity after discharge is greater than the second amount threshold, the step of sending a discharge instruction to the device under test is performed.

7. The method according to claim 6, characterized in that Also includes: If it is determined that the amount of power after discharge is less than or equal to a second power threshold, the step of sending an activation signal of the current charging port to the switch control module according to the charging information corresponding to the last charging port detected is executed, and the second power threshold is less than the first power threshold.

8. An electronic device, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, enable the device to perform the charging test method described in any one of claims 3 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the charging test method according to any one of claims 3 to 7.

Citation Information

Patent Citations

  • Charge-discharge testing apparatus

    CN103852664A

  • Battery testing station and testing method thereof

    CN104035038A

  • Testing device

    CN110418369A

  • Laptop battery tester and test system thereof

    CN201622335U