CN116501616A - Pressure test method, device, equipment and storage medium based on OTA upgrade - Google Patents
Pressure test method, device, equipment and storage medium based on OTA upgrade Download PDFInfo
- Publication number
- CN116501616A CN116501616A CN202310357680.1A CN202310357680A CN116501616A CN 116501616 A CN116501616 A CN 116501616A CN 202310357680 A CN202310357680 A CN 202310357680A CN 116501616 A CN116501616 A CN 116501616A
- Authority
- CN
- China
- Prior art keywords
- target
- version
- ota
- equipment
- upgrade
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 20
- 238000012360 testing method Methods 0.000 claims abstract description 87
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012795 verification Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000009662 stress testing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The application relates to the technical field of Internet and discloses a pressure test method, device, equipment and storage medium based on OTA (over the air) upgrading, wherein the method comprises the steps of reporting a current version to an OTA cloud end of an over the air technology through target equipment; when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version; and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Description
Technical Field
The application relates to the technical field of internet, in particular to a pressure test method, device, equipment and storage medium based on OTA (over the air) upgrading.
Background
OTA is an abbreviation for English full-scale-the-Air Technology, and the translated Chinese meaning is the meaning of "space download Technology". OTA upgrading is a very common mobile equipment system upgrading technology, and by means of OTA, software upgrading can be carried out on equipment distributed in various places without running the operation and maintenance personnel in various places. Most of the intelligent devices today have OTA upgrading functions. The common schemes of OTA include differential upgrade, full upgrade, AB surface upgrade and Recovery system upgrade. For testing of OTA upgrades, because of many abnormal scenes, and pressure testing, repeated upgrades for one version of firmware are required in the testing process. This is a time consuming process for the current OTA upgrade test, which is still dominated by manual debugging, where there is a lot of repetitive work that can reduce the efficiency of the OTA upgrade test to some extent. Therefore, how to improve the efficiency of the pressure test in the OTA upgrade is a technical problem to be solved.
Disclosure of Invention
The application provides a pressure test method, device, equipment and storage medium based on OTA (over the air) upgrading so as to improve the efficiency of pressure test in OTA upgrading.
In a first aspect, the present application provides an OTA upgrade-based pressure testing method, where the OTA upgrade-based pressure testing method includes:
reporting the current version to an OTA cloud end through target equipment;
when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version;
and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
Further, determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target device realizes repeated upgrading to complete pressure testing, including:
determining the target kernel version in the OTA cloud based on the target equipment, and acquiring a configuration item corresponding to the target kernel version;
and determining the current version number as the version number corresponding to the target kernel version based on the SQL statement of the structured query language database.
Further, determining the target kernel version in the OTA cloud based on the target device includes:
querying a preset OTA equipment list through a structured query language database SQL statement;
a target kernel version matching the target device I D and the target device name is determined in a preset kernel version library based on the target device I D and the target device name of the target device obtained in advance.
Further, when the OTA cloud determines to perform OTA upgrade on the target device, issuing an upgrade task to the target device, so that before the target device is upgraded to a target version, the method includes:
detecting whether the target equipment meets a target preset condition or not through the OTA cloud;
and when the target equipment meets the target preset condition, determining to carry out OTA upgrading on the target equipment.
Further, the target preset condition includes a first preset condition, and the detecting, by the OTA cloud, whether the target device meets the target preset condition includes:
judging whether the target version is higher than the current version or not based on the target version number corresponding to the target version and the current version number corresponding to the current version;
and under the condition that the target version is higher than the current version, determining that the target device meets the first preset condition.
Further, the target preset condition includes a second preset condition, and the detecting, by the OTA cloud, whether the target device meets the target preset condition further includes:
detecting whether the cloud original version of the OTA cloud is identical to the current version of the target device;
and when the cloud original version is the same as the current version, determining that the target equipment meets the second preset condition.
Further, the target preset conditions include a third preset condition, and the detecting, by the OTA cloud, whether the target device meets the target preset condition further includes:
detecting whether a version upgrade package corresponding to the target version exists in the OTA cloud;
and when the version upgrading packet exists in the OTA cloud, determining that the target equipment meets the third preset condition.
Further, issuing an upgrade task to the target device to upgrade the target device to a target version, including:
based on a preset communication protocol, receiving and downloading the upgrading task through the target equipment;
performing signature verification on the upgrading task through the target equipment;
and when the upgrading task passes signature verification, finishing the upgrading task through the target equipment.
In a second aspect, the present application further provides a pressure testing device based on OTA upgrade, where the pressure testing device based on OTA upgrade includes:
the version reporting module is used for reporting the current version to an OTA cloud through target equipment;
the upgrading task issuing module is used for issuing an upgrading task to the target equipment when the OTA cloud determines that the target equipment is subjected to OTA upgrading, so that the target equipment is upgraded to a target version;
and the version number determining module is used for determining the target version as a target kernel version of the OTA cloud end, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
In a third aspect, the present application also provides an apparatus comprising a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the pressure testing method based on OTA upgrade when executing the computer program.
In a fourth aspect, the present application further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor causes the processor to implement a pressure testing method based on OTA upgrade as described above.
The application discloses a pressure testing method, device, equipment and storage medium based on OTA (over the air) upgrading, wherein the pressure testing method based on OTA upgrading comprises the steps of reporting a current version to an OTA cloud end of an over the air technology through target equipment; when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version; and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a pressure testing method based on OTA upgrading according to a first embodiment of the present application;
FIG. 2 is a schematic flow chart of a pressure testing method based on OTA upgrade according to a second embodiment of the present application;
FIG. 3 is a schematic flow chart of a pressure testing method based on OTA upgrade according to a third embodiment of the present application;
FIG. 4 is a schematic flow chart of a pressure testing method based on OTA upgrade according to a fourth embodiment of the present application;
FIG. 5 is a schematic flow chart of a pressure testing method based on OTA upgrade according to a fifth embodiment of the present application;
FIG. 6 is a schematic flow chart of OTA upgrade;
FIG. 7 is a schematic block diagram of a pressure testing device based on OTA upgrades provided by an embodiment of the present application;
fig. 8 is a schematic block diagram of an apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a pressure test method, device, equipment and storage medium based on OTA upgrading. The pressure test method based on OTA upgrade can be applied to a server, and by upgrading the device to a higher version, the system version number of the target device is controlled to return to an initial state, so that the situation that the system version of the target device is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a pressure testing method based on OTA upgrading according to a first embodiment of the present application. The pressure test method based on OTA upgrade can be applied to a server and used for controlling the system version number of the target equipment to return to an initial state after the equipment is upgraded to a higher version, so that the condition that the system version of the target equipment is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved.
As shown in fig. 1, the pressure testing method based on OTA upgrade specifically includes steps S10 to S30.
Step S10, reporting the current version to an OTA cloud through target equipment;
step S20, when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version;
and step S30, determining the target version as a target kernel version of the OTA cloud end, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
In a specific embodiment, when repeatedly upgrading firmware of a version for multiple times, since the upgrading process will upgrade the firmware of the current version to the new version, the version number is updated accordingly, so that the version number no longer satisfies the OTA upgrading condition (the version number is too high). Therefore, each upgrade requires re-burning the firmware and refreshing the system so that the device can return to the version prior to the upgrade before repeating the previous upgrade process.
The application performs OTA full-scale upgrades rather than differential upgrades for specified version batches. Full-scale upgrade, i.e. upgrade by downloading a complete system installation package, differential upgrade is based on upgrade of an upgrade package added with patches or modified on the basis of the original system. Of course, the end result is the same, i.e., the system installation package is updated. Typically, the size of the full package is relatively close to a mirror image of the entire firmware. The differential packet is not particularly limited, and can be almost the same as the whole packet, or only a few KB, and if the differential packet is upgraded, only the increment part is upgraded, namely differential upgrade is performed on the basic version.
In the embodiment, through uploading an OTA upgrade package on a digital twin platform, a JSON string (JavaScript Object Notation, JS object numbered) returned after uploading is obtained, and all information of the OTA upgrade of the current product is obtained according to JSO, wherein the information comprises a product ID, a device ID and a version number.
By comparing the version numbers, it is determined which of the current version and the target version is the updated version, for example, whether to issue the upgrade task to the target device is determined by the version size, the creation time, and the like.
The embodiment discloses a pressure testing method, device, equipment and storage medium based on OTA (over the air) upgrading, wherein the pressure testing method based on OTA upgrading comprises the steps of reporting a current version to an OTA cloud end of an over the air technology through target equipment; when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version; and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a pressure testing method based on OTA upgrading according to a second embodiment of the present application. The pressure test method based on OTA upgrade can be applied to a server and used for controlling the system version number of the target equipment to return to an initial state after the equipment is upgraded to a higher version, so that the condition that the system version of the target equipment is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved.
Based on the embodiment shown in fig. 1, in this embodiment, as shown in fig. 2, step S30 specifically includes steps S301 to S302.
Step 301, determining the target kernel version in the OTA cloud based on the target device, and acquiring a configuration item corresponding to the target kernel version;
step S302, determining the current version number as the version number corresponding to the target kernel version based on the SQL statement of the structured query language database.
In a specific embodiment, the OTA upgrading device table is queried through a preset sql statement and related configuration is changed. After the device I D is queried, a plurality of configuration items are determined according to the device I D, and if the current version is upgraded to a high version, the corresponding version configuration items can be changed.
The embodiment discloses a pressure testing method, device, equipment and storage medium based on OTA (over-the-air) upgrading, wherein the pressure testing method based on OTA upgrading comprises the steps of changing configuration information of a target kernel version in an OTA cloud, and changing a version number corresponding to the target kernel version into the current version number. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a pressure testing method based on OTA upgrading according to a third embodiment of the present application. The pressure test method based on OTA upgrade can be applied to a server and used for controlling the system version number of the target equipment to return to an initial state after the equipment is upgraded to a higher version, so that the condition that the system version of the target equipment is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved.
Based on the embodiment shown in fig. 2, in this embodiment, as shown in fig. 3, step S301 specifically includes steps S3011 to S3012.
Step S3011, inquiring a preset OTA equipment list through an SQL statement of a structured query language database;
step S3012, determining, in a preset kernel version library, a target kernel version matching the target device I D and the target device name based on the target device I D and the target device name of the target device obtained in advance.
In a specific embodiment, the OTA upgrading device table is queried through a preset sql statement and related configuration is changed. After the device I D is queried, a plurality of configuration items are determined according to the device I D, and if the current version is upgraded to a high version, the corresponding version configuration items can be changed.
Further, the preset sql statement may be:
through the sql statement, the OTA task password, the OTA device I D, the OTA device name and the like corresponding to the target device can be determined.
The embodiment discloses a pressure test method, a device, equipment and a storage medium based on OTA upgrade, wherein the pressure test method based on OTA upgrade comprises the steps of inquiring a preset OTA equipment list through a structured query language database SQL statement; determining at least one configuration item of the target device based on the pre-acquired target device I D of the target device, wherein the configuration item comprises a version configuration item; and modifying the version configuration item into the current version number, so that the version number of the target kernel version is changed into the current version number. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a pressure testing method based on OTA upgrading according to a fourth embodiment of the present application. The pressure test method based on OTA upgrade can be applied to a server and used for controlling the system version number of the target equipment to return to an initial state after the equipment is upgraded to a higher version, so that the condition that the system version of the target equipment is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved.
Based on the embodiment shown in fig. 1, in this embodiment, as shown in fig. 4, step S11 to step S12 are included before step 20.
Step S11, detecting whether the target equipment meets a target preset condition through the OTA cloud;
and step S12, when the target equipment meets the target preset condition, determining to carry out OTA upgrading on the target equipment.
In a specific embodiment, the target preset conditions are three in total, and the target preset conditions are respectively: 1. whether the target version is higher than the current version; 2, whether the OTA cloud original version is the same as the current version of the target device; and 3, whether the OTA cloud end has a version upgrade package corresponding to the target version or not.
When the OTA cloud judges that the target equipment meets the three conditions, the OTA upgrading of the target equipment is determined to be needed. The target kernel version of the cloud upgrade package does not have any influence on the process of issuing the OTA upgrade task by the cloud. After the cloud end issues the upgrade task, the equipment downloads and installs the upgrade package until the upgrade is successfully updated. It should be noted here that the version after the device upgrade depends on the target kernel version of the upgrade package, not the configuration version when the cloud establishes the upgrade task.
The embodiment discloses a pressure testing method, device, equipment and storage medium based on OTA (over-the-air) upgrading, wherein the pressure testing method based on OTA upgrading comprises the step of detecting whether target equipment meets target preset conditions through an OTA cloud; and when the target equipment meets the target preset condition, determining to carry out OTA upgrading on the target equipment. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
In a specific embodiment, step S11 specifically includes:
judging whether the target version is higher than the current version or not based on the target version number corresponding to the target version and the current version number corresponding to the current version;
and under the condition that the target version is higher than the current version, determining that the target device meets the first preset condition.
In a specific embodiment, step S11 specifically includes:
detecting whether the cloud original version of the OTA cloud is identical to the current version of the target device;
and when the cloud original version is the same as the current version, determining that the target equipment meets the second preset condition.
In a specific embodiment, step S11 specifically includes:
detecting whether a version upgrade package corresponding to the target version exists in the OTA cloud;
and when the version upgrading packet exists in the OTA cloud, determining that the target equipment meets the third preset condition.
Referring to fig. 5, fig. 5 is a schematic flowchart of a pressure testing method based on OTA upgrade according to a fifth embodiment of the present application. The pressure test method based on OTA upgrade can be applied to a server and used for controlling the system version number of the target equipment to return to an initial state after the equipment is upgraded to a higher version, so that the condition that the system version of the target equipment is repeatedly burned in each pressure test is avoided, and the efficiency of the pressure test in OTA upgrade is improved.
Based on the embodiment shown in fig. 1, in the present embodiment, as shown in fig. 5, step 20 includes steps S201 to S203.
Step 201, receiving and downloading the upgrade task through the target device based on a preset communication protocol;
step 202, performing signature verification on the upgrade task through the target equipment;
and 203, finishing the upgrading task through the target equipment when the upgrading task passes signature verification.
In an embodiment, as shown in fig. 6, fig. 6 is a schematic flow chart of OTA upgrade. After the OTA cloud issues the upgrading task to the target device, the target device performs signature verification on the upgrading task, and the upgrading task is downloaded and updated to the target version under the condition that the signature verification is passed. After the upgrading of the target device is finished, the corresponding version content is the content of the target version, but in order to improve the efficiency of the pressure test, the version number needs to be changed, the previous version number is kept and reported to the OTA cloud end, and the version number is stored as the version number of the target kernel in the cloud end, so that the need of re-burning the firmware in the next upgrading is avoided.
The embodiment discloses a pressure test method, a device, equipment and a storage medium based on OTA upgrade, wherein the pressure test method based on OTA upgrade comprises the steps of receiving and downloading the upgrade task through the target equipment based on a preset communication protocol; performing signature verification on the upgrading task through the target equipment; and when the upgrading task passes signature verification, finishing the upgrading task through the target equipment. By means of the method, after the equipment is updated to a higher version, the system version number of the control target equipment is returned to the initial state, and the situation that the system version of the target equipment is repeatedly burnt in each pressure test is avoided, so that the efficiency of the pressure test in OTA upgrading is improved.
Referring to fig. 7, fig. 7 is a schematic block diagram of an OTA upgrade-based pressure testing apparatus for performing the above-mentioned OTA upgrade-based pressure testing method according to an embodiment of the present application. The pressure testing device based on OTA upgrade can be configured on a server.
As shown in fig. 7, the pressure testing apparatus 400 based on OTA upgrade includes:
the version reporting module 10 is configured to report, through the target device, the current version to an over-the-air OTA cloud;
the upgrade task issuing module 20 is configured to issue an upgrade task to the target device when the OTA cloud determines that the target device is to be upgraded by OTA, so that the target device is upgraded to a target version;
and the version number determining module 30 is configured to determine the target version as a target kernel version of the OTA cloud, and determine the current version number as a version number of the target kernel version, so that the target device is repeatedly upgraded to complete the pressure test.
Further, the version number determination module 30 includes:
the kernel version determining unit is used for determining the target kernel version in the OTA cloud based on the target device and obtaining a configuration item corresponding to the target kernel version;
and the version number determining unit is used for determining the current version number as the version number corresponding to the target kernel version based on the SQL statement of the structured query language database.
Further, the kernel version determining unit includes:
an OTA device query subunit, configured to query a preset OTA device list through a structured query language database SQL statement;
and the kernel version determining subunit is used for determining a target kernel version matched with the target device I D and the target device name in a preset kernel version library based on the pre-acquired target device I D and target device name of the target device.
Further, the pressure testing device based on the OTA upgrade further comprises:
the upgrading condition judging module is used for detecting whether the target equipment meets a target preset condition through the OTA cloud;
and the OTA upgrading module is used for determining to carry out OTA upgrading on the target equipment when the target equipment meets the target preset condition.
Further, the upgrade condition judgment module includes:
a version number comparison unit, configured to determine whether the target version is higher than the current version based on a target version number corresponding to the target version and a current version number corresponding to the current version;
and the first preset condition determining unit is used for determining that the target equipment meets the first preset condition under the condition that the target version is higher than the current version.
Further, the upgrade condition judgment module includes:
the original version detection unit is used for detecting whether the cloud original version of the OTA cloud is the same as the current version of the target device;
and the second preset condition determining unit is used for determining that the target equipment meets the second preset condition when the cloud original version is the same as the current version.
Further, the upgrade condition judgment module includes:
the version upgrade package detection unit is used for detecting whether the OTA cloud end has a version upgrade package corresponding to the target version or not;
and the third preset condition determining unit is used for determining that the target equipment meets the third preset condition when the version upgrade package exists in the OTA cloud.
Further, the upgrade task issuing module 20 includes:
an upgrade task receiving unit, configured to perform signature verification on the upgrade task through the target device;
the signature verification unit is used for carrying out signature verification on the upgrading task through the target equipment;
and the target equipment upgrading unit is used for completing the upgrading task through the target equipment when the upgrading task passes signature verification.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of an apparatus according to an embodiment of the present application. The device may be a server.
Referring to fig. 8, the apparatus includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any of a number of OTA upgrade-based stress testing methods.
The processor is used to provide computing and control capabilities to support the operation of the entire device.
The internal memory provides an environment for the execution of a computer program in the non-volatile storage medium that, when executed by the processor, causes the processor to perform any of a number of OTA upgrade-based stress test methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure associated with the present application and does not constitute a limitation of the apparatus to which the present application is applied, and that a particular apparatus may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
reporting the current version to an OTA cloud end through target equipment;
when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version;
and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
In one embodiment, the target version is determined as a target kernel version of the OTA cloud, and the current version number is determined as a version number of the target kernel version, so that the target device realizes repeated upgrading to complete pressure testing, and the method is used for realizing:
determining the target kernel version in the OTA cloud based on the target equipment, and acquiring a configuration item corresponding to the target kernel version;
and determining the current version number as the version number corresponding to the target kernel version based on the SQL statement of the structured query language database.
In one embodiment, the determining, based on the target device, the target kernel version in the OTA cloud is for implementing:
querying a preset OTA equipment list through a structured query language database SQL statement;
a target kernel version matching the target device I D and the target device name is determined in a preset kernel version library based on the target device I D and the target device name of the target device obtained in advance.
In one embodiment, when the OTA cloud determines to perform OTA upgrade on the target device, the method is used for implementing:
detecting whether the target equipment meets a target preset condition or not through the OTA cloud;
and when the target equipment meets the target preset condition, determining to carry out OTA upgrading on the target equipment.
In one embodiment, the OTA cloud end detects whether the target device meets a target preset condition, and is configured to implement:
judging whether the target version is higher than the current version or not based on the target version number corresponding to the target version and the current version number corresponding to the current version;
and under the condition that the target version is higher than the current version, determining that the target device meets the first preset condition.
In one embodiment, the OTA cloud detecting whether the target device meets a target preset condition is further configured to:
detecting whether the cloud original version of the OTA cloud is identical to the current version of the target device;
and when the cloud original version is the same as the current version, determining that the target equipment meets the second preset condition.
In one embodiment, the OTA cloud detecting whether the target device meets a target preset condition is further configured to:
detecting whether a version upgrade package corresponding to the target version exists in the OTA cloud;
and when the version upgrading packet exists in the OTA cloud, determining that the target equipment meets the third preset condition.
In one embodiment, an upgrade task is issued to the target device, so that the target device is upgraded to a target version, and the upgrade task is used for realizing:
based on a preset communication protocol, receiving and downloading the upgrading task through the target equipment;
performing signature verification on the upgrading task through the target equipment;
and when the upgrading task passes signature verification, finishing the upgrading task through the target equipment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize any pressure test method based on OTA upgrading.
The computer readable storage medium may be an internal storage unit of the device according to the foregoing embodiment, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. The pressure testing method based on the OTA upgrade is characterized by comprising the following steps of:
reporting the current version to an OTA cloud end through target equipment;
when the OTA cloud determines that OTA upgrading is carried out on the target equipment, an upgrading task is issued to the target equipment, so that the target equipment is upgraded to a target version;
and determining the target version as a target kernel version of the OTA cloud, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
2. The OTA upgrade-based pressure testing method of claim 1, wherein the determining the target version as the target kernel version of the OTA cloud end and the current version number as the version number of the target kernel version enable the target device to repeatedly upgrade to complete the pressure test comprises:
determining the target kernel version in the OTA cloud based on the target equipment, and acquiring a configuration item corresponding to the target kernel version;
and determining the current version number as the version number corresponding to the target kernel version based on the SQL statement of the structured query language database.
3. The OTA-upgrade-based pressure testing method of claim 2, wherein the determining the target kernel version in the OTA cloud based on the target device comprises:
querying a preset OTA equipment list through a structured query language database SQL statement;
and determining a target kernel version matched with the target device ID and the target device name in a preset kernel version library based on the pre-acquired target device ID and the target device name of the target device.
4. The method for testing pressure based on OTA upgrade according to claim 1, wherein when the OTA cloud determines that the target device is subjected to OTA upgrade, issuing an upgrade task to the target device, and before upgrading the target device to a target version, the method comprises:
detecting whether the target equipment meets a target preset condition or not through the OTA cloud;
and when the target equipment meets the target preset condition, determining to carry out OTA upgrading on the target equipment.
5. The OTA-upgrade-based pressure testing method of claim 4, wherein the target preset condition comprises a first preset condition, and the detecting, by the OTA cloud, whether the target device meets the target preset condition comprises:
judging whether the target version is higher than the current version or not based on the target version number corresponding to the target version and the current version number corresponding to the current version;
and under the condition that the target version is higher than the current version, determining that the target device meets the first preset condition.
6. The OTA-upgrade-based pressure testing method of claim 5, wherein the target preset condition includes a second preset condition, the detecting, by the OTA cloud, whether the target device meets the target preset condition further includes:
detecting whether the cloud original version of the OTA cloud is identical to the current version of the target device;
and when the cloud original version is the same as the current version, determining that the target equipment meets the second preset condition.
7. The OTA-upgrade-based pressure testing method of claim 6, wherein the target preset conditions include a third preset condition, the detecting, by the OTA cloud, whether the target device meets the target preset condition further includes:
detecting whether a version upgrade package corresponding to the target version exists in the OTA cloud;
and when the version upgrading packet exists in the OTA cloud, determining that the target equipment meets the third preset condition.
8. The OTA upgrade-based pressure testing method according to any one of claims 1 to 7, wherein the issuing an upgrade task to the target device, causing the target device to upgrade to a target version, comprises:
based on a preset communication protocol, receiving and downloading the upgrading task through the target equipment;
performing signature verification on the upgrading task through the target equipment;
and when the upgrading task passes signature verification, finishing the upgrading task through the target equipment.
9. A pressure testing device based on OTA upgrades, comprising:
the version reporting module is used for reporting the current version to an OTA cloud through target equipment;
the upgrading task issuing module is used for issuing an upgrading task to the target equipment when the OTA cloud determines that the target equipment is subjected to OTA upgrading, so that the target equipment is upgraded to a target version;
and the version number determining module is used for determining the target version as a target kernel version of the OTA cloud end, and determining the current version number as a version number of the target kernel version, so that the target equipment is repeatedly upgraded to complete the pressure test.
10. An apparatus comprising a memory and a processor;
the memory is used for storing a computer program;
the processor configured to execute the computer program and implement the OTA upgrade-based pressure test method according to any one of claims 1 to 8 when the computer program is executed.
11. A computer readable storage medium, wherein the computer readable storage medium stores a computer program, which when executed by a processor causes the processor to implement the OTA upgrade based pressure test method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310357680.1A CN116501616A (en) | 2023-03-24 | 2023-03-24 | Pressure test method, device, equipment and storage medium based on OTA upgrade |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310357680.1A CN116501616A (en) | 2023-03-24 | 2023-03-24 | Pressure test method, device, equipment and storage medium based on OTA upgrade |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116501616A true CN116501616A (en) | 2023-07-28 |
Family
ID=87323871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310357680.1A Pending CN116501616A (en) | 2023-03-24 | 2023-03-24 | Pressure test method, device, equipment and storage medium based on OTA upgrade |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116501616A (en) |
-
2023
- 2023-03-24 CN CN202310357680.1A patent/CN116501616A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108847950B (en) | Electronic device, cloud system software automatic deployment method and storage medium | |
RU2421785C2 (en) | Automated control of device drivers | |
US20150220326A1 (en) | Mobile Terminal and Software Upgrade Method Thereof | |
US20090144719A1 (en) | Using system fingerprints to accelerate package dependency resolution | |
CN110543327B (en) | Service component multiplexing method, device, computer equipment and storage medium | |
CN106027644B (en) | Service verification method and system | |
CN107844306B (en) | Application program repairing method and device, storage medium and terminal | |
CN106293849B (en) | application updating method and terminal | |
CN106951284B (en) | User interface upgrading method and device based on android system application and intelligent terminal | |
CN110750286A (en) | Management method, device, system, equipment and medium for upgrading Mbn through OTA | |
CN106843947B (en) | Method and device for processing code defects | |
CN111427601A (en) | Method and device for automatically upgrading BIOS in batches, computer equipment and storage medium | |
CN110647337A (en) | Internet of things MCU (microprogrammed control Unit) air firmware upgrading method | |
CN114296777A (en) | Software upgrading method, device, server and computer readable storage medium | |
CN116074308A (en) | Method, system, equipment and readable storage medium for downloading vehicle-end upgrade package | |
CN108733398B (en) | Software upgrading processing method and device | |
WO2019237239A1 (en) | Data test method and apparatus, device/terminal/server and computer readable storage medium | |
CN116501616A (en) | Pressure test method, device, equipment and storage medium based on OTA upgrade | |
CN116700751A (en) | Upgrading method of server firmware and computing device | |
CN111475220B (en) | Cold start method and device, electronic equipment and computer storage medium | |
US20200142689A1 (en) | System And Methods for Patch Management | |
CN110825406A (en) | Software upgrading method and related equipment | |
CN111651195A (en) | System dependency package conflict detection method and device | |
CN115004667A (en) | Information pushing method and device, electronic equipment and computer readable medium | |
CN111949278B (en) | Method, system, terminal and storage medium for automatically installing MCS system |
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 |