CN115174341B - Method, device and equipment for upgrading equipment in intelligent community - Google Patents

Method, device and equipment for upgrading equipment in intelligent community Download PDF

Info

Publication number
CN115174341B
CN115174341B CN202210550592.9A CN202210550592A CN115174341B CN 115174341 B CN115174341 B CN 115174341B CN 202210550592 A CN202210550592 A CN 202210550592A CN 115174341 B CN115174341 B CN 115174341B
Authority
CN
China
Prior art keywords
upgrade
equipment
upgrade package
response message
upgrading
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.)
Active
Application number
CN202210550592.9A
Other languages
Chinese (zh)
Other versions
CN115174341A (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.)
Xiamen Leelen Technology Co Ltd
Original Assignee
Xiamen Leelen Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Leelen Technology Co Ltd filed Critical Xiamen Leelen Technology Co Ltd
Priority to CN202210550592.9A priority Critical patent/CN115174341B/en
Publication of CN115174341A publication Critical patent/CN115174341A/en
Application granted granted Critical
Publication of CN115174341B publication Critical patent/CN115174341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • H04L41/0293Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP] for accessing web services by means of a binding identification of the management service or element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for upgrading equipment in an intelligent community, which comprise the following steps: after the first device acquires the upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number; and receiving a response message of at least one second device, and transmitting the upgrade package to the second device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device. The device and the community server do not need to repeatedly conduct data interaction, so that conditions are created for upgrading a large amount of devices simultaneously, and the platform server is depressurized.

Description

