CN113495750A - Upgrade detection method and device for equipment and server - Google Patents

Upgrade detection method and device for equipment and server Download PDF

Info

Publication number
CN113495750A
CN113495750A CN202010249292.8A CN202010249292A CN113495750A CN 113495750 A CN113495750 A CN 113495750A CN 202010249292 A CN202010249292 A CN 202010249292A CN 113495750 A CN113495750 A CN 113495750A
Authority
CN
China
Prior art keywords
upgrading
upgrade
block chain
task
internet
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.)
Granted
Application number
CN202010249292.8A
Other languages
Chinese (zh)
Other versions
CN113495750B (en
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.)
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT 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 China Mobile Communications Group Co Ltd, China Mobile IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010249292.8A priority Critical patent/CN113495750B/en
Publication of CN113495750A publication Critical patent/CN113495750A/en
Application granted granted Critical
Publication of CN113495750B publication Critical patent/CN113495750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides an upgrade detection method, an upgrade detection device and a server of equipment, wherein the method comprises the following steps: detecting the upgrading state of an upgrading task of the Internet of things equipment in communication connection with the cloud server; taking the upgrading task with the upgrading state of failing as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain; sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library; and diagnosing the upgrading task of the new Internet of things equipment according to the diagnosis library. The scheme of the invention has high accuracy of upgrading and detecting the equipment, and is convenient for managing, controlling and maintaining the fault equipment.

Description

