patents.google.com

CN102136934B - Method, device and network system for realizing remote upgrading of Zigbee equipment - Google Patents

  • ️Wed Jan 21 2015
Method, device and network system for realizing remote upgrading of Zigbee equipment Download PDF

Info

Publication number
CN102136934B
CN102136934B CN201010526831.4A CN201010526831A CN102136934B CN 102136934 B CN102136934 B CN 102136934B CN 201010526831 A CN201010526831 A CN 201010526831A CN 102136934 B CN102136934 B CN 102136934B Authority
CN
China
Prior art keywords
firmware
upgrade
zigbee
applicable
gateway
Prior art date
2010-10-21
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
CN201010526831.4A
Other languages
Chinese (zh)
Other versions
CN102136934A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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.)
2010-10-21
Filing date
2010-10-21
Publication date
2015-01-21
2010-10-21 Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
2010-10-21 Priority to CN201010526831.4A priority Critical patent/CN102136934B/en
2011-05-19 Priority to PCT/CN2011/074361 priority patent/WO2011137793A1/en
2011-07-27 Publication of CN102136934A publication Critical patent/CN102136934A/en
2015-01-21 Application granted granted Critical
2015-01-21 Publication of CN102136934B publication Critical patent/CN102136934B/en
Status Active legal-status Critical Current
2030-10-21 Anticipated expiration legal-status Critical

Links

  • 238000000034 method Methods 0.000 title claims abstract description 121
  • 238000009826 distribution Methods 0.000 claims abstract description 47
  • 238000007726 management method Methods 0.000 claims description 335
  • 238000011084 recovery Methods 0.000 claims description 69
  • 230000004044 response Effects 0.000 claims description 14
  • 230000003993 interaction Effects 0.000 claims description 11
  • 238000005516 engineering process Methods 0.000 abstract description 20
  • 238000012986 modification Methods 0.000 abstract description 2
  • 230000004048 modification Effects 0.000 abstract description 2
  • 230000001360 synchronised effect Effects 0.000 description 12
  • 238000010586 diagram Methods 0.000 description 11
  • 230000008569 process Effects 0.000 description 9
  • 230000006870 function Effects 0.000 description 8
  • 238000012546 transfer Methods 0.000 description 7
  • 238000004891 communication Methods 0.000 description 6
  • 238000006243 chemical reaction Methods 0.000 description 3
  • 101150012579 ADSL gene Proteins 0.000 description 2
  • 102100020775 Adenylosuccinate lyase Human genes 0.000 description 2
  • 108700040193 Adenylosuccinate lyases Proteins 0.000 description 2
  • 230000001413 cellular effect Effects 0.000 description 2
  • 238000013461 design Methods 0.000 description 2
  • 238000004519 manufacturing process Methods 0.000 description 2
  • 230000008859 change Effects 0.000 description 1
  • 238000013480 data collection Methods 0.000 description 1
  • 238000001914 filtration Methods 0.000 description 1
  • 238000012423 maintenance Methods 0.000 description 1
  • 238000013507 mapping Methods 0.000 description 1
  • 238000005259 measurement Methods 0.000 description 1
  • 230000007246 mechanism Effects 0.000 description 1
  • 238000012544 monitoring process Methods 0.000 description 1
  • 230000002093 peripheral effect Effects 0.000 description 1
  • 238000012545 processing Methods 0.000 description 1
  • 230000004622 sleep time Effects 0.000 description 1
  • 238000003860 storage Methods 0.000 description 1
  • 230000001960 triggered effect Effects 0.000 description 1

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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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
    • 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/0894Policy-based network configuration management
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

本发明实施例提供一种实现Zigbee设备远程升级的方法、装置及网络系统,实现Zigbee设备远程升级的方法包括:利用远程设备管理协议接收设备管理服务器发送的固件下载指令,根据固件下载指令获取固件;利用远程设备管理协议接收远程设备管理服务器发送的所述固件所适用的设备范围指示信息和固件下发及升级指示信息;根据固件下发及升级指示信息和固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作。使用该方案,能够在对采用Zigbee技术的M2M终端,改动很小的情况下进行远程固件升级。

Embodiments of the present invention provide a method, device, and network system for realizing remote upgrade of Zigbee equipment. The method for realizing remote upgrade of Zigbee equipment includes: using the remote equipment management protocol to receive the firmware download instruction sent by the equipment management server, and obtaining the firmware according to the firmware download instruction. ;Use the remote device management protocol to receive the device range indication information applicable to the firmware and the firmware distribution and upgrade indication information sent by the remote device management server; according to the firmware distribution and upgrade indication information and the device range indication information applicable to the firmware, Using the Zigbee device firmware upgrade management protocol, the acquired firmware is delivered to the Zigbee device to which the firmware is applicable, and the Zigbee device to which the firmware is applicable is controlled to perform a firmware upgrade operation. Using this solution, it is possible to carry out remote firmware upgrade with little modification to the M2M terminal adopting Zigbee technology.

Description

实现Zigbee设备远程升级的方法、装置及网络系统Method, device and network system for realizing remote upgrade of Zigbee equipment

技术领域 technical field

本发明涉及通信技术领域,特别涉及一种实现Zigbee设备远程升级的方法、装置及网络系统。The invention relates to the field of communication technology, in particular to a method, device and network system for realizing remote upgrade of Zigbee equipment.

背景技术 Background technique

机器通信(Machine-to-Machine Communications,M2M)是一种以机器智能交互为核心的、网络化的应用与服务,通过在机器内部嵌入无线或有线通信模块以及应用处理逻辑,实现无需人工干预的数据通信,以便满足用户对监控、指挥调度、数据采集和测量等方面的信息化需求。图1示出了一种典型的M2M系统架构,其中,各种M2M终端(如传感器、微控制器等)通过传感网络技术连接到M2M网关,再通过M2M网关利用远程接入技术(如2G/3G无线蜂窝网络技术、非对称数字用户环路(Asymmetric DigitalSubscriber Line,ADSL)技术)连接到M2M业务平台,而各种应用(如电力抄表、智能交通等)则是通过M2M业务平台获取M2M终端采集的数据或者对M2M终端进行远程的控制和管理。Machine-to-Machine Communications (M2M) is a networked application and service centered on machine intelligence interaction. By embedding wireless or wired communication modules and application processing logic inside the machine, it can achieve Data communication, in order to meet users' informatization needs for monitoring, command and dispatch, data collection and measurement. Figure 1 shows a typical M2M system architecture, in which various M2M terminals (such as sensors, microcontrollers, etc.) /3G wireless cellular network technology, asymmetric digital subscriber loop (Asymmetric Digital Subscriber Line, ADSL) technology) is connected to the M2M service platform, and various applications (such as power meter reading, intelligent transportation, etc.) are obtained through the M2M service platform. The data collected by the terminal or the remote control and management of the M2M terminal.

远程设备管理是M2M系统的一个重要功能,远程设备管理是指M2M应用或M2M服务提供商需要通过M2M业务平台以及M2M网关远程地对处于末梢传感网络中的M2M终端进行日常管理和维护,具体包括对M2M终端的远程配置管理、性能管理、故障管理、软件/固件升级等多个方面的功能。这些设备管理功能需要通过M2M业务平台和M2M网关中的设备管理能力组件来配合完成。Remote device management is an important function of the M2M system. Remote device management means that M2M applications or M2M service providers need to remotely manage and maintain M2M terminals in the peripheral sensor network through M2M service platforms and M2M gateways. Including remote configuration management of M2M terminals, performance management, fault management, software/firmware upgrade and many other functions. These device management functions need to be completed through cooperation between the M2M service platform and the device management capability components in the M2M gateway.

现有技术中,基于广域网的远程设备管理技术主要有开放移动联盟(Open Mobile Alliance,OMA)所定义的设备管理(Device Management,DM)规范(以下简称DM),以及宽带论坛(Broadband Forum)所定义的TR069规范(以下简称TR069)。其中,DM主要应用于移动网络环境(如2G/3G蜂窝网络)中,而TR069则主要用于固定宽带网络环境(如ADSL),二者都能提供对单个设备的远程管理维护功能。而在传感网络中,目前M2M终端常用的一种技术是Zigbee技术,它不仅提供了本地传感网络中设备之间的基本通信能力,也提供了一定的设备管理能力,比如固件升级(Zigbee OTAUpgrade)。Zigbee技术支持同时对多个Zigbee网络设备进行固件升级操作,也提供了多种固件升级的执行方式。In the prior art, remote device management technologies based on WAN mainly include the Device Management (DM) specification (hereinafter referred to as DM) defined by the Open Mobile Alliance (OMA), and the Broadband Forum (Broadband Forum) The defined TR069 specification (hereinafter referred to as TR069). Among them, DM is mainly used in mobile network environment (such as 2G/3G cellular network), while TR069 is mainly used in fixed broadband network environment (such as ADSL), both of which can provide remote management and maintenance functions for a single device. In the sensor network, a technology commonly used by M2M terminals is Zigbee technology, which not only provides basic communication capabilities between devices in the local sensor network, but also provides certain device management capabilities, such as firmware upgrades (Zigbee OTA Upgrade). Zigbee technology supports firmware upgrade operations for multiple Zigbee network devices at the same time, and also provides a variety of firmware upgrade execution methods.

现在,M2M业务平台中的设备管理能力组件能够采用上述基于广域网的远程设备管理技术(DM或者TR069)对M2M网关进行远程管理;M2M网关中的设备管理能力组件可以采用上述传感网络设备管理技术(Zigbee)对传感网络末梢的M2M终端进行本地管理。然而,由于广域网的远程设备管理技术和传感网设备管理技术存在的差异性,M2M应用或M2M服务提供商却无法利用基于广域网的设备管理技术通过M2M业务平台和M2M网关直接对M2M终端进行管理。Now, the device management capability component in the M2M service platform can use the above-mentioned WAN-based remote device management technology (DM or TR069) to remotely manage the M2M gateway; the device management capability component in the M2M gateway can use the above-mentioned sensor network device management technology (Zigbee) Locally manage M2M terminals at the end of the sensor network. However, due to the differences between the remote device management technology of the WAN and the device management technology of the sensor network, M2M applications or M2M service providers cannot use the device management technology based on the WAN to directly manage M2M terminals through the M2M service platform and the M2M gateway. .

现有技术提供一种使用简单网络管理协议(Simple Network ManagementProtocol,SNMP)协议对M2M终端进行远程管理的方法,如图2所示,其中,SNMP管理站上的管理应用模块通过SNMP协议将设备升级请求发送到接入点(Network Access Point,AP)上的简单网络管理协议代理SNMP Agent,该设备升级请求被转发到M2M终端上的SNMP Agent,由M2M终端上的SNMP Agent与本地建立的SNMP管理信息库(MIB)进行信息交互,从而实现对M2M终端进行固件升级。The existing technology provides a method for remotely managing M2M terminals using the Simple Network Management Protocol (SNMP) protocol, as shown in Figure 2, wherein the management application module on the SNMP management station upgrades the device through the SNMP protocol The request is sent to the simple network management protocol agent SNMP Agent on the access point (Network Access Point, AP), and the device upgrade request is forwarded to the SNMP Agent on the M2M terminal, which is managed by the SNMP Agent on the M2M terminal and the locally established SNMP The information base (MIB) performs information exchange, so as to realize the firmware upgrade of the M2M terminal.

现有技术具有如下缺点:Prior art has following shortcoming:

现有技术需要M2M终端上具有SNMP Agent和SNMP管理信息库(MIB),即需要M2M终端支持SNMP协议,但是现已应用于传感网络的大量M2M终端并不支持SNMP协议,因此,需要进行固件升级时,对现已应用的M2M终端的改动很大,提高了运营成本。The existing technology requires the M2M terminal to have SNMP Agent and SNMP Management Information Base (MIB), that is, the M2M terminal needs to support the SNMP protocol. However, a large number of M2M terminals that have been applied to the sensor network do not support the SNMP protocol. During the upgrade, the existing M2M terminals have been greatly changed, which increases the operating cost.

发明内容 Contents of the invention

本发明实施例提供一种实现Zigbee设备远程升级的方法、装置及网络系统,能够在对采用Zigbee技术的M2M终端,改动很小的情况下进行远程固件升级。Embodiments of the present invention provide a method, device and network system for realizing remote upgrade of Zigbee equipment, which can perform remote firmware upgrade with little modification to M2M terminals adopting Zigbee technology.

有鉴于此,本发明实施例提供:In view of this, embodiments of the present invention provide:

一种实现Zigbee设备远程升级的方法,包括:A method for realizing remote upgrading of Zigbee equipment, comprising:

利用远程设备管理协议接收设备管理服务器发送的固件下载指令,根据所述固件下载指令获取固件;Using the remote device management protocol to receive the firmware download instruction sent by the device management server, and obtain the firmware according to the firmware download instruction;

利用远程设备管理协议接收远程设备管理服务器发送的所述固件所适用的设备范围指示信息和固件下发及升级指示信息;Using the remote device management protocol to receive the device range indication information to which the firmware is applicable and the firmware delivery and upgrade indication information sent by the remote device management server;

根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作。According to the firmware delivery and upgrade instruction information and the device range instruction information applicable to the firmware, the Zigbee device firmware upgrade management protocol is used to issue the acquired firmware to the Zigbee device applicable to the firmware, and control the The Zigbee device to which the firmware applies performs a firmware upgrade operation.

一种网关,包括:A gateway comprising:

远程管理信息交互单元,用于利用远程设备管理协议接收设备管理服务器发送的固件下载指令、所述固件所适用的设备范围指示信息和固件下发及升级指示信息;The remote management information interaction unit is used to receive the firmware download instruction sent by the device management server, the device range instruction information to which the firmware is applicable, and the firmware delivery and upgrade instruction information sent by the remote device management protocol;

固件获取单元,用于根据所述固件下载指令,获取固件;a firmware acquisition unit, configured to acquire firmware according to the firmware download instruction;

升级单元,用于根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作。The upgrade unit is used to issue the obtained firmware to the Zigbee device to which the firmware is applicable by using the Zigbee device firmware upgrade management protocol according to the firmware delivery and upgrade instruction information and the device range instruction information to which the firmware is applicable , and control the Zigbee device to which the firmware is applicable to perform a firmware upgrade operation.

一种网络系统,包括上述网关和设备管理服务器,其中,A network system, including the above-mentioned gateway and a device management server, wherein,

设备管理服务器,用于利用远程设备管理协议,向所述网关发送固件下载指令、所述固件所适用的设备范围指示信息和固件下发及升级指示信息。The device management server is configured to use a remote device management protocol to send a firmware download instruction, device range indication information to which the firmware applies, and firmware delivery and upgrade indication information to the gateway.

本发明实施例中网关根据设备管理服务器发送的固件所适用的设备范围指示信息,确定该固件所适用的Zigbee设备,根据所述设备管理服务器发送的固件下发及升级指示信息,向所述固件所适用的Zigbee设备下发该固件,并控制其执行固件升级操作,这样可以实现设备管理服务器控制Zigbee设备进行固件升级,不需要Zigbee设备支持SNMP协议,因此对Zigbee设备的改动很小。In the embodiment of the present invention, the gateway determines the Zigbee device to which the firmware is applicable according to the device scope instruction information sent by the device management server, and sends the firmware to the firmware according to the firmware delivery and upgrade instruction information sent by the device management server. Applicable Zigbee devices deliver the firmware and control it to perform firmware upgrade operations, so that the device management server can control the Zigbee devices to perform firmware upgrades, and the Zigbee devices do not need to support the SNMP protocol, so the changes to the Zigbee devices are small.

附图说明 Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1是现有技术提供的M2M网络结构图;FIG. 1 is a structural diagram of an M2M network provided by the prior art;

图2是现有技术提供的M2M网络中对M2M终端进行远程管理的示意图;FIG. 2 is a schematic diagram of remote management of M2M terminals in an M2M network provided by the prior art;

图3是本发明一实施例提供的实现Zigbee设备远程升级的方法的流程图;Fig. 3 is the flow chart of the method for realizing Zigbee device remote upgrade provided by an embodiment of the present invention;

图4是本发明实施例提供的用于M2M设备固件升级的树状结构模型图;FIG. 4 is a tree structure model diagram for M2M device firmware upgrade provided by an embodiment of the present invention;

图5是本发明实施例提供的基于DM协议的实现Zigbee设备远程升级的方法的流程图;Fig. 5 is the flow chart of the method for realizing Zigbee device remote upgrade based on DM protocol that the embodiment of the present invention provides;

图6是本发明实施例提供的采用普通方式的远程升级方法流程图;FIG. 6 is a flow chart of a remote upgrade method in a common manner provided by an embodiment of the present invention;

图7是本发明实施例提供的采用同步方式的远程升级方法流程图;FIG. 7 is a flow chart of a remote upgrade method in a synchronous manner provided by an embodiment of the present invention;

图8是本发明实施例提供的采用定时方式的远程升级方法流程图;Fig. 8 is a flowchart of a remote upgrade method using a timing method provided by an embodiment of the present invention;

图9是本发明实施例提供的先触发Zigbee设备分发固件,再触发其升级的方法流程图;Fig. 9 is a flow chart of a method for first triggering Zigbee equipment to distribute firmware and then triggering its upgrade provided by an embodiment of the present invention;

图10是本发明实施例提供的固件恢复操作方法流程图;Fig. 10 is a flowchart of a firmware recovery operation method provided by an embodiment of the present invention;

图11是TR069协议所支持的下载文件的结构示意图;Fig. 11 is a schematic structural diagram of a downloaded file supported by the TR069 protocol;

图12是本发明实施例提供的基于TR069协议实现Zigbee设备远程升级的方法的流程图;Fig. 12 is the flow chart of the method for realizing remote upgrade of Zigbee equipment based on the TR069 protocol provided by the embodiment of the present invention;

图13A是本发明实施例提供的网关结构图;FIG. 13A is a structural diagram of a gateway provided by an embodiment of the present invention;

图13B是本发明实施例提供的升级单元的一种结构图;Fig. 13B is a structural diagram of an upgrade unit provided by an embodiment of the present invention;

图13C是本发明实施例提供的升级单元另的一种结构图;Fig. 13C is another structural diagram of the upgrading unit provided by the embodiment of the present invention;

图13D是本发明实施例提供的升级单元又的一种结构图;Fig. 13D is another structural diagram of the upgrading unit provided by the embodiment of the present invention;

图14A是本发明实施例提供的一种固件下发单元结果图;Fig. 14A is a result diagram of a firmware issuing unit provided by an embodiment of the present invention;

图14B是本发明实施例提供的另一种固件下发单元结果图;Fig. 14B is a result diagram of another firmware issuing unit provided by an embodiment of the present invention;

图15是本发明实施例提供的网络系统结构图。Fig. 15 is a structural diagram of a network system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

参阅图3,本发明实施例提供一种Zigbee设备升级的方法,该方法包括:Referring to Fig. 3, the embodiment of the present invention provides a kind of method of Zigbee equipment upgrade, and this method comprises:

301、利用远程设备管理协议接收设备管理服务器发送的固件下载指令,根据所述固件下载指令,获取固件。301. Use a remote device management protocol to receive a firmware download instruction sent by a device management server, and acquire firmware according to the firmware download instruction.

其中,固件下载指令中可以携带固件,则该步骤可以直接从固件下载指令中获取固件,或者固件下载指令中携带固件的下载地址,则该步骤根据固件的下载地址,下载固件。Wherein, the firmware download instruction can carry firmware, then this step can directly obtain the firmware from the firmware download instruction, or the firmware download instruction carries the download address of the firmware, then this step downloads the firmware according to the download address of the firmware.

302、利用远程设备管理协议接收设备管理服务器发送的所述固件所适用的设备范围指示信息和固件下发及升级指示信息。302. Using a remote device management protocol, receive the device range instruction information to which the firmware is applicable and the firmware delivery and upgrade instruction information sent by the device management server.

需要说明的是,步骤301和步骤302没有时序上的先后顺序。It should be noted that, step 301 and step 302 are not sequential in sequence.

其中,本发明实施例的执行主体可以为网关,本发明实施例中的设备管理服务器可以是M2M业务平台,Zigbee设备可以是M2M设备。Wherein, the executor of the embodiment of the present invention may be a gateway, the device management server in the embodiment of the present invention may be an M2M service platform, and the Zigbee device may be an M2M device.

其中,本发明各实施例中的远程设备管理协议可以为DM协议或者TR069协议。具体的,设备管理服务器可以采用DM协议将固件所适用的设备范围指示信息(即后续实施例中的设备范围描述信息)配置在网关中管理树的相应节点上,也可以通过TR069协议扩展固件文件,在固件文件中加入固件所适用的Zigbee设备范围命令,Zigbee设备范围命令中包括该固件所适用的Zigbee设备范围指示信息,然后将扩展后的固件文件下发给网关,具体见后续实施例的详细描述。Wherein, the remote device management protocol in each embodiment of the present invention may be a DM protocol or a TR069 protocol. Specifically, the device management server can use the DM protocol to configure the device range indication information applicable to the firmware (that is, the device range description information in the subsequent embodiments) on the corresponding node in the management tree in the gateway, or extend the firmware file through the TR069 protocol , add the Zigbee device range command applicable to the firmware in the firmware file, the Zigbee device range command includes the Zigbee device range indication information applicable to the firmware, and then send the extended firmware file to the gateway, see the subsequent embodiments for details A detailed description.

其中,所述固件所适用的设备范围指示信息包括:所述固件所适用的Zigbee设备的标识、所述固件所适用的Zigbee设备生产商的标识、所述固件所适用的Zigbee设备类别标识和能升级到所获取的固件的Zigbee设备当前使用的固件版本范围指示信息中至少一个。Wherein, the device range indication information applicable to the firmware includes: the identification of the Zigbee device applicable to the firmware, the identification of the manufacturer of the Zigbee device applicable to the firmware, the class identification and capability of the Zigbee device applicable to the firmware At least one of the firmware version range indication information currently used by the Zigbee device that is upgraded to the acquired firmware.