Method, device and equipment for upgrading equipment in intelligent community
Technical Field
The invention relates to the technical field of data transmission, in particular to a method, a device and equipment for upgrading equipment in an intelligent community.
Background
The traditional access control equipment has simpler, lower-efficiency and limited upgrading modes, technical support engineers often need to use a personal PC as a client, and a specific PC end upgrading tool is used for transmitting an upgrading packet to equipment to be upgraded to upgrade the equipment. If the number of devices to be upgraded is large, the upgrade method consumes a lot of time and labor. Of course, with the progress of science and technology and age, an advanced intelligent community system is introduced in some high-grade cells, devices in the cells are accessed to the IOT platform server, the upgrade package can be transmitted to a plurality of devices for upgrade by the way of platform issuing, but upgrade efficiency is limited by server resources and performance, and the servers with insufficient performance need to establish upgrade task queues to complete mass device upgrade, so that for the cell IOT platform server with limited performance and resources, the upgrade efficiency is limited. Meanwhile, after receiving the upgrade package, the existing upgrade method in the market basically needs to use the modes of crc32, MD5 and the like to check the data correctness of the upgrade package, if the verification is not finished (the upgrade package is often required to be retransmitted), the equipment needs to interact with the server repeatedly (the number of the equipment in the local area network is often hundreds and the number of the large residential areas is thousands), so that a large number of equipment can interact with the data in the platform server at the same time, which can cause a certain burden to the work of the server and even affect the normal operation of other services of the platform.
Disclosure of Invention
In view of the above, the invention aims to provide a method, a device and equipment for upgrading equipment in an intelligent community, which aims to solve the problems that the existing equipment is required to be repeatedly interacted with a platform server to cause a large burden on the platform server and influence the upgrading efficiency.
In order to achieve the above object, the present invention provides a method for upgrading a device in an intelligent community, the method comprising:
after the first device acquires the upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
and receiving a response message of at least one second device, and transmitting the upgrade package to the second device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
Preferably, the method for the first device to obtain the upgrade package includes:
connecting with the first equipment by using a PC end tool to transmit the upgrade package to the first equipment; or,
and sending the upgrade package to the first equipment by the platform server through accessing the platform server.
Preferably, the first device and the second device are built with an embedded web server or created with a web service thread.
Preferably, the receiving a response message of at least one second device, and transmitting the upgrade package to the second device, includes:
receiving a response message of at least one second device matched with the device type and the destination software version number, transmitting the upgrade package to the second device for upgrade, and buffering a DID identification number of the second device in the response message in the first device so as to locate the second device; or,
and receiving at least one response message which can transfer the upgrade package by the second equipment, transmitting the upgrade package to the second equipment for forwarding service, and caching the DID identification number of the second equipment in the response message in the first equipment so as to position the second equipment.
Preferably, the upgrade notification message further includes a check value corresponding to the upgrade package, so that the second device checks the upgrade package after the transmission is completed according to the check value of the upgrade package.
In order to achieve the above object, the present invention provides a method for upgrading a device in an intelligent community, the method comprising:
receiving an upgrade notification message indicating an upgrade package sent by a first device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
and sending a response message to inform the first device to receive the upgrade package transmitted by the first device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
Preferably, the first device and the second device are built with an embedded web server or created with a web service thread.
Preferably, the sending a response message to notify the first device to receive the upgrade package transmitted by the first device includes:
after comparing the equipment type and the destination software version number to be consistent with the equipment type and the destination software version number, sending a response message to inform the first equipment so as to receive the upgrade package transmitted by the first equipment for upgrading, wherein the response message comprises the DID identification number of the second equipment; or,
and sending a response message to inform the first device when the current state is in the idle state so as to receive the upgrade package transmitted by the first device for forwarding service, wherein the response message comprises the DID identification number of the second device.
Preferably, the upgrade notification message further includes a check value corresponding to the upgrade package; the step of receiving the upgrade package transmitted by the first device for upgrade includes:
and checking the upgrade package after the transmission is completed according to the check value of the upgrade package, and if the transmission is passed, responding to the upgrade completion message to the first equipment.
In order to achieve the above object, the present invention further provides an apparatus for upgrading a device in an intelligent community, the apparatus comprising:
the broadcasting unit is used for sending an upgrade notification message indicating the upgrade package to a second device in the local area network in a UDP broadcasting mode after the first device acquires the upgrade package, wherein the upgrade notification message at least comprises a device type and a target software version number;
and the transmission unit is used for receiving a response message of at least one second device and transmitting the upgrade package to the second device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
In order to achieve the above object, the present invention further provides an apparatus for upgrading a device in an intelligent community, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an upgrade notification message which indicates an upgrade package sent by a first device in a local area network in a UDP broadcast mode, and the upgrade notification message at least comprises a device type and a target software version number;
and the receiving unit is used for sending a response message to inform the first device so as to receive the upgrade package transmitted by the first device, and the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
In order to achieve the above object, the present invention also proposes an apparatus comprising a processor, a memory, and a computer program stored in the memory, the computer program being executed by the processor to implement the steps of an upgrade method for an apparatus in a smart community as described in the above embodiments.
The beneficial effects are that:
according to the scheme, the first equipment with the upgrade package broadcasts the upgrade notification message to the second equipment in the local area network, and the upgrade package is sent to the second equipment according to the response condition of the second equipment.
In the scheme, the devices in the intelligent community are built with the embedded web server or the web service thread, the number of the devices to be upgraded which can be simultaneously serviced can be set according to the device performance, meanwhile, the platform is not interfered to issue an upgrade package to other devices, so that the upgrade package is a multitasking parallel process, and the upgrade of a large number of devices can be simultaneously performed, so that the upgrade efficiency is greatly improved, and the labor cost is reduced.
According to the scheme, each device in the intelligent community has the unique DID identification number, the transmission of the upgrade package data between the devices has the breakpoint continuous transmission function, when the abnormal interruption occurs in the upgrade process, after the environment is restored, the upgrade task before the interruption can be continuously completed, the starting from the head is not needed, and the upgrade efficiency is higher.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an upgrade method of a device in an intelligent community according to an embodiment of the present invention.
Fig. 2 is a topology diagram of an intelligent device network upgrade according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an interaction flow between a server and a device according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of an interaction flow between devices according to an embodiment of the present invention.
Fig. 5 is a flowchart of an upgrade method of a device in an intelligent community according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an upgrade apparatus for devices in an intelligent community according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an upgrade apparatus for devices in an intelligent community according to another embodiment of the present invention.
The realization of the object, the functional characteristics and the advantages of the invention will be further described with reference to the accompanying drawings in connection with the embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, based on the embodiments of the invention, which are apparent to those of ordinary skill in the art without inventive faculty, are intended to be within the scope of the invention. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, based on the embodiments of the invention, which are apparent to those of ordinary skill in the art without inventive faculty, are intended to be within the scope of the invention.
In the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
The following describes the invention in detail with reference to examples.
The upgrading method is applied to equipment of the intelligent community building intercom system, the intelligent community is a novel concept of community management and a novel mode of social management innovation under a new situation, the intelligent community building intercom system fully utilizes the Internet and the Internet of things, relates to various fields of intelligent buildings, intelligent houses, road network monitoring, personal health, digital life and the like, and can fully play the advantages of developed information communication industry, excellent telecommunication service, excellent informationized infrastructure and the like. Wherein, through there being a large amount of equipment in the wisdom community, include: an entrance guard host, an indoor extension, a gateway, an intelligent door lock, a monitoring camera and the like; a device of a certain type or model may be identified by a specific device type value, i.e. according to a device-by-device type formulation, by way of example: such as 1001: entrance guard host computer, 1002: indoor extension, 1003: barrier gate, 1004: intelligent door locks, etc., that is, if there are 500 extensions in the community, the device type of each extension is 1002, and the other is the same. When an upgrade task is created, only a certain type of equipment in the community (such as all intelligent door locks are upgraded), so that other server resources (access control hosts, extensions and the like) which do not need to be upgraded in the community can be fully utilized to upgrade the equipment which needs to be upgraded, an upgrade initiating device can initiate an upgrade notification through UDP (user datagram protocol) broadcasting, and after a correct response (the equipment type and version information of the equipment to be upgraded meet the upgrade requirement) specified by a protocol is received, the transmission of an upgrade package can be started.
Referring to fig. 1, a flow chart of a method for upgrading a device in an intelligent community according to an embodiment of the invention is shown, and the method in the embodiment is applied to a first device and includes:
s11, after the first device acquires the upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
s12, receiving a response message of at least one second device, and transmitting the upgrade package to the second device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
In this embodiment, for the first device, the device has acquired the upgrade package from the platform (or other device), and the first device notifies the second device in the local area network of upgrade notification information (including the type of device to be upgraded, the version number of the destination software for the upgrade, a check value such as the upgrade package MD5 or CRC32, and the DID identification number of the first device) by means of UDP broadcast.
As shown in fig. 2, the first device acquires the upgrade package in the smart community network upgrade topology: the first mode is that a PC end tool is used for connecting a first device to transmit an upgrade package; and secondly, submitting an upgrade package on the IOT platform server, and then issuing the upgrade package to the first equipment accessed to the platform server through the platform server. After receiving the upgrade package, the first device may start to send an upgrade notification message to other devices (i.e., the second device) in the network through broadcasting (the upgrade notification message at least includes an upgradeable device type and a destination software version number, which is the basis for determining whether the upgrade package is an available upgrade package of the device receiving the upgrade package. If the current service resource of the equipment receiving the broadcast notification can meet the upgrading function, the equipment can respond to the response message which can be upgraded to the upgrading initiating equipment, and the transmission of an upgrading packet and the upgrading flow are started; if some devices may be busy and are in other high-load service, the remaining resources cannot meet the upgrade function, and when the requirements related to the upgrade function are not met, the response is busy, so that the upgrade package initiator does not send the upgrade package to the devices. Each device receiving the upgrade package in the community can be used as a propagator of the upgrade package, and the propagator can diffuse the upgrade package to a plurality of devices in the network at the same time, so that the upgrade efficiency is greatly improved. And the devices transmitting the upgrade packages mutually are not limited to the same type of devices (such as the devices which do not need to be the access control host computers), so that the devices which do not need to be upgraded can serve the devices which need to be upgraded, and the device resources in the community are fully utilized.
On the other hand, the upgrade initiating device can judge whether to store the upgrade package according to the storage space (flash size) of the upgrade initiating device, and devices capable of storing the upgrade package exist in communities generally. And when the device which stores the upgrade package receives the upgrade package of the version of the device type again, comparing the version numbers in the upgrade package, and replacing the existing old version upgrade package with the new version upgrade package. Devices having an upgrade package may periodically broadcast an upgrade notification message, which may ensure that all upgradeable devices have been upgraded. Therefore, the old version equipment added into the system can automatically finish upgrading, and the problem of equipment use caused by the old version is avoided. Meanwhile, the scheme does not depend on whether the current equipment is connected to the IOT platform or not, and whether the equipment is powered on or not currently, so that the equipment to be upgraded in the community can be completely covered, and the problem of missed upgrading is avoided.
Further, the first device and the second device are built with an embedded web server or created with a web service thread.
In this embodiment, by building an embedded web server on the device: the part of work is that the equipment development is completed before the equipment leaves the factory, the types of ready-made open source servers are Thttpd, lighttpd, apache, appweb, and the like, and the ready-made open source servers can be modified and customized by themselves due to the open source, so that the equipment has powerful and stable functions and can be used as a propagator of an upgrade package; the Web server may respond to real-time HTTP requests from multiple clients and establish a connection for each client, which is the primary function of the embedded Web server; real-time monitoring and management of equipment, on-line checking and configuration of parameters and the like; security control mechanisms for device access, including SSL, user password, etc. And a web service thread is created on the device: and the developer of the equipment realizes the function similar to an embedded web server in the main program of the equipment, namely, a web service thread is created in the main program, and the related communication protocol interaction and the upgrade package transmission are completed.
The embedded web server is built on the equipment in the intelligent community, the equipment quantity of the equipment to be upgraded, which can be simultaneously serviced (for example, 5 equipment is simultaneously serviced) can be set according to the server resources and the equipment performance, when the equipment initiating the upgrade receives the response of more than 5 upgradeable equipment, the response information can be directly discarded, and the server is in a full-load state. Meanwhile, the platform server is not interfered to issue an upgrade package to other un-upgraded equipment, so that the upgrade package is a multitasking parallel process, and a large number of equipment upgrades can be simultaneously performed, so that the upgrade efficiency is greatly improved, and the labor cost is reduced.
As shown in the interactive flow diagram of the server and the device in fig. 3, the IOT server first obtains the software version information of the device from the device, after obtaining the response of the device, if the software version information meets the requirement of the upgrade package, the IOT server issues an upgrade notification (including URL of the upgrade package) to the device, after the device responds correctly, the upgrade package can be downloaded through https protocol, after the downloading is completed and after the verification is passed, the upgrade completion notification is reported to the platform server. Wherein, HTTPS: hyper Text Transfer Protocol over Secure Socket Layer is a secure version of HTTP, which is a secure HTTP channel. I.e. adding SSL layer under HTTP, the security foundation of HTTPs is SSL, so the details of encryption require SSL. It is now widely used for security-sensitive communications over the world wide web.
Further, the receiving a response message of at least one second device, and transmitting the upgrade package to the second device, includes:
receiving a response message of at least one second device matched with the device type and the destination software version number, transmitting the upgrade package to the second device for upgrade, and buffering a DID identification number of the second device in the response message in the first device so as to locate the second device; or,
and receiving at least one response message which can transfer the upgrade package by the second equipment, transmitting the upgrade package to the second equipment for forwarding service, and caching the DID identification number of the second equipment in the response message in the first equipment so as to position the second equipment.
In this embodiment, the device initiating the upgrade sends an upgrade notification message (including the device type of the device to be upgraded, the destination version number of the upgrade, and the DID identification number of the device initiating the upgrade) through UDP broadcast, and after obtaining response messages (including software version information, device type, and DID identification number) of other devices, if the software version information and the device type in the response messages meet the upgrade requirement, the upgrade package starts to be transmitted, and after the transmission is completed and the verification is passed, the upgrade completion message is responded to the device initiating the upgrade. The DID is a unique identification code of the device, and the MAC address of the common device and the manufacturer code of the specific device are generated to be used for uniquely identifying one device.
Meanwhile, the equipment initiating the upgrade needs to cache the equipment DID (unique equipment identifier) of the equipment to be upgraded, and when the upgrade is abnormal, the equipment to be upgraded can be accurately positioned. When the server finishes that part of equipment is in a relative idle state, the server can broadcast the upgrade initiation notification message again to start a new upgrade package transmission task until no upgradeable equipment response is received, namely, all upgradeable equipment in the network finishes upgrading.
Further, the first device and the second device carry SSL certificate files.
In this embodiment, SSL certificate files (which may be carried by the device when leaving the factory or issued by a platform server) are stored on the device, for example, the protocol interacted between the devices and the transmitted upgrade packet data are encrypted by SSL, so as to realize encrypted transmission of the data, further ensure that the transmitted data between the devices cannot be tampered or stolen, and improve the security of data transmission.
Further, regarding the processing of the upgrade abnormality:
(1) When the equipment in the community does not receive the upgrade package due to power failure, the software version numbers of the equipment with the same type around can be obtained through broadcasting after power-on, and if the software version numbers are inconsistent, the upgrade package can be obtained from the surrounding equipment, so that the upgrade is completed.
(2) When the equipment in the community does not receive the upgrade package due to the disconnection of the network, after the equipment network is restored, the software version numbers of the equipment in the surrounding same type can be obtained through broadcasting, and if the software version numbers are inconsistent, the upgrade package can be obtained from the surrounding equipment, so that the upgrade is completed.
(3) When the network abnormality occurs in the process that the equipment in the community is receiving the upgrade package, the upgrade package is transmitted in error, after the network is recovered, the network does not need to restart to transmit the upgrade package, the communication protocol has the function of breakpoint continuous transmission (supporting part of the content of a transmission file and acquiring the data size of the currently transmitted upgrade package), and each equipment has equipment DID (unique identification), so that the equipment initiating the upgrade can accurately find the equipment to be upgraded which is transmitted before and complete the transmission of the data of the rest upgrade package.
Referring to fig. 5, a flowchart of a method for upgrading a device in an intelligent community according to another embodiment of the present invention is shown, and in this embodiment, the method is applied to a second device, and includes:
s51, a first device in a local area network sends out an upgrade notification message indicating an upgrade package in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
s52, sending a response message to inform the first device to receive the upgrade package transmitted by the first device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device.
Further, the first device and the second device are built with an embedded web server or created with a web service thread.
Further, the sending a response message to notify the first device to receive the upgrade package transmitted by the first device includes:
after comparing the equipment type and the destination software version number to be consistent with the equipment type and the destination software version number, sending a response message to inform the first equipment so as to receive the upgrade package transmitted by the first equipment for upgrading, wherein the response message comprises the DID identification number of the second equipment; or,
and sending a response message to inform the first device when the current state is in the idle state so as to receive the upgrade package transmitted by the first device for forwarding service, wherein the response message comprises the DID identification number of the second device.
Further, the upgrade notification message further includes a check value corresponding to the upgrade package; the step of receiving the upgrade package transmitted by the first device for upgrade includes:
and checking the upgrade package after the transmission is completed according to the check value of the upgrade package, and if the transmission is passed, responding to the upgrade completion message to the first equipment.
In this embodiment, when the second device receives the upgrade notification message, the second device first obtains upgrade related information (device type, destination software version number, upgrade package check value, DID of the initiating device) included in the upgrade notification message, and then compares whether the device type of the second device conforms to the device type that can be upgraded by the upgrade package, if so, judges whether the software version number of the second device is inconsistent with the destination software version number, if so, indicates that the second device has completed upgrading, and does not respond to the upgrade notification message; if the two pieces of equipment are inconsistent, the equipment is the equipment which needs to be upgraded, a check value (MD 5 or CRC 32) of an upgrade package is cached in the equipment, meanwhile, an upgradeable response message (DID, version information and the like of the equipment to be upgraded) is responded to the upgrade initiating equipment, transmission of the upgrade package is started, after the upgrade package is transmitted, the upgrade package is checked according to the check value of the upgrade package, if the verification is passed, an upgrade completion message is responded to the upgrade initiating equipment, and the upgrade process is completed. If the equipment to be upgraded receives the upgrade package and then the upgrade package verification fails, the error upgrade package can be deleted, meanwhile, the upgrade abnormal message is responded to the upgrade initiating equipment, the upgrade package is retransmitted until the verification passes, and the upgrade is completed.
On the other hand, by fully utilizing the server resources of other types of idle devices in the community to transmit the upgrade package, the device receiving the upgrade package can acquire the device type applicable to the upgrade package (e.g. 1002) through the broadcast upgrade notification message of the upgrade package initiator, or acquire the adapted device type through the upgrade package name after receiving the upgrade package, if the device is an indoor extension device (1002), the device is upgraded (meanwhile, after the device is upgraded, the upgrade notification message indicating the upgrade package can be sent to other devices in the local area network through a UDP broadcast mode to transmit the upgrade package to the other devices), otherwise, only the service for transmitting the upgrade package is provided for the other devices, and the device receiving the upgrade package is not upgraded by the upgrade package, namely the device receiving the upgrade package is equivalent to a transfer station, and transmits the upgrade package for other devices adapting the upgrade package.
Referring to fig. 6, a schematic structural diagram of an apparatus for upgrading a device in a smart community according to an embodiment of the present invention is shown, and in this embodiment, the apparatus 60 includes:
a broadcasting unit 61, configured to send an upgrade notification message indicating the upgrade package to a second device in a local area network through a UDP broadcast mode after the first device acquires the upgrade package, where the upgrade notification message includes at least a device type and a destination software version number;
a transmitting unit 62, configured to receive a response message of at least one second device, and transmit the upgrade packet to the second device, where the second device includes a device of a same type as the first device and/or a device of a different type from the first device.
The method for the first device to obtain the upgrade package includes:
connecting with the first equipment by using a PC end tool to transmit the upgrade package to the first equipment; or,
and sending the upgrade package to the first equipment by the platform server through accessing the platform server.
Wherein the first device and the second device are built with an embedded web server or with a web service thread.
The upgrade notification message further includes a check value corresponding to the upgrade package, so that the second device checks the upgrade package after the transmission is completed according to the check value of the upgrade package.
Further, the transmission unit 62 includes:
the first transmission unit is used for receiving a response message of at least one second device matched with the device type and the destination software version number, transmitting the upgrade package to the second device for upgrade, and buffering a DID identification number of the second device in the response message in the first device so as to position the second device; or,
and the second transmission unit is used for receiving at least one response message which is responded by the second equipment and can transfer the upgrade package, transmitting the upgrade package to the second equipment for forwarding service, and buffering the DID identification number of the second equipment in the response message in the first equipment so as to position the second equipment.
Referring to fig. 7, a schematic structural diagram of an apparatus for upgrading a device in a smart community according to another embodiment of the present invention is shown, and in this embodiment, the apparatus 70 includes:
an obtaining unit 71, configured to obtain an upgrade notification message indicating an upgrade package sent by a first device in a local area network through a UDP broadcast mode, where the upgrade notification message includes at least a device type and a destination software version number;
a receiving unit 72, configured to send a response message to notify the first device to receive the upgrade packet transmitted by the first device, where the second device includes a device of a type identical to the first device and/or a device of a type different from the first device.
Wherein the first device and the second device are built with an embedded web server or with a web service thread.
Further, the receiving unit 72 includes:
the first receiving unit is used for sending a response message to inform the first device after comparing the device type and the destination software version number with the device type and the destination software version number to be matched with the first receiving unit so as to receive the upgrade package transmitted by the first device for upgrading, wherein the response message comprises the DID identification number of the second device; or,
and the second receiving unit is used for sending a response message to inform the first equipment when the current state is judged to be in the idle state so as to receive the upgrade package transmitted by the first equipment for forwarding service, wherein the response message comprises the DID identification number of the second equipment.
Wherein, the upgrade notification message further comprises a check value corresponding to the upgrade package; the first receiving unit includes:
and the verification unit is used for verifying the upgrade package after the transmission is completed according to the verification value of the upgrade package, and if the verification is passed, the upgrade completion message is responded to the first equipment.
The respective unit modules of the apparatus 60/70 may perform the corresponding steps in the above method embodiments, so that detailed descriptions of the respective unit modules are omitted herein.
The embodiment of the invention also provides a device, which comprises the device upgrading device in the intelligent community, wherein the device upgrading device in the intelligent community can adopt the structure of the embodiment of fig. 6/7, correspondingly, the technical scheme of the method embodiment shown in fig. 1/5 can be executed, the implementation principle and the technical effect are similar, and details can be referred to the relevant records in the embodiment and are not repeated here.
The apparatus comprises: a device with a photographing function such as a mobile phone, a digital camera or a tablet computer, or a device with an image processing function, or a device with an image display function. The device may include a memory, a processor, an input unit, a display unit, a power source, and the like.
The memory may be used to store software programs and modules, and the processor executes the software programs and modules stored in the memory to perform various functional applications and data processing. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (e.g., an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory 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 volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor and the input unit.
The input unit may be used to receive input digital or character or image information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit of the present embodiment may include a touch-sensitive surface (e.g., a touch display screen) and other input devices in addition to the camera.
The display unit may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the device, which may be composed of graphics, text, icons, video and any combination thereof. The display unit may include a display panel, and alternatively, the display panel may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is communicated to the processor to determine the type of touch event, and the processor then provides a corresponding visual output on the display panel based on the type of touch event.
The embodiment of the present invention also provides a computer readable storage medium, which may be a computer readable storage medium contained in the memory in the above embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a device. The computer-readable storage medium has at least one instruction stored therein, the instruction loaded and executed by the processor to implement the method of upgrading a device in the smart community shown in fig. 1/5. The computer readable storage medium may be a read-only memory, a magnetic disk or optical disk, etc.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the device embodiments, the apparatus embodiments and the storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Also, herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the foregoing description illustrates and describes the preferred embodiments of the present invention, it is to be understood that the invention is not limited to the forms disclosed herein, but is not to be construed as limited to other embodiments, but is capable of use in various other combinations, modifications and environments and is capable of changes or modifications within the scope of the inventive concept, either as described above or as a matter of skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (11)

1. An upgrade method of equipment in an intelligent community is characterized by being applied to first equipment of an intelligent community building intercom system, and the method comprises the following steps:
after the first device acquires the upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
receiving a response message of at least one second device, and transmitting the upgrade package to the second device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device; wherein,,
the receiving a response message of at least one second device, and transmitting the upgrade package to the second device, including:
receiving a response message of at least one second device matched with the device type and the destination software version number, transmitting the upgrade package to the second device for upgrade, and buffering a DID identification number of the second device in the response message in the first device so as to locate the second device; or,
and receiving at least one response message which can transfer the upgrade package by the second equipment, transmitting the upgrade package to the second equipment for forwarding service, and caching the DID identification number of the second equipment in the response message in the first equipment so as to position the second equipment.
2. The method for upgrading a device in an intelligent community according to claim 1, wherein the method for obtaining the upgrade package by the first device includes:
connecting with the first equipment by using a PC end tool to transmit the upgrade package to the first equipment; or,
and sending the upgrade package to the first equipment by the platform server through accessing the platform server.
3. The method for upgrading a device in a smart community according to claim 1, wherein the first device and the second device are built with an embedded web server or with a web service thread.
4. The method for upgrading a device in a smart community according to claim 1, wherein the upgrade notification message further includes a check value corresponding to the upgrade package, so that the second device checks the upgrade package after the transmission is completed according to the check value of the upgrade package.
5. An upgrade method of equipment in an intelligent community is characterized by being applied to second equipment of an intelligent community building intercom system, and the method comprises the following steps:
receiving an upgrade notification message indicating an upgrade package sent by a first device in a local area network in a UDP broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
sending a response message to inform the first device to receive the upgrade package transmitted by the first device, wherein the second device comprises devices of the same type as the first device and/or devices of different types from the first device; wherein,,
the sending a response message to notify the first device to receive the upgrade package transmitted by the first device includes:
after comparing the equipment type and the destination software version number to be consistent with the equipment type and the destination software version number, sending a response message to inform the first equipment so as to receive the upgrade package transmitted by the first equipment for upgrading, wherein the response message comprises the DID identification number of the second equipment; or,
and sending a response message to inform the first device when the current state is in the idle state so as to receive the upgrade package transmitted by the first device for forwarding service, wherein the response message comprises the DID identification number of the second device.
6. The method for upgrading a device in a smart community according to claim 5, wherein the first device and the second device are built with an embedded web server or with a web service thread.
7. The method for upgrading a device in an intelligent community according to claim 5, wherein the upgrade notification message further includes a check value corresponding to the upgrade package; the step of receiving the upgrade package transmitted by the first device for upgrade includes:
and checking the upgrade package after the transmission is completed according to the check value of the upgrade package, and if the transmission is passed, responding to the upgrade completion message to the first equipment.
8. An upgrade apparatus for devices in an intelligent community, applied to a first device of a building intercom system of the intelligent community, the apparatus comprising:
the broadcasting unit is used for sending an upgrade notification message indicating the upgrade package to a second device in the local area network in a UDP broadcasting mode after the first device acquires the upgrade package, wherein the upgrade notification message at least comprises a device type and a target software version number;
a transmission unit, configured to receive a response message of at least one second device, and transmit the upgrade packet to the second device, where the second device includes a device of a same type as the first device and/or a device of a different type from the first device; wherein,,
the transmission unit includes:
the first transmission unit is used for receiving a response message of at least one second device matched with the device type and the destination software version number, transmitting the upgrade package to the second device for upgrade, and buffering a DID identification number of the second device in the response message in the first device so as to position the second device; or,
and the second transmission unit is used for receiving at least one response message which is responded by the second equipment and can transfer the upgrade package, transmitting the upgrade package to the second equipment for forwarding service, and buffering the DID identification number of the second equipment in the response message in the first equipment so as to position the second equipment.
9. An upgrade apparatus for equipment in an intelligent community, applied to a second equipment of a building intercom system of the intelligent community, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an upgrade notification message which indicates an upgrade package sent by a first device in a local area network in a UDP broadcast mode, and the upgrade notification message at least comprises a device type and a target software version number;
a receiving unit, configured to send a response message to notify the first device to receive the upgrade packet transmitted by the first device, where the second device includes a device of a same type as the first device and/or a device of a different type from the first device; wherein,,
the receiving unit includes:
the first receiving unit is used for sending a response message to inform the first device after comparing the device type and the destination software version number with the device type and the destination software version number to be matched with the first receiving unit so as to receive the upgrade package transmitted by the first device for upgrading, wherein the response message comprises the DID identification number of the second device; or,
and the second receiving unit is used for sending a response message to inform the first equipment when the current state is judged to be in the idle state so as to receive the upgrade package transmitted by the first equipment for forwarding service, wherein the response message comprises the DID identification number of the second equipment.
10. An electronic device comprising a processor, a memory and a computer program stored in the memory, the computer program being executed by the processor to implement the steps of a method of upgrading a device in a smart community according to any one of claims 1 to 4.
11. An electronic device comprising a processor, a memory and a computer program stored in the memory, the computer program being executed by the processor to implement the steps of a method of upgrading a device in a smart community according to any one of claims 5 to 7.
CN202210550592.9A 2022-05-20 2022-05-20 Method, device and equipment for upgrading equipment in intelligent community Active CN115174341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210550592.9A CN115174341B (en) 2022-05-20 2022-05-20 Method, device and equipment for upgrading equipment in intelligent community

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210550592.9A CN115174341B (en) 2022-05-20 2022-05-20 Method, device and equipment for upgrading equipment in intelligent community

Publications (2)

Publication Number Publication Date
CN115174341A CN115174341A (en) 2022-10-11
CN115174341B true CN115174341B (en) 2023-09-26

Family

ID=83482706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210550592.9A Active CN115174341B (en) 2022-05-20 2022-05-20 Method, device and equipment for upgrading equipment in intelligent community

Country Status (1)

Country Link
CN (1) CN115174341B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
CN106612192A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An equipment upgrading method, apparatus and system
CN107453931A (en) * 2017-09-28 2017-12-08 美的智慧家居科技有限公司 Lan device upgrade method, device and its equipment
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
CN111638891A (en) * 2020-04-15 2020-09-08 视联动力信息技术股份有限公司 Equipment upgrading method and device, terminal equipment and storage medium
CN111984287A (en) * 2020-07-24 2020-11-24 青岛经济技术开发区海尔热水器有限公司 Equipment upgrading method and system
CN112035145A (en) * 2020-09-08 2020-12-04 Oppo广东移动通信有限公司 Equipment upgrading method and related device
CN113641451A (en) * 2021-08-13 2021-11-12 济南浪潮数据技术有限公司 Method, device, equipment and readable medium for upgrading container in local area network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9215131B2 (en) * 2012-06-29 2015-12-15 Cisco Technology, Inc. Methods for exchanging network management messages using UDP over HTTP protocol

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106612192A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An equipment upgrading method, apparatus and system
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN107453931A (en) * 2017-09-28 2017-12-08 美的智慧家居科技有限公司 Lan device upgrade method, device and its equipment
CN108376078A (en) * 2018-02-26 2018-08-07 广东美的制冷设备有限公司 Upgrade method, device and the household appliance of equipment
CN111638891A (en) * 2020-04-15 2020-09-08 视联动力信息技术股份有限公司 Equipment upgrading method and device, terminal equipment and storage medium
CN111984287A (en) * 2020-07-24 2020-11-24 青岛经济技术开发区海尔热水器有限公司 Equipment upgrading method and system
CN112035145A (en) * 2020-09-08 2020-12-04 Oppo广东移动通信有限公司 Equipment upgrading method and related device
CN113641451A (en) * 2021-08-13 2021-11-12 济南浪潮数据技术有限公司 Method, device, equipment and readable medium for upgrading container in local area network

Also Published As

Publication number Publication date
CN115174341A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US10547710B2 (en) Device gateway
WO2020199598A1 (en) Blockchain node management method, electronic apparatus, system and readable storage medium
US8997092B2 (en) Method, system, and computer readable medium for provisioning and remote distribution
CN112035215B (en) Node autonomous method, system and device of node cluster and electronic equipment
WO2018113514A1 (en) Cdn management system, method and apparatus
US8200769B2 (en) Downloading a plug-in on an instant messaging client
CN107623698B (en) Method and device for remotely debugging network equipment
KR101799447B1 (en) Server connectiong method, information providng method of device and device applying the same, Cloud Computing Network system and operation method thereof
CN115189897A (en) Access processing method and device for zero trust network, electronic equipment and storage medium
KR101542467B1 (en) System for blocking harmful information based on multi platforms
JP2023519650A (en) Internet-of-Things device registration method, device, device and storage medium
WO2003093959A2 (en) Secure transmission and installation of an application
CN115174341B (en) Method, device and equipment for upgrading equipment in intelligent community
CN112948008A (en) Ironic based physical bare computer management method
CN112367415B (en) Generation method and device of attribute information, electronic equipment and computer readable medium
US20210336853A1 (en) Control system, electronic device, and control method
CN115486033B (en) Equipment access method and device in Internet of things, computer equipment and storage medium
CN103441876A (en) Network device management method and system based on DHCP and SNMP
CN115695529B (en) Intelligent remote operation and maintenance method and device, computer equipment and storage medium
KR102582398B1 (en) Method and apparatus for controlling applications
JP2015046706A (en) Relay program, relay device, and relay method
US12052142B2 (en) Connectivity management system which optimizes embedded connectivity management system operations
US20240039795A1 (en) Connectivity Management System Which Optimizes Embedded Connectivity Management System Operations
CN118245092A (en) Multi-module online upgrading method for safety control platform
CN115811474A (en) Internet of things equipment binding method, terminal and Internet of things equipment

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