CN114994561A - Abnormal test method and device for mobile power supply, computer equipment and storage medium - Google Patents

Abnormal test method and device for mobile power supply, computer equipment and storage medium Download PDF

Info

Publication number
CN114994561A
CN114994561A CN202210401867.2A CN202210401867A CN114994561A CN 114994561 A CN114994561 A CN 114994561A CN 202210401867 A CN202210401867 A CN 202210401867A CN 114994561 A CN114994561 A CN 114994561A
Authority
CN
China
Prior art keywords
data
test data
power supply
mobile power
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210401867.2A
Other languages
Chinese (zh)
Inventor
雷灿锋
谭易东
张奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Romoss Technology Co Ltd
Original Assignee
Shenzhen Romoss Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Romoss Technology Co Ltd filed Critical Shenzhen Romoss Technology Co Ltd
Priority to CN202210401867.2A priority Critical patent/CN114994561A/en
Publication of CN114994561A publication Critical patent/CN114994561A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The application relates to an abnormity testing method and device of a mobile power supply, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring a real-time transmission data packet; the data packet carries first test data of the mobile power supply; sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet obtained each time and the data volume of the first test data; when the integrity check is passed, performing abnormity detection on the first test data based on the model of the mobile power supply, and acquiring second test data of the mobile power supply based on the camera; when the electric quantity information in the second test data meets the electric quantity condition, performing abnormity detection on the second test data based on the model of the mobile power supply; and analyzing whether the mobile power supply has an abnormality or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data. The method can greatly improve the detection speed.

Description

