Charging test method, device and system and storage medium
By dividing the power adapter into power gears and determining the expected charging information and reference average current during the charging process, the problem of poor charging test results in the existing technology is solved, and comprehensive evaluation and optimization of the charging performance of the power adapter is achieved.
Patent Information
- Application Number
- CN202410339655.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2025-09-23
AI Technical Summary
In the existing technology, the charging test method of electronic devices is single, which makes it difficult to comprehensively evaluate the charging capacity of the power adapter and lacks optimization guidance for the charging process, resulting in poor test results.
By dividing the power adapter into different power gears and determining the expected charging information and reference average current based on multiple charging stages during the charging process, the difference between the actual average current and the reference average current is compared, and the charging process is adjusted to optimize the charging performance.
It realizes comprehensive evaluation and optimization guidance of the charging performance of the power adapter and improves the charging test effect.
Smart Images

Figure CN120686118A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a charging test method, device, system and storage medium. Background Art
[0002] Currently, electronic devices generally have charging and storage functions to meet the demand for portability. After the electronic device is designed, it must undergo multiple functional and performance tests, and charging performance testing is one of them.
[0003] In related technologies, when performing charging tests on electronic devices, the test results are usually determined by detecting whether the relevant charging information during the process of the electronic device's power going from zero to full is consistent with expectations. This testing method is relatively simple and does not adequately evaluate the charging capacity of the power adapter, resulting in poor charging test results. Summary of the Invention
[0004] To improve the charging test effect of electronic devices, embodiments of the present disclosure provide a charging test method, device, system, and storage medium.
[0005] In a first aspect, an embodiment of the present disclosure provides a charging test method, comprising:
[0006] When charging the electronic device using a target adapter, determining expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter, the expected charging information including expected power percentages or expected charging times corresponding to the charging stages;
[0007] Determining a reference average current of the electronic device during the charging phase based on expected charging information during the charging phase;
[0008] A test result of the target adapter is determined based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
[0009] In some embodiments, determining expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter includes:
[0010] Based on the charging power of the target adapter, the charging scenario of the electronic device and the pre-established power reference relationship, the expected charging information corresponding to the charging power and the charging scenario is determined, and the charging scenarios include screen-off standby, screen-on standby, game scenario and video playback scenario.
[0011] In some embodiments, the multiple charging stages include a first charging stage, where the first charging stage represents a stage in which the electronic device charges for a preset duration; and determining, based on the expected charging information of the charging stage, a reference average current of the electronic device in the charging stage includes:
[0012] Determining an expected charge capacity corresponding to the first charging stage based on the expected power percentage in the first charging stage and the total battery capacity of the electronic device;
[0013] Based on the expected charging capacity and the preset duration, a reference average current corresponding to the first charging stage is determined.
[0014] In some embodiments, the multiple charging stages include a second charging stage, where the second charging stage represents a stage in which the electronic device is charged from an initial level to a full level; and determining, based on the expected charging information of the charging stage, a reference average current of the electronic device in the charging stage includes:
[0015] Determining a total current charged in the second charging stage based on a total battery capacity of the electronic device;
[0016] A reference average current corresponding to the second charging stage is determined based on the total current and an expected charging duration of the second charging stage.
[0017] In some embodiments, determining the test result of the target adapter based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage includes:
[0018] In response to the electronic device, in each charging stage, a difference between the reference average current and the actual average current satisfies a preset condition, determining that the target adapter test passes;
[0019] In response to the difference between the reference average current and the actual average current not meeting a preset condition in at least one charging stage of the electronic device, the current value of the electronic device in the charging stage is adjusted based on the reference average current.
[0020] In some embodiments, the charging test method of the present disclosure further includes:
[0021] In response to the battery capacity of the electronic device being fully charged, the electronic device is controlled to run a preset system service, and the preset system service is periodically detected. In response to the process of the preset system service being terminated, the process of the preset system service is re-established; wherein the preset system service includes one or more of a vibration service, a camera service, a screen brightness service, and an audio service.
[0022] In some embodiments, the charging test method of the present disclosure further includes:
[0023] When a target adapter is used to charge an electronic device with the screen off, the electronic device periodically detects a charging detection process, and in response to termination of the charging detection process, re-establishes the charging detection process; wherein the charging detection process is used to detect charging parameters of the electronic device.
[0024] In some embodiments, the process of controlling the target adapter to charge the electronic device includes:
[0025] The output end of the relay is controlled by the clamping portion of the detection fixture to be inserted into the charging port of the electronic device, wherein the relay includes multiple input ends, each input end is connected to an adapter, and the relay is used to control the power supply between each input end and the output end;
[0026] The target adapter is determined from at least one adapter connected to the relay, and the input terminal connected to the target adapter is controlled to be conductive with the output terminal.
[0027] In a second aspect, an embodiment of the present disclosure provides a charging test device, comprising:
[0028] an information determination module configured to, when charging the electronic device using a target adapter, determine expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter, the expected charging information including an expected power percentage or an expected charging duration corresponding to the charging stage;
[0029] a current determination module, configured to determine a reference average current of the electronic device in the charging stage based on expected charging information of the charging stage;
[0030] The test result module is configured to determine a test result of the target adapter based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
[0031] In some embodiments, the information determination module is configured to:
[0032] Based on the charging power of the target adapter, the charging scenario of the electronic device and the pre-established power reference relationship, the expected charging information corresponding to the charging power and the charging scenario is determined, and the charging scenarios include screen-off standby, screen-on standby, game scenario and video playback scenario.
[0033] In some embodiments, the multiple charging stages include a first charging stage, where the first charging stage represents a stage in which the electronic device is charged for a preset time period; and the current determination module is configured to:
[0034] Determining an expected charge capacity corresponding to the first charging stage based on the expected power percentage in the first charging stage and the total battery capacity of the electronic device;
[0035] Based on the expected charging capacity and the preset duration, a reference average current corresponding to the first charging stage is determined.
[0036] In some embodiments, the multiple charging stages include a second charging stage, where the second charging stage represents a stage where the electronic device is charged from an initial level to a full level; and the current determination module is configured to:
[0037] Determining a total current charged in the second charging stage based on a total battery capacity of the electronic device;
[0038] A reference average current corresponding to the second charging stage is determined based on the total current and an expected charging duration of the second charging stage.
[0039] In some embodiments, the test result module is configured to:
[0040] In response to the electronic device, in each charging stage, a difference between the reference average current and the actual average current satisfies a preset condition, determining that the target adapter test passes;
[0041] In response to the difference between the reference average current and the actual average current not meeting a preset condition in at least one charging stage of the electronic device, the current value of the electronic device in the charging stage is adjusted based on the reference average current.
[0042] In some embodiments, the charging test device of the present disclosure further includes a discharge control module, wherein the discharge control module is configured to:
[0043] In response to the battery capacity of the electronic device being fully charged, the electronic device is controlled to run a preset system service, and the preset system service is periodically detected. In response to the process of the preset system service being terminated, the process of the preset system service is re-established; wherein the preset system service includes one or more of a vibration service, a camera service, a screen brightness service, and an audio service.
[0044] In some embodiments, the charging test device of the present disclosure further includes a charging detection module, wherein the charging detection module is configured to:
[0045] When a target adapter is used to charge an electronic device with the screen off, the electronic device periodically detects a charging detection process, and in response to termination of the charging detection process, re-establishes the charging detection process; wherein the charging detection process is used to detect charging parameters of the electronic device.
[0046] In some embodiments, the information determination module is configured to:
[0047] The output end of the relay is controlled by the clamping portion of the detection fixture to be inserted into the charging port of the electronic device, wherein the relay includes multiple input ends, each input end is connected to an adapter, and the relay is used to control the power supply between each input end and the output end;
[0048] The target adapter is determined from at least one adapter connected to the relay, and the input terminal connected to the target adapter is controlled to be conductive with the output terminal.
[0049] In a third aspect, an embodiment of the present disclosure provides a charging test system, comprising:
[0050] an electronic device and at least one adapter;
[0051] a relay having an input end connected to the at least one adapter and an output end connected to a charging port of an electronic device;
[0052] A detection jig, comprising a clamping portion, the clamping portion being used to control the output end of the relay to be pluggable and connected to the charging port of the electronic device;
[0053] The controller includes a processor and a memory, wherein the memory stores computer instructions, and the computer instructions are used to enable the processor to execute the method according to any embodiment of the first aspect.
[0054] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method according to any embodiment of the first aspect.
[0055] The charging test method of the disclosed embodiment includes determining expected charging information for multiple charging stages based on the charging power of the target adapter when charging an electronic device using a target adapter, determining a reference average current for the electronic device in each charging stage based on the expected charging information, and determining a test result based on the difference between the reference average current and the actual average current in each charging stage. In the disclosed embodiment, by dividing the power adapter into different power levels and determining the charging test result based on the expected charge input and expected charging time for each charging stage based on the multiple charging stages during the charging process, the charging performance is more comprehensively and effectively reflected. Moreover, by using the difference between the reference average current and the actual average current, the optimization of the charging process can be effectively guided, thereby improving the charging test effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 is a flowchart of a charging test method according to some embodiments of the present disclosure.
[0058] Figure 2 is a structural block diagram of a charging test system according to some embodiments of the present disclosure.
[0059] Figure 3 is a structural block diagram of a charging test system according to some embodiments of the present disclosure.
[0060] Figure 4 is a flowchart of a charging test method according to some embodiments of the present disclosure.
[0061] Figure 5 is a flowchart of a charging test method according to some embodiments of the present disclosure.
[0062] Figure 6 is a flowchart of a charging test method according to some embodiments of the present disclosure.
[0063] Figure 7 1 is a structural block diagram of a charging test device according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0064] The technical solutions of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different embodiments of the present disclosure described below can be combined with each other as long as they do not conflict with each other.
[0065] To meet portability requirements, electronic devices now generally include charging and storage capabilities. After electronic devices are designed, they must undergo multiple functional and performance tests, one of which is charging performance testing. Charging testing of electronic devices involves testing their charging capabilities after design is complete to determine whether their power adapter compatibility meets required standards.
[0066] In related technologies, when performing charging tests on electronic devices, the test results are usually determined by detecting whether the relevant charging information during the process of the electronic device's power level rising from zero to full is consistent with expectations. This testing method is relatively simple and difficult to reflect the power supply performance of the power adapter in different charging stages. It is insufficient to evaluate the charging capacity of the power adapter and lacks the ability to guide the optimization of the charging process, resulting in poor charging test results.
[0067] Based on this, the embodiments of the present disclosure provide a charging test method, device, system and storage medium. By dividing the power adapter into different power gears and based on multiple charging stages in the charging process, the charging performance of the power adapter is controlled from aspects such as expected charging power and expected charging time, and the charging performance of the adapter is evaluated more comprehensively, thereby better providing effective guidance information for charging optimization and improving the charging test effect.
[0068] like Figure 1 As shown, in some embodiments, the charging test method of the present disclosure includes:
[0069] S110 : When charging the electronic device using a target adapter, determine expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter.
[0070] It is understandable that when performing charging tests on electronic devices, it is often necessary to test the electronic device's support for power adapters of various power levels. Therefore, in the disclosed embodiments, power levels can be pre-set for power adapters of different power levels, and corresponding expected charging information can be set for each power level, thereby pre-establishing a power reference relationship.
[0071] For example, in one example, the power reference relationship described in the present disclosure may be shown in Table 1 below:
[0072] Table 1
[0073]
[0074] In the example of Table 1, the power adapter is divided into multiple gears based on the power range. At the same time, each gear is provided with expected charging information. The expected charging information refers to the expected charging effect that can be achieved when the power adapter of the gear is used to charge the electronic device.
[0075] It is worth noting that in the embodiments of the present disclosure, the charging process of the electronic device is divided into multiple charging stages, and different charging stages correspond to different expected charging information. For example, in the example in Table 1 above, the charging process of the electronic device from zero to full power is divided into the following three charging stages:
[0076] 1) Charging stage 1.
[0077] The expected charging information corresponding to the charging stage from the start of charging of the electronic device to the 10-minute charging stage includes the expected battery power percentage, that is, the battery power percentage expected to be charged in 10 minutes.
[0078] 2) Charging stage 2.
[0079] The expected charging information corresponding to the charging stage of the electronic device from the start of charging to 30 minutes includes the expected battery percentage, that is, the battery percentage expected to be charged in 30 minutes.
[0080] 3) Charging stage 3.
[0081] The electronic device starts to charge to a full charge stage. The expected charging information corresponding to this charging stage includes the expected charging time, that is, the time expected to be spent to fully charge the device.
[0082] For example, taking the expected charging information corresponding to the gear S described in the above Table 1 as "a1% charged in 10 minutes; b1% charged in 30 minutes; full charging time c1 minute", it means: when using the power adapter of gear S to charge the electronic device, the expected power percentage for charging in 10 minutes is a1%, the expected power percentage for charging in 30 minutes is b1%, and the expected charging time required to fully charge 100% is c1 minute.
[0083] Of course, those skilled in the art will understand that the charging stage is not limited to the 10-minute, 30-minute, and fully charged stages in the above examples, but can also be any other charging stage suitable for implementation. In summary, the embodiments of the present disclosure provide two ideas for dividing the charging stages:
[0084] First, the charging stage is divided based on the charging time, such as charging for 10 minutes, 20 minutes, 30 minutes, etc. At this time, the expected charging information corresponding to each charging stage is the expected power percentage, that is, the percentage of power that can be charged when the charging time is reached;
[0085] The second is to divide the charging stages based on the percentage of charged power, such as charging 50%, 80%, 100%, etc. At this time, the expected charging information corresponding to each charging stage is the expected charging time, that is, the expected charging time required to reach the power percentage.
[0086] On this basis, those skilled in the art can divide the charging process into any number of charging stages, which is not limited in this disclosure.
[0087] In the embodiment of the present disclosure, the target adapter refers to a power adapter among the adapters to be tested. When the target adapter is used to charge an electronic device, the corresponding expected charging information can be determined according to the charging power of the target adapter based on the power reference relationship shown in Table 1, for example.
[0088] For example, in one example, the charging power of the target adapter is 60W, so according to the power reference relationship in Table 1, the corresponding gear can be determined to be "Gear A", and the expected charging information is "charge a3% in 10 minutes; charge b3% in 30 minutes; full charge time c3 minutes".
[0089] S120: Determine a reference average current of the electronic device in the charging stage based on expected charging information in the charging stage.
[0090] In an embodiment of the present disclosure, after determining the expected charging information of each charging stage when charging using the target adapter, the average current reference value of the electronic device in the charging stage can be determined based on the expected charging information of each charging stage, that is, the reference average current described in the present disclosure.
[0091] For example, taking "Charging Stage 1" in the embodiment of Table 1 above as an example, based on the expected charging information of Charging Stage 1, that is, the expected percentage of power after charging for 10 minutes, and the total battery capacity of the electronic device, the expected charging capacity after charging for 10 minutes can be determined. Then, based on the expected charging capacity and the charging time (10 minutes), the reference average current in Charging Stage 1 can be calculated. This calculation process is described in the following embodiments of this disclosure and is not described in detail here.
[0092] The above description only takes one charging stage as an example to illustrate the process of calculating the reference average current. Taking this as an example, the reference average current corresponding to each charging stage can be calculated based on the expected charging information of each charging stage.
[0093] S130 : Determine a test result of the target adapter based on a difference between a reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
[0094] It is understood that the reference average current of a charging stage refers to the reference value of the average charging current expected to be achieved during that charging stage. If, during the actual charging process, the actual average current of that charging stage is consistent with or very close to the reference average current, then the actual charging effect can achieve the expected charging effect. Conversely, if the actual average current of that charging stage is significantly different from the reference average current, then the actual charging effect is far from the expected charging effect, and it is difficult to achieve the expected charging effect.
[0095] Based on this, in the embodiment of the present disclosure, after determining the reference average current for each charging stage, in the process of charging the electronic device using the target adapter, for each charging stage, the charging current of the charging stage can be detected in real time, and then the actual average current corresponding to each charging stage can be calculated.
[0096] Taking any charging stage as an example, the reference average current represents the expected value for that charging stage, and the actual average current represents the actual value for that charging stage. Comparing the difference between the reference average current and the actual average current can reflect the charging performance of the target adapter during that charging stage when charging the electronic device. In the disclosed embodiments, the charging test results for the target adapter can be determined based on the difference between the reference average current and the actual average current in each charging stage.
[0097] It is worth noting that in the embodiment of the present disclosure, the reference average current of each charging stage refers to the expected value of the charging stage. Therefore, after determining the difference between the reference average current and the actual average current in the charging stage, the actual average current can be adjusted based on the reference average current when the difference is large. For example, the current value of the applied current of the electronic device in the charging stage is adjusted so that the actual average current is as close to the reference average current as possible, thereby achieving guidance and optimization of the charging process.
[0098] From the above, it can be seen that in the embodiment of the present disclosure, by dividing the power adapter into different power gears, and based on the multiple charging stages in the charging process, the charging test results are determined according to the expected charging amount, expected charging time, etc. in each charging stage, so as to more comprehensively and effectively reflect the charging performance, and by referring to the difference between the average current and the actual average current, it can effectively guide the optimization of the charging process and improve the charging test effect.
[0099] In some embodiments, the present disclosure provides a test system for implementing a charging test of an electronic device, such as Figure 2 The following is a diagram showing the architecture of the test system in some embodiments of the present disclosure. Figure 2 Provide explanation.
[0100] In some implementations, a test system according to an example of the present disclosure includes a relay, a detection fixture, and a control device.
[0101] A relay is a device used to switch charging ports. The relay includes multiple input terminals and one output terminal. Figure 2 As shown, the relay includes 4 input terminals, each of which is connected to a power adapter, namely adapter 0, adapter 1, adapter 2 and adapter 3. The output terminal of the relay is connected to the electronic device through a charging cable.
[0102] The relay can be communicatively connected to the control device via a wireless or wired connection. In the embodiment of the present disclosure, the relay can switch any input end and output end to conduct, so that the power adapter can be switched by controlling the port switching of the relay.
[0103] In the disclosed embodiments, the relay not only switches the power adapter, but also controls the power on and off of each port, and monitors and obtains charging parameters such as the current and voltage of the port power supply. The relay can receive control instructions from the control device and transmit charging parameters to the control device via wired or wireless communication.
[0104] In the embodiment of the present disclosure, the switching of the power adapter is not only achieved by port switching, but also requires the use of a detection fixture to achieve the physical plug-in connection between the charging cable and the electronic device, thereby simulating the real charging scenario of the electronic device.
[0105] For example, in some embodiments, the detection fixture may include a clamping portion for clamping the charging cable, so that under algorithm control, the charging cable plug is driven to be pluggable and connected to the charging socket of the electronic device, thereby realizing the plugging and unplugging of the charging cable.
[0106] The detection fixture and the control device can establish a communication connection through a wired or wireless manner, so that the control device can control the clamping part of the detection fixture to achieve the plug-in connection between the charging cable and the electronic device.
[0107] An electronic device refers to a device that requires a charging test, and may be, for example, a smartphone, tablet computer, wearable device, etc., although this disclosure does not limit this. In some embodiments, the electronic device may be fixedly mounted on a platform of a test fixture, so that a control device controls the test fixture to achieve a pluggable connection between the charging cable and the electronic device.
[0108] In embodiments of the present disclosure, the electronic device may establish a communicative connection with the control device via a wireless or wired connection. For example, in one example, the electronic device may establish a wireless communication connection with the control device via the MQTT (Message Queuing Telemetry Transport) protocol. Of course, the wireless communication method between the electronic device and the control device is not limited to MQTT and may also be Bluetooth, WiFi, etc., which is not limited in the present disclosure.
[0109] In the embodiments of the present disclosure, the electronic device can monitor and obtain relevant charging parameters such as charging current, voltage, power, and charging time by running relevant system applications during the charging process, and the electronic device can send the obtained relevant charging parameters to the control device. In some embodiments, a corresponding charging detection application can be developed in advance and then run on the electronic device.
[0110] The control device is the main control device used to control the functions of various parts of the test system and execute the relevant algorithms to implement the charging test. The control device can be a separate device or the same device as the electronic device, and this disclosure does not limit this. For example, in one example, the control device can be a PC (Personal Computer), a server, etc., and this disclosure does not limit this.
[0111] The control device includes a processor, a memory and a communication module. The communication module may include a wired or wireless communication module. In one example, the control device can establish a wired communication connection with the relay and the detection fixture through the wired communication module, and establish a wireless communication connection with the electronic device through the wireless communication module.
[0112] The processor can be any type of processor with one or more processing cores. It can perform single-threaded or multi-threaded operations and is used to parse instructions to perform operations such as acquiring data, performing logical operations, and issuing operation results.
[0113] The memory may include non-volatile computer-readable storage media, such as at least one disk storage device, flash memory device, distributed storage device remotely located from the processor, or other non-volatile solid-state storage device. The memory may have a program storage area for storing non-volatile software programs, non-volatile computer executable programs, and modules for the processor to call to cause the processor to perform one or more method steps. The memory may also include a volatile random access memory medium or a storage portion such as a hard disk as a data storage area for storing operation processing results and data output by the processor.
[0114] Figure 3 The structural block diagram of the detection fixture in some embodiments of the present disclosure is shown below. Figure 3 The structure and principle of the detection fixture are explained.
[0115] like Figure 3 As shown, the detection fixture includes a main controller and a communication module. The main controller is the main control module of the detection fixture, and the communication module is used to establish a communication connection with the main control device.
[0116] The test fixture also includes a test platform and a clamping portion. The test platform is used to place and secure the electronic device, thereby ensuring that the electronic device is stably mounted on the test fixture. Simultaneously, a second drive mechanism can controllably adjust the height, direction, and angle of the test platform to accommodate charging tests on various electronic devices. In some embodiments, the second drive mechanism may include a motor and a transmission mechanism, which will be understood by those skilled in the art and will not be further elaborated in this disclosure.
[0117] The clamping portion is used to clamp and fix the charging cable plug of the electronic device. At the same time, the first driving mechanism can drive the clamping portion to move in a controlled manner to achieve a pluggable connection between the charging cable and the charging socket of the electronic device. In some embodiments, the first driving mechanism may include a stepping motor and a transmission mechanism, etc. Those skilled in the art can understand this and will not be elaborated in this disclosure.
[0118] In some embodiments, the detection fixture further includes a light sensor, which can be disposed on the clamping portion, so that the main controller can detect the alignment of the charging cable plug and the charging socket of the electronic device based on the signal of the light sensor, thereby avoiding or reducing the risk of device damage caused by inaccurate positioning.
[0119] In some embodiments, the detection fixture also includes a pressure sensor, which can be provided on the clamping portion, so that the main controller can detect whether the charging cable plug is properly connected to the charging socket of the electronic device based on the signal of the pressure sensor, thereby avoiding or reducing the risk of equipment damage caused by inaccurate plugging and unplugging pressure, and fully simulating the plugging and unplugging of the charging cable in a real charging scenario.
[0120] It can be understood that in the embodiment of the present disclosure, a detection fixture is used to achieve a pluggable connection between the charging cable and the electronic device. Compared with the traditional scenario of charging testing only through port switching, the embodiment of the present disclosure can truly simulate the actual scenario of user charging, improve the charging test effect, and ensure the stability and reliability of plugging and unplugging the charging cable through light, pressure sensors, etc.
[0121] Moreover, in the embodiment of the present disclosure, the relay can not only realize port switching, but also control the power on and off of the port, monitor and obtain the power supply information of the port, thereby providing a reliable data basis for the problem location and analysis of charging detection, and improving the charging detection effect.
[0122] Based on the above test system, the present disclosure will continue to describe the process of the charging test method below.
[0123] In the above embodiments, combined with Table 1, it can be understood that the present disclosure can pre-divide power adapters of different power levels and pre-set expected charging information for multiple charging stages for different levels. Furthermore, considering that the charging parameters of electronic devices in different charging scenarios vary greatly, in order to detect the charging performance of electronic devices in different scenarios, different expected charging information can be set for different charging scenarios in the pre-established power reference relationship. For example, in one example, the pre-established power reference relationship can be shown in Table 2 below:
[0124] Table 2
[0125]
[0126]
[0127] That is, in the power reference relationship of the example in Table 2, the charging scenarios of the electronic device are divided into "screen off standby", "screen on standby", and "gaming scenario", so that the expected charging information of multiple charging stages corresponding to different power levels and charging scenarios is set.
[0128] For example, the expected charging information of the "Screen Off Standby" scene in "Gear S" is "10 minutes to charge a 11 %; Charge into b in 30 minutes 11 %; Filling time c 11 For example, "minutes" means that when the target adapter in gear S is used to charge the electronic device in the screen-off standby scenario, the expected power percentage after 10 minutes of charging is a 11 %, the expected power percentage after charging for 30 minutes is b 11 %, the expected charging time required to fully charge to 100% is c 11 minute.
[0129] Of course, those skilled in the art will understand that the above-mentioned charging scenarios are merely examples of the present disclosure and do not limit the present disclosure. In other embodiments, the charging scenarios may also include other scenarios, such as video playback scenarios, etc., which will not be elaborated in the present disclosure.
[0130] After constructing the power reference relationship shown in Table 2, for example, the power reference relationship can be stored in the charging test system for retrieval and use during the charging test.
[0131] like Figure 4 As shown, in some embodiments, the charging test method of the present disclosure includes:
[0132] S410 , controlling the output end of the relay through the clamping portion of the detection fixture to be inserted into the charging port of the electronic device.
[0133] S420: Determine a target adapter from at least one adapter connected to the relay, and control the input terminal and the output terminal connected to the target adapter to be conductive.
[0134] Combine Figure 2 As shown, in the charging test preparation stage, you can first select multiple power adapters and plug each power adapter into the input terminal of the relay. Figure 2 In this example, the relay includes four input terminals, and each input terminal is connected to a power adapter, and a total of four adapters, namely, adapter 0, adapter 1, adapter 2, and adapter 3, are connected.
[0135] The electronic device is then fixed to the test platform of the test jig, and the jig is controlled to adjust the device to the appropriate height and position. One end of the charging cable is then plugged into the output terminal of the relay, while the other end is placed on the clamping portion of the test jig. The control device sends a command to the test jig to start the test, and the test jig controls the clamping portion to insert the charging cable plug into the charging port of the electronic device, physically plugging and unplugging the charger.
[0136] After completing the above process, the control device can detect the charging progress of each power adapter in turn. Specifically, the control device can select a target adapter from the four adapters and then send a control instruction to the relay. After receiving the control instruction, the relay can control the input and output terminals connected to the target adapter to conduct, starting the charging test.
[0137] As previously mentioned, during the charging test, the relay can also monitor power supply parameters such as port current, voltage, and power in real time, and can also control the port current on and off. Furthermore, a corresponding charging detection application can be run on the electronic device to monitor and obtain relevant information such as charging current, voltage, power, and charging duration in real time. This disclosure will not elaborate on this.
[0138] Combine Figure 2As shown, in an embodiment of the present disclosure, when charging an electronic device using a target adapter, the control device can obtain the charging power of the target adapter and the current charging scenario of the electronic device, and then determine the corresponding power gear from the power reference relationship described in Table 2 based on the charging power, and then determine the corresponding expected charging information based on the charging scenario under the gear.
[0139] As can be seen from the foregoing, the multiple charging stages in the embodiments of the present disclosure mainly include two categories, namely the first charging stage and the second charging stage. The first charging stage refers to the stage in which the electronic device charges for a preset duration. For example, the charging stage 1 of charging for 10 minutes and the charging stage 2 of charging for 30 minutes in the above example are both the first charging stage. The second charging stage refers to the stage in which the electronic device is charged to a preset percentage of power. For example, the charging stage 3 from the initial power to full power in the above example is the second charging stage.
[0140] like Figure 5 As shown, in some embodiments, the charging test method of the present disclosure includes:
[0141] S510: Determine an expected charging capacity corresponding to the first charging stage based on the expected power percentage in the first charging stage and the total battery capacity of the electronic device.
[0142] S520: Determine a reference average current corresponding to the first charging stage based on the expected charging capacity and the preset duration.
[0143] For example, in an example, the first charging stage is charging stage 1 of charging for 10 minutes. Based on the above method, the expected power percentage corresponding to charging stage 1 can be determined as a, and the total battery capacity of the electronic device can be obtained as C. 总 .
[0144] Therefore, the expected charging capacity C1 corresponding to charging stage 1 can be determined according to the following formula (1), which is expressed as:
[0145]
[0146] In formula (1), C 总 represents the total battery capacity of the electronic device, which can be obtained through the electronic device. a represents the expected battery percentage, which can be determined through the aforementioned method. S1 represents a floating error, which is a constant value. Therefore, in the disclosed example, the expected charging capacity C1 corresponding to charging stage 1 can be calculated according to formula (1), expressed as: the battery capacity expected to be charged into the electronic device in 10 minutes is C1.
[0147] After obtaining the expected charging capacity C1, the reference average current I1 corresponding to charging stage 1 can be calculated and expressed as:
[0148]
[0149] In formula (2), C1 represents the expected charge capacity for charging stage 1, which has been calculated according to formula (2). 6 represents the conversion of the expected duration of 10 minutes to hours. Therefore, the reference average current I1 corresponding to charging stage 1 can be calculated according to formula (2).
[0150] The above describes the process of calculating the reference average current by taking charging stage 1 as an example. The principle for charging stage 2 is the same. Those skilled in the art can undoubtedly understand and fully implement it based on the above, and the present disclosure will not elaborate on this.
[0151] like Figure 6 As shown, in some embodiments, the charging test method of the present disclosure includes:
[0152] S610: Determine the total charging current in the second charging stage based on the total battery capacity of the electronic device.
[0153] S620: Determine a reference average current corresponding to the second charging stage based on the total current and the expected charging time of the second charging stage.
[0154] For example, in an example, the second charging stage is charging stage 3 from the initial charge to 100% full. Based on the above method, the expected charging time corresponding to charging stage 3 can be determined as c, and the total battery capacity of the electronic device can be obtained as C. 总 .
[0155] Therefore, the total current I charged in charging stage 3 can be determined according to the following formula (3): 总 , expressed as:
[0156] I 总 =C 总 *60 (3)
[0157] In formula (3), C 总 Represents the total battery capacity of the electronic device, which can be obtained through the electronic device. 60 represents the expected charging time converted to minutes. Thus, the total current I charged in charging stage 3 can be calculated according to formula (3): 总 .
[0158] The total current I charged in the charging stage 3 is obtained 总 After that, the reference average current I corresponding to charging stage 3 can be calculated 均 , expressed as:
[0159] T=I 总 / I 均(4)
[0160] In formula (4), T represents the expected charging time of charging stage 3, which can be determined by the above method. 总 Indicates the total current I charged in charging stage 3 总 , has been calculated according to formula (3). Therefore, the reference average current I corresponding to charging stage 3 can be calculated according to formula (4): 均 .
[0161] Through the above Figure 5 and Figure 6 The method of the embodiment can calculate the reference average current corresponding to each charging stage. At the same time, when charging the electronic device using the target adapter, the actual average current corresponding to each charging stage can be calculated based on the current value collected during the actual charging process.
[0162] For example, in an example, combining Figure 2 As shown, the electronic device can continuously monitor and obtain the charging current value and send the charging current value to the control device. The control device can then calculate the actual average current for charging for 10 minutes, the actual average current for charging for 30 minutes, and the actual average current for charging to 100% based on the received charging current value.
[0163] After determining the reference average current and the actual average current in each charging stage, the test result can be determined based on the difference between the two.
[0164] For example, in one example, the reference average current and the actual average current in each charging stage can be subtracted to calculate the difference, and the difference can be compared with a preset threshold. If the difference is less than or equal to the preset threshold, it means that the actual average current in the charging stage is very close to the reference average current, and it is determined that the charging stage meets the preset conditions. Conversely, if the difference is greater than the preset threshold, it means that the actual average current in the charging stage is significantly different from the reference average current, and it is determined that the charging stage does not meet the preset conditions. It is understood that the value of the preset threshold can be selected according to the needs of the specific scenario, and this disclosure does not limit this.
[0165] In the disclosed embodiments, if each charging stage satisfies the preset conditions, the target adapter has passed the charging test for the electronic device. Conversely, if a charging stage does not meet the preset conditions, the target adapter has failed the charging test for the electronic device. In this case, the current value of the electronic device in that charging stage can be adjusted based on the reference average current of that charging stage, thereby optimizing the charging process and ensuring that the charging process reaches the expected level.
[0166] From the above, it can be seen that in the embodiment of the present disclosure, by dividing the power adapter into different power gears, and based on the multiple charging stages in the charging process, the charging test results are determined according to the expected charging amount, expected charging time, etc. in each charging stage, so as to more comprehensively and effectively reflect the charging performance, and by referring to the difference between the average current and the actual average current, it can effectively guide the optimization of the charging process and improve the charging test effect.
[0167] In the above embodiment, the charging test process of one power adapter among multiple power adapters is described. After the test of one power adapter is completed, Figure 2 As shown, the control device can control the relay port to switch to the next adapter, and continue to repeat the above method process to complete the charging test of the new adapter until all adapters are tested.
[0168] It is worth noting that, combined with Figure 2 As shown, in some embodiments, when switching from a first adapter to a second adapter, the relay can first de-energize the first adapter's input, then switch the output to connect to the second adapter's input, and then re-energize the second adapter's input. By controlling the on / off power during port switching, a stable power supply can be ensured during charging, further improving detection effectiveness.
[0169] It's understandable that when switching from the first adapter to the second adapter for charging testing, the electronic device may become fully charged, thus interrupting the test process. Related technologies typically consume the electronic device's power by manually discharging it, causing it to rapidly consume power. This process not only increases manual operation costs but also prolongs the discharge cycle, impacting charging test efficiency.
[0170] In the embodiment of the present disclosure, a fast discharge program can be designed in the charging detection application on the electronic device side, so that when the electronic device is charged to the target power, the fast discharge program is automatically run to achieve rapid discharge.
[0171] For example, in some embodiments, the charging test method of the present disclosure includes:
[0172] In response to the battery capacity of the electronic device being fully charged, the electronic device is controlled to run a preset system service, and the preset system service is periodically detected. In response to the process of the preset system service being terminated, the process of the preset system service is re-established.
[0173] In the embodiments of the present disclosure, preset system services refer to related services at the bottom layer of the electronic device system. When the electronic device runs these system services, it can quickly consume the power of the electronic device. For example, in one example, the preset system services include but are not limited to vibration service, camera service, screen brightness service, and audio service.
[0174] In one example, in response to the electronic device detecting that the battery capacity is full, the vibration service (VIBRATOR_SERVICE) at the bottom layer of the system is called, and a process for running the vibration service is established to achieve a continuous vibration effect. In one example, in response to the electronic device detecting that the battery capacity is full, the camera service (CAMERA_SERVICE) at the bottom layer of the system is called, and a process for running the camera service is established to achieve a long-lasting flash effect. In one example, in response to the electronic device detecting that the battery capacity is full, the screen brightness service (SCREEN_BRIGHTNESS) at the bottom layer of the system is called, and a process for running the screen brightness service is established to adjust the screen brightness to the highest. In one example, in response to the electronic device detecting that the battery capacity is full, the audio service (AUDIO_SERVICE) at the bottom layer of the system is called, and a process for running the volume service is established to adjust the volume to the highest to play audio or video.
[0175] Those skilled in the art will understand that the preset system services described in this disclosure are not limited to the above examples, and the system services in the above examples may all be run simultaneously, or only one or more of them may be run, which will not be elaborated in this disclosure.
[0176] Moreover, during the process of running the above-mentioned preset system services, a timer (AlarmManager) can be used to regularly detect whether the process of each system service is terminated. If a system service process is killed, the process of the system service can be re-established to keep the process alive.
[0177] From the above, it can be seen that in the embodiment of the present disclosure, by automatically calling system services and combining the process with regular detection and keep-alive, the rapid discharge of the electronic device is achieved, thereby shortening the charging detection cycle and improving the detection efficiency.
[0178] After actual comparison, in the related art, when using the manual discharge solution, the average discharge time of the electronic device exceeds 90 minutes, while when using the automatic rapid discharge solution of the embodiment of the present disclosure, the average discharge time of the electronic device can be shortened to 35 minutes, greatly improving the charging test efficiency.
[0179] It is understood that when an electronic device's screen is off for a long time, the system background will enter idle mode, causing active service processes to be forced to sleep and stop running. Therefore, in the embodiments of the present disclosure, when an electronic device is charging with the screen off, the charging detection application process is likely to be stopped, making it impossible to perform the charging test.
[0180] Therefore, in some embodiments, the charging test method of the present disclosure includes:
[0181] When the target adapter is used to charge the electronic device with the screen off, the electronic device periodically detects the charging detection process, and re-establishes the charging detection process in response to termination of the charging detection process.
[0182] In the embodiment of the present disclosure, in the scenario where the electronic device is charging with the screen off, a timer (AlarmManager) can be used to periodically check whether the charging detection process of the electronic device has been killed. If the process has been killed, the charging detection process can be re-established to keep the process alive.
[0183] From the above, it can be seen that in the embodiment of the present disclosure, the charging and electrical measurement process is ensured to be stable and reliable by periodically detecting and keeping the process alive, thereby improving the detection effect.
[0184] In some embodiments, the present disclosure provides a charging test device, such as Figure 7 As shown, the charging test device includes:
[0185] An information determination module 10 is configured to determine, when charging the electronic device using a target adapter, expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter, the expected charging information including an expected power percentage or an expected charging duration corresponding to the charging stage;
[0186] a current determination module 20 configured to determine a reference average current of the electronic device in the charging stage based on the expected charging information of the charging stage;
[0187] The test result module 30 is configured to determine a test result of the target adapter based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
[0188] In some embodiments, the information determination module 10 is configured to:
[0189] Based on the charging power of the target adapter, the charging scenario of the electronic device and the pre-established power reference relationship, the expected charging information corresponding to the charging power and the charging scenario is determined, and the charging scenarios include screen-off standby, screen-on standby, game scenario and video playback scenario.
[0190] In some embodiments, the multiple charging stages include a first charging stage, where the first charging stage represents a stage in which the electronic device is charged for a preset time period; and the current determination module 20 is configured to:
[0191] Determining an expected charge capacity corresponding to the first charging stage based on the expected power percentage in the first charging stage and the total battery capacity of the electronic device;
[0192] Based on the expected charging capacity and the preset duration, a reference average current corresponding to the first charging stage is determined.
[0193] In some embodiments, the multiple charging stages include a second charging stage, where the second charging stage represents a stage where the electronic device is charged from an initial level to a full level; and the current determination module 20 is configured to:
[0194] Determining a total current charged in the second charging stage based on a total battery capacity of the electronic device;
[0195] A reference average current corresponding to the second charging stage is determined based on the total current and an expected charging duration of the second charging stage.
[0196] In some embodiments, the test result module 30 is configured to:
[0197] In response to the electronic device, in each charging stage, a difference between the reference average current and the actual average current satisfies a preset condition, determining that the target adapter test passes;
[0198] In response to the difference between the reference average current and the actual average current not meeting a preset condition in at least one charging stage of the electronic device, the current value of the electronic device in the charging stage is adjusted based on the reference average current.
[0199] In some embodiments, the charging test device of the present disclosure further includes a discharge control module, wherein the discharge control module is configured to:
[0200] In response to the battery capacity of the electronic device being fully charged, the electronic device is controlled to run a preset system service, and the preset system service is periodically detected. In response to the process of the preset system service being terminated, the process of the preset system service is re-established; wherein the preset system service includes one or more of a vibration service, a camera service, a screen brightness service, and an audio service.
[0201] In some embodiments, the charging test device of the present disclosure further includes a charging detection module, wherein the charging detection module is configured to:
[0202] When a target adapter is used to charge an electronic device with the screen off, the electronic device periodically detects a charging detection process, and in response to termination of the charging detection process, re-establishes the charging detection process; wherein the charging detection process is used to detect charging parameters of the electronic device.
[0203] In some embodiments, the information determination module 10 is configured to:
[0204] The output end of the relay is controlled by the clamping portion of the detection fixture to be inserted into the charging port of the electronic device, wherein the relay includes multiple input ends, each input end is connected to an adapter, and the relay is used to control the power supply between each input end and the output end;
[0205] The target adapter is determined from at least one adapter connected to the relay, and the input terminal connected to the target adapter is controlled to be conductive with the output terminal.
[0206] In some embodiments, the present disclosure provides a charging test system comprising:
[0207] an electronic device and at least one adapter;
[0208] a relay having an input end connected to the at least one adapter and an output end connected to a charging port of an electronic device;
[0209] A detection jig, comprising a clamping portion, the clamping portion being used to control the output end of the relay to be pluggable and connected to the charging port of the electronic device;
[0210] The controller includes a processor and a memory, wherein the memory stores computer instructions, and the computer instructions are used to enable the processor to execute the method described in any of the above embodiments.
[0211] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to any of the aforementioned embodiments.
[0212] In the embodiments of the present disclosure, the related structures and principles of the charging test system and the storage medium can be referred to by those skilled in the art. Figure 2 、 Figure 3 The implementation method is sufficient, and this disclosure will not elaborate on it.
[0213] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the embodiments. Those skilled in the art will appreciate that other variations or modifications can be made based on the above description. It is not necessary and impossible to enumerate all embodiments here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present disclosure.
Claims
1. A charging test method, characterized in that: include: When charging the electronic device using a target adapter, determining expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter, the expected charging information including expected power percentages or expected charging times corresponding to the charging stages; Determining a reference average current of the electronic device during the charging phase based on expected charging information during the charging phase; A test result of the target adapter is determined based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
2. The method according to claim 1, characterized in that The determining, based on the charging power of the target adapter, expected charging information of the electronic device in multiple charging stages includes: Based on the charging power of the target adapter, the charging scenario of the electronic device and the pre-established power reference relationship, the expected charging information corresponding to the charging power and the charging scenario is determined, and the charging scenarios include screen-off standby, screen-on standby, game scenario and video playback scenario.
3. The method according to claim 1, characterized in that The multiple charging stages include a first charging stage, where the first charging stage represents a stage in which the electronic device is charged for a preset time period; and determining, based on expected charging information of the charging stage, a reference average current of the electronic device in the charging stage, comprises: Determining an expected charge capacity corresponding to the first charging stage based on the expected power percentage in the first charging stage and the total battery capacity of the electronic device; Based on the expected charging capacity and the preset duration, a reference average current corresponding to the first charging stage is determined.
4. The method according to claim 1, wherein The multiple charging stages include a second charging stage, where the second charging stage represents a stage in which the electronic device is charged from an initial level to a full level. The determining, based on the expected charging information of the charging stage, a reference average current of the electronic device in the charging stage includes: Determining a total current charged in the second charging stage based on a total battery capacity of the electronic device; A reference average current corresponding to the second charging stage is determined based on the total current and an expected charging duration of the second charging stage.
5. The method according to claim 1, wherein Determining a test result of the target adapter based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage includes: In response to the electronic device, in each charging stage, a difference between the reference average current and the actual average current satisfies a preset condition, determining that the target adapter test passes; In response to the difference between the reference average current and the actual average current not meeting a preset condition in at least one charging stage of the electronic device, the current value of the electronic device in the charging stage is adjusted based on the reference average current.
6. The method according to any one of claims 1 to 5, characterized in that Also includes: In response to the battery capacity of the electronic device being fully charged, the electronic device is controlled to run a preset system service, and the preset system service is periodically detected. In response to the process of the preset system service being terminated, the process of the preset system service is re-established; wherein the preset system service includes one or more of a vibration service, a camera service, a screen brightness service, and an audio service.
7. The method according to any one of claims 1 to 5, characterized in that Also includes: When a target adapter is used to charge an electronic device with the screen off, the electronic device periodically detects a charging detection process, and in response to termination of the charging detection process, re-establishes the charging detection process; wherein the charging detection process is used to detect charging parameters of the electronic device.
8. The method according to any one of claims 1 to 5, characterized in that The process of controlling the target adapter to charge the electronic device includes: The output end of the relay is controlled by the clamping portion of the detection fixture to be inserted into the charging port of the electronic device, wherein the relay includes multiple input ends, each input end is connected to an adapter, and the relay is used to control the power supply between each input end and the output end; The target adapter is determined from at least one adapter connected to the relay, and the input terminal connected to the target adapter is controlled to be conductive with the output terminal.
9. A charging test device, characterized in that: include: an information determination module configured to, when charging the electronic device using a target adapter, determine expected charging information of the electronic device in multiple charging stages based on the charging power of the target adapter, the expected charging information including an expected power percentage or an expected charging duration corresponding to the charging stage; a current determination module, configured to determine a reference average current of the electronic device in the charging stage based on expected charging information of the charging stage; The test result module is configured to determine a test result of the target adapter based on a difference between the reference average current in each charging stage and an actual average current of the electronic device in the charging stage.
10. A charging test system, characterized in that: include: an electronic device and at least one adapter; a relay having an input end connected to the at least one adapter and an output end connected to a charging port of an electronic device; A detection jig, comprising a clamping portion, the clamping portion being used to control the output end of the relay to be pluggable and connected to the charging port of the electronic device; The controller comprises a processor and a memory, wherein the memory stores computer instructions, and the computer instructions are used to enable the processor to execute the method according to any one of claims 1 to 8.
11. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 8.