具体的,设备管理服务器可以采用DM协议发送触发网关执行固件下发及升级的指示,以便触发网关中管理树的节点上保存的表示固件下发及升级的可执行命令;或者,也可以通过TR069协议扩展固件文件,在固件文件中加入固件升级方式命令,其中,固件升级方式命令为指示固件分发及分发后Zigbee设备立即升级的命令,或者,指示固件分发及所有Zigbee设备都成功下载固件后同步执行固件升级的命令,或者,指示固件分发及分发后Zigbee设备在预定的升级时间进行升级的命令等,然后将扩展后的固件文件发送给网关,具体见后续实施例的详细描述。Specifically, the device management server can use the DM protocol to send an instruction to trigger the gateway to execute firmware delivery and upgrade, so as to trigger the executable command stored on the node of the management tree in the gateway to indicate firmware delivery and upgrade; or, it can also pass TR069 The protocol extends the firmware file, and adds the firmware upgrade mode command to the firmware file. The firmware upgrade mode command is a command to instruct the Zigbee device to upgrade immediately after the firmware distribution and distribution, or to instruct the firmware distribution and synchronization after all Zigbee devices have successfully downloaded the firmware Execute the firmware upgrade command, or instruct the Zigbee device to upgrade the firmware at the scheduled upgrade time after distribution and distribution, and then send the expanded firmware file to the gateway. See the detailed description of the subsequent embodiments for details.

其中,所述固件下发及升级指示信息包括:固件下发指示信息和升级指示信息;在利用远程设备管理协议接收远程设备管理服务器发送的升级指示信息之前,该方法还包括:向设备管理服务器发送所述固件所适用的Zigbee设备的固件下载结果;所述利用远程设备管理协议接收远程设备管理服务器发送的升级指示信息具体为:在向设备管理服务器发送所述固件所适用的Zigbee设备的固件下载结果之后,接收所述设备管理服务器发送的升级指示信息,所述升级指示信息是所述设备管理服务器根据所述固件所适用的Zigbee设备的固件下载结果确定需要发送升级指示信息时所发送的。其中,升级指示信息可以指示具体的升级方式,见后续实施例的描述。Wherein, the firmware delivery and upgrade instruction information includes: firmware delivery instruction information and upgrade instruction information; before using the remote device management protocol to receive the upgrade instruction information sent by the remote device management server, the method further includes: sending the device management server Send the firmware download result of the Zigbee equipment that described firmware is applicable; Described utilize the remote equipment management protocol to receive the upgrading indication information that remote equipment management server sends and be specifically: send the firmware of the Zigbee equipment that described firmware is applicable to equipment management server After downloading the result, receive the upgrade instruction information sent by the device management server, the upgrade instruction information is sent when the device management server determines that the upgrade instruction information needs to be sent according to the firmware download result of the Zigbee device to which the firmware is applicable . Wherein, the upgrade indication information may indicate a specific upgrade mode, see descriptions of subsequent embodiments.

303、根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作。303. According to the firmware delivery and upgrade instruction information and the device range instruction information applicable to the firmware, use the Zigbee device firmware upgrade management protocol to issue the acquired firmware to the Zigbee device applicable to the firmware, and control The Zigbee device to which the firmware is applicable performs a firmware upgrade operation.

具体的下发固件括但不限于如下两种方式:The specific delivery of firmware includes but is not limited to the following two methods:

第一种方式:根据所述固件所适用的设备范围指示信息,确定所述固件所适用的Zigbee设备,采用单播方式向所述固件所适用的Zigbee设备发送通知消息,以通知所述固件所适用的Zigbee设备下载所述固件,该通知消息可以是Image Notify消息。The first method: according to the indication information of the equipment range applicable to the firmware, determine the Zigbee equipment applicable to the firmware, and send a notification message to the Zigbee equipment applicable to the firmware in a unicast manner to notify the firmware. The applicable Zigbee device downloads the firmware, and the notification message can be an Image Notify message.

第二种方式:采用广播方式向所述网关所管理的所有Zigbee设备下发通知消息,所述通知消息中携带所述固件所适用的Zigbee设备的信息,其中,所述固件所适用的Zigbee设备的信息包括:所述固件所适用的Zigbee设备的生产商标识、类别标识中至少一个,该通知消息可以是Image Notify消息。The second method: broadcast a notification message to all Zigbee devices managed by the gateway, and the notification message carries the information of the Zigbee device to which the firmware is applicable, wherein the Zigbee device to which the firmware is applicable The information includes: at least one of the manufacturer identification and category identification of the Zigbee device to which the firmware is applicable, and the notification message can be an Image Notify message.

具体的,固件下发及升级指示信息指示所述固件所适用的每个Zigbee设备成功下载固件后立即执行固件升级操作,网关利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备从所述网关上下载所述固件,分别向各下载成功的Zigbee设备发送立即升级的指示信息;或者,固件下发及升级指示信息指示在所述固件所适用的所有Zigbee设备都成功下载固件后立即执行固件升级操作,网关利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备从所述网关上下载所述固件,在所述固件所适用的所有Zigbee设备都成功下载固件之后,向所述固件所适用的所有Zigbee设备发送立即升级的指示信息,或者,网关利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备从所述网关上下载所述固件,在所述固件所适用的所有Zigbee设备成功下载之后,当某些固件所适用的Zigbee设备当前正处于休眠状态时,则选择所述固件所适用的所有Zigbee设备都处于激活态的一个时间点,分别向所述固件所适用的所有Zigbee设备发送指示在所选时间点进行固件升级的指示信息;或者,固件下发及升级指示信息指示所述固件所适用的每个Zigbee设备成功下载固件后在预定的升级时间执行固件升级操作,网关利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备从所述网关上下载所述固件,分别向所述固件所适用的所有Zigbee设备发送指示在所述预定的升级时间进行固件升级的指示信息。Specifically, the firmware distribution and upgrade instruction information indicates that each Zigbee device to which the firmware is applicable performs a firmware upgrade operation immediately after successfully downloading the firmware, and the gateway uses the Zigbee device firmware upgrade management protocol to instruct the Zigbee devices to which the firmware is applicable Download the firmware on the above-mentioned gateway, and send instruction information for immediate upgrade to each Zigbee device that has been downloaded successfully; or, the firmware distribution and upgrade instruction information indicates that all Zigbee devices to which the firmware is applicable have successfully downloaded the firmware and executed immediately Firmware upgrade operation, the gateway uses the Zigbee device firmware upgrade management protocol to instruct the Zigbee device to which the firmware is applicable to download the firmware from the gateway, after all the Zigbee devices to which the firmware is applicable have successfully downloaded the firmware, send the firmware to the All Zigbee devices applicable to the firmware send instruction information for immediate upgrade, or the gateway uses the Zigbee device firmware upgrade management protocol to instruct the Zigbee devices applicable to the firmware to download the firmware from the gateway. After all Zigbee devices are successfully downloaded, when the Zigbee devices to which some firmware is applicable are currently in a dormant state, select a point in time when all the Zigbee devices to which the firmware is applicable are in an active state, and apply All Zigbee devices in the system send instruction information indicating firmware upgrade at the selected time point; or, the firmware distribution and upgrade instruction information indicates that each Zigbee device to which the firmware is applied successfully downloads the firmware and executes the firmware upgrade at the scheduled upgrade time Operation, the gateway uses the Zigbee device firmware upgrade management protocol to instruct the Zigbee device to which the firmware is applicable to download the firmware from the gateway, and sends instructions to all the Zigbee devices to which the firmware is applicable to perform the upgrade at the scheduled upgrade time. Instructions for firmware upgrades.

进一步的,为了使设备管理服务器获知升级结果,该方法还包括:利用Zigbee设备固件升级管理协议向执行固件升级操作的Zigbee设备查询升级结果。Further, in order to let the device management server know the upgrade result, the method further includes: using the Zigbee device firmware upgrade management protocol to inquire about the upgrade result from the Zigbee device performing the firmware upgrade operation.

进一步的,为了能够向设备管理服务器提供升级结果,该方法还包括:利用远程设备管理协议接收设备管理服务器发送的升级结果请求消息,根据查询结果向所述设备管理服务器发送响应消息。Further, in order to provide the upgrade result to the device management server, the method further includes: using the remote device management protocol to receive the upgrade result request message sent by the device management server, and sending a response message to the device management server according to the query result.

进一步的,为了在有Zigbee设备升级失败时,不影响执行固件升级操作后的Zigbee网络的正常运行,该方法还包括:当查询结果表示至少一个Zigbee设备升级失败时,利用Zigbee设备固件升级管理协议向升级失败的Zigbee设备发送固件恢复命令,所述固件恢复命令用于指示升级失败的Zigbee设备恢复使用升级之前的固件;或者,当查询结果表示至少一个Zigbee设备升级失败时,利用Zigbee设备固件升级管理协议向执行固件升级操作的所有Zigbee设备都发送固件恢复命令,所述固件恢复命令用于指示恢复使用升级之前的固件。Further, in order not to affect the normal operation of the Zigbee network after performing the firmware upgrade operation when there is a Zigbee device upgrade failure, the method also includes: when the query result indicates that at least one Zigbee device upgrade fails, using the Zigbee device firmware upgrade management protocol Send a firmware recovery command to the Zigbee device that has failed to upgrade, and the firmware recovery command is used to indicate that the Zigbee device that has failed to upgrade resumes using the firmware before the upgrade; or, when the query result indicates that at least one Zigbee device has failed to upgrade, use the Zigbee device firmware to upgrade The management protocol sends a firmware recovery command to all Zigbee devices performing firmware upgrade operations, and the firmware recovery command is used to instruct to restore the use of the firmware before the upgrade.

可选的,向Zigbee设备发送固件恢复命令之前,利用远程设备管理协议向设备管理服务器发送所述固件所适用的Zigbee设备的升级结果,并接收所述设备管理服务器发送的固件恢复指示,所述固件恢复指示表示升级失败的Zigbee设备需执行恢复操作,或者,所有执行固件升级操作的所有Zigbee设备都需执行恢复操作。Optionally, before sending the firmware recovery command to the Zigbee device, use the remote device management protocol to send the upgrade result of the Zigbee device to which the firmware is applicable to the device management server, and receive the firmware recovery instruction sent by the device management server, the The firmware recovery indication indicates that the Zigbee device that fails to upgrade needs to perform a recovery operation, or all Zigbee devices that perform firmware upgrade operations need to perform a recovery operation.

本发明实施例中网关根据设备管理服务器发送的固件所适用的设备范围指示信息,确定该固件所适用的Zigbee设备,根据所述设备管理服务器发送的固件下发及升级指示信息,向所述固件所适用的Zigbee设备下发固件,并控制其执行固件升级操作,这样可以实现设备管理服务器控制Zigbee设备进行固件升级,不需要Zigbee设备支持SNMP协议,因此对Zigbee设备的改动很小。In the embodiment of the present invention, the gateway determines the Zigbee device to which the firmware is applicable according to the device scope instruction information sent by the device management server, and sends the firmware to the firmware according to the firmware delivery and upgrade instruction information sent by the device management server. Applicable Zigbee devices issue firmware and control it to perform firmware upgrade operations, so that the device management server can control the Zigbee devices to perform firmware upgrades, and the Zigbee devices do not need to support the SNMP protocol, so the changes to the Zigbee devices are small.

需要说明的是,为了描述方便,本发明后续实施例中会将网关向Zigbee设备下发的固件称为新固件。It should be noted that, for the convenience of description, in subsequent embodiments of the present invention, the firmware issued by the gateway to the Zigbee device will be referred to as new firmware.

本发明通过网关进行改进,使网关当面向M2M业务平台中的设备管理服务器(比如DM/TR069 Server)时,本身作为DM/TR069管理客户端,当面向Zigbee网络中被管理的Zigbee设备时,则充当Zigbee固件的升级服务器(Zigbee OTA Upgrade Server)。为了实现上述功能,如下先介绍网关中用于Zigbee设备固件升级的树状管理对象(Management Object,MO)结构模型,如图4所示,其中,“./”为网关中管理树的根节点,每个方框表示管理树中的一个MO节点或其子节点,方框中的字符为节点名称。有些节点方框中节点名称后标注不同的符号,符号“?”,则表示该节点可能有零个或一个实例;符号“*”表示该节点可能有零个或多个实例;没有任何符号则表明节点可能有且只有一个实例;符号“+”表示该节点可能有一个或多个实例。节点名称为“<x>”时表明该节点名称可以任意指定,但是需要保证多个实例间不重复。需要说明的是,图4并未示出管理树中所有的节点,而仅是列出了与本发明相关的一些节点信息。The present invention improves through the gateway, so that when the gateway is facing the device management server (such as DM/TR069 Server) in the M2M service platform, it itself acts as a DM/TR069 management client, and when facing the managed Zigbee device in the Zigbee network, then Act as Zigbee firmware upgrade server (Zigbee OTA Upgrade Server). In order to realize the above functions, the tree management object (Management Object, MO) structure model used for Zigbee device firmware upgrade in the gateway is introduced as follows, as shown in Figure 4, where "./" is the root node of the management tree in the gateway , each box represents an MO node or its child nodes in the management tree, and the characters in the boxes are node names. Different symbols are marked after the node name in some node boxes. The symbol "?" indicates that the node may have zero or one instance; the symbol "*" indicates that the node may have zero or more instances; no symbol indicates that the node may have zero or more instances. Indicates that the node may have one and only one instance; the symbol "+" indicates that the node may have one or more instances. When the node name is "<x>", it means that the node name can be specified arbitrarily, but it is necessary to ensure that there are no duplicates among multiple instances. It should be noted that Fig. 4 does not show all the nodes in the management tree, but only lists some node information related to the present invention.

如下介绍各MO节点的含义:The meaning of each MO node is introduced as follows:

1)./DevInfo节点之下的子节点记录了网关本身的设备基本信息,其中DevId、Man、Mod分别记录了网关的设备标识、生产商标识、型号标识;1) The sub-nodes under the ./DevInfo node record the basic device information of the gateway itself, where DevId, Man, and Mod respectively record the device ID, manufacturer ID, and model ID of the gateway;

2)./DevDetail节点之下的子节点记录了网关本身的设备详细信息,其中DevTyp、FwV分别记录了网关的类型(如Zigbee网络中的网关)、固件版本号;2) The sub-nodes under the ./DevDetail node record the device details of the gateway itself, where DevTyp and FwV respectively record the type of the gateway (such as the gateway in the Zigbee network) and the firmware version number;

3)./GW节点之下的子节点记录了网关设备的一些特定信息,其中一个子节点为./DevList节点,该节点用于记录与该网关相连的所有Zigbee设备信息,每一个Zigbee设备信息由一个<x>节点表示,<x>包括DevInfo和DevDetail节点,这两个节点分别用于记录每个Zigbee设备的基本信息和详细信息。远程的设备管理服务器可通过查看./GW/DevList节点,了解该网关下所有Zigbee设备的基本信息和详细信息,以便判断是否需要、以及需要时如何对网关下的Zigbee设备进行固件升级;3) The sub-nodes under the ./GW node record some specific information of the gateway device, and one of the sub-nodes is the ./DevList node, which is used to record all the Zigbee device information connected to the gateway, and each Zigbee device information Represented by a <x> node, <x> includes DevInfo and DevDetail nodes, which are used to record the basic information and detailed information of each Zigbee device respectively. The remote device management server can check the ./GW/DevList node to understand the basic information and detailed information of all Zigbee devices under the gateway, so as to judge whether it is necessary and how to upgrade the firmware of the Zigbee devices under the gateway;

4)./ZigbeeFw节点之下的子节点用于记录所有通过该网关进行固件升级所需的固件相关MO信息,每一个固件的MO信息由一个<x>节点表示,每个<x>节点包括如下子节点:4). The sub-nodes under the ./ZigbeeFw node are used to record all firmware-related MO information required for firmware upgrade through the gateway. The MO information of each firmware is represented by a <x> node, and each <x> node includes The following child nodes:

■PkgName:记录了固件的名称;■PkgName: records the name of the firmware;

■PkgVersion:记录了固件的版本号;■PkgVersion: Records the version number of the firmware;

■ApplyTo:记录了适用固件升级的Zigbee设备范围,并用一个<x>子节点描述该范围内的过滤条件,每个过滤条件中还可以包含多个子过滤条件,这时<x>子节点下可以包括多个子节点,每个子节点记录了一个过滤条件,这些过滤条件之间是相与的运算关系,具体的过滤子条件包括:■ApplyTo: Records the range of Zigbee devices applicable to firmware upgrades, and uses an <x> sub-node to describe the filter conditions within this range. Each filter condition can also contain multiple sub-filter conditions. At this time, under the <x> sub-node, you can It includes multiple sub-nodes, and each sub-node records a filter condition, and these filter conditions are related to each other. The specific filter sub-conditions include:

●DevId:记录适用固件升级的Zigbee设备的类别标识;●DevId: record the category identification of Zigbee devices applicable to firmware upgrade;

●Man:记录适用固件升级的Zigbee设备的生产商标识;Man: record the manufacturer identification of the Zigbee device that is suitable for firmware upgrade;

●Mod:记录适用固件升级的Zigbee设备的型号;●Mod: Record the model of the Zigbee device that is suitable for firmware upgrade;

●Max Version:记录能升级的Zigbee设备当前旧固件的最大版本号;●Max Version: Record the maximum version number of the current old firmware of the Zigbee device that can be upgraded;

●Min Version:记录能升级的Zigbee设备当前旧固件的最小版本号;;●Min Version: Record the minimum version number of the current old firmware of the Zigbee device that can be upgraded;

●Ext:表示还可以扩展其他过滤条件,比如限定能升级的Zigbee设备需要满足其它参数或属性的取值等等;●Ext: Indicates that other filter conditions can also be extended, such as restricting the Zigbee devices that can be upgraded to meet the values of other parameters or attributes, etc.;

■Download节点之下的子节点用于记录通过间接方式下载固件后的固件升级执行方式,Download节点之下的各子节点分别为:■The sub-nodes under the Download node are used to record the execution method of the firmware upgrade after downloading the firmware indirectly. The sub-nodes under the Download node are:

●PkgURL:记录固件包的间接下载地址;●PkgURL: record the indirect download address of the firmware package;

●Operations:记录下载固件后所需执行的固件升级方式,该节点下的子节点包括:●Operations: Record the firmware upgrade method that needs to be executed after downloading the firmware. The sub-nodes under this node include:

-Download:该节点保存可执行命令,该命令为根据PkgURL下载该固件包到网关上,暂不执行固件分发和升级;-Download: The node saves the executable command, which is to download the firmware package to the gateway according to PkgURL, and does not perform firmware distribution and upgrade for the time being;

-DownloadDistribute:该节点保存可执行命令,该命令为根据PkgURL下载该固件包到网关后,分发到ApplyTo节点中符合过滤条件的Zigbee设备上,暂不执行固件升级;-DownloadDistribute: The node saves the executable command, which is to download the firmware package to the gateway according to the PkgURL, and distribute it to the Zigbee devices that meet the filter conditions in the ApplyTo node, and the firmware upgrade will not be performed temporarily;

-DownloadUpgrade:该节点保存可执行命令,该命令为根据PkgURL下载该固件包到网关后,分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并立即执行普通升级过程;-DownloadUpgrade: This node saves the executable command, which is to download the firmware package to the gateway according to the PkgURL, distribute it to the Zigbee devices that meet the filter conditions recorded in the ApplyTo node, and immediately execute the normal upgrade process;

-DownloadUpgradeSync:该节点保存可执行命令,该命令为根据PkgURL下载该固件包到网关后,分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并执行同步升级过程;-DownloadUpgradeSync: The node saves the executable command, which downloads the firmware package to the gateway according to the PkgURL, distributes it to the Zigbee devices that meet the filter conditions recorded in the ApplyTo node, and executes the synchronous upgrade process;

-DownloadUpgradeSched:该节点保存可执行命令,该命令为根据PkgURL下载该固件包到网关后,分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并执行定时升级过程;-DownloadUpgradeSched: The node saves the executable command, which is to download the firmware package to the gateway according to the PkgURL, distribute it to the Zigbee devices that meet the filter conditions recorded in the ApplyTo node, and perform a scheduled upgrade process;

Ext:表示还可以扩展其它固件升级的执行方式;Ext: Indicates that other firmware upgrade execution methods can also be extended;

■Delivered节点之下的子节点用于记录通过直接方式下载固件后的固件升级执行方式,包括以下子节点:■The sub-nodes under the Delivered node are used to record the firmware upgrade execution method after downloading the firmware directly, including the following sub-nodes:

●PkgData:用于存储待升级的固件;●PkgData: used to store the firmware to be upgraded;

●Operations:记录所需执行的固件升级方式,该节点包括如下子节点:●Operations: record the firmware upgrade method that needs to be executed, this node includes the following sub-nodes:

-Distribute:该节点保存可执行命令,该命令为将所下载的固件分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,暂不执行固件升级;-Distribute: The node saves the executable command, which is to distribute the downloaded firmware to the Zigbee devices recorded in the ApplyTo node that meet the filter conditions, and the firmware upgrade will not be performed for the time being;

-Upgrade:该节点保存可执行命令,该命令为将所下载的固件包分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并立即执行普通升级过程;-Upgrade: This node saves the executable command, which is to distribute the downloaded firmware package to the Zigbee devices that meet the filter conditions recorded in the ApplyTo node, and immediately execute the normal upgrade process;

-UpgradeSync:该节点保存可执行命令,该命令为将所下载的固件包分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并执行同步升级过程;-UpgradeSync: This node saves the executable command, which is to distribute the downloaded firmware package to the Zigbee devices recorded in the ApplyTo node that meet the filter conditions, and perform a synchronous upgrade process;

-UpgradeSched:该节点保存可执行命令,该命令为将所下载的固件包分发到ApplyTo节点中记录的符合过滤条件的Zigbee设备上,并执行定时升级过程;-UpgradeSched: This node saves the executable command, which is to distribute the downloaded firmware package to the Zigbee devices that meet the filtering conditions recorded in the ApplyTo node, and perform a regular upgrade process;

-Ext:表示还可以扩展其它固件升级执行方式;-Ext: Indicates that other firmware upgrade execution methods can also be extended;

■State节点之下的子节点用于记录固件升级的结果,包括以下子节点:■The sub-nodes under the State node are used to record the results of the firmware upgrade, including the following sub-nodes:

●Value:用于记录固件升级状态,比如全部升级成功、部分升级成功、全部升级失败、其还可以记录固件下载和分发状态等等;●Value: used to record firmware upgrade status, such as all upgrades are successful, partial upgrades are successful, all upgrades fail, it can also record firmware download and distribution status, etc.;

●SuccessfulLjst:用于记录所有分发且升级成功的Zigbee设备信息,●SuccessfulLjst: used to record all Zigbee device information distributed and upgraded successfully,

其每一个子节点<x>对应一个分发且升级成功的Zigbee设备,子节点<x>下包括:DevId子节点,用于记录该Zigbee设备的唯一标识;Each of its sub-nodes <x> corresponds to a Zigbee device that has been distributed and successfully upgraded. The sub-node <x> includes: DevId sub-node, which is used to record the unique identifier of the Zigbee device;

