CN114721684B - Firmware version upgrade method, version upgrade server and management platform - Google Patents

Firmware version upgrade method, version upgrade server and management platform Download PDF

Info

Publication number
CN114721684B
CN114721684B CN202210380865.XA CN202210380865A CN114721684B CN 114721684 B CN114721684 B CN 114721684B CN 202210380865 A CN202210380865 A CN 202210380865A CN 114721684 B CN114721684 B CN 114721684B
Authority
CN
China
Prior art keywords
upgrade
strategy
internet
upgrading
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210380865.XA
Other languages
Chinese (zh)
Other versions
CN114721684A (en
Inventor
王陈昌
蒋维
孙玉刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
China Unicom Internet of Things Corp Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Unicom Internet of Things Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, China Unicom Internet of Things Corp Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210380865.XA priority Critical patent/CN114721684B/en
Publication of CN114721684A publication Critical patent/CN114721684A/en
Application granted granted Critical
Publication of CN114721684B publication Critical patent/CN114721684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

According to the firmware version upgrading method, the version upgrading server and the management platform, the management platform creates at least one upgrading strategy of the Internet of things equipment, calculates the priority value of each upgrading strategy according to the priority value of the upgrading condition in each upgrading strategy, determines the strategy information of the Internet of things equipment according to the priority value of each upgrading strategy, and sends the strategy information to the version upgrading server for storage. The version upgrading server receives a version upgrading request sent by the target internet of things device, then queries a downloading address of firmware to be upgraded of the target internet of things device in the stored strategy information according to the identification of the target internet of things device in the request, and sends the downloading address to the target internet of things device. Namely, the corresponding firmware information downloading address to be upgraded can be obtained through one-time inquiry, and the corresponding downloading address can be returned relatively quickly, so that the version upgrading efficiency is improved.

Description

固件版本升级方法、版本升级服务器和管理平台Firmware version upgrade method, version upgrade server and management platform

技术领域Technical Field

本申请涉及通信技术领域,尤其涉及一种固件版本升级方法、版本升级服务器和管理平台。The present application relates to the field of communication technology, and in particular to a firmware version upgrade method, a version upgrade server, and a management platform.

背景技术Background technique

物联网设备的固件升级,是物联网通信服务的重要组成部分,当物联网设备有新功能或者需要修复的漏洞时,物联网设备可以通过固件升级服务快速的进行固件升级,该固件是安装于物联网设备的内部的设备“驱动程序”。Firmware upgrades for IoT devices are an important part of IoT communication services. When IoT devices have new features or vulnerabilities that need to be fixed, IoT devices can quickly upgrade their firmware through firmware upgrade services. The firmware is a device "driver" installed inside the IoT device.

现有技术中,版本升级服务器接收到物联网设备的版本升级请求时,需要根据存储的物联网设备对应的升级策略对该版本升级请求中的信息进行层级的逻辑判断,例如,升级策略包括区域、厂商和型号三个升级条件,三个升级条件对应三个层级,层级之间具有顺序,例如,顺序依次为:型号、厂商和区域,在判断时根据层级顺序逐层判断。例如,先将版本升级请求中的“型号”与升级策略中的“型号”匹配,当版本升级请求中的“型号”与升级策略中的“型号”匹配成功,版本升级服务器向该物联网设备返回用于升级该“型号”的物联网设备的待升级的固件的下载地址,使得该物联网设备根据该下载地址下载固件信息,进行版本升级。或者,当版本升级请求中的“型号”与升级策略中的“型号”匹配失败,则将版本升级请求中的“厂商”与升级策略中的“厂商”进行匹配,当匹配成功,则向物联网设备返回用于升级该“厂商”的物联网设备的待升级的固件的下载地址,当匹配不成功,依次逐层判断。In the prior art, when a version upgrade server receives a version upgrade request from an IoT device, it needs to perform a hierarchical logical judgment on the information in the version upgrade request according to the upgrade policy corresponding to the stored IoT device. For example, the upgrade policy includes three upgrade conditions: region, manufacturer, and model. The three upgrade conditions correspond to three levels, and there is an order between the levels. For example, the order is: model, manufacturer, and region. When judging, the judgment is made layer by layer according to the hierarchical order. For example, the "model" in the version upgrade request is first matched with the "model" in the upgrade policy. When the "model" in the version upgrade request matches the "model" in the upgrade policy successfully, the version upgrade server returns the download address of the firmware to be upgraded for upgrading the IoT device of the "model" to the IoT device, so that the IoT device downloads the firmware information according to the download address and performs the version upgrade. Alternatively, when the "model" in the version upgrade request fails to match the "model" in the upgrade policy, the "manufacturer" in the version upgrade request is matched with the "manufacturer" in the upgrade policy. When the match is successful, the download address of the firmware to be upgraded for upgrading the IoT device of the "manufacturer" is returned to the IoT device. When the match is unsuccessful, the judgment is made layer by layer.

上述固件版本升级方法,一般需要进行3-5次的逻辑判断,导致版本升级服务器不能较快返回相应的下载地址,使得版本升级效率不高。The above firmware version upgrade method generally requires 3-5 logical judgments, which results in the version upgrade server being unable to quickly return the corresponding download address, making the version upgrade inefficient.

发明内容Summary of the invention

本申请提供一种固件版本升级方法、版本升级服务器和管理平台,用以解决现有的固件版本升级方法由于复杂的逻辑判断,导致版本升级服务器不能较快返回相应的下载地址,使得版本升级效率不高的问题。The present application provides a firmware version upgrade method, a version upgrade server and a management platform to solve the problem that the existing firmware version upgrade method cannot quickly return the corresponding download address due to complex logical judgment, resulting in low version upgrade efficiency.

第一方面,本申请提供一种固件版本升级方法,应用于版本升级服务器,包括:In a first aspect, the present application provides a firmware version upgrade method, which is applied to a version upgrade server, comprising:

接收管理平台发送的各个物联网设备的策略信息,并存储所述策略信息,所述策略信息中包括物联网设备的标识和待升级的固件的下载地址;Receive policy information of each IoT device sent by the management platform and store the policy information, wherein the policy information includes an identifier of the IoT device and a download address of the firmware to be upgraded;

接收目标物联网设备发送的版本升级请求,所述版本升级请求中包括所述目标物联网设备的标识;Receive a version upgrade request sent by a target IoT device, wherein the version upgrade request includes an identifier of the target IoT device;

根据所述目标物联网设备的标识,在存储的策略信息中查询所述目标物联网设备的待升级的固件的下载地址;According to the identification of the target IoT device, querying the stored policy information for a download address of the firmware to be upgraded of the target IoT device;

将所述目标物联网设备的待升级的固件的下载地址发送给所述目标物联网设备。The download address of the firmware to be upgraded of the target IoT device is sent to the target IoT device.

可选的,所述接收管理平台发送的各个物联网设备的策略信息,并存储所述策略信息,包括:Optionally, the receiving the policy information of each IoT device sent by the management platform and storing the policy information includes:

接收所述管理平台上传的csv文件,所述文件中包括各个物联网设备的策略信息;Receive a csv file uploaded by the management platform, wherein the file includes policy information of each IoT device;

获取所述管理平台发送的加载指令;Obtaining a loading instruction sent by the management platform;

根据所述加载命令,将所述csv文件加载到内存中进行存储。According to the loading command, the csv file is loaded into the memory for storage.

第二方面,本申请提供一种固件版本升级方法,应用于管理平台,包括:In a second aspect, the present application provides a firmware version upgrade method, which is applied to a management platform, comprising:

创建物联网设备的至少一个升级策略,所述升级策略中包括管理员输入的至少一个升级条件,每个升级条件对应一个优先级值;Creating at least one upgrade policy for the IoT device, wherein the upgrade policy includes at least one upgrade condition input by an administrator, and each upgrade condition corresponds to a priority value;

根据各个升级策略中的升级条件的优先级值,计算各个升级策略的优先级值;Calculate the priority value of each upgrade policy according to the priority value of the upgrade condition in each upgrade policy;

根据各个升级策略的优先级值,确定所述物联网设备的策略信息;Determining the policy information of the IoT device according to the priority value of each upgrade policy;

将所述策略信息发送给版本升级服务器,所述策略信息中包括所述物联网设备的标识和待升级的固件的下载地址。The policy information is sent to a version upgrade server, wherein the policy information includes an identifier of the IoT device and a download address of the firmware to be upgraded.

可选的,所述根据各个升级策略中的升级条件的预先确定的优先级值,计算各个升级策略的优先级值,包括:Optionally, calculating the priority value of each upgrade policy according to the predetermined priority value of the upgrade condition in each upgrade policy includes:

将升级策略中的升级条件的优先级值进行累加,得到所述升级策略的优先级值,所述升级条件包括以下至少一个:区域、厂商、型号、版本和设备标识。The priority values of the upgrade conditions in the upgrade policy are accumulated to obtain the priority value of the upgrade policy, wherein the upgrade condition includes at least one of the following: region, manufacturer, model, version, and device identifier.

可选的,所述根据各个升级策略的优先级,确定所述物联网设备的策略信息,包括:Optionally, determining the policy information of the IoT device according to the priority of each upgrade policy includes:

确定多个升级策略中优先级值最高的升级策略为目标升级策略;Determine the upgrade strategy with the highest priority value among multiple upgrade strategies as the target upgrade strategy;

将目标升级策略中的优先级值最高的升级条件对应的待升级的固件的下载地址与所述物联网设备的标识进行组装,形成键值类型的数据,所述标识作为键,值为所述待升级的固件的下载地址;Assemble the download address of the firmware to be upgraded corresponding to the upgrade condition with the highest priority value in the target upgrade policy and the identifier of the IoT device to form key-value type data, where the identifier is used as the key and the value is the download address of the firmware to be upgraded;

将所述键值类型的数据作为所述物联网设备的策略信息。The key-value type data is used as the policy information of the Internet of Things device.

可选的,所述将所述策略信息发送给版本升级服务器,包括:Optionally, sending the policy information to a version upgrade server includes:

将所述策略信息写入csv文件;Write the policy information into a csv file;

将所述csv文件以文件传输协议FTP方式,上传到所述版本升级服务器中;Upload the csv file to the version upgrade server via the file transfer protocol FTP;

向所述版本升级服务器发送加载指令,所述加载指令用于远程控制所述版本升级服务器将所述csv文件存储到内存中。A loading instruction is sent to the version upgrade server, where the loading instruction is used to remotely control the version upgrade server to store the csv file in a memory.

第三方面,本申请提供一种版本升级服务器,包括:In a third aspect, the present application provides a version upgrade server, including:

处理模块,用于接收管理平台发送的各个物联网设备的策略信息,并存储所述策略信息,所述策略信息中包括物联网设备的标识和待升级的固件的下载地址;A processing module, used to receive the policy information of each IoT device sent by the management platform and store the policy information, wherein the policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded;

接收模块,用于接收目标物联网设备发送的版本升级请求,所述版本升级请求中包括所述目标物联网设备的标识;A receiving module, configured to receive a version upgrade request sent by a target IoT device, wherein the version upgrade request includes an identifier of the target IoT device;

查询模块,用于根据目标物联网设备的标识,在存储的策略信息中查询所述目标物联网设备的待升级的固件的下载地址;A query module, used to query the download address of the firmware to be upgraded of the target IoT device in the stored policy information according to the identification of the target IoT device;

发送模块,用于将所述目标物联网设备的待升级的固件的下载地址发送给所述目标物联网设备。The sending module is used to send the download address of the firmware to be upgraded of the target Internet of Things device to the target Internet of Things device.

第四方面,本申请提供一种管理平台,包括:In a fourth aspect, the present application provides a management platform, including:

创建模块,用于创建多个物联网设备的至少一个升级策略,所述升级策略中包括至少一个升级条件,每个升级条件对应一个优先级值;A creation module, used to create at least one upgrade strategy for a plurality of IoT devices, wherein the upgrade strategy includes at least one upgrade condition, and each upgrade condition corresponds to a priority value;

计算模块,用于根据各个升级策略中的升级条件的优先级,计算各个升级策略的优先级;A calculation module, used to calculate the priority of each upgrade strategy according to the priority of the upgrade conditions in each upgrade strategy;

确定模块,用于根据各个物联网设备的升级策略的优先级,确定各个物联网设备的策略信息;A determination module, used to determine the policy information of each IoT device according to the priority of the upgrade policy of each IoT device;

发送模块,用于将所述策略信息发送给版本升级服务器,所述策略信息中包括物联网设备的标识和待升级的固件的下载地址。The sending module is used to send the policy information to the version upgrade server, wherein the policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded.

第五方面,本申请提供一种版本升级服务器,包括:处理器,以及与所述处理器通信连接的存储器;In a fifth aspect, the present application provides a version upgrade server, comprising: a processor, and a memory communicatively connected to the processor;

所述存储器存储计算机执行指令;The memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,以实现如第一方面所述的方法。The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

第六方面,本申请提供一种管理平台,包括:处理器,以及与所述处理器通信连接的存储器;In a sixth aspect, the present application provides a management platform, comprising: a processor, and a memory communicatively connected to the processor;

所述存储器存储计算机执行指令;The memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,以实现如第二方面所述的方法。The processor executes the computer-executable instructions stored in the memory to implement the method according to the second aspect.

第七方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如第一方面或者第二方面所述的一种固件版本升级方法。In a seventh aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement a firmware version upgrade method as described in the first aspect or the second aspect.

第八方面,本申请提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现第一方面或者第二方面所述的方法。In an eighth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect or the second aspect when executed by a processor.

本申请提供的一种固件版本升级方法、版本升级服务器和管理平台,管理平台创建物联网设备的至少一个升级策略,然后根据各个升级策略中的升级条件的优先级值,计算各个升级策略的优先级值,然后根据各个升级策略的优先级值确定物联网设备的策略信息,并将该策略信息发送给版本升级服务器进行存储。版本升级服务器接收到目标物联网设备发送的版本升级请求,然后根据该请求中的目标物联网设备的标识,在存储的策略信息中查询目标物联网设备的待升级的固件的下载地址,并将该下载地址发送给目标物联网设备。即通过一次查询即可得到相应的待升级的固件的下载地址,能够较快的返回相应的下载地址,使得版本升级效率有所提高。The present application provides a firmware version upgrade method, version upgrade server and management platform. The management platform creates at least one upgrade policy for an IoT device, and then calculates the priority value of each upgrade policy based on the priority value of the upgrade condition in each upgrade policy, and then determines the policy information of the IoT device based on the priority value of each upgrade policy, and sends the policy information to the version upgrade server for storage. The version upgrade server receives a version upgrade request sent by the target IoT device, and then queries the download address of the firmware to be upgraded of the target IoT device in the stored policy information based on the identifier of the target IoT device in the request, and sends the download address to the target IoT device. That is, the download address of the corresponding firmware to be upgraded can be obtained through one query, and the corresponding download address can be returned quickly, so that the efficiency of the version upgrade is improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

图1为本申请适用的一种应用场景;FIG1 is an application scenario applicable to the present application;

图2为本申请实施例一提供的一种固件版本升级方法的流程示意图;FIG2 is a flowchart of a firmware version upgrade method provided in Embodiment 1 of the present application;

图3为本申请实施例二提供的一种固件版本升级方法的流程示意图;FIG3 is a flowchart of a firmware version upgrade method provided in Embodiment 2 of the present application;

图4为本申请实施例三提供的一种固件版本升级方法的信令流程图;FIG4 is a signaling flow chart of a firmware version upgrade method provided in Embodiment 3 of the present application;

图5为本申请实施例四提供的一种版本升级服务器的结构示意图;FIG5 is a schematic diagram of the structure of a version upgrade server provided in Embodiment 4 of the present application;

图6为本申请实施例五提供的一种管理平台的结构示意图;FIG6 is a schematic diagram of the structure of a management platform provided in Embodiment 5 of the present application;

图7为本发明实施例六提供的一种版本升级服务器的结构示意图;FIG7 is a schematic diagram of the structure of a version upgrade server provided in Embodiment 6 of the present invention;

图8为本发明实施例七提供的一种管理平台的结构示意图。FIG8 is a schematic diagram of the structure of a management platform provided in Embodiment 7 of the present invention.

通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

现有技术中,版本升级服务器接收到物联网设备的版本升级请求时,需要根据存储的物联网设备对应的升级策略对该版本升级请求中的信息进行层级的逻辑判断,例如,升级策略包括区域、厂商和型号三个升级条件,三个升级条件对应三个层级,层级之间具有顺序,例如,顺序依次为:型号、厂商和区域,在判断时根据层级顺序逐层判断。例如,先将版本升级请求中的“型号”与升级策略中的“型号”匹配,当版本升级请求中的“型号”与升级策略中的“型号”匹配成功,版本升级服务器向该物联网设备返回用于升级该“型号”的物联网设备的待升级的固件的下载地址,使得该物联网设备根据该下载地址下载相应的固件信息,进行版本升级。或者,当版本升级请求中的“型号”与升级策略中的“型号”匹配失败,则将版本升级请求中的“厂商”与升级策略中的“厂商”进行匹配,当匹配成功,则向物联网设备返回用于升级该“厂商”的物联网设备的待升级的固件的下载地址,当匹配不成功,依次逐层判断。In the prior art, when a version upgrade server receives a version upgrade request from an IoT device, it needs to perform hierarchical logical judgment on the information in the version upgrade request according to the upgrade policy corresponding to the stored IoT device. For example, the upgrade policy includes three upgrade conditions: region, manufacturer, and model. The three upgrade conditions correspond to three levels, and there is an order between the levels. For example, the order is: model, manufacturer, and region. When judging, the judgment is made layer by layer according to the hierarchical order. For example, the "model" in the version upgrade request is first matched with the "model" in the upgrade policy. When the "model" in the version upgrade request matches the "model" in the upgrade policy successfully, the version upgrade server returns the download address of the firmware to be upgraded for upgrading the IoT device of the "model" to the IoT device, so that the IoT device downloads the corresponding firmware information according to the download address and performs the version upgrade. Alternatively, when the "model" in the version upgrade request fails to match the "model" in the upgrade policy, the "manufacturer" in the version upgrade request is matched with the "manufacturer" in the upgrade policy. When the match is successful, the download address of the firmware to be upgraded for upgrading the IoT device of the "manufacturer" is returned to the IoT device. When the match is unsuccessful, the judgment is made layer by layer.

当物联网设备对应多个升级策略时,版本升级服务器根据预先设定的业务需求确定首先匹配的升级策略,该业务需求为固件版本升级涉及的范围,例如,对一个区域的物联网设备的固件版本进行升级,或者对一个型号的物联网设备的固件版本升级等。When an IoT device corresponds to multiple upgrade strategies, the version upgrade server determines the upgrade strategy that matches first based on pre-set business requirements. The business requirement is the scope involved in the firmware version upgrade, for example, upgrading the firmware version of IoT devices in a region, or upgrading the firmware version of IoT devices of a model, etc.

上述固件版本升级方法,一般需要进行3-5次的逻辑判断,导致版本升级服务器不能较快返回相应的下载地址,使得版本升级效率不高。The above firmware version upgrade method generally requires 3-5 logical judgments, which results in the version upgrade server being unable to quickly return the corresponding download address, making the version upgrade inefficient.

所以,本申请提供一种固件版本升级方法,通过确定升级策略的优先级,将优先级最高的升级策略中包括的优先级值最高的升级条件,对应的待升级固件的下载地址与物联网设备的标识进行组装形成键值类型的数据,将该数据作为物联网设备的策略信息。版本升级服务器根据物联网设备发起的版本升级请求中的物联网设备的标识,可以直接查询到待升级的固件的下载地址,物联网设备根据该下载地址即可进行固件版本升级,即通过一次查询即可得到相应的待升级的固件的下载地址,能够较快的返回相应的下载地址,使得版本升级效率有所提高。Therefore, the present application provides a firmware version upgrade method, which determines the priority of the upgrade strategy, assembles the upgrade condition with the highest priority value included in the upgrade strategy with the highest priority, the corresponding download address of the firmware to be upgraded and the identifier of the IoT device to form key-value type data, and uses the data as the policy information of the IoT device. The version upgrade server can directly query the download address of the firmware to be upgraded according to the identifier of the IoT device in the version upgrade request initiated by the IoT device, and the IoT device can perform the firmware version upgrade according to the download address, that is, the download address of the corresponding firmware to be upgraded can be obtained through one query, and the corresponding download address can be returned quickly, so that the efficiency of the version upgrade is improved.

上述固件是指一种嵌入在硬件设备中的软件,是设备内部保存的“驱动程序”,通过固件,操作系统才能按照标准的设备驱动实现特定的机器运行动作。The above-mentioned firmware refers to a type of software embedded in a hardware device, which is a "driver" stored inside the device. Through the firmware, the operating system can implement specific machine operation actions according to standard device drivers.

参考图1,图1为本申请适用的一种应用场景,版本升级服务器101、管理平台102与物联网设备103之间通过互联网进行交互,物联网设备103可以是智能家电设备,例如智能洗衣机,或者智能热水器和智能洗碗机等,也可以是其他物联网设备,图中仅为示例。管理平台102根据物联网设备103的升级策略的优先级,组装物联网设备103的策略信息,并将该策略信息发送给版本升级服务器101。Referring to FIG. 1 , FIG. 1 is an application scenario applicable to the present application, wherein the version upgrade server 101, the management platform 102 and the IoT device 103 interact via the Internet, and the IoT device 103 may be a smart home appliance, such as a smart washing machine, or a smart water heater and a smart dishwasher, or other IoT devices, which are only examples. The management platform 102 assembles the policy information of the IoT device 103 according to the priority of the upgrade policy of the IoT device 103, and sends the policy information to the version upgrade server 101.

物联网设备103每个预设时间都会进行固件版本的升级,向版本升级服务器101发送版本升级请求,版本升级服务器101根据该版本升级请求查询物联网设备103的策略信息,即待升级的固件的下载地址,并且将该策略信息返回给物联网设备103,以使得物联网设备103根据该策略信息下载待升级的固件信息,以实现固件版本的升级。The IoT device 103 will upgrade the firmware version at every preset time and send a version upgrade request to the version upgrade server 101. The version upgrade server 101 queries the policy information of the IoT device 103 according to the version upgrade request, that is, the download address of the firmware to be upgraded, and returns the policy information to the IoT device 103, so that the IoT device 103 can download the firmware information to be upgraded according to the policy information to achieve the firmware version upgrade.

可以理解,版本升级服务器101、管理平台102与物联网设备103的数量均可以为多个,图中未示出。It can be understood that the number of version upgrade servers 101, management platforms 102 and IoT devices 103 can be multiple, which is not shown in the figure.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立存在,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments may exist independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

参考图2,图2为本申请实施例一提供的一种固件版本升级方法的流程示意图,该方法可以由管理平台执行,该方法包括如下步骤。Refer to Figure 2, which is a flow chart of a firmware version upgrade method provided in Example 1 of the present application. The method can be executed by a management platform, and the method includes the following steps.

S201、创建物联网设备的至少一个升级策略。S201. Create at least one upgrade strategy for an IoT device.

升级策略中包括管理员输入的至少一个升级条件,每个升级条件对应一个优先级值,该升级条件用于表示固件版本升级涉及的范围,例如,升级条件为“区域”,则是对一个区域的物联网设备进行固件版本升级,升级条件为“型号”,则是对一个型号的物联网设备进行固件版本升级。The upgrade policy includes at least one upgrade condition entered by the administrator. Each upgrade condition corresponds to a priority value. The upgrade condition is used to indicate the scope of the firmware version upgrade. For example, if the upgrade condition is "region", the firmware version of the IoT devices in a region will be upgraded. If the upgrade condition is "model", the firmware version of the IoT devices of a model will be upgraded.

S202、根据各个升级策略中的升级条件的优先级值,计算各个升级策略的优先级值。S202: Calculate the priority value of each upgrade policy according to the priority value of the upgrade condition in each upgrade policy.

管理平台可以根据各个升级策略中包括的升级条件的优先级值,计算各个升级策略的优先级值,该升级条件包括以下至少一个:区域、厂商、型号、版本和设备标识,具体计算如下:The management platform may calculate the priority value of each upgrade policy according to the priority value of the upgrade condition included in each upgrade policy, where the upgrade condition includes at least one of the following: region, manufacturer, model, version, and device identifier. The specific calculation is as follows:

示例性的,确定各个升级条件的优先级值an,其中,n为升级条件的编号,a为大于1的实数,n为大于0的实数,且满足a1+a2+…+an-1<an,预设的升级条件为:区域、厂商、型号、版本和设备标识,编号依次为1、2、3、4和5,升级策略A中包括“区域”和“厂商”这两个升级条件,a=2,则21+22+…+2n-1<2n,则根据该升级策略A的“区域”的编号,可以确定该升级条件的优先级值为21,根据该升级策略A的“厂商”的编号,可以确定该升级条件的优先级值为22Exemplarily, the priority value a n of each upgrade condition is determined, where n is the number of the upgrade condition, a is a real number greater than 1, n is a real number greater than 0, and satisfies a 1 +a 2 + … +a n-1 <a n . The preset upgrade conditions are: region, manufacturer, model, version, and device identification, which are numbered 1, 2, 3, 4, and 5 respectively. The upgrade policy A includes two upgrade conditions, “region” and “manufacturer”, and a=2. Then 2 1 +2 2 + … +2 n-1 <2 n . According to the number of the “region” of the upgrade policy A, the priority value of the upgrade condition can be determined to be 2 1 , and according to the number of the “manufacturer” of the upgrade policy A, the priority value of the upgrade condition can be determined to be 2 2 .

确定各个升级条件的优先级值后,管理平台将升级策略中包括的升级条件的优先级值进行累加,得到该升级策略的优先级值。以上述示例为例,升级策略A的优先级值为21+22After determining the priority value of each upgrade condition, the management platform accumulates the priority values of the upgrade conditions included in the upgrade policy to obtain the priority value of the upgrade policy. Taking the above example, the priority value of upgrade policy A is 2 1 +2 2 .

可以理解,可以根据业务需求,改变升级条件的编号次序,使得对应的升级策略的优先级值也改变,从而可以改变升级策略的优先级。It is understandable that the numbering order of the upgrade conditions can be changed according to business needs, so that the priority value of the corresponding upgrade policy is also changed, thereby changing the priority of the upgrade policy.

S203、根据各个升级策略的优先级值,确定物联网设备的策略信息。S203: Determine the policy information of the IoT device according to the priority value of each upgrade policy.

确定各个升级策略的优先级值后,即可以确定升级策略的优先级,即优先级值越高,优先级越高。管理平台根据各个升级策略的优先级值,确定物联网设备的策略信息,具体如下:After determining the priority value of each upgrade policy, the priority of the upgrade policy can be determined, that is, the higher the priority value, the higher the priority. The management platform determines the policy information of the IoT device according to the priority value of each upgrade policy, as follows:

管理平台将多个升级策略中的优先级值最高的升级策略,确定为目标升级策略。然后管理平台将目标升级策略中有优先级值最高的升级条件对应的待升级的固件的下载地址,与物联网设备的标识进行组装,形成键值类型的数据,标识为键,待升级的固件的下载地址为值,该标识可以为设备序列号,其中,键作为唯一标识符,通过该标识符可以查询到对应的值。The management platform determines the upgrade strategy with the highest priority value among multiple upgrade strategies as the target upgrade strategy. Then the management platform assembles the download address of the firmware to be upgraded corresponding to the upgrade condition with the highest priority value in the target upgrade strategy with the identifier of the IoT device to form key-value type data, where the identifier is the key and the download address of the firmware to be upgraded is the value. The identifier can be the device serial number, where the key is a unique identifier, and the corresponding value can be queried through the identifier.

管理平台将组装后形成的键值类型的数据,作为物联网设备的策略信息。The management platform uses the assembled key-value data as the policy information of the IoT devices.

可选的,管理平台还可以将目标升级策略中有优先级值最高的升级条件对应的待升级的固件的下载地址,与物联网设备的型号进行组装,或者与物联网设备的所属厂商进行组装等,这样物联网设备的型号或者物联网设备的所属厂商可以作为唯一标识符,通过该唯一标识符可以查询到对应的值。可以理解,在组装时通过改变唯一标识符,可以通过型号或者厂商,查询待升级的固件的下载地址。Optionally, the management platform can also assemble the download address of the firmware to be upgraded corresponding to the upgrade condition with the highest priority value in the target upgrade policy with the model of the IoT device, or with the manufacturer of the IoT device, etc., so that the model of the IoT device or the manufacturer of the IoT device can be used as a unique identifier, and the corresponding value can be queried through the unique identifier. It can be understood that by changing the unique identifier during assembly, the download address of the firmware to be upgraded can be queried by model or manufacturer.

S204、将策略信息发送给版本升级服务器。S204: Send the policy information to the version upgrade server.

确定各个物联网设备的策略信息后,管理平台将策略信息发送给版本升级服务器,策略信息中包括物联网设备的标识和待升级的固件的下载地址,该策略信息用于版本升级服务器接收到物联网设备发送的版本升级请求时,根据物联网设备的标识进行查询相应的待升级的固件的下载地址。After determining the policy information of each IoT device, the management platform sends the policy information to the version upgrade server. The policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded. When the version upgrade server receives a version upgrade request sent by the IoT device, the policy information is used to query the download address of the corresponding firmware to be upgraded based on the identifier of the IoT device.

可选的,在数据量比较大时,为了提升数据同步的性能,管理平台可以使用异步加载的方式上传策略信息,即管理平台可以将策略信息写入csv(Comma-Separated Values,简称csv)文件中,然后将该csv文件以FTP(File Transfer Protocol,简称FTP)的方式上传到版本升级服务器中,并且,管理平台向版本升级服务器发送加载命令,该加载指令用于远程控制版本升级服务器将csv文件存储到内存中。Optionally, when the amount of data is large, in order to improve the performance of data synchronization, the management platform can use asynchronous loading to upload policy information, that is, the management platform can write the policy information into a csv (Comma-Separated Values, csv for short) file, and then upload the csv file to the version upgrade server via FTP (File Transfer Protocol, FTP for short), and the management platform sends a loading command to the version upgrade server, and the loading instruction is used to remotely control the version upgrade server to store the csv file in memory.

在本实施例中,管理平台创建物联网设备的至少一个升级策略,然后根据各个升级策略中的升级条件的优先级值,计算各个升级策略的优先级值,然后根据各个升级策略的优先级值确定物联网设备的策略信息,并将该策略信息发送给版本升级服务器,使得版本升级服务器根据物联网设备发起的版本升级请求中的设备系列号,可以直接查询到相应的待升级的固件的下载地址,物联网设备根据该下载地址即可进行固件版本升级,即通过一次查询即可得到相应的待升级的固件的下载地址,能够较快的返回相应的下载地址,使得版本升级效率有所提高。In this embodiment, the management platform creates at least one upgrade policy for the IoT device, and then calculates the priority value of each upgrade policy according to the priority value of the upgrade condition in each upgrade policy, and then determines the policy information of the IoT device according to the priority value of each upgrade policy, and sends the policy information to the version upgrade server, so that the version upgrade server can directly query the download address of the corresponding firmware to be upgraded according to the device serial number in the version upgrade request initiated by the IoT device, and the IoT device can perform firmware version upgrade according to the download address, that is, the download address of the corresponding firmware to be upgraded can be obtained through one query, and the corresponding download address can be returned quickly, so that the efficiency of version upgrade is improved.

下面通过实施例二对物联网设备的版本升级过程进行说明。The version upgrade process of the Internet of Things device is described below through Example 2.

参考图3,图3为本申请实施例二提供的一种固件版本升级方法的流程示意图,该方法可以由版本升级服务器执行,该方法包括如下步骤。Refer to Figure 3, which is a flow chart of a firmware version upgrade method provided in Example 2 of the present application. The method can be executed by a version upgrade server, and the method includes the following steps.

S301、接收管理平台发送的各个物联网设备的策略信息,并存储策略信息。S301. Receive policy information of each IoT device sent by a management platform, and store the policy information.

版本升级服务器可以接收到管理平台发送的各个物联网设备的策略信息,该策略信息中包括物联网设备的标识和待升级的固件的下载地址,然后存储各个物联网设备的策略信息。The version upgrade server can receive the policy information of each IoT device sent by the management platform, the policy information including the identifier of the IoT device and the download address of the firmware to be upgraded, and then store the policy information of each IoT device.

可选的,当管理平台上传的策略信息数据量较大时,版本升级服务器可以接收到管理平台上传的csv文件,该csv文件中包括各个物联网设备的策略信息,然后版本升级服务器获取到管理平台发送的加载命令,并根据该加载命令csv文件加载到内存中进行存储,提升了数据同步的性能。Optionally, when the amount of policy information data uploaded by the management platform is large, the version upgrade server can receive the csv file uploaded by the management platform, which includes the policy information of each IoT device. The version upgrade server then obtains the loading command sent by the management platform and loads the csv file into the memory for storage according to the loading command, thereby improving the performance of data synchronization.

S302、接收目标物联网设备发送的版本升级请求。S302: Receive a version upgrade request sent by a target IoT device.

可选的,版本升级服务器每隔预设时间可以接收到目标物联网设备发送的版本升级请求,该版本升级请求包括目标物联网设备的标识,示例性的,该预设时间可以为一个月,或者两个月等。Optionally, the version upgrade server may receive a version upgrade request sent by the target IoT device at preset time intervals, where the version upgrade request includes an identifier of the target IoT device. Exemplarily, the preset time may be one month, or two months, etc.

S303、根据目标物联网设备的标识,在存储的策略信息中查询目标物联网设备的待升级的固件的下载地址。S303: According to the identifier of the target IoT device, query the stored policy information for a download address of the firmware to be upgraded of the target IoT device.

版本升级服务器在接收到版本升级请求后,可以根据版本升级请求中的目标物联网设备的标识,在存储的策略信息中查询目标物联网设备的待升级的固件的下载地址。After receiving the version upgrade request, the version upgrade server can query the download address of the firmware to be upgraded of the target IoT device in the stored policy information according to the identifier of the target IoT device in the version upgrade request.

S304、将目标物联网设备的待升级的固件的下载地址发送给目标物联网设备。S304: Send the download address of the firmware to be upgraded of the target IoT device to the target IoT device.

版本升级服务器在存储的策略信息中查询得到目标物联网设备的待升级的固件的下载地址后,将该下载地址发送给目标物联网设备,使得目标物联网设备可以根据该下载地址下载待升级的固件信息,以实现固件版本升级。After the version upgrade server obtains the download address of the firmware to be upgraded of the target IoT device from the stored policy information, it sends the download address to the target IoT device, so that the target IoT device can download the firmware information to be upgraded according to the download address to achieve firmware version upgrade.

在本实施例中,版本升级服务器接收管理平台发送的各个物联网设备的策略信息,并存储策略信息。然后在接收到目标物联网设备发送的版本升级请求后,根据该请求中的目标物联网设备的标识在存储的策略信息中查询对应的待升级的固件的下载地址,并将该下载地址发送给目标物联网设备,通过一次查询即可得到相应的待升级的固件的下载地址,能够较快的返回相应的下载地址,使得目标物联网设备可以根据该下载地址下载待升级的固件信息,以实现固件版本升级,提高了版本升级效率。In this embodiment, the version upgrade server receives the policy information of each IoT device sent by the management platform and stores the policy information. Then, after receiving the version upgrade request sent by the target IoT device, the download address of the corresponding firmware to be upgraded is queried in the stored policy information according to the identifier of the target IoT device in the request, and the download address is sent to the target IoT device. The download address of the corresponding firmware to be upgraded can be obtained through one query, and the corresponding download address can be returned quickly, so that the target IoT device can download the firmware information to be upgraded according to the download address to achieve firmware version upgrade, thereby improving the efficiency of version upgrade.

上述通过实施例一和实施例二对物联网设备的策略信息的生成和使用进行说明,下面通过实施例三对各个设备的交互进行说明。The generation and use of policy information of IoT devices are described above through the first and second embodiments. The interaction of various devices is described below through the third embodiment.

参考图4,图4为本申请实施例三提供的一种固件版本升级方法的信令流程图,本实施例在实施例一和实施例二的基础上,详细描述设备之间的交互过程,本实施例提供的方法包括如下步骤。Refer to Figure 4, which is a signaling flow chart of a firmware version upgrade method provided in Example 3 of the present application. Based on Example 1 and Example 2, this embodiment describes in detail the interaction process between devices. The method provided in this embodiment includes the following steps.

S401、管理平台向版本升级服务器发送各个物联网设备的策略信息。S401. The management platform sends policy information of each IoT device to the version upgrade server.

该策略信息中包括物联网设备的标识和待升级的固件的下载地址,该策略信息的生成可以参考实施例一。The policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded. The generation of the policy information may refer to the first embodiment.

S402、版本升级服务器存储各个物联网设备的策略信息。S402: The version upgrade server stores policy information of each IoT device.

S403、物联网设备向版本升级服务器发送版本升级请求。S403: The IoT device sends a version upgrade request to the version upgrade server.

该版本升级请求中包括物联网设备的标识。The version upgrade request includes the identifier of the IoT device.

S404、版本升级服务器根据版本升级请求在存储的策略信息中查询得到物联网设备的待升级的固件的下载地址。S404: The version upgrade server queries the stored policy information according to the version upgrade request to obtain a download address of the firmware to be upgraded of the IoT device.

S405、版本升级服务器将待升级的固件的下载地址发送给物联网设备。S405: The version upgrade server sends the download address of the firmware to be upgraded to the IoT device.

S406、物联网设备根据待升级的固件的下载地址,下载待升级的固件信息,进行固件版本升级。S406: The IoT device downloads the firmware information to be upgraded according to the download address of the firmware to be upgraded, and performs firmware version upgrade.

本实施例的流程,可用于执行实施例一或者实施例二中的一种固件版本升级方法,具体实现方式和技术效果类似,这里不再赘述The process of this embodiment can be used to execute a firmware version upgrade method in Embodiment 1 or Embodiment 2. The specific implementation method and technical effects are similar and will not be repeated here.

参考图5,图5为本申请实施例四提供的一种版本升级服务器的结构示意图。如图5所示,该服务器50包括:处理模块501,接收模块502、查询模块503和发送模块504。Referring to Fig. 5 , Fig. 5 is a schematic diagram of the structure of a version upgrade server provided in Embodiment 4 of the present application. As shown in Fig. 5 , the server 50 includes: a processing module 501 , a receiving module 502 , a query module 503 and a sending module 504 .

处理模块501,用于接收管理平台发送的各个物联网设备的策略信息,并存储策略信息,策略信息中包括物联网设备的标识和待升级的固件的下载地址。The processing module 501 is used to receive the policy information of each IoT device sent by the management platform and store the policy information, wherein the policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded.

接收模块502,用于接收目标物联网设备发送的版本升级请求,版本升级请求中包括目标物联网设备的标识。The receiving module 502 is used to receive a version upgrade request sent by a target IoT device, where the version upgrade request includes an identifier of the target IoT device.

查询模块503,用于根据目标物联网设备的标识,在存储的策略信息中查询目标物联网设备的待升级的固件的下载地址。The query module 503 is used to query the download address of the firmware to be upgraded of the target IoT device in the stored policy information according to the identifier of the target IoT device.

发送模块504,用于将目标物联网设备的待升级的固件的下载地址发送给目标物联网设备。The sending module 504 is used to send the download address of the firmware to be upgraded of the target IoT device to the target IoT device.

可选的,处理模块501,具体用于:Optionally, the processing module 501 is specifically configured to:

接收管理平台上传的csv文件,该文件中包括各个物联网设备的策略信息。Receive the csv file uploaded by the management platform, which includes the policy information of each IoT device.

获取管理平台发送的加载指令。Get the loading instruction sent by the management platform.

根据加载命令,将csv文件加载到内存中进行存储。According to the load command, the csv file is loaded into the memory for storage.

本实施例的服务器,可用于执行实施例二的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。The server of this embodiment can be used to execute the steps of a firmware version upgrade method of embodiment 2. The specific implementation method and technical effects are similar and will not be repeated here.

参考图6,图6为本申请实施例五提供的一种管理平台的结构示意图。如图6所示,该管理平台60包括:创建模块601,计算模块602、确定模块603和发送模块604。Referring to Fig. 6, Fig. 6 is a schematic diagram of the structure of a management platform provided in Embodiment 5 of the present application. As shown in Fig. 6, the management platform 60 includes: a creation module 601, a calculation module 602, a determination module 603 and a sending module 604.

创建模块601,用于创建物联网设备的至少一个升级策略,升级策略中包括管理员输入的至少一个升级条件,每个升级条件对应一个优先级值。The creation module 601 is used to create at least one upgrade policy for the IoT device, where the upgrade policy includes at least one upgrade condition input by the administrator, and each upgrade condition corresponds to a priority value.

计算模块602,用于根据各个升级策略中的升级条件的优先级值,计算各个升级策略的优先级值。The calculation module 602 is used to calculate the priority value of each upgrade policy according to the priority value of the upgrade condition in each upgrade policy.

确定模块603,用于根据各个升级策略的优先级值,确定物联网设备的策略信息。The determination module 603 is used to determine the policy information of the IoT device according to the priority value of each upgrade policy.

发送模块604,用于将策略信息发送给版本升级服务器,策略信息中包括物联网设备的标识和待升级的固件的下载地址。The sending module 604 is used to send the policy information to the version upgrade server, where the policy information includes the identifier of the IoT device and the download address of the firmware to be upgraded.

可选的,计算模块602,具体用于:Optionally, the calculation module 602 is specifically configured to:

将升级策略中的升级条件的优先级值进行累加,得到升级策略的优先级值,升级条件包括以下至少一个:区域、厂商、型号、版本和设备标识。The priority values of the upgrade conditions in the upgrade policy are accumulated to obtain the priority value of the upgrade policy, where the upgrade condition includes at least one of the following: region, manufacturer, model, version, and device identifier.

可选的,确定模块603,具体用于:Optionally, the determination module 603 is specifically configured to:

确定多个升级策略中优先级值最高的升级策略为目标升级策略。An upgrade policy with the highest priority value among the multiple upgrade policies is determined as the target upgrade policy.

将目标升级策略中的优先级值最高的升级条件对应的待升级的固件的下载地址与物联网设备的标识进行组装,形成键值类型的数据,标识作为键,值为待升级的固件的下载地址。The download address of the firmware to be upgraded corresponding to the upgrade condition with the highest priority value in the target upgrade policy is assembled with the identifier of the IoT device to form key-value type data, with the identifier as the key and the value as the download address of the firmware to be upgraded.

将键值类型的数据作为物联网设备的策略信息。Use key-value data as policy information for IoT devices.

可选的,发送模块604,具体用于:Optionally, the sending module 604 is specifically configured to:

将策略信息写入逗号分隔值csv文件。Write policy information to a comma separated values csv file.

将csv文件以文件传输协议FTP方式,上传到版本升级服务器中。Upload the csv file to the version upgrade server using the file transfer protocol FTP.

向版本升级服务器发送加载指令,加载指令用于远程控制版本升级服务器将csv文件存储到内存中。Send a loading instruction to the version upgrade server. The loading instruction is used to remotely control the version upgrade server to store the csv file in the memory.

本实施例的管理平台,可用于执行实施例一的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。The management platform of this embodiment can be used to execute the steps of a firmware version upgrade method in Embodiment 1. The specific implementation method and technical effects are similar and will not be described in detail here.

图7为本发明实施例六提供的一种版本升级服务器的结构示意图,如图7所示,该服务器70包括:处理器701、存储器702,收发器703,存储器702用于存储指令,收发器703用于和其他设备通信,处理器701用于执行存储器中存储的指令,以使服务器70执行如实施例二的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。Figure 7 is a structural diagram of a version upgrade server provided in Example 6 of the present invention. As shown in Figure 7, the server 70 includes: a processor 701, a memory 702, and a transceiver 703. The memory 702 is used to store instructions, and the transceiver 703 is used to communicate with other devices. The processor 701 is used to execute the instructions stored in the memory so that the server 70 executes the steps of a firmware version upgrade method as in Example 2. The specific implementation method and technical effect are similar and will not be repeated here.

图8为本发明实施例七提供的一种管理平台的结构示意图,如图8所示,该管理平台80包括:处理器801、存储器802,收发器803,存储器802用于存储指令,收发器803用于和其他设备通信,处理器801用于执行存储器中存储的指令,以使管理平台80执行如实施例一的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。Figure 8 is a structural diagram of a management platform provided in Example 7 of the present invention. As shown in Figure 8, the management platform 80 includes: a processor 801, a memory 802, and a transceiver 803. The memory 802 is used to store instructions, and the transceiver 803 is used to communicate with other devices. The processor 801 is used to execute the instructions stored in the memory so that the management platform 80 executes the steps of a firmware version upgrade method as in Example 1. The specific implementation method and technical effect are similar and will not be repeated here.

本发明实施例八提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,计算机执行指令被处理器执行时用于实现如上述实施例一或者实施例二的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。Embodiment 8 of the present invention provides a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement a firmware version upgrade method step as in the above-mentioned embodiment 1 or embodiment 2. The specific implementation method and technical effect are similar and will not be repeated here.

本发明实施例九提供一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时,实现如上述实施例一或者实施例二的一种固件版本升级方法步骤,具体实现方式和技术效果类似,这里不再赘述。Embodiment 9 of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the steps of a firmware version upgrade method as in the above-mentioned embodiment 1 or embodiment 2. The specific implementation method and technical effect are similar and will not be repeated here.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims (10)

1. A firmware version upgrade method, applied to a version upgrade server, the method comprising:
Receiving policy information of each Internet of things device sent by a management platform, and storing the policy information, wherein the policy information comprises an identifier of the Internet of things device and a download address of firmware to be upgraded; the policy information is at least one upgrade policy of the management platform for creating the Internet of things equipment, wherein the upgrade policy comprises at least one upgrade condition, and each upgrade condition corresponds to one priority; calculating the priority of each upgrade strategy according to the priority of the upgrade condition in each upgrade strategy; determining according to the priority of each upgrade strategy;
Receiving a version upgrading request sent by target internet of things equipment, wherein the version upgrading request comprises an identifier of the target internet of things equipment;
Inquiring a download address of firmware to be upgraded of the target internet of things device in the stored strategy information according to the identification of the target internet of things device;
And sending the download address of the firmware to be upgraded of the target Internet of things equipment to the target Internet of things equipment.
2. The method of claim 1, wherein the receiving policy information of each internet of things device sent by the management platform and storing the policy information includes:
Receiving a csv file uploaded by the management platform, wherein the file comprises policy information of each Internet of things device;
acquiring a loading instruction sent by the management platform;
and loading the csv file into a memory for storage according to the loading instruction.
3. A firmware version upgrade method, applied to a management platform, comprising:
Creating at least one upgrading strategy of the Internet of things equipment, wherein the upgrading strategy comprises at least one upgrading condition, and each upgrading condition corresponds to one priority;
Calculating the priority of each upgrade strategy according to the priority of the upgrade condition in each upgrade strategy;
determining policy information of the Internet of things equipment according to the priority of each upgrading policy;
and sending the strategy information to a version upgrading server, wherein the strategy information comprises the identification of the Internet of things equipment and the downloading address of the firmware to be upgraded.
4. A method according to claim 3, wherein said calculating a priority value for each upgrade policy based on a predetermined priority value for upgrade conditions in each upgrade policy comprises:
Accumulating the priority values of the upgrading conditions in the upgrading strategy to obtain the priority values of the upgrading strategy, wherein the upgrading conditions comprise at least one of the following: area, vendor, model, version, and device identification.
5. The method of claim 4, wherein determining policy information for the internet of things device according to the priority of each upgrade policy comprises:
determining an upgrade strategy with the highest priority value in the plurality of upgrade strategies as a target upgrade strategy;
Assembling a downloading address of the firmware to be upgraded corresponding to an upgrading condition with the highest priority value in a target upgrading strategy with an identifier of the internet of things equipment to form key value type data, wherein the identifier is used as a key, and the value is the downloading address of the firmware to be upgraded;
and taking the data of the key value type as the strategy information of the Internet of things equipment.
6. The method of claim 5, wherein the sending the policy information to a version-up server comprises:
Writing the strategy information into comma separated value csv file;
Uploading the csv file to the version upgrading server in a File Transfer Protocol (FTP) mode;
And sending a loading instruction to the version upgrading server, wherein the loading instruction is used for remotely controlling the version upgrading server to store the csv file into a memory.
7. A version upgrade server, comprising:
The processing module is used for receiving the strategy information of each Internet of things device sent by the management platform and storing the strategy information, wherein the strategy information comprises the identification of the Internet of things device and the download address of the firmware to be upgraded; the policy information is at least one upgrade policy of the management platform for creating the Internet of things equipment, wherein the upgrade policy comprises at least one upgrade condition, and each upgrade condition corresponds to one priority; calculating the priority of each upgrade strategy according to the priority of the upgrade condition in each upgrade strategy; determining according to the priority of each upgrade strategy;
the system comprises a receiving module, a receiving module and a processing module, wherein the receiving module is used for receiving a version upgrading request sent by target internet of things equipment, and the version upgrading request comprises an identifier of the target internet of things equipment;
the inquiry module is used for inquiring the downloading address of the firmware to be upgraded of the target internet of things equipment in the stored strategy information according to the identification of the target internet of things equipment;
And the sending module is used for sending the download address of the firmware to be upgraded of the target internet of things equipment to the target internet of things equipment.
8. A management platform, comprising:
The system comprises a creation module, a processing module and a processing module, wherein the creation module is used for creating at least one upgrading strategy of a plurality of internet of things devices, the upgrading strategy comprises at least one upgrading condition, and each upgrading condition corresponds to one priority value;
The computing module is used for computing the priority of each upgrade strategy according to the priority of the upgrade condition in each upgrade strategy;
the determining module is used for determining the strategy information of each piece of Internet of things equipment according to the priority of the upgrading strategy of each piece of Internet of things equipment;
The sending module is used for sending the strategy information to the version upgrading server, wherein the strategy information comprises an identifier of the Internet of things equipment and a downloading address of firmware to be upgraded.
9. A version upgrade server, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory to implement the method of claim 1 or 2.
10. A management platform, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
The processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 3-6.
CN202210380865.XA 2022-04-12 2022-04-12 Firmware version upgrade method, version upgrade server and management platform Active CN114721684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210380865.XA CN114721684B (en) 2022-04-12 2022-04-12 Firmware version upgrade method, version upgrade server and management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210380865.XA CN114721684B (en) 2022-04-12 2022-04-12 Firmware version upgrade method, version upgrade server and management platform

Publications (2)

Publication Number Publication Date
CN114721684A CN114721684A (en) 2022-07-08
CN114721684B true CN114721684B (en) 2024-05-14

Family

ID=82243811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210380865.XA Active CN114721684B (en) 2022-04-12 2022-04-12 Firmware version upgrade method, version upgrade server and management platform

Country Status (1)

Country Link
CN (1) CN114721684B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297159A (en) * 2022-08-02 2022-11-04 上海移柯通信技术股份有限公司 Information processing method and device, computer readable storage medium and electronic equipment
CN116627474B (en) * 2023-07-21 2023-10-13 杭州海康威视数字技术股份有限公司 Intelligent equipment intelligent safety management method, device and equipment based on reinforcement learning

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658574A (en) * 2005-03-23 2005-08-24 港湾网络有限公司 Method and system for automatically updating network equipment
CN101179425A (en) * 2006-12-11 2008-05-14 腾讯科技(深圳)有限公司 Client terminal software updating control method and system
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN112394966A (en) * 2019-08-19 2021-02-23 云丁网络技术(北京)有限公司 Equipment upgrading method and device, computer readable medium and equipment
CN113342371A (en) * 2021-05-31 2021-09-03 招商蛇口数字城市科技有限公司 Internet of things equipment upgrading system
CN113865024A (en) * 2021-09-27 2021-12-31 青岛海信日立空调系统有限公司 Remote upgrading system for central air conditioner

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7320010B2 (en) * 2002-11-18 2008-01-15 Innopath Software, Inc. Controlling updates of electronic files

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658574A (en) * 2005-03-23 2005-08-24 港湾网络有限公司 Method and system for automatically updating network equipment
CN101179425A (en) * 2006-12-11 2008-05-14 腾讯科技(深圳)有限公司 Client terminal software updating control method and system
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server
CN107589952A (en) * 2016-07-06 2018-01-16 中兴通讯股份有限公司 Intelligent upgrade method, device and system
CN112394966A (en) * 2019-08-19 2021-02-23 云丁网络技术(北京)有限公司 Equipment upgrading method and device, computer readable medium and equipment
CN113342371A (en) * 2021-05-31 2021-09-03 招商蛇口数字城市科技有限公司 Internet of things equipment upgrading system
CN113865024A (en) * 2021-09-27 2021-12-31 青岛海信日立空调系统有限公司 Remote upgrading system for central air conditioner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
总线OTA技术在多联式空调(热泵)机组中的应用;高岭等;《制冷与空调》;20210714;第21卷(第09期);10-14+45 *

Also Published As

Publication number Publication date
CN114721684A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN114721684B (en) Firmware version upgrade method, version upgrade server and management platform
US9996333B2 (en) Apparatus and method for automating the installation and configuration of infrastructure
CN103593207A (en) High-speed automatic cluster system deployment method using virtual disk
US11323317B1 (en) Software capabilities management from a service provider environment
CN102132261A (en) Home network system, gateway device and firmware update method
CN108762792A (en) Upgrading network equipment method, upgrade server, terminal device and storage medium
CN106775841B (en) Method, system and device for upgrading plug-in
CN114938365B (en) Functional module updating method, device, storage medium and electronic device
CN109840096A (en) The installation method and device of operating system
CN110474977A (en) Firmware upgrade method, firmware upgrade system and the intelligent door lock of intelligent door lock
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
CN114244890B (en) RPA server cluster control method and system
CN110855746A (en) Middleware management method, electronic device and storage medium
CN113391828B (en) Method and system for realizing system disk RAID division and installing operating system
CN113608742A (en) Detection method, code packet processing method, operation control method and computing device
CN111240707B (en) A method and device for filling storage system through PXE network
CN113626054A (en) Business service updating method and device
CN109542482A (en) A kind of piece of storage service upgrade method, device, equipment and readable storage medium storing program for executing
CN112286625B (en) A cloud platform-based multi-user image cache state management method and system
CN116501253A (en) Data storage method, device and system, readable storage medium and electronic equipment
CN115633029A (en) Task deployment method, system, equipment and storage medium of edge server
KR20120095332A (en) Server, system and the method for on-line game patch
US8499002B2 (en) Apparatus and method for controlling devices in requested resource via network
JP5037545B2 (en) Information processing system and control program
KR102000984B1 (en) Automatic operating system providing automatic producing function to a plurality of server

Legal Events

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