Abnormal test method and device for mobile power supply, computer equipment and storage medium
Technical Field
The present application relates to the field of electronic device testing technologies, and in particular, to an anomaly testing method and apparatus for a portable power source, a computer device, a storage medium, and a computer program product.
Background
With the increasing popularity of electronic devices, the application functions of the electronic devices are increasingly diversified, the power consumption of the electronic devices is correspondingly increased, a fully charged mobile phone can be used for only a few hours, and a mobile power supply is generated as soon as the mobile power supply is operated, and the mobile power supply of each model needs to be tested to better serve the user.
However, the testing process is complicated, manual operation is needed in the whole process, the circuit designated test points are detected by using an instrument, the detection items are many, tests such as electric quantity and voltage require a plurality of charging and discharging cycles, the charging and discharging process is assisted by recording, the backtracking process is long in time consumption, and omission and errors are easily caused.
Disclosure of Invention
In view of the above, it is necessary to provide an abnormality testing method, an abnormality testing apparatus, a computer device, a computer readable storage medium, and a computer program product for efficiently testing a mobile power supply.
In a first aspect, the present application provides an abnormality testing method for a mobile power supply, where the method includes:
acquiring a real-time transmission data packet; the data packet carries first test data of the mobile power supply;
sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet obtained each time and the data volume of the first test data;
when the integrity check is passed, performing abnormity detection on the first test data based on the model of the mobile power supply, and acquiring second test data of the mobile power supply based on a camera;
when the electric quantity information in the second test data meets an electric quantity condition, performing abnormal detection on the second test data based on the model of the mobile power supply;
analyzing whether the mobile power supply has an abnormality or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data.
In one embodiment, the obtaining the data packet transmitted in real time includes:
acquiring an input test requirement and a mobile power supply product number;
determining a model of the mobile power supply based on the mobile power supply product number;
determining the type of the parameter to be transmitted according to the model and the test requirement;
and when the mobile power supply is tested, acquiring a data packet carrying the first test data of the parameter type in real time.
In one embodiment, the sequentially performing integrity check on each data packet based on the data volume of the packet end record of the data packet obtained each time and the data volume of the first test data includes:
respectively comparing the data volume of the packet tail record of the data packet acquired each time with the data volume of the first test data;
when the data volume recorded by the packet tail is consistent with the data volume of the first test data, comparing the data volume of the first test data with a corresponding data volume threshold;
and when the data volume of the first test data is smaller than the data volume threshold value, the integrity check is passed.
In one embodiment, the comparing the data volume of the packet end record of the data packet obtained each time with the data volume of the first test data includes:
calculating the sum of the data volumes of the first test data of different parameter types to obtain the target data volume of the first test data;
comparing the data volume recorded at the tail of the data packet with the target data volume of the first test data;
when the data volume of the first test data is smaller than the data volume threshold, passing integrity check includes:
and when the target data amount is smaller than the data amount threshold value, passing the integrity check.
In one embodiment, the camera-based acquisition of second test data of the mobile power supply includes:
recording the mobile power supply in the test based on the camera to obtain a test picture;
and acquiring the second test data based on the electric quantity indicator lamp or the electric quantity value display screen in the test picture.
In one embodiment, the performing, by the mobile power supply-based model, abnormality detection on the first test data includes:
determining a parameter threshold value of the first test data based on the model of the mobile power supply;
sequentially drawing a data curve of the first test data at each moment in a window showing an interface based on the first test data in the data packet acquired each time;
and determining and marking abnormal data in the data curve according to the parameter threshold.
In one embodiment, the performing, when the power information in the second test data satisfies the power condition, abnormality detection on the second test data based on the model of the mobile power supply includes:
determining a corresponding electric quantity estimation rule based on the model of the mobile power supply;
when the electric quantity information in the second test data meets the electric quantity condition, estimating the time when the electric quantity information reaches the electric quantity condition according to the electric quantity estimation rule to generate estimated electric quantity of the mobile power supply;
and comparing the electric quantity information in the second test data with the estimated electric quantity of the mobile power supply, and judging whether the second test data is abnormal.
In one embodiment, the analyzing whether the mobile power supply has an abnormality based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data includes:
judging whether at least one of the charging and discharging processes of the mobile power supply is uniformly changed or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data; and/or the presence of a gas in the gas,
and judging whether an electric quantity indicator lamp or an electric quantity value display screen of the mobile power supply is abnormal or not based on at least one of the abnormal detection result of the first test data and the abnormal detection result of the second test data.
In a second aspect, the present application further provides an abnormality testing apparatus for a mobile power supply, the apparatus including:
the data packet acquisition module is used for acquiring a data packet transmitted in real time; the data packet carries first test data of the mobile power supply;
the data packet verification module is used for sequentially carrying out integrity verification on each data packet based on the data volume of the packet tail record of the data packet and the data volume of the first test data acquired each time;
the first test data test module is used for carrying out abnormity detection on the first test data based on the model of the mobile power supply and acquiring second test data of the mobile power supply based on a camera when the integrity check is passed;
the second test data test module is used for carrying out anomaly detection on the second test data based on the model of the mobile power supply when the electric quantity information in the second test data meets an electric quantity condition;
and the mobile power supply abnormity determining module is used for analyzing whether the mobile power supply is abnormal or not based on at least one of the abnormity detection result of the first test data and the abnormity detection result of the second test data.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the abnormal test of the mobile power supply in any embodiment when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer readable storage medium has a computer program stored thereon, which when executed by a processor implements the steps of the anomaly test of the mobile power supply in any of the embodiments described above.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the anomaly test of the mobile power supply in any of the embodiments described above.
The abnormity testing method, the abnormity testing device, the computer equipment, the storage medium and the computer program product of the mobile power supply obtain a real-time transmission data packet; the data packet carries first test data of the mobile power supply; and sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet obtained each time and the data volume of the first test data. Therefore, after the integrity of the data packet is checked, whether the transmission of the data packet has a problem or not can be judged accurately, and the abnormal problem can be judged definitely. And when the integrity check is passed, performing anomaly detection on the first test data based on the model of the mobile power supply, judging whether data transmitted by a data packet is abnormal or not, and acquiring second test data of the mobile power supply based on a camera. When the electric quantity information in the second test data meets the electric quantity condition, performing abnormity detection on the second test data based on the model of the mobile power supply, and judging whether the electric quantity of the mobile power supply is abnormal; analyzing whether the mobile power supply has an abnormality or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data. Therefore, the detection speed is greatly improved, intelligent monitoring of multiple experimental data is realized, and labor cost is saved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a mobile power supply anomaly testing method;
FIG. 2 is a flowchart illustrating a method for testing an abnormality of a portable power source according to an embodiment;
FIG. 3 is a diagram illustrating a terminal structure according to an embodiment;
FIG. 4 is a flowchart illustrating an abnormal testing method of the mobile power supply according to another embodiment;
FIG. 5 is a block diagram of an apparatus for testing abnormality of a portable power source according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The abnormal testing method of the mobile power supply provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 acquires a real-time transmission data packet; the data packet carries first test data of the mobile power supply; sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet obtained each time and the data volume of the first test data; when the integrity check is passed, performing abnormity detection on the first test data based on the model of the mobile power supply, and acquiring second test data of the mobile power supply based on a camera; when the electric quantity information in the second test data meets an electric quantity condition, performing abnormal detection on the second test data based on the model of the mobile power supply; analyzing whether the mobile power supply has an abnormality or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In one embodiment, as shown in fig. 2, an abnormal testing method for a mobile power supply is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 1, and includes the following steps:
step 202, acquiring a real-time transmission data packet; the data packet carries first test data of the mobile power supply.
The first test data is test data transmitted by a data packet. It may be data in a charging mode, data in a discharging mode, data in a low current mode, or data in other application modes. The parameter category of the first test data may be one or more of current, voltage, temperature, etc. test data.
The data packet is composed of a packet header, a packet body and a packet tail, wherein the packet header can record data used for determining a transmission path, such as a source address, a destination address and the like, and the data volume of the data packet. The data packet carrying the first test data and the parameter type thereof can be determined according to the packet header. The packet body is used for bearing test data of the data packet, and the data volume of the first test data in the data packet is recorded in the packet tail.
In one embodiment, before the data packet is acquired, the mobile power supply to be tested is connected with a terminal with a test platform, and then a corresponding test program is started. And testing according to the product number and the test requirement of the mobile power supply input by the user in the test program. During the test, the terminal receives first test data via the URAT interface or other interfaces for transmitting data packets. The data packets obtained by the terminal in real time may be transmitted according to a preset period or according to a preset frequency.
In one embodiment, obtaining a data packet for real-time transmission comprises: acquiring an input test requirement and a mobile power supply product number; determining the model of the mobile power supply based on the product number of the mobile power supply; determining the type of the parameter to be transmitted according to the model and the test requirement; when the mobile power supply is tested, a data packet carrying first test data of parameter types is obtained in real time.
The test requirement refers to the requirement for testing data of certain parameter types according to the product requirement, and compared with the comprehensive test, the test requirement saves time and is more targeted. The test requirements include at least one charging protocol corresponding to the mobile power source, and optionally test items. The electric protocol refers to switchable protocols set in different protocol chips and can be in various fast charging or slow charging modes; the charging protocol may be stored on a corresponding protocol chip; and the test items can be one or more items of output voltage, input current, input voltage, input current, electric quantity, light load protection, short-circuit protection, overcurrent protection, low-power alarm, standby current and the like, and one item can be subjected to a plurality of charging and discharging test periods of the mobile power supply.
The product number and the model have a corresponding relation, one product number corresponds to one model, each model corresponds to a corresponding parameter threshold, and the parameter thresholds are used for detecting the first test data to obtain a required test result. And each model is also corresponding to a corresponding electric quantity estimation rule for estimating the electric quantity of the mobile power supply at different time in the detection process.
And 204, sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet acquired each time and the data volume of the first test data.
The data volume of the first test data is the data volume within a specific range, and has a certain functional relationship with the data volume recorded at the end of the packet, and the functional relationship is used for checking whether each data packet is complete or not. After the first test data at different moments are sequentially acquired through the data packets transmitted in real time, the first test data transmitted by the data packets are respectively verified.
In one embodiment, the integrity check of each data packet is performed in sequence based on the data volume of the packet end record of the data packet obtained each time and the data volume of the first test data, and includes: respectively comparing the data volume of the packet tail record of the data packet obtained each time with the data volume of the first test data; when the data volume recorded by the packet tail is consistent with the data volume of the first test data, comparing the data volume of the first test data with the corresponding data volume threshold; and when the data volume of the first test data is smaller than the data volume threshold value, the integrity check is passed.
The data volume recorded by the end of packet may be identical to the data volume of the first test data, which may be caused by the fact that the data volume recorded by the end of packet and the data volume of the first test data are abnormal at the same time, so that the data volume threshold of the first test data is set, and whether the data packet is in the preset data volume transmission range is judged through the data volume threshold, so that the integrity check result is more accurate.
In one embodiment, comparing the data volume of the packet end record of the data packet acquired each time with the data volume of the first test data respectively includes: calculating the sum of the data volumes of the first test data of different parameter types to obtain the target data volume of the first test data; and comparing the data volume recorded at the tail of the data packet with the target data volume of the first test data.
Correspondingly, when the data volume of the first test data is smaller than the data volume threshold, the integrity check is passed, including: and when the target data amount is smaller than the data amount threshold value, the integrity check is passed.
When the test requirement corresponds to data of multiple parameter categories, the data of different parameter categories may also be arranged at different positions in the same data packet according to the order of the parameter categories, so that the data packet has the first test data of multiple parameter categories. In a data packet, the first test data of different parameter types have corresponding data volumes respectively, and the sum of the data volumes of the first test data of each parameter type is the target data volume of the first test data.
Optionally, when the target data amount is greater than the corresponding data amount threshold or is inconsistent with the data amount recorded in the packet end, the data packet fails the integrity check. And when the integrity check is not passed, sending corresponding error reporting information to indicate that the transmission process is abnormal, further checking the transmission process of the data packet, judging whether the input data, the testing process and other testing related dimensions are abnormal, and testing the mobile power supply after the related abnormalities are repaired.
And step 206, when the integrity check is passed, performing abnormity detection on the first test data based on the model of the mobile power supply, and acquiring second test data of the mobile power supply based on the camera.
Through the integrality check-up to confirm that the data volume in the data packet does not go wrong in transmission process, do benefit to and guarantee to carry out the detection accuracy of first test data, and necessarily shoot through the camera, gather second test data, with the progress of confirming the test according to portable power source's electric quantity.
In one embodiment, the anomaly detection of the first test data based on the model of the mobile power supply comprises: determining a parameter threshold of the first test data based on the model of the mobile power supply; based on first test data in the data packet acquired each time, sequentially drawing a data curve of the first test data at each moment in a window of a display interface; and determining and marking abnormal data in the data curve according to the parameter threshold.
The model of the mobile power supply corresponds to the threshold value of the parameter type to which the first test data belongs, and is used for judging whether the first test data of different parameter types are abnormal or not. And in order to better display and analyze the first test data, the change time and the change trend thereof, drawing a corresponding data curve, and marking the data curve when the first test data at a certain moment in the data curve exceeds a threshold value to determine the time of the occurrence of the abnormality. If any one parameter exceeds a threshold value at a certain moment, the mobile power supply is considered to be abnormal; otherwise, if no abnormity exists.
Therefore, a complete data curve in charge and discharge cycle can be obtained according to test requirements, the detection speed can be increased according to marks at different moments in the corresponding data curve, intelligent monitoring of detection software in an upper computer or other testing devices on multiple experimental data is achieved, and labor cost is saved. In addition, abnormal data can be migrated into a coordinate system of electric quantity and time through marks on the data curve.
In one embodiment, the camera-based acquisition of second test data of the mobile power supply comprises: recording a mobile power supply in the test based on a camera to obtain a test picture; and acquiring second test data based on the electric quantity indicator lamp or the electric quantity value display screen in the test picture.
The power indicator lamp is a component installed in the mobile power supply, and the mobile power supply displays the power in the mobile power supply through the bright number of the power indicator lamp or the bright position on the mobile power supply. And the electric quantity value display screen shows the electric quantity of the mobile power supply through the numerical value shown by the display screen arranged on the mobile power supply.
At portable power source charge-discharge's in-process, detect its functional state through the naked eye, and can go back through the test picture of recording, it helps two kinds of detections, and one is whether even in the charge-discharge process, has or not to appear the outage scheduling problem, and its two is whether the lamp shows or the digital display is normal, has or not to appear not bright, the indiscriminate sign indicating number, quality problems such as bad news.
Optionally, when the test requirement is met, stopping recording and storing the recorded test picture, and naming according to time and model. For example: in the test requirement in the discharging process, when the terminal cannot detect that the indicator lamp is on or the electric quantity displayed by the electric quantity value display screen is zero, the system is considered to finish the discharging process, the output of the current and the voltage is interrupted, namely the discharging is considered to be finished, and at the moment, the video is stored in the avi format and is automatically named as (date + model).
And 208, when the electric quantity information in the second test data meets the electric quantity condition, performing abnormity detection on the second test data based on the model of the mobile power supply.
The electric quantity condition is a preset key electric quantity value. And when the electric quantity information in the second test data is detected to be matched with the electric quantity condition, the electric quantity information meets the corresponding electric quantity condition. The electric quantity condition is set according to different models of mobile power supplies.
In one embodiment, when the electric quantity information in the second test data meets the electric quantity condition, the abnormal detection of the second test data based on the model of the mobile power supply comprises: determining a corresponding electric quantity estimation rule based on the mobile power supply model; when the electric quantity information in the second test data meets a preset electric quantity condition, estimating the time when the electric quantity information reaches the electric quantity condition according to an electric quantity estimation rule to generate estimated electric quantity of the mobile power supply; and comparing the electric quantity information in the second test number with the estimated electric quantity of the mobile power supply, and judging whether the second test data is abnormal.
And the electric quantity estimation rule is a calculation method according to time change and is used for estimating the electric quantity in the charging/discharging process of the mobile power supply so as to generate corresponding estimated electric quantity of the mobile power supply, and the estimated electric quantity of the mobile power supply is the theoretical electric quantity value of the mobile power supply of the machine type.
When the electric quantity information in the second test data is compared with the estimated electric quantity of the mobile power supply, abnormal conditions can exist when the electric quantity information is too high or too low. Thus, whether the mobile power supply is abnormal or not can be judged based on the second test data.
Further, when the mobile power supply is in a test process, a time and electric quantity coordinate system and a corresponding curve can be constructed, so that problems found in the test can be accurately positioned on a time and electric quantity coordinate axis according to marks of different moments in a data curve of first test data in charge/discharge cycles.
And step 210, analyzing whether the mobile power supply is abnormal or not based on at least one of the abnormal detection result of the first test data and the abnormal detection result of the second test data.
In one embodiment, it is determined whether at least one of the charging and discharging processes of the mobile power supply is uniformly changed based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data; and/or the presence of a gas in the gas,
and judging whether the electric quantity indicator lamp or the electric quantity value display screen of the mobile power supply is abnormal or not based on at least one of the abnormal detection result of the first test data and the abnormal detection result of the second test data.
Specifically, in the charging process of the mobile power supply, when the first test data is abnormal or the second test data is abnormal, the first test data and the second test data are unevenly changed. For example: when the first test data is the current input into the mobile power supply and the abnormal detection result of the current input into the mobile power supply represents that the current input into the mobile power supply exceeds the corresponding current threshold, judging that the current input into the mobile power supply changes unevenly; when the second test data is the electric quantity of the mobile power supply during charging and the abnormal detection result of the electric quantity of the mobile power supply during charging represents that the electric quantity of the mobile power supply during charging is abnormal at corresponding time, whether the voltage input to the mobile power supply changes unevenly or whether power failure occurs is judged.
In the discharging process of the mobile power supply, when the first test data is abnormal or the second test data is abnormal, the first test data and the second test data are unevenly changed, the application scenario is similar to the charging process of the mobile power supply, and only the input data are different, so that the detailed description is omitted.
In the charging or discharging process of the mobile power supply, the time that the electric quantity information reaches the electric quantity condition can be determined according to the abnormal detection result, the time that the electric quantity information reaches the electric quantity condition is used as the detection time, whether the electric quantity indicator lamp is normally on or not can be detected at each detection time, and whether the LED with messy codes or dead spots appears on the electric quantity value display screen or not can be detected.
For example: when a test video is formed by recording a test picture of the mobile power supply, corresponding detection time is determined according to an abnormal detection result, the test video is checked, the problem of the mobile power supply is directly determined, a process of backtracking a complete test is not needed, and the test efficiency is improved.
Optionally, the test results are classified and stored, so that problem tracing is facilitated.
According to the abnormal testing method of the mobile power supply, different protocols can be switched in real time by arranging the protocol chip in the corresponding device, so that the testing is convenient, and the testing flow can be customized according to the product requirements; the detection speed can be greatly improved, the upper computer detection software provides intelligent monitoring of multiple experimental data, and the labor cost is saved; the data curve of the first test data in the complete charging and discharging cycle can be obtained, and accurate positioning can be carried out on the coordinate axes of time and electric quantity by marking abnormal data on the data curve; and test results can be classified and stored through software, so that problem tracing is facilitated.
In one embodiment, as shown in fig. 3, the terminal for the abnormal testing method of the mobile power supply includes a device body and an upper computer, wherein the device body includes a key, an input port, a load port, a display screen, an MCU chip, and protocol chips corresponding to charging modes of different mobile power supplies; the upper computer comprises a display and a camera, and data storage is carried out on the upper computer through a corresponding storage device. And the device body can independently operate when not using the host computer, can regard as a convenient module, and this module can show current portable power source's test data in real time to can change the charging protocol through button control.
In one embodiment, as shown in fig. 4, a test procedure of discharging the charger is discussed, and the test procedure executes a corresponding step through a certain thread of the terminal. After the main thread is started, acquiring a real-time data packet, carrying out integrity check on the received data packet, and when the integrity check is not passed, acquiring a corresponding data packet again; and when the test result passes the integrity check, starting the camera, displaying a data curve, recording the time for turning on and off the quantity of the electric quantity indicator lamps according to the quantity of the electric quantity indicator lamps of the mobile power supply by the camera, controlling the whole test flow until the discharge test is finished, and finishing the main thread or putting the main thread back to the thread pool to be started.
It should be understood that, although the steps in the flowcharts related to the embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides an abnormality testing device of the mobile power supply, which is used for realizing the abnormality testing method of the mobile power supply. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the method, so that the specific limitations in the embodiment of the device for testing the abnormality of one or more mobile power supplies provided below can refer to the limitations on the method for testing the abnormality of the mobile power supplies in the foregoing, and are not described herein again.
In one embodiment, as shown in fig. 5, there is provided an abnormality testing apparatus of a mobile power supply, including: a data packet obtaining module 502, a data packet verifying module 504, a first test data testing module 506, a second test data testing module 508, and a mobile power supply abnormality determining module 510, wherein:
a data packet obtaining module 502, configured to obtain a data packet for real-time transmission; the data packet carries first test data of the mobile power supply;
a data packet verification module 504, configured to perform integrity verification on each data packet in sequence based on a data amount recorded at a packet end of the data packet and a data amount of the first test data that are obtained each time;
a first test data test module 506, configured to perform anomaly detection on the first test data based on the model of the mobile power supply when the integrity check is passed, and acquire second test data of the mobile power supply based on a camera;
a second test data test module 508, configured to perform anomaly detection on the second test data based on the model of the mobile power supply when the electric quantity information in the second test data meets an electric quantity condition;
a mobile power source abnormality determining module 510, configured to analyze whether there is an abnormality in the mobile power source based on at least one of an abnormality detection result of the first test data and an abnormality detection result of the second test data.
In one embodiment, the packet obtaining module 502 includes:
the test configuration unit is used for acquiring the input test requirement and the product number of the mobile power supply;
the model determining unit is used for determining the model of the mobile power supply based on the product number of the mobile power supply;
the parameter type determining unit is used for determining the type of the parameter to be transmitted according to the model and the test requirement;
and the data packet acquisition unit is used for acquiring a data packet carrying the first test data of the parameter type in real time when the mobile power supply is tested.
In one embodiment, the packet verification module 504 includes:
the first checking unit is used for respectively comparing the data volume of the packet tail record of the data packet acquired each time with the data volume of the first test data;
the second checking unit is used for comparing the data volume of the first test data with a corresponding data volume threshold when the data volume recorded by the packet tail is consistent with the data volume of the first test data;
and the verification result generating unit is used for passing integrity verification when the data volume of the first test data is smaller than the data volume threshold value.
In one embodiment, the first verification unit includes:
the data quantity calculation operator unit is used for calculating the sum of the data quantities of the first test data in different parameter types to obtain the target data quantity of the first test data;
the data volume comparison unit is used for comparing the data volume recorded by the packet tail of the data packet with the target data volume of the first test data;
correspondingly, the verification result generating unit includes:
and the verification result generation subunit is used for passing the integrity verification when the target data volume is smaller than the data volume threshold value.
In one embodiment, the first test data testing module 506 includes:
the shooting unit is used for recording the mobile power supply in the test based on the camera to obtain a test picture;
and the second test data acquisition unit is used for acquiring the second test data based on the electric quantity indicator lamp or the electric quantity value display screen in the test picture.
In one embodiment, the first test data testing module 506 includes:
a parameter threshold determining unit, configured to determine a parameter threshold of the first test data based on a model of the mobile power supply;
the data curve drawing unit is used for drawing a data curve of the first test data at each moment in a window of the display interface in sequence based on the first test data in the data packet acquired each time;
and the first abnormal data determining unit is used for determining and marking abnormal data in the data curve according to the parameter threshold.
In one embodiment, the second test data testing module 508 includes:
the estimation rule obtaining unit is used for determining a corresponding electric quantity estimation rule based on the model of the mobile power supply;
the electric quantity estimation unit is used for estimating the time when the electric quantity information reaches the electric quantity condition according to the electric quantity estimation rule when the electric quantity information in the second test data meets the electric quantity condition, so as to generate estimated electric quantity of the mobile power supply;
and the second abnormal data determining unit is used for comparing the electric quantity information in the second test number with the estimated electric quantity of the mobile power supply and judging whether the second test data is abnormal or not.
In one embodiment, the mobile power source abnormality determining module 510 includes:
a first anomaly testing unit configured to determine whether at least one of charging and discharging processes of the mobile power supply is uniformly changed based on at least one of an anomaly detection result of the first test data and an anomaly detection result of the second test data;
and the second abnormity testing unit is used for judging whether the electric quantity indicator lamp or the electric quantity value display screen of the mobile power supply is abnormal or not based on at least one of the abnormity detection result of the first testing data and the abnormity detection result of the second testing data.
All or part of each module in the abnormality testing device of the mobile power supply can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer apparatus includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for anomaly testing of a mobile power supply. The display unit of the computer equipment is used for forming a visual and visible picture, and can be a display screen, a projection device or a virtual reality imaging device, the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant countries and regions.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (12)