●FailedList:用于记录所有分发或升级失败的Zigbee设备信息,其每一个子节点<x>对应一个分发或升级失败的Zigbee设备,子节点<x>下包括:DevId子节点,用于记录该Zigbee设备的唯一标识;●FailedList: used to record all distribution or upgrade failure Zigbee device information, each of its child nodes <x> corresponds to a distribution or upgrade failure Zigbee device, sub-node <x> includes: DevId child node, used to record the The unique identifier of the Zigbee device;

■Recover节点之下的节点用于记录当设备固件升级失败时,如何进行固件版本恢复的方法。Recover节点本身可以定义为可执行节点,以便接收设备管理服务器的固件恢复操作指令,该Recover节点包括如下子节点:■The nodes under the Recover node are used to record how to restore the firmware version when the device firmware upgrade fails. The Recover node itself can be defined as an executable node, so as to receive the firmware recovery operation instruction of the device management server, and the Recover node includes the following sub-nodes:

●Policy:用于记录固件版本恢复的具体策略,至少包括如下几种可能取值之一:●Policy: It is used to record the specific policy for restoring the firmware version, including at least one of the following possible values:

-All:如果有一个设备的固件升级失败,则将本次固件升级所涉及的所有Zigbee设备(即ApplyTo节点中记录的符合过滤条件的Zigbee设备)都恢复到升级前的固件版本;-All: If the firmware upgrade of one device fails, all Zigbee devices involved in this firmware upgrade (that is, the Zigbee devices that meet the filter conditions recorded in the ApplyTo node) are restored to the firmware version before the upgrade;

-Failed:如果有设备的固件升级失败,仅将升级失败的Zigbee设备恢复到升级前的固件版本;-Failed: If the firmware upgrade of any device fails, only the Zigbee device that failed to upgrade will be restored to the firmware version before the upgrade;

-None:不作任何固件版本回复操作,而是报告设备管理服务器的后续操作指令。-None: Do not perform any firmware version reply operation, but report the follow-up operation instructions of the device management server.

需要说明的是,上述用于Zigbee设备固件升级的管理树模型只是一个典型示例,其中具体节点可能在实际部署中更改其在管理树中的相对位置或名称(比如DevList可直接连接到根节点./之下而无需经过./GW节点,而用于存储各个固件信息的节点也可以直接连接到根节点./或其它节点之下)。另外,对于<x>/Download/Operations和<x>/Delivered/Operations节点下所定义的代表多种升级方式的多个可执行节点也可以用单个可执行节点配合相关的多种属性节点描述来区分不同的执行方式(与<x>/Recover节点的设计原则类似)。It should be noted that the above-mentioned management tree model for Zigbee device firmware upgrade is just a typical example, in which specific nodes may change their relative positions or names in the management tree in actual deployment (for example, DevList can be directly connected to the root node. / without going through the ./GW node, and the nodes used to store each firmware information can also be directly connected to the root node ./ or under other nodes). In addition, for the multiple executable nodes defined under the <x>/Download/Operations and <x>/Delivered/Operations nodes, which represent multiple upgrade methods, a single executable node can be used to describe multiple related attribute nodes. Differentiate between different execution methods (similar to the design principle of the <x>/Recover node).

参阅图5,本发明实施例提供一种实现Zigbee设备远程升级的方法,该方法中,设备管理服务器与网关之间采用DM协议,该方法具体包括:Referring to Fig. 5, the embodiment of the present invention provides a kind of method that realizes Zigbee device remote upgrade, and in this method, adopts DM agreement between equipment management server and gateway, this method specifically comprises:

501、Zigbee设备确定本地网络中对其进行管理的网关。501. The Zigbee device determines a gateway that manages it in the local network.

具体可以有如下两种方式:Specifically, there are two ways:

第一种方式:Zigbee设备中预先配置了网关的IEEE地址(每个IEEE地址唯一标识一个网关),Zigbee设备确定该IEEE地址所标识的网关为管理自己的网关,Zigbee设备还可以根据该IEEE地址发送Zigbee设备对象网络地址请求ZDO Nwk_addr_req请求,从接收的响应消息中获取网关的网络地址,以便利用该网络地址后续与所述网关进行管理信息交互。The first way: the IEEE address of the gateway is pre-configured in the Zigbee device (each IEEE address uniquely identifies a gateway), the Zigbee device determines that the gateway identified by the IEEE address is the gateway that manages itself, and the Zigbee device can also use the IEEE address Send the Zigbee device object network address request ZDO Nwk_addr_req request, obtain the network address of gateway from the response message received, so that utilize this network address to carry out management information interaction with described gateway subsequently.

第二种方式:如果Zigbee设备中没有预先配置网关的IEEE地址则向本地网络广播Zigbee设备对象匹配描述请求ZDO Match_Desc_req请求,其中携带固件升级簇标识OTA Cluster ID,该标识表明查找支持Zigbee固件升级功能的网关,本地网络中的网关收到该请求后,向所述Zigbee设备发送Zigbee设备对象匹配描述响应ZDO Match_Desc_rsp消息,其中携带所述网关的网络地址,然后所述Zigbee设备可以根据所述网关的网络地址,向所述网关发送Zigbee设备对象IEEE地址请求ZDO IEEE_addr_req请求,如果Zigbee设备接收到网关的IEEE地址,则确认该网关是管理自己的网关。The second way: If the IEEE address of the gateway is not pre-configured in the Zigbee device, broadcast the Zigbee device object matching description request ZDO Match_Desc_req request to the local network, which carries the firmware upgrade cluster identifier OTA Cluster ID, which indicates that the search supports the Zigbee firmware upgrade function After the gateway in the local network receives the request, it sends the Zigbee device object matching description response ZDO Match_Desc_rsp message to the Zigbee device, which carries the network address of the gateway, and then the Zigbee device can according to the gateway's Network address, send Zigbee equipment object IEEE address request ZDO IEEE_addr_req request to described gateway, if Zigbee equipment receives the IEEE address of gateway, then confirm that this gateway is the gateway that manages oneself.

502、网关利用Zigbee设备管理命令获取Zigbee设备的详细信息,以便配置如图4所示的管理树中./GW./DevList节点上的信息。502. The gateway obtains the detailed information of the Zigbee device by using a Zigbee device management command, so as to configure the information on the ./GW./DevList node in the management tree shown in FIG. 4 .

具体的,网关向Zigbee设备发送设备信息查询请求消息,例如Zigbee设备对象节点描述请求ZDO Node_Desc_req、Zigbee设备对象简单描述请求ZDO Simple_Desc_req消息等等,用于请求获取Zigbee设备的详细信息;Zigbee设备向网关发送响应消息,该响应消息中携带Zigbee设备的生产商标识、设备类型等设备描述信息。网关再向Zigbee设备发送Zigbee簇库属性读取ZCL Read_Attributes请求消息,该消息中携带当前固件版本CurrentFirmwareVersion参数,以请求查询Zigbee设备的固件版本;该Zigbee设备向网关发送响应消息,该响应消息中携带所述Zigbee设备的固件版本信息。Specifically, the gateway sends a device information query request message to the Zigbee device, such as a Zigbee device object node description request ZDO Node_Desc_req, a Zigbee device object simple description request ZDO Simple_Desc_req message, etc., for requesting the detailed information of the Zigbee device; A response message is sent, and the response message carries device description information such as the manufacturer identification and device type of the Zigbee device. The gateway then sends the Zigbee cluster library attribute to the Zigbee device to read the ZCL Read_Attributes request message, which carries the current firmware version CurrentFirmwareVersion parameter to request the firmware version of the Zigbee device; the Zigbee device sends a response message to the gateway, and the response message carries The firmware version information of the Zigbee device.

503、网关将Zigbee设备的详细信息配置到管理树的相关节点中,具体的,配置到如图4所示的MO管理树中./GW下DevList节点中。503. The gateway configures the detailed information of the Zigbee device to relevant nodes of the management tree, specifically, to the DevList node under ./GW in the MO management tree as shown in FIG. 4 .

504、网关利用远程设备管理协议,与设备管理服务器间建立设备管理会话。504. The gateway uses the remote device management protocol to establish a device management session with the device management server.

具体的,网关接收到来自设备管理服务器的设备管理通知消息,然后与该设备管理服务器建立设备管理会话,并通过替换Relplace命令提供网关自身的基本信息(./DevInfo节点中记录的信息)给所述设备管理服务器;设备管理服务器通过获取Get命令获取网关的详细信息(./DevDetail节点中记录的信息),以及与所述网关相连的所有Zigbee设备的信息(./GW/DevList/节点中记录的信息)。Specifically, the gateway receives the device management notification message from the device management server, then establishes a device management session with the device management server, and provides the basic information of the gateway itself (information recorded in the ./DevInfo node) to all The device management server; the device management server obtains the detailed information of the gateway (the information recorded in the ./DevDetail node) by obtaining the Get command, and the information of all Zigbee devices connected to the gateway (recorded in the ./GW/DevList/ node Information).

505、设备管理服务器通过Replace命令在网关管理树的相关节点中配置新固件基本信息和新固件所适用的Zigbee设备的范围描述信息。505. The device management server configures the basic information of the new firmware and the range description information of the Zigbee devices applicable to the new firmware in the relevant nodes of the gateway management tree through the Replace command.

具体的,在PkgName节点中配置新固件名称、在PkgVersion节点中配置版本、在ApplyTo中配置新固件所适用的Zigbee设备范围描述信息。Specifically, the new firmware name is configured in the PkgName node, the version is configured in the PkgVersion node, and the Zigbee device range description information applicable to the new firmware is configured in ApplyTo.

506、设备管理服务器利用所建立的设备管理会话,通过网关对Zigbee设备进行远程固件升级操作。506. The device management server uses the established device management session to perform a remote firmware upgrade operation on the Zigbee device through the gateway.

该步骤请参见后续实施例的详细描述。Please refer to the detailed description of the subsequent embodiments for this step.

需要说明的是,由于远程设备管理协议(DM/TR069)与Zigbee协议二者在参数命名、数据类型上并非完全兼容,因此步骤503中网关将Zigbee设备的详细信息配置到管理树的相关节点时需要执行参数名称和数据类型的转换工作,表1列举了固件升级所需要支持的参数的转换映射关系,其中,统一资源名称(Uniform Resource Name,URN)是一种具体有特殊限定格式的字符串类型。It should be noted that, since the remote device management protocol (DM/TR069) and the Zigbee protocol are not fully compatible in parameter naming and data types, when the gateway configures the detailed information of the Zigbee device to the relevant nodes of the management tree in step 503 It is necessary to perform the conversion of parameter names and data types. Table 1 lists the conversion and mapping relationships of parameters that need to be supported by firmware upgrades. Among them, the uniform resource name (Uniform Resource Name, URN) is a string with a specific and limited format. type.

表1Table 1

图6示出了设备管理服务器通过网关实现对Zigbee设备远程升级的一种方式,即普通升级方式,普通升级方式是指各Zigbee设备在获得新固件后立即升级,而且与其他适用于新固件的Zigbee设备的升级时间无关,具体包括:Figure 6 shows a way for the device management server to remotely upgrade Zigbee devices through the gateway, that is, the common upgrade method. The common upgrade method means that each Zigbee device is upgraded immediately after obtaining new firmware, and is compatible with other firmware that is applicable to the new firmware. The upgrade time of Zigbee equipment is irrelevant, including:

601、设备管理服务器控制网关下载新固件,并触发网关执行管理树中节点上表示固件分发及分发后Zigbee设备立即升级的可执行命令。601. The device management server controls the gateway to download new firmware, and triggers the gateway to execute an executable command on a node in the management tree indicating that the firmware is distributed and the Zigbee device is immediately upgraded after distribution.

在上述实施例中的步骤501~504中,网关中配置了其管理的Zigbee设备的信息,同时设备管理服务器通过网关建立了用于Zigbee设备远程固件升级的管理会话,并且在网关中配置了新固件的基本信息和新固件升级所适用的Zigbee设备范围。该步骤中设备管理服务器可以根据网关下的Zigbee设备信息以及新固件对当前Zigbee网络和应用的影响,确定采用普通升级的方式对Zigbee设备进行远程升级。In steps 501 to 504 in the above embodiment, the information of the Zigbee devices it manages is configured in the gateway, and at the same time, the device management server establishes a management session for remote firmware upgrade of Zigbee devices through the gateway, and configures a new configuration in the gateway. The basic information of the firmware and the range of Zigbee devices to which the new firmware upgrade applies. In this step, the device management server can determine to remotely upgrade the Zigbee device in a normal upgrade method according to the Zigbee device information under the gateway and the impact of the new firmware on the current Zigbee network and applications.

该步骤具体包括如下几种实现方式:This step specifically includes the following implementation methods:

第一种方式:该方式适用于设备管理服务器采用直接下载的方式将新固件下载到网关。设备管理服务器通过Replace命令直接将新固件写入网关的的ZigbeeFw/<x>/Delivered/PkgData节点中,并触发网关执行ZigbeeFw/<x>/Delivered/Operations/Upgrade节点上的可执行命令。The first method: This method is suitable for the device management server to download the new firmware to the gateway directly. The device management server directly writes the new firmware into the ZigbeeFw/<x>/Delivered/PkgData node of the gateway through the Replace command, and triggers the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/Upgrade node.

第二种方式:该方式适用于设备管理服务器采用间接下载的方式将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关管理树的ZigbeeFw/<x>/Download/PkgURL节点中;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/DownloadUpgrade节点上的可执行命令,指示网关从所述下载地址下载新固件,然后立即对所述新固件所适用的Zigbee设备执行固件升级操作,其中,网关可以采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件。The second method: This method is suitable for the device management server to download the new firmware to the gateway through indirect downloading. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway management tree through the Replace command; the device management server triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/DownloadUpgrade node Executable commands on , instruct the gateway to download new firmware from the download address, and then immediately perform firmware upgrade operations on the Zigbee devices to which the new firmware is applicable, wherein, the gateway can use the file transfer protocol or other download protocols to download from ZigbeeFw/ Download the new firmware from the download address on the <x>/Download/PkgURL node.

第三种方式:该方式适用于设备管理服务器采用间接下载的方式将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关的ZigbeeFw/<x>/Download/PkgURL节点中;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/Download节点上的可执行命令,指示网关下载该新固件;网关采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件,并向设备管理服务器报告新固件下载成功;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Delivered/Operations/Upgrade节点上的可执行命令,指示网关对所述新固件所适用的Zigbee设备立即执行固件升级操作。The third method: This method is suitable for the device management server to download the new firmware to the gateway through indirect downloading. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway through the Replace command; the device management server triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/Download node. The command can be executed to instruct the gateway to download the new firmware; the gateway uses the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Download/PkgURL node, and reports the success of the new firmware download to the device management server ; The device management server instructs the gateway to immediately perform a firmware upgrade operation on the Zigbee devices to which the new firmware is applicable by triggering the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/Upgrade node.

602、网关执行管理树中节点上表示固件分发及分发后Zigbee设备立即升级的可执行命令,根据管理树中节点记录的新固件所适用升级的Zigbee设备范围描述信息和自己管理的各Zigbee设备的信息,采用现有的Zigbee固件下载技术,将新固件分发到新固件所适用的Zigbee设备上。602. The gateway executes the executable command on the node in the management tree indicating that the firmware is distributed and the Zigbee device is immediately upgraded after distribution, according to the description information of the Zigbee device range applicable to the upgrade for the new firmware recorded in the node in the management tree and the Zigbee devices it manages. information, using existing Zigbee firmware download technology to distribute new firmware to the Zigbee devices to which the new firmware is applicable.

具体的,网关可以采用广播消息向所有的Zigbee设备都发送镜像通知Image Notiry消息,该Image Notify消息中携带新固件的适用范围描述信息,具体可以包括:新固件的适用的Zigbee设备型号、设备生产商标识中至少一个。如果设备管理服务器写入的适用固件升级的Zigbee设备的类别标识、能升级的Zigbee设备当前旧固件的最大版本号或者能升级的Zigbee设备当前旧固件的最小版本号,则由于Image Notify消息本身不能携带上述信息,则网关根据管理树节点上存储的各Zigbee设备的信息,确定适用新固件的Zigbee设备,采用单播的方式向所确定的Zigbee设备发送Image Notify消息,此时Image Notify消息用于通知Zigbee设备下载新固件。其中,该步骤中采用广播消息或者单播消息向Zigbee设备发送Image Notify消息时,需要参照表1执行参数名称和数据类型的转换工作,在此不再赘述。Specifically, the gateway can use a broadcast message to send an image notification Image Notiry message to all Zigbee devices. The Image Notify message carries the description information of the scope of application of the new firmware, which can specifically include: the applicable Zigbee device model of the new firmware, device production at least one of the vendor IDs. If the device management server writes the category identifier of the Zigbee device applicable to firmware upgrade, the maximum version number of the current old firmware of the Zigbee device that can be upgraded, or the minimum version number of the current old firmware of the Zigbee device that can be upgraded, then the Image Notify message itself cannot Carrying the above information, the gateway determines the Zigbee devices applicable to the new firmware according to the information of each Zigbee device stored on the management tree node, and uses unicast to send the Image Notify message to the determined Zigbee device. At this time, the Image Notify message is used for Notify Zigbee devices to download new firmware. Wherein, when adopting broadcast message or unicast message to send Image Notify message to Zigbee device in this step, need refer to Table 1 to carry out the conversion work of parameter name and data type, do not repeat them here.

Zigbee设备收到Image Notify消息之后,根据其是否为单播消息,以及在不是单播消息时根据Image Notify消息中携带的新固件的适用范围描述信息,确定自己是否需要进行固件升级,如果是,向网关发送查询下一镜像请求Query Next Image Request,请求获取新固件,该消息中携带自身的设备型号(即管理树中mod节点上保存的信息)、设备生产商标识(即管理树中man节点上保存的信息)、以及当前固件版本号等信息。网关向Zigbee设备发送新固件的大小和下载分块的大小,Zigbee设备根据新固件的大小和下载分块的大小,从网关下载新固件。After the Zigbee device receives the Image Notify message, it determines whether it needs to upgrade its firmware according to whether it is a unicast message, and if it is not a unicast message, according to the applicable scope description information of the new firmware carried in the Image Notify message. If so, Send a Query Next Image Request to the gateway to request new firmware. The message carries its own device model (that is, the information stored on the mod node in the management tree), the device manufacturer's identifier (that is, the man node in the management tree) information saved on the computer), and the current firmware version number and other information. The gateway sends the size of the new firmware and the size of the download block to the Zigbee device, and the Zigbee device downloads the new firmware from the gateway according to the size of the new firmware and the size of the download block.

603、网关指示Zigbee设备立即进行固件升级。603. The gateway instructs the Zigbee device to upgrade the firmware immediately.

具体的,网关向每个已经成功下载新固件的Zigbee设备发送升级结束响应Upgrade End Response消息,其中携带指示所述Zigbee设备立即升级新固件的参数。Specifically, the gateway sends an Upgrade End Response message to each Zigbee device that has successfully downloaded the new firmware, which carries parameters indicating that the Zigbee device upgrades the new firmware immediately.

图7示出了设备管理服务器通过网关实现对Zigbee设备远程升级的一种方式,即控制Zigbee设备同步升级的方式,具体包括:Figure 7 shows a way in which the device management server implements a remote upgrade of the Zigbee device through the gateway, that is, the way of controlling the synchronous upgrade of the Zigbee device, specifically including:

701、设备管理服务器控制网关下载新固件,并触发网关执行管理树中节点上表示固件分发及分发后Zigbee设备同步升级的可执行命令。701. The device management server controls the gateway to download new firmware, and triggers the gateway to execute an executable command on a node in the management tree that represents firmware distribution and Zigbee device synchronous upgrade after distribution.

其中,该可执行命令为表示固件分发及所有Zigbee设备都成功下载新固件后同步执行固件升级的指示。Wherein, the executable command is an instruction indicating that the firmware is distributed and that all Zigbee devices have successfully downloaded the new firmware and executed the firmware upgrade synchronously.

该步骤中设备管理服务器根据网关下的Zigbee设备信息以及新固件对当前Zigbee网络和应用的影响,判断各Zigbee设备的固件升级过程可能对Zigbee本地网络的通信或者应用产生影响相互,因此需要各Zigbee设备在同一时间同时执行升级,于是确定采用同步升级的方式对网关下的Zigbee设备进行远程升级。In this step, the device management server judges that the firmware upgrade process of each Zigbee device may affect the communication or application of the Zigbee local network according to the Zigbee device information under the gateway and the impact of the new firmware on the current Zigbee network and applications. The devices are upgraded at the same time, so it is decided to use the method of synchronous upgrade to remotely upgrade the Zigbee devices under the gateway.

该步骤具体包括如下几种实现方式:This step specifically includes the following implementation methods:

第一种方式:该方式适用于设备管理服务器采用直接下载的方式将新固件下载到网关。设备管理服务器通过Replace命令直接将新固件写入网关的ZigbeeFw/<x>/Delivered/PkgData节点中,并触发网关执行ZigbeeFw/<x>/Delivered/Operations/UpgradeSync节点上的可执行命令,指示网关控制所述新固件所适用的Zigbee设备同步执行固件升级操作。The first method: This method is suitable for the device management server to download the new firmware to the gateway directly. The device management server directly writes the new firmware into the ZigbeeFw/<x>/Delivered/PkgData node of the gateway through the Replace command, and triggers the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/UpgradeSync node, instructing the gateway Controlling the Zigbee devices to which the new firmware is applicable synchronously executes a firmware upgrade operation.

第二种方式:该方式适用于设备管理服务器采用间接下载的方式将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关的ZigbeeFw/<x>/Download/PkgURL节点中;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/DownloadUpgrade Sync节点上的可执行命令,指示网关从所述下载地址下载新固件,然后立即控制所述新固件所适用的Zigbee设备执行同步升级操作。其中,网关可以采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件。The second method: This method is suitable for the device management server to download the new firmware to the gateway through indirect downloading. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway through the Replace command; the device management server triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/DownloadUpgrade Sync node The executable command instructs the gateway to download new firmware from the download address, and then immediately controls the Zigbee devices to which the new firmware is applicable to perform a synchronous upgrade operation. Wherein, the gateway can use the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Download/PkgURL node.

第三种方式:该方式适用于设备管理服务器采用间接下载的方式将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关MO的ZigbeeFw/<x>/Download/PkgURL节点中;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/Download节点上的可执行命令,指示网关下载该新固件;网关采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件,并向设备管理服务器报告新固件下载成功;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Delivered/Operations/UpgradeSync节点上的可执行命令,指示网关控制所述新固件所适用的Zigbee设备同步执行固件升级操作。The third method: This method is suitable for the device management server to download the new firmware to the gateway through indirect downloading. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway MO through the Replace command; the device management server triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/Download node on the The executable command instructs the gateway to download the new firmware; the gateway uses the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Download/PkgURL node, and reports the new firmware download to the device management server Success; the device management server instructs the gateway to control the Zigbee devices to which the new firmware applies to perform firmware upgrade operations synchronously by triggering the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/UpgradeSync node.

702、网关执行管理树中节点上表示固件分发及分发后Zigbee设备同步升级的可执行命令,根据管理树中节点记录的新固件所适用升级的Zigbee设备范围描述信息和自己管理的各Zigbee设备的信息,采用现有的Zigbee固件下载技术,将新固件分发到新固件所适用的Zigbee设备上。702. The gateway executes the executable command on the node in the management tree that represents the firmware distribution and synchronous upgrade of the Zigbee device after distribution, according to the description information of the range of Zigbee devices that are applicable to the upgrade of the new firmware recorded in the node in the management tree and the information of each Zigbee device that it manages. information, using existing Zigbee firmware download technology to distribute new firmware to the Zigbee devices to which the new firmware is applicable.

703、网关指示Zigbee设备进行同步固件升级。703. The gateway instructs the Zigbee device to perform synchronous firmware upgrade.

具体的,网关向适用新固件的各Zigbee设备发送Upgrade End Response消息,其中携带指示Zigbee设备暂时不执行固件升级操作的信息;网关向适用新固件的的各Zigbee设备发送ZCL Read_Attributes消息,以便获得每个Zigbee设备的新固件下载状态,在确定所有Zigbee设备都已经成功下载新固件后,向各Zigbee设备同时发送Run Upgrade Request消息,其中携带指示Zigbee设备立即升级到新固件的参数。Specifically, the gateway sends an Upgrade End Response message to each Zigbee device applicable to the new firmware, which carries information indicating that the Zigbee device does not perform the firmware upgrade operation temporarily; the gateway sends a ZCL Read_Attributes message to each Zigbee device applicable to the new firmware, so as to obtain each The new firmware download status of a Zigbee device, after determining that all Zigbee devices have successfully downloaded the new firmware, sends a Run Upgrade Request message to each Zigbee device simultaneously, which carries parameters indicating that the Zigbee device is upgraded to the new firmware immediately.

当前某个适用新固件的Zigbee设备正处于休眠状态,无法接收并执行相关的升级命令,所以该步骤中网关根据本地记录的适用新固件的各Zigbee设备的信息,选择新固件所适用的所有Zigbee设备都处于激活态的一个时间,并向处于激活态的Zigbee设备分别发送Run Upgrade Request消息,其中携带指示在所选时间点进行固件升级的指示信息;或者,网关选择一个时间点,在Zigbee设备处于激活态时向Zigbee设备发送指示在所选时间点进行固件升级的指示信息,如果该Zigbee设备在所选时间点处于休眠态,则该Zigbee设备调整休眠时间,保证在该时间点处于激活态,后续执行过程与图8所示的实施例中的步骤803相同。At present, a Zigbee device applicable to the new firmware is in a dormant state and cannot receive and execute related upgrade commands. Therefore, in this step, the gateway selects all the Zigbee devices applicable to the new firmware based on the locally recorded information of each Zigbee device applicable to the new firmware. A time when the devices are in the active state, and send Run Upgrade Request messages to the Zigbee devices in the active state, which carry instructions to upgrade the firmware at the selected time point; or, the gateway selects a time point, and the Zigbee device When in the active state, send instructions to the Zigbee device to indicate firmware upgrade at the selected time point. If the Zigbee device is in the dormant state at the selected time point, the Zigbee device will adjust the sleep time to ensure that it is in the active state at this time point. , the subsequent execution process is the same as step 803 in the embodiment shown in FIG. 8 .

图8示出了设备管理服务器通过网关实现对Zigbee设备远程升级的一种方式,即控制Zigbee设备定时升级的方式,具体包括:Figure 8 shows a way in which the device management server implements a remote upgrade of the Zigbee device through the gateway, that is, the way of controlling the regular upgrade of the Zigbee device, specifically including:

801、设备管理服务器控制网关下载新固件,并触发网关执行管理树中节点上表示固件分发及分发后Zigbee设备在预定的升级时间进行升级的可执行命令。801. The device management server controls the gateway to download new firmware, and triggers the gateway to execute an executable command on a node in the management tree indicating that the firmware is distributed and the Zigbee device is upgraded at a predetermined upgrade time after distribution.

该步骤具体包括如下几种实现方式:This step specifically includes the following implementation methods:

第一种方式:该方式适用于设备管理服务器直接将新固件下载到网关上,设备管理服务器通过Replace命令直接将新固件写入网关的管理树中的ZigbeeFw/<x>/Delivered/PkgData节点中,将预定的升级时间写入ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/UTCTime节点中,或者,将相对于当前的时间偏移量写入ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/OffsetTime节点中,设备管理服务器触发网关执行ZigbeeFw/<x>/Delivered/Operations/UpgradeSched节点上的可执行命令。The first method: This method is suitable for the device management server to directly download the new firmware to the gateway, and the device management server directly writes the new firmware to the ZigbeeFw/<x>/Delivered/PkgData node in the management tree of the gateway through the Replace command , write the scheduled upgrade time into the ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/UTCTime node, or write the relative current time offset into ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/OffsetTime In the node, the device management server triggers the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/UpgradeSched node.

第二种方式:该方式适用于设备管理服务器间接将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关的ZigbeeFw/<x>/Download/PkgURL节点中,将预定的升级时间写入ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched/UTCTime节点中,或者,将相对于当前的时间偏移量写入ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched/OffsetTime节点中,设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched节点上的可执行命令,指示网关采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Delivered/PkgURL节点上的所述下载地址下载新固件,然后控制适用新固件的Zigbee设备在具体的升级时间执行固件升级操作。The second method: This method is suitable for the device management server to indirectly download new firmware to the gateway. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway through the Replace command, and writes the scheduled upgrade time into the ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched/UTCTime node , or write the time offset relative to the current time into the ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched/OffsetTime node, and the device management server will execute the ZigbeeFw/<x>/Download/Operations/DownloadUpgradeSched node by triggering the gateway The executable command on the node instructs the gateway to use the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Delivered/PkgURL node, and then control the specific upgrade of the Zigbee devices applicable to the new firmware. Time to perform the firmware upgrade operation.

第三种方式:该方式适用于设备管理服务器采用间接下载的方式将新固件下载到网关上。设备管理服务器通过Replace命令直接将新固件的下载地址写入网关的ZigbeeFw/<x>/Download/PkgURL节点中,将预定的升级时间写入ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/UTCTime节点中,或者,将相对于当前的时间偏移量写入ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/OffsetTime节点中;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Download/Operations/Download节点上的可执行命令,指示网关下载该新固件;网关采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件,并向设备管理服务器报告新固件下载成功。设备管理服务器通过触发网关执行ZigbeeFw/<x>/Delivered/Operations/UpgradeSched节点上的可执行命令,使网关控制适用新固件的Zigbee设备在具体的升级时间执行固件升级操作。The third method: This method is suitable for the device management server to download the new firmware to the gateway through indirect downloading. The device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway through the Replace command, and writes the scheduled upgrade time into the ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/UTCTime node , or write the time offset relative to the current time into the ZigbeeFw/<x>/Delivered/Operations/UpgradeSched/OffsetTime node; the device management server executes the ZigbeeFw/<x>/Download/Operations/Download node by triggering the gateway The executable command on the , instructs the gateway to download the new firmware; the gateway uses the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Download/PkgURL node, and reports the new firmware to the device management server download successful. The device management server triggers the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/UpgradeSched node, so that the gateway controls the Zigbee device applicable to the new firmware to perform the firmware upgrade operation at a specific upgrade time.

802、网关执行管理树中节点上表示固件分发及分发后Zigbee设备在所述预定的升级时间进行升级的可执行命令,根据管理树中节点记录的新固件所适用升级的Zigbee设备范围描述信息和自己管理的各Zigbee设备的信息,采用现有的Zigbee固件下载技术,将新固件分发到新固件所适用的Zigbee设备上。802. The gateway executes the executable command on the node in the management tree indicating that the firmware is distributed and the Zigbee device is upgraded at the predetermined upgrade time after the distribution, according to the description information and the range description information of the Zigbee device applicable to the upgrade of the new firmware recorded by the node in the management tree The information of each Zigbee device managed by oneself uses the existing Zigbee firmware download technology to distribute the new firmware to the Zigbee devices to which the new firmware is applicable.

803、网关指示Zigbee设备在预定的升级时间进行固件升级。803. The gateway instructs the Zigbee device to perform firmware upgrade at a scheduled upgrade time.

该步骤具体有如下几种实现方式:There are several implementation methods for this step:

第一种方式:网关向新固件适用的各Zigbee设备发送Upgrade EndResponse消息,其中携带升级时间参数,该升级时间参数指示了Zigbee设备进行固件升级的具体时间,其可以是一个绝对时间值,也可以是相对于当前的相对时间值,不影响本发明的实现。The first method: the gateway sends an Upgrade EndResponse message to each Zigbee device to which the new firmware applies, which carries an upgrade time parameter, which indicates the specific time for the Zigbee device to perform firmware upgrade, which can be an absolute time value or It is relative to the current relative time value and does not affect the implementation of the present invention.

第二种方式:网关向新固件适用的各Zigbee设备发送Upgrade EndResponse消息,其中携带指示Zigbee设备暂时不执行固件升级操作的信息;网关向需要升级的各Zigbee设备发送Zigbee簇库属性读取ZCLRead_Attributes消息,以便获得每个Zigbee设备的新固件下载状态,在确定所有需要升级的Zigbee设备都已经成功下载新固件后,向所有需要升级的Zigbee设备发送Run Upgrade Request消息,其中携带升级时间参数。The second method: the gateway sends an Upgrade EndResponse message to each Zigbee device applicable to the new firmware, which carries information indicating that the Zigbee device does not perform the firmware upgrade operation temporarily; the gateway sends a Zigbee cluster library attribute reading ZCLRead_Attributes message to each Zigbee device that needs to be upgraded , in order to obtain the new firmware download status of each Zigbee device, after determining that all Zigbee devices that need to be upgraded have successfully downloaded the new firmware, send a Run Upgrade Request message to all Zigbee devices that need to be upgraded, which carries the upgrade time parameter.

图9示出了设备管理服务器通过网关实现对Zigbee设备远程升级的一种方式,该方式是先分发新固件到Zigbee设备上,然后再触发Zigbee设备采用普通升级方式、同步升级方式或者定时升级方式控制各Zigbee设备进行固件升级,其具体包括:Figure 9 shows a way for the device management server to remotely upgrade Zigbee devices through the gateway. This way is to first distribute new firmware to the Zigbee device, and then trigger the Zigbee device to adopt the normal upgrade method, synchronous upgrade method or regular upgrade method Control each Zigbee device for firmware upgrade, which specifically includes:

901、设备管理服务器将新固件下载到网关上,触发网关上表示分发新固件的可执行命令。901. The device management server downloads new firmware to the gateway, and triggers an executable command on the gateway indicating distribution of the new firmware.

该步骤具体有如下几种实现方式:There are several implementation methods for this step:

第一种方式:该方式适用于设备管理服务器采用直接下载的方式将新固件下载到网关。设备管理服务器通过Replace命令直接将新固件写入网关的MO的ZigbeeFw/<x>/Delivered/PkgData节点中,并触发网关执行ZigbeeFw/<x>/Delivered/Operations/Distribute节点上的可执行命令,指示网关对新固件适用的Zigbee设备执行分发固件操作。The first method: This method is suitable for the device management server to download the new firmware to the gateway directly. The device management server directly writes the new firmware into the ZigbeeFw/<x>/Delivered/PkgData node of the MO of the gateway through the Replace command, and triggers the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/Distribute node, Instructs the gateway to perform the distribute firmware operation to the Zigbee devices to which the new firmware applies.

第二种方式:设备管理服务器通过Replace命令直接将新固件的下载地址写入网关管理树的ZigbeeFw/<x>/Download/PkgURL节点中,通过触发网关执行ZigbeeFw/<x>/Download/Operations/DownloadDistribute节点上的可执行命令,指示网关从所述下载地址下载新固件,然后立即对将新固件分发给适用该新固件的Zigbee设备。The second method: the device management server directly writes the download address of the new firmware into the ZigbeeFw/<x>/Download/PkgURL node of the gateway management tree through the Replace command, and triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/ The executable command on the DownloadDistribute node instructs the gateway to download new firmware from the download address, and then immediately distributes the new firmware to the Zigbee devices applicable to the new firmware.

第三种方式:设备管理服务器通过Replace命令直接将新固件的下载地址写入网关ZigbeeFw/<x>/Download/PkgURL节点中,通过触发网关执行ZigbeeFw/<x>/Download/Operations/Download节点上的可执行命令,指示网关下载该新固件;网关采用文件传输协议或者其他下载协议,从ZigbeeFw/<x>/Download/PkgURL节点上的下载地址下载新固件,并向设备管理服务器报告新固件下载成功;设备管理服务器通过触发网关执行ZigbeeFw/<x>/Delivered/Operations/Distribute节点上的可执行命令,指示网关向适用新固件的Zigbee设备执行分发新固件。The third method: the device management server directly writes the download address of the new firmware into the gateway ZigbeeFw/<x>/Download/PkgURL node through the Replace command, and triggers the gateway to execute the ZigbeeFw/<x>/Download/Operations/Download node The executable command instructs the gateway to download the new firmware; the gateway uses the file transfer protocol or other download protocols to download the new firmware from the download address on the ZigbeeFw/<x>/Download/PkgURL node, and reports the new firmware download to the device management server Success; the device management server instructs the gateway to distribute new firmware to Zigbee devices that are applicable to the new firmware by triggering the gateway to execute the executable command on the ZigbeeFw/<x>/Delivered/Operations/Distribute node.

902、网关执行管理树中节点上表示分发新固件的可执行命令,采用现有的Zigbee固件下载技术,根据管理树中节点记录的新固件所适用升级的Zigbee设备范围描述信息和自己管理的各Zigbee设备的信息,将新固件分发到新固件所适用的Zigbee设备上。902. The gateway executes the executable commands for distributing new firmware on the nodes in the management tree, using the existing Zigbee firmware download technology, and according to the description information of the upgraded Zigbee device scope applicable to the new firmware recorded by the nodes in the management tree and the various devices it manages. information about Zigbee devices, and distribute new firmware to the Zigbee devices to which the new firmware applies.

903、网关向适用新固件的各Zigbee设备发送指示暂时不执行固件升级操作的信息的消息。903. The gateway sends a message indicating that the firmware upgrade operation is not performed temporarily to each Zigbee device applicable to the new firmware.

具体的,网关向适用新固件的各Zigbee设备发送Upgrade End Response消息,其中携带指示Zigbee设备暂时不执行固件升级操作的信息。Specifically, the gateway sends an Upgrade End Response message to each Zigbee device applicable to the new firmware, which carries information indicating that the Zigbee device does not perform the firmware upgrade operation temporarily.

904、网关向适用新固件的各Zigbee设备查询新固件下载状态。904. The gateway queries the download status of the new firmware from each Zigbee device applicable to the new firmware.

具体的,网关向适用新固件的各Zigbee设备发送ZCL Read_Attributes消息,请求获得每个Zigbee设备的新固件下载状态。Specifically, the gateway sends a ZCL Read_Attributes message to each Zigbee device applicable to the new firmware, requesting to obtain the new firmware download status of each Zigbee device.

905、网关根据每个Zigbee设备的新固件下载状态,向设备管理服务器报告新固件的分发情况,即该新固件所适用的Zigbee设备的固件下载结果。905. The gateway reports the distribution status of the new firmware to the device management server according to the download status of the new firmware of each Zigbee device, that is, the firmware download result of the Zigbee device to which the new firmware is applicable.

具体的,通过发送Alert命令向设备管理服务器报告新固件的分发情况。Specifically, the distribution status of the new firmware is reported to the device management server by sending an Alert command.

906、设备管理服务器根据新固件分发情况、新固件对Zigbee设备和网络的影响,确定Zigbee设备的固件升级方式,触发网关执行管理树中节点上所确定的固件升级方式的可执行命令。906. The device management server determines the firmware upgrade method of the Zigbee device according to the distribution of new firmware and the impact of the new firmware on the Zigbee device and network, and triggers the gateway to execute the executable command of the firmware upgrade method determined on the nodes in the management tree.

其中,设备管理服务器根据新固件分发情况确定是否需要升级Zigbee设备,然后设备管理服务器根据新固件分发情况、新固件对Zigbee设备和网络的影响,确定Zigbee设备的具体固件升级方式。Wherein, the device management server determines whether the Zigbee device needs to be upgraded according to the new firmware distribution situation, and then the device management server determines the specific firmware upgrade method of the Zigbee device according to the new firmware distribution situation and the impact of the new firmware on the Zigbee device and the network.

其中,该步骤中确定的Zigbee设备的固件升级方式可以是普通升级方式,此时,设备管理服务器触发网关上表示固件分发后Zigbee设备立即升级的可执行命令;所确定的Zigbee设备的固件升级方式可以是同步升级方式,此时,设备管理服务器触发网关上表示固件分发后Zigbee设备同步升级的可执行命令;所确定的Zigbee设备的固件升级方式可以是定时升级方式,此时,设备管理服务器触发网关上表示固件分发后Zigbee设备在预定的升级时间进行升级的可执行命令。Wherein, the firmware upgrade method of the Zigbee device determined in this step can be a common upgrade method, and at this time, the device management server triggers an executable command on the gateway that expresses that the Zigbee device upgrades immediately after the firmware is distributed; the determined firmware upgrade method of the Zigbee device It can be a synchronous upgrade method. At this time, the device management server triggers an executable command on the gateway that indicates that the Zigbee device is upgraded synchronously after the firmware is distributed; the determined firmware upgrade method of the Zigbee device can be a regular upgrade method. At this time, the device management server triggers The executable command on the gateway indicates that the Zigbee device will be upgraded at the scheduled upgrade time after the firmware is distributed.

可选的,设备管理服务器可以根据新固件分发情况、新固件对Zigbee设备和网络的影响,重新确定新固件适用的Zigbee设备范围,并重新通知网关,后续网关在设备管理服务器的触发下,执行可执行命令,向重新确定的适用该新部件的Zigbee设备发送指示升级的消息。Optionally, the device management server can re-determine the range of Zigbee devices applicable to the new firmware according to the distribution of new firmware and the impact of the new firmware on Zigbee devices and networks, and re-notify the gateway, and the subsequent gateway is triggered by the device management server. The command can be executed to send a message indicating upgrade to the re-determined Zigbee equipment suitable for the new component.

需要说明的是,在前面实施例的步骤505中,设备管理服务器还可以通过Replace命令在管理树的<x>/Recover/Policy节点上配置Zigbee设备升级失败时的固件恢复策略,具体的,可以配置为“All”或者“Failed”,也可以配置为“None”,配置为“None”时表示当前没有配置具体的固件恢复策略,需要网关向设备管理服务器发送升级结果信息,设备管理服务器根据升级结果信息再配置具体的固件恢复策略,在适用新固件的Zigbee设备执行升级操作之后,该方法还包括:It should be noted that, in step 505 of the previous embodiment, the device management server can also configure the firmware recovery policy when the Zigbee device upgrade fails on the <x>/Recover/Policy node of the management tree through the Replace command. Specifically, it can be It can be configured as "All" or "Failed", and it can also be configured as "None". When configured as "None", it means that no specific firmware recovery strategy is currently configured. The result information then configures a specific firmware recovery strategy. After the Zigbee device that is applicable to the new firmware performs the upgrade operation, the method also includes:

1001、网关获取Zigbee设备的升级结果。1001. The gateway acquires an upgrade result of the Zigbee device.

具体的,网关可以向Zigbee设备发送Zigbee簇库属性读取ZCLRead_Attributes请求消息,其中携带CurrentFirmwareVersion参数,该参数指示网关请求获取Zigbee设备的最新固件版本号,Zigbee设备向网关发送携带Zigbee设备的最新固件版本号的响应消息,网关可以根据该最新固件版本号判断Zigbee设备是否升级成功,并根据判断结果记录ZigbeeFw/<x>/State/SuccessfulList和/或ZigbeeFw/<x>/State/FailList中的Zigbee设备信息,或者即时更新./GW/DevList/节点下的Zigbee设备固件版本信息。Specifically, the gateway can send the Zigbee cluster library attribute to the Zigbee device to read the ZCLRead_Attributes request message, which carries the CurrentFirmwareVersion parameter, which indicates that the gateway requests to obtain the latest firmware version number of the Zigbee device, and the Zigbee device sends the latest firmware version carrying the Zigbee device to the gateway number, the gateway can judge whether the Zigbee device is upgraded successfully according to the latest firmware version number, and record the Zigbee devices in ZigbeeFw/<x>/State/SuccessfulList and/or ZigbeeFw/<x>/State/FailList according to the judgment result information, or update the Zigbee device firmware version information under the ./GW/DevList/ node in real time.

1002、当Policy节点为None,表示当前没有固件恢复策略,网关通过Alert命令向设备管理服务器上报Zigbee设备的升级结果,其中携带升级结果状态信息,该升级结果状态信息可以是表示全部/部分成功、全部/部分失败等。当Policy节点配置为“All”或者“Failed”,执行步骤1006。1002. When the Policy node is None, it means that there is currently no firmware recovery policy. The gateway reports the upgrade result of the Zigbee device to the device management server through the Alert command, which carries the upgrade result status information. The upgrade result status information can indicate all/partial success, Full/partial failure etc. When the Policy node is configured as "All" or "Failed", step 1006 is performed.

1003、设备管理服务器通过Get命令,从网关管理树中获取ZigbeeFw/<x>/State节点下的详细升级状态信息(比如,获取ZigbeeFw/<x>/State/Value,和/或者<x>/State/FailedList,和/或者ZigbeeFw/<x>/State/SuccessfulList节点上记录的信息)。1003. The device management server obtains the detailed upgrade status information under the ZigbeeFw/<x>/State node from the gateway management tree through the Get command (for example, obtains ZigbeeFw/<x>/State/Value, and/or <x>/ State/FailedList, and/or information recorded on the ZigbeeFw/<x>/State/SuccessfulList node).

可选的,如果网关及时的更新了./GW/DevList/节点下的Zigbee设备的固件版本信息,则该设备管理服务器也可以通过读取从./GW/DevList/节点下的固件版本信息,获知升级结果。Optionally, if the gateway updates the firmware version information of the Zigbee device under the ./GW/DevList/ node in time, the device management server can also read the firmware version information from the ./GW/DevList/ node, Get the result of the upgrade.

1004、设备管理服务器根据获取的详细升级状态信息,通过Replace命令在网关管理树中的<x>/Recover/Policy节点重新配置固件恢复策略为All或者Failed。1004. The device management server reconfigures the firmware recovery policy as All or Failed at the <x>/Recover/Policy node in the gateway management tree through the Replace command according to the obtained detailed upgrade status information.

具体的,也可以根据获取的详细升级状态信息和设备管理服务器预置的策略,重新配置固件恢复策略为All或者Failed,或者,根据管理员的操作指示重新配置固件恢复策略为All或者Failed。Specifically, the firmware recovery policy can also be reconfigured to All or Failed according to the obtained detailed upgrade status information and the preset policy of the device management server, or the firmware recovery policy can be reconfigured to All or Failed according to the operation instructions of the administrator.

1005、设备管理服务器触发网关中的<x>/Recover节点上的可执行命令。1005. The device management server triggers an executable command on the <x>/Recover node in the gateway.

1006、网关执行<x>/Recover节点上的可执行命令,当<x>/Recover/Policy节点上的固件恢复策略为All时,向适用于该新固件的所有Zigbee设备发送固件恢复命令,当固件恢复策略为Failed时,向升级失败的Zigbee设备发送固件恢复命令,其中,固件恢复命令用于指示Zigbee设备恢复使用升级之前的固件。1006. The gateway executes the executable command on the <x>/Recover node. When the firmware recovery policy on the <x>/Recover/Policy node is All, it sends the firmware recovery command to all Zigbee devices applicable to the new firmware. When When the firmware recovery strategy is Failed, a firmware recovery command is sent to the Zigbee device that failed to upgrade, wherein the firmware recovery command is used to instruct the Zigbee device to resume using the firmware before the upgrade.

1007、网关查询接收固件恢复命令的Zigbee设备当前的版本号,确定是否已经恢复到升级前的版本。1007. The gateway inquires the current version number of the Zigbee device receiving the firmware restoration command, and determines whether the version before the upgrade has been restored.

具体的,查询接收固件恢复命令的Zigbee设备当前的版本号的过程包括:网关可以向Zigbee设备发送ZCL Read_Attributes请求消息,其中携带CurrentFirmwareVersion参数,该参数指示网关请求获取Zigbee设备的最新固件版本号,Zigbee设备向网关发送携带Zigbee设备的最新固件版本号的响应消息。Specifically, the process of querying the current version number of the Zigbee device receiving the firmware recovery command includes: the gateway can send a ZCL Read_Attributes request message to the Zigbee device, which carries the CurrentFirmwareVersion parameter, which indicates that the gateway requests to obtain the latest firmware version number of the Zigbee device, Zigbee The device sends a response message carrying the latest firmware version number of the Zigbee device to the gateway.

1008、网关通过Alert命令向设备管理服务器发送固件恢复结果,该固件恢复结果可以是各Zigbee设备都成功恢复,或者,升级失败的Zigbee设备已成功恢复。1008. The gateway sends a firmware recovery result to the device management server through an Alert command. The firmware recovery result may be that each Zigbee device has been successfully recovered, or that the Zigbee device that failed to upgrade has been successfully recovered.

1009、设备管理服务器向网关发送设备管理终止命令Final,结束设备管理会话。1009. The device management server sends a device management termination command Final to the gateway to end the device management session.

上述各实施例是以设备管理服务器与网关之间采用的是DM协议进行描述的,在设备管理服务器与网关之间也可以采用TR069协议。TR069协议与DM协议在设备管理服务器与网关间的交互机制和管理树数据结构的设计上都具有很大的相似性,都是通过建立设备管理服务器与网关间的远程设备管理会话,并所述在会话中操作网关管理树中节点的数据,来实现远程设备管理的功能,其主要区别在于:TR069协议中的节点并没有可执行的属性,即无法通过触发某个节点(如ZigbeeFw/<x>/Download/Operations/Download)上的可执行命令来指示网关执行相应的操作。为了指示网关执行相应的操作,TR069协议将一系列专用的设备管理命令(如Download,Reboot,...)携带在设备管理消息中、或者封装在网关所下载的新固件文件中。图11是TR069协议所支持的下载文件的结构,当该文件用于封装待升级的新固件时,其中该文件相关的设备管理命令列表可以携带一系列与设备固件升级相关描述和命令,其包括文件用途、固件版本信息、适用的设备版本范围等,可以扩展该新固件文件中还包括新固件所适用的Zigbee设备范围命令、新固件升级方式命令等。The foregoing embodiments are described by using the DM protocol between the device management server and the gateway, and the TR069 protocol may also be used between the device management server and the gateway. The TR069 protocol and the DM protocol have great similarities in the interaction mechanism between the device management server and the gateway and the design of the management tree data structure, both of which establish a remote device management session between the device management server and the gateway, and the Operate the data of the nodes in the gateway management tree in the session to realize the function of remote device management. The main difference is that the nodes in the TR069 protocol do not have executable attributes, that is, they cannot trigger a certain node (such as ZigbeeFw/<x >/Download/Operations/Download) to instruct the gateway to perform the corresponding operation. In order to instruct the gateway to perform corresponding operations, the TR069 protocol carries a series of dedicated device management commands (such as Download, Reboot, ...) in the device management message, or encapsulates it in the new firmware file downloaded by the gateway. Figure 11 is the structure of the download file supported by the TR069 protocol. When the file is used to package the new firmware to be upgraded, the device management command list related to the file can carry a series of descriptions and commands related to device firmware upgrade, including File usage, firmware version information, applicable device version range, etc., can be expanded to include Zigbee device range commands applicable to the new firmware, new firmware upgrade method commands, etc. in the new firmware file.

参阅图12,本发明实施例提供一种实现Zigbee设备远程升级的方法,该方法中,设备管理服务器与网关之间采用TR069协议,该方法具体包括:Referring to FIG. 12, the embodiment of the present invention provides a method for realizing remote upgrade of Zigbee equipment. In this method, the TR069 protocol is adopted between the equipment management server and the gateway. The method specifically includes:

1201-1203与501-503相同。1201-1203 are the same as 501-503.

1204、网关利用TR069协议,与设备管理服务器间建立设备管理会话。1204. The gateway uses the TR069 protocol to establish a device management session with the device management server.

具体的,设备管理服务器向网关发送设备管理通知消息ConnectionRequest,网关根据该消息,与设备管理服务器建立设备管理会话,并通过Inform命令中的DeviceId参数提供网关自身的基本设备信息,其中具体包含了生产商标识(Manufacturer)、设备标识(SerialNumber)、设备型号(ProductClass)等信息;设备管理服务器可进一步通过获取参数值GetParameterValues命令获取网关的详细设备信息(./DevDetail节点上的信息),以及与网关所管理的所有Zigbee设备信息(./GW/DevList节点上的信息)。Specifically, the device management server sends a device management notification message ConnectionRequest to the gateway, and the gateway establishes a device management session with the device management server according to the message, and provides the basic device information of the gateway itself through the DeviceId parameter in the Inform command, which specifically includes production Manufacturer ID (Manufacturer), device ID (SerialNumber), device model (ProductClass) and other information; the device management server can further obtain the detailed device information of the gateway (information on the ./DevDetail node) by obtaining the parameter value GetParameterValues command, and communicate with the gateway All managed Zigbee device information (information on the ./GW/DevList node).

可选的,网关也可以主动的向设备管理服务器提供网关自身的基本设备信息和详细设备信息。Optionally, the gateway can also proactively provide the basic device information and detailed device information of the gateway itself to the device management server.

1205、设备管理服务器通过设置参数值SetParameterValues命令在网关中ZigbeeFw/<x>节点上配置新固件信息。1205. The device management server configures new firmware information on the ZigbeeFw/<x> node in the gateway through the SetParameterValues command.

如果网关中还没有创建ZigbeeFw/<x>节点,则设备管理服务器可以通过添加对象AddObject命令创建该节点。If the ZigbeeFw/<x> node has not been created in the gateway, the device management server can create the node by adding an object AddObject command.

1206、设备管理服务器采用TR069协议下载新固件文件到网关上,该新固件文件中携带有Zigbee设备固件升级管理命令,该Zigbee设备固件升级管理命令是设备管理服务器预先写入的。1206. The device management server uses the TR069 protocol to download a new firmware file to the gateway. The new firmware file carries a Zigbee device firmware upgrade management command, which is pre-written by the device management server.

具体的,该步骤包括:设备管理服务器通过Download命令指示网关从指定的地址(URL)下载新固件文件;网关从指定地址下载新固件文件,该新固件文件包括:新固件和Zigbee设备固件升级管理命令,Zigbee设备固件升级管理命令包括新固件升级方式命令、新固件所适用的Zigbee设备范围命令、升级失败时的固件恢复策略命令等,其中,新固件升级方式命令为指示固件分发及分发后Zigbee设备立即升级的命令,或者,指示固件分发及所有Zigbee设备都成功下载新固件后同步执行固件升级的命令,或者指示固件分发及分发后Zigbee设备在预定的升级时间进行升级的命令。Specifically, this step includes: the device management server instructs the gateway to download the new firmware file from the specified address (URL) by the Download command; the gateway downloads the new firmware file from the specified address, and the new firmware file includes: new firmware and Zigbee device firmware upgrade management Commands, Zigbee device firmware upgrade management commands include new firmware upgrade mode commands, Zigbee device range commands applicable to the new firmware, firmware recovery policy commands when the upgrade fails, etc. Among them, the new firmware upgrade mode command is to indicate the distribution of firmware and the Zigbee device after distribution. The command to upgrade the device immediately, or the command to instruct the firmware distribution and all Zigbee devices to execute the firmware upgrade synchronously after the new firmware is successfully downloaded, or the command to instruct the Zigbee device to upgrade at the scheduled upgrade time after the firmware distribution and distribution.

1207、网关利用Zigbee设备固件升级管理命令,将新固件下载到新固件所适用的各Zigbee设备上,并指示新固件所适用的各Zigbee设备进行固件升级。1207. The gateway uses the Zigbee device firmware upgrade management command to download new firmware to each Zigbee device to which the new firmware is applicable, and instructs each Zigbee device to which the new firmware is applicable to perform firmware upgrade.

其中,可以采用普通升级方式、同步升级方式、定时升级方式。Among them, common upgrade methods, synchronous upgrade methods, and scheduled upgrade methods can be used.

1208、网关获取Zigbee设备的升级结果。1208. The gateway acquires an upgrade result of the Zigbee device.

1209、当新固件文件中携带的固件恢复策略命令指示为“None”时,网关向设备管理服务器上报Zigbee设备的升级结果,其中携带升级结果状态信息,该升级结果状态信息可以是表示全部/部分成功、全部/部分失败等。当新固件文件中携带的固件恢复策略指示为“All”或者“Failed”,执行步骤1212。1209. When the firmware recovery policy command carried in the new firmware file indicates "None", the gateway reports the upgrade result of the Zigbee device to the device management server, which carries upgrade result status information, and the upgrade result status information may indicate all/part Success, full/partial failure, etc. When the firmware recovery strategy carried in the new firmware file indicates "All" or "Failed", step 1212 is performed.

1210、设备管理服务器通过Get Parameter Value命令,从网关管理树中获取ZigbeeFw/<x>/State节点下的详细升级状态信息(比如,获取ZigbeeFw/<x>/State/Value,和/或者<x>/State/FailedList,和/或者ZigbeeFw/<x>/State/SuccessfulList节点上记录的信息)。1210. The device management server obtains the detailed upgrade status information under the ZigbeeFw/<x>/State node from the gateway management tree through the Get Parameter Value command (for example, obtains ZigbeeFw/<x>/State/Value, and/or <x> >/State/FailedList, and/or the information recorded on the ZigbeeFw/<x>/State/SuccessfulList node).

1211、设备管理服务器根据获取的详细升级状态信息,向网关发送Recover命令,该命令中携带固件恢复策略指示,该命令中的固件恢复策略指示为“All”或者“Failed”。1211. The device management server sends a Recover command to the gateway according to the obtained detailed upgrade status information, the command carries a firmware recovery policy indication, and the firmware recovery policy indication in the command is "All" or "Failed".

1212、网关根据固件恢复策略指示,向该新固件所适用的所有Zigbee设备或者升级失败的Zigbee设备发送固件恢复命令。1212. The gateway sends a firmware recovery command to all Zigbee devices to which the new firmware is applicable or Zigbee devices that fail to upgrade according to the firmware recovery policy instruction.

1213、网关查询接收固件恢复命令的Zigbee设备当前的版本号,确定是否已经恢复到升级前的版本,并根据确定结果更新ZigbeeFw/<x>/State/Value节点上信息。1213. The gateway queries the current version number of the Zigbee device receiving the firmware restoration command, determines whether it has been restored to the version before the upgrade, and updates the information on the ZigbeeFw/<x>/State/Value node according to the determination result.

具体实现方式与步骤1007相同,在此不再赘述。The specific implementation manner is the same as step 1007, and will not be repeated here.

1214、网关通过TransportComplete命令向设备管理服务器发送固件恢复结果,该固件恢复结果可以是各Zigbee设备都成功恢复,或者,升级失败的Zigbee设备已成功恢复。1214. The gateway sends a firmware recovery result to the device management server through the TransportComplete command. The firmware recovery result may be that all Zigbee devices have been successfully recovered, or that the Zigbee devices that failed to upgrade have been successfully recovered.

1215、设备管理服务器向网关发送设备管理终止命令,结束设备管理会话。1215. The device management server sends a device management termination command to the gateway to end the device management session.

该实施例在网关所下载的新固件文件中扩展了设备管理命令,也可以不扩展新固件文件,而是采用专用的设备管理命令通知网关,不影响本发明的实现。In this embodiment, the device management command is extended in the new firmware file downloaded by the gateway, or the new firmware file may not be extended, but a special device management command is used to notify the gateway, which does not affect the implementation of the present invention.

参阅图13,本发明实施例提供一种网关,其包括:Referring to Figure 13, an embodiment of the present invention provides a gateway, which includes:

远程管理信息交互单元10,用于利用远程设备管理协议接收设备管理服务器发送的固件下载指令、所述固件所适用的设备范围指示信息和固件下发及升级指示信息;The remote management information interaction unit 10 is used to receive the firmware download instruction sent by the device management server, the device range indication information to which the firmware is applicable, and the firmware delivery and upgrade indication information sent by the remote device management protocol;

其中,所述固件所适用的设备范围指示信息包括:所述固件所适用的Zigbee设备的标识、所述固件所适用的Zigbee设备生产商的标识、所述固件所适用的Zigbee设备类别标识和能升级到所获取的固件的Zigbee设备当前使用的固件版本范围指示信息中至少一个。Wherein, the device range indication information applicable to the firmware includes: the identification of the Zigbee device applicable to the firmware, the identification of the manufacturer of the Zigbee device applicable to the firmware, the class identification and capability of the Zigbee device applicable to the firmware At least one of the firmware version range indication information currently used by the Zigbee device that is upgraded to the acquired firmware.

固件获取单元20,用于根据所述固件下载指令,获取固件;具体的,固件下载指令中可以携带固件,则固件获取单元20直接从固件下载指令中获取固件,或者固件下载指令中携带固件的下载地址,则固件获取单元20根据固件的下载地址,下载固件。The firmware acquisition unit 20 is used to obtain firmware according to the firmware download instruction; specifically, the firmware download instruction can carry firmware, and the firmware acquisition unit 20 directly acquires the firmware from the firmware download instruction, or the firmware download instruction carries the firmware. download address, the firmware acquiring unit 20 downloads the firmware according to the download address of the firmware.

升级单元30,用于根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作。The upgrading unit 30 is used to issue the acquired Zigbee device to the Zigbee device to which the firmware is applicable according to the firmware delivery and upgrade instruction information and the device range instruction information applicable to the firmware, using the Zigbee device firmware upgrade management protocol. firmware, and control the Zigbee device to which the firmware is applicable to perform a firmware upgrade operation.

进一步的,为了使设备管理服务器获知升级结果,该网关还包括:Further, in order to let the device management server know the upgrade result, the gateway also includes:

查询单元40,用于向执行固件升级操作的Zigbee设备查询升级结果。The query unit 40 is configured to query the upgrade result from the Zigbee device performing the firmware upgrade operation.

进一步的,为了能够向设备管理服务器提供升级结果,所述远程管理信息交互单元20还用于接收设备管理服务器发送的升级结果请求消息,根据查询结果向所述设备管理服务器发送响应消息。Further, in order to provide an upgrade result to the device management server, the remote management information interaction unit 20 is further configured to receive an upgrade result request message sent by the device management server, and send a response message to the device management server according to the query result.

进一步的,为了在有Zigbee设备升级失败时,不影响执行固件升级操作后的Zigbee网络的正常运行,还包括:恢复单元50,用于当查询结果表示至少一个Zigbee设备升级失败时,利用Zigbee设备固件升级管理协议向升级失败的Zigbee设备发送固件恢复命令或者向执行固件升级操作的所有Zigbee设备都发送固件恢复命令,所述固件恢复命令用于指示恢复使用升级之前的固件。Further, in order not to affect the normal operation of the Zigbee network after performing the firmware upgrade operation when there is a Zigbee device upgrade failure, it also includes: a recovery unit 50, which is used to utilize the Zigbee device when the query result indicates that at least one Zigbee device upgrade fails. The firmware upgrade management protocol sends a firmware recovery command to the Zigbee device that fails to upgrade or sends a firmware recovery command to all Zigbee devices that perform firmware upgrade operations, and the firmware recovery command is used to instruct to restore the firmware before the upgrade.

可选的,该远程管理信息交互单元20还用于利用远程设备管理协议接收所述设备管理服务器发送的固件恢复指示,所述固件恢复指示是所述设备管理服务器根据接收的升级结果确定至少一个Zigbee设备升级失败时发送的;所述固件恢复指示表示升级失败的Zigbee设备需执行恢复操作或者表示执行固件升级操作的所有Zigbee设备都需执行恢复操作。Optionally, the remote management information interaction unit 20 is also configured to receive a firmware restoration instruction sent by the device management server by using a remote device management protocol, and the firmware restoration instruction is determined by the device management server according to the received upgrade result at least one It is sent when the upgrade of the Zigbee device fails; the firmware recovery instruction indicates that the Zigbee device that fails to upgrade needs to perform a recovery operation or indicates that all Zigbee devices that perform a firmware upgrade operation need to perform a recovery operation.

其中,固件下发及升级指示信息指示所述固件所适用的每个Zigbee设备成功下载固件后立即执行固件升级操作;此时,所述升级单元30包括:固件下发单元301,用于利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备下载所获取的固件;判断单元302,用于判断所述固件所适用的Zigbee设备是否已成功下载所述固件;第一升级指示发送单元303,用于向已成功下载的Zigbee设备发送立即升级的指示信息。其中,所述固件下发及升级指示信息为触发执行网关上表示固件分发及分发后Zigbee设备立即升级的可执行命令的指示;或者,所述固件下发及升级指示信息包括触发执行网关上表示分发固件的可执行命令的指示,和,在向设备管理服务器上报固件所适用的Zigbee设备的固件下载状态之后接收的触发执行网关上表示固件分发后Zigbee设备立即升级的可执行命令的指示;或者,所述固件下发及升级指示信息为从设备管理服务器发送的固件文件中获取指示固件分发及分发后Zigbee设备立即升级的命令。Wherein, the firmware delivery and upgrade instruction information indicates that each Zigbee device to which the firmware is applicable performs a firmware upgrade operation immediately after successfully downloading the firmware; at this time, the upgrade unit 30 includes: a firmware delivery unit 301 for using Zigbee The device firmware upgrade management protocol instructs the Zigbee device to which the firmware is applied to download the acquired firmware; the judging unit 302 is used to judge whether the Zigbee device to which the firmware is applied has successfully downloaded the firmware; the first upgrade instruction sending unit 303 , which is used to send immediate upgrade instructions to Zigbee devices that have been successfully downloaded. Wherein, the firmware delivery and upgrade instruction information is an instruction that triggers the execution of an executable command on the gateway to indicate that the firmware is distributed and the Zigbee device is immediately upgraded after the distribution; An indication of an executable command for distributing firmware, and an indication of an executable command that triggers the execution of an executable command on the gateway indicating that the Zigbee device will be upgraded immediately after the firmware is distributed, received after reporting the firmware download status of the Zigbee device to which the firmware applies to the device management server; or , the firmware delivery and upgrade instruction information is obtained from the firmware file sent by the device management server to instruct the Zigbee device to upgrade the firmware immediately after distribution and distribution.

或者,固件下发及升级指示信息指示在所述固件所适用的所有Zigbee设备都成功下载固件后同步执行固件升级操作;此时,所述升级单元30包括:固件下发单元301,用于利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备下载所获取的固件;下载结果判断单元304,用于判断所述固件所适用的各Zigbee设备是否都已成功下载所述固件;第二升级指示发送单元306,用于在下载结果判断单元的判断结果为是时,向所述固件所适用的所有Zigbee设备发送立即升级的指示信息;或者,选择一个时间点,分别向所述固件所适用的所有Zigbee设备发送指示在所选时间点进行固件升级的指示信息;进一步的,升级单元30还可以包括:设备状态判断单元305,用于判断所述固件所适用的各Zigbee设备是否都处于激活态;第二升级指示发送单元306具体用于在下载结果判断单元的判断结果为是且设备状态判断单元为是时,向所述固件所适用的所有Zigbee设备发送立即升级的指示信息;在下载结果判断单元的判断结果为是,且设备状态判断单元为否时,选择所述固件所适用的所有Zigbee设备都处于激活态的一个时间点,分别向所述固件所适用的所有Zigbee设备发送指示在所选时间点进行固件升级的指示信息。其中,所述固件下发及升级指示信息为触发执行网关上表示固件分发及所有Zigbee设备都成功下载固件后立即执行固件升级的可执行命令的指示;或者,所述固件下发及升级指示信息包括触发执行网关上表示分发固件的可执行命令的指示,和,向设备管理服务器上报固件所适用的Zigbee设备的固件下载状态之后接收的触发执行网关上表示所有Zigbee设备都成功下载固件后立即执行固件升级的可执行命令的指示;或者,所述固件下发及升级指示信息为从设备管理服务器发送的固件文件中获取指示固件分发及所有Zigbee设备都成功下载固件后立即执行固件升级的命令。Or, the firmware issue and upgrade indication information indicates that after all Zigbee devices to which the firmware is applied successfully download the firmware, the firmware upgrade operation is performed synchronously; at this time, the upgrade unit 30 includes: a firmware issue unit 301 for using The Zigbee device firmware upgrade management protocol instructs the Zigbee device applicable to the firmware to download the acquired firmware; the download result judging unit 304 is used to determine whether each Zigbee device applicable to the firmware has successfully downloaded the firmware; the second Upgrade indication sending unit 306, for when the judgment result of downloading result judging unit is yes, send the indication information of upgrading immediately to all Zigbee equipments that described firmware is applicable; Or, select a time point, send respectively to described firmware All applicable Zigbee devices send instructions to carry out firmware upgrade instruction information at selected time points; further, the upgrade unit 30 may also include: a device status judging unit 305 for judging whether each Zigbee device to which the firmware is applicable is in Activated state; the second upgrade indication sending unit 306 is specifically used for when the judgment result of the download result judging unit is yes and the device state judging unit is yes, sending the indication information of upgrading immediately to all Zigbee devices to which the firmware is applicable; The judgment result of the download result judging unit is yes, and when the device state judging unit is no, select a point in time when all Zigbee devices applicable to the firmware are all in an active state, and send the data to all Zigbee devices applicable to the firmware respectively. Instructions for firmware upgrade at selected point in time. Wherein, the firmware distribution and upgrade instruction information is an instruction to trigger the execution of an executable command on the gateway that expresses that the firmware is distributed and all Zigbee devices have successfully downloaded the firmware and immediately executes the firmware upgrade; or, the firmware distribution and upgrade instruction information Including triggering the execution of instructions on the gateway indicating the executable command for distributing firmware, and reporting the firmware download status of the Zigbee devices to which the firmware applies to the device management server to the device management server, and receiving the trigger execution gateway indicating that all Zigbee devices have successfully downloaded the firmware and executed immediately An instruction of the executable command of the firmware upgrade; or, the firmware distribution and the upgrade instruction information are obtained from the firmware file sent by the device management server to indicate the distribution of the firmware and execute the firmware upgrade immediately after all Zigbee devices have successfully downloaded the firmware.

或者,固件下发及升级指示信息指示所述固件所适用的每个Zigbee设备成功下载固件后在预定的升级时间执行固件升级操作;此时,所述升级单元包括:固件下发单元301,用于利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备下载所获取的固件;第三升级指示发送单元307,用于分别向所述固件所适用的所有Zigbee设备发送指示在所述预定的升级时间进行固件升级的指示信息。其中,固件下发及升级指示信息包括:表示所述预定的升级时间的时间参数,和触发执行网关上表示固件分发及分发后Zigbee设备在所述预定的升级时间进行升级的可执行命令的指示;或者,固件下发及升级指示信息包括:触发执行网关上表示分发固件的可执行命令的指示,和向设备管理服务器上报所述固件所适用的Zigbee设备的固件下载状态之后接收的表示所述预定的升级时间的时间参数以及触发执行网关上表示固件分发后Zigbee设备在所述预定的升级时间进行升级的可执行命令的指示;或者,固件下发及升级指示信息包括:从设备管理服务器发送的固件文件中获取指示固件分发及分发后Zigbee设备在预定的升级时间进行升级的命令。Or, the firmware issue and upgrade instruction information indicates that each Zigbee device to which the firmware is applied successfully downloads the firmware and executes the firmware upgrade operation at a predetermined upgrade time; at this time, the upgrade unit includes: a firmware issue unit 301, used Utilizing the Zigbee device firmware upgrade management protocol to instruct the Zigbee devices to which the firmware is applicable to download the acquired firmware; the third upgrade instruction sending unit 307 is used to send instructions to all the Zigbee devices to which the firmware is applicable respectively. Instructions for performing firmware upgrades at the upgrade time. Wherein, the firmware delivery and upgrade instruction information includes: a time parameter representing the predetermined upgrade time, and an instruction to trigger execution of an executable command on the gateway representing firmware distribution and Zigbee device upgrade at the predetermined upgrade time after distribution Or, the firmware issuing and upgrading instruction information includes: triggering the execution of an indication of an executable command representing the distribution of firmware on the gateway, and reporting the firmware download status of the Zigbee device to which the firmware is applicable to the device management server and receiving the said The time parameter of the scheduled upgrade time and triggering the execution of instructions on the gateway indicating that the Zigbee device upgrades at the scheduled upgrade time after the firmware is distributed; or, the firmware delivery and upgrade instruction information includes: sent from the device management server The command to instruct the Zigbee device to upgrade at the scheduled upgrade time after the firmware distribution and distribution is obtained from the firmware file.

其中,参阅图14A,固件下发单元301具体包括:Wherein, referring to FIG. 14A, the firmware issuing unit 301 specifically includes:

适用范围确定单元3011,用于根据所述固件所适用的设备范围指示信息和已获取的各Zigbee设备的信息,确定所述固件所适用的Zigbee设备;和第一通知消息下发单元3012,用于利用Zigbee设备固件升级管理协议,采用单播方式向所述固件所适用的Zigbee设备发送通知消息,以通知所述固件所适用的Zigbee设备下载所述固件;和下载单元3013,用于将所述固件下载到接收通知消息的Zigbee设备上;The scope of application determination unit 3011 is used to determine the Zigbee equipment to which the firmware is applicable according to the indication information of the equipment scope to which the firmware is applicable and the information of each Zigbee equipment that has been obtained; and the first notification message delivery unit 3012 is used to Utilizing the Zigbee device firmware upgrade management protocol, adopting a unicast method to send a notification message to the Zigbee device to which the firmware is applicable, to notify the Zigbee device to which the firmware is applicable to download the firmware; The above firmware is downloaded to the Zigbee device receiving the notification message;

或者,参阅图14B,固件下发单元301具体包括:第二通知消息下发单元3014,用于根据已获取的各Zigbee设备的信息,利用Zigbee设备固件升级管理协议,采用广播方式向各Zigbee设备下发通知消息,所述通知消息中携带所述固件所适用的Zigbee设备的信息,其中,所述固件所适用的Zigbee设备的信息包括:所述固件所适用的Zigbee设备的生产商标识、类别标识中至少一个;和下载单元3013,用于将所述固件下载到请求固件的Zigbee设备上,其中,所述请求固件的Zigbee设备是根据所述通知消息确定自己能适用所述固件的Zigbee设备。Or, referring to FIG. 14B, the firmware sending unit 301 specifically includes: a second notification message sending unit 3014, which is used to broadcast to each Zigbee device by using the Zigbee device firmware upgrade management protocol according to the obtained information of each Zigbee device. Send a notification message, the notification message carries the information of the Zigbee device to which the firmware is applicable, wherein the information of the Zigbee device to which the firmware is applicable includes: the manufacturer identification and category of the Zigbee device to which the firmware is applicable At least one of the identifiers; and a download unit 3013, configured to download the firmware to a Zigbee device requesting firmware, wherein the Zigbee device requesting firmware is a Zigbee device that determines that the firmware can be applied to itself according to the notification message .

为了获取网关所管理的各Zigbee设备的信息,则该网关还包括:Zigbee设备信息获取单元60,用于利用Zigbee设备固件升级管理协议从其所管理的各Zigbee设备获取相应Zigbee设备的信息。In order to obtain the information of each Zigbee device managed by the gateway, the gateway also includes: a Zigbee device information obtaining unit 60, which is used to obtain the information of the corresponding Zigbee device from each Zigbee device managed by it using the Zigbee device firmware upgrade management protocol.

其中,所述固件下发及升级指示信息包括:固件下发指示信息和升级指示信息;远程管理信息交互单元10具体用于向设备管理服务器发送所述固件所适用的Zigbee设备的固件下载结果,接收所述设备管理服务器发送的升级指示信息,所述升级指示信息是所述设备管理服务器根据所述固件所适用的Zigbee设备的固件下载结果确定需要发送升级指示信息时所发送的。Wherein, the firmware delivery and upgrade instruction information includes: firmware delivery instruction information and upgrade instruction information; the remote management information interaction unit 10 is specifically used to send the firmware download result of the Zigbee device to which the firmware is applicable to the device management server, receiving upgrade instruction information sent by the device management server, where the upgrade instruction information is sent when the device management server determines that the upgrade instruction information needs to be sent according to the firmware download result of the Zigbee device to which the firmware is applicable.

本发明实施例中网关根据设备管理服务器发送的新固件所适用的设备范围指示信息,确定该新固件所适用的Zigbee设备,根据所述设备管理服务器发送的固件下发及升级指示信息,向所述新固件所适用的Zigbee设备下发新固件,并控制其执行固件升级操作,这样可以实现设备管理服务器控制Zigbee设备进行固件升级,不需要Zigbee设备支持SNMP协议,因此对Zigbee设备的改动很小。In the embodiment of the present invention, the gateway determines the Zigbee device to which the new firmware is applicable according to the device scope indication information to which the new firmware is sent by the device management server, and sends the Zigbee device to all The Zigbee devices to which the above new firmware applies deliver new firmware and control it to perform firmware upgrade operations, so that the device management server can control the Zigbee devices to perform firmware upgrades, and the Zigbee devices do not need to support the SNMP protocol, so the changes to the Zigbee devices are small .

参阅图15,本发明实施例提供一种网络系统,包括网关和设备管理服务器,其中,网关和设备管理服务器的功能详见上述方法和装置实施例的描述,在此不再赘述。Referring to FIG. 15 , an embodiment of the present invention provides a network system, including a gateway and a device management server. For the functions of the gateway and the device management server, refer to the description of the above-mentioned method and device embodiments, and details will not be repeated here.

本发明实施例中网关根据设备管理服务器发送的新固件所适用的设备范围指示信息,确定该新固件所适用的Zigbee设备,根据所述设备管理服务器发送的固件下发及升级指示信息,向所述新固件所适用的Zigbee设备下发新固件,并控制其执行固件升级操作,这样可以实现设备管理服务器控制Zigbee设备进行固件升级,不需要Zigbee设备支持SNMP协议,因此对Zigbee设备的改动很小。In the embodiment of the present invention, the gateway determines the Zigbee device to which the new firmware is applicable according to the device scope indication information to which the new firmware is sent by the device management server, and sends the Zigbee device to all The Zigbee devices to which the above new firmware applies deliver new firmware and control it to perform firmware upgrade operations, so that the device management server can control the Zigbee devices to perform firmware upgrades, and the Zigbee devices do not need to support the SNMP protocol, so the changes to the Zigbee devices are small .

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,例如只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented through a program to instruct related hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, Disk or CD, etc.

以上对本发明实施例所提供的实现Zigbee设备远程升级的方法、装置及网络系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。Above, the method, device and network system for realizing the remote upgrade of Zigbee equipment provided by the embodiments of the present invention have been introduced in detail. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.

Claims (18)

1.一种实现Zigbee设备远程升级的方法,其特征在于,包括:1. A method for realizing remote upgrading of Zigbee equipment, characterized in that, comprising: 网关利用远程设备管理协议接收设备管理服务器发送的固件下载指令,根据所述固件下载指令获取固件;The gateway uses the remote device management protocol to receive the firmware download instruction sent by the device management server, and obtains the firmware according to the firmware download instruction; 所述网关利用远程设备管理协议接收设备管理服务器发送的所述固件所适用的设备范围指示信息和固件下发及升级指示信息;The gateway uses the remote device management protocol to receive the device range indication information to which the firmware is applicable and the firmware delivery and upgrade indication information sent by the device management server; 所述网关根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作;The gateway uses the Zigbee device firmware upgrade management protocol to issue the acquired firmware to the Zigbee device to which the firmware is applicable according to the firmware delivery and upgrade indication information and the applicable device range indication information of the firmware, and Controlling the applicable Zigbee device of the firmware to perform a firmware upgrade operation; 其中,所述固件下发及升级指示信息指示在所述固件所适用的所有Zigbee设备都成功下载固件后同步执行固件升级操作;向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作具体为:利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备下载所获取的固件,并在所述固件所适用的所有Zigbee设备都成功下载固件之后,向所述固件所适用的所有Zigbee设备发送立即升级的指示信息,或者,选择一个时间点,分别向所述固件所适用的所有Zigbee设备发送指示在所选时间点进行固件升级的指示信息。Wherein, the firmware distribution and upgrade instruction information indicates that all Zigbee devices to which the firmware is applicable are all successfully downloaded firmware and perform firmware upgrade operations synchronously; the obtained firmware is issued to the Zigbee devices to which the firmware is applicable, and Controlling the Zigbee devices applicable to the firmware to perform firmware upgrade operations is specifically: using the Zigbee device firmware upgrade management protocol to instruct the Zigbee devices applicable to the firmware to download the acquired firmware, and all Zigbee devices applicable to the firmware are After successfully downloading the firmware, send instructions to upgrade immediately to all Zigbee devices to which the firmware is applicable, or select a time point to send instructions to all Zigbee devices to which the firmware is applicable to perform firmware upgrades at the selected time point instructions for the . 2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein, 所述固件所适用的设备范围指示信息包括:所述固件所适用的Zigbee设备的标识、所述固件所适用的Zigbee设备生产商的标识、所述固件所适用的Zigbee设备类别标识和能升级到所获取的固件的Zigbee设备当前使用的固件版本范围指示信息中至少一个。The indication information of the equipment range applicable to the firmware includes: the identification of the Zigbee equipment applicable to the firmware, the identification of the manufacturer of the Zigbee equipment applicable to the firmware, the identification of the Zigbee equipment category applicable to the firmware, and the identification of the Zigbee equipment that can be upgraded to At least one of the obtained firmware version range indication information of the Zigbee device currently used. 3.根据权利要求1所述的方法,其特征在于,该方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 所述网关利用Zigbee设备固件升级管理协议向执行固件升级操作的Zigbee设备查询升级结果;The gateway utilizes the Zigbee device firmware upgrade management protocol to query the upgrade result of the Zigbee device performing the firmware upgrade operation; 所述网关利用远程设备管理协议接收设备管理服务器发送的升级结果请求消息,根据查询结果向所述设备管理服务器发送响应消息。The gateway uses the remote device management protocol to receive the upgrade result request message sent by the device management server, and sends a response message to the device management server according to the query result. 4.根据权利要求1所述的方法,其特征在于,该方法还包括:4. The method according to claim 1, characterized in that the method further comprises: 所述网关利用Zigbee设备固件升级管理协议向执行固件升级操作的Zigbee设备查询升级结果;The gateway utilizes the Zigbee device firmware upgrade management protocol to query the upgrade result of the Zigbee device performing the firmware upgrade operation; 当查询结果表示至少一个Zigbee设备升级失败时,所述网关利用Zigbee设备固件升级管理协议向升级失败的Zigbee设备发送固件恢复命令,所述固件恢复命令用于指示升级失败的Zigbee设备恢复使用升级之前的固件。When the query result indicates that at least one Zigbee device upgrade fails, the gateway uses the Zigbee device firmware upgrade management protocol to send a firmware recovery command to the Zigbee device that failed to upgrade, and the firmware recovery command is used to indicate that the Zigbee device that failed to upgrade resumes using the upgrade before firmware. 5.根据权利要求4所述的方法,其特征在于,5. The method of claim 4, wherein, 在向升级失败的Zigbee设备发送固件恢复命令之前,该方法还包括:Before sending the firmware recovery command to the Zigbee device that failed to upgrade, the method also includes: 所述网关利用远程设备管理协议向设备管理服务器发送所述固件所适用的Zigbee设备的升级结果,并接收所述设备管理服务器发送的固件恢复指示,所述固件恢复指示是所述设备管理服务器根据接收的升级结果确定至少一个Zigbee设备升级失败时发送的;The gateway uses the remote device management protocol to send the upgrade result of the Zigbee device to which the firmware is applicable to the device management server, and receives the firmware recovery instruction sent by the device management server, and the firmware recovery instruction is issued by the device management server according to The received upgrade result is sent when at least one Zigbee device upgrade fails; 所述向升级失败的Zigbee设备发送固件恢复命令具体为:The firmware recovery command sent to the Zigbee device that failed to upgrade is specifically: 当所述固件升级恢复指示表示升级失败的Zigbee设备需执行恢复操作时,利用Zigbee设备固件升级管理协议向升级失败的Zigbee设备发送固件恢复命令。When the firmware upgrade recovery instruction indicates that the Zigbee device that failed to upgrade needs to perform a recovery operation, the Zigbee device firmware upgrade management protocol is used to send a firmware recovery command to the Zigbee device that failed to upgrade. 6.根据权利要求1所述的方法,其特征在于,6. The method of claim 1, wherein, 所述网关向执行固件升级操作的Zigbee设备查询升级结果;The gateway inquires about the upgrade result to the Zigbee device performing the firmware upgrade operation; 当查询结果表示至少一个Zigbee设备升级失败时,所述网关利用Zigbee设备固件升级管理协议向执行固件升级操作的所有Zigbee设备都发送固件恢复命令,所述固件恢复命令用于指示恢复使用升级之前的固件。When the query result indicates that the upgrade of at least one Zigbee device fails, the gateway uses the Zigbee device firmware upgrade management protocol to send a firmware recovery command to all Zigbee devices that perform the firmware upgrade operation, and the firmware recovery command is used to indicate that the firmware before the upgrade is restored. firmware. 7.根据权利要求6所述的方法,其特征在于,7. The method of claim 6, wherein, 在向执行固件升级操作的所有Zigbee设备都发送固件恢复命令之前,该方法还包括:Before sending the firmware recovery command to all Zigbee devices performing the firmware upgrade operation, the method further includes: 所述网关利用远程设备管理协议向设备管理服务器发送所述固件所适用的Zigbee设备的升级结果;并接收所述设备管理服务器发送的固件恢复指示,所述固件恢复指示是所述设备管理服务器根据接收的升级结果确定至少一个Zigbee设备升级失败时发送的;The gateway uses the remote device management protocol to send the upgrade result of the Zigbee device to which the firmware is applicable to the device management server; and receives the firmware recovery instruction sent by the device management server, the firmware recovery instruction is the device management server according to The received upgrade result is sent when at least one Zigbee device upgrade fails; 所述向执行固件升级操作的所有Zigbee设备都发送固件恢复命令具体为:Described to all Zigbee equipments that carry out firmware upgrading operation all send firmware recovery order specifically as: 当所述固件升级恢复指示表示执行固件升级操作的所有Zigbee设备都需执行恢复操作时,利用Zigbee设备固件升级管理协议向执行固件升级操作的所有Zigbee设备发送固件恢复命令。When the firmware upgrade recovery indication indicates that all Zigbee devices that perform firmware upgrade operations need to perform recovery operations, use the Zigbee device firmware upgrade management protocol to send firmware recovery commands to all Zigbee devices that perform firmware upgrade operations. 8.根据权利要求1所述的方法,其特征在于,8. The method of claim 1, wherein, 所述固件下发及升级指示信息包括:固件下发指示信息和升级指示信息;The firmware delivery and upgrade instruction information includes: firmware delivery instruction information and upgrade instruction information; 所述网关利用远程设备管理协议接收远程设备管理服务器发送的升级指示信息之前,该方法还包括:Before the gateway uses the remote device management protocol to receive the upgrade instruction information sent by the remote device management server, the method further includes: 所述网关向设备管理服务器发送所述固件所适用的Zigbee设备的固件下载结果;The gateway sends the firmware download result of the Zigbee device to which the firmware is applied to the device management server; 所述利用远程设备管理协议接收远程设备管理服务器发送的升级指示信息具体为:The receiving of the upgrade instruction information sent by the remote device management server using the remote device management protocol is specifically: 在向设备管理服务器发送所述固件所适用的Zigbee设备的固件下载结果之后,接收所述设备管理服务器发送的升级指示信息,所述升级指示信息是所述设备管理服务器根据所述固件所适用的Zigbee设备的固件下载结果确定需要发送升级指示信息时所发送的。After sending the firmware download result of the Zigbee device to which the firmware is applicable to the device management server, receive the upgrade instruction information sent by the device management server, and the upgrade instruction information is the device management server according to the firmware. It is sent when the firmware download result of the Zigbee device determines that the upgrade instruction information needs to be sent. 9.根据权利要求1所述的方法,其特征在于,9. The method of claim 1, wherein, 所述网关利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备下载所获取的固件包括:The gateway utilizes the Zigbee device firmware upgrade management protocol to instruct the Zigbee device to which the firmware is applied to download the acquired firmware including: 所述网关根据所述固件所适用的设备范围指示信息和已获取的各Zigbee设备的信息,确定所述固件所适用的Zigbee设备;利用Zigbee设备固件升级管理协议,采用单播方式向所述固件所适用的Zigbee设备发送通知消息,以通知所述固件所适用的Zigbee设备下载所述固件;The gateway determines the Zigbee equipment applicable to the firmware according to the equipment range indication information applicable to the firmware and the information of the obtained Zigbee equipment; utilizes the Zigbee equipment firmware upgrade management protocol to send the firmware to the firmware in unicast mode The applicable Zigbee device sends a notification message to notify the applicable Zigbee device of the firmware to download the firmware; 或者,or, 所述网关根据已获取的各Zigbee设备的信息,利用Zigbee设备固件升级管理协议,采用广播方式向各Zigbee设备下发通知消息,所述通知消息中携带所述固件所适用的Zigbee设备的信息,其中,所述固件所适用的Zigbee设备的信息包括:所述固件所适用的Zigbee设备的生产商标识、类别标识中至少一个。The gateway utilizes the Zigbee device firmware upgrade management protocol according to the obtained information of each Zigbee device, and adopts a broadcast mode to send a notification message to each Zigbee device, and the notification message carries the information of the Zigbee device to which the firmware is applicable, Wherein, the information of the Zigbee device to which the firmware is applicable includes: at least one of a manufacturer identification and a category identification of the Zigbee device to which the firmware is applicable. 10.根据权利要求9所述的方法,其特征在于,10. The method of claim 9, wherein, 在确定所述固件所适用的Zigbee设备之前,该方法还包括:Before determining the applicable Zigbee device of the firmware, the method also includes: 所述网关利用Zigbee设备固件升级管理协议获取各Zigbee设备的信息。The gateway acquires the information of each Zigbee device by using the Zigbee device firmware upgrade management protocol. 11.一种网关,其特征在于,包括:11. A gateway, characterized in that, comprising: 远程管理信息交互单元,用于利用远程设备管理协议接收设备管理服务器发送的固件下载指令、所述固件所适用的设备范围指示信息和固件下发及升级指示信息;The remote management information interaction unit is used to receive the firmware download instruction sent by the device management server, the device range instruction information to which the firmware is applicable, and the firmware delivery and upgrade instruction information sent by the remote device management protocol; 固件获取单元,用于根据所述固件下载指令,获取固件;a firmware acquisition unit, configured to acquire firmware according to the firmware download instruction; 升级单元,用于根据所述固件下发及升级指示信息和所述固件所适用的设备范围指示信息,利用Zigbee设备固件升级管理协议,向所述固件所适用的Zigbee设备下发所获取的固件,并控制所述固件所适用的Zigbee设备执行固件升级操作;The upgrade unit is used to issue the obtained firmware to the Zigbee device to which the firmware is applicable by using the Zigbee device firmware upgrade management protocol according to the firmware delivery and upgrade instruction information and the device range instruction information to which the firmware is applicable , and control the Zigbee device to which the firmware is applicable to perform a firmware upgrade operation; 其中,固件下发及升级指示信息指示在所述固件所适用的所有Zigbee设备都成功下载固件后同步执行固件升级操作;所述升级单元包括:固件下发单元用于利用Zigbee设备固件升级管理协议指示所述固件所适用的Zigbee设备从下载所获取的固件;下载结果判断单元,用于判断所述固件所适用的各Zigbee设备是否都已成功下载所述固件;第二升级指示发送单元,用于在下载结果判断单元的判断结果为是时,向所述固件所适用的所有Zigbee设备发送立即升级的指示信息;或者,选择一个时间点,分别向所述固件所适用的所有Zigbee设备发送指示在所选时间点进行固件升级的指示信息。Wherein, the firmware issue and the upgrade instruction information indicate that all Zigbee devices applicable to the firmware are successfully downloaded firmware and execute the firmware upgrade operation synchronously; the upgrade unit includes: the firmware issue unit is used to utilize the Zigbee device firmware upgrade management protocol Indicate that the Zigbee equipment to which the firmware is applicable is downloaded from the obtained firmware; the download result judging unit is used to judge whether each Zigbee equipment to which the firmware is applicable has successfully downloaded the firmware; the second upgrade indicates that the sending unit uses When the judgment result of the download result judging unit is yes, send the indication information of upgrading immediately to all Zigbee equipments to which the firmware is applicable; or, select a point in time to send indications to all the Zigbee equipments to which the firmware is applicable Instructions for firmware upgrades at selected points in time. 12.根据权利要求11所述的网关,其特征在于,12. The gateway of claim 11, wherein 所述固件所适用的设备范围指示信息包括:所述固件所适用的Zigbee设备的标识、所述固件所适用的Zigbee设备生产商的标识、所述固件所适用的Zigbee设备类别标识和能升级到所获取的固件的Zigbee设备当前使用的固件版本范围指示信息中至少一个。The indication information of the equipment range applicable to the firmware includes: the identification of the Zigbee equipment applicable to the firmware, the identification of the manufacturer of the Zigbee equipment applicable to the firmware, the identification of the Zigbee equipment category applicable to the firmware, and the identification of the Zigbee equipment that can be upgraded to At least one of the obtained firmware version range indication information of the Zigbee device currently used. 13.根据权利要求11所述的网关,其特征在于,还包括:13. The gateway according to claim 11, further comprising: 查询单元,用于利用Zigbee设备固件升级管理协议向执行固件升级操作的Zigbee设备查询升级结果;The query unit is used to query the upgrade result of the Zigbee device performing the firmware upgrade operation by using the Zigbee device firmware upgrade management protocol; 所述远程管理信息交互单元,还用于利用远程设备管理协议接收设备管理服务器发送的升级结果请求消息,根据查询结果向所述设备管理服务器发送响应消息。The remote management information interaction unit is further configured to receive the upgrade result request message sent by the device management server by using the remote device management protocol, and send a response message to the device management server according to the query result. 14.根据权利要求11所述的网关,其特征在于,还包括:14. The gateway according to claim 11, further comprising: 查询单元,用于利用Zigbee设备固件升级管理协议向执行固件升级操作的Zigbee设备查询升级结果;The query unit is used to query the upgrade result of the Zigbee device performing the firmware upgrade operation by using the Zigbee device firmware upgrade management protocol; 恢复单元,用于当查询结果表示至少一个Zigbee设备升级失败时,利用Zigbee设备固件升级管理协议向升级失败的Zigbee设备发送固件恢复命令或者向执行固件升级操作的所有Zigbee设备都发送固件恢复命令,所述固件恢复命令用于指示恢复使用升级之前的固件。The recovery unit is used to send a firmware recovery command to the Zigbee device that failed to upgrade using the Zigbee device firmware upgrade management protocol when the query result indicates that at least one Zigbee device has failed to upgrade or to send a firmware recovery command to all Zigbee devices that perform firmware upgrade operations, The firmware recovery command is used to instruct to restore and use the firmware before the upgrade. 15.根据权利要求11所述的网关,其特征在于,15. The gateway of claim 11, wherein 所述远程管理信息交互单元,还用于利用远程设备管理协议接收所述设备管理服务器发送的固件恢复指示,所述固件恢复指示是所述设备管理服务器根据接收的升级结果确定至少一个Zigbee设备升级失败时发送的;所述固件恢复指示表示升级失败的Zigbee设备需执行恢复操作或者表示执行固件升级操作的所有Zigbee设备都需执行恢复操作。The remote management information interaction unit is also used to receive a firmware recovery instruction sent by the device management server using a remote device management protocol, and the firmware recovery instruction is that the device management server determines at least one Zigbee device upgrade according to the received upgrade result. Sent upon failure; the firmware recovery instruction indicates that the Zigbee device that fails to upgrade needs to perform a recovery operation or that all Zigbee devices that perform a firmware upgrade operation need to perform a recovery operation. 16.根据权利要求11所述的网关,其特征在于,16. The gateway of claim 11, wherein, 所述固件下发单元包括:The firmware delivery unit includes: 适用范围确定单元,用于根据所述固件所适用的设备范围指示信息和已获取的各Zigbee设备的信息,确定所述固件所适用的Zigbee设备;The scope of application determination unit is used to determine the Zigbee device to which the firmware is applicable according to the indication information of the equipment range to which the firmware is applicable and the information of each Zigbee device that has been obtained; 第一通知消息下发单元,用于利用Zigbee设备固件升级管理协议,采用单播方式向所述固件所适用的Zigbee设备发送通知消息,以通知所述固件所适用的Zigbee设备下载所述固件;The first notification message sending unit is used to utilize the Zigbee device firmware upgrade management protocol to send a notification message to the Zigbee device to which the firmware is applicable in a unicast manner, so as to notify the Zigbee device to which the firmware is applicable to download the firmware; 下载单元,用于将所述固件下载到接收通知消息的Zigbee设备上;A download unit, used to download the firmware to the Zigbee device receiving the notification message; 或者,or, 所述固件下发单元包括:The firmware delivery unit includes: 第二通知消息下发单元,用于根据已获取的各Zigbee设备的信息,利用Zigbee设备固件升级管理协议,采用广播方式向各Zigbee设备下发通知消息,所述通知消息中携带所述固件所适用的Zigbee设备的信息,其中,所述固件所适用的Zigbee设备的信息包括:所述固件所适用的Zigbee设备的生产商标识、类别标识中至少一个;The second notification message sending unit is used to send a notification message to each Zigbee device in a broadcast mode by using the Zigbee device firmware upgrade management protocol according to the obtained information of each Zigbee device, and the notification message carries the information of the firmware. The information of the applicable Zigbee equipment, wherein, the information of the Zigbee equipment applicable to the firmware includes: at least one of the manufacturer identification and the category identification of the Zigbee equipment applicable to the firmware; 下载单元,用于将所述固件下载到请求固件的Zigbee设备上,其中,所述请求固件的Zigbee设备是根据所述通知消息确定自己能适用所述固件的Zigbee设备。A downloading unit, configured to download the firmware to a Zigbee device requesting firmware, wherein the Zigbee device requesting firmware is a Zigbee device that determines that it can apply the firmware according to the notification message. 17.根据权利要求16所述的网关,其特征在于,17. The gateway of claim 16, wherein Zigbee设备信息获取单元,用于利用Zigbee设备固件升级管理协议从其所管理的各Zigbee设备获取相应Zigbee设备的信息。The Zigbee device information obtaining unit is used to obtain the corresponding Zigbee device information from each Zigbee device it manages by using the Zigbee device firmware upgrade management protocol. 18.一种网络系统,其特征在于,包括权利要求11-17任一项所述的网关和设备管理服务器,其中,18. A network system, characterized by comprising the gateway and the device management server according to any one of claims 11-17, wherein, 设备管理服务器,用于利用远程设备管理协议,向所述网关发送固件下载指令、所述固件所适用的设备范围指示信息和固件下发及升级指示信息。The device management server is configured to use a remote device management protocol to send a firmware download instruction, device range indication information to which the firmware applies, and firmware delivery and upgrade indication information to the gateway.

CN201010526831.4A 2010-10-21 2010-10-21 Method, device and network system for realizing remote upgrading of Zigbee equipment Active CN102136934B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010526831.4A CN102136934B (en) 2010-10-21 2010-10-21 Method, device and network system for realizing remote upgrading of Zigbee equipment
PCT/CN2011/074361 WO2011137793A1 (en) 2010-10-21 2011-05-19 Method, apparatus and network system for achieving remote update of zigbee devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010526831.4A CN102136934B (en) 2010-10-21 2010-10-21 Method, device and network system for realizing remote upgrading of Zigbee equipment

Publications (2)

Publication Number Publication Date
CN102136934A CN102136934A (en) 2011-07-27
CN102136934B true CN102136934B (en) 2015-01-21

Family

ID=44296595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010526831.4A Active CN102136934B (en) 2010-10-21 2010-10-21 Method, device and network system for realizing remote upgrading of Zigbee equipment

Country Status (2)

Country Link
CN (1) CN102136934B (en)
WO (1) WO2011137793A1 (en)

Families Citing this family (204)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238603A (en) * 2011-08-12 2011-11-09 苏州鼎汗传感网技术有限公司 Wireless sensor network updating method
CN103118046B (en) * 2011-11-17 2016-03-30 中国移动通信集团公司 Transducer is to the method and system of code
CN103581227A (en) * 2012-07-25 2014-02-12 中兴通讯股份有限公司 Server and upgrade method and system
CN103532922B (en) * 2012-09-29 2016-12-21 深圳友讯达科技股份有限公司 A kind of method for upgrading software version, Apparatus and system
CN102970342A (en) * 2012-11-01 2013-03-13 山东大学 Automatic update method of embedded terminal based on over the air (OTA) technology
CN102984693A (en) * 2012-11-23 2013-03-20 深圳市元征科技股份有限公司 Mobile terminal close-range grouping reading and writing system and method based on zigbee technology
US9113347B2 (en) 2012-12-05 2015-08-18 At&T Intellectual Property I, Lp Backhaul link for distributed antenna system
US10009065B2 (en) 2012-12-05 2018-06-26 At&T Intellectual Property I, L.P. Backhaul link for distributed antenna system
CN104113939A (en) * 2013-04-17 2014-10-22 中兴通讯股份有限公司 Method and device for processing operation on terminal peripheral
CN103425508A (en) * 2013-05-27 2013-12-04 林永宗 Zigbee firmware compressing and updating method
US9999038B2 (en) 2013-05-31 2018-06-12 At&T Intellectual Property I, L.P. Remote distributed antenna system
US9525524B2 (en) 2013-05-31 2016-12-20 At&T Intellectual Property I, L.P. Remote distributed antenna system
CN104244243B (en) * 2013-06-24 2019-08-23 中兴通讯股份有限公司 Terminal peripheral hardware control method, Machine To Machine gateway and communication system
GB2518255A (en) * 2013-09-13 2015-03-18 Vodafone Ip Licensing Ltd Communicating with a machine to machine device
US8897697B1 (en) 2013-11-06 2014-11-25 At&T Intellectual Property I, Lp Millimeter-wave surface-wave communications
US9209902B2 (en) 2013-12-10 2015-12-08 At&T Intellectual Property I, L.P. Quasi-optical coupler
CN105101040A (en) * 2014-05-05 2015-11-25 中兴通讯股份有限公司 Resource creating method and device
CN105100021B (en) * 2014-05-20 2021-03-16 西安中兴新软件有限责任公司 Triggering method, device and system for device management session
CN105354043A (en) * 2014-08-20 2016-02-24 中兴通讯股份有限公司 Terminal upgrading method and apparatus
US9692101B2 (en) 2014-08-26 2017-06-27 At&T Intellectual Property I, L.P. Guided wave couplers for coupling electromagnetic waves between a waveguide surface and a surface of a wire
US9768833B2 (en) 2014-09-15 2017-09-19 At&T Intellectual Property I, L.P. Method and apparatus for sensing a condition in a transmission medium of electromagnetic waves
US10063280B2 (en) 2014-09-17 2018-08-28 At&T Intellectual Property I, L.P. Monitoring and mitigating conditions in a communication network
US9615269B2 (en) 2014-10-02 2017-04-04 At&T Intellectual Property I, L.P. Method and apparatus that provides fault tolerance in a communication network
US9685992B2 (en) 2014-10-03 2017-06-20 At&T Intellectual Property I, L.P. Circuit panel network and methods thereof
US9503189B2 (en) 2014-10-10 2016-11-22 At&T Intellectual Property I, L.P. Method and apparatus for arranging communication sessions in a communication system
US9762289B2 (en) 2014-10-14 2017-09-12 At&T Intellectual Property I, L.P. Method and apparatus for transmitting or receiving signals in a transportation system
US9973299B2 (en) 2014-10-14 2018-05-15 At&T Intellectual Property I, L.P. Method and apparatus for adjusting a mode of communication in a communication network
US9564947B2 (en) 2014-10-21 2017-02-07 At&T Intellectual Property I, L.P. Guided-wave transmission device with diversity and methods for use therewith
US9520945B2 (en) 2014-10-21 2016-12-13 At&T Intellectual Property I, L.P. Apparatus for providing communication services and methods thereof
US9577306B2 (en) 2014-10-21 2017-02-21 At&T Intellectual Property I, L.P. Guided-wave transmission device and methods for use therewith
US9780834B2 (en) 2014-10-21 2017-10-03 At&T Intellectual Property I, L.P. Method and apparatus for transmitting electromagnetic waves
US9312919B1 (en) 2014-10-21 2016-04-12 At&T Intellectual Property I, Lp Transmission device with impairment compensation and methods for use therewith
US9653770B2 (en) 2014-10-21 2017-05-16 At&T Intellectual Property I, L.P. Guided wave coupler, coupling module and methods for use therewith
US9627768B2 (en) 2014-10-21 2017-04-18 At&T Intellectual Property I, L.P. Guided-wave transmission device with non-fundamental mode propagation and methods for use therewith
US9769020B2 (en) 2014-10-21 2017-09-19 At&T Intellectual Property I, L.P. Method and apparatus for responding to events affecting communications in a communication network
US9954287B2 (en) 2014-11-20 2018-04-24 At&T Intellectual Property I, L.P. Apparatus for converting wireless signals and electromagnetic waves and methods thereof
US9461706B1 (en) 2015-07-31 2016-10-04 At&T Intellectual Property I, Lp Method and apparatus for exchanging communication signals
US9544006B2 (en) 2014-11-20 2017-01-10 At&T Intellectual Property I, L.P. Transmission device with mode division multiplexing and methods for use therewith
US9997819B2 (en) 2015-06-09 2018-06-12 At&T Intellectual Property I, L.P. Transmission medium and method for facilitating propagation of electromagnetic waves via a core
US9742462B2 (en) 2014-12-04 2017-08-22 At&T Intellectual Property I, L.P. Transmission medium and communication interfaces and methods for use therewith
US9654173B2 (en) 2014-11-20 2017-05-16 At&T Intellectual Property I, L.P. Apparatus for powering a communication device and methods thereof
US10009067B2 (en) 2014-12-04 2018-06-26 At&T Intellectual Property I, L.P. Method and apparatus for configuring a communication interface
US10243784B2 (en) 2014-11-20 2019-03-26 At&T Intellectual Property I, L.P. System for generating topology information and methods thereof
US9680670B2 (en) 2014-11-20 2017-06-13 At&T Intellectual Property I, L.P. Transmission device with channel equalization and control and methods for use therewith
US9800327B2 (en) 2014-11-20 2017-10-24 At&T Intellectual Property I, L.P. Apparatus for controlling operations of a communication device and methods thereof
US10144036B2 (en) 2015-01-30 2018-12-04 At&T Intellectual Property I, L.P. Method and apparatus for mitigating interference affecting a propagation of electromagnetic waves guided by a transmission medium
US9876570B2 (en) 2015-02-20 2018-01-23 At&T Intellectual Property I, Lp Guided-wave transmission device with non-fundamental mode propagation and methods for use therewith
US9749013B2 (en) 2015-03-17 2017-08-29 At&T Intellectual Property I, L.P. Method and apparatus for reducing attenuation of electromagnetic waves guided by a transmission medium
CN106161047A (en) * 2015-03-24 2016-11-23 研华股份有限公司 Multi-device network management method and system
GB2536929A (en) * 2015-03-31 2016-10-05 Quatro Electronics Ltd Wireless broadcasting of configuration data
CN104734893B (en) * 2015-04-02 2018-02-27 重庆邮电大学 A kind of TR069 protocol managerial approach towards WIA PA networks
US10224981B2 (en) 2015-04-24 2019-03-05 At&T Intellectual Property I, Lp Passive electrical coupling device and methods for use therewith
US9705561B2 (en) 2015-04-24 2017-07-11 At&T Intellectual Property I, L.P. Directional coupling device and methods for use therewith
US9793954B2 (en) 2015-04-28 2017-10-17 At&T Intellectual Property I, L.P. Magnetic coupling device and methods for use therewith
US9871282B2 (en) 2015-05-14 2018-01-16 At&T Intellectual Property I, L.P. At least one transmission medium having a dielectric surface that is covered at least in part by a second dielectric
US9490869B1 (en) 2015-05-14 2016-11-08 At&T Intellectual Property I, L.P. Transmission medium having multiple cores and methods for use therewith
US10679767B2 (en) 2015-05-15 2020-06-09 At&T Intellectual Property I, L.P. Transmission medium having a conductive material and methods for use therewith
US10650940B2 (en) 2015-05-15 2020-05-12 At&T Intellectual Property I, L.P. Transmission medium having a conductive material and methods for use therewith
US9917341B2 (en) 2015-05-27 2018-03-13 At&T Intellectual Property I, L.P. Apparatus and method for launching electromagnetic waves and for modifying radial dimensions of the propagating electromagnetic waves
US10348391B2 (en) 2015-06-03 2019-07-09 At&T Intellectual Property I, L.P. Client node device with frequency conversion and methods for use therewith
US9866309B2 (en) 2015-06-03 2018-01-09 At&T Intellectual Property I, Lp Host node device and methods for use therewith
US10812174B2 (en) 2015-06-03 2020-10-20 At&T Intellectual Property I, L.P. Client node device and methods for use therewith
US10154493B2 (en) 2015-06-03 2018-12-11 At&T Intellectual Property I, L.P. Network termination and methods for use therewith
US9912381B2 (en) 2015-06-03 2018-03-06 At&T Intellectual Property I, Lp Network termination and methods for use therewith
US10103801B2 (en) 2015-06-03 2018-10-16 At&T Intellectual Property I, L.P. Host node device and methods for use therewith
US9913139B2 (en) 2015-06-09 2018-03-06 At&T Intellectual Property I, L.P. Signal fingerprinting for authentication of communicating devices
US9608692B2 (en) 2015-06-11 2017-03-28 At&T Intellectual Property I, L.P. Repeater and methods for use therewith
US10142086B2 (en) 2015-06-11 2018-11-27 At&T Intellectual Property I, L.P. Repeater and methods for use therewith
US9820146B2 (en) 2015-06-12 2017-11-14 At&T Intellectual Property I, L.P. Method and apparatus for authentication and identity management of communicating devices
US9667317B2 (en) 2015-06-15 2017-05-30 At&T Intellectual Property I, L.P. Method and apparatus for providing security using network traffic adjustments
US9640850B2 (en) 2015-06-25 2017-05-02 At&T Intellectual Property I, L.P. Methods and apparatus for inducing a non-fundamental wave mode on a transmission medium
US9509415B1 (en) 2015-06-25 2016-11-29 At&T Intellectual Property I, L.P. Methods and apparatus for inducing a fundamental wave mode on a transmission medium
US9865911B2 (en) 2015-06-25 2018-01-09 At&T Intellectual Property I, L.P. Waveguide system for slot radiating first electromagnetic waves that are combined into a non-fundamental wave mode second electromagnetic wave on a transmission medium
CN104980956B (en) * 2015-06-29 2019-02-22 迈锐数据(北京)有限公司 The method of remote batch update node firmware
EP4131199A1 (en) * 2015-07-07 2023-02-08 Ilumi Solutions, Inc. Wireless communication methods
US9853342B2 (en) 2015-07-14 2017-12-26 At&T Intellectual Property I, L.P. Dielectric transmission medium connector and methods for use therewith
US10044409B2 (en) 2015-07-14 2018-08-07 At&T Intellectual Property I, L.P. Transmission medium and methods for use therewith
US10341142B2 (en) 2015-07-14 2019-07-02 At&T Intellectual Property I, L.P. Apparatus and methods for generating non-interfering electromagnetic waves on an uninsulated conductor
US9882257B2 (en) 2015-07-14 2018-01-30 At&T Intellectual Property I, L.P. Method and apparatus for launching a wave mode that mitigates interference
US9836957B2 (en) 2015-07-14 2017-12-05 At&T Intellectual Property I, L.P. Method and apparatus for communicating with premises equipment
US9847566B2 (en) 2015-07-14 2017-12-19 At&T Intellectual Property I, L.P. Method and apparatus for adjusting a field of a signal to mitigate interference
US10170840B2 (en) 2015-07-14 2019-01-01 At&T Intellectual Property I, L.P. Apparatus and methods for sending or receiving electromagnetic signals
US10320586B2 (en) 2015-07-14 2019-06-11 At&T Intellectual Property I, L.P. Apparatus and methods for generating non-interfering electromagnetic waves on an insulated transmission medium
US10205655B2 (en) 2015-07-14 2019-02-12 At&T Intellectual Property I, L.P. Apparatus and methods for communicating utilizing an antenna array and multiple communication paths
US9722318B2 (en) 2015-07-14 2017-08-01 At&T Intellectual Property I, L.P. Method and apparatus for coupling an antenna to a device
US10148016B2 (en) 2015-07-14 2018-12-04 At&T Intellectual Property I, L.P. Apparatus and methods for communicating utilizing an antenna array
US10033107B2 (en) 2015-07-14 2018-07-24 At&T Intellectual Property I, L.P. Method and apparatus for coupling an antenna to a device
US10033108B2 (en) 2015-07-14 2018-07-24 At&T Intellectual Property I, L.P. Apparatus and methods for generating an electromagnetic wave having a wave mode that mitigates interference
US9628116B2 (en) 2015-07-14 2017-04-18 At&T Intellectual Property I, L.P. Apparatus and methods for transmitting wireless signals
US9793951B2 (en) 2015-07-15 2017-10-17 At&T Intellectual Property I, L.P. Method and apparatus for launching a wave mode that mitigates interference
US10090606B2 (en) 2015-07-15 2018-10-02 At&T Intellectual Property I, L.P. Antenna system with dielectric array and methods for use therewith
US9608740B2 (en) 2015-07-15 2017-03-28 At&T Intellectual Property I, L.P. Method and apparatus for launching a wave mode that mitigates interference
US9912027B2 (en) 2015-07-23 2018-03-06 At&T Intellectual Property I, L.P. Method and apparatus for exchanging communication signals
US9871283B2 (en) 2015-07-23 2018-01-16 At&T Intellectual Property I, Lp Transmission medium having a dielectric core comprised of plural members connected by a ball and socket configuration
US10784670B2 (en) 2015-07-23 2020-09-22 At&T Intellectual Property I, L.P. Antenna support for aligning an antenna
US9948333B2 (en) 2015-07-23 2018-04-17 At&T Intellectual Property I, L.P. Method and apparatus for wireless communications to mitigate interference
US9749053B2 (en) 2015-07-23 2017-08-29 At&T Intellectual Property I, L.P. Node device, repeater and methods for use therewith
US9735833B2 (en) 2015-07-31 2017-08-15 At&T Intellectual Property I, L.P. Method and apparatus for communications management in a neighborhood network
US10020587B2 (en) 2015-07-31 2018-07-10 At&T Intellectual Property I, L.P. Radial antenna and methods for use therewith
US9967173B2 (en) 2015-07-31 2018-05-08 At&T Intellectual Property I, L.P. Method and apparatus for authentication and identity management of communicating devices
US9904535B2 (en) 2015-09-14 2018-02-27 At&T Intellectual Property I, L.P. Method and apparatus for distributing software
CN106533725A (en) * 2015-09-14 2017-03-22 武汉百络优物联科技有限公司 Liquid crystal panel menu updating method based on ZIGBEE communication technology
US10009063B2 (en) 2015-09-16 2018-06-26 At&T Intellectual Property I, L.P. Method and apparatus for use with a radio distributed antenna system having an out-of-band reference signal
US10079661B2 (en) 2015-09-16 2018-09-18 At&T Intellectual Property I, L.P. Method and apparatus for use with a radio distributed antenna system having a clock reference
US10051629B2 (en) 2015-09-16 2018-08-14 At&T Intellectual Property I, L.P. Method and apparatus for use with a radio distributed antenna system having an in-band reference signal
US10136434B2 (en) 2015-09-16 2018-11-20 At&T Intellectual Property I, L.P. Method and apparatus for use with a radio distributed antenna system having an ultra-wideband control channel
US10009901B2 (en) 2015-09-16 2018-06-26 At&T Intellectual Property I, L.P. Method, apparatus, and computer-readable storage medium for managing utilization of wireless resources between base stations
US9769128B2 (en) 2015-09-28 2017-09-19 At&T Intellectual Property I, L.P. Method and apparatus for encryption of communications over a network
CN105357255A (en) * 2015-09-28 2016-02-24 成都世纪光合作用科技有限公司 Remote update method and system
CN105306544B (en) * 2015-09-28 2019-12-17 成都世纪光合作用科技有限公司 Remote updating method
US9729197B2 (en) 2015-10-01 2017-08-08 At&T Intellectual Property I, L.P. Method and apparatus for communicating network management traffic over a network
US9876264B2 (en) 2015-10-02 2018-01-23 At&T Intellectual Property I, Lp Communication system, guided wave switch and methods for use therewith
US9882277B2 (en) 2015-10-02 2018-01-30 At&T Intellectual Property I, Lp Communication device and antenna assembly with actuated gimbal mount
US10074890B2 (en) 2015-10-02 2018-09-11 At&T Intellectual Property I, L.P. Communication device and antenna with integrated light assembly
US10665942B2 (en) 2015-10-16 2020-05-26 At&T Intellectual Property I, L.P. Method and apparatus for adjusting wireless communications
US10051483B2 (en) 2015-10-16 2018-08-14 At&T Intellectual Property I, L.P. Method and apparatus for directing wireless signals
US10355367B2 (en) 2015-10-16 2019-07-16 At&T Intellectual Property I, L.P. Antenna structure for exchanging wireless signals
CN106982445A (en) * 2016-01-19 2017-07-25 西安中兴新软件有限责任公司 A kind of transmission method, equipment and the system of abnormal information of upgrading
CN105843645B (en) * 2016-03-24 2020-01-14 浙江风向标科技有限公司 Firmware upgrading method and device for zigbee equipment
CN105847067A (en) * 2016-05-25 2016-08-10 北京小米移动软件有限公司 Method and device for upgrading Zigbee equipment
CN106068021A (en) * 2016-08-02 2016-11-02 杭州迪普科技有限公司 A kind of method and device of the AP that upgrades
US9912419B1 (en) 2016-08-24 2018-03-06 At&T Intellectual Property I, L.P. Method and apparatus for managing a fault in a distributed antenna system
US9860075B1 (en) 2016-08-26 2018-01-02 At&T Intellectual Property I, L.P. Method and communication node for broadband distribution
US10291311B2 (en) 2016-09-09 2019-05-14 At&T Intellectual Property I, L.P. Method and apparatus for mitigating a fault in a distributed antenna system
US11032819B2 (en) 2016-09-15 2021-06-08 At&T Intellectual Property I, L.P. Method and apparatus for use with a radio distributed antenna system having a control channel reference signal
CN106452848A (en) * 2016-09-22 2017-02-22 上海斐讯数据通信技术有限公司 Method and system for remotely upgrading thin access point
US10135146B2 (en) 2016-10-18 2018-11-20 At&T Intellectual Property I, L.P. Apparatus and methods for launching guided waves via circuits
US10135147B2 (en) 2016-10-18 2018-11-20 At&T Intellectual Property I, L.P. Apparatus and methods for launching guided waves via an antenna
US10340600B2 (en) 2016-10-18 2019-07-02 At&T Intellectual Property I, L.P. Apparatus and methods for launching guided waves via plural waveguide systems
US9876605B1 (en) 2016-10-21 2018-01-23 At&T Intellectual Property I, L.P. Launcher and coupling system to support desired guided wave mode
US10811767B2 (en) 2016-10-21 2020-10-20 At&T Intellectual Property I, L.P. System and dielectric antenna with convex dielectric radome
US10374316B2 (en) 2016-10-21 2019-08-06 At&T Intellectual Property I, L.P. System and dielectric antenna with non-uniform dielectric
US10312567B2 (en) 2016-10-26 2019-06-04 At&T Intellectual Property I, L.P. Launcher with planar strip antenna and methods for use therewith
US10498044B2 (en) 2016-11-03 2019-12-03 At&T Intellectual Property I, L.P. Apparatus for configuring a surface of an antenna
US10225025B2 (en) 2016-11-03 2019-03-05 At&T Intellectual Property I, L.P. Method and apparatus for detecting a fault in a communication system
US10224634B2 (en) 2016-11-03 2019-03-05 At&T Intellectual Property I, L.P. Methods and apparatus for adjusting an operational characteristic of an antenna
US10291334B2 (en) 2016-11-03 2019-05-14 At&T Intellectual Property I, L.P. System for detecting a fault in a communication system
US10535928B2 (en) 2016-11-23 2020-01-14 At&T Intellectual Property I, L.P. Antenna system and methods for use therewith
US10178445B2 (en) 2016-11-23 2019-01-08 At&T Intellectual Property I, L.P. Methods, devices, and systems for load balancing between a plurality of waveguides
US10340603B2 (en) 2016-11-23 2019-07-02 At&T Intellectual Property I, L.P. Antenna system having shielded structural configurations for assembly
US10340601B2 (en) 2016-11-23 2019-07-02 At&T Intellectual Property I, L.P. Multi-antenna system and methods for use therewith
US10090594B2 (en) 2016-11-23 2018-10-02 At&T Intellectual Property I, L.P. Antenna system having structural configurations for assembly
US10305190B2 (en) 2016-12-01 2019-05-28 At&T Intellectual Property I, L.P. Reflecting dielectric antenna system and methods for use therewith
US10361489B2 (en) 2016-12-01 2019-07-23 At&T Intellectual Property I, L.P. Dielectric dish antenna system and methods for use therewith
US10819035B2 (en) 2016-12-06 2020-10-27 At&T Intellectual Property I, L.P. Launcher with helical antenna and methods for use therewith
US10694379B2 (en) 2016-12-06 2020-06-23 At&T Intellectual Property I, L.P. Waveguide system with device-based authentication and methods for use therewith
US9927517B1 (en) 2016-12-06 2018-03-27 At&T Intellectual Property I, L.P. Apparatus and methods for sensing rainfall
US10727599B2 (en) 2016-12-06 2020-07-28 At&T Intellectual Property I, L.P. Launcher with slot antenna and methods for use therewith
US10637149B2 (en) 2016-12-06 2020-04-28 At&T Intellectual Property I, L.P. Injection molded dielectric antenna and methods for use therewith
US10020844B2 (en) 2016-12-06 2018-07-10 T&T Intellectual Property I, L.P. Method and apparatus for broadcast communication via guided waves
US10439675B2 (en) 2016-12-06 2019-10-08 At&T Intellectual Property I, L.P. Method and apparatus for repeating guided wave communication signals
US10326494B2 (en) 2016-12-06 2019-06-18 At&T Intellectual Property I, L.P. Apparatus for measurement de-embedding and methods for use therewith
US10382976B2 (en) 2016-12-06 2019-08-13 At&T Intellectual Property I, L.P. Method and apparatus for managing wireless communications based on communication paths and network device positions
US10755542B2 (en) 2016-12-06 2020-08-25 At&T Intellectual Property I, L.P. Method and apparatus for surveillance via guided wave communication
US10135145B2 (en) 2016-12-06 2018-11-20 At&T Intellectual Property I, L.P. Apparatus and methods for generating an electromagnetic wave along a transmission medium
US10547348B2 (en) 2016-12-07 2020-01-28 At&T Intellectual Property I, L.P. Method and apparatus for switching transmission mediums in a communication system
US9893795B1 (en) 2016-12-07 2018-02-13 At&T Intellectual Property I, Lp Method and repeater for broadband distribution
US10446936B2 (en) 2016-12-07 2019-10-15 At&T Intellectual Property I, L.P. Multi-feed dielectric antenna system and methods for use therewith
US10168695B2 (en) 2016-12-07 2019-01-01 At&T Intellectual Property I, L.P. Method and apparatus for controlling an unmanned aircraft
US10027397B2 (en) 2016-12-07 2018-07-17 At&T Intellectual Property I, L.P. Distributed antenna system and methods for use therewith
US10359749B2 (en) 2016-12-07 2019-07-23 At&T Intellectual Property I, L.P. Method and apparatus for utilities management via guided wave communication
US10389029B2 (en) 2016-12-07 2019-08-20 At&T Intellectual Property I, L.P. Multi-feed dielectric antenna system with core selection and methods for use therewith
US10139820B2 (en) 2016-12-07 2018-11-27 At&T Intellectual Property I, L.P. Method and apparatus for deploying equipment of a communication system
US10243270B2 (en) 2016-12-07 2019-03-26 At&T Intellectual Property I, L.P. Beam adaptive multi-feed dielectric antenna system and methods for use therewith
US10601494B2 (en) 2016-12-08 2020-03-24 At&T Intellectual Property I, L.P. Dual-band communication device and method for use therewith
US10326689B2 (en) 2016-12-08 2019-06-18 At&T Intellectual Property I, L.P. Method and system for providing alternative communication paths
US9998870B1 (en) 2016-12-08 2018-06-12 At&T Intellectual Property I, L.P. Method and apparatus for proximity sensing
US9911020B1 (en) 2016-12-08 2018-03-06 At&T Intellectual Property I, L.P. Method and apparatus for tracking via a radio frequency identification device
US10777873B2 (en) 2016-12-08 2020-09-15 At&T Intellectual Property I, L.P. Method and apparatus for mounting network devices
US10938108B2 (en) 2016-12-08 2021-03-02 At&T Intellectual Property I, L.P. Frequency selective multi-feed dielectric antenna system and methods for use therewith
US10069535B2 (en) 2016-12-08 2018-09-04 At&T Intellectual Property I, L.P. Apparatus and methods for launching electromagnetic waves having a certain electric field structure
US10389037B2 (en) 2016-12-08 2019-08-20 At&T Intellectual Property I, L.P. Apparatus and methods for selecting sections of an antenna array and use therewith
US10103422B2 (en) 2016-12-08 2018-10-16 At&T Intellectual Property I, L.P. Method and apparatus for mounting network devices
US10530505B2 (en) 2016-12-08 2020-01-07 At&T Intellectual Property I, L.P. Apparatus and methods for launching electromagnetic waves along a transmission medium
US10411356B2 (en) 2016-12-08 2019-09-10 At&T Intellectual Property I, L.P. Apparatus and methods for selectively targeting communication devices with an antenna array
US10916969B2 (en) 2016-12-08 2021-02-09 At&T Intellectual Property I, L.P. Method and apparatus for providing power using an inductive coupling
US10264586B2 (en) 2016-12-09 2019-04-16 At&T Mobility Ii Llc Cloud-based packet controller and methods for use therewith
US9838896B1 (en) 2016-12-09 2017-12-05 At&T Intellectual Property I, L.P. Method and apparatus for assessing network coverage
US10340983B2 (en) 2016-12-09 2019-07-02 At&T Intellectual Property I, L.P. Method and apparatus for surveying remote sites via guided wave communications
CN106647517A (en) * 2016-12-29 2017-05-10 金卡高科技股份有限公司 Internet of Things metering instrument remote firmware upgrading method and metering instrument system
US9973940B1 (en) 2017-02-27 2018-05-15 At&T Intellectual Property I, L.P. Apparatus and methods for dynamic impedance matching of a guided wave launcher
CN106953902B (en) * 2017-03-10 2020-01-21 深圳市金正方科技股份有限公司 Method and device for upgrading firmware of electric energy meter
US10298293B2 (en) 2017-03-13 2019-05-21 At&T Intellectual Property I, L.P. Apparatus of communication utilizing wireless network devices
CN107104836A (en) * 2017-05-04 2017-08-29 深圳市欧瑞博电子有限公司 The firmware upgrade method and device of Zigbee equipment
CN107172188A (en) * 2017-06-13 2017-09-15 郑州天迈科技股份有限公司 P2P update methods between mobile unit
CN107896158A (en) * 2017-10-13 2018-04-10 广东乐心医疗电子股份有限公司 Method for upgrading firmware of wireless Internet of things equipment and Internet of things
CN107589956B (en) * 2017-10-24 2023-08-22 杨鲲 Distributed priority mirror page OTA firmware upgrading method and system
CN108259231A (en) * 2017-12-27 2018-07-06 生迪智慧科技有限公司 Method for upgrading software, gateway, server and the system of smart machine
US10437581B1 (en) 2018-04-20 2019-10-08 At&T Mobility Ii Llc Internet of things platform for handling firmware transfer on machine-to-machine devices
CN108810853A (en) * 2018-08-25 2018-11-13 咪付(广州)网络科技有限公司 A kind of system and method based on the upgrading of 4G network wireless sensor automatic remotes
CN109189445B (en) * 2018-10-12 2022-03-15 武汉微智创大科技有限公司 Method for upgrading program of equipment of Internet of things
CN109769239A (en) * 2019-03-06 2019-05-17 乐鑫信息科技(上海)股份有限公司 Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network
CN112445504A (en) * 2019-08-29 2021-03-05 云丁网络技术(北京)有限公司 Equipment firmware upgrading method, device and system
EP4059026A4 (en) * 2019-11-14 2024-01-03 ResMed Pty Ltd Remote respiratory therapy device management
CN113497720A (en) * 2020-03-20 2021-10-12 中国电力科学研究院有限公司 Firmware server, electric power internet of things proxy gateway and firmware remote upgrading method
CN111628884A (en) * 2020-03-31 2020-09-04 新华三技术有限公司 Terminal upgrading method, gateway and intelligent terminal equipment
WO2021223247A1 (en) * 2020-05-08 2021-11-11 Oppo广东移动通信有限公司 Device upgrading method, smart device, and computer readable storage medium
CN112214353B (en) * 2020-10-16 2024-11-29 深圳市广和通无线股份有限公司 Firmware recovery method, device, computer equipment and storage medium
CN112491956B (en) * 2020-10-27 2023-05-09 深圳市广和通无线股份有限公司 Upgrading method and device of communication module in Internet of things equipment and computer equipment
CN114286366B (en) * 2021-12-23 2023-07-14 深圳创维数字技术有限公司 Wireless grid network upgrading method and device, master node and storage medium
CN114520767A (en) * 2022-01-25 2022-05-20 沈阳中科奥维科技股份有限公司 WIA-PA network-based whole-network terminal upgrading system and method
CN115174612A (en) * 2022-06-02 2022-10-11 佑昌电器(中国)有限公司 Intelligent gateway, intelligent gateway system and device
US12079619B2 (en) 2022-07-27 2024-09-03 T-Mobile Usa, Inc. Firmware-over-the-air (FOTA) update for wireless devices in an internet of things (IoT) network
CN118524162B (en) * 2024-07-19 2024-09-17 成都亿佰特电子科技有限公司 ZCL information dynamic modification method based on Zigbee SOC

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863095A (en) * 2005-03-21 2006-11-15 奔峰电子(北京)有限公司 Electric device and management system
CN101854623A (en) * 2010-06-11 2010-10-06 中兴通讯股份有限公司 System and method for remote upgrade of M2M terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584822B (en) * 2003-08-19 2010-04-21 联想(北京)有限公司 Method for updating computer fixing ware program
KR20070038810A (en) * 2005-10-07 2007-04-11 주식회사 대우일렉트로닉스 How to upgrade the firmware
KR101445394B1 (en) * 2008-03-28 2014-09-26 삼성전자주식회사 Method and apparatus for software update of terminal in mobile broadcast system
CN101316190A (en) * 2008-07-18 2008-12-03 中兴通讯股份有限公司 Equipment software upgrading method for reducing number of service interruption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863095A (en) * 2005-03-21 2006-11-15 奔峰电子(北京)有限公司 Electric device and management system
CN101854623A (en) * 2010-06-11 2010-10-06 中兴通讯股份有限公司 System and method for remote upgrade of M2M terminal

Also Published As

Publication number Publication date
WO2011137793A1 (en) 2011-11-10
CN102136934A (en) 2011-07-27

Similar Documents

Publication Publication Date Title
CN102136934B (en) 2015-01-21 Method, device and network system for realizing remote upgrading of Zigbee equipment
CN102957551B (en) 2015-08-05 A kind of method and system of bulk management equipment
KR100822361B1 (en) 2008-04-17 Designation of managed nodes in the device management system
US20140208307A1 (en) 2014-07-24 Method and System for Upgrading CPE Firmware
CN100531045C (en) 2009-08-19 Data management method and system based on simple network management protocol
WO2011156998A1 (en) 2011-12-22 System and method for implementing automatic configuration for equipments
US11968282B2 (en) 2024-04-23 Adapter for converting between the network configuration protocol (NETCONF) and the technical report 069 (TR-069) protocol
WO2015157502A1 (en) 2015-10-15 Service enabler function
US11949741B2 (en) 2024-04-02 Device control method, server, and storage medium
EP2171917B1 (en) 2014-09-17 System and method for providing device management service to electronic device having no broadband communication module
EP1830515B1 (en) 2010-09-22 A method for transferring the network management configuration information between the element management systems
CN101820354B (en) 2012-04-04 Collocation method based on TNDS (Total Network Data System) object, terminal equipment and server
WO2010012157A1 (en) 2010-02-04 Device description framework information reporting and updating method, device and system
CN100479378C (en) 2009-04-15 Software assembly parameter configuration method and system and terminal equipment thereof
WO2010124571A1 (en) 2010-11-04 Node information acquirement method, client, and server
CN112311567B (en) 2022-04-05 Communication method and device
JP2008507200A (en) 2008-03-06 Integrated management of wireless networks
WO2009049542A1 (en) 2009-04-23 A method, system and correlative apparatus for transmitting remote procedure call command
EP2573978B1 (en) 2016-03-09 Method, apparatus and system for device management
CN101771727B (en) 2014-12-17 Methods and devices for synchronously upgrading equipment management object information
CN113300869A (en) 2021-08-24 Communication method with in-band network remote sensing function, network device and storage medium
WO2013004108A1 (en) 2013-01-10 Management method, device and system for low-level network management system
US12197905B2 (en) 2025-01-14 Over-the-air (OTA) platform for TR-069 devices to manage vendor-specific configuration and firmware
CN101753604B (en) 2013-03-20 Method for reporting equipment information, user terminal and server
JP5095831B6 (en) 2013-03-27 Device management method, terminal, apparatus and system

Legal Events

Date Code Title Description
2011-07-27 C06 Publication
2011-07-27 PB01 Publication
2011-09-07 C10 Entry into substantive examination
2011-09-07 SE01 Entry into force of request for substantive examination
2015-01-21 C14 Grant of patent or utility model
2015-01-21 GR01 Patent grant
2022-02-25 TR01 Transfer of patent right

Effective date of registration: 20220214

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

2022-02-25 TR01 Transfer of patent right