CN115827020A - Upgrading test method, device, equipment and storage medium of equipment - Google Patents

Upgrading test method, device, equipment and storage medium of equipment Download PDF

Info

Publication number
CN115827020A
CN115827020A CN202211545465.6A CN202211545465A CN115827020A CN 115827020 A CN115827020 A CN 115827020A CN 202211545465 A CN202211545465 A CN 202211545465A CN 115827020 A CN115827020 A CN 115827020A
Authority
CN
China
Prior art keywords
equipment
upgraded
upgrading
version
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
Application number
CN202211545465.6A
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.)
Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Original Assignee
Guangzhou Tongze Kangwei Intelligent 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 Guangzhou Tongze Kangwei Intelligent Technology Co ltd filed Critical Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority to CN202211545465.6A priority Critical patent/CN115827020A/en
Publication of CN115827020A publication Critical patent/CN115827020A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for upgrading test of equipment, wherein the upgrading condition is judged whether to be met or not by acquiring equipment information of each equipment, if so, the equipment is set as equipment to be upgraded, equipment identifications to be upgraded of all the equipment to be upgraded are integrated, and an equipment identification set to be upgraded is generated; and sending an upgrade package to the equipment to be upgraded corresponding to any equipment identifier to be upgraded in the equipment identifier set to be upgraded so as to upgrade the equipment according to the upgrade package, updating the equipment identifier set to be upgraded according to the equipment upgrade result after receiving the equipment upgrade result corresponding to the equipment to be upgraded, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, thereby generating an equipment upgrade test result set. Compared with the prior art, the technical scheme provided by the invention can reduce the confirmation of the manual equipment upgrading condition and improve the equipment upgrading efficiency.

Description

Upgrading test method, device, equipment and storage medium of equipment
Technical Field
The present invention relates to the field of device upgrade testing technologies, and in particular, to a device upgrade testing method, apparatus, device, and storage medium.
Background
As the operating systems of devices are continuously developed, the versions of the device systems used today may find problems over time, and at this point, the devices are upgraded to fix the problems.
In the prior art, when a plurality of devices are upgraded, the upgrading conditions of the devices are generally detected one by one, when the devices meet the upgrading conditions, the devices are upgraded, and the low efficiency of equipment upgrading is easily caused in a multi-device scene; similarly, in order to improve the equipment upgrading efficiency in the prior art, batch upgrading processing is performed by batching the equipment, but in the batch upgrading process, the situation that the equipment does not conform to the upgrading packet may exist, so that the equipment upgrading fails, and in order to avoid the problem, a user is also required to detect the version of the equipment subjected to the upgrading processing, judge whether the upgrading succeeds or not, and upgrade the equipment subjected to the upgrading failure again.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the equipment upgrading test method, the device, the equipment and the storage medium are provided, so that the manual confirmation of the equipment upgrading condition can be reduced, and the equipment upgrading efficiency is improved.
In order to solve the above technical problem, the present invention provides an upgrade testing method for a device, including:
acquiring equipment information corresponding to each piece of equipment, judging whether the equipment meets an upgrading condition according to the equipment information, if so, setting the equipment as equipment to be upgraded, integrating equipment identifications to be upgraded corresponding to all the equipment to be upgraded, and generating an equipment identification set to be upgraded;
selecting any equipment identifier to be upgraded in the equipment identifier set to be upgraded, and sending an upgrade packet to the equipment to be upgraded corresponding to the equipment identifier to be upgraded so that the equipment to be upgraded performs equipment upgrade according to the upgrade packet;
after receiving an equipment upgrading result corresponding to the equipment to be upgraded, updating the equipment identifier set to be upgraded according to the equipment upgrading result, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, thereby generating an equipment upgrading test result set.
In a possible implementation manner, acquiring device information of all devices, and determining whether the devices meet an upgrade condition according to the device information specifically includes:
acquiring equipment information corresponding to all equipment, wherein the equipment information comprises a first version number and a first version name of a current version of the equipment;
acquiring a second version number and a second version name of the latest version of the equipment corresponding to each equipment from the server;
comparing the first version number with the second version number, if the first version number is the same as the second version number, determining that the equipment does not meet the upgrading condition, if the first version number is not the same as the second version number, comparing the first version name with the second version name, acquiring the version modification amplitude grade between the first version name and the second version name, comparing the version modification amplitude grade with a preset grade threshold, if the version modification amplitude grade is greater than or equal to the preset grade threshold, determining that the equipment meets the upgrading condition, and if not, determining that the equipment does not meet the upgrading condition.
In a possible implementation manner, obtaining a version modification amplitude level between the first version number and the second version number specifically includes:
dividing the first version name and the second version name into three number sections respectively, wherein the three number sections comprise a first number section, a second number section and a third number section;
comparing the first version name with a first number section corresponding to a second version name, if the first number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a third grade, if the first number section is the same, comparing the first version name with a second number section corresponding to the second version name, if the second number section is the same, determining that the version modification amplitude grade between the first version name and the second version name is a first grade, and if the second number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a second grade.
In a possible implementation manner, sending an upgrade package to the device to be upgraded corresponding to any one of the device to be upgraded identifiers, so that the device to be upgraded performs device upgrade according to the upgrade package, specifically including:
obtaining an upgrade package according to the latest version of the equipment corresponding to the equipment to be upgraded, and sending the upgrade package to the corresponding equipment to be upgraded so that the equipment to be upgraded receives the upgrade package;
after the equipment to be upgraded receives the upgrade package, acquiring the latest version number corresponding to the latest version of the equipment in the upgrade package, acquiring a second version number of the latest version of the equipment corresponding to the equipment to be upgraded, and comparing the latest version number with the second version number;
when the latest version number is the same as the second version number, equipment upgrading processing is carried out on the equipment to be upgraded according to the upgrading packet, and an equipment upgrading result of the equipment to be upgraded is output;
and when the latest version number is different from the second version number, discarding the upgrade package, and waiting for receiving the next upgrade package again until the latest version number is the same as the second version number.
In a possible implementation manner, after receiving an equipment upgrade result corresponding to the equipment to be upgraded, updating the equipment identifier set to be upgraded according to the equipment upgrade result, specifically including:
receiving an equipment upgrading result corresponding to the equipment to be upgraded, setting the equipment to be upgraded as upgrading failure equipment when the equipment upgrading result is upgrading failure, and deleting an equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
storing the upgrading failure equipment in a preset upgrading failure equipment set;
when the equipment upgrading result is successful upgrading, setting the equipment to be upgraded as successfully upgraded equipment, and deleting the equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
and storing the successfully upgraded equipment in a preset successfully upgraded equipment set.
In a possible implementation manner, after generating the device upgrade test result set, the method further includes:
and carrying out upgrading pressure cycle test on each upgrading successful device in the upgrading successful device set to obtain an upgrading pressure value corresponding to each upgrading successful device.
The invention also provides an upgrade test device of the equipment, which comprises: the device comprises an upgrading condition judging module, a device upgrading module and a device upgrading test result obtaining module;
the upgrading condition judging module is used for acquiring equipment information corresponding to each piece of equipment, judging whether the equipment meets upgrading conditions according to the equipment information, if so, setting the equipment as equipment to be upgraded, integrating equipment identifiers corresponding to all the equipment to be upgraded, and generating an equipment identifier set to be upgraded;
the equipment upgrading module is used for selecting any equipment identifier to be upgraded in the equipment identifier set to be upgraded and sending an upgrading packet to the equipment to be upgraded corresponding to the equipment identifier to be upgraded so that the equipment to be upgraded is upgraded according to the upgrading packet;
the equipment upgrading test result acquisition module is used for updating the equipment identifier set to be upgraded according to the equipment upgrading result after receiving the equipment upgrading result corresponding to the equipment to be upgraded, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, so as to generate an equipment upgrading test result set.
In a possible implementation manner, the upgrade condition determining module is configured to obtain device information of all devices, and determine whether the device meets an upgrade condition according to the device information, and specifically includes:
acquiring device information corresponding to all devices, wherein the device information comprises a first version number and a first version name of a current version of the device;
acquiring a second version number and a second version name of the latest version of the equipment corresponding to each equipment from the server;
comparing the first version number with the second version number, if the first version number is the same as the second version number, determining that the equipment does not meet the upgrading condition, if the first version number is not the same as the second version number, comparing the first version name with the second version name, acquiring the version modification amplitude grade between the first version name and the second version name, comparing the version modification amplitude grade with a preset grade threshold, if the version modification amplitude grade is greater than or equal to the preset grade threshold, determining that the equipment meets the upgrading condition, and if not, determining that the equipment does not meet the upgrading condition.
In a possible implementation manner, the upgrade condition determining module is configured to obtain a version modification amplitude level between the first version number and the second version number, and specifically includes:
dividing the first version name and the second version name into three number sections respectively, wherein the three number sections comprise a first number section, a second number section and a third number section;
comparing the first version name with a first number section corresponding to the second version name, if the first number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a third grade, if the first number section is the same, comparing the first version name with a second number section corresponding to the second version name, if the second number section is the same, determining that the version modification amplitude grade between the first version name and the second version name is a first grade, and if the second number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a second grade.
In a possible implementation manner, the device upgrading module is configured to send an upgrade package to a device to be upgraded corresponding to any one of the device identifiers to be upgraded, so that the device to be upgraded performs device upgrading according to the upgrade package, and specifically includes:
obtaining an upgrade package according to the latest version of the equipment corresponding to the equipment to be upgraded, and sending the upgrade package to the corresponding equipment to be upgraded so that the equipment to be upgraded receives the upgrade package;
after the equipment to be upgraded receives the upgrade package, acquiring the latest version number corresponding to the latest version of the equipment in the upgrade package, acquiring a second version number of the latest version of the equipment corresponding to the equipment to be upgraded, and comparing the latest version number with the second version number;
when the latest version number is the same as the second version number, equipment upgrading processing is carried out on the equipment to be upgraded according to the upgrading packet, and an equipment upgrading result of the equipment to be upgraded is output;
and when the latest version number is different from the second version number, discarding the upgrade package, and waiting for receiving the next upgrade package again until the latest version number is the same as the second version number.
In a possible implementation manner, the device upgrade test result obtaining module is configured to update the device identifier set to be upgraded according to the device upgrade result after receiving the device upgrade result corresponding to the device to be upgraded, and specifically includes:
receiving an equipment upgrading result corresponding to the equipment to be upgraded, setting the equipment to be upgraded as upgrading failure equipment when the equipment upgrading result is upgrading failure, and deleting an equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
storing the upgrading failure equipment in a preset upgrading failure equipment set;
when the equipment upgrading result is successful upgrading, setting the equipment to be upgraded as successfully upgraded equipment, and deleting the equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
and storing the successfully upgraded equipment in a preset successfully upgraded equipment set.
In a possible implementation manner, the method for testing upgrade of a device provided by the present invention further includes: upgrading the pressure cycle test module;
the upgrading pressure cycle test module is used for carrying out upgrading pressure cycle test on each upgrading successful device in the upgrading successful device set to obtain an upgrading pressure value corresponding to each upgrading successful device.
The invention provides a terminal device, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to realize the upgrading test method of the device.
The invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for upgrading and testing the apparatus as described in any one of the above items.
Compared with the prior art, the upgrade test method, the upgrade test device, the upgrade test equipment and the storage medium have the following beneficial effects:
judging whether an upgrading condition is met or not by acquiring equipment information corresponding to each piece of equipment, if so, setting the equipment as equipment to be upgraded, integrating equipment identifiers to be upgraded corresponding to all the equipment to be upgraded, and generating an equipment identifier set to be upgraded; and sending an upgrade package to the equipment to be upgraded corresponding to any equipment identifier to be upgraded in the selected equipment identifier set to be upgraded so as to upgrade the equipment to be upgraded according to the upgrade package, updating the equipment identifier set to be upgraded according to the equipment upgrade result after receiving the equipment upgrade result corresponding to the equipment to be upgraded, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, thereby generating an equipment upgrade test result set. Compared with the prior art, the technical scheme provided by the invention integrates the equipment meeting the upgrading conditions, so that the subsequent equipment can be directly upgraded based on the integrated equipment, and the equipment identifier set to be upgraded is updated according to the upgrading condition of the equipment after the equipment is upgraded, thereby avoiding the manual check and confirmation of the upgrading condition of the equipment one by one and improving the upgrading efficiency of the equipment.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for upgrading a device provided by the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an upgrade test apparatus for a device provided in the present invention;
fig. 3 is a schematic structural diagram of an upgrade testing apparatus of a device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Referring to fig. 1, fig. 1 is a schematic flowchart of an embodiment of an upgrade testing method for a device provided by the present invention, and as shown in fig. 1, the method includes steps 101 to 103, which are specifically as follows:
step 101: acquiring equipment information corresponding to each piece of equipment, judging whether the equipment meets an upgrading condition according to the equipment information, if so, setting the equipment as equipment to be upgraded, integrating equipment identifications to be upgraded corresponding to all the equipment to be upgraded, and generating an equipment identification set to be upgraded.
In an embodiment, device information corresponding to each device is obtained, where the device information includes a first version number and a first version name of a current version of the device, and each device is an active device.
Preferably, the activity degrees of all the devices are obtained, wherein the activity degrees are determined according to the frequency used by the user; and selecting equipment needing to acquire equipment information according to the activity degree, namely acquiring equipment information corresponding to each equipment, wherein each equipment is equipment with high activity degree, and similarly, equipment with low activity degree can be selected based on user requirements.
In one embodiment, the version number is an Integer type value, the version name is a String type value, and the version number is a valid value that is set to facilitate the program developer running and maintaining the application. The version name is a description of one version, which may be said to be an explanation and description of the version number, wherein the general format of the version name may be: major.
In an embodiment, the second version number and the second version name of the latest version of the device corresponding to each device are obtained from the server.
In an embodiment, the first version number is compared with the second version number, if the first version number is the same as the second version number, the device is determined not to satisfy the upgrade condition, and if the first version number is not the same as the second version number, the device version corresponding to the device is determined to have an update.
Specifically, since the version number may be used to determine whether the version of the device is upgradable, the version number is increased by one each time the version of the device is upgraded. If the second version number on the server is the same as the first version number of the current version of the equipment, the current version of the equipment is proved to be not updated, and the upgrading condition is not met; and if the second version number on the acquisition server is higher than the first version number of the current version of the equipment, the current version of the equipment is proved to be updated.
In one embodiment, since the version name may be used to show the magnitude of the version change, e.g., changing from 2.0.1 to 2.0.2 may only modify a small error in the program, may add some new functions if changing to 2.1.0, and may have a large magnitude modification if changing to 3.0.0, e.g., the addition of many UI interfaces or functions. Therefore, in this embodiment, when the first version number is different from the second version number, the first version name is compared with the second version name, and the version revision amplitude level between the first version name and the second version name is obtained.
Specifically, the first version number is compared with the second version number, if the first version number is different from the second version number, the first version name is compared with the second version name, the version modification amplitude level between the first version name and the second version name is obtained, the version modification amplitude level is compared with a preset level threshold, if the version modification amplitude level is greater than or equal to the preset level threshold, the device is considered to meet the upgrading condition, and if the version modification amplitude level is not greater than or equal to the preset level threshold, the device is considered to not meet the upgrading condition.
Preferably, the preset level threshold is a first level, a second level and a third level, wherein the third level is greater than the second level, and the second level is greater than the first level.
Preferentially, the version modification amplitude level is compared with a preset level threshold value to judge whether the upgrading condition is met, the upgrading condition can be judged to be met according to the amplitude of the version change based on the user requirement, and the method is different from the prior art that the current version of the equipment is upgraded as long as the version of the equipment is changed. Preferably, when the preset level threshold sets the first level, only the device version is changed by default, i.e. the device version is updated.
In an embodiment, the obtaining of the version modification amplitude level between the first version name and the second version name specifically includes: dividing the first version name and the second version name into three number sections respectively, wherein the three number sections comprise a first number section, a second number section and a third number section; comparing the first version name with a first number section corresponding to a second version name, if the first number section is different, directly considering that the version modification amplitude grade between the first version name and the second version name is a third grade, if the first number section is the same, comparing the first version name with a second number section corresponding to the second version name, if the second number section is the same, directly considering that the version modification amplitude grade between the first version name and the second version name is a first grade, and if the second number section is different, directly considering that the version modification amplitude grade between the first version name and the second version name is a second grade.
Preferably, since the general format of the version name may be: point, wherein, set major to segment number one, set minor to segment number two, set point to segment number three. If the version name is 1.2.3, where 1 is the first segment, 2 is the second segment, and 3 is the third segment.
In an embodiment, a device meeting an upgrade condition is set as a device to be upgraded, and a device identifier to be upgraded of each device to be upgraded is obtained, where the device identifier to be upgraded may be generated by a UUID, and the UUID refers to a unique data identifier generated by an algorithm.
In an embodiment, the device identifiers to be upgraded corresponding to all the devices to be upgraded are integrated to generate a device identifier set to be upgraded, so that the situation of the current device to be upgraded can be clearly known subsequently and directly based on the device identifier set to be upgraded.
Step 102: and selecting any equipment identifier to be upgraded in the equipment identifier set to be upgraded, and sending an upgrade packet to the equipment to be upgraded corresponding to the equipment identifier to be upgraded so that the equipment to be upgraded performs equipment upgrade according to the upgrade packet.
In an embodiment, after any one of the identifiers of the device to be upgraded in the set of identifiers of the device to be upgraded is selected, the device to be upgraded corresponding to the identifier of the device to be upgraded is obtained based on the uniqueness of the identifier of the device to be upgraded.
In one embodiment, based on a device to be upgraded corresponding to a selected device identifier to be upgraded, polling version information in a server to obtain a latest version of the device corresponding to the device to be upgraded, downloading relevant data of the latest version of the device, generating an upgrade package corresponding to the device to be upgraded, and sending the upgrade package to the corresponding device to be upgraded; the upgrade package comprises the latest version number of the latest version of the equipment, the latest version name and relevant program data.
In one embodiment, after the device to be upgraded receives the upgrade package, it is further required to determine whether the received upgrade package is correct, so as to avoid upgrade failure due to incorrect reception of the upgrade package, specifically, obtain a latest version number corresponding to a latest version of the device in the upgrade package, obtain a second version number of the latest version of the device corresponding to the device to be upgraded, and compare the latest version number with the second version number; when the latest version number is the same as the second version number, the upgrade package is considered to be received correctly, equipment upgrade processing is carried out on the equipment to be upgraded according to the upgrade package, and an equipment upgrade result of the equipment to be upgraded is output; and when the latest version number is different from the second version number, the upgrade package is considered to be received wrongly, the upgrade package is abandoned, the next upgrade package is waited to be received again until the upgrade package is received correctly, equipment upgrading processing is carried out on the equipment to be upgraded according to the upgrade package, and an equipment upgrading result of the equipment to be upgraded is output.
Step 103: after receiving an equipment upgrading result corresponding to the equipment to be upgraded, updating the equipment identifier set to be upgraded according to the equipment upgrading result, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, thereby generating an equipment upgrading test result set.
In an embodiment, an equipment upgrading result corresponding to the equipment to be upgraded is received, where the equipment upgrading result includes upgrading failure and upgrading success.
In one embodiment, when the device upgrading result is upgrading failure, setting the device to be upgraded as upgrading failure device, and deleting the device identifier to be upgraded corresponding to the device to be upgraded from the device identifier set to be upgraded to obtain an updated device identifier set to be upgraded; and meanwhile, the upgrading failure equipment is stored in a preset upgrading failure equipment set, and the number of the upgrading failure equipment in the upgrading failure equipment set is recorded.
In an embodiment, when the device upgrading result is successful upgrading, the device to be upgraded is set as a successful upgrading device, the device identifier to be upgraded corresponding to the device to be upgraded is deleted from the device identifier set to be upgraded, an updated device identifier set to be upgraded is obtained, the device to be upgraded is stored in a preset successful upgrading device set, and the number of devices in the successful upgrading device set to be upgraded is recorded.
In an embodiment, as for the updated device identifier set to be upgraded, any one device identifier to be upgraded is reselected, and the device to be upgraded corresponding to the device identifier to be upgraded is subjected to the upgrading processing until all the device identifiers to be upgraded in the device identifier set to be upgraded are selected, and at this time, all the devices to be upgraded are considered to be completely upgraded.
In an embodiment, the generated device upgrade test result set includes an upgrade successful device set and an upgrade failed device set, and a user can intuitively obtain the upgrade test results and corresponding quantity information of all devices by searching the device upgrade test result set.
In an embodiment, after the device upgrade test result set is obtained, an upgrade pressure cycle test is further performed on each successfully upgraded device set in the device upgrade test result set, so as to obtain an upgrade pressure value corresponding to each successfully upgraded device.
Specifically, any upgrade success device in the upgrade success device set is selected, a version of the any upgrade success device is rolled back, so that the device version corresponding to the any upgrade success device is restored to the device version before upgrading, the upgrade is performed on the successfully upgraded device in a circulating mode based on the upgrade package corresponding to the successfully upgraded device, and the upgrade pressure value corresponding to the successfully upgraded device is obtained until the upgrade failure of the successfully upgraded device is detected, wherein the upgrade pressure value is the same as the cycle upgrade frequency of the device.
In an embodiment, until all the upgrade successful devices in the upgrade successful device set are selected, the upgrade pressure values corresponding to all the upgrade successful devices are obtained.
In an embodiment, when it is detected that the upgrading of the successfully upgraded device fails, a log corresponding to the successfully upgraded device is further acquired, the reason for the upgrading failure is located from the log, and the reason for the upgrading failure is recorded, so that the subsequent user can conveniently check the reason.
Example 2
Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of an apparatus for upgrading and testing a device provided by the present invention, and as shown in fig. 2, the apparatus includes an upgrade condition determining module 201, a device upgrading module 202, and a device upgrade test result obtaining module 203, which are specifically as follows:
the upgrade condition determining module 201 is configured to obtain device information corresponding to each device, determine whether the device satisfies an upgrade condition according to the device information, set the device as a device to be upgraded if the device satisfies the upgrade condition, integrate identifiers of the devices to be upgraded corresponding to all the devices to be upgraded, and generate a device identifier set to be upgraded.
The device upgrading module 202 is configured to select any one of the device identifiers to be upgraded in the device identifier set to be upgraded, and send an upgrading packet to the device to be upgraded corresponding to the any one of the device identifiers to be upgraded, so that the device to be upgraded performs device upgrading according to the upgrading packet.
The device upgrade test result obtaining module 203 is configured to, after receiving a device upgrade result corresponding to the device to be upgraded, update the device identifier set to be upgraded according to the device upgrade result, and reselect any one of the updated device identifiers in the updated device identifier set to be upgraded until all the device identifiers in the updated device identifier set to be upgraded have been selected, so as to generate a device upgrade test result set.
In an embodiment, the upgrade condition determining module 201 is configured to obtain device information of all devices, and determine whether the device meets an upgrade condition according to the device information, and specifically includes: acquiring device information corresponding to all devices, wherein the device information comprises a first version number and a first version name of a current version of the device; acquiring a second version number and a second version name of the latest version of equipment corresponding to each piece of equipment from a server; comparing the first version number with the second version number, if the first version number is the same as the second version number, determining that the equipment does not meet the upgrading condition, if the first version number is not the same as the second version number, comparing the first version name with the second version name, acquiring the version modification amplitude grade between the first version name and the second version name, comparing the version modification amplitude grade with a preset grade threshold, if the version modification amplitude grade is greater than or equal to the preset grade threshold, determining that the equipment meets the upgrading condition, and if not, determining that the equipment does not meet the upgrading condition.
In an embodiment, the upgrade condition determining module 201 is configured to obtain a version modification amplitude level between the first version number and the second version number, and specifically includes: dividing the first version name and the second version name into three number sections respectively, wherein the three number sections comprise a first number section, a second number section and a third number section; comparing the first version name with a first number section corresponding to a second version name, if the first number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a third grade, if the first number section is the same, comparing the first version name with a second number section corresponding to the second version name, if the second number section is the same, determining that the version modification amplitude grade between the first version name and the second version name is a first grade, and if the second number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a second grade.
In an embodiment, the device upgrading module 202 is configured to send an upgrade package to a device to be upgraded corresponding to any identifier of the device to be upgraded, so that the device to be upgraded performs device upgrading according to the upgrade package, and specifically includes: obtaining an upgrade package according to the latest version of the equipment corresponding to the equipment to be upgraded, and sending the upgrade package to the corresponding equipment to be upgraded so that the equipment to be upgraded receives the upgrade package; after the equipment to be upgraded receives the upgrade package, acquiring the latest version number corresponding to the latest version of the equipment in the upgrade package, acquiring a second version number of the latest version of the equipment corresponding to the equipment to be upgraded, and comparing the latest version number with the second version number; when the latest version number is the same as the second version number, equipment upgrading processing is carried out on the equipment to be upgraded according to the upgrading packet, and an equipment upgrading result of the equipment to be upgraded is output; and when the latest version number is different from the second version number, discarding the upgrade package, and waiting for receiving the next upgrade package again until the latest version number is the same as the second version number.
In an embodiment, the device upgrade test result obtaining module 203 is configured to, after receiving a device upgrade result corresponding to the device to be upgraded, update the device identifier set to be upgraded according to the device upgrade result, and specifically includes: receiving an equipment upgrading result corresponding to the equipment to be upgraded, setting the equipment to be upgraded as upgrading failure equipment when the equipment upgrading result is upgrading failure, and deleting an equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded; storing the upgrading failure equipment in a preset upgrading failure equipment set; when the equipment upgrading result is successful upgrading, setting the equipment to be upgraded as successfully upgraded equipment, and deleting the equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded; and storing the successfully upgraded equipment in a preset successfully upgraded equipment set.
In an embodiment, the upgrade testing apparatus for a device provided in this embodiment further includes: an upgrade pressure cycle test module 204, as shown in fig. 3, fig. 3 is a schematic structural diagram of another embodiment of an upgrade test apparatus of a device provided in the present invention.
In an embodiment, the upgrade pressure cycle test module is configured to perform an upgrade pressure cycle test on each upgrade success device in the upgrade success device set, so as to obtain an upgrade pressure value corresponding to each upgrade success device.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
It should be noted that the embodiment of the upgrade testing apparatus of the above-mentioned device is merely illustrative, where the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical units, that is, may be located in one place, or may also be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
On the basis of the foregoing embodiment of the method for upgrading and testing a device, another embodiment of the present invention provides an upgrading and testing terminal device of a device, where the upgrading and testing terminal device of the device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the method for upgrading and testing a device according to any one of the embodiments of the present invention is implemented.
Illustratively, the computer program may be partitioned in this embodiment into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the upgrading test terminal device of the device.
The upgrading test terminal equipment of the equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer and a cloud server. The upgrade test terminal device of the device may include, but is not limited to, a processor, a memory.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, said processor being the control center for the upgrade test terminal equipment of the device, the various parts of the upgrade test terminal equipment of the entire device being connected by various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
On the basis of the embodiment of the upgrade test method for the device described above, another embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, the device on which the storage medium is located is controlled to execute the upgrade test method for the device according to any one of the embodiments of the present invention.
In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, and so on. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In summary, according to the method, the apparatus, the device and the storage medium for testing the upgrade of the device provided by the present invention, it is determined whether the upgrade condition is satisfied by obtaining the device information corresponding to each device, if yes, the device is set as a device to be upgraded, the device identifiers corresponding to all the devices to be upgraded are integrated, and a device identifier set to be upgraded is generated; and sending an upgrade package to the equipment to be upgraded corresponding to any equipment to be upgraded in the selected equipment to be upgraded identifier set so as to upgrade the equipment according to the upgrade package, updating the equipment to be upgraded identifier set according to the equipment upgrade result after receiving the equipment upgrade result corresponding to the equipment to be upgraded, and reselecting any equipment to be upgraded in the updated equipment to be upgraded identifier set until all the equipment to be upgraded in the updated equipment to be upgraded identifier set are selected, thereby generating an equipment upgrade test result set. Compared with the prior art, the technical scheme provided by the invention can reduce the confirmation of the manual equipment upgrading condition and improve the equipment upgrading efficiency.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and substitutions can be made without departing from the technical principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.

