Multi-device charging test method, device and storage medium based on single adapter
By adopting a multi-device charging test method based on a single adapter in the charging test, dynamically adjusting the output parameters and monitoring the charging data in real time, the problems of large workload, low efficiency and high cost in the existing charging test methods are solved, and a more efficient and safe charging testing process is achieved.
Patent Information
- Application Number
- CN202510155075.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-02-12
AI Technical Summary
The existing charging test methods are heavy, have low testing efficiency, and will incur high costs and waste of resources when passing through multiple adapters, and have limited interface compatibility.
The multi-device charging test method based on a single adapter is adopted. By sending protocol encoding to the device to be tested, the device recognizes the target charging protocol, and dynamically adjusts the output parameters of the port according to the charging needs of the device, monitors the charging test data in real time, and automatically adjusts to meet abnormal situations.
The charging test of multiple devices simultaneously through a single adapter avoids the time delay caused by connecting multiple adapters one by one in the traditional method, shortens the overall time of charging test, reduces the equipment procurement and maintenance costs, and improves the safety and reliability of the charging process.
Smart Images

Figure CN119619693B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of power adapters, and in particular, relates to a multi-device charging test method, device, and storage medium based on a single adapter. Background Art
[0002] With the rapid development of information technology, the types and quantity of electronic products such as smart phones, tablets, and smart wearable devices are increasing. These devices generally adopt different charging standards and protocols (such as USB PD, QC, Apple FastCharging, etc.). In this context, charging testing is particularly important to ensure that these devices can work properly under various charging conditions. Charging testing is not only a necessary step in the development of new products, but also one of the quality assurance links before the product is launched on the market.
[0003] Currently, there are a variety of charging test solutions on the market. Generally speaking, these solutions can be divided into two categories: traditional independent adapter testing and integrated test equipment. The traditional independent adapter testing method involves providing a dedicated charging adapter for each device to be tested, connecting and testing them one by one. On the other hand, integrated test equipment such as multi-port power test instruments can connect multiple devices at a time for testing, but the equipment is often expensive and has limited interface compatibility. In general, the existing methods have heavy workloads and low testing efficiency. At the same time, when passing through multiple adapters, high costs and resource waste will be incurred. In addition, connecting multiple devices at a time for testing is costly and has limited interface compatibility. Summary of the invention
[0004] The embodiments of the present application provide a multi-device charging test method, device and storage medium based on a single adapter, which can solve the above problems.
[0005] In a first aspect, an embodiment of the present application provides a multi-device charging test method based on a single adapter, wherein the adapter includes several ports, including:
[0006] Sending protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify a target charging protocol according to the protocol codes and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port;
[0007] Obtaining charging requirements of a plurality of the devices to be tested;
[0008] According to the charging requirements of the devices to be tested, the protocol codes corresponding to the ports, the connection relationship between the devices to be tested and the ports, and the preset dynamic adjustment strategy, the output parameters of the ports are adjusted;
[0009] Monitoring charging test data of a plurality of the devices to be tested;
[0010] When the charging test data of any of the devices to be tested meets the preset abnormality judgment condition, the output parameters of the corresponding port are readjusted.
[0011] Further, the charging requirement includes a charging voltage requirement and a charging current requirement, and the output parameters of the plurality of ports are adjusted according to the charging requirements of the plurality of devices to be tested, the protocol codes corresponding to the plurality of ports, the connection relationship between the devices to be tested and the ports, and a preset dynamic adjustment strategy, including:
[0012] Determining the maximum output power of the adapter and the maximum output voltage of the port according to the protocol code corresponding to the port;
[0013] According to the charging current requirements of all the devices to be tested, the total current required by all the ports is obtained;
[0014] Obtaining a theoretical output voltage of the port according to the maximum output power of the adapter and the total current required by all the ports;
[0015] The output voltage of the port is adjusted according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm.
[0016] Further, the charging demand also includes a charging power demand, and according to the charging demand of the plurality of devices to be tested, the protocol codes corresponding to the plurality of ports, the connection relationship between the devices to be tested and the ports, and the preset dynamic adjustment strategy, the output parameters of the plurality of ports are adjusted, and further comprising:
[0017] Determining the maximum output current of the port according to the protocol code corresponding to the port;
[0018] Obtaining the remaining available power of the port according to the maximum output power of the adapter and the charging power requirements of all the devices to be tested;
[0019] Obtaining a theoretical output current of the port according to the remaining available power of the port and the output voltage of the port;
[0020] The output current of the port is adjusted according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm.
[0021] Further, adjusting the output voltage of the port according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm includes:
[0022] According to The charging voltage requirement of the device under test , No. The maximum output voltage of the port , No. The theoretical output voltage of the port , and the preset voltage dynamic adjustment algorithm, adjust the The output voltage of the port ;
[0023] in,
[0024]
[0025]
[0026] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging current requirement of the device under test, Indicates the total amount of current required by all the ports described.
[0027] Further, adjusting the output current of the port according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm includes:
[0028] According to The charging current requirement of the device under test , No. The maximum output current of the port and The theoretical output current of the port And the preset current dynamic adjustment algorithm, adjust the The output current of the port ;
[0029] in,
[0030]
[0031]
[0032] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging power requirement of the device under test, Indicates that except The sum of the charging power requirements of the ports other than the above ports, Indicates the remaining available power of the ports, Indicates The output voltage of the port.
[0033] Furthermore, before sending the protocol codes to the plurality of devices to be tested respectively, the method includes:
[0034] Obtaining a charging protocol set supported by each of the devices to be tested, a charging protocol set supported by each of the ports, and a connection relationship between the devices to be tested and the ports;
[0035] According to the charging protocol set supported by each of the devices to be tested, the charging protocol set supported by each of the ports, and the connection relationship between the devices to be tested and the ports, the protocol code corresponding to each of the ports is configured.
[0036] Furthermore, it also includes:
[0037] Obtaining the battery capacities of a plurality of the devices to be tested;
[0038] Obtaining charging powers of the plurality of devices to be tested according to output parameters of the plurality of ports and a connection relationship between the devices to be tested and the ports;
[0039] Obtaining charging durations of the plurality of devices to be tested according to the battery capacities of the plurality of devices to be tested and the charging powers of the plurality of devices to be tested;
[0040] When the charging time of the device to be tested is reached, charging of the device to be tested is stopped and charging resources of the corresponding port are released.
[0041] In a second aspect, an embodiment of the present application provides a multi-device charging test device based on a single adapter, wherein the adapter includes a plurality of ports, including:
[0042] A first processing unit is used to send protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify a target charging protocol according to the protocol code and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port;
[0043] A first acquisition unit, used to acquire charging requirements of a plurality of the devices to be tested;
[0044] A second processing unit, configured to adjust output parameters of the plurality of ports according to charging requirements of the plurality of devices to be tested, protocol codes corresponding to the plurality of ports, connection relationships between the devices to be tested and the ports, and a preset dynamic adjustment strategy;
[0045] A third processing unit, used for monitoring charging test data of a plurality of the devices to be tested;
[0046] The fourth processing unit is used to readjust the output parameters of the corresponding port when the charging test data of any one of the devices to be tested meets the preset abnormality judgment condition.
[0047] Furthermore, the charging requirement includes a charging voltage requirement and a charging current requirement, and the second processing unit is specifically configured to:
[0048] Determining the maximum output power of the adapter and the maximum output voltage of the port according to the protocol code corresponding to the port;
[0049] According to the charging current requirements of all the devices to be tested, the total current required by all the ports is obtained;
[0050] Obtaining a theoretical output voltage of the port according to the maximum output power of the adapter and the total current required by all the ports;
[0051] The output voltage of the port is adjusted according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm.
[0052] Furthermore, the charging requirement also includes a charging power requirement, and the second processing unit is further configured to:
[0053] Determining the maximum output current of the port according to the protocol code corresponding to the port;
[0054] Obtaining the remaining available power of the port according to the maximum output power of the adapter and the charging power requirements of all the devices to be tested;
[0055] Obtaining a theoretical output current of the port according to the remaining available power of the port and the output voltage of the port;
[0056] The output current of the port is adjusted according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm.
[0057] Furthermore, the second processing unit is further configured to:
[0058] According to The charging voltage requirement of the device under test , No. The maximum output voltage of the port , No. The theoretical output voltage of the port , and the preset voltage dynamic adjustment algorithm, adjust the The output voltage of the port ;
[0059] in,
[0060]
[0061]
[0062] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging current requirement of the device under test, Indicates the total amount of current required by all the ports described.
[0063] Furthermore, the second processing unit is further configured to:
[0064] According to The charging current requirement of the device under test , No. The maximum output current of the port and The theoretical output current of the port And the preset current dynamic adjustment algorithm, adjust the The output current of the port ;
[0065] in,
[0066]
[0067]
[0068] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging power requirement of the device under test, Indicates that except The sum of the charging power requirements of the ports other than the above ports, Indicates the remaining available power of the ports, Indicates The output voltage of the port.
[0069] Furthermore, the multi-device charging test device based on a single adapter further includes:
[0070] A second acquisition unit, configured to acquire a charging protocol set supported by each of the devices to be tested, a charging protocol set supported by each of the ports, and a connection relationship between the devices to be tested and the ports;
[0071] The fifth processing unit is used to configure the protocol code corresponding to each of the ports according to the charging protocol set supported by each of the devices to be tested, the charging protocol set supported by each of the ports, and the connection relationship between the devices to be tested and the ports.
[0072] Furthermore, the multi-device charging test device based on a single adapter further includes:
[0073] A third acquisition unit, used to acquire the battery capacities of a plurality of the devices to be tested;
[0074] a sixth processing unit, configured to obtain charging powers of the plurality of devices to be tested according to output parameters of the plurality of ports and a connection relationship between the devices to be tested and the ports;
[0075] a seventh processing unit, configured to obtain charging durations of the plurality of devices to be tested according to the battery capacities of the plurality of devices to be tested and the charging powers of the plurality of devices to be tested;
[0076] The eighth processing unit is configured to stop charging the device to be tested and release charging resources of the corresponding port when the charging time of the device to be tested is reached.
[0077] In a third aspect, an embodiment of the present application provides a multi-device charging test device based on a single adapter, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect described above when executing the computer program.
[0078] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the first aspect described above is implemented.
[0079] In an embodiment of the present application, protocol codes are sent to several devices to be tested respectively, so that several devices to be tested can identify the target charging protocol according to the protocol codes respectively, and switch the mode to the target charging protocol mode; obtain the charging requirements of several devices to be tested; according to the charging requirements of several devices to be tested, the protocol codes corresponding to several ports, the connection relationship between the devices to be tested and the ports, and the preset dynamic adjustment strategy, adjust the output parameters of several ports; monitor the charging test data of several devices to be tested; when the charging test data of any device to be tested meets the preset abnormal judgment condition, readjust the output parameters of the corresponding port. A single adapter can be used to charge multiple devices at the same time, avoiding the time delay caused by connecting multiple adapters one by one in the traditional method, thereby greatly shortening the overall time of the charging test. Testers can complete the verification of more devices in a shorter time. And using one adapter instead of multiple independent adapters reduces the cost of equipment procurement, maintenance and management, and reduces the waste of resources. Supports dynamic protocol identification, and can automatically switch to the corresponding charging protocol according to the charging requirements of the device to be tested. This flexibility enables the test process to adapt to different types of devices and meet the diverse charging standard requirements on the market. The charging status of each device under test is monitored in real time, and the output parameters of the adapter are dynamically adjusted according to the test data during the charging process of the device, which improves the safety and reliability of the charging process. Whenever an abnormal situation is detected, the system can respond quickly, reducing the potential risks caused by device overload or charging failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0081] Figure 1 is a schematic flow chart of a multi-device charging test method based on a single adapter provided in the first embodiment of the present application;
[0082] Figure 2 It is a schematic flow chart of S106 to S107 in the multi-device charging test method based on a single adapter provided in the first embodiment of the present application;
[0083] Figure 3 It is a schematic flow chart of S1031 to S1034 in the multi-device charging test method based on a single adapter provided in the first embodiment of the present application;
[0084] Figure 4It is a schematic flow chart of S1035 to S1038 in the multi-device charging test method based on a single adapter provided in the first embodiment of the present application;
[0085] Figure 5 is a schematic flow chart of S108 to S111 in the multi-device charging test method based on a single adapter provided in the first embodiment of the present application;
[0086] Figure 6 is a schematic diagram of a multi-device charging test device based on a single adapter provided in a second embodiment of the present application;
[0087] Figure 7 It is a schematic diagram of a multi-device charging test device based on a single adapter provided in the third embodiment of the present application. DETAILED DESCRIPTION
[0088] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0089] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0090] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0091] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0092] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0093] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0094] See also Figure 1 , Figure 1 It is a schematic flow chart of the multi-device charging test method based on a single adapter provided in the first embodiment of the present application. In this embodiment, the execution subject of the multi-device charging test method based on a single adapter is a device with a multi-device charging test function based on a single adapter, which can be an adapter, or a computer connected to the adapter, a server, etc., and is not limited here. It should be noted that in this embodiment, the device to be tested is different from the device, and the device refers to a device with a multi-device charging test function based on a single adapter. Figure 1 The multi-device charging test method shown based on a single adapter includes:
[0095] S101: sending protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify a target charging protocol according to the protocol codes and switch modes to the target charging protocol mode; wherein the protocol code is a protocol code corresponding to the port.
[0096] In this embodiment, the adapter includes several ports, each port corresponds to a different charging protocol (such as USB PD, QC, etc.) The adapter is embedded with a control chip with a protocol identification function.
[0097] The device sends a specific protocol code to each port. The protocol code is the protocol code corresponding to the port. For example, the USB PD protocol code may be "0x01", while the QC protocol code may be "0x02". Each device under test will receive the protocol code of a port after it is connected to a port.
[0098] After the device under test receives the protocol code, the internal charging management chip will parse the code and switch to the corresponding charging protocol mode, such as USB PD mode or QC mode, according to the parsed protocol code.
[0099] In one implementation, in order to enhance the effective matching between the device and the port, before S101, S106 to S107 may also be included, such as Figure 2 As shown, S106 to S107 are specifically as follows:
[0100] S106: Acquire a charging protocol set supported by each of the devices to be tested, a charging protocol set supported by each of the ports, and a connection relationship between the devices to be tested and the ports.
[0101] Use the device's interface detection algorithm to confirm the USB, Type-C and other connection port types of each device under test.
[0102] The set of charging protocols supported by each device is queried through control software (such as an application running on a PC or embedded system), including but not limited to USB PD, Quick Charge, similar protocols, etc.
[0103] Through hardware looping, protocol probing or querying the set of protocols supported by each charging port, the communication controller of each port will respond with the supported protocols.
[0104] The connection status is identified by hardware circuit to determine the connection relationship between the device to be tested and the port.
[0105] S107: According to the charging protocol set supported by each of the devices to be tested, the charging protocol set supported by each of the ports, and the connection relationship between the devices to be tested and the ports, configure the protocol code corresponding to each of the ports.
[0106] When configuring the protocol encoding corresponding to each port, find the matching protocol by comparing the charging protocol supported by each device under test with the protocol supported by the corresponding port. Convert each matched protocol into a specific encoding format according to the protocol priority setting to facilitate subsequent system calls and protocol interactions. The protocol encoding can be a predefined string or digital identifier. For example, the encoding of USB PD can be defined as "01" and QC3.0 as "02".
[0107] The generated protocol code may be sent to each port controller to initiate protocol configuration.
[0108] S102: Obtain charging requirements of a plurality of the devices to be tested.
[0109] In this embodiment, the charging demand refers to the power required by the device based on the current state and the charging specification requirements.
[0110] Each connected device under test can return its charging requirement information via USB communication or other interfaces.
[0111] The charging requirements may include the current battery status (power, voltage) of each device, the maximum acceptable charging power, etc. For example, a device may send a feedback message to the adapter that "the current power is 40%, and the maximum charging power required is 18W".
[0112] It is understandable that during the charging process, the device's requirements may change as the battery level changes (for example, the requirements are different when the battery is charged from 20% to 80%). The device's charging requirements can be re-queried periodically or at specific time points to ensure the real-time nature of the output parameters.
[0113] S103: adjusting output parameters of the plurality of ports according to charging requirements of the plurality of devices to be tested, protocol codes corresponding to the plurality of ports, connection relationships between the devices to be tested and the ports, and a preset dynamic adjustment strategy.
[0114] The device is pre-set with a dynamic adjustment strategy, which refers to a strategy for adjusting output parameters (such as current and voltage) to achieve optimal charging based on the actual charging needs of the device under test, the current working status, and real-time monitoring data during the charging process.
[0115] The device can identify each device connected to its port and establish a connection relationship between the device and the port.
[0116] According to the charging requirements of the devices to be tested, the protocol codes corresponding to the ports, the connection relationship between the devices to be tested and the ports, and the preset dynamic adjustment strategy, the output parameters of the ports are adjusted.
[0117] When adjusting, many charging protocols adopt a charging strategy of "constant current first, then constant voltage". The output current and voltage can be dynamically adjusted according to the charging stage of the device, charging in constant current mode at the beginning of battery charging, and switching to constant voltage mode when the battery is nearly full. For example, if the device requests 5V 2A, but the battery power is 20%, the adapter starts charging at 5V, 2A output. When the battery is charged to 80%, it is adjusted to constant voltage mode, and the output current may drop to 0.5A to protect the battery.
[0118] In addition, the adapter has a built-in temperature sensor to monitor the temperature of the charging device. If the temperature reaches the set threshold (such as exceeding 60°C), the output is dynamically adjusted, the output current is reduced, or charging is suspended to ensure the safety of the device.
[0119] The maximum current limit is preset and can be adjusted dynamically according to the maximum capacity of the device. For example, the specification of a device indicates that the maximum supported current is 1.5A. When the charging current is detected to be close to or exceeds this value, the current will be automatically adjusted to avoid damage to the device.
[0120] In one implementation, the charging requirement includes a charging voltage requirement and a charging current requirement, and S103 may include S1031 to S1034. Figure 3 As shown, S1031 to S1034 are as follows:
[0121] S1031: Determine the maximum output power of the adapter and the maximum output voltage of the port according to the protocol code corresponding to the port.
[0122] Read the current port protocol code (such as USB PD, QC3.0, BC1.2, etc.) from the charging adapter.
[0123] Use the identification module to identify the protocol code and obtain the corresponding maximum output power and maximum voltage. For example, through the USB PD protocol, the adapter can output a maximum power of 100W (5V / 20A) and a maximum voltage of 20V.
[0124] S1032: Obtain the total current required by all the ports according to the charging current requirements of all the devices to be tested.
[0125] Go through all devices to be tested and extract their charging current requirements (e.g. device A requires 2A, device B requires 1.5A). Record the charging current requirements and calculate the total current requirement.
[0126] Add the charging current requirements of each device to get the total current required by all ports. For example, if device A and device B require 2A and 1.5A respectively, the total current requirement is 3.5A.
[0127] S1033: Obtaining a theoretical output voltage of the port according to the maximum output power of the adapter and the total current required by all the ports.
[0128] Using the formula P = V * I, the theoretical output voltage (V) is derived from the adapter's maximum output power (P) and the total current required from all ports (I).
[0129] S1034: Adjust the output voltage of the port according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm.
[0130] The device is pre-set with a voltage dynamic adjustment algorithm, which refers to a strategy for adjusting the output voltage of the port to achieve optimal charging based on the charging voltage requirement of the device to be tested, the maximum output voltage of the port, and the theoretical output voltage of the port.
[0131] In one implementation, if the voltage requirement of the device to be tested is greater than the maximum output voltage of the port, the output voltage is set to the maximum output voltage. If the voltage requirement of the device to be tested is lower than the theoretical output voltage, the output voltage can be reduced to the required voltage. Otherwise, the output voltage is adjusted to the theoretical voltage.
[0132] Through the control module, set the new output voltage value. For example, if the target voltage is 5V, gradually reduce the current voltage to 5V or increase it to the required voltage.
[0133] The output can be increased or decreased in steps of, for example, 0.1V.
[0134] During the implementation process, the output voltage is monitored in real time to confirm whether the output voltage has reached the target value and ensure its stability.
[0135] In order to intelligently adjust the output voltage of the charging port during the charging process to ensure that it matches the charging requirements of multiple devices under test and improve the safety and efficiency of charging. The charging voltage requirement of the device under test , No. The maximum output voltage of the port , No. The theoretical output voltage of the port , and the preset voltage dynamic adjustment algorithm, adjust the The output voltage of the port ;
[0136] in,
[0137]
[0138]
[0139] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging current requirement of the device under test, Indicates the total amount of current required by all the ports described.
[0140] Statistics of all current requirements of the devices under test and calculation , assuming there are 2 devices, device 1 requires 2A ( =2A), device 2 requires 1.5A ( =1.5A), then:
[0141] =2A+1.5A=3.5A
[0142] Set the maximum output power is 60W, then:
[0143] ≈17.14V
[0144] Compare (e.g. 5V) and (17.14V) and (Assuming 20V):
[0145] like < , then Set to the required charging voltage value (e.g. 5V).
[0146] if ≥ and < ,but = .
[0147] like > ,Will Set to .
[0148] The preset voltage dynamic adjustment algorithm may also be a pre-trained machine learning algorithm, which is not limited here.
[0149] In one implementation, the adapter uses a dynamic resource scheduling mechanism to ensure reasonable allocation of resources when charging devices. During the multi-device charging process, if some devices have low charging requirements, the adapter will automatically adjust resources and allocate the remaining current to devices that require more power, thereby ensuring balanced and efficient charging. The charging requirements also include charging power requirements. S103 may include S1035 to S1038. Figure 4 As shown, S1035 to S1038 are as follows:
[0150] S1035: Determine the maximum output current of the port according to the protocol code corresponding to the port.
[0151] Through the communication protocol between the charging adapter and the connection port (such as USB PD, QC 3.0, etc.), the charging protocol code supported by each port is identified.
[0152] After confirming the protocol encoding, look up the corresponding maximum output current according to the preset mapping data (manual or database). For example, the maximum output current of a USB PD port may be 3A.
[0153] S1036: Obtain the remaining available power of the port according to the maximum output power of the adapter and the charging power requirements of all the devices to be tested.
[0154] Get the maximum output power from the adapter's parameters (such as rated specifications). For example, the maximum output power of an adapter is 60W.
[0155] Calculate the total charging power requirement. Device A requires 10W, and device B requires 15W. 需求 =P A +P B , then P 需求 =10W+15W=25W.
[0156] Calculate the remaining available power if P max =60W, then P 可用 =60W−25W=35W.
[0157] S1037: Obtain a theoretical output current of the port according to the remaining available power of the port and the output voltage of the port.
[0158] The theoretical output current is calculated based on the remaining available power and the current port output voltage (e.g. 5V).
[0159] The formula for the theoretical output current can be:
[0160]
[0161] S1038: Adjust the output current of the port according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm.
[0162] The device is pre-set with a current dynamic adjustment algorithm, which refers to a strategy for adjusting the output current of the port to achieve optimal charging based on the charging current demand, the maximum output current of the port, and the theoretical output current of the port.
[0163] In one implementation, if the voltage requirement of the device to be tested is greater than the maximum output voltage of the port, the output voltage is set to the maximum output voltage. If the voltage requirement of the device to be tested is lower than the theoretical output voltage, the output voltage can be reduced to the required voltage. Otherwise, the output voltage is adjusted to the theoretical voltage.
[0164] Through the control module, set the new output current value. For example, if the target current is 5A, gradually reduce the current to 5A or increase it to the required current.
[0165] The output can be increased or decreased in steps of, for example, 0.1A.
[0166] During the implementation process, the output current is monitored in real time to confirm whether the output current has reached the target value and ensure its stability.
[0167] In order to ensure safe and efficient charging of each device by dynamically adjusting the output current of the i-th port according to the charging requirements of multiple connected devices. The charging current requirement of the device under test , No. The maximum output current of the port and The theoretical output current of the port And the preset current dynamic adjustment algorithm, adjust the The output current of the port ;
[0168] in,
[0169]
[0170]
[0171] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging power requirement of the device under test, Indicates that except The sum of the charging power requirements of the ports other than the above ports, Indicates the remaining available power of the ports, Indicates The output voltage of the port.
[0172] like <min( , , then set = .
[0173] like < < , then set = .
[0174] like < , then set = .
[0175] S104: monitoring charging test data of a plurality of the devices to be tested.
[0176] Charging test data is a detailed record of various electrical and environmental parameters of the device under test during the charging process. They can help evaluate the performance, safety and compatibility of the device. Charging test data can include:
[0177] Voltage: The charging voltage connected to the device, including input voltage and output voltage.
[0178] Current: The current flowing through the device during charging, including input current and output current.
[0179] Power: Charging power, usually obtained by calculating power (P = V × I).
[0180] Charging time: The time it takes for a device to reach a specific level of charge from the beginning of charging.
[0181] Battery level: The device's current battery charge status or remaining power percentage.
[0182] Battery status: including charging, fully charged, discharged, fault and other status information.
[0183] Charging mode: such as fast charging, regular charging, trickle charging, etc.
[0184] Charging progress: the current stage of charging, such as charging, charging completed, fault, etc.
[0185] Device temperature: The temperature of the device during charging, especially the temperature of the battery and charging circuitry.
[0186] Ambient temperature: The temperature of the charging environment, which may affect charging performance and safety.
[0187] Cycle Count: The number of charge and discharge cycles a battery has undergone, which helps assess the battery's useful life.
[0188] Remaining Life Estimate: Based on the state of charge cycles, gives the expected remaining service life of the battery.
[0189] Over-temperature record: whether there are any abnormalities such as over-temperature or overload during the operation of the equipment.
[0190] Current or voltage out of limit: Whether the voltage or current exceeds the safety threshold during charging.
[0191] Fault information: detailed information on errors or faults such as charging failure and poor connection.
[0192] Charging protocol: The type of charging protocol used, such as USB PD, QC, Apple 2.4A, etc.
[0193] Hardware version information: The hardware version of the tested device for subsequent analysis.
[0194] Software version information: The version of the software (such as operating system, application) running on the tested device while charging.
[0195] Charging History: A record of a device’s past charging and discharging, used to analyze and evaluate the device’s long-term performance.
[0196] Charging statistics: Statistics of multiple charging cycles, including average charging time and charging efficiency.
[0197] During the monitoring process, relevant algorithms or machine learning models can be used to analyze charging performance, identify potential faults, or optimize charging strategies.
[0198] You can also set preset values and ranges, such as high temperature alarm, current and voltage over-limit, etc. Once the charging parameters of any device are monitored to exceed the set threshold, an alarm or prompt should be triggered.
[0199] By monitoring the charging test data, we can have a more comprehensive understanding of the charging performance, efficiency and safety of the equipment under test.
[0200] S105: When the charging test data of any of the devices to be tested meets a preset abnormality judgment condition, readjust the output parameters of the corresponding port.
[0201] Preset abnormal judgment conditions, such as abnormal current, abnormal voltage, equipment overheating or abnormal connection, etc.
[0202] Once a device is detected to have reached an abnormal condition, the control system will immediately identify and readjust the corresponding port output parameters. For example, if the charging voltage of device A exceeds 5.5V, the voltage output of the port will be automatically reduced.
[0203] In one implementation, the charging time of each device is dynamically calculated based on its battery capacity and charging protocol. After the charging reaches a preset time, the charging stops automatically and enters the charging end state. After charging is completed, the system releases the resources of the port and prepares to provide charging services for the next device. The real-time voltage and current data of each port is transmitted to the test system for monitoring. If the power of a port exceeds the preset range, the test system can issue a warning or adjust the current and voltage settings.
[0204] Specifically, in order to automatically manage and optimize the charging process of the device under test, ensure charging safety and efficiency, thereby improving the overall charging experience and the health of the device. In this embodiment, S108 to S111 may also be included, such as Figure 5 As shown, S108 to S111 are specifically as follows:
[0205] S108: Obtain the battery capacities of several devices to be tested.
[0206] Read the device's battery capacity information through the device's connection interface (such as USB, Bluetooth, etc.).
[0207] S109: Obtaining charging powers of the plurality of devices to be tested according to output parameters of the plurality of ports and connection relationships between the devices to be tested and the ports.
[0208] Get the output parameters of the port, including output voltage (V) and maximum output current (A).
[0209] Confirm the connection relationship between the device and the output port, and obtain the corresponding output parameters through the connected interface and protocol.
[0210] The charging power is calculated according to the formula P = V *I, where I is the maximum output current of the port and V is the output voltage.
[0211] S110: Obtaining charging durations of the plurality of devices to be tested according to battery capacities of the plurality of devices to be tested and charging powers of the plurality of devices to be tested.
[0212] The charging time of each device is calculated based on its battery capacity and charging power. The charging time (in hours) is equal to the battery capacity of the device under test (in milliamp hours mAh) divided by the product of the charging power (in watts W) and the charging efficiency. Here, the charging efficiency is usually set to 0.85 to take into account the energy loss that may occur during the charging process.
[0213] S111: When the charging time of the device to be tested is reached, stop charging the device to be tested and release charging resources of the corresponding port.
[0214] Monitor the charging status of each device and regularly check and calculate the charging time. If the charging time reaches or exceeds the preset charging time, the current output of the corresponding port can be stopped, the power supply can be cut off to ensure that the device no longer receives current, or the charging completion status of the device can be recorded in the system to release the corresponding charging port to provide charging resources for other devices.
[0215] In an embodiment of the present application, protocol codes are sent to several devices to be tested respectively, so that several devices to be tested can identify the target charging protocol according to the protocol codes respectively, and switch the mode to the target charging protocol mode; obtain the charging requirements of several devices to be tested; according to the charging requirements of several devices to be tested, the protocol codes corresponding to several ports, the connection relationship between the devices to be tested and the ports, and the preset dynamic adjustment strategy, adjust the output parameters of several ports; monitor the charging test data of several devices to be tested; when the charging test data of any device to be tested meets the preset abnormal judgment condition, readjust the output parameters of the corresponding port. A single adapter can be used to charge multiple devices at the same time, avoiding the time delay caused by connecting multiple adapters one by one in the traditional method, thereby greatly shortening the overall time of the charging test. Testers can complete the verification of more devices in a shorter time. And using one adapter instead of multiple independent adapters reduces the cost of equipment procurement, maintenance and management, and reduces the waste of resources. Supports dynamic protocol identification, and can automatically switch to the corresponding charging protocol according to the charging requirements of the device to be tested. This flexibility enables the test process to adapt to different types of devices and meet the diverse charging standard requirements on the market. The charging status of each device under test is monitored in real time, and the output parameters of the adapter are dynamically adjusted according to the test data during the charging process of the device, which improves the safety and reliability of the charging process. Whenever an abnormal situation is detected, the system can respond quickly, reducing the potential risks caused by device overload or charging failure.
[0216] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0217] See also Figure 6 , Figure 6 Schematic diagram of a multi-device charging test device based on a single adapter provided in the second embodiment of the present application. The units included are used to perform Figures 1 to 5 For details, please refer to the steps in the corresponding embodiment. Figures 1 to 5 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 6 , a multi-device charging test apparatus 60 based on a single adapter, wherein the adapter comprises a plurality of ports, including:
[0218] The first processing unit 61 is used to send protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify the target charging protocol according to the protocol code and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port;
[0219] A first acquisition unit 62, used to acquire charging requirements of a plurality of the devices to be tested;
[0220] The second processing unit 63 is used to adjust the output parameters of the plurality of ports according to the charging requirements of the plurality of devices to be tested, the protocol codes corresponding to the plurality of ports, the connection relationship between the devices to be tested and the ports, and a preset dynamic adjustment strategy;
[0221] A third processing unit 64 is used to monitor the charging test data of a plurality of the devices to be tested;
[0222] The fourth processing unit 65 is configured to readjust the output parameters of the corresponding port when the charging test data of any of the devices to be tested meets a preset abnormality judgment condition.
[0223] Furthermore, the charging requirement includes a charging voltage requirement and a charging current requirement, and the second processing unit is specifically configured to:
[0224] Determining the maximum output power of the adapter and the maximum output voltage of the port according to the protocol code corresponding to the port;
[0225] According to the charging current requirements of all the devices to be tested, the total current required by all the ports is obtained;
[0226] Obtaining a theoretical output voltage of the port according to the maximum output power of the adapter and the total current required by all the ports;
[0227] The output voltage of the port is adjusted according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm.
[0228] Furthermore, the charging requirement also includes a charging power requirement, and the second processing unit is further configured to:
[0229] Determining the maximum output current of the port according to the protocol code corresponding to the port;
[0230] Obtaining the remaining available power of the port according to the maximum output power of the adapter and the charging power requirements of all the devices to be tested;
[0231] Obtaining a theoretical output current of the port according to the remaining available power of the port and the output voltage of the port;
[0232] The output current of the port is adjusted according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm.
[0233] Furthermore, the second processing unit is further configured to:
[0234] According to The charging voltage requirement of the device under test , No. The maximum output voltage of the port , No. The theoretical output voltage of the port , and the preset voltage dynamic adjustment algorithm, adjust the The output voltage of the port ;
[0235] in,
[0236]
[0237]
[0238] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging current requirement of the device under test, Indicates the total amount of current required by all the ports described.
[0239] Furthermore, the second processing unit is further configured to:
[0240] According to The charging current requirement of the device under test , No. The maximum output current of the port and The theoretical output current of the port And the preset current dynamic adjustment algorithm, adjust the The output current of the port ;
[0241] in,
[0242]
[0243]
[0244] represents the maximum output power of the adapter, Indicates the number of the devices to be tested that are connected to the adapter, Indicates The charging power requirement of the device under test, Indicates that except The sum of the charging power requirements of the ports other than the above ports, Indicates the remaining available power of the ports, Indicates The output voltage of the port.
[0245] Furthermore, the multi-device charging test device based on a single adapter further includes:
[0246] A second acquisition unit, configured to acquire a charging protocol set supported by each of the devices to be tested, a charging protocol set supported by each of the ports, and a connection relationship between the devices to be tested and the ports;
[0247] The fifth processing unit is used to configure the protocol code corresponding to each of the ports according to the charging protocol set supported by each of the devices to be tested, the charging protocol set supported by each of the ports, and the connection relationship between the devices to be tested and the ports.
[0248] Furthermore, the multi-device charging test device based on a single adapter further includes:
[0249] A third acquisition unit, used to acquire the battery capacities of a plurality of the devices to be tested;
[0250] a sixth processing unit, configured to obtain charging powers of the plurality of devices to be tested according to output parameters of the plurality of ports and a connection relationship between the devices to be tested and the ports;
[0251] a seventh processing unit, configured to obtain charging durations of the plurality of devices to be tested according to the battery capacities of the plurality of devices to be tested and the charging powers of the plurality of devices to be tested;
[0252] The eighth processing unit is configured to stop charging the device to be tested and release charging resources of the corresponding port when the charging time of the device to be tested is reached.
[0253] See also Figure 7 , Figure 7 : is a schematic diagram of a multi-device charging test device based on a single adapter provided in the third embodiment of the present application. The multi-device charging test device based on a single adapter includes: a processor 71, a memory 72, and a computer program 73 stored in the memory and executable on the processor; when the processor 71 executes the computer program 73, the steps in the above-mentioned multi-device charging test method embodiments based on a single adapter are implemented, for example Figure 1Alternatively, when the processor 71 executes the computer program 73, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 6 The functions of the modules 61 to 65 are shown.
[0254] Exemplarily, the computer program 73 can be divided into one or more modules / units, and the one or more modules / units are stored in the memory 72 and executed by the processor 71 to complete the present application. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 73 in the multi-device charging test device based on a single adapter. For example, the computer program 73 can be divided into a first processing unit, a first acquisition unit, a second processing unit, a third processing unit, and a fourth processing unit, and the specific functions of each unit are as follows:
[0255] A first processing unit is used to send protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify a target charging protocol according to the protocol code and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port;
[0256] A first acquisition unit, used to acquire charging requirements of a plurality of the devices to be tested;
[0257] A second processing unit, configured to adjust output parameters of the plurality of ports according to charging requirements of the plurality of devices to be tested, protocol codes corresponding to the plurality of ports, connection relationships between the devices to be tested and the ports, and a preset dynamic adjustment strategy;
[0258] A third processing unit, used for monitoring charging test data of a plurality of the devices to be tested;
[0259] The fourth processing unit is used to readjust the output parameters of the corresponding port when the charging test data of any one of the devices to be tested meets the preset abnormality judgment condition.
[0260] The multi-device charging test device based on a single adapter provided in this embodiment may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 7 It is only an example of a multi-device charging test device based on a single adapter and does not constitute a limitation on the multi-device charging test device based on a single adapter. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the multi-device charging test device based on a single adapter may also include input and output devices, network access devices, buses, etc.
[0261] The processor 71 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.
[0262] The memory 72 may be an internal storage unit of the multi-device charging test device based on a single adapter, such as a hard disk or memory of the multi-device charging test device based on a single adapter. The memory 72 may also be an external storage device of the multi-device charging test device based on a single adapter, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the multi-device charging test device based on a single adapter. Furthermore, the multi-device charging test device based on a single adapter may also include both an internal storage unit and an external storage device of the multi-device charging test device based on a single adapter. The memory 72 is used to store the computer program and other programs and data required by the multi-device charging test device based on a single adapter. The memory 72 may also be used to temporarily store data that has been output or is to be output.
[0263] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0264] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0265] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0266] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0267] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0268] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0269] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0270] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0271] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0272] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A multi-device charging test method based on a single adapter, characterized in that: The adapter includes several ports, including: Obtaining a charging protocol set supported by each device under test, a charging protocol set supported by each port, and a connection relationship between the device under test and the port; According to the charging protocol set supported by each of the devices to be tested, the charging protocol set supported by each of the ports, and the connection relationship between the devices to be tested and the ports, configure the protocol code corresponding to each of the ports; Sending protocol codes to a plurality of devices to be tested respectively, so that the plurality of devices to be tested respectively identify a target charging protocol according to the protocol codes and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port; Obtaining charging requirements of a plurality of the devices to be tested; Adjusting output parameters of the plurality of ports according to charging requirements of the plurality of devices to be tested, protocol codes corresponding to the plurality of ports, connection relationships between the devices to be tested and the ports, and a preset dynamic adjustment strategy; Monitoring charging test data of a plurality of the devices to be tested; When the charging test data of any of the devices to be tested meets the preset abnormality judgment condition, readjust the output parameters of the corresponding port; Obtaining the battery capacities of a plurality of the devices to be tested; Obtaining charging powers of the plurality of devices to be tested according to output parameters of the plurality of ports and a connection relationship between the devices to be tested and the ports; Obtaining charging durations of the plurality of devices to be tested according to the battery capacities of the plurality of devices to be tested and the charging powers of the plurality of devices to be tested; When the charging time of the device to be tested is reached, charging of the device to be tested is stopped and charging resources of the corresponding port are released.
2. The multi-device charging test method based on a single adapter as claimed in claim 1, characterized in that: The charging requirement includes a charging voltage requirement and a charging current requirement, and the output parameters of the plurality of ports are adjusted according to the charging requirements of the plurality of devices to be tested, the protocol codes corresponding to the plurality of ports, the connection relationship between the devices to be tested and the ports, and a preset dynamic adjustment strategy, including: Determining the maximum output power of the adapter and the maximum output voltage of the port according to the protocol code corresponding to the port; According to the charging current requirements of all the devices to be tested, the total current required by all the ports is obtained; Obtaining a theoretical output voltage of the port according to the maximum output power of the adapter and the total current required by all the ports; The output voltage of the port is adjusted according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm.
3. The multi-device charging test method based on a single adapter as claimed in claim 2, characterized in that: The charging demand also includes a charging power demand, and the output parameters of the plurality of ports are adjusted according to the charging demands of the plurality of devices to be tested, the protocol codes corresponding to the plurality of ports, the connection relationship between the devices to be tested and the ports, and a preset dynamic adjustment strategy, and further includes: Determining the maximum output current of the port according to the protocol code corresponding to the port; Obtaining the remaining available power of the port according to the maximum output power of the adapter and the charging power requirements of all the devices to be tested; Obtaining a theoretical output current of the port according to the remaining available power of the port and the output voltage of the port; The output current of the port is adjusted according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm.
4. The multi-device charging test method based on a single adapter as claimed in claim 2, characterized in that: The step of adjusting the output voltage of the port according to the charging voltage requirement of the device to be tested, the maximum output voltage of the port, the theoretical output voltage of the port, and a preset voltage dynamic adjustment algorithm includes: According to the charging voltage requirement EV of the jth device under test j , the maximum output voltage V of the i-th port max-i , the theoretical output voltage V of the i-th port th-out-i , and a preset voltage dynamic adjustment algorithm to adjust the output voltage V of the i-th port out-i ; in, P max represents the maximum output power of the adapter, N represents the number of the devices to be tested that have been connected to the adapter, and EI k represents the charging current requirement of the kth device under test, I sum Indicates the total amount of current required by all the ports described.
5. The multi-device charging test method based on a single adapter as claimed in claim 3, characterized in that: The step of adjusting the output current of the port according to the charging current requirement of the device to be tested, the maximum output current of the port, the theoretical output current of the port, and a preset current dynamic adjustment algorithm includes: According to the charging current requirement EI of the j-th device under test j , the maximum output current I of the i-th port max-i and the theoretical output current I of the ith port th-out-i And the preset current dynamic adjustment algorithm adjusts the output current I of the i-th port out-i ; in, P max represents the maximum output power of the adapter, N represents the number of the devices to be tested that have been connected to the adapter, and P k represents the charging power requirement of the kth device to be tested, P sum-i represents the sum of charging power requirements except for the i-th port, P max-Psum-i represents the remaining available power of the ith port, V out-i Represents the output voltage of the i-th port.
6. A multi-device charging test device based on a single adapter, characterized in that: The adapter includes several ports, including: The first processing unit is used to obtain the charging protocol set supported by each device to be tested, the charging protocol set supported by each port, and the connection relationship between the device to be tested and the port; according to the charging protocol set supported by each device to be tested, the charging protocol set supported by each port, and the connection relationship between the device to be tested and the port, configure the protocol code corresponding to each port; send the protocol code to several devices to be tested respectively, so that the several devices to be tested respectively identify the target charging protocol according to the protocol code, and switch the mode to the target charging protocol mode; wherein the protocol code is the protocol code corresponding to the port; A first acquisition unit, used to acquire charging requirements of a plurality of the devices to be tested; A second processing unit, configured to adjust output parameters of the plurality of ports according to charging requirements of the plurality of devices to be tested, protocol codes corresponding to the plurality of ports, connection relationships between the devices to be tested and the ports, and a preset dynamic adjustment strategy; A third processing unit, used for monitoring charging test data of a plurality of the devices to be tested; The fourth processing unit is used to readjust the output parameters of the corresponding port when the charging test data of any one of the devices to be tested meets the preset abnormal judgment conditions; obtain the battery capacity of several of the devices to be tested; obtain the charging power of several of the devices to be tested according to the output parameters of several of the ports and the connection relationship between the devices to be tested and the ports; obtain the charging time of several of the devices to be tested according to the battery capacity of several of the devices to be tested and the charging power of several of the devices to be tested; when the charging time of the device to be tested is reached, stop charging the device to be tested and release the charging resources of the corresponding port.
7. A multi-device charging test device based on a single adapter, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor; When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
QC quick charge test method
CN111953049A
Charging test method, electronic equipment, adapter and charging test system
CN114050634A