1. An abnormality testing method for a mobile power supply, the method comprising:
acquiring a real-time transmission data packet; the data packet carries first test data of the mobile power supply;
sequentially carrying out integrity check on each data packet based on the data volume of the packet tail record of the data packet obtained each time and the data volume of the first test data;
when the integrity check is passed, performing anomaly detection on the first test data based on the model of the mobile power supply, and acquiring second test data of the mobile power supply based on a camera;
when the electric quantity information in the second test data meets an electric quantity condition, performing abnormal detection on the second test data based on the model of the mobile power supply;
analyzing whether the mobile power supply has an abnormality or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data.
2. The method of claim 1, wherein obtaining the real-time transmitted data packet comprises:
acquiring an input test requirement and a mobile power supply product number;
determining a model of the mobile power supply based on the mobile power supply product number;
determining the type of the parameter to be transmitted according to the model and the test requirement;
and when the mobile power supply is tested, acquiring a data packet carrying the first test data of the parameter type in real time.
3. The method according to claim 1, wherein the performing integrity check on each data packet in sequence based on the data volume of the end-of-packet record of the data packet obtained each time and the data volume of the first test data comprises:
respectively comparing the data volume of the packet tail record of the data packet acquired each time with the data volume of the first test data;
when the data volume recorded by the packet tail is consistent with the data volume of the first test data, comparing the data volume of the first test data with a corresponding data volume threshold;
and when the data volume of the first test data is smaller than the data volume threshold value, the integrity check is passed.
4. The method according to claim 3, wherein the comparing the data volume of the end-of-packet record of the data packet obtained each time with the data volume of the first test data respectively comprises:
calculating the sum of the data volumes of the first test data of different parameter types to obtain the target data volume of the first test data;
comparing the data volume recorded at the tail of the data packet with the target data volume of the first test data;
when the data volume of the first test data is smaller than the data volume threshold, passing integrity check includes:
when the target data volume is smaller than the data volume threshold value, an integrity check is passed.
5. The method of any one of claims 1 to 4, wherein the camera-based acquisition of second test data of the mobile power supply comprises:
recording the mobile power supply in the test based on the camera to obtain a test picture;
and acquiring the second test data based on the electric quantity indicator lamp or the electric quantity value display screen in the test picture.
6. The method according to claim 1, wherein the anomaly detection of the first test data based on the model of the mobile power supply comprises:
determining a parameter threshold value of the first test data based on the model of the mobile power supply;
sequentially drawing a data curve of the first test data at each moment in a window showing an interface based on the first test data in the data packet acquired each time;
and determining and marking abnormal data in the data curve according to the parameter threshold.
7. The method according to claim 1, wherein when the power information in the second test data satisfies a power condition, performing anomaly detection on the second test data based on a model of the mobile power supply comprises:
determining a corresponding electric quantity estimation rule based on the model of the mobile power supply;
when the electric quantity information in the second test data meets the electric quantity condition, estimating the time when the electric quantity information reaches the electric quantity condition according to the electric quantity estimation rule to generate estimated electric quantity of the mobile power supply;
and comparing the electric quantity information in the second test number with the estimated electric quantity of the mobile power supply, and judging whether the second test data is abnormal.
8. The method according to claim 1, wherein analyzing whether the mobile power supply has an abnormality based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data comprises:
judging whether at least one of the charging and discharging processes of the mobile power supply is uniformly changed or not based on at least one of the abnormality detection result of the first test data and the abnormality detection result of the second test data; and/or the presence of a gas in the gas,
and judging whether an electric quantity indicator lamp or an electric quantity value display screen of the mobile power supply is abnormal or not based on at least one of the abnormal detection result of the first test data and the abnormal detection result of the second test data.
9. An abnormality testing apparatus of a mobile power supply, characterized in that the apparatus comprises:
the data packet acquisition module is used for acquiring a data packet transmitted in real time; the data packet carries first test data of the mobile power supply;
the data packet verification module is used for sequentially carrying out integrity verification on each data packet based on the data volume of the packet tail record of the data packet and the data volume of the first test data acquired each time;
the first test data test module is used for carrying out abnormity detection on the first test data based on the model of the mobile power supply and acquiring second test data of the mobile power supply based on a camera when the integrity check is passed;
the second test data testing module is used for carrying out abnormity detection on the second test data based on the model of the mobile power supply when the electric quantity information in the second test data meets the electric quantity condition;
and the mobile power supply abnormity determining module is used for analyzing whether the mobile power supply is abnormal or not based on at least one of the abnormity detection result of the first test data and the abnormity detection result of the second test data.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 8 when executed by a processor.
CN202210401867.2A 2022-04-15 2022-04-15 Abnormal test method and device for mobile power supply, computer equipment and storage medium Pending CN114994561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210401867.2A CN114994561A (en) 2022-04-15 2022-04-15 Abnormal test method and device for mobile power supply, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210401867.2A CN114994561A (en) 2022-04-15 2022-04-15 Abnormal test method and device for mobile power supply, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114994561A true CN114994561A (en) 2022-09-02