Claims (10)

1. An upgrade test method for a device, comprising:
acquiring equipment information corresponding to each piece of equipment, judging whether the equipment meets an upgrading condition according to the equipment information, if so, setting the equipment as equipment to be upgraded, integrating equipment identifications to be upgraded corresponding to all the equipment to be upgraded, and generating an equipment identification set to be upgraded;
selecting any equipment identifier to be upgraded in the equipment identifier set to be upgraded, and sending an upgrade packet to the equipment to be upgraded corresponding to the equipment identifier to be upgraded so that the equipment to be upgraded is upgraded according to the upgrade packet;
after receiving an equipment upgrading result corresponding to the equipment to be upgraded, updating the equipment identifier set to be upgraded according to the equipment upgrading result, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, thereby generating an equipment upgrading test result set.
2. The method for upgrading test of equipment according to claim 1, wherein the step of obtaining equipment information of all the equipment and judging whether the equipment meets an upgrading condition according to the equipment information includes:
acquiring equipment information corresponding to all equipment, wherein the equipment information comprises a first version number and a first version name of a current version of the equipment;
acquiring a second version number and a second version name of the latest version of the equipment corresponding to each equipment from the server;
comparing the first version number with the second version number, if the first version number is the same as the second version number, determining that the equipment does not meet the upgrading condition, if the first version number is not the same as the second version number, comparing the first version name with the second version name, acquiring the version modification amplitude grade between the first version name and the second version name, comparing the version modification amplitude grade with a preset grade threshold, if the version modification amplitude grade is greater than or equal to the preset grade threshold, determining that the equipment meets the upgrading condition, and if not, determining that the equipment does not meet the upgrading condition.
3. The method for testing upgrade of a device according to claim 2, wherein obtaining a version revision amplitude level between the first version number and the second version number specifically includes:
dividing the first version name and the second version name into three number sections respectively, wherein the three number sections comprise a first number section, a second number section and a third number section;
comparing the first version name with a first number section corresponding to a second version name, if the first number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a third grade, if the first number section is the same, comparing the first version name with a second number section corresponding to the second version name, if the second number section is the same, determining that the version modification amplitude grade between the first version name and the second version name is a first grade, and if the second number section is different, determining that the version modification amplitude grade between the first version name and the second version name is a second grade.
4. The method for testing equipment upgrading according to claim 2, wherein an upgrade package is sent to the equipment to be upgraded corresponding to any one of the equipment to be upgraded identifiers, so that the equipment to be upgraded performs equipment upgrading according to the upgrade package, specifically comprising:
obtaining an upgrade package according to the latest version of the equipment corresponding to the equipment to be upgraded, and sending the upgrade package to the corresponding equipment to be upgraded so that the equipment to be upgraded receives the upgrade package;
after the equipment to be upgraded receives the upgrade package, acquiring the latest version number corresponding to the latest version of the equipment in the upgrade package, acquiring a second version number of the latest version of the equipment corresponding to the equipment to be upgraded, and comparing the latest version number with the second version number;
when the latest version number is the same as the second version number, equipment upgrading processing is carried out on the equipment to be upgraded according to the upgrading packet, and an equipment upgrading result of the equipment to be upgraded is output;
and when the latest version number is different from the second version number, discarding the upgrade package, and waiting for receiving the next upgrade package again until the latest version number is the same as the second version number.
5. The method for upgrading testing of equipment according to claim 1, wherein after receiving an equipment upgrading result corresponding to the equipment to be upgraded, updating the equipment identifier set to be upgraded according to the equipment upgrading result, specifically comprising:
receiving an equipment upgrading result corresponding to the equipment to be upgraded, setting the equipment to be upgraded as upgrading failure equipment when the equipment upgrading result is upgrading failure, and deleting an equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
storing the upgrading failure equipment in a preset upgrading failure equipment set;
when the equipment upgrading result is successful upgrading, setting the equipment to be upgraded as successfully upgraded equipment, and deleting the equipment identifier to be upgraded corresponding to the equipment to be upgraded from the equipment identifier set to be upgraded to obtain an updated equipment identifier set to be upgraded;
and storing the successfully upgraded equipment in a preset successfully upgraded equipment set.
6. The method for upgrading and testing the device according to claim 5, wherein after generating the device upgrading and testing result set, the method further comprises:
and carrying out upgrading pressure cycle test on each upgrading successful device in the upgrading successful device set to obtain an upgrading pressure value corresponding to each upgrading successful device.
7. An upgrade test apparatus for a device, comprising: the device comprises an upgrading condition judging module, a device upgrading module and a device upgrading test result obtaining module;
the upgrading condition judging module is used for acquiring equipment information corresponding to each piece of equipment, judging whether the equipment meets upgrading conditions according to the equipment information, if so, setting the equipment as equipment to be upgraded, integrating equipment identifiers corresponding to all the equipment to be upgraded, and generating an equipment identifier set to be upgraded;
the equipment upgrading module is used for selecting any equipment identifier to be upgraded in the equipment identifier set to be upgraded and sending an upgrading packet to the equipment to be upgraded corresponding to the equipment identifier to be upgraded so that the equipment to be upgraded is upgraded according to the upgrading packet;
the equipment upgrading test result acquisition module is used for updating the equipment identifier set to be upgraded according to the equipment upgrading result after receiving the equipment upgrading result corresponding to the equipment to be upgraded, and reselecting any equipment identifier to be upgraded in the updated equipment identifier set to be upgraded until all the equipment identifiers to be upgraded in the equipment identifier set to be upgraded are selected, so as to generate an equipment upgrading test result set.
8. The apparatus for upgrading testing of devices according to claim 7, wherein the upgrading condition determining module is configured to obtain device information of all devices, and determine whether the device satisfies upgrading conditions according to the device information, and specifically includes:
acquiring device information corresponding to all devices, wherein the device information comprises a first version number and a first version name of a current version of the device;
acquiring a second version number and a second version name of the latest version of the equipment corresponding to each equipment from the server;
comparing the first version number with the second version number, if the first version number is the same as the second version number, determining that the equipment does not meet the upgrading condition, if the first version number is not the same as the second version number, comparing the first version name with the second version name, acquiring the version modification amplitude grade between the first version name and the second version name, comparing the version modification amplitude grade with a preset grade threshold, if the version modification amplitude grade is greater than or equal to the preset grade threshold, determining that the equipment meets the upgrading condition, and if not, determining that the equipment does not meet the upgrading condition.
9. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a method of upgrade testing of a device according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform a method for upgrade testing of an apparatus according to any one of claims 1 to 6.
CN202211545465.6A 2022-11-30 2022-11-30 Upgrading test method, device, equipment and storage medium of equipment Pending CN115827020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211545465.6A CN115827020A (en) 2022-11-30 2022-11-30 Upgrading test method, device, equipment and storage medium of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211545465.6A CN115827020A (en) 2022-11-30 2022-11-30 Upgrading test method, device, equipment and storage medium of equipment

Publications (1)

Publication Number Publication Date
CN115827020A true CN115827020A (en) 2023-03-21

Family

ID=85545026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211545465.6A Pending CN115827020A (en) 2022-11-30 2022-11-30 Upgrading test method, device, equipment and storage medium of equipment

Country Status (1)

Country Link
CN (1) CN115827020A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943532A (en) * 2017-11-06 2018-04-20 北京潘达互娱科技有限公司 Live software upgrade package dissemination method, device, electronic equipment and storage medium
CN109189431A (en) * 2018-09-18 2019-01-11 郑州云海信息技术有限公司 A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing
CN111552502A (en) * 2020-04-21 2020-08-18 海尔优家智能科技(北京)有限公司 NB module upgrading method and device of intelligent equipment
CN112486365A (en) * 2020-11-20 2021-03-12 深圳传音控股股份有限公司 Notification event updating method, terminal device and storage medium
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943532A (en) * 2017-11-06 2018-04-20 北京潘达互娱科技有限公司 Live software upgrade package dissemination method, device, electronic equipment and storage medium
CN109189431A (en) * 2018-09-18 2019-01-11 郑州云海信息技术有限公司 A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing
CN111552502A (en) * 2020-04-21 2020-08-18 海尔优家智能科技(北京)有限公司 NB module upgrading method and device of intelligent equipment
CN112486365A (en) * 2020-11-20 2021-03-12 深圳传音控股股份有限公司 Notification event updating method, terminal device and storage medium
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment
CN114978902A (en) * 2022-05-18 2022-08-30 阿里云计算有限公司 Information processing method, apparatus, device, storage medium, and program product

Similar Documents

Publication Publication Date Title
CN109358882B (en) Method and device for upgrading firmware of television terminal
CN109814524B (en) Vehicle diagnosis method, device and system
WO2019140656A1 (en) Firmware upgrade method and apparatus, electronic device and control device
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
CN104065695A (en) Software update method, server, user end and system
WO2008007922A1 (en) Program upgrade system and method for ota-capable mobile terminal
CN110474977B (en) Firmware upgrading method and system for intelligent door lock and intelligent door lock
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN110750286A (en) Management method, device, system, equipment and medium for upgrading Mbn through OTA
CN112995806A (en) Method, device, system and storage medium for upgrading optical network unit
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN113542022A (en) Networking management method and device of networking system, terminal equipment and storage medium
CN111538542B (en) System configuration method and related device
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN113396391B (en) Application program starting method and device, electronic equipment and storage medium
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN115827020A (en) Upgrading test method, device, equipment and storage medium of equipment
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN112217885A (en) Dynamic management method, device, equipment and storage medium for components
CN110427199B (en) Method, equipment and readable medium for upgrading BMC and BIOS in matching manner
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
CN110825406A (en) Software upgrading method and related equipment
CN112379943A (en) Plug-in application method and device of Electron application program and storage medium
CN112835597A (en) Upgrading method, device, server, terminal and storage medium
CN110688138A (en) Multi-split program upgrading method and device, multi-split system equipment and 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Applicant after: Guangzhou Tongze Kangwei Technology Co.,Ltd.

Address before: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Applicant before: Guangzhou Tongze Kangwei Intelligent Technology Co.,Ltd.