Upgrade detection method and device for equipment and server
Technical Field
The invention relates to the technical field of Internet of things, in particular to an upgrade detection method and device for equipment and a server.
Background
In order to provide better experience service for users, a manufacturer of the terminal generally performs improvement or bug fixing on a system of the terminal. The method comprises the following steps that after a manufacturer carries out relevant improvement or bug fixing on a system, a system installation package of the latest version is released to a server, so that a terminal can conveniently obtain the system or bug patch of the latest version through the server, corresponding upgrading or fixing processing is carried out on the system of the terminal, after upgrading or fixing is finished, an upgrading result or a fixing result needs to be detected, and at present, whether upgrading is successful is judged.
1) The detection result of whether the upgrade task is successful is inaccurate;
2) the management and control and maintenance of the fault equipment are difficult;
3) remote diagnosis and maintenance cannot be stably and safely carried out.
Disclosure of Invention
The invention aims to provide a method, a device and a server for detecting equipment upgrading. The upgrading detection accuracy of the equipment is high, and the fault equipment is conveniently controlled and maintained.
In order to solve the technical problems, the technical scheme of the invention is as follows:
an upgrade detection method of equipment is applied to a cloud server, and the method comprises the following steps:
detecting the upgrading state of an upgrading task of the Internet of things equipment in communication connection with the cloud server;
taking the upgrading task with the upgrading state of failing as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain;
sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and diagnosing the upgrading task of the new Internet of things equipment according to the diagnosis library.
Optionally, detecting an upgrade status of an upgrade task of the internet of things device connected to the cloud, includes:
if the upgrading state of the upgrading task of the Internet of things equipment is as follows: and generating first prompt information when downloading, finishing downloading or upgrading, wherein the first prompt information is used for prompting that the detection result is in equipment upgrading.
Optionally, detecting an upgrade status of an upgrade task of the internet of things device connected to the cloud, includes:
if the Internet of things equipment is in an idle state, acquiring equipment information of the Internet of things equipment; the device information includes at least one of: device name, vendor and version number;
and detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end according to the equipment information of the Internet of things equipment.
Optionally, detecting, according to the device information of the internet of things device, an upgrade status of an upgrade task of the internet of things device, which is in communication connection with the cloud, includes:
judging whether a firmware packet of the Internet of things equipment is a differential packet;
if the firmware package is a differential package, judging whether the differential package is an initial version before upgrading;
if the differential packet is an initial version before upgrading, judging whether the differential packet is a target version of the upgrading according to a version number in the equipment information, and if the differential packet is the target version, generating second prompt information for prompting that a detection result is successful in upgrading; if the version number is not the target version, generating third prompt information, wherein the third prompt information is used for prompting that the detection result is upgrading failure;
if the differential packet is not the initial version before upgrading, terminating the detection and generating fourth prompt information, wherein the fourth prompt information is used for prompting that the detection result indicates that the equipment is upgraded;
if the firmware package is not a differential package, directly judging whether the firmware package is the target version of the upgrade, if so, generating fifth prompt information, wherein the fifth prompt information is used for prompting that the detection result is that the upgrade is successful.
Optionally, the information of the upgrade task corresponding to the node of each block chain is shared in the block chain communication module to form a diagnostic library, including:
and recording the fault codes of the upgrading tasks corresponding to the nodes of each block chain and the corresponding fault solutions, forming blocks, sharing the blocks in the block chain communication module, and forming a diagnosis library based on the block chain.
Optionally, the diagnosing an upgrade task of the new internet of things device according to the diagnosis library includes:
when a new Internet of things device is detected to have a fault when an upgrading task is executed, acquiring a fault log of each blockchain node corresponding to the shared upgrading task on a diagnosis library through the diagnosis library formed by the blockchain communication module;
according to the first fault code of the upgrading task of the new Internet of things equipment, searching a second fault code which is the same as the first fault code in the diagnosis library;
calling out a corresponding fault log from each block chain node corresponding to the second fault code, and generating a calling link for solving the upgrading task of the new Internet of things equipment according to upgrading task information corresponding to the fault log;
and determining a solution corresponding to the upgrading task according to the calling link, and feeding back the solution to the new Internet of things equipment.
Optionally, the upgrade detection method of the device further includes at least one of the following:
counting the information of the upgrading tasks failing to be upgraded, generating a fault form and outputting the fault form;
counting the information of the upgrade tasks which are successfully upgraded, generating a form which is successfully upgraded, and outputting the form;
and respectively counting the information of the upgrading tasks which fail to be upgraded and the information of the upgrading tasks which succeed to be upgraded, generating the success rate or the fault generation rate of the upgrading tasks and outputting the success rate or the fault generation rate.
The embodiment of the invention also provides an upgrade detection device of equipment, which is applied to a cloud server, and the device comprises:
the detection module is used for detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end;
the block chain communication module is used for taking the upgrading task of which the upgrading state is upgrading failure as a node of a block chain, and sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and the diagnosis module is used for diagnosing the upgrade task of the new Internet of things equipment according to the diagnosis library.
An embodiment of the present invention further provides a cloud server, including: the upgrade detection apparatus of the device as described above.
Embodiments of the present invention also provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method as described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end is detected; taking the upgrading task with the upgrading state of failing as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain; sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library; and diagnosing the upgrading task of the new Internet of things equipment according to the diagnosis library. The method is convenient for managing, controlling and maintaining the fault equipment, can determine the failure reason of the upgrading task, and can perform stable and safe remote diagnosis and upgrading result analysis of maintenance on the failure task.
Drawings
FIG. 1 is a schematic flow diagram of an upgrade detection method of the apparatus of the present invention;
FIG. 2 is a schematic flow chart of a specific upgrade detection method for the apparatus of the present invention;
fig. 3 is a block schematic diagram of an upgrade detection apparatus of the device of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides an upgrade detection method for a device, which is applied to a cloud server, and the method includes:
step 11, detecting the upgrading state of an upgrading task of the Internet of things equipment in communication connection with the cloud server;
step 12, using the upgrade task with the upgrade status of failed as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain;
step 13, sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and step 14, diagnosing the upgrade task of the new Internet of things equipment according to the diagnosis library.
In the embodiment of the invention, the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end is detected; taking the upgrading task with the upgrading state of failing as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain; sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library; and diagnosing the upgrading task of the new Internet of things equipment according to the diagnosis library. The method is convenient for managing, controlling and maintaining the fault equipment, can determine the failure reason of the upgrading task, and can perform stable and safe remote diagnosis and upgrading result analysis of maintenance on the failure task.
In an alternative embodiment of the present invention, step 11 may include:
step 111, if the upgrading state of the upgrading task of the internet of things equipment is as follows: and generating first prompt information when downloading, finishing downloading or upgrading, wherein the first prompt information is used for prompting that the detection result is in equipment upgrading.
In an alternative embodiment of the present invention, step 11 may include:
step 112, if the internet of things equipment is in an idle state, acquiring equipment information of the internet of things equipment; the device information includes at least one of: device name, vendor and version number;
step 113, detecting an upgrading state of an upgrading task of the internet of things equipment in communication connection with the cloud end according to the equipment information of the internet of things equipment.
In an alternative embodiment of the present invention, step 113 may include:
step 114, judging whether the firmware packet of the internet of things equipment is a differential packet;
step 115, if the firmware package is a differential package, then judging whether the differential package is an initial version before upgrading;
step 116, if the differential packet is the initial version before upgrading, determining whether the differential packet is the target version of the upgrading according to the version number in the device information, and if the differential packet is the target version, generating second prompt information, wherein the second prompt information is used for prompting that the detection result is successful in upgrading; if the version number is not the target version, generating third prompt information, wherein the third prompt information is used for prompting that the detection result is upgrading failure;
step 117, if the differential packet is not the initial version before upgrading, terminating the detection, and generating fourth prompt information, where the fourth prompt information is used to prompt that the detection result indicates that the equipment has been upgraded;
and step 118, if the firmware package is not a differential package, directly judging whether the firmware package is the target version of the upgrade, and if the firmware package is the target version, generating fifth prompt information, wherein the fifth prompt information is used for prompting that the detection result is that the upgrade is successful.
In an alternative embodiment of the present invention, step 13 may include:
and 131, recording the fault code of the upgrading task corresponding to the node of each block chain and the corresponding fault solution, forming blocks, sharing the blocks into the block chain communication module, and forming a diagnosis library based on the block chain.
In an alternative embodiment of the present invention, step 14 may include:
step 141, when detecting that a new internet of things device fails to execute an upgrade task, acquiring a fault log of each blockchain node corresponding to the shared upgrade task on the diagnostic library through the diagnostic library formed by the blockchain communication module;
step 142, searching a second fault code which is the same as the first fault code in the diagnosis library according to the first fault code of the upgrading task of the new internet of things equipment;
step 143, calling out a corresponding fault log from each block chain node corresponding to the second fault code, and generating a calling link for solving the upgrading task of the new internet of things device according to upgrading task information corresponding to the fault log;
and 144, determining a solution corresponding to the upgrading task according to the calling link, and feeding back the solution to the new internet of things equipment.
In an optional embodiment of the present invention, the upgrade detection method for a device further includes at least one of:
step 15, counting the information of the upgrading tasks failing to be upgraded, generating a fault form and outputting the fault form;
step 16, counting the information of the upgrade tasks which are successfully upgraded, generating a form which is successfully upgraded, and outputting the form;
and step 17, respectively counting the information of the upgrading tasks failed in upgrading and the information of the upgrading tasks successful in upgrading, generating the success rate or the fault generation rate of the upgrading tasks, and outputting the success rate or the fault generation rate.
The following describes a specific implementation flow of the above embodiment with reference to fig. 2:
after an upgrading task is established for the Internet of things equipment needing upgrading by the cloud server, the finished result of the upgrading task is detected and fault analysis is carried out, and the detection and fault analysis method comprises the following steps:
the method comprises the steps that S1 the cloud server detects the upgrading state of the Internet of things equipment, wherein the upgrading state can be divided into ' idle ', ' downloading ', downloading completion ' and ' upgrading ', so that whether the equipment is in the upgrading process or not is judged;
s1.1, if the equipment state is in 'downloading, downloading is completed, upgrading', namely the equipment has a task of upgrading, the detection program is terminated, and the display module prompts that the detection result is 'equipment upgrading'; after the device finishes the upgrade task, the device can return to S1 to restart detecting the upgrade state;
s1.2, if the equipment state is in an idle state, namely the equipment has no task being upgraded, the cloud server reads basic information of the equipment, including information such as equipment name, manufacturer, version number and the like, records and stores the basic information in a storage module, and the detection program enters step S2;
s2: the detection module calls basic equipment information of the data storage center, detects an equipment version firmware package and judges whether the equipment version firmware package is a differential package; if the firmware package is a differential package, the detection module judges whether the differential package is an initial version before upgrading; if the differential packet is the initial version, go to S3; if the differential packet is not the initial version before upgrading, the detection program is terminated, and the display module prompts that the detection result is 'the equipment is upgraded'; if the firmware package is not a differential package, the detection program directly proceeds to step S3;
s3: the detection module judges whether the version number is the target version of the upgrade according to the version number in the basic information of the equipment, if the version number is the target version, the display module prompts that the detection result is 'upgrade success', and the detection process is ended; if the version number is not the target version, the display module prompts that the detection result is 'upgrade failure', and the detection program enters step S4;
s4: the upgrading task of each upgrading failed device is used as a node of a block chain to generate a block chain communication module, data communication can be carried out between the upgrading devices in the block chain communication module through the block chain, each block chain node in the block chain communication module records a fault code of the node and a corresponding fault solution to form a block, and the fault code and the corresponding fault solution are shared to the block chain communication module to form a diagnosis library based on the block chain;
s5, when a new device fails during the execution of the upgrade task, acquiring the fault log of each block chain node corresponding to the upgrade task shared on the diagnostic library through the diagnostic library formed by the block chain communication module, scanning the same fault code on the platform according to the fault code, calling out the corresponding fault log from each block chain node corresponding to the same fault code, and generating the calling link for solving the fault according to the upgrade task information corresponding to the fault log;
s6, analyzing the call link, determining a solution corresponding to the upgrade task fault according to the analysis result, and feeding back the solution to the equipment for removing the fault;
s7: the fault counting center carries out classified counting on the counted fault information, can calculate the success rate of an upgrading task, the fault generation rate of each fault and the like, can generate various forms for targeted maintenance and continuous improvement of a user, and is convenient for management, control and maintenance of equipment.
The method of the invention can detect the equipment state, the firmware package, the differential package and the version number 4 again, so that the detection result is more accurate; the detection and analysis of the upgrade failure reason and the fault are carried out, and the block chain is used for storing fault information and a solution, so that the whole system is safer and more stable; the fault of each communication system does not need to be checked manually, so that the manual operation amount is reduced; the faults are analyzed based on big data, various analysis reports can be output in a targeted mode, and management, control and maintenance of the equipment are facilitated.
As shown in fig. 3, an embodiment of the present invention further provides an upgrade detection apparatus 30 for a device, which is applied to a cloud server, and the apparatus includes:
the detection module is used for detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end;
the block chain communication module is used for taking the upgrading task of which the upgrading state is upgrading failure as a node of a block chain, and sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and the diagnosis module is used for diagnosing the upgrade task of the new Internet of things equipment according to the diagnosis library.
Optionally, the detection module is specifically configured to determine that if the upgrade status of the upgrade task of the internet of things device is: and generating first prompt information when downloading, finishing downloading or upgrading, wherein the first prompt information is used for prompting that the detection result is in equipment upgrading.
Optionally, the apparatus may further include: and the display module is used for displaying the first prompt message.
Optionally, the detection module may be further specifically configured to determine that, if the internet of things device is in an idle state, device information of the internet of things device is obtained; the device information includes at least one of: device name, vendor and version number;
and detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end according to the equipment information of the Internet of things equipment.
Optionally, the apparatus may further include: and the storage module is used for storing the equipment information.
Optionally, the detection module is configured to, when detecting an upgrade status of an upgrade task of the internet of things device connected to the cloud according to the device information of the internet of things device, specifically:
judging whether a firmware packet of the Internet of things equipment is a differential packet;
if the firmware package is a differential package, judging whether the differential package is an initial version before upgrading;
if the differential packet is an initial version before upgrading, judging whether the differential packet is a target version of the upgrading according to a version number in the equipment information, and if the differential packet is the target version, generating second prompt information for prompting that a detection result is successful in upgrading; if the version number is not the target version, generating third prompt information, wherein the third prompt information is used for prompting that the detection result is upgrading failure;
if the differential packet is not the initial version before upgrading, terminating the detection and generating fourth prompt information, wherein the fourth prompt information is used for prompting that the detection result indicates that the equipment is upgraded;
if the firmware package is not a differential package, directly judging whether the firmware package is the target version of the upgrade, if so, generating fifth prompt information, wherein the fifth prompt information is used for prompting that the detection result is that the upgrade is successful.
Here, the display module may further display at least one of the second prompt message, the third prompt message, the fourth prompt message, and the fifth prompt message.
Optionally, the block chain communication module is specifically configured to: and recording the fault codes of the upgrading tasks corresponding to the nodes of each block chain and the corresponding fault solutions to form a diagnosis library based on the block chains.
Optionally, the diagnostic module is specifically configured to: when a new Internet of things device is detected to have a fault when an upgrading task is executed, acquiring a fault log of each blockchain node corresponding to the shared upgrading task on a diagnosis library through the diagnosis library formed by the blockchain communication module;
according to the first fault code of the upgrading task of the new Internet of things equipment, searching a second fault code which is the same as the first fault code in the diagnosis library;
calling out a corresponding fault log from each block chain node corresponding to the second fault code, and generating a calling link for solving the upgrading task of the new Internet of things equipment according to upgrading task information corresponding to the fault log;
and determining a solution corresponding to the upgrading task according to the calling link, and feeding back the solution to the new Internet of things equipment.
Optionally, the upgrade detecting apparatus further includes an output module, configured to execute at least one of the following:
counting the information of the upgrading tasks failing to be upgraded, generating a fault form and outputting the fault form;
counting the information of the upgrade tasks which are successfully upgraded, generating a form which is successfully upgraded, and outputting the form;
and respectively counting the information of the upgrading tasks which fail to be upgraded and the information of the upgrading tasks which succeed to be upgraded, generating the success rate or the fault generation rate of the upgrading tasks and outputting the success rate or the fault generation rate.
It should be noted that all the implementations in the above method embodiments are applicable to the embodiment of the apparatus, and the same technical effects can be achieved.
In the embodiment of the invention, the cloud server comprises a block chain communication module, a display module, a detection module, a storage module, a diagnosis module and a diagnosis library, wherein the equipment is internet of things equipment connected to a cloud;
the block chain communication module is used for mutual communication among a plurality of devices, the upgrading task of each device is used as a block chain node of the block chain communication module, fault information of the upgrading task of the device is packaged into blocks, the blocks are shared in a block chain of the block chain communication module, the block chain communication module is also used for collecting all shared fault information to generate a diagnosis library, and the block chain communication module can be used for mutual communication among the nodes due to a redundancy mechanism of a block chain technology, so that even if some nodes make mistakes due to some reasons, the whole network cannot be collapsed, and the block chain communication module has high fault tolerance; meanwhile, any node can be freely added into the block chain without any configuration, and any node can also be freely separated from the block chain without any influence on the network, so that the block chain module has higher stability;
the diagnosis library is a collection of shared faults and corresponding solution information based on a block chain, and shares the faults and the corresponding solutions generated by the upgrading tasks of the connected equipment by applying a block chain technology, so that the data of the diagnosis library has higher safety and stability;
the display module is used for displaying a detection result, fault information and the like;
the cloud server may further include: the upgrading module is used for providing upgrading program and upgrading program management such as firmware package distribution, uploading and downloading; the upgrade module may also be implemented by the detection module.
The detection module is used for providing an upgrade result detection program, calling basic equipment information, detecting equipment firmware package information and version information, and independently detecting each piece of equipment to enable a detection result to be more accurate;
the storage module is used for storing basic information of the equipment;
the cloud server may further include: the fault analysis module is an analysis module based on big data, can accurately judge faults, shortens the time of fault judgment, analyzes the reasons of upgrading failure and generates fault codes; the fault analysis module can also be realized by a diagnosis module;
the diagnosis module automatically searches a solution corresponding to the fault code in the diagnosis library, and when a fault which cannot be searched by the diagnosis library occurs, the diagnosis module reports to the cloud end, and the cloud end quickly organizes professionals in time to provide standardized service for upgrading service, quickly solves the fault of upgrading failure, forms a solution of a new fault and shares the solution of the new fault into a block chain in real time;
the output module is used for carrying out classification statistical analysis based on big data on the fault information to generate a plurality of task reports for analysis by analysts, for example, through statistics of various fault rates, technical developers are driven to carry out priority processing on faults with higher probability in a targeted manner, and the like, so that management and control and maintenance of equipment upgrading tasks are more convenient;
the method and the device of the embodiment of the invention can improve the efficiency of communication fault detection, lead the detection upgrading result to be more accurate and be more convenient for managing, controlling and maintaining equipment, simultaneously share the fault information into the block chain diagnosis library by using the block chain technology, provide a stable and accurate diagnosis library by using the block chain sharing technology, analyze the reasons of the upgrading task failure by using the block chain technology, do not need to manually troubleshoot each communication system, and reduce the manual operation amount
An embodiment of the present invention further provides a cloud server, including: the upgrade detection apparatus of the device as described above. All the implementation manners in the above embodiments are applicable to the embodiment of the cloud server, and the same technical effect can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method as described above. All the implementation manners in the above embodiments are applicable to the embodiment of the cloud server, and the same technical effect can be achieved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An upgrade detection method for a device, which is applied to a cloud server, includes:
detecting the upgrading state of an upgrading task of the Internet of things equipment in communication connection with the cloud server;
taking the upgrading task with the upgrading state of failing as a node of a block chain, and generating a block chain communication module, wherein the block chain communication module comprises a plurality of nodes of the block chain;
sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and diagnosing the upgrading task of the new Internet of things equipment according to the diagnosis library.
2. The device upgrade detection method according to claim 1, wherein detecting an upgrade status of an upgrade task of an internet of things device communicatively connected to the cloud comprises:
if the upgrading state of the upgrading task of the Internet of things equipment is as follows: and generating first prompt information when downloading, finishing downloading or upgrading, wherein the first prompt information is used for prompting that the detection result is in equipment upgrading.
3. The device upgrade detection method according to claim 1, wherein detecting an upgrade status of an upgrade task of an internet of things device communicatively connected to the cloud comprises:
if the Internet of things equipment is in an idle state, acquiring equipment information of the Internet of things equipment; the device information includes at least one of: device name, vendor and version number;
and detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end according to the equipment information of the Internet of things equipment.
4. The upgrade detection method for the device according to claim 3, wherein detecting an upgrade status of an upgrade task of the internet of things device communicatively connected to the cloud end according to the device information of the internet of things device includes:
judging whether a firmware packet of the Internet of things equipment is a differential packet;
if the firmware package is a differential package, judging whether the differential package is an initial version before upgrading;
if the differential packet is an initial version before upgrading, judging whether the differential packet is a target version of the upgrading according to a version number in the equipment information, and if the differential packet is the target version, generating second prompt information for prompting that a detection result is successful in upgrading; if the version number is not the target version, generating third prompt information, wherein the third prompt information is used for prompting that the detection result is upgrading failure;
if the differential packet is not the initial version before upgrading, terminating the detection and generating fourth prompt information, wherein the fourth prompt information is used for prompting that the detection result indicates that the equipment is upgraded;
if the firmware package is not a differential package, directly judging whether the firmware package is the target version of the upgrade, if so, generating fifth prompt information, wherein the fifth prompt information is used for prompting that the detection result is that the upgrade is successful.
5. The upgrade detection method for equipment according to claim 1 or 4, wherein the step of sharing the information of the upgrade task corresponding to the node of each blockchain to the blockchain communication module to form a diagnosis library comprises:
and recording the fault codes of the upgrading tasks corresponding to the nodes of each block chain and the corresponding fault solutions, forming blocks, sharing the blocks in the block chain communication module, and forming a diagnosis library based on the block chain.
6. The device upgrade detection method according to claim 5, wherein diagnosing an upgrade task of a new internet of things device according to the diagnosis library comprises:
when a new Internet of things device is detected to have a fault when an upgrading task is executed, acquiring a fault log of each blockchain node corresponding to the shared upgrading task on a diagnosis library through the diagnosis library formed by the blockchain communication module;
according to the first fault code of the upgrading task of the new Internet of things equipment, searching a second fault code which is the same as the first fault code in the diagnosis library;
calling out a corresponding fault log from each block chain node corresponding to the second fault code, and generating a calling link for solving the upgrading task of the new Internet of things equipment according to upgrading task information corresponding to the fault log;
and determining a solution corresponding to the upgrading task according to the calling link, and feeding back the solution to the new Internet of things equipment.
7. The upgrade detection method for a device according to claim 4, further comprising at least one of:
counting the information of the upgrading tasks failing to be upgraded, generating a fault form and outputting the fault form;
counting the information of the upgrade tasks which are successfully upgraded, generating a form which is successfully upgraded, and outputting the form;
and respectively counting the information of the upgrading tasks which fail to be upgraded and the information of the upgrading tasks which succeed to be upgraded, generating the success rate or the fault generation rate of the upgrading tasks and outputting the success rate or the fault generation rate.
8. An upgrade detection device for equipment, applied to a cloud server, the device comprising:
the detection module is used for detecting the upgrading state of the upgrading task of the Internet of things equipment in communication connection with the cloud end;
the block chain communication module is used for taking the upgrading task of which the upgrading state is upgrading failure as a node of a block chain, and sharing the information of the upgrading task corresponding to the node of each block chain into the block chain communication module to form a diagnosis library;
and the diagnosis module is used for diagnosing the upgrade task of the new Internet of things equipment according to the diagnosis library.
9. A cloud server, comprising: the upgrade detection apparatus of a device as claimed in claim 8.
10. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202010249292.8A 2020-04-01 2020-04-01 Upgrade detection method and device for equipment and server Active CN113495750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010249292.8A CN113495750B (en) 2020-04-01 2020-04-01 Upgrade detection method and device for equipment and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010249292.8A CN113495750B (en) 2020-04-01 2020-04-01 Upgrade detection method and device for equipment and server

Publications (2)

Publication Number Publication Date
CN113495750A true CN113495750A (en) 2021-10-12
CN113495750B CN113495750B (en) 2023-02-10

Family

ID=77994195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010249292.8A Active CN113495750B (en) 2020-04-01 2020-04-01 Upgrade detection method and device for equipment and server

Country Status (1)

Country Link
CN (1) CN113495750B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024735A (en) * 2021-11-02 2022-02-08 北京天融信网络安全技术有限公司 Multi-task parallel feature library testing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180315055A1 (en) * 2017-05-01 2018-11-01 International Business Machines Corporation Blockchain For Issue/Defect Tracking System
CN109344000A (en) * 2018-08-16 2019-02-15 北京京东尚科信息技术有限公司 Block chain network service platform restores tool and its fault handling method, storage medium
CN110009118A (en) * 2019-03-29 2019-07-12 深圳市元征科技股份有限公司 A kind of diagnostic data management method and block chain node device
CN110380893A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Communication failure analysis method, device and block chain communication platform
CN110535938A (en) * 2019-08-29 2019-12-03 腾讯科技(深圳)有限公司 A kind of data processing method based on intelligent contract, equipment and storage medium
KR20200002337A (en) * 2018-06-29 2020-01-08 한전케이디엔주식회사 Fault diagnosis and automatic recovery system based on data sharing
CN110798331A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Equipment upgrading method and device
US20200057626A1 (en) * 2018-08-20 2020-02-20 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Performing firmware updates using blockchain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180315055A1 (en) * 2017-05-01 2018-11-01 International Business Machines Corporation Blockchain For Issue/Defect Tracking System
KR20200002337A (en) * 2018-06-29 2020-01-08 한전케이디엔주식회사 Fault diagnosis and automatic recovery system based on data sharing
CN110798331A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Equipment upgrading method and device
CN109344000A (en) * 2018-08-16 2019-02-15 北京京东尚科信息技术有限公司 Block chain network service platform restores tool and its fault handling method, storage medium
US20200057626A1 (en) * 2018-08-20 2020-02-20 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Performing firmware updates using blockchain
CN110009118A (en) * 2019-03-29 2019-07-12 深圳市元征科技股份有限公司 A kind of diagnostic data management method and block chain node device
CN110380893A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Communication failure analysis method, device and block chain communication platform
CN110535938A (en) * 2019-08-29 2019-12-03 腾讯科技(深圳)有限公司 A kind of data processing method based on intelligent contract, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FRANCASINO 等: "A systematic literature review of blockchain-based applications: Current status, classification and open issues", 《TELEMATICS AND INFORMATICS》 *
何万县: "基于EVIT的数据中心服务器故障诊断技术创新研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024735A (en) * 2021-11-02 2022-02-08 北京天融信网络安全技术有限公司 Multi-task parallel feature library testing method and device
CN114024735B (en) * 2021-11-02 2024-02-02 北京天融信网络安全技术有限公司 Multi-task parallel feature library testing method and device

Also Published As

Publication number Publication date
CN113495750B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
CN109683899B (en) Software integration method and device
CN111045944A (en) Regression testing method, device and system and computer readable storage medium
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
CN106612204B (en) Service checking method and device
CN112241360A (en) Test case generation method, device, equipment and storage medium
JP5198154B2 (en) Fault monitoring system, device, monitoring apparatus, and fault monitoring method
CN113946499A (en) Micro-service link tracking and performance analysis method, system, equipment and application
WO2020091592A1 (en) A self-learning method and system for automatically performing application packaging and deployment for a hosting environment
CN110119348B (en) Software upgrading test method and terminal
CN113495750B (en) Upgrade detection method and device for equipment and server
CN112256593A (en) Program processing method and device, computer equipment and readable storage medium
CN112000582A (en) Server-side automatic test early warning method, device, equipment and storage medium
CN110990289A (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN113821242A (en) Intelligent firmware matching method and system
CN117573510A (en) Software testing method, device, terminal equipment and storage medium
CN113507397B (en) Method for collecting terminal equipment state automatic inspection based on cloud operation and maintenance
CN114185326A (en) Vehicle remote diagnosis method, system and storage device
CN112199229A (en) Data processing method, device, equipment and storage medium
CN113791818B (en) Code improvement method, device, medium and equipment based on measurement platform
CN117056161A (en) Cabinet overhauling method, system, electronic setting and storage medium
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN113010424B (en) Interface automatic test processing method, system, computer equipment and storage medium
CN115102856B (en) Method and system for upgrading equipment of Internet of things
KR20000051749A (en) Automatic analyzer of trouble shooting in base station manager system method for solving the trouble
CN115277664A (en) System for automatically distributing software

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
GR01 Patent grant
GR01 Patent grant