Mobile power supply testing apparatus, device, method, electronic device, and program product
The automated operation of the mobile power supply testing device solves the problems of low testing efficiency and damage to power integrity, and achieves efficient and non-destructive functional diagnosis.
Patent Information
- Application Number
- CN202210287030.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2042-03-23
AI Technical Summary
Existing technologies for testing mobile power banks are inefficient and can easily compromise power integrity.
A mobile power supply testing device is used, including tooling components, a data acquisition module, and a main control module. It collects power output information and performs functional diagnostics through automated operation, avoiding the need to disassemble the power supply.
It improves testing efficiency, ensures that power integrity is not compromised, and enables automated functional diagnostics.
Smart Images

Figure CN114924204B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power banks, and in particular to a power bank testing device, a power bank charging device, a power bank testing method, an electronic device, and a computer program product. Background Technology
[0002] There is a certain defect rate in the manufacturing process of power banks, especially in the power switch function and the internal software function of the power bank. These functions are crucial to whether the power bank can be put into normal use.
[0003] Traditional power bank testing methods typically require disassembling the power bank's casing and using instruments to test the information output by the internal chips or registers to determine if its functionality is normal. However, this testing method is not yet standardized and relies solely on manual judgment, which is not only inefficient but also highly susceptible to human error. Furthermore, disassembling the power bank during testing can damage it.
[0004] There are currently no effective solutions to the problems of low testing efficiency and damage to the integrity of power banks in related technologies. Summary of the Invention
[0005] This embodiment provides a power bank testing device, a power bank charging device, a power bank testing method, an electronic device, and a computer program product to solve the problems of low testing efficiency and damage to the integrity of the power bank in the related art.
[0006] Firstly, this embodiment provides a mobile power bank testing device. The mobile power bank is equipped with a switch component and metal contacts. The mobile power bank testing device includes: a tooling assembly, a data acquisition module, and a main control module. The tooling assembly and the data acquisition module are respectively connected to the main control module.
[0007] The acquisition module is used to interface with the metal contacts to acquire information output by the power bank and send the information to the main control module. The main control module is used to control the tooling assembly to perform operations on the switch component and to perform functional diagnosis on the power bank based on the information.
[0008] In some embodiments, the tooling assembly includes a drive component that cooperates with the switch component, wherein the drive component includes a motor, a linkage, and a touch portion, the motor is connected to one end of the linkage, the other end of the linkage is connected to the touch portion, the motor is also connected to the main control module, and the motor is configured to drive the linkage to move under the control of the main control module.
[0009] In some embodiments, the motor comprises a stepper motor, the master control module comprises an output pin connected to the stepper motor, wherein the control signal output by the output pin comprises a first control signal and a second control signal, the first control signal is used to instruct the stepper motor to move forward by a unit displacement, and the second control signal is used to instruct the stepper motor to move backward by the unit displacement.
[0010] In some embodiments, the acquisition module comprises a detection unit and / or a debugging unit, wherein the detection unit is configured to detect a level signal output by the power bank, and the debugging unit is configured to debug the power bank and obtain debugging data output by the power bank.
[0011] In some embodiments, the master control module is programmed with a control firmware, and the control firmware is used to execute a program for triggering at least one test procedure to the power bank, wherein the steps of the test procedure comprise: sending a control signal to the tooling assembly, receiving information acquired by the acquisition module, and performing a function diagnosis on the power bank according to the information.
[0012] In a second aspect, a power bank charging device is provided in the embodiments, comprising a charging bin and the power bank testing device of the first aspect, wherein the charging bin and the power bank testing device are connected, the charging bin is configured to accommodate a power bank and charge the power bank, and the power bank testing device is configured to acquire information output by the power bank based on the charging bin.
[0013] In a third aspect, a power bank testing method is provided in the embodiments, which is applied to the power bank testing device of the first aspect or the power bank charging device of the second aspect, and the method comprises:
[0014] sending a first control signal to the tooling assembly, wherein the first control signal is used to instruct the tooling assembly to perform an operation on a switch component of the power bank;
[0015] acquiring information output by the power bank in response to the operation;
[0016] performing a function diagnosis on the power bank according to the information.
[0017] In some embodiments, the information comprises a level signal output by the power bank and / or debugging data.
[0018] In some embodiments, acquiring the debugging data output by the power bank comprises:
[0019] obtain preset debugging parameters and a preset debugging protocol of the mobile power supply, and generate a debugging command based on the preset debugging parameters and the preset debugging protocol;
[0020] send the debugging command to the mobile power supply;
[0021] receive debugging data returned by the mobile power supply in response to the debugging command.
[0022] In some embodiments, the functional diagnosis of the mobile power supply according to the information comprises:
[0023] determining whether the switching function of the mobile power supply is normal based on the level signal; and / or determining whether the software function of the mobile power supply is normal based on the debugging data.
[0024] In a fourth aspect, an electronic device is provided in the embodiment, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the mobile power supply testing method of the third aspect when executing the computer program.
[0025] In a fifth aspect, a computer program product is provided in the embodiment, which includes a computer program executable on a processor to implement the steps of the mobile power supply testing method of the third aspect.
[0026] Compared with the related art, the mobile power supply testing device, the mobile power supply charging device, the mobile power supply testing method, the electronic device, and the computer program product provided in the embodiment can test the mobile power supply provided with a switching component and a metal contact, wherein the mobile power supply testing device includes a tooling assembly, an acquisition module, and a master control module, and the tooling assembly and the acquisition module are connected with the master control module; the acquisition module is configured to connect to the metal contact to acquire information output by the mobile power supply and send the information to the master control module; and the master control module is configured to control the tooling assembly to perform an operation on the switching component and perform a functional diagnosis on the mobile power supply according to the information. Through the present application, the problem of low testing efficiency and damage to the integrity of the mobile power supply in the related art is solved, and the testing efficiency is improved without damaging the integrity of the mobile power supply.
[0027] Details of one or more embodiments of the present application are presented in the following drawings and description to make other features, objects, and advantages of the present application more apparent. BRIEF DESCRIPTION OF DRAWINGS
[0028] The drawings described herein are intended to provide further understanding of the present application, and form a part of the present application. The illustrative embodiments of the present application and their description serve to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:
[0029] Figure 1 is a structural schematic diagram of a mobile power supply of an embodiment of the present application;
[0030] Figure 2 is a structural schematic diagram of a mobile power supply testing device of an embodiment of the present application;
[0031] Figure 3 is a structural schematic diagram of a tooling assembly of an embodiment of the present application;
[0032] Figure 4 is a circuit connection schematic diagram of a mobile power supply testing device of an embodiment of the present application;
[0033] Figure 5 is a working principle diagram of a mobile power supply testing device of an embodiment of the present application;
[0034] Figure 6 is a hardware structure block diagram of a terminal of a mobile power supply testing method of an embodiment of the present application;
[0035] Figure 7 is a flowchart of a mobile power supply testing method of an embodiment of the present application;
[0036] Figure 8 is a flowchart of a mobile power supply switch function testing method of an embodiment of the present application;
[0037] Figure 9 is an output voltage schematic diagram of a mobile power supply of an embodiment of the present application;
[0038] Figure 10 is a flowchart of a software function testing method of a mobile power supply of an embodiment of the present application.
[0039] The reference signs: 100, mobile power supply; 101, switch component; 102, metal contact; 201, tooling assembly; 202, acquisition module; 203, main control module; 204, motor; 205, connecting rod; 206, touch part; 602, processor; 604, memory; 606, transmission device; 608, input and output device. DETAILED DESCRIPTION
[0040] In order to more clearly understand the purpose, technical scheme and advantages of the present application, the present application is described and explained below in combination with the drawings and embodiments.
[0041] Unless otherwise defined, technical terms or scientific terms used in the present application shall have the same meaning as those commonly understood by a person having ordinary skill in the art to which the present application belongs. In the present application, the terms "one", "a", "an", "the", "these", and similar words do not indicate quantity, and they can be singular or plural. In the present application, the terms "include", "contain", "have", and any variants thereof are intended to cover non-exclusive inclusion; for example, a process, method, and system, product or device containing a series of steps or modules (units) are not limited to the listed steps or modules (units), but can include steps or modules (units) not listed, or can include other steps or modules (units) inherent to the process, method, product or device. In the present application, the terms "connected", "connected", "coupled" and the like do not limit to physical or mechanical connection, but can include electrical connection, whether direct or indirect. In the present application, "multiple" means two or more. "And / or" describes the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that A exists alone, A and B exist together, and B exists alone. Generally, the character " / " represents an "or" relationship between the associated objects. In the present application, the terms "first", "second", "third" and the like are only used to distinguish similar objects, and do not represent a specific order of the objects.
[0042] In the conventional mobile power supply test method, the reason for low test efficiency is that when the mobile power supply is loaded, the output information of the device needs to be continuously observed for a long time until the mobile power supply reaches the sleep time without finding any abnormality, and then it is determined that the function is normal. When the mobile power supply is not loaded, manual continuous observation is still required. After the mobile power supply enters sleep, if there is no output, it is determined that the function is normal. These operations all need manual continuous tracking, and the test efficiency is low.
[0043] Therefore, in an embodiment of the present application, a mobile power supply testing device is provided, which can test a mobile power supply as shown in Figure 1 The mobile power supply 100 is provided with a switch component 101 and a metal contact 102. Figure 2 is a structural schematic diagram of the mobile power supply testing device of the present embodiment, as shown in Figure 2As shown, the mobile power supply testing device comprises a tooling assembly 201, a collection module 202 and a master control module 203, the tooling assembly 201 and the collection module 202 are connected with the master control module 203 respectively; wherein the collection module 202 is used for connecting the metal contact 102 to collect the information output by the mobile power supply 100 and sending the information to the master control module 203, the master control module 203 is used for controlling the tooling assembly 201 to perform operation on the switch component 101 and performing function diagnosis on the mobile power supply 100 according to the information.
[0044] When starting the test, the master control module 203 sends a control signal to the tooling assembly 201 to control the tooling assembly 201 to perform operation on the mobile power supply 100, when the switch component 101 of the mobile power supply 100 is operated, the mobile power supply 100 responds to the operation, the collection module 202 directly connects the metal contact to collect the information output by the mobile power supply 100 and sends the collected information to the master control module 203, the master control module 203 diagnoses the switch function and / or software function of the mobile power supply 100 based on the information to determine whether each function is normal, wherein the software function includes one or a combination of more of the communication function, the output control function, the state monitoring function and the online upgrading function.
[0045] The mobile power supply testing device provided by the embodiment can automatically operate the mobile power supply and track the output information of the mobile power supply, judges whether each function of the mobile power supply is normal based on the information, and does not need to disassemble the mobile power supply or manually track continuously in the whole test process, but uses an automatic operation mode to test. Through the present application, the problem that the test of the mobile power supply in the related art has low test efficiency and damages the integrity of the mobile power supply is solved, and the test efficiency is improved without damaging the integrity of the mobile power supply.
[0046] Figure 3 is a structural schematic diagram of the tooling assembly of an embodiment of the present application, as Figure 3 As shown, the tooling assembly 201 comprises a driving member matched with the switch component, wherein the driving member comprises a motor 204, a connecting rod 205 and a touch part 206, the motor 204 is connected with one end of the connecting rod 205, the other end of the connecting rod 205 is connected with the touch part 206, and the motor 204 is further connected with the master control module 203, the motor 204 is configured to drive the connecting rod 205 to move under the control of the master control module 203.
[0047] The motor 204 is configured to drive the connecting rod 205 to extend towards the switch component 101 of the mobile power supply 100 after being started, and drive the connecting rod 205 to retract after the touch part 206 contacts the switch component 101 of the mobile power supply 100. The touch part 206 includes a polymer material, such as rubber, silicone, and foam, which has elasticity at room temperature. In this way, the impact on the switch component 101 can be reduced when the touch part 206 presses the switch component 101, thereby playing a buffering role.
[0048] In one embodiment, when the host board controls the motor 204 to start, the motor 204 drives the connecting rod 205 to move towards the switch component 101 of the mobile power supply 100, such as downward movement. The front end of the connecting rod 205 (the end facing the switch component 101) is provided with a touch rubber. After the touch rubber touches the switch component 101 of the mobile power supply 100, the connecting rod 205 will stop moving and return. This action simulates manual operation of the switch of the mobile power supply 100.
[0049] In some embodiments, the motor 204 includes a stepper motor, and the host control module 203 includes an output pin connected to the stepper motor. The output pin outputs a control signal including a first control signal and a second control signal. The first control signal is used to instruct the stepper motor to move forward by a unit displacement, and the second control signal is used to instruct the stepper motor to move backward by a unit displacement.
[0050] In some embodiments, the acquisition module 202 includes a detection unit and / or a debugging unit. The detection unit is configured to detect a level signal output by the mobile power supply 100. The debugging unit is configured to debug the mobile power supply 100 and obtain debugging data output by the mobile power supply 100.
[0051] The detection unit can be implemented by a battery power gauge chip to monitor the voltage and current of the mobile power supply 100 in the charging and discharging state. For example, the CW2218 is a super-low-power lithium battery power gauge chip used to monitor the voltage, current, and temperature of the mobile power supply 100 in the charging and discharging state, calculate the remaining power of the battery in combination with battery modeling information. The debugging unit can be implemented by an MCU with a serial port to communicate with the mobile power supply 100 via a serial port, issue a diagnosis debugging command, and obtain debugging data via the serial port.
[0052] In some embodiments, the host control module 203 is programmed with a control firmware for executing a program for triggering at least one test procedure to the mobile power supply 100. The steps of the test procedure include sending a control signal to the tooling assembly 201, receiving information acquired by the acquisition module 202, and performing a function diagnosis on the mobile power supply 100 according to the information.
[0053] The master module 203 can be implemented by a single-chip microcomputer system, for example, HC32F460, based on The HC32F460 is a 32-bit RISC CPU with a maximum operating frequency of 200MHz, which can provide I2C and GPIO functions.
[0054] In some embodiments, the mobile power supply testing device further comprises an I2C bus, the I2C bus being used to connect the master module 203 and the acquisition module 202, the master module 203 sending an information reading instruction to the acquisition module 202 through the I2C, wherein the acquisition module 202 comprises a register, and the register is used to store the information output by the mobile power supply 100.
[0055] The mobile power supply testing device will be described below through a preferred embodiment. Figure 4 is a circuit connection diagram of the mobile power supply testing device of the embodiment, as Figure 4 shown, the mobile testing device comprises a CW2218, an HC32F460, an MCU (not shown in the figure), a capacitor, a resistor and a motor, the CW2218 is connected with the HC32F460, and the HC32F460 is connected with the motor. The PMU (Power Management Unit, power management unit) is a component of the mobile power supply 100, which is used for charge and discharge control of the mobile power supply 100, and the CW2218, the HC32F460 and the MCU are connected with the PMU respectively.
[0056] Figure 5 is a working principle diagram of the mobile power supply testing device of the embodiment, as Figure 5 shown, the HC32F460 is connected with the stepper motor through a GPIO pin, and the control signal output by the GPIO pin comprises a first control signal and a second control signal, the first control signal is used to instruct the stepper motor to advance by a unit displacement, and the second control signal is used to instruct the stepper motor to retreat by a unit displacement. The mobile power supply 100 is a device to be tested, which is provided with a switch component 101, when the switch component 101 is opened by starting the stepper motor, the mobile power supply 100 can output voltage and current, and the standard voltage value output by the mobile power supply 100 is 5V.
[0057] When the power bank 100 is inserted into the designated slot, its output circuit forms a loop with the CW2218. The CW2218 can acquire the current power bank 100's level signals, including voltage and current signals. The MCU connects to the power bank 100's metal contacts and communicates with it via serial port to obtain its debugging data. The HC32F460, as the main control chip, sends I2C read commands to the CW2218 and MCU via the I2C bus. By accessing the corresponding address via the I2C bus, it can obtain voltage, current, and debugging data. After acquiring this information, the HC32F460 compares the voltage / current values with a reserved voltage or current threshold. If the voltage deviates from the threshold or the current deviates from the threshold, it determines that the power bank 100's switching function is malfunctioning. In this case, the HC32F460 will notify the fixture assembly 201 to stop execution and illuminate an alarm light to indicate the power bank 100 is faulty. The HC32F460 will also analyze the debugging data to determine whether the register data configuration is reasonable, thereby determining whether the software functions of the power bank 100 are normal.
[0058] This embodiment also provides a mobile power bank charging device, including a charging compartment and a mobile power bank testing device as described in any of the above embodiments. The charging compartment and the mobile power bank testing device are connected. The charging compartment is configured to accommodate the mobile power bank and charge it. The mobile power bank testing device collects information output by the mobile power bank based on the charging compartment.
[0059] This embodiment also provides a mobile power bank testing method, which can be executed on a terminal, computer, or similar computing device. For example, it can run on a terminal. Figure 6 This is a hardware structure block diagram of a terminal for a mobile power bank testing method according to an embodiment of this application. For example... Figure 6 As shown, a terminal may include one or more ( Figure 6 Only one is shown in the diagram. A processor 602 and a memory 604 for storing data are also included. The processor 602 may be, but is not limited to, a microprocessor (MCU) or a programmable logic device (FPGA). The terminal may also include a transmission device 606 for communication functions and an input / output device 608. Those skilled in the art will understand that… Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are larger than... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown are illustrated.
[0060] The memory 604 can be used to store computer programs, such as software programs of application software and modules, such as the computer program corresponding to the mobile power supply testing method in the embodiment. The processor 602 can execute various functional applications and data processing, i.e., implement the method described above, by running the computer program stored in the memory 604. The memory 604 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 604 can further include a memory remotely arranged with respect to the processor 602, which can be connected to the terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0061] The transmission device 606 is used to receive or send data via a network. The network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 606 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 606 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0062] Figure 7 FIG. 7 is a flowchart of a mobile power supply testing method according to an embodiment of the present application. The method can be executed by the mobile power supply testing device or the mobile power supply charging device according to any of the embodiments described above. As shown in FIG. 7, the flow includes the following steps: Figure 7
[0063] Step S701: a first control signal is sent to the tooling assembly, wherein the first control signal is used to instruct the tooling assembly to perform an operation on the switching component of the mobile power supply.
[0064] Step S702: information output by the mobile power supply in response to the operation is acquired. The information includes a level signal output by the mobile power supply and / or debugging data.
[0065] Step S703: a function diagnosis is performed on the mobile power supply according to the information. Whether the switching function of the mobile power supply is normal is determined based on the level signal; and / or whether the software function of the mobile power supply is normal is determined based on the debugging data.
[0066] Through the above steps, the mobile power supply can be automatically operated and the output information thereof is tracked, based on which it is determined whether each function of the mobile power supply is normal. In the whole testing process, the mobile power supply does not need to be disassembled, and manual continuous tracking is not needed, but the testing is performed in an automatic operation mode. Through the present application, the problem of low testing efficiency and damage to the integrity of the mobile power supply in the related art is solved, and the testing efficiency is improved without damaging the integrity of the mobile power supply.
[0067] In some embodiments, the level signal is compared with the preset value, and in the case that the amplitude of the level signal deviates from the preset value, it is determined that the switching function of the mobile power supply is abnormal.
[0068] In some embodiments, a plurality of level signals obtained after multiple tests are acquired; the level signal is compared with the preset value, and in the case that the amplitudes of the plurality of level signals do not deviate from the preset value, it is determined that the switching function of the mobile power supply is normal, otherwise, it is determined that the switching function of the mobile power supply is abnormal.
[0069] In some embodiments, when the level signal is compared with the preset value, in the case that the amplitude of the level signal does not deviate from the preset value for a preset time length, it is determined that the switching function of the mobile power supply in the current test process is normal, otherwise, it is determined that the switching function of the mobile power supply in the current test process is abnormal.
[0070] In some embodiments, the debugging data output by the mobile power supply can be acquired by the following method: acquiring preset debugging parameters and a preset debugging protocol of the mobile power supply, generating a debugging command based on the preset debugging parameters and the preset debugging protocol; sending the debugging command to the mobile power supply; receiving the debugging data returned by the mobile power supply in response to the debugging command.
[0071] The preset debugging parameters are collected in advance, and the preset debugging parameters are filled according to the preset debugging protocol. The preset debugging parameters include charge / discharge register configuration parameters, voltage / current parameters, and temperature parameters. Considering the limited processing capacity of the mobile power supply, the length of the debugging protocol should not be too large or too long, preferably not more than 20 bytes, and contains sufficient related important information for diagnosis, and can be extended or reduced according to the needs. The debugging data includes state information, running information and register value of the mobile power supply.
[0072] The mobile power supply switching function test method will be introduced through the preferred embodiments below, Figure 8 is a flowchart of the mobile power supply switching function test method of the preferred embodiments, as Figure 8 shown, the flowchart includes the following steps:
[0073] Step S801, the master module starts the tooling assembly, and the tooling assembly presses the switch component of the mobile power supply. When the switch component of the mobile power supply is pressed, the mobile power supply will output a voltage, which simulates manual switch operation of the mobile power supply.
[0074] Step S802, it is detected whether there is voltage output, if yes, step S803 is executed, otherwise, step S804 is executed. When the switch component of the mobile power supply is successfully pressed, the master module will acquire the charging output of the mobile power supply from the acquisition module. At this time, the master module acquires the current output voltage from the CW2218 by using the I2C bus, and stores the voltage value as a basis for continuous judgment.
[0075] Step S803, it is detected whether the output voltage is stable, if yes, step S804 is executed, otherwise, step S806 is executed. After acquiring the output voltage of the mobile power supply, the acquisition module still needs to continuously track for a period of time. If the output voltage of the mobile power supply does not deviate from the preset value and continuously and stably outputs within the preset time length, it is considered that the mobile power supply outputs normally; if the output voltage of the mobile power supply deviates from the preset value or cannot continuously and stably output within the preset time length, it is considered that the switch function of the mobile power supply has a problem.
[0076] Table 1 Output voltage table
[0077] Test time 1s 5s 10s 15s 20s 25s 30s 60s Result Voltage value 5V 5V 5V 5V 5V 5V 5V 5V Normal Voltage value 5V 5V 4.0V 4.0V 5V 5V 5V 4.0V Abnormal Voltage value 5V 5V 3.5V 3.5V 5V 3.5V 3.5V 3.5V Abnormal Voltage value 4.2V 4.2V 4.2V 4.2V 4.2V 4.2V 4.2V 4.2V Abnormal
[0078] Table 1 gives the output voltage determination data of the embodiment, and the preset value can be a voltage reference value, for example, 5V, and the output voltage is detected every certain period of time. Figure 9 is a schematic diagram of the output voltage of the mobile power supply of the embodiment, as Figure 9 and Table 1, when the output voltage of the mobile power supply meets the judgment of the normal voltage in the list, it is considered that the switch function of the mobile power supply is normal, and the next round of verification is continued. When the output voltage of the mobile power supply meets the judgment of the abnormal voltage in the list, it is considered that the switch function of the mobile power supply is abnormal, the tooling assembly is controlled to stop running, and the indicator light is alarmed to inform that the switch function of the mobile power supply has an abnormality.
[0079] Step S804, it is judged whether the test number is reached, if yes, step S805 is executed, otherwise, step S801 is returned. When the mobile power supply passes the last round of test, it needs to be continuously debugged for multiple times. When the test reaches the specified number of times, each output meets the requirement, it is considered that the mobile power supply meets the output requirement of the switch component, and is a qualified product.
[0080] Step S805, it is determined that the switch function of the mobile power supply is normal.
[0081] Step S806, it is determined that the switch function of the mobile power supply is abnormal.
[0082] Step S807, prompting the fault.
[0083] The following will introduce the test method of the software function of the mobile power supply through a preferred embodiment, Figure 10 is a flowchart of the test method of the software function of the mobile power supply of the embodiment, as Figure 10 shown, the flowchart includes the following steps:
[0084] Step S1001, obtaining preset debugging parameters of the mobile power supply in the running stage, and generating a debugging command based on the preset debugging parameters and a preset debugging protocol. The preset debugging parameters are collected in advance, and the preset debugging parameters are filled according to the preset debugging protocol. The preset debugging parameters include charge-discharge register configuration parameters, voltage / current parameters, and temperature parameters. Considering the limited processing capacity of the mobile power supply, the length of the debugging protocol should not be too large or too long, and preferably not more than 20 bytes, and contains sufficient related important information for diagnosis, and can be extended or reduced according to the needs.
[0085] Step S1002, performing serial communication with the mobile power supply, and issuing a diagnostic debugging command. The debugging command is sent to the mobile power supply through the metal contact of the mobile power supply.
[0086] Step S1003, obtaining returned debugging data (parameter values) through the serial port, and analyzing whether the software function of the mobile power supply is normal according to the debugging data. After the mobile power supply obtains the debugging command, the parameter values of the preset debugging parameters filled in step S1001 are returned through the serial port. The debugging data includes state information, running information, and register values of the mobile power supply.
[0087] Through steps S1001 to S1003, the debugging data of the mobile power supply can be obtained without disassembly, and the software function is analyzed according to the debugging data. For example, when the discharge current is relatively large, the register values obtained by this method can be used to analyze whether the register data is reasonably configured.
[0088] In the embodiment, an electronic device is also provided, which includes a memory and a processor. The memory stores a computer program. The processor is configured to debug the computer program to execute the steps in any of the method embodiments.
[0089] Optionally, the electronic device can further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0090] Optionally, in the embodiment, the processor can be configured to execute the following steps through the computer program:
[0091] S1, sending a first control signal to the tooling assembly, wherein the first control signal is used to instruct the tooling assembly to perform an operation on a switch component of the power bank;
[0092] S2, obtaining information output by the power bank in response to the operation;
[0093] S3, performing a function diagnosis on the power bank according to the information.
[0094] It should be noted that the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and will not be described herein.
[0095] In addition, in combination with the power bank testing method provided in the above embodiments, a computer program product can also be provided in the embodiment to implement the steps of any one of the power bank testing methods in the above embodiments.
[0096] It should be understood that the specific embodiments described herein are only used to explain the application, but not to limit it. According to the embodiments provided in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.
[0097] Obviously, the drawings are only some examples or embodiments of the present application, and those of ordinary skill in the art can also apply the present application to other similar situations without creative labor. In addition, it can be understood that although the work done in the development process may be complex and long, for those of ordinary skill in the art, some design, manufacture or production changes according to the technical content disclosed in the present application are only routine technical means, and should not be regarded as insufficient disclosure of the present application.
[0098] The word "embodiment" in the present application means that the specific features, structures or characteristics described in combination with the embodiments can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean independence or alternative to other embodiments. It can be clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in the present application can be combined with other embodiments without conflict.
[0099] The above embodiments only express several implementation ways of the present application, and the description is specific and detailed, but it should not be understood as a limitation to the patent protection scope. It should be pointed out that, for ordinary skilled in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A mobile power supply testing device, characterized by, The mobile power supply is provided with a switch component and a metal contact; The mobile power supply testing device comprises a tool assembly, an acquisition module and a main control module, the tool assembly and the acquisition module are connected with the main control module respectively, the tool assembly comprises a driving member matched with the switch component, wherein the driving member comprises a motor, a connecting rod and a touch part, one end of the connecting rod is connected with the motor, the other end of the connecting rod is connected with the touch part, the motor is further connected with the main control module, and the motor is configured to drive the connecting rod to move under the control of the main control module; wherein The acquisition module is used for connecting with the metal contact to collect information output by the mobile power supply and sending the information to the main control module, the main control module is used for controlling the tool assembly to perform operation on the switch component and diagnosing the switch function and / or software function of the mobile power supply according to the information, and the software function comprises at least one of communication function, output control function, state monitoring function and online upgrading function; The acquisition module comprises a detection unit and / or a debugging unit; wherein the detection unit is configured to detect a level signal output by the mobile power supply; the debugging unit is configured to debug the mobile power supply and obtain debugging data output by the mobile power supply; and the information comprises the level signal and / or the debugging data; Wherein, the diagnosis of the switch function and / or software function of the mobile power supply according to the information comprises: Comparing a plurality of level signals obtained after multiple tests with a preset value, in the case that the amplitudes of the plurality of level signals do not deviate from the preset value, it is determined that the switch function of the mobile power supply is normal, otherwise, it is determined that the switch function of the mobile power supply is abnormal; and / or, Based on the debugging data, it is determined whether the software function of the mobile power supply is normal; The acquisition of the debugging data output by the mobile power supply comprises: Obtaining a preset debugging parameter and a preset debugging protocol of the mobile power supply, and generating a debugging command based on the preset debugging parameter and the preset debugging protocol; Sending the debugging command to the mobile power supply; Receiving the debugging data returned by the mobile power supply in response to the debugging command.
2. The mobile power supply testing device of claim 1, wherein, The motor comprises a stepping motor, the main control module comprises an output pin, and the output pin is connected with the stepping motor, wherein the control signal output by the output pin comprises a first control signal and a second control signal, the first control signal is used to instruct the stepping motor to move forward by a unit displacement, and the second control signal is used to instruct the stepping motor to move backward by the unit displacement.
3. The mobile power supply testing device of claim 1, wherein, The main control module is programmed with a control firmware, and the control firmware is used to execute a program of triggering at least one test process to the mobile power supply, wherein the steps of the test process comprise: sending a control signal to the tool assembly, receiving information collected by the acquisition module, and diagnosing the function of the mobile power supply according to the information.
4. A mobile power supply charging apparatus, characterized by comprising: The mobile power supply testing device comprises a charging bin and the mobile power supply testing device of any one of claims 1-3, the charging bin is connected with the mobile power supply testing device, the charging bin is configured to accommodate and charge the mobile power supply, and the mobile power supply testing device collects information output by the mobile power supply based on the charging bin. 5.A method for testing a mobile power source, applied to the mobile power source testing device of any one of claims 1 to 3, or applied to the mobile power source charging device of claim 4, characterized in that, The method comprises: sending a first control signal to a tooling assembly, wherein the first control signal is used to instruct the tooling assembly to perform an operation on a switch component of a mobile power supply; obtaining information output by the mobile power supply in response to the operation; diagnosing a switch function and / or a software function of the mobile power supply according to the information, wherein the software function comprises at least one of a communication function, an output control function, a state monitoring function, and an online upgrading function; the diagnosis of the switch function and / or the software function of the mobile power supply according to the information comprises: comparing a plurality of level signals obtained after multiple tests with a preset value, and determining that the switch function of the mobile power supply is normal when the amplitudes of the plurality of level signals do not deviate from the preset value, otherwise, determining that the switch function of the mobile power supply is abnormal; and / or determining whether the software function of the mobile power supply is normal based on the debugging data; the obtaining of the debugging data output by the mobile power supply comprises: obtaining a preset debugging parameter and a preset debugging protocol of the mobile power supply, generating a debugging command based on the preset debugging parameter and the preset debugging protocol; sending the debugging command to the mobile power supply; receiving the debugging data returned by the mobile power supply in response to the debugging command. 6.An electronic device comprising a memory and a processor, the electronic device comprising: The memory stores a computer program, and the processor is configured to execute the computer program to perform the mobile power supply testing method of claim 5.
7. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the mobile power supply testing method of claim 5.
Citation Information
Patent Citations
Touch type electric tool switch debugging apparatus and system
CN109061454A
Portable power source comprehensive tester
CN204989431U