CN112788153A - Internet of things equipment upgrade management method, device, equipment and storage medium - Google Patents
Internet of things equipment upgrade management method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112788153A CN112788153A CN202110122436.8A CN202110122436A CN112788153A CN 112788153 A CN112788153 A CN 112788153A CN 202110122436 A CN202110122436 A CN 202110122436A CN 112788153 A CN112788153 A CN 112788153A
- Authority
- CN
- China
- Prior art keywords
- internet
- things
- control terminal
- equipment
- upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 59
- 230000005540 biological transmission Effects 0.000 claims abstract description 17
- 238000000034 method Methods 0.000 claims description 34
- 230000006855 networking Effects 0.000 claims description 26
- 238000001514 detection method Methods 0.000 claims description 14
- 230000000977 initiatory effect Effects 0.000 claims description 7
- 238000012216 screening Methods 0.000 claims description 4
- 239000002609 medium Substances 0.000 description 13
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000012120 mounting media Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Stored Programmes (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the application discloses an Internet of things equipment upgrade management method, device, equipment and storage medium. According to the technical scheme, when a first Internet of things control terminal is connected with new community Internet of things equipment, an upgrading data packet required by equipment upgrading is determined according to the type and version information of the community Internet of things equipment, a second Internet of things control terminal storing the upgrading data packet in the same Internet of things network is determined, the second Internet of things control terminal sends a corresponding upgrading data packet to the first Internet of things control terminal, the first Internet of things control terminal controls the community Internet of things equipment to upgrade equipment based on the upgrading data packet, data transmission pressure of a cloud server is reduced, the upgrading data packet is transmitted through a local Internet of things network, transmission speed of the upgrading data packet is improved, and equipment upgrading efficiency is effectively improved.
Description
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a method, a device, equipment and a storage medium for upgrading management of Internet of things equipment.
Background
Along with the rapid development of the internet of things, a large number of community internet of things devices appear in schedule life, the community internet of things devices are generally connected with an internet of things gateway through a wireless channel provided by the internet of things gateway and are accessed into an internet of things network through the internet of things gateway, so that the community internet of things devices communicate with all internet of things nodes in the internet of things network, a cloud server providing a service platform is in communication connection with the internet of things gateway through the internet, and communication between the cloud server and the community internet of things devices is achieved.
When new community internet of things equipment is on line, the new on-line community internet of things equipment often needs to be upgraded, and an upgrade data packet required by upgrading is generally issued to each internet of things gateway by a cloud server and then issued to corresponding community internet of things equipment by the internet of things gateway. However, the data transmission amount for sending the upgrade data packet is large, which easily causes the situation of overlarge data transmission pressure of the cloud server, and the equipment upgrade efficiency is low.
Disclosure of Invention
The embodiment of the application provides an Internet of things equipment upgrading management method, device, equipment and storage medium, so that the equipment upgrading efficiency is improved.
In a first aspect, an embodiment of the present application provides an internet of things device upgrade management method, including:
responding to a new equipment access notification sent by a first Internet of things control terminal, and determining the type and version information of the Internet of things equipment indicated by the new equipment access notification, wherein the new equipment access notification is generated by the first Internet of things control terminal based on newly accessed community Internet of things equipment;
determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the version information of the Internet of things;
determining an internet of things network corresponding to the first internet of things control terminal, initiating an upgrade package inquiry pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determining the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package inquiry;
and informing the second Internet of things control terminal to send the upgrading data packet to the first Internet of things control terminal so that the first Internet of things control terminal can control the newly accessed community Internet of things equipment to upgrade the equipment based on the upgrading data packet.
Further, the determining, based on the type of the equipment in the internet of things and the version information of the internet of things, an upgrade data packet required for equipment upgrade of the community equipment in the internet of things includes:
determining updated version information corresponding to the type of the equipment in the internet of things based on an equipment version record table, wherein the equipment version record table records corresponding relations between different types of the equipment in the internet of things and the updated version information;
and determining whether the community Internet of things equipment needs equipment upgrading or not based on the version comparison condition of the equipment version information and the updated version information, and determining an upgrading data packet required by the community Internet of things equipment for equipment upgrading based on the updated version information.
Further, before notifying the second internet-of-things control terminal to send the upgrade data packet to the first internet-of-things control terminal, the method further includes:
determining a first hash value corresponding to the locally stored upgrading data packet, and acquiring a second hash value corresponding to the upgrading data packet stored in the second networking control terminal;
and determining the second networking control terminal for providing the upgrading data packet based on the comparison result of the first hash value and the second hash value.
Further, the determining the second networked control terminal for providing the upgrade data package based on the comparison result of the first hash value and the second hash value includes:
screening out the corresponding second networking control terminal with the second hash value consistent with the first hash value based on the comparison result of the first hash value and the second hash value;
and judging whether the number of the screened second networked control terminals is 1, if so, determining the second networked control terminals as the second networked control terminals for providing the upgrade data packet, otherwise, determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet.
Further, the determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet includes:
and determining the terminal distance between each screened second networked control terminal and the first networked control terminal, and determining a second networked control terminal for providing the upgrade data packet based on the terminal distance.
Further, the notifying the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal, so that the first internet of things control terminal controls the newly accessed community internet of things device to perform device upgrade based on the upgrade data packet, including:
informing the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal;
and sending the first hash value to the first internet of things control terminal, so that the first internet of things control terminal compares a third hash value corresponding to the upgrading data packet with the first hash value, and when the first hash value is consistent with the third hash value, controlling the newly accessed community internet of things equipment to upgrade equipment based on the upgrading data packet.
Further, after notifying the second internet-of-things control terminal to send the upgrade data packet to the first internet-of-things control terminal, the method further includes:
and replacing one second networking control terminal used for providing the upgrading data packet in a second networking control terminal storing the upgrading data packet based on a data error indication sent by the first networking control terminal.
In a second aspect, an embodiment of the present application provides an internet of things device upgrade management apparatus, including a device detection module, a version detection module, a data query module, and a data sending module, where:
the device detection module is used for responding to a new device access notification sent by a first Internet of things control terminal, determining the type and version information of the Internet of things device indicated by the new device access notification, wherein the new device access notification is generated by the first Internet of things control terminal based on a newly accessed community Internet of things device;
the version detection module is used for determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the Internet of things version information;
the data query module is used for determining an internet of things network corresponding to the first internet of things control terminal, initiating an upgrade package query pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determining the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package query;
the data sending module is used for informing the second internet of things control terminal to send the upgrading data packet to the first internet of things control terminal so that the first internet of things control terminal can control the newly accessed community internet of things equipment to be upgraded based on the upgrading data packet.
In a third aspect, an embodiment of the present application provides an internet of things device upgrade management device, including: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for upgrade management of internet of things devices according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for upgrade management of internet of things devices according to the first aspect.
According to the embodiment of the application, when a first Internet of things control terminal is accessed into new community Internet of things equipment, an upgrading data packet required by equipment upgrading is determined according to the type and version information of the community Internet of things equipment, a second Internet of things control terminal storing the upgrading data packet in the same Internet of things network is determined, and the corresponding upgrading data packet is sent to the first Internet of things control terminal by the second Internet of things control terminal, so that the first Internet of things control terminal controls the community Internet of things equipment to be upgraded based on the upgrading data packet, the data transmission pressure of a cloud server is reduced, the upgrading data packet is transmitted by a local Internet of things network, the transmission speed of the upgrading data packet is increased, and the equipment upgrading efficiency is effectively improved.
Drawings
Fig. 1 is a flowchart of an internet of things device upgrade management method according to an embodiment of the present application;
fig. 2 is a flowchart of another method for managing upgrade of internet of things devices according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an internet of things device upgrade management apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an internet of things device upgrade management device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of an internet of things device upgrade management method according to an embodiment of the present disclosure, where the internet of things device upgrade management method according to the embodiment of the present disclosure may be executed by an internet of things device upgrade management apparatus, and the internet of things device upgrade management apparatus may be implemented in a hardware and/or software manner and integrated in an internet of things device upgrade management device.
The following description will be given by taking as an example a method for executing the upgrade management of the internet of things device by the internet of things device upgrade management apparatus. Referring to fig. 1, the method for managing upgrading of internet of things equipment includes:
s101: and responding to a new equipment access notification sent by a first Internet of things control terminal, and determining the type and version information of the Internet of things equipment indicated by the new equipment access notification, wherein the new equipment access notification is generated by the first Internet of things control terminal based on newly accessed community Internet of things equipment.
The internet of things system provided by this embodiment has a plurality of internet of things networks, and each internet of things network is configured with a plurality of internet of things control terminals (for example, internet of things gateways or internet of things base stations), and these internet of things control terminals are connected in the internet of things equipment upgrade management (hereinafter referred to as upgrade management device) that this embodiment provided through internet communication, and this upgrade management device carries out data communication as cloud server and each internet of things control terminal. Each internet of things control terminal in the same internet of things network can communicate with each other through the internet of things network, and each internet of things control terminal is connected with one or more community internet of things devices (such as sensing devices, intelligent household devices, community intelligent access controls, community security devices and the like).
The first Internet of things control terminal is an Internet of things control terminal which detects a newly accessed community Internet of things device in the Internet of things network and sends a new device access notification, and the rest Internet of things control terminals in the Internet of things network are second Internet of things control terminals. After detecting newly accessed community internet of things equipment, the first internet of things control terminal determines the type and the version information of the internet of things equipment of the community, generates a new equipment access notification based on the type and the version information of the internet of things equipment, and uploads the new equipment access notification to the upgrading management device.
Illustratively, after receiving a new device access notification sent by a first internet of things control terminal, analyzing the new device access notification to obtain the type and version information of the internet of things device corresponding to the newly accessed community internet of things device.
S102: and determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the version information of the Internet of things.
The upgrade management apparatus provided in this embodiment stores the latest upgrade data package for different types of equipment in the internet of things, and the upgrade data package for the same type of equipment in the internet of things corresponds to different update version information.
For example, after determining the equipment type and the equipment version information of the newly accessed community internet of things equipment, determining a corresponding upgrade data packet according to the equipment type of the community internet of things equipment, comparing the update version information corresponding to the upgrade data packet with the obtained equipment version information, when the equipment version information lags behind the update version information, determining that the newly accessed community internet of things equipment needs to be upgraded, and determining that the corresponding upgrade data packet is the upgrade data packet required by the community internet of things equipment for equipment upgrade.
S103: and determining the Internet of things network corresponding to the first Internet of things control terminal, initiating an upgrade package inquiry pointing to the upgrade data package to a second Internet of things control terminal in the Internet of things network, and determining the second Internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second Internet of things control terminal based on the upgrade package inquiry.
The upgrade management device provided by this embodiment stores a terminal network record table, where the terminal network record table records the internet of things networks corresponding to the internet of things control terminals, and when the internet of things control terminals join the internet of things networks, the internet of things control terminals send online registration to the upgrade management device, so that the upgrade management device updates the terminal network record table according to the internet of things networks corresponding to the internet of things control terminals.
For example, after an upgrade data packet required for equipment upgrade of newly accessed community internet-of-things equipment is determined, the internet-of-things network where a first internet-of-things control terminal sending a new equipment access notification is located is determined according to a terminal network record table.
Further, after the internet of things network where the first internet of things control terminal is located is determined, all second internet of things control terminals which are logged on line in the internet of things network are determined, and upgrade package queries pointing to corresponding upgrade data packages are initiated to the second internet of things control terminals. And after receiving the upgrade package inquiry, each second networking control terminal searches the upgrade data package in the local storage space and returns a response upgrade package search result to the upgrade management device.
And after the upgrade packet search result returned by each second networking control terminal is received, determining the second networking control terminal storing the upgrade data packet according to the upgrade packet search result.
S104: and informing the second Internet of things control terminal to send the upgrading data packet to the first Internet of things control terminal so that the first Internet of things control terminal can control the newly accessed community Internet of things equipment to upgrade the equipment based on the upgrading data packet.
For example, after determining the second networked control terminals storing the corresponding upgrade data packets, an upgrade packet sending instruction pointing to the first networked control terminal and the corresponding upgrade data packets is sent to one of the second networked control terminals, so as to notify the second networked control terminal to send the upgrade data packets to the first networked control terminal.
It can be understood that, if the upgrade packet search results returned by the second internet-of-things control terminals indicate that corresponding upgrade data packets are not stored, the upgrade management device directly sends the upgrade data packets to the first internet-of-things control terminal.
And after receiving the upgrading data packet, the first Internet of things control terminal sends the upgrading data packet to the newly accessed community Internet of things device so as to inform the community Internet of things device of upgrading the device based on the upgrading data packet.
According to the method, when the first Internet of things control terminal is connected with the new community Internet of things equipment, the upgrading data packet required by equipment upgrading is determined according to the type and version information of the community Internet of things equipment, the second Internet of things control terminal storing the upgrading data packet in the same Internet of things network is determined, the corresponding upgrading data packet is sent to the first Internet of things control terminal by the second Internet of things control terminal, the first Internet of things control terminal controls the community Internet of things equipment to upgrade the equipment based on the upgrading data packet, the data transmission pressure of the cloud server is reduced, the upgrading data packet is transmitted by the local Internet of things network, the transmission speed of the upgrading data packet is increased, and the equipment upgrading efficiency is effectively improved. And when a large amount of new community internet of things equipment is accessed, the data transmission pressure can be effectively reduced, and the situation of network data congestion is reduced.
On the basis of the foregoing embodiment, fig. 2 is a flowchart of another method for managing upgrade of internet of things devices according to the embodiment of the present application, where the method for managing upgrade of internet of things devices is an embodiment of the method for managing upgrade of internet of things devices. Referring to fig. 2, the method for managing upgrade of the internet of things device includes:
s201: and responding to a new equipment access notification sent by a first Internet of things control terminal, and determining the type and version information of the Internet of things equipment indicated by the new equipment access notification, wherein the new equipment access notification is generated by the first Internet of things control terminal based on newly accessed community Internet of things equipment.
S202: and determining updated version information corresponding to the type of the equipment in the Internet of things based on an equipment version record table, wherein the equipment version record table records the corresponding relationship between different types of the equipment in the Internet of things and the updated version information.
S203: and determining whether the community Internet of things equipment needs equipment upgrading or not based on the version comparison condition of the equipment version information and the updated version information, and determining an upgrading data packet required by the community Internet of things equipment for equipment upgrading based on the updated version information.
The upgrade management apparatus provided in this embodiment stores an apparatus version record table for recording correspondence between different equipment types and update version information of the internet of things, and updates the apparatus version record table according to the equipment type and the update version information of the internet of things corresponding to an upgrade data packet when updating an online new upgrade data packet.
Specifically, after the type and the version information of the newly accessed community internet-of-things device are determined, the corresponding update version information is determined in the device version record table based on the type of the internet-of-things device. Further, the device version information and the updated version information are compared, and the version comparison condition of the device version information and the updated version information is determined.
And when the version comparison condition indicates that the equipment version information lags behind the updated version information, determining that the community internet of things equipment needs equipment upgrading, wherein an upgrading data packet corresponding to the updated version information is an upgrading data packet required by newly accessed community internet of things equipment for equipment upgrading. And when the equipment version information is consistent with the updated version information or is advanced to the updated version information, the community Internet of things equipment is considered to be updated to the latest version, the first Internet of things control terminal is informed that the equipment is not required to be upgraded, and the current upgrade management process is ended.
S204: and determining the Internet of things network corresponding to the first Internet of things control terminal, initiating an upgrade package inquiry pointing to the upgrade data package to a second Internet of things control terminal in the Internet of things network, and determining the second Internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second Internet of things control terminal based on the upgrade package inquiry.
S205: and determining a first hash value corresponding to the locally stored upgrading data packet, and acquiring a second hash value corresponding to the upgrading data packet stored in the second networking control terminal.
Specifically, after an upgrade data packet required by equipment upgrade of the community internet of things equipment is determined, a first hash value corresponding to the upgrade data packet is calculated and obtained. Optionally, the first hash value of the upgrade data packet may be determined and recorded while the upgrade data packet is stored, the recorded first hash value may be directly determined, or the first hash value may be calculated in real time after the upgrade data packet required for device upgrade is determined each time.
Further, a hash value acquisition notification is sent to the second networked control terminals which determine that the corresponding upgrade data packages are stored, and the second networked control terminals determine the second hash values of the corresponding upgrade data packages which are stored in the second networked control terminals in response to the hash value acquisition notification and return the second hash values to the upgrade management device. Optionally, each second networked control terminal may determine and record the second hash value of the upgrade data packet while saving the upgrade data packet, may directly determine the recorded second hash value, and may also calculate the second hash value in real time in response to the hash value acquisition notification.
S206: and determining the second networking control terminal for providing the upgrading data packet based on the comparison result of the first hash value and the second hash value.
And comparing the first hash value with the second hash value, and determining a second networking control terminal for providing the upgrading data packet according to the comparison result. For example, when determining the second networked control terminal for providing the upgrade data packet, the present embodiment specifically includes steps S2061 to S2062:
s2061: and screening out the corresponding second networking control terminal with the second hash value consistent with the first hash value based on the comparison result of the first hash value and the second hash value.
S2062: and judging whether the number of the screened second networked control terminals is 1, if so, determining the second networked control terminals as the second networked control terminals for providing the upgrade data packet, otherwise, determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet.
Specifically, second networked control terminals corresponding to second hash values identical to the first hash values are screened out based on comparison results of the first hash values and the second hash values returned by the second networked control terminals. Further, whether the number of the screened second networking control terminals is 1 or not is determined. And if the number of the terminals is 1, directly determining the second networking control terminal as the second networking control terminal for providing the upgrading data packet. And if the number of the terminals is more than 1, determining one second networking control terminal as a second networking control terminal for providing the upgrading data packet. It can be understood that if all the second hash values are inconsistent with the first hash value, the upgrade data packets stored in the second internet-of-things control terminals are considered to have been tampered, and the upgrade management device directly sends the upgrade data packets to the first internet-of-things control terminal.
In a possible embodiment, when determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet, the method specifically includes: and determining the terminal distance between each screened second networked control terminal and the first networked control terminal, and determining a second networked control terminal for providing the upgrade data packet based on the terminal distance.
For example, the upgrade management device provided in this embodiment records, in advance, terminal distances between the internet of things control terminals in each internet of things network, determines terminal distances between the second internet of things control terminals and the first internet of things control terminal after screening out a plurality of second internet of things control terminals corresponding to the second hash values and consistent with the first hash values, and determines, as the second internet of things control terminal for providing the upgrade data packet, the second internet of things control terminal having the shortest terminal distance between the second internet of things control terminal and the first internet of things control terminal in the same internet of things network.
S207: and informing the second internet of things control terminal to send the upgrading data packet to the first internet of things control terminal.
S208: and sending the first hash value to the first internet of things control terminal, so that the first internet of things control terminal compares a third hash value corresponding to the upgrading data packet with the first hash value, and when the first hash value is consistent with the third hash value, controlling the newly accessed community internet of things equipment to upgrade equipment based on the upgrading data packet.
Specifically, the second internet of things control terminal is informed that the first internet of things control terminal sends the upgrade data packet, and then the first hash value corresponding to the upgrade data packet is sent to the first internet of things control terminal. And after receiving the upgrading data packet sent by the second internet-of-things control terminal, the first internet-of-things control terminal calculates a third hash value of the upgrading data packet, compares the third hash value with the first hash value, and sends the upgrading data packet to the corresponding community internet-of-things equipment for equipment upgrading when the first hash value is consistent with the third hash value.
In a possible embodiment, when the third hash value is inconsistent with the first hash value, the second networked control terminal is considered to send a tampered upgrade data packet, or the upgrade data packet is modified in the transmission process, the upgrade data packet is discarded, the device safety is ensured, and a data error indication is sent to the upgrade management device.
Further, after the second networked control terminal is notified to send the upgrade data packet to the first networked control terminal, if a data error indication sent by the first networked control terminal is received, based on the data error indication sent by the first networked control terminal, the second networked control terminal which is used for providing the upgrade data packet is replaced in the second networked control terminal which stores the upgrade data packet.
Specifically, after the data error indication is received, one second networked control terminal for providing the upgrade data packet is determined again from the screened second networked control terminals with corresponding second hash values consistent with the first hash values, and the second networked control terminal is notified to send the upgrade data packet to the first networked control terminal. If the third hash values corresponding to the second internet-of-things control terminals are different from the first hash values, the upgrading management device directly sends upgrading data packets to the first internet-of-things control terminal, and normal equipment upgrading of community internet-of-things equipment is guaranteed.
According to the method, when the first Internet of things control terminal is connected with the new community Internet of things equipment, the upgrading data packet required by equipment upgrading is determined according to the type and version information of the community Internet of things equipment, the second Internet of things control terminal storing the upgrading data packet in the same Internet of things network is determined, the corresponding upgrading data packet is sent to the first Internet of things control terminal by the second Internet of things control terminal, the first Internet of things control terminal controls the community Internet of things equipment to upgrade the equipment based on the upgrading data packet, the data transmission pressure of the cloud server is reduced, the upgrading data packet is transmitted by the local Internet of things network, the transmission speed of the upgrading data packet is increased, and the equipment upgrading efficiency is effectively improved. Meanwhile, a second internet of things control terminal providing the upgrading data package for the first internet of things control terminal is determined according to the comparison condition of the hash value, and the first internet of things control terminal determines whether the received upgrading data package is legal or not according to the comparison condition of the hash value, so that the equipment safety is effectively improved, and the condition that the equipment safety is threatened due to the fact that the upgrading data package is tampered is reduced.
Fig. 3 is a schematic structural diagram of an internet of things device upgrade management apparatus according to an embodiment of the present application. Referring to fig. 3, the internet of things device upgrade management apparatus includes a device detection module 31, a version detection module 32, a data query module 33, and a data transmission module 34.
The device detection module 31 is configured to determine, in response to a new device access notification sent by a first internet of things control terminal, a type and version information of an internet of things device indicated by the new device access notification, where the new device access notification is generated by the first internet of things control terminal based on a newly accessed community internet of things device; the version detection module 32 is configured to determine, based on the type of the equipment in the internet of things and the version information of the internet of things, an upgrade data packet required by the equipment upgrade of the community equipment in the internet of things; the data query module 33 is configured to determine an internet of things network corresponding to the first internet of things control terminal, initiate an upgrade package query pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determine the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package query; the data sending module 34 is configured to notify the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal, so that the first internet of things control terminal controls the newly accessed community internet of things device to perform device upgrade based on the upgrade data packet.
According to the method, when the first Internet of things control terminal is connected with the new community Internet of things equipment, the upgrading data packet required by equipment upgrading is determined according to the type and version information of the community Internet of things equipment, the second Internet of things control terminal storing the upgrading data packet in the same Internet of things network is determined, the corresponding upgrading data packet is sent to the first Internet of things control terminal by the second Internet of things control terminal, the first Internet of things control terminal controls the community Internet of things equipment to upgrade the equipment based on the upgrading data packet, the data transmission pressure of the cloud server is reduced, the upgrading data packet is transmitted by the local Internet of things network, the transmission speed of the upgrading data packet is increased, and the equipment upgrading efficiency is effectively improved.
The embodiment of the application also provides equipment upgrading management equipment for the Internet of things, and the equipment upgrading management equipment for the Internet of things can be integrated with the equipment upgrading management device for the Internet of things provided by the embodiment of the application. Fig. 4 is a schematic structural diagram of an internet of things device upgrade management device provided in an embodiment of the present application. Referring to fig. 4, the internet of things device upgrade management device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 for storing one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 are enabled to implement the method for managing upgrade of the internet of things device as provided in the above embodiments. Wherein the input device 43, the output device 44, the memory 42 and the processor 41 may be connected by a bus or other means, for example, in fig. 4.
The memory 42 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the internet of things device upgrade management method according to any embodiment of the present application (for example, the device detection module 31, the version detection module 32, the data query module 33, and the data transmission module 34 in the internet of things device upgrade management apparatus). The memory 42 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; the storage data area may store data created according to use of the device, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 43 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 44 may include a display device such as a display screen.
The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, so as to implement the above-mentioned method for managing upgrade of the internet of things device.
The internet of things equipment upgrade management device, the equipment and the computer provided by the above embodiments can be used for executing the internet of things equipment upgrade management method provided by any of the above embodiments, and have corresponding functions and beneficial effects.
An embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform the method for managing upgrade of internet of things devices according to the embodiment, where the method for managing upgrade of internet of things devices includes: responding to a new equipment access notification sent by a first Internet of things control terminal, and determining the type and version information of the Internet of things equipment indicated by the new equipment access notification, wherein the new equipment access notification is generated by the first Internet of things control terminal based on newly accessed community Internet of things equipment; determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the version information of the Internet of things; determining an internet of things network corresponding to the first internet of things control terminal, initiating an upgrade package inquiry pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determining the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package inquiry; and informing the second Internet of things control terminal to send the upgrading data packet to the first Internet of things control terminal so that the first Internet of things control terminal can control the newly accessed community Internet of things equipment to upgrade the equipment based on the upgrading data packet.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the method for managing upgrade of the internet of things device described above, and may also perform related operations in the method for managing upgrade of the internet of things device provided in any embodiments of the present application.
The device, the equipment and the storage medium for managing upgrade of the device of the internet of things provided in the foregoing embodiments may execute the method for managing upgrade of the device of the internet of things provided in any embodiment of the present application, and reference may be made to the method for managing upgrade of the device of the internet of things provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.
Claims (10)
1. An Internet of things equipment upgrade management method is characterized by comprising the following steps:
responding to a new equipment access notification sent by a first Internet of things control terminal, and determining the type and version information of the Internet of things equipment indicated by the new equipment access notification, wherein the new equipment access notification is generated by the first Internet of things control terminal based on newly accessed community Internet of things equipment;
determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the version information of the Internet of things;
determining an internet of things network corresponding to the first internet of things control terminal, initiating an upgrade package inquiry pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determining the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package inquiry;
and informing the second Internet of things control terminal to send the upgrading data packet to the first Internet of things control terminal so that the first Internet of things control terminal can control the newly accessed community Internet of things equipment to upgrade the equipment based on the upgrading data packet.
2. The internet of things equipment upgrade management method according to claim 1, wherein the determining of the upgrade data packet required for equipment upgrade of the community internet of things equipment based on the type of the internet of things equipment and the version information of the internet of things comprises:
determining updated version information corresponding to the type of the equipment in the internet of things based on an equipment version record table, wherein the equipment version record table records corresponding relations between different types of the equipment in the internet of things and the updated version information;
and determining whether the community Internet of things equipment needs equipment upgrading or not based on the version comparison condition of the equipment version information and the updated version information, and determining an upgrading data packet required by the community Internet of things equipment for equipment upgrading based on the updated version information.
3. The internet of things equipment upgrade management method according to claim 1, wherein before notifying the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal, the method further includes:
determining a first hash value corresponding to the locally stored upgrading data packet, and acquiring a second hash value corresponding to the upgrading data packet stored in the second networking control terminal;
and determining the second networking control terminal for providing the upgrading data packet based on the comparison result of the first hash value and the second hash value.
4. The upgrade management method for internet of things equipment according to claim 3, wherein the determining the second networked control terminal for providing the upgrade data packet based on the comparison result of the first hash value and the second hash value includes:
screening out the corresponding second networking control terminal with the second hash value consistent with the first hash value based on the comparison result of the first hash value and the second hash value;
and judging whether the number of the screened second networked control terminals is 1, if so, determining the second networked control terminals as the second networked control terminals for providing the upgrade data packet, otherwise, determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet.
5. The upgrade management method for internet of things equipment according to claim 4, wherein the determining one of the second networked control terminals as the second networked control terminal for providing the upgrade data packet includes:
and determining the terminal distance between each screened second networked control terminal and the first networked control terminal, and determining a second networked control terminal for providing the upgrade data packet based on the terminal distance.
6. The internet of things equipment upgrade management method according to claim 3, wherein the notifying the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal, so that the first internet of things control terminal controls the newly accessed community internet of things equipment to perform equipment upgrade based on the upgrade data packet, includes:
informing the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal;
and sending the first hash value to the first internet of things control terminal, so that the first internet of things control terminal compares a third hash value corresponding to the upgrading data packet with the first hash value, and when the first hash value is consistent with the third hash value, controlling the newly accessed community internet of things equipment to upgrade equipment based on the upgrading data packet.
7. The internet of things equipment upgrade management method according to claim 1, wherein after notifying the second internet of things control terminal to send the upgrade data packet to the first internet of things control terminal, the method further includes:
and replacing one second networking control terminal used for providing the upgrading data packet in a second networking control terminal storing the upgrading data packet based on a data error indication sent by the first networking control terminal.
8. The utility model provides a thing networking equipment upgrading management device which characterized in that, includes equipment detection module, version detection module, data inquiry module and data transmission module, wherein:
the device detection module is used for responding to a new device access notification sent by a first Internet of things control terminal, determining the type and version information of the Internet of things device indicated by the new device access notification, wherein the new device access notification is generated by the first Internet of things control terminal based on a newly accessed community Internet of things device;
the version detection module is used for determining an upgrading data packet required by equipment upgrading of the community Internet of things equipment based on the type of the Internet of things equipment and the Internet of things version information;
the data query module is used for determining an internet of things network corresponding to the first internet of things control terminal, initiating an upgrade package query pointing to the upgrade data package to a second internet of things control terminal in the internet of things network, and determining the second internet of things control terminal storing the upgrade data package according to an upgrade package search result returned by the second internet of things control terminal based on the upgrade package query;
the data sending module is used for informing the second internet of things control terminal to send the upgrading data packet to the first internet of things control terminal so that the first internet of things control terminal can control the newly accessed community internet of things equipment to be upgraded based on the upgrading data packet.
9. The utility model provides a thing networking equipment upgrading management equipment which characterized in that includes: a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the internet of things device upgrade management method as claimed in any one of claims 1-7.
10. A storage medium containing computer-executable instructions, which when executed by a computer processor, perform the internet of things device upgrade management method of any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110122436.8A CN112788153B (en) | 2021-01-29 | 2021-01-29 | Internet of things equipment upgrading management method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110122436.8A CN112788153B (en) | 2021-01-29 | 2021-01-29 | Internet of things equipment upgrading management method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112788153A true CN112788153A (en) | 2021-05-11 |
| CN112788153B CN112788153B (en) | 2023-04-28 |
Family
ID=75759622
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110122436.8A Active CN112788153B (en) | 2021-01-29 | 2021-01-29 | Internet of things equipment upgrading management method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112788153B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114978902A (en) * | 2022-05-18 | 2022-08-30 | 阿里云计算有限公司 | Information processing method, apparatus, device, storage medium, and program product |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130311982A1 (en) * | 2012-05-15 | 2013-11-21 | Oracle International Corporation | Automated upgrade for an operating system using a gateway server |
| CN103702186A (en) * | 2013-11-29 | 2014-04-02 | 康佳集团股份有限公司 | Set-top box point-to-point upgrade realization method and system based on Internet |
| CN106506595A (en) * | 2016-10-08 | 2017-03-15 | 深圳广田智能科技有限公司 | Upgrading method of peer-to-peer IoT smart community devices |
| CN108241517A (en) * | 2018-02-23 | 2018-07-03 | 武汉斗鱼网络科技有限公司 | A kind of method for upgrading software, client and electronic equipment |
| CN108259578A (en) * | 2017-12-29 | 2018-07-06 | 北京元心科技有限公司 | The upgrade method and device of clustered node |
| CN108347346A (en) * | 2017-12-29 | 2018-07-31 | 乐鑫信息科技(上海)有限公司 | Device updating method in a kind of mesh networks |
| CN109947449A (en) * | 2019-03-18 | 2019-06-28 | Oppo广东移动通信有限公司 | System upgrading method and device, storage medium and electronic equipment |
| CN111176685A (en) * | 2019-12-27 | 2020-05-19 | 深圳市优必选科技股份有限公司 | Upgrading method and device |
-
2021
- 2021-01-29 CN CN202110122436.8A patent/CN112788153B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130311982A1 (en) * | 2012-05-15 | 2013-11-21 | Oracle International Corporation | Automated upgrade for an operating system using a gateway server |
| CN103702186A (en) * | 2013-11-29 | 2014-04-02 | 康佳集团股份有限公司 | Set-top box point-to-point upgrade realization method and system based on Internet |
| CN106506595A (en) * | 2016-10-08 | 2017-03-15 | 深圳广田智能科技有限公司 | Upgrading method of peer-to-peer IoT smart community devices |
| CN108259578A (en) * | 2017-12-29 | 2018-07-06 | 北京元心科技有限公司 | The upgrade method and device of clustered node |
| CN108347346A (en) * | 2017-12-29 | 2018-07-31 | 乐鑫信息科技(上海)有限公司 | Device updating method in a kind of mesh networks |
| CN108241517A (en) * | 2018-02-23 | 2018-07-03 | 武汉斗鱼网络科技有限公司 | A kind of method for upgrading software, client and electronic equipment |
| CN109947449A (en) * | 2019-03-18 | 2019-06-28 | Oppo广东移动通信有限公司 | System upgrading method and device, storage medium and electronic equipment |
| CN111176685A (en) * | 2019-12-27 | 2020-05-19 | 深圳市优必选科技股份有限公司 | Upgrading method and device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114978902A (en) * | 2022-05-18 | 2022-08-30 | 阿里云计算有限公司 | Information processing method, apparatus, device, storage medium, and program product |
| CN114978902B (en) * | 2022-05-18 | 2024-05-14 | 阿里云计算有限公司 | Information processing method, apparatus, device, storage medium, and program product |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112788153B (en) | 2023-04-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20210083925A1 (en) | Network fault analysis method and apparatus | |
| CN106982236B (en) | An information processing method, device and system | |
| JP2008546264A (en) | Method for generating an update status alarm in a device | |
| EP3852363B1 (en) | Device state monitoring method and apparatus | |
| CN109428740B (en) | Method and device for equipment failure recovery | |
| CN112822735B (en) | Gateway switching management method, device, equipment and storage medium based on Internet of things | |
| CN112788153B (en) | Internet of things equipment upgrading management method, device, equipment and storage medium | |
| CN112968793B (en) | Equipment upgrading method, device, equipment and storage medium based on Internet of things | |
| CN116095120A (en) | Method and Gateway of Data Acquisition Based on EIP Object Model | |
| CN107911229B (en) | Running state change reminding method and device, electronic equipment and storage medium | |
| CN111489540B (en) | Intelligent device control method, device, computer readable medium and electronic device | |
| CN105335457B (en) | A kind of prewarning monitoring system and its method | |
| CN107634868A (en) | A method and system for managing network services | |
| CN112367412B (en) | Equipment connection management method and device based on Internet of things | |
| CN113805909B (en) | Device upgrading method and device, electronic device and storage medium | |
| CN112333218B (en) | Internet of things access authentication method, device, equipment and storage medium | |
| CN118869433A (en) | Business management method and cloud management platform based on cloud technology | |
| CN112615872B (en) | Internet of things node security management method, device, equipment and storage medium | |
| CN112039696B (en) | Method, device, equipment and medium for generating network topology structure | |
| CN112769768B (en) | Internet of things terminal authentication method, device, equipment and storage medium | |
| CN112968792B (en) | Method and device for controlling upgrading of equipment of Internet of things | |
| CN115314518A (en) | Internet of things management method and system and computer readable storage medium | |
| CN103248506A (en) | Right control method of device management and terminal | |
| CN117917103A (en) | Subscription control method, device, computer equipment and storage medium | |
| CN111506480B (en) | Method, device and system for detecting states of components in cluster |
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 |