Family

ID=83023447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210401867.2A Pending CN114994561A (en) 2022-04-15 2022-04-15 Abnormal test method and device for mobile power supply, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114994561A (en)

Similar Documents

Publication Publication Date Title
CN112098924B (en) Interactive function testing method and device based on double-core intelligent electric meter
CN112884092B (en) AI model generation method, electronic device, and storage medium
CN108664372A (en) Monitoring device, method and the computer readable storage medium of test process
CN114356631A (en) Fault positioning method and device, computer equipment and storage medium
CN107450029A (en) Battery status method of calibration and device, computer equipment, computer-readable recording medium
CN114167132B (en) Power consumption detection method and device of wireless terminal, electronic equipment and storage medium
CN113280265B (en) Working condition identification method and device, computer equipment and storage medium
CN114355094B (en) Product reliability weak link comprehensive evaluation method and device based on multi-source information
CN103913150B (en) Intelligent electric energy meter electronic devices and components consistency detecting method
CN109725785A (en) Task execution situation method for tracing, device, equipment and readable storage medium storing program for executing
CN114994561A (en) Abnormal test method and device for mobile power supply, computer equipment and storage medium
CN106844264A (en) A kind of mobile terminal
CN104596578A (en) Mobile terminal, inspection method and system for external connector based on the mobile terminal
CN113766312A (en) Method, device, equipment and storage medium for calculating response delay between equipment
CN110348984B (en) Automatic credit card data input method and related equipment under different transaction channels
TWI643060B (en) Automatic image monitoring method
CN106708705A (en) Terminal background process monitoring method and system
CN115792582B (en) Chip testing method, device and equipment
CN116577551B (en) SSD power consumption testing method and system and electronic equipment
CN116609092B (en) Fault detection method, device, computer equipment and storage medium
CN111414398B (en) Data analysis model determining method, device and storage medium
CN109738694A (en) A kind of chip power-consumption prediction technique, device, electronic equipment and storage medium
CN113992778B (en) Equipment detection method, device, chip and module equipment
CN113848497A (en) Battery performance testing method and device, computer equipment and storage medium
CN116896763A (en) Time delay test method, time delay test device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination