CN115174341A - Upgrading method and device for equipment in smart community and equipment - Google Patents

Upgrading method and device for equipment in smart community and equipment Download PDF

Info

Publication number
CN115174341A
CN115174341A CN202210550592.9A CN202210550592A CN115174341A CN 115174341 A CN115174341 A CN 115174341A CN 202210550592 A CN202210550592 A CN 202210550592A CN 115174341 A CN115174341 A CN 115174341A
Authority
CN
China
Prior art keywords
equipment
upgrade package
upgrade
upgrading
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210550592.9A
Other languages
Chinese (zh)
Other versions
CN115174341B (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

Images

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 an upgrading method, a device, equipment and a storage medium of equipment in an intelligent community, wherein the upgrading method comprises the following steps: after the first device acquires an upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP (user Datagram protocol) broadcasting 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 a device of the same type as the first device and/or a device of a different type from the first device. The data interaction between the equipment and the community server is not needed repeatedly, so that conditions can be created for upgrading the equipment in batches simultaneously, and the pressure of the platform server is reduced.

Description

Upgrading method and device for equipment in smart community and equipment
Technical Field
The invention relates to the technical field of data transmission, in particular to an upgrading method, device and equipment for equipment in an intelligent community.
Background
The upgrading mode of traditional entrance guard's equipment is comparatively simple, inefficiency, limitation, and technical support engineer often needs to use personal PC as the customer end, uses specific PC end upgrading instrument, carries out equipment upgrading on will upgrading the package transmission to waiting to upgrade equipment. If the number of the devices to be upgraded is large, the upgrading mode consumes a large amount of time and labor. Certainly, with the progress of science and technology and times, an advanced intelligent community system is introduced into some high-grade cells, equipment in the cells is accessed into an IOT platform server, the upgrading packets can be transmitted to a plurality of pieces of equipment for upgrading in a mode of issuing the upgrading packets by a platform, the upgrading efficiency is limited by server resources and performance, servers with insufficient performance need to establish upgrading task queues to complete large-batch equipment upgrading, and therefore the improvement on the upgrading efficiency is limited for the IOT platform server in the cells with limited performance and resources. Meanwhile, after an upgrade package is received by the existing upgrade method in the current market, the correctness of the upgrade package data basically needs to be checked by using methods such as crc32 and MD5, and if the upgrade package is not checked (the upgrade package is often required to be retransmitted), the device needs to repeatedly interact with the server (the number of devices in the local area network is often hundreds, and the number of large residential areas is thousands), so that a large number of devices interact with the platform server at the same time, which causes a certain burden on the operation of the server and even affects the normal operation of other services of the platform.
Disclosure of Invention
In view of this, the present invention provides an upgrading method, an upgrading device and an upgrading apparatus for an intelligent community, and aims to solve the problem that the upgrading efficiency is affected due to a large burden on a platform server caused by repeated data interaction with the platform server in the existing equipment upgrading process.
In order to achieve the above object, the present invention provides a method for upgrading devices in an intelligent community, the method comprising:
after the first device acquires an upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP (user Datagram protocol) broadcasting 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 the same type of device as the first device and/or different types of devices from the first device.
Preferably, the manner 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 issuing 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 built with a web service thread.
Preferably, the receiving a response message of at least one of the second devices 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 target software version number, transmitting the upgrade package to the second device for upgrading, and caching a DID (digital 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 is responded by the second equipment and can transfer the upgrade package, 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 locate 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 transmission according to the check value of the upgrade package.
In order to achieve the above object, the present invention provides a method for upgrading devices in an intelligent community, the method comprising:
receiving an upgrade notification message which indicates an upgrade package and is sent by first equipment in a local area network in a UDP (user Datagram protocol) broadcasting mode, wherein the upgrade notification message at least comprises an equipment type and a target software version number;
and sending a response message to inform the first equipment to receive the upgrade package transmitted by the first equipment, wherein the second equipment comprises equipment of the same type as the first equipment and/or equipment of a different type from the first equipment.
Preferably, the first device and the second device are built with an embedded web server or built 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 the device type and the target software version number are matched with the device type and the target software version number, sending a response message to inform the first device to receive the upgrade package transmitted by the first device for upgrading, wherein the response message comprises a DID identification number of the second device; or,
and when the current state is in the idle state, sending a response message to inform the first equipment 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.
Preferably, the upgrade notification message further includes a check value corresponding to the upgrade package; the receiving the upgrade package transmitted by the first device for upgrading includes:
and verifying the upgrade package after transmission according to the verification value of the upgrade package, and if the verification is passed, responding an upgrade completion message to the first equipment.
In order to achieve the above object, the present invention further provides an upgrading apparatus for devices in an intelligent community, the apparatus including:
the device comprises a broadcast unit, a first device and a second device, wherein the broadcast unit is used for sending an upgrade notification message indicating an upgrade packet to the second device in the local area network in a UDP (user Datagram protocol) broadcast mode after the first device obtains the upgrade packet, and 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, and the second device comprises a device of the same type as the first device and/or a device of a different type from the first device.
In order to achieve the above object, the present invention further provides an upgrading apparatus for devices in an intelligent community, the apparatus including:
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 and is sent by first equipment in a local area network in a UDP (user Datagram protocol) broadcast mode, and the upgrade notification message at least comprises an equipment 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 package transmitted by the first device, where the second device includes a device of the same type as the first device and/or a device of a different type from the first device.
In order to achieve the above object, the present invention also provides an apparatus, which includes a processor, a memory and a computer program stored in the memory, wherein the computer program is executed by the processor to implement the steps of the method for upgrading an apparatus in an intelligent community as described in the above embodiments.
Has the beneficial effects 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, the upgrade package is sent to the second equipment according to the response condition of the second equipment, the scheme does not depend on whether the current equipment is connected to the IOT platform or not or whether the equipment is powered on, only the line communication in the local area network is normal, and therefore any equipment in a community can become a propagator of the upgrade package without repeatedly carrying out data interaction between the equipment and a community server, conditions can be created for upgrading mass equipment simultaneously, and pressure reduction is carried out on the platform server.
Above scheme, equipment in the wisdom community has set up embedded web server or has established the web service thread, can set up the equipment quantity of the equipment of treating upgrading that can serve simultaneously according to equipment performance, simultaneously, does not disturb the platform and issues the upgrade package and give other equipment, consequently is the parallel process of a multitask, can carry out the upgrading of big batch equipment simultaneously, improves upgrading efficiency by a wide margin, reduces the human cost.
Above scheme, every equipment in the wisdom community all has unique DID identification number, and equipment room transmission upgrading package data has the breakpoint continuous transmission function, and when the abnormal interruption appeared in the upgrading process, treat the environment recovery back, can continue to accomplish the upgrading task before the interruption, need not from the beginning to begin, and upgrading efficiency is higher.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an upgrading method for equipment in an intelligent community according to an embodiment of the present invention.
Fig. 2 is a network upgrade topology diagram of an intelligent device according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating an interaction flow between a server and a device according to an embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating an interaction flow between devices according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating an upgrading method for devices in an intelligent community according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an upgrading apparatus for devices in an intelligent community according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an upgrading apparatus for devices in an intelligent community according to another embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
In order to make 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 described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present 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, which can be obtained by a person skilled in the art without inventive efforts based on the embodiments of the present invention, are within the scope of protection of the present invention.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
The present invention will be described in detail with reference to the following examples.
The upgrading method is applied to equipment of a building intercom system of the smart community, the smart community is a new idea of community management and a new mode of social management innovation under a new situation, the intelligent community relates to various fields such as intelligent buildings, intelligent home furnishing, road network monitoring, personal health and digital life and the like by fully utilizing the Internet and the Internet of things, and can fully exert the advantages of developed information communication industry, excellent telecommunication service and informatization infrastructure and the like. Wherein, through having a large amount of equipment in the wisdom community, include: the system comprises an access control host, an indoor extension, a barrier gate, 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. in a device-type-specific manner of a device, for example: in the step of 1001: entrance guard's host computer, 1002: indoor extension, 1003: barrier gate, 1004: intelligent door lock, etc., that is, if there are 500 extension sets in the community, the equipment type of each extension set is 1002, and the other same reason. When an upgrade task is created, only some types of equipment in a community (such as all intelligent door locks) are upgraded, so that other server resources (such as a host, an extension and the like) in the community, which do not need to upgrade equipment, can be fully utilized to upgrade the equipment needing to be upgraded, upgrade initiating equipment can initiate an upgrade notification through UDP broadcast, and after a correct response specified by a protocol is received (the equipment type and version information of the equipment to be upgraded meet the upgrade requirement), upgrade package transmission can be started.
Referring to fig. 1, a flow chart of an upgrading method for a device in an intelligent community according to an embodiment of the present invention is shown, in which the method is applied to a first device, and the method includes:
s11, after the first device acquires an upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP (user Datagram protocol) broadcast mode, wherein the upgrade notification message at least comprises a device type and a target software version number;
and 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 a device of the same type as the first device and/or a device of a different type from the first device.
In this embodiment, for a first device, the device has acquired an upgrade package from a platform (or other devices), and the first device notifies upgrade notification information (including a device type to be upgraded, a version number of a target software to be upgraded, a check value of the upgrade package MD5 or CRC32, and a DID identification number of the first device) to a second device in a local area network in a UDP broadcast manner.
As shown in fig. 2, the upgrade topology of the intelligent community network, the first device obtains the upgrade package: the mode is that a PC end tool is connected with a first device to transmit an upgrade package; and the second mode is that an upgrade package is submitted on the IOT platform server and then is issued to the first equipment which is 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., second devices) in the network by broadcast (the upgrade notification message at least includes an upgradable device type and a destination software version number, which are used by the device that receives the upgrade package to determine whether the upgrade package is an available upgrade package). If the current service resource of the equipment receiving the broadcast notification can meet the upgrading function, an upgradable response message can be responded to the upgrading initiating equipment, and the transmission and upgrading process of an upgrading packet are started; if some equipment is busy and is carrying out other high-load services, the rest resources can not meet the upgrading function, and the requirement related to the upgrading function is not met, the equipment is busy in response, so that the upgrading packet initiator does not send the upgrading packet to the equipment any more. Each equipment receiving the upgrade package in the community can be used as a propagator of the upgrade package, and the propagator can simultaneously diffuse the upgrade package to multiple pieces of equipment in a network, so that the upgrade efficiency is greatly improved. Moreover, the devices which transmit the upgrade packages to each other are not limited to the same type of devices (if both communication parties are not required to be the access control host), 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 may determine whether to store the upgrade package according to its own storage space (flash size), and there are devices capable of storing the upgrade package in a common community. When the equipment which has stored the upgrade package receives the upgrade package of the version of the equipment type again, the version number in the upgrade package is compared, and the existing old version upgrade package is replaced by the new version upgrade package. Devices with upgrade packages may periodically broadcast upgrade notification messages, which may ensure that all upgradeable devices have been upgraded. Therefore, the old version equipment added into the system subsequently can also finish upgrading automatically, 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 accessed to the IOT platform or not, does not depend on whether the equipment is powered on currently or not, can completely cover the equipment to be upgraded in the community, and cannot cause the problem of missing upgrade.
Further, the first device and the second device are built with an embedded web server or built with a web service thread.
In this embodiment, an embedded web server is built on a device: the part of work is completed before equipment development leaves a factory, the types of ready-made open source servers comprise Thttpd, lighttpd, apache, appWeb and the like, and the equipment can be modified and customized by self due to the open source, has strong and stable functions, and can be used as a propagator of an upgrade package with service functions; the Web server can respond to real-time HTTP requests of a plurality of clients and establish connection for each client, which is the primary function of the embedded Web server; real-time monitoring and management of equipment, online checking and configuration of parameters and the like; and security control mechanisms for device access, including SSL, user password, and the like. And a web service thread is created on the device: the device developer realizes the function similar to an embedded web server in the main program of the device, namely, the main program creates a web service thread to complete the interaction of the related communication protocol and the transmission of the upgrade package.
The embedded web server is built on the equipment in the intelligent community, the equipment number (such as 5 and 5 equipment services) of equipment to be upgraded, which can be served simultaneously, can be set according to server resources and equipment performance, when the equipment initiating upgrading receives more than 5 responses of the equipment capable of upgrading, the subsequent response information can be directly discarded, and the server is in a full load state at the moment. Meanwhile, the platform server is not interfered to issue the upgrade package to other devices which are not upgraded, so that the method is a multi-task parallel process, and can be used for upgrading large-batch devices simultaneously, thereby greatly improving the upgrade efficiency and reducing the labor cost.
As shown in the schematic diagram of the interaction flow between the server and the device shown in fig. 3, the IOT server first obtains the software version information of the device from the device, and after obtaining the response of the device, if the software version information meets the requirement of the upgrade package, the IOT server will issue an upgrade notification (including the URL of the upgrade package) to the device, and after the device correctly responds, the upgrade package can be downloaded through the https protocol, and after the download is completed and 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 an HTTP channel targeted for security, simply a Secure version of HTTP. Namely, an SSL layer is added under HTTP, the security base of HTTPS is SSL, and therefore SSL is needed for encryption details. It is now widely used for security sensitive communications over the world wide web.
Further, the receiving a response message of at least one of the second devices 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 target software version number, transmitting the upgrade package to the second device for upgrading, and caching a DID (digital 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 that the second device responds and can transfer the upgrade package, transmitting the upgrade package to the second device for forwarding service, and caching the DID identification number of the second device in the response message in the first device so as to locate the second device.
As shown in fig. 4, in this embodiment, a device initiating an upgrade sends an upgrade notification message (including a device type of a device to be upgraded, a target version number of the upgrade, and a DID identification number of the device initiating the upgrade) through UDP broadcast, and after obtaining a response message (including software version information, a device type, and a device DID identification number) of other devices, if software version information and a device type included in the response message meet an upgrade requirement, an upgrade package starts transmission, and after the transmission is completed and the device passes verification, an upgrade completion message is responded to the device initiating the upgrade. The DID is a unique identification code of the equipment, and the MAC address of the common equipment and the specific equipment manufacturer code are generated and used for uniquely identifying one piece of equipment.
Meanwhile, the device initiating the upgrade needs to cache the device DID (device unique identifier) of the device to be upgraded, and when the upgrade is abnormal, the device to be upgraded can be accurately positioned. When the server finishes partial equipment upgrading and is in a relatively idle state, the server can broadcast the upgrade initiation notification message again and start a new upgrade package transmission task until no response of the upgradable equipment is received, namely all the upgradable equipment in the network finishes upgrading.
Further, the first device and the second device carry SSL certificate files.
In this embodiment, an SSL certificate file is stored in the device (the device can carry an SSL certificate when leaving a factory, and can also be issued by a platform server), for example, iot xcalcoot.
Further, regarding the processing of the upgrade exception condition:
(1) When the equipment in the community does not receive the upgrading packet due to power failure, the software version numbers of the surrounding equipment of the same type can be obtained through broadcasting after the equipment is powered on, and if the software version numbers are found to be inconsistent, the upgrading packet can be obtained from the surrounding equipment to finish upgrading.
(2) When the equipment in the community does not receive the upgrade package due to network failure, after the equipment network is recovered, the software version numbers of the peripheral equipment of the same type can be obtained through broadcasting, and if the software version numbers are found to be inconsistent, the upgrade package can be obtained from the peripheral equipment to finish upgrading.
(3) When network abnormity occurs in the process that equipment in a community receives an upgrade package, the transmission of the upgrade package is in error, after the network is recovered, the upgrade package does not need to be transmitted again, a communication protocol has a breakpoint continuous transmission function (part of contents of a transmission file is supported, the size of data of the currently transmitted upgrade package can be acquired), and each equipment has an equipment DID (unique identification), so that the equipment initiating the upgrade can accurately find the equipment to be upgraded which is transmitted before, and the transmission of the residual upgrade package data is completed.
Referring to fig. 5, a flow chart of an upgrading method for a device in an intelligent community according to another embodiment of the present invention is shown, in this embodiment, the method is applied to a second device, and the method includes:
s51, receiving an upgrade notification message which indicates an upgrade package and is sent by first equipment in a local area network in a UDP (user Datagram protocol) broadcasting mode, wherein the upgrade notification message at least comprises an equipment type and a target software version number;
and 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 a device of the same type as the first device and/or a device of a different type from the first device.
Further, an embedded web server is built on the first device and the second device or a web service thread is created on the first device and the second device.
Further, the sending a response message to notify the first device to receive the upgrade package transmitted by the first device includes:
after the device type and the target software version number are matched with the device type and the target software version number, sending a response message to inform the first device to receive the upgrade package transmitted by the first device for upgrading, wherein the response message comprises a DID identification number of the second device; or,
and when the current state is in the idle state, sending a response message to inform the first equipment 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.
Further, the upgrade notification message further includes a check value corresponding to the upgrade package; the receiving the upgrade package transmitted by the first device for upgrading includes:
and verifying the upgrade package after transmission according to the verification value of the upgrade package, and if the verification is passed, responding an upgrade completion message to the first equipment.
In this embodiment, when the second device receives the upgrade notification message, it first obtains the upgrade related information (device type, destination software version number, upgrade package check value, DID of the device initiating upgrade) 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, it determines whether the software version number of the second device is not consistent with the destination software version number, and if so, it indicates that the second device has completed upgrading, and then does not respond to the upgrade notification message; if the updated package is not consistent with the updated package, the equipment is indicated to be equipment needing updating, a check value (MD 5 or CRC 32) of the updated package is cached in the equipment, simultaneously, an upgradable response message (DID, version information and the like of the equipment to be updated) is responded to the updating initiating equipment, the transmission of the updated package is started, after the transmission of the updated package is finished, the updated package is checked according to the check value of the updated package, if the check is passed, an updating finishing message is responded to the updating initiating equipment, and the updating process is finished. If the upgrading package is not verified after the equipment to be upgraded receives the upgrading package, the wrong upgrading package can be deleted, meanwhile, the upgrading abnormal message is responded to the upgrading initiating equipment, the upgrading package is retransmitted until the verification is passed, and the upgrading is completed.
On the other hand, the server resources of other types of idle devices in the community are fully utilized to transmit the upgrade package, a device receiving the upgrade package can acquire the device type (for example 1002) suitable for the upgrade package through the broadcast upgrade notification message of an 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 upgrade is performed (meanwhile, after the device is upgraded, an upgrade notification message indicating the upgrade package can be sent to other devices in the local area network in a UDP (user datagram protocol) broadcast mode to transmit the upgrade package to the other devices), otherwise, only the service of 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 to the other devices adapted to the upgrade package.
Referring to fig. 6, which is a schematic structural diagram illustrating an upgrading apparatus for a device in an intelligent community according to an embodiment of the present invention, in this embodiment, the apparatus 60 is applied to a first device, and includes:
the broadcasting unit 61 is configured to send an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP broadcast manner after the first device acquires the upgrade package, where the upgrade notification message at least includes a device type and a target software version number;
a transmitting unit 62, configured to receive a response message of at least one second device, and transmit the upgrade package to the second device, where the second device includes a device of the same type as the first device and/or a device of a different type from the first device.
The method for acquiring 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 issuing the upgrade package to the first equipment by the platform server through accessing the platform server.
And the first equipment and the second equipment are built with embedded web servers or web service threads.
The upgrade notification message further includes a check value corresponding to the upgrade package, so that the second device can check the upgrade package after transmission according to the check value of the upgrade package.
Further, the transmission unit 62 includes:
a first transmission unit, configured to receive a response message of at least one second device that matches the device type and the destination software version number, transmit the upgrade package to the second device for upgrading, and cache a DID identification number of the second device in the response message in the first device, so as to locate the second device; or,
a second transmission unit, configured to receive at least one response message that the second device replies that the upgrade package can be forwarded, transmit the upgrade package to the second device for forwarding service, and cache the DID identification number of the second device in the response message in the first device, so as to locate the second device.
Referring to fig. 7, a schematic structural diagram of an upgrading apparatus for a device in an intelligent community according to another embodiment of the present invention is shown, in this embodiment, the apparatus 70 is applied to a second device, and includes:
an obtaining unit 71, configured to obtain an upgrade notification message that indicates an upgrade package and is sent by a first device in a local area network in a UDP broadcast manner, where the upgrade notification message at least includes a device type and a target software version number;
a receiving unit 72, configured to send a response message to notify the first device to receive the upgrade package transmitted by the first device, where the second device includes a device of the same type as the first device and/or a device of a different type from the first device.
And the first equipment and the second equipment are built with embedded web servers or web service threads.
Further, the receiving unit 72 includes:
a first receiving unit, configured to send a response message to notify the first device after comparing that the device type and the target software version number match themselves, so as to receive the upgrade package transmitted by the first device for upgrade, where the response message includes a DID identification number of the second device; or,
and a second receiving unit, configured to send a response message to notify the first device when the current state is in an idle state, so as to receive the upgrade package transmitted by the first device and perform forwarding service, where the response message includes a DID identification number of the second device.
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 transmission according to the verification value of the upgrade package, and responding an upgrade completion message to the first equipment if the verification is passed.
Each unit module of the apparatus 60/70 can respectively execute the corresponding steps in the above method embodiments, and therefore, the detailed description of each unit module is omitted here, and please refer to the description of the corresponding steps above.
An embodiment of the present invention further provides an apparatus, including the upgrading apparatus for an apparatus in an intelligent community as described above, where the upgrading apparatus for an apparatus in an intelligent community may adopt the structure in the embodiment of fig. 6/7, and correspondingly, the technical solution in the embodiment of the method shown in fig. 1/5 may be implemented, and the implementation principle and the technical effect are similar, and reference may be made to relevant descriptions in the above embodiments in detail, and details are not repeated here.
The apparatus comprises: a device having a photographing function, such as a mobile phone, a digital camera, or a tablet computer, or a device having an image processing function, or a device having an image display function. The apparatus may include components such as a memory, a processor, an input unit, a display unit, a power supply, and the like.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (e.g., an image playing function, etc.) required by at least one function, and the like; the storage data area may store data created according to use of the device, and the like. Further, 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 further 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 numeric or character or image information and 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 input by or provided to a user and various graphical user interfaces of the device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit may include a Display panel, and optionally, 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 overlie the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor to determine the type of touch event, and the processor then provides a corresponding visual output on the display panel in accordance with the type of touch event.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable storage medium contained in the memory in the foregoing embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium has stored therein at least one instruction that is loaded and executed by a processor to implement the method for upgrading a device in an intelligent community as shown in fig. 1/5. The computer readable storage medium may be a read-only memory, a magnetic or optical disk, or the like.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the apparatus embodiment, and the storage medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference may be made to some descriptions of the method embodiment for relevant points.
Also, in this document, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
While the foregoing specification illustrates and describes the preferred embodiments of the present invention, it is to be understood that the invention is not limited to the precise forms disclosed herein and is not to be construed as limited to other embodiments, but may be used in various other combinations, modifications, and environments and may be modified within the scope of the inventive concept as expressed herein, by the above teachings or by the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (13)

1. A method for upgrading equipment in an intelligent community is applied to first equipment, and comprises the following steps:
after the first device acquires an upgrade package, sending an upgrade notification message indicating the upgrade package to a second device in a local area network in a UDP (user Datagram protocol) 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 the same type of device as the first device and/or different types of devices from the first device.
2. The method as claimed in claim 1, wherein the manner of obtaining the upgrade package by the first device comprises:
connecting with the first equipment by using a PC end tool to transmit the upgrade package to the first equipment; or,
and issuing the upgrade package to the first equipment by the platform server through accessing the platform server.
3. The method as claimed in claim 1, wherein the first device and the second device are built with an embedded web server or a web service thread.
4. The method as claimed in claim 1, wherein the receiving a response message from at least one of the second devices and transmitting the upgrade package to the second device comprises:
receiving a response message of at least one second device matched with the device type and the target software version number, transmitting the upgrade package to the second device for upgrading, and caching a DID (digital 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 that the second device responds and can transfer the upgrade package, transmitting the upgrade package to the second device for forwarding service, and caching the DID identification number of the second device in the response message in the first device so as to locate the second device.
5. The method as claimed in claim 4, 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 transmission according to the check value of the upgrade package.
6. A method for upgrading equipment in an intelligent community is applied to second equipment, and the method comprises the following steps:
receiving an upgrade notification message which indicates an upgrade package and is sent by first equipment in a local area network in a UDP (user Datagram protocol) broadcasting mode, wherein the upgrade notification message at least comprises an equipment type and a target software version number;
and sending a response message to inform the first equipment to receive the upgrade package transmitted by the first equipment, wherein the second equipment comprises equipment of the same type as the first equipment and/or equipment of different types from the first equipment.
7. The method as claimed in claim 6, wherein the first device and the second device are built with an embedded web server or a web service thread.
8. The method for upgrading a device in a smart community as claimed in claim 6, wherein the sending a response message to notify the first device to receive the upgrade package transmitted by the first device comprises:
after the device type and the target software version number are matched with the device type and the target software version number, sending a response message to inform the first device to receive the upgrade package transmitted by the first device for upgrading, wherein the response message comprises a DID identification number of the second device; or,
and when the current state is in the idle state, sending a response message to inform the first equipment 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.
9. The method for upgrading devices in a smart community as claimed in claim 8, wherein the upgrade notification message further includes a check value corresponding to the upgrade package; the receiving the upgrade package transmitted by the first device for upgrading includes:
and verifying the upgrade package after transmission according to the verification value of the upgrade package, and if the verification is passed, responding an upgrade completion message to the first equipment.
10. The utility model provides an upgrading device of equipment in wisdom community which characterized in that is applied to first equipment, the device includes:
the broadcast unit is used for sending an upgrade notification message indicating the upgrade package to second equipment in a local area network in a UDP (user Datagram protocol) broadcast mode after the first equipment acquires the upgrade package, wherein the upgrade notification message at least comprises an equipment 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, and the second device comprises a device of the same type as the first device and/or a device of a different type from the first device.
11. The utility model provides an upgrading device of equipment in wisdom community which characterized in that is applied to the second equipment, the device includes:
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 and is sent by first equipment in a local area network in a UDP (user Datagram protocol) broadcast mode, and the upgrade notification message at least comprises an equipment 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 package transmitted by the first device, where the second device includes a device of the same type as the first device and/or a device of a different type from the first device.
12. An apparatus comprising a processor, a memory and a computer program stored in the memory for execution by the processor to perform the steps of a method of upgrading an apparatus in a smart community as claimed in any one of claims 1 to 5.
13. A device comprising a processor, a memory and a computer program stored in said memory, said computer program being executable by said processor to perform the steps of a method of upgrading a device in a smart community as claimed in any one of claims 6 to 9.
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 true CN115174341A (en) 2022-10-11
CN115174341B 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006481A1 (en) * 2012-06-29 2014-01-02 Clifford A. Frey Methods for exchanging network management messages using udp over http protocol
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006481A1 (en) * 2012-06-29 2014-01-02 Clifford A. Frey Methods for exchanging network management messages using udp over http protocol
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
CN115174341B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
US9244816B2 (en) Application testing using sandboxes
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
US8200769B2 (en) Downloading a plug-in on an instant messaging client
WO2018113514A1 (en) Cdn management system, method and apparatus
US11716390B2 (en) Systems and methods for remote management of appliances
WO2018161807A1 (en) User identity verification method and apparatus
US9537818B2 (en) Enhanced DHCP method
US20080163227A1 (en) Server and client, and update supporting and performing methods thereof
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN104635543A (en) Method and device for carrying out management operation
CN112968929B (en) Server management method and system
US20150326435A1 (en) Parameter setting system, program management apparatus, and information processing apparatus
JP5610654B2 (en) Apparatus for providing terminal management package and method for receiving terminal management package
WO2003093959A2 (en) Secure transmission and installation of an application
CN104253792A (en) Substrate management controller virtual system and method
CN112948008A (en) Ironic based physical bare computer management method
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN116546062A (en) Cloud mobile phone control method and device, cloud server and storage medium
CN115174341A (en) Upgrading method and device for equipment in smart community and equipment
US11962465B2 (en) Control system, electronic device, and control method
KR20120066395A (en) System and method for supporting of network service
KR101251099B1 (en) Method for monitoring a process of remote access and system for monitoring a process of remote access
JP2015046706A (en) Relay program, relay device, and relay method
JP2008234553A (en) Patch application method and patch receiving client
CN117348830A (en) Multi-system cooperative control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant