Method and system for automatically testing upgrading reliability of terminal USB flash disk
Through automatic testing of the terminal system, the use of alternately upgraded USB drive and version information to determine, the problems of inefficiency and waste of resources in terminal USB drive upgrade test are solved, and efficient and accurate test results are achieved.
Patent Information
- Application Number
- CN202411093718.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2025-01-07
AI Technical Summary
In the reliability test of terminal USB disk upgrade, the existing technology wastes manpower, is inefficient, has a long test cycle, and repeated plugging and unplugging of USB disks may lead to interface damage and misjudgment of test results, and fails to effectively solve the waste of resources after the upgrade failure question.
Using the automatic test terminal system, through the cooperation of the tooling and the computer, use at least two USB drives that store different upgrade files for alternate upgrade tests, and use version information and timestamps to determine whether the upgrade is successful or not until the set test stop condition is reached. .
It improves testing efficiency, saves manpower, ensures the accuracy and resource utilization of test results, and avoids the waste of damage to the USB drive interface and waiting for confirmation manually.
Smart Images

Figure CN119271541A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and a system for automatically testing the reliability of terminal U disk upgrade, belonging to the field of terminal reliability testing. Background Art
[0002] When conducting reliability tests on terminal USB flash drives, multiple terminals need to be tested thousands of times. During the test, USB flash drives containing different upgrade files need to be manually plugged in and out repeatedly, and each upgrade requires manual waiting for the upgrade to complete and the upgrade results to be determined. This type of test wastes manpower, is inefficient, and has a long test cycle. In addition, repeated plugging and unplugging of USB flash drives can easily cause interface damage or poor interface performance, which can also lead to misjudgment of test results due to hardware damage.
[0003] A Chinese invention patent with application publication number CN118312436A discloses an upgrade test method device and medium based on multiple USB flash drives. The test method includes: first, a target hub is connected to a test device, and the hub includes at least one independently powered USB flash drive interface; then, multiple USB flash drives are connected to the hub through their respective interfaces, and each USB flash drive stores an upgrade package for the test device; the key step is to use a preset script, which powers each USB flash drive interface in turn according to a set time sequence to ensure that each USB flash drive can upgrade the test device in turn; in this process, the power supply time is determined according to the upgrade time of the corresponding upgrade package, ensuring the accuracy and efficiency of the upgrade process.
[0004] This method can improve the test efficiency and avoid repeatedly plugging and unplugging the USB flash drive, but it does not judge and process the upgrade results. After an upgrade failure, the next upgrade will continue according to the established strategy. After several upgrades or tests are completed, there may be an upgrade failure, which affects the accuracy of the test results. It may cause the test results to be unreliable and cause a waste of test resources. It still does not solve the problem of manual waiting and confirmation of upgrade results, which wastes manpower and time. Summary of the invention
[0005] The purpose of the present invention is to provide a method and system for automatically testing the reliability of a terminal U disk upgrade, so as to solve the problem that the test result is unreliable, test resources are wasted, manpower and time are wasted when the terminal performs a U disk upgrade reliability test.
[0006] To achieve the above object, the solution of the present invention includes:
[0007] A method for automatically testing the reliability of terminal U disk upgrade of the present invention comprises the following steps:
[0008] 1) The tested terminal is inserted with at least two USB flash drives storing upgrade files through the control tooling;
[0009] 2) Connect a USB flash drive through the control tooling to perform an upgrade test; the upgrade test includes waiting for a set time after connecting the USB flash drive, and judging whether the upgrade is successful through the version information of the tested terminal; if the upgrade fails, a failure message is fed back and the test is stopped; if the upgrade is successful, another USB flash drive is connected through the control tooling to perform the upgrade test again until the set test stop condition is met; the set time is determined according to the upgrade time.
[0010] Furthermore, the upgrade files in different USB flash drives are different; whether the upgrade is successful is determined based on whether the version number or version date in the version information is different before and after the upgrade.
[0011] Furthermore, the upgrade files in different USB flash drives are the same; the version information includes an upgrade timestamp; whether the upgrade is successful is determined based on whether the upgrade timestamps are different; and the upgrade timestamp is updated when the upgrade is successful.
[0012] Furthermore, the test stopping condition is that the tested terminal reaches a certain number of successful upgrades.
[0013] Furthermore, the control tooling switches through relays to connect different U disks.
[0014] A system for automatically testing the reliability of a U disk upgrade of a terminal of the present invention comprises a processor, wherein the processor is used to execute instructions for implementing the following steps: performing an upgrade test on a tested terminal by connecting a U disk through a control tool; the upgrade test comprises waiting for a set time after connecting the U disk, and judging whether the upgrade is successful through version information of the tested terminal; if the upgrade fails, feeding back failure information and stopping the test; if the upgrade succeeds, performing the upgrade test again by connecting another U disk through the control tool until a set test stop condition is met; and the set time is determined according to the upgrade time.
[0015] Furthermore, the upgrade files in different USB flash drives are different; whether the upgrade is successful is determined based on whether the version number or version date in the version information is different before and after the upgrade.
[0016] Furthermore, the upgrade files in different USB flash drives are the same; the version information includes an upgrade timestamp; whether the upgrade is successful is determined based on whether the upgrade timestamps are different; and the upgrade timestamp is updated when the upgrade is successful.
[0017] Furthermore, the test stopping condition is that the tested terminal reaches a certain number of successful upgrades.
[0018] Furthermore, the control tooling switches through relays to connect different U disks.
[0019] The beneficial effects of the present invention are:
[0020] The present invention is an improved invention. When the U disk upgrade reliability test is performed on the terminal to be tested, each terminal to be tested needs to use two U disks for repeated alternating upgrade tests, and the host computer cooperates with the control tooling that can control the connection and disconnection of the U disk and the terminal, so that each terminal has only one U disk connected at a time. After the host computer reads the terminal information, it sends an instruction to the control tooling to connect a U disk to the terminal and start the upgrade; the host computer delays and waits for the terminal upgrade to be completed, reads the terminal information and determines whether the upgrade is successful; after the upgrade is successful, the host computer sends an instruction to the control tooling to connect another U disk to the terminal and start the next upgrade; the host computer delays and waits for the terminal upgrade to be completed, reads the terminal information and determines whether the upgrade is successful. By repeatedly and alternately performing U disk upgrade tests on the terminal in the above manner, manpower can be saved, the utilization rate of test resources can be improved, the efficiency can be improved, and the test results can be guaranteed to be accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a schematic diagram of the terminal upgrade process;
[0022] Figure 2 This is a flow chart of the cooperation between the host computer and the control unit to implement the upgrade test;
[0023] Figure 3 It is a schematic diagram of the overall test system for the terminal to conduct USB flash drive upgrade reliability test;
[0024] Figure 4 is a schematic diagram of a first embodiment of the control tooling;
[0025] Figure 5 Schematic diagram of a second implementation of the control tooling. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0027] The idea of the present invention is that when the U disk upgrade reliability test is performed on the terminal to be tested, each terminal to be tested needs to use two U disks (named U1 and U2) with different upgrade files to perform repeated alternate upgrade tests, and use the upper computer to cooperate with the control tooling that can control the connection and disconnection of the U disk and the terminal, so that each terminal can only have one U disk connected at a time. Figure 1 As shown in step 2 and step 3, after the host computer reads the terminal information, it sends a command to the control tooling to connect U1 to the terminal and start the upgrade; Figure 1 As shown in step 4, the host computer waits for the terminal upgrade to complete, reads the terminal information and determines whether the upgrade is successful; Figure 1As shown in step 5, after the upgrade is successful, the host computer sends a command to the control tooling to connect U2 to the terminal and start the next upgrade; Figure 1 As shown in step 6, the host computer delays and waits for the terminal upgrade to complete, reads the terminal information and determines whether the upgrade is successful; repeat Figure 1 In steps 3 to 6, the terminal is repeatedly tested for USB upgrade.
[0028] Method Example:
[0029] This embodiment provides a method for automatically testing the reliability of terminal USB flash drive upgrades. Figure 2 The flowchart shown is that the host computer cooperates with the control unit to implement the upgrade test. The specific implementation steps are as follows:
[0030] 1) Two USB flash drives (named U1 and U2) containing upgrade files are inserted into the control tooling, which can control the on and off of different USB flash drives through relays and connect to the tested terminal; the relays can be used as follows Figure 4 The single-pole double-position relay D shown in the figure has a common terminal A of the single-pole double-position relay D used to connect to the USB interface of the tested terminal, and the other side of the single-pole double-position relay D has a terminal B and a terminal C connected to the USB interface for inserting a USB flash drive, respectively. The single-pole double-position relay D switches the common terminal A to connect to the terminal B or the terminal C, so that two USB flash drives are connected in turn.
[0031] Or as another embodiment, the control tooling is as follows Figure 5 As shown, it includes port A for connecting to the USB port of the tested terminal, and ports B and C for inserting U disks respectively, ports B and C are respectively connected to port A, and two single-pole single-position relays E and F are respectively set on the serial lines connecting ports B and C to port A, and the U disk of port B is connected to the tested terminal by closing relay E and disconnecting relay F, and the U disk of port C is connected to the tested terminal by disconnecting relay E and closing relay F;
[0032] 2) After the host computer reads the version information of the tested terminal, it automatically sends a command to the control tooling to connect U1 and disconnect U2;
[0033] 3) After waiting for a period of time (set according to the time it takes for the terminal to complete an upgrade, such as 5 minutes), the host computer automatically reads the terminal version information;
[0034] 4) The host computer compares the terminal version information read in step 2) and step 3) to determine whether the terminal is successfully upgraded:
[0035] If the upgrade files placed in the two U disks are different (i.e., different versions), then compare the terminal version information read before the upgrade with the terminal version information read after the upgrade (i.e., step 2) and the version information read in step 3), the version information includes the version number and the version date (the version date refers to the version release date or the version compilation date), if the version number is different or the version date is different or both the version number and the version date are different, then the upgrade is considered successful, if the version number and the version date are the same, then the upgrade is considered failed;
[0036] If the upgrade files placed in the two USB flash drives are the same (i.e., the versions are the same), since the timestamp in the version information of the tested terminal will be updated after the version upgrade is successful (generally updated to the time point when the upgrade is successful), the timestamp in the version information after the upgrade in the tested terminal can also be compared with the timestamp in the original version information before the upgrade. If the timestamps are inconsistent, the upgrade is successful, and if the timestamps are consistent, the upgrade fails.
[0037] 5) If the upgrade is successful, proceed to the next step. If the upgrade fails, the host computer will prompt a failure message and stop the test for manual confirmation;
[0038] 6) After the upgrade is successful, the host computer automatically sends a command to the control tooling to disconnect U1 and connect U2 for the next upgrade;
[0039] 7) After waiting for a period of time (set according to the time it takes for the terminal to complete an upgrade, such as 5 minutes), the host computer automatically reads the terminal version information;
[0040] 8) The host computer compares the terminal version information read to determine whether the terminal is upgraded successfully;
[0041] 9) After the upgrade succeeds again, the host computer counts the number of successful upgrades and repeats the above steps 2) to 9); if the upgrade fails again, the host computer prompts a failure message and stops the test to wait for manual confirmation;
[0042] 10) The host computer can set the test stop condition: when the upgrade is successful for a certain number of times or the test has been carried out for a period of time, the test will be stopped.
[0043] For the convenience of description, Figure 1 Steps 1 to 6 shown in the figure and Figure 2 The above steps 1) to 10) are the process of upgrading a terminal. In fact, the host computer can control multiple terminals and multiple control tools at the same time. The overall test system for the terminal to perform U disk upgrade reliability test is as follows: Figure 3As shown: the host computer communicates with multiple control U disk on-off units (i.e. the above-mentioned control tools) at the same time, each control tool is inserted with two U disks with different upgrade files, and the host computer controls each control tool to access a U disk in turn; the host computer also communicates with multiple devices under test (i.e. tested terminals) at the same time to determine whether each tested terminal has been upgraded successfully.
[0044] System Example:
[0045] This embodiment provides a system for automatically testing the reliability of terminal U disk upgrades, including a processor for executing instructions for implementing a method for automatically testing the reliability of terminal U disk upgrades. The method for automatically testing the reliability of terminal U disk upgrades has been clearly introduced in the method embodiment and will not be repeated here.
Claims
1. A method for automatically testing the reliability of terminal USB flash drive upgrade, characterized in that: The steps include: 1) The tested terminal is inserted with at least two USB flash drives storing upgrade files through the control tooling; 2) Connecting a USB flash drive to the control tooling for an upgrade test; the upgrade test includes waiting for a set time after connecting the USB flash drive, and judging whether the upgrade is successful through the version information of the tested terminal; if the upgrade fails, a failure message is fed back and the test is stopped; if the upgrade is successful, connecting another USB flash drive to the control tooling for the upgrade test again until the set test stop condition is met; the set time is determined according to the upgrade time.
2. The method for automatically testing the reliability of terminal USB flash drive upgrade according to claim 1, characterized in that: The upgrade files in different U disks are different; whether the upgrade is successful is determined based on whether the version number or version date in the version information is different before and after the upgrade.
3. The method for automatically testing the reliability of terminal USB upgrade according to claim 1, characterized in that: The upgrade files in different USB flash drives are the same; the version information includes an upgrade timestamp; whether the upgrade is successful is determined based on whether the upgrade timestamps are different; the upgrade timestamp is updated when the upgrade is successful.
4. The method for automatically testing the reliability of terminal USB flash drive upgrade according to claim 1, characterized in that: The test stop condition is that the tested terminal reaches a certain number of successful upgrades.
5. The method for automatically testing the reliability of terminal USB flash drive upgrade according to claim 1, characterized in that: The control tool is connected to different U disks through relay switching.
6. A system for automatically testing the reliability of terminal USB flash drive upgrade, comprising a processor, characterized in that: The processor is used to execute instructions for implementing the following steps: performing an upgrade test on the tested terminal by connecting a U disk through a control tool; the upgrade test includes waiting for a set time after connecting the U disk, and judging whether the upgrade is successful through the version information of the tested terminal; if the upgrade fails, feeding back failure information and stopping the test; if the upgrade is successful, performing the upgrade test again by connecting another U disk through the control tool until the set test stop condition is met; the set time is determined according to the upgrade time.
7. The system for automatically testing the reliability of terminal USB flash drive upgrade according to claim 6, characterized in that: The upgrade files in different U disks are different; whether the upgrade is successful is determined based on whether the version number or version date in the version information is different before and after the upgrade.
8. The system for automatically testing the reliability of terminal USB flash drive upgrade according to claim 6, characterized in that: The upgrade files in different USB flash drives are the same; the version information includes an upgrade timestamp; whether the upgrade is successful is determined based on whether the upgrade timestamps are different; the upgrade timestamp is updated when the upgrade is successful.
9. The system for automatically testing the reliability of terminal USB flash drive upgrade according to claim 6, characterized in that: The test stop condition is that the tested terminal reaches a certain number of successful upgrades.
10. The system for automatically testing the reliability of terminal USB flash drive upgrade according to claim 6, characterized in that: The control tool is connected to different U disks through relay switching.
Citation Information
Patent Citations
Upgrade test method, device and equipment based on multiple U disks and medium
CN118312436A