WO2019047519A1 - Method and apparatus for upgrading narrowband internet of things and system - Google Patents

Method and apparatus for upgrading narrowband internet of things and system Download PDF

Info

Publication number
WO2019047519A1
WO2019047519A1 PCT/CN2018/082222 CN2018082222W WO2019047519A1 WO 2019047519 A1 WO2019047519 A1 WO 2019047519A1 CN 2018082222 W CN2018082222 W CN 2018082222W WO 2019047519 A1 WO2019047519 A1 WO 2019047519A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
upgrade
version file
version
proximity
Prior art date
Application number
PCT/CN2018/082222
Other languages
French (fr)
Chinese (zh)
Inventor
张辉
Original Assignee
西安中兴新软件有限责任公司
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 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2019047519A1 publication Critical patent/WO2019047519A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Definitions

  • the present disclosure relates to the field of narrowband Internet of Things, and more particularly to a narrowband Internet of Things upgrade method and apparatus, and system.
  • the obtained version file is sent to the NB module by the short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
  • FIG. 6 is a schematic diagram of a narrowband Internet of Things upgrading apparatus installed on a proximity upgrade tool device according to an embodiment of the present disclosure.
  • Step 220 After the NB module starts the proximity transmission chip, the chip starts to send the heartbeat broadcast signal.
  • step 260 if the matching fails, the corresponding information is returned, and the heartbeat signal is continuously sent. If the matching is successful, the connected link is established.
  • the NB module of step 140 performs version upgrade according to the received version file, including: after writing the version file to the backup system partition, restarting and loading the backup system;
  • the upgrade tool device can download the version file from the cloud after the matching is successful
  • Step 360 after the transmission is completed, the normal system sets a backup system startup flag in the SBL startup item, and restarts the device;
  • the upgrade is complete.
  • Step 410 Set a SBL loading backup system when the normal system crashes
  • the third step is to query the time interval. In order to save bandwidth and traffic, you can set it to 5 minutes. Each time the device is connected to the network, a request is sent, and the corresponding request is sent according to the corresponding time interval. After the network port, the polling thread is closed.
  • the NB module After receiving the response request sent by the upgrade tool device, the NB module performs the decryption operation according to the encryption algorithm agreed in advance, and performs the authentication of the upgrade tool device for the parsed data, and the authentication succeeds, that is, the entire matching process is completed.
  • Step 485 if the normal system is not successfully loaded, after restarting, reload the backup system and wait for a new upgrade package request.
  • the second step is to parse the content part of the protocol package.
  • the decryption operation is performed according to the encryption algorithm agreed in advance.
  • the decryption algorithm may be the existing MD5 or other programs. Encryption and decryption algorithm.
  • the method before the obtaining the version file in the cloud, the method further includes:
  • the file obtaining unit 61 is configured to obtain a version file through the cloud
  • the embodiment of the present disclosure further provides a proximity upgrade tool system, where the proximity upgrade tool system includes an NB module and a proximity upgrade tool device, and the NB module includes any one of the above settings.
  • the proximity upgrade tool system includes an NB module and a proximity upgrade tool device, and the NB module includes any one of the above settings.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method and apparatus for upgrading a narrowband (NB) Internet of Things, and a system, wherein the method comprises: an NB module receiving a version file sent by a short-range upgrading tool device by means of a short-range transmission module; and the NB module performing a version upgrade according to the received version file.

Description

一种窄带物联网升级方法和装置、及系统Narrowband internet of things upgrade method and device, and system 技术领域Technical field
本公开涉及窄带物联网领域,尤指一种窄带物联网升级方法和装置、及系统。The present disclosure relates to the field of narrowband Internet of Things, and more particularly to a narrowband Internet of Things upgrade method and apparatus, and system.
背景技术Background technique
基于蜂窝的窄带物联网(Narrow Band Internet of Things,NB-IoT)成为万物互联网络的一个重要分支。NB-IoT构建于蜂窝网络,只消耗大约180KHz的带宽,可直接部署于GSM(Global System for Mobile Communications,全球移动通信系统)网络、UMTS(Universal Mobile Telecommunication System,通用移动通信系统)网络或LTE(Long Term Evolution,3GPP长期演进)网络,以降低部署成本、实现平滑升级。The Narrow Band Internet of Things (NB-IoT) is an important branch of the Internet of Everything. Built on a cellular network, NB-IoT consumes only about 180KHz of bandwidth and can be deployed directly on a GSM (Global System for Mobile Communications) network, a UMTS (Universal Mobile Telecommunication System) network, or LTE ( Long Term Evolution, 3GPP Long Term Evolution) network to reduce deployment costs and achieve smooth upgrades.
NB-IoT具备四大特点:一是广覆盖,将提供改进的室内覆盖,在同样的频段下,NB-IoT比现有的网络增益20dB,相当于提升了100倍覆盖区域的能力;二是具备支撑海量连接的能力,NB-IoT一个扇区能够支持10万个连接,支持低延时敏感度、超低的设备成本、低设备功耗和优化的网络架构;三是更低功耗,NB-IoT终端模块的待机时间可长达10年;四是更低的模块成本,企业预期的单个接连模块不超过5美元。NB-IoT has four characteristics: First, wide coverage will provide improved indoor coverage. In the same frequency band, NB-IoT gains 20dB more than the existing network, which is equivalent to the ability to increase the coverage area by 100 times. With the ability to support massive connections, NB-IoT can support 100,000 connections in one sector, supporting low latency sensitivity, ultra-low device cost, low device power consumption and optimized network architecture. Third, lower power consumption. The standby time of the NB-IoT terminal module can be as long as 10 years; the fourth is the lower module cost, the enterprise expects a single connected module to not exceed 5 US dollars.
NB-IoT使用License频段,可采取带内、保护带或独立载波三种部署方式,与现有网络共存。NB-IoT聚焦于低功耗广覆盖(LPWA)物联网(IoT)市场,是一种可在全球范围内广泛应用的新兴技术。因为NB-IoT自身具备的低功耗、广覆盖、低成本、大容量等优势,使其可以广泛应用于多种垂直行业,如远程抄表、资产跟踪、智能停车、智慧农业等。运营商已经开始NB-IoT网络布局,基于NB(Narrow Band,窄带)网络的物联终端将会大规模应用,而NB模块也进而会逐步普及起来。The NB-IoT uses the license band and can be deployed in the inband, guard band, or independent carrier mode to coexist with the existing network. Focusing on the Low Power Wide Coverage (LPWA) Internet of Things (IoT) market, NB-IoT is an emerging technology that can be used globally. Because of its low power consumption, wide coverage, low cost, and large capacity, NB-IoT can be widely used in a variety of vertical industries, such as remote meter reading, asset tracking, intelligent parking, and smart agriculture. Operators have begun NB-IoT network layout, and the NB (Narrow Band) network-based IoT terminal will be applied on a large scale, and the NB module will gradually become popular.
据此支持NB-IoT的NB模块在物联网方面的应用也会越来越广,其升级需求将会是不能避免的业务功能。According to this, the NB module supporting NB-IoT will be more and more widely used in the Internet of Things, and its upgrade requirements will be an inevitable business function.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本公开提出了一种窄带物联网升级方法和装置、及系统,能够提供一种简易有效的NB模块升级方案。The present disclosure proposes a narrowband Internet of Things upgrade method and apparatus, and a system, which can provide a simple and effective NB module upgrade solution.
本公开提出了一种窄带物联网升级方法,所述方法包括:The present disclosure proposes a narrowband Internet of Things upgrade method, the method comprising:
NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件;The NB module receives the version file sent by the proximity upgrade tool device through the short-distance transmission module;
NB模块根据接收的版本文件进行版本升级。The NB module performs version upgrade based on the received version file.
在示例性实施例中,在所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,还包括:In an exemplary embodiment, before the NB module receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module, the method further includes:
开启近距离传输模块;Turn on the proximity transmission module;
在所述NB模块根据接收的版本文件进行版本升级之后,还包括:After the version upgrade of the NB module according to the received version file, the method further includes:
关闭近距离传输模块。Turn off the proximity transmission module.
在示例性实施例中,在所述开启近距离传输模块之前,还包括:In an exemplary embodiment, before the opening the proximity transmission module, the method further includes:
轮询检查是否有升级请求;Polling to check if there is an upgrade request;
当确定有升级请求时,执行所述开启近距离传输模块的步骤。When it is determined that there is an upgrade request, the step of turning on the proximity transmission module is performed.
在示例性实施例中,在NB模块所在的设备为非死机设备时,In an exemplary embodiment, when the device where the NB module is located is a non-dead device,
所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件包括:NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中,The receiving, by the NB module, the version file sent by the proximity upgrade tool device by the proximity transmission module includes: receiving, by the normal system in the NB module, the version file, and writing the version file to the backup system partition,
所述NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;Performing the version upgrade according to the received version file by the NB module includes: restarting and loading the backup system after writing the version file to the backup system partition;
在NB模块所在的设备为死机设备时,When the device where the NB module is located is a dead device,
所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件包括:NB模块中的备份系统接收所述版本文件,并将所述版本文件写 入到正常系统分区中,Receiving, by the NB module, the version file sent by the proximity upgrade tool device by the short-distance transmission module includes: the backup system in the NB module receives the version file, and writes the version file into a normal system partition,
所述NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The upgrading of the version by the NB module according to the received version file includes: restarting and loading the normal system after writing the version file to the normal system partition.
在示例性实施例中,在所述开启近距离传输模块之后,还包括:In an exemplary embodiment, after the opening the proximity transmission module, the method further includes:
发送心跳广播数据包;Send a heartbeat broadcast packet;
接收升级工具设备发送的响应请求;Receiving a response request sent by the upgrade tool device;
在接收到响应请求之后,根据预定的加密算法执行解密操作;After receiving the response request, performing a decryption operation according to a predetermined encryption algorithm;
执行对所述升级工具设备的认证。Perform authentication of the upgrade tool device.
本公开还提出了一种窄带物联网升级方法,所述方法包括:The present disclosure also proposes a narrowband Internet of Things upgrade method, the method comprising:
通过云端获取版本文件;Get the version file through the cloud;
通过近距离传输技术将获取的版本文件发送给NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The obtained version file is sent to the NB module by the short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
在示例性实施例中,在所述通过云端获取版本文件之前,还包括:In an exemplary embodiment, before the obtaining the version file in the cloud, the method further includes:
检测NB模块发送的心跳广播数据包;Detecting a heartbeat broadcast data packet sent by the NB module;
判断NB模块对应的设备是否在有版本更新需求的设备列表中;Determining whether the device corresponding to the NB module is in the device list with the version update requirement;
在确定NB模块对应的设备在有版本更新需求的设备列表中时,向所述NB模块发送响应请求。When it is determined that the device corresponding to the NB module is in the device list with the version update requirement, the response request is sent to the NB module.
本公开还提出了一种窄带物联网升级装置,设置在NB模块中,所述装置包括:The present disclosure also provides a narrowband Internet of Things upgrading device, which is disposed in an NB module, and the device includes:
第一传输单元,设置为通过近距离传输模块接收近距离升级工具设备发送的版本文件;a first transmission unit, configured to receive, by the short-distance transmission module, a version file sent by the proximity upgrade tool device;
升级单元,设置为根据接收的版本文件进行版本升级。The upgrade unit is set to perform a version upgrade based on the received version file.
在示例性实施例中,所述装置还包括:第一控制单元;In an exemplary embodiment, the apparatus further includes: a first control unit;
所述第一控制单元设置为在所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,开启近距离传输模块;The first control unit is configured to enable the short-distance transmission module before the NB module receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module;
所述第一控制单元还设置为在所述NB模块根据接收的版本文件进行版 本升级之后,关闭近距离传输模块。The first control unit is further configured to close the proximity transmission module after the NB module performs a version upgrade according to the received version file.
在示例性实施例中,所述第一控制单元还设置为在所述开启近距离传输模块之前,轮询检查是否有升级请求;当确定有升级请求时,开启近距离传输模块。In an exemplary embodiment, the first control unit is further configured to poll to check whether there is an upgrade request before the opening of the proximity transmission module; when it is determined that there is an upgrade request, turn on the proximity transmission module.
在示例性实施例中,在NB模块所在的设备为非死机设备时;In an exemplary embodiment, when the device where the NB module is located is a non-dead device;
所述第一传输单元通过NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中;The first transmission unit receives the version file through a normal system in the NB module, and writes the version file into a backup system partition;
所述升级单元根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;Performing the version upgrade according to the received version file by the upgrading unit includes: restarting and loading the backup system after writing the version file to the backup system partition;
在NB模块所在的设备为死机设备时;When the device where the NB module is located is a dead device;
所述第一传输单元通过NB模块中的备份系统接收所述版本文件,并将所述版本文件写入到正常系统分区中;The first transmission unit receives the version file through a backup system in the NB module, and writes the version file into a normal system partition;
所述升级单元根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The upgrading of the version by the upgrading unit according to the received version file includes: restarting and loading the normal system after writing the version file to the normal system partition.
在示例性实施例中,所述第一传输单元还设置为在所述开启近距离传输模块之后,发送心跳广播数据包;以及,接收升级工具设备发送的响应请求;In an exemplary embodiment, the first transmission unit is further configured to: after the opening the proximity transmission module, send a heartbeat broadcast data packet; and receive a response request sent by the upgrade tool device;
所述第一控制单元还设置为在接收到响应请求之后,根据预定的加密算法执行解密操作;执行对所述升级工具设备的认证。The first control unit is further configured to perform a decryption operation according to a predetermined encryption algorithm after receiving the response request; perform authentication of the upgrade tool device.
本公开还提出了一种窄带物联网升级装置,设置在近距离升级工具设备上,所述装置包括:The present disclosure also provides a narrowband Internet of Things upgrading device, which is disposed on a proximity upgrade tool device, and the device includes:
文件获取单元,设置为通过云端获取版本文件;a file obtaining unit, configured to obtain a version file through the cloud;
第二传输单元,设置为通过近距离传输技术将获取的版本文件发送给NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The second transmission unit is configured to send the obtained version file to the NB module by using a short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
在示例性实施例中,所述装置还包括第二控制单元,设置为在通过云端获取版本文件之前,检测NB模块发送的心跳广播数据包,以及判断所述NB模块对应的设备是否在有版本更新需求的设备列表中;In an exemplary embodiment, the apparatus further includes a second control unit, configured to detect a heartbeat broadcast data packet sent by the NB module, and determine whether the device corresponding to the NB module is in a version before acquiring the version file through the cloud. Update the list of required devices;
所述第二传输单元还设置为当所述第二控制单元确定NB模块对应的设 备在有版本更新需求的设备列表中时,向所述NB模块发送响应请求。The second transmission unit is further configured to: when the second control unit determines that the device corresponding to the NB module is in the device list with the version update requirement, send a response request to the NB module.
本公开还提出了一种NB模块,包括存储器、处理器及存储在所述存储器上并在所述处理器上可运行的计算机程序,所述处理器执行所述计算机程序时实现任一实现于NB模块上的窄带物联网升级方法的处理。The present disclosure also proposes an NB module comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing any implementation of the computer program Processing of the narrowband IoT upgrade method on the NB module.
本公开还提出了一种近距离升级工具设备,包括存储器、处理器及存储在所述存储器上并在所述处理器上可运行的计算机程序,所述处理器执行所述计算机程序时实现任一实现于近距离升级工具设备上的窄带物联网升级方法的处理。The present disclosure also provides a proximity upgrade tool device including a memory, a processor, and a computer program stored on the processor and executable on the processor, the processor executing the computer program A process for implementing a narrowband IoT upgrade method on a proximity upgrade tool device.
本公开还提出了一种近距离升级工具系统,所述近距离升级工具系统包括NB模块和近距离升级工具设备,所述NB模块包括上述任一设置在NB模块中的窄带物联网升级装置;所述近距离升级工具设备包括上述任一设置在升级工具设备上的窄带物联网升级装置。The present disclosure further provides a short-range upgrade tool system, where the short-range upgrade tool system includes an NB module and a proximity upgrade tool device, and the NB module includes any of the above-mentioned narrow-band IoT upgrade devices disposed in the NB module; The proximity upgrade tool device includes any of the above-described narrowband Internet of Things upgrade devices disposed on the upgrade tool device.
本公开还提出了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现以上描述的任一方法。The present disclosure also proposes a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement any of the methods described above.
本公开提供的方案包括:NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件;NB模块根据接收的版本文件进行版本升级。通过本公开的方案,通过近距离的无线传输技术来解决NB带宽不足和布置场景不容易到达的问题,解决了NB网络中升级包大所造成的下载升级文件困难的问题,并且解决了死机模块的升级功能,能够减少了人员在不同的NB模块集成场景下的升级时间,提高了效率,具有明显的经济效益。The solution provided by the disclosure includes: the NB module receives the version file sent by the proximity upgrade tool device through the short-distance transmission module; and the NB module performs version upgrade according to the received version file. Through the solution of the present disclosure, the short-distance wireless transmission technology solves the problem that the NB bandwidth is insufficient and the arrangement scenario is not easy to reach, solves the problem that the upgrade and upgrade file caused by the upgrade package in the NB network is difficult, and solves the dead module. The upgrade function can reduce the upgrade time of personnel in different NB module integration scenarios, improve efficiency, and has obvious economic benefits.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1A为本公开实施例提供的窄带物联网升级系统的框图;1A is a block diagram of a narrowband Internet of Things upgrade system according to an embodiment of the present disclosure;
图1B为窄带物联网升级系统中各部分之间通信协议的示意图;1B is a schematic diagram of a communication protocol between various parts in a narrowband Internet of Things upgrade system;
图2为本公开实施例提供的一种窄带物联网升级方法的流程示意图;2 is a schematic flowchart of a method for upgrading a narrowband Internet of Things according to an embodiment of the present disclosure;
图3A为本公开实施例提供的另一种窄带物联网升级方法的流程示意图;3A is a schematic flowchart of another narrowband Internet of Things upgrading method according to an embodiment of the present disclosure;
图3B为本公开实施例提供的另一种窄带物联网升级系统的多方交互图;FIG. 3B is a multi-party interaction diagram of another narrowband Internet of Things upgrade system according to an embodiment of the present disclosure; FIG.
图4A、图4B和图4C为本公开实施例提供的又一种窄带物联网升级方法的流程示意图。FIG. 4A, FIG. 4B and FIG. 4C are schematic diagrams showing still another flow of a narrowband Internet of Things upgrading method according to an embodiment of the present disclosure.
图5为本公开实施例提供的设置在NB模块中的一种窄带物联网升级装置的示意图。FIG. 5 is a schematic diagram of a narrowband Internet of Things upgrading apparatus installed in an NB module according to an embodiment of the present disclosure.
图6为本公开实施例提供的设置在近距离升级工具设备上的一种窄带物联网升级装置的示意图。FIG. 6 is a schematic diagram of a narrowband Internet of Things upgrading apparatus installed on a proximity upgrade tool device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
针对目前的情况,NB模块的升级显得非常的重要,现有的升级一般都采用OTA升级或者人工拆卸升级,但是有如下缺陷:In view of the current situation, the upgrade of the NB module is very important. The existing upgrades generally use OTA upgrade or manual disassembly upgrade, but have the following defects:
1、由于NB带宽的限制,OTA(Over-the-Air Technology,空中下载技术)升级包的大小要求很严格,稍微大一点的包就需要比较长的下载时间,这样对于升级来说,限制比较多,特别是对于死机设备,很难完成通过下载全版本的包来实现升级。1. Due to the limitation of NB bandwidth, the size of the OTA (Over-the-Air Technology) upgrade package is very strict. A slightly larger package requires a longer download time, so for the upgrade, the limit is compared. Many, especially for dead devices, it is difficult to complete the upgrade by downloading the full version of the package.
2、NB模块一般集成的环境都比较特殊,由人工来完成拆卸升级,或者直接链接起来进行升级,都比较困难。2. The general integration environment of the NB module is quite special. It is difficult to manually disassemble and upgrade, or directly link to upgrade.
下面结合附图对本公开作进一步的描述。The disclosure is further described below in conjunction with the drawings.
参见图1A,为本公开提出了一种窄带物联网升级系统的框图,本公开所述的系统包括云端,以及通过HTTP协议和云端通信的升级工具设备,以及通过COAP协议和云端来传递升级请求的NB模块,NB模块中又集成近距离传输芯片,并且其中有正常系统和备份系统。Referring to FIG. 1A, a block diagram of a narrowband Internet of Things upgrade system is provided in the present disclosure. The system of the present disclosure includes a cloud, an upgrade tool device that communicates through the HTTP protocol and the cloud, and an upgrade request transmitted through the COAP protocol and the cloud. The NB module, the NB module integrates a short-distance transmission chip, and has a normal system and a backup system.
图1B为窄带物联网升级系统中各部分之间通信协议的示意图;如图所示,为了更好的支持在不同环境下的NB模块升级功能,在升级包工具设备和NB模块的通信协议方面采用比较宽泛的定制,即符合低功耗,传输可靠的协议均有可能适用。云端和NB模块之间的传输协议适用COAP协议,现有的下载包方面使用的协议还是HTTP协议,要支持HTTP协议对于有限的 内存和计算能力来说,在很多产品上适应性都不是很强。而采用升级通知和升级下载分开的方式,可以让NB模块不用集成过于强大的协议支持功能。云端和升级包工具设备的通讯可以采用HTTP协议,升级包工具中可以预置升级包,也可以实时从云端下载升级包,增加了灵活性。FIG. 1B is a schematic diagram of a communication protocol between various parts in a narrowband Internet of Things upgrade system; as shown in the figure, in order to better support the NB module upgrade function in different environments, the communication protocol of the upgrade package tool device and the NB module is used. A relatively broad customization, that is, a protocol that is compatible with low power consumption and reliable transmission, may be applicable. The transmission protocol between the cloud and the NB module is applicable to the COAP protocol. The protocol used in the existing download package is also the HTTP protocol. To support the HTTP protocol, the adaptability is not very strong on many products for limited memory and computing power. . The use of upgrade notifications and upgrade downloads separately allows the NB module to not integrate too powerful protocol support. The communication between the cloud and the upgrade package tool device can adopt the HTTP protocol. The upgrade package tool can preset the upgrade package, or download the upgrade package from the cloud in real time, which increases flexibility.
参见图2,本公开提出了一种窄带物联网升级方法,所述方法包括:Referring to FIG. 2, the present disclosure proposes a narrowband Internet of Things upgrade method, the method comprising:
步骤130,NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件;Step 130: The NB module receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module.
步骤140,NB模块根据接收的版本文件进行版本升级。Step 140: The NB module performs version upgrade according to the received version file.
参见图3A,本公开实施例中,在步骤130所述的NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,还包括:Referring to FIG. 3A, in the embodiment of the present disclosure, before the NB module in step 130 receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module, the method further includes:
步骤120,开启近距离传输模块;Step 120: Turn on the short-distance transmission module.
在步骤140所述的NB模块根据接收的版本文件进行版本升级之后,还包括:After the NB module described in step 140 performs version upgrade according to the received version file, the method further includes:
步骤150,关闭近距离传输模块。In step 150, the proximity transmission module is turned off.
其中,近距离传输模块包括近距离传输芯片。The short-distance transmission module includes a short-distance transmission chip.
本公开实施例中,在所述开启近距离传输模块之前,还包括:In the embodiment of the present disclosure, before the opening the proximity transmission module, the method further includes:
步骤110,轮询检查是否有升级请求; Step 110, polling to check whether there is an upgrade request;
在确定为要升级的情况下,执行步骤120所述开启近距离传输模块的步骤。In the case that it is determined to be upgraded, the step of turning on the proximity transmission module is performed as described in step 120.
在步骤120的传输芯片之后,还包括:实现升级工具设备和NB模块之间的匹配;After the transmitting chip of step 120, the method further includes: implementing a matching between the upgrade tool device and the NB module;
参见图3B,为系统中的多方交互图;多方交互过程包括:Referring to FIG. 3B, it is a multi-party interaction diagram in the system; the multi-party interaction process includes:
一部分是工具设备中的搜索功能、匹配功能、传输功能,以及另一部分NB模块中的信号发送业务,NB模块匹配业务,以及NB模块传输业务,具体步骤如下:Part of the search function, matching function, transmission function in the tool device, and signal transmission service in another part of the NB module, NB module matching service, and NB module transmission service, the specific steps are as follows:
步骤210,在有升级请求后,正常系统启动近距离传输芯片到工作状态Step 210, after an upgrade request, the normal system starts the proximity transmission chip to the working state.
步骤220,在NB模块启动近距离传输芯片后,该芯片开始发送心跳广 播信号Step 220: After the NB module starts the proximity transmission chip, the chip starts to send the heartbeat broadcast signal.
步骤230,工具设置此时开启搜索功能进行心跳信号的搜索Step 230, the tool sets the search function to start the heartbeat signal search.
步骤240,搜索到后,根据信号中协议的内容发起匹配请求Step 240, after searching, initiate a matching request according to the content of the protocol in the signal.
步骤250,NB模块中近距离通信芯片,接收匹配请求,再根据携带的匹配字段进行匹配。Step 250: The proximity communication chip in the NB module receives the matching request, and then performs matching according to the carried matching field.
步骤260,如果匹配失败,返回对应的信息,继续发送心跳信号,如果匹配成功,建立连接的链路。In step 260, if the matching fails, the corresponding information is returned, and the heartbeat signal is continuously sent. If the matching is successful, the connected link is established.
步骤270,连接链路建立后,工具设备将版本文件通过该协议进行发送,NB模块中的近距离传输芯片接收对应的版本文件,完成这个包的传递过程。Step 270: After the connection link is established, the tool device sends the version file through the protocol, and the short-distance transmission chip in the NB module receives the corresponding version file, and completes the delivery process of the packet.
步骤280,正常系统接收到该升级包后写到对应分区中。In step 280, the normal system receives the upgrade package and writes it to the corresponding partition.
本公开实施例中,通过近距离的无线传输技术来解决NB带宽不足和布置场景不容易到达的问题,由于对于NB模块来说,集成的环境中对功耗的要求非常严格,这样如果在NB模块中集成近距离传输芯片,首先要解决的就是功耗问题。对此,在该系统中,引入远程启动机制,即默认情况下,NB模块中集成的近距离传输芯片不工作,属于关闭状态,当升级包工具设备要进行升级时,通过携带要升级的设备的唯一性标识来向云端发送升级请求,云端收到请求后,再通过和NB模块之间的协议通道将升级请求发给NB模块,NB模块在收到升级请求时,启动近距离传输芯片,让其达到工作状态。在这种情况下,再通过近距离传输协议使得升级包工具设备和NB模块设备通过匹配来建立连接,完成版本的传输。In the embodiment of the present disclosure, the short-distance wireless transmission technology solves the problem that the NB bandwidth is insufficient and the arrangement scenario is not easily reachable. For the NB module, the power consumption requirement in the integrated environment is very strict, so if the NB is in the NB The integration of the short-distance transmission chip in the module, the first thing to solve is the power consumption problem. In this system, a remote booting mechanism is introduced in the system, that is, by default, the short-distance transmission chip integrated in the NB module does not work, and is in a closed state. When the upgrade package tool device is to be upgraded, the device to be upgraded is carried. The unique identifier sends an upgrade request to the cloud. After receiving the request, the cloud sends an upgrade request to the NB module through the protocol channel between the NB module, and the NB module starts the short-distance transmission chip when receiving the upgrade request. Let it work. In this case, the upgrade package tool device and the NB module device are connected by matching through the short-distance transmission protocol to complete the transmission of the version.
本公开实施例中,在NB模块所在的设备为非死机设备时;In the embodiment of the present disclosure, when the device where the NB module is located is a non-dead device;
步骤130所述的NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件包括:NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中;The receiving, by the NB module, the version file sent by the proximity upgrade tool device by the NB module includes: receiving, by the normal system in the NB module, the version file, and writing the version file to the backup system partition;
步骤140所述的NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;The NB module of step 140 performs version upgrade according to the received version file, including: after writing the version file to the backup system partition, restarting and loading the backup system;
在NB模块所在的设备为死机设备时;When the device where the NB module is located is a dead device;
步骤130所述的NB模块通过近距离传输模块接收近距离升级工具设备 发送的版本文件包括:NB模块中的备份系统接收所述版本文件,并将所述版本文件写入到正常系统分区中;The version file sent by the NB module received by the NB module in the short-distance transmission module by the short-distance transmission module includes: the backup system in the NB module receives the version file, and writes the version file into a normal system partition;
步骤140所述的NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The step of upgrading the NB module according to the received version file includes: after writing the version file to the normal system partition, restarting and loading the normal system.
本公开实施例中,在NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件的过程中,为了保证版本升级的可靠性,增加了备份系统。即先将升级软件传输到备份系统中,设置备份系统启动标志,如果备份系统可以启动成功,再将要升级的系统覆盖到正常系统中,再通过重启完成升级。In the embodiment of the present disclosure, in the process that the NB module receives the version file sent by the proximity upgrade tool device through the short-distance transmission module, the backup system is added to ensure the reliability of the version upgrade. That is, the upgrade software is first transferred to the backup system, and the backup system startup flag is set. If the backup system can be successfully started, the system to be upgraded is overwritten to the normal system, and then the upgrade is completed by restarting.
下面结合具体的实施场景进行说明。The following describes the specific implementation scenarios.
下面结合非死机设备的应用场景描述版本升级过程。The following describes the version upgrade process in conjunction with the application scenario of a non-dead device.
步骤310,每次上电后,SBL(Security Block,安全块)加载正常系统的分区,进而完成正常系统的加载。Step 310: After each power-on, the SBL (Security Block) loads the partition of the normal system, thereby completing the loading of the normal system.
设备出厂时,SBL中启动的分区设置为正常系统的分区。正常系统为用户场景的工作系统,此时备份系统分区不加载,并且此时近距离传输芯片不工作,属于无功耗状态。When the device is shipped from the factory, the partition started in the SBL is set to the partition of the normal system. The normal system is the working system of the user scenario. At this time, the backup system partition is not loaded, and at this time, the short-distance transmission chip does not work, and belongs to a no-power state.
步骤320,正常系统轮询检查是否有升级请求。In step 320, the normal system polls to check if there is an upgrade request.
其中:轮询检查是否有升级请求可以设置为包括三个部分:Where: Polling to check if an upgrade request can be set to include three parts:
第一步,启动应用侧程序,并在其中创建轮询线程;The first step is to launch the application side program and create a polling thread in it;
系统中运行一个应用侧程序,例如该应用侧程序名称为update app,该app首先和云端服务器建立网络连接,并在其中创建一个轮询线程。An application-side program is run in the system. For example, the application-side program name is update app, and the app first establishes a network connection with the cloud server and creates a polling thread therein.
第二步,通过该线程发送协议包给云端服务器,询问是否有升级请求;The second step is to send a protocol packet to the cloud server through the thread to ask whether there is an upgrade request;
在该线程中,组coap协议包,并和云端服务器约定升级标志,比如:UpdateNowFlag,发送协议包给云端服务器,询问是否有升级请求。云端服务器进行响应,如果有协议包UpdateNowFlag置1,如果无协议包UpdateNowFlag置0。In this thread, the group coap protocol package, and the cloud server stipulates the upgrade flag, for example: UpdateNowFlag, sends the protocol packet to the cloud server, and asks whether there is an upgrade request. The cloud server responds if there is a protocol packet UpdateNowFlag set to 1, if no protocol packet UpdateNowFlag is set to 0.
第三步,查询时间间隔,为了省带宽和流量,可以设置为5分钟一次。 每次设备连上网络后,发送一次请求,后续按照对应的时间间隔发送对应请求,在网络端口后,关闭该轮询线程。The third step is to query the time interval. In order to save bandwidth and traffic, you can set it to 5 minutes. Each time the device is connected to the network, a request is sent, and the corresponding request is sent according to the corresponding time interval. After the network port, the polling thread is closed.
步骤330,在要升级的情况下,设置近距离传输芯片为工作状态,开始发送心跳广播数据包;Step 330, in the case of upgrading, setting the short-distance transmission chip to be in an active state, and starting to send a heartbeat broadcast data packet;
NB模块正常系统中的update app收到升级指令后,通过提前定义好的设备节点接口,设置近距离传输芯片为工作状态,近距离传输芯片正式启动。近距离传输芯片启动后,开始发送心跳广播数据包,比如按照NFC,Zigbee等协议类型来进行数据组包。心跳数据为固定时间间隔的数据包,比如我们可以设置为1分钟一个数据包,这样的发送数据包的方式功耗很小,从而使得近距离传输芯片运行在低功耗的工作模式下。After the update app in the normal system of the NB module receives the upgrade command, the short-distance transmission chip is set to work by the device node interface defined in advance, and the short-distance transmission chip is officially started. After the proximity transmission chip is started, it starts to send heartbeat broadcast data packets, for example, according to protocol types such as NFC and Zigbee. The heartbeat data is a fixed time interval data packet. For example, we can set a data packet for 1 minute. This way, the power consumption of the data packet is small, so that the short-distance transmission chip operates in a low-power operation mode.
步骤340,在要升级的情况下,升级工具设备启动搜索和匹配;Step 340, in the case of upgrading, the upgrade tool device initiates searching and matching;
上述启动搜索和匹配包括:The above startup search and matching includes:
第一步,升级工具设备启动搜索功能,即接收广播数据包数据,并且针对提前约到好的使用的协议进行包头数据的解析。In the first step, the upgrade tool device initiates a search function, that is, receives broadcast packet data, and parses the header data for a protocol that is used in advance to a good use.
第二步,解析协议包的内容部分,为了防止恶意更新版本,保证升级的安全性,按照提前约定的加密算法先进行解密操作,该解密算法可以是现有的MD5,也可以是其他程序的加解密算法。The second step is to parse the content part of the protocol package. In order to prevent the malicious update version and ensure the security of the upgrade, the decryption operation is performed according to the encryption algorithm agreed in advance. The decryption algorithm may be the existing MD5 or other programs. Encryption and decryption algorithm.
第三步,解密完成后,解析其中的设备唯一性标识信息。In the third step, after the decryption is completed, the device unique identifier information is parsed.
第四步,查询该设置唯一性标识是否在要升级的升级列表中,如果不是,结束整个升级过程。如果是根据该广播包发出的地址,发送响应请求。The fourth step is to query whether the setting uniqueness identifier is in the upgrade list to be upgraded, and if not, the entire upgrade process is ended. If it is based on the address sent by the broadcast packet, a response request is sent.
升级工具设备可以在匹配成功后,从云端下载版本文件;The upgrade tool device can download the version file from the cloud after the matching is successful;
在另一种方案中,升级工具设备可以在搜索到NB模块发送的广播数据包数据之后,从云端下载版本文件。In another solution, the upgrade tool device may download the version file from the cloud after searching for the broadcast packet data sent by the NB module.
第五步,NB模块收到升级工具设备发送的响应请求后,按照事先约定好的加密算法进行解密操作,并且针对解析的数据进行升级工具设备的认证,认证成功即整个匹配过程完成。In the fifth step, after receiving the response request sent by the upgrade tool device, the NB module performs the decryption operation according to the encryption algorithm agreed in advance, and performs the authentication of the upgrade tool device for the parsed data, and the authentication succeeds, that is, the entire matching process is completed.
步骤350,升级工具设备将版本文件发送给NB模块;并将文件写入到备份系统分区中;Step 350: The upgrade tool device sends the version file to the NB module; and writes the file to the backup system partition;
其中,匹配成功后,升级工具设备将版本文件按照约定的近距离传输协议进行文件的拆分和数据组包,并且采用事先约定好的加密算法进行加密,然后发送到NB模块中,NB模块中正常系统接收升级工具设备发送过来的协议包数据,并且对数据进行解密。考虑到对FLASH(闪存)的占用最小,对于解密好的版本文件,直接按照块的方式,写到备份系统分区中,而不用组成文件后再进行写操作。After the matching is successful, the upgrade tool device splits the file and the data group package according to the agreed short-distance transmission protocol, and encrypts it by using a predetermined encryption algorithm, and then sends the file to the NB module, and the NB module. The normal system receives the protocol packet data sent by the upgrade tool device and decrypts the data. Considering that the FLASH (flash memory) is the least occupied, the decrypted version file is directly written into the backup system partition according to the block mode, and then the file operation is not performed after the file is composed.
步骤360,传输完成后正常系统在SBL启动项中设置备份系统启动标志,并重启设备;Step 360, after the transmission is completed, the normal system sets a backup system startup flag in the SBL startup item, and restarts the device;
步骤370,设备重启后,加载备份系统,Step 370, after the device is restarted, the backup system is loaded.
步骤380,如果可以加载成功,备份系统将其中的内容COPY(拷贝)到正常系统中,并设置正常系统启动标志;重启后加载正常系统。In step 380, if the loading is successful, the backup system COPY (copy) the content to the normal system, and set a normal system startup flag; after the restart, the normal system is loaded.
步骤385,如果备份系统加载不成功,说明升级包有问题,重启,并在重启后重新加载正常系统Step 385, if the backup system is not successfully loaded, the upgrade package has a problem, restart, and reload the normal system after the restart.
步骤390,关闭近距离传输芯片。In step 390, the proximity transmission chip is turned off.
升级工作完成。The upgrade is complete.
下面结合死机设备的应用场景描述版本升级过程。The following describes the version upgrade process in conjunction with the application scenario of the dead device.
步骤410,正常系统死机时设置SBL加载备份系统;Step 410: Set a SBL loading backup system when the normal system crashes;
步骤420,备份系统轮询检查是否有升级请求。In step 420, the backup system polls to check if there is an upgrade request.
其中:轮询检查是否有升级请求可以设置为包括三个部分:Where: Polling to check if an upgrade request can be set to include three parts:
第一步,系统中运行一个应用侧程序,例如该应用侧程序名称为update app,该app首先和云端服务器建立网络连接,并在其中创建一个轮询线程。In the first step, an application-side program is run in the system. For example, the application-side program name is update app, and the app first establishes a network connection with the cloud server and creates a polling thread therein.
第二步,通过该线程发送协议包给云端服务器,询问是否有升级请求;The second step is to send a protocol packet to the cloud server through the thread to ask whether there is an upgrade request;
在该线程中,组coap协议包,并和云端服务器约定升级标志,比如:UpdateNowFlag,发送协议包给云端服务器,询问是否有升级请求。云端服务器进行响应,如果有协议包UpdateNowFlag置1,如果无协议包UpdateNowFlag置0。In this thread, the group coap protocol package, and the cloud server stipulates the upgrade flag, for example: UpdateNowFlag, sends the protocol packet to the cloud server, and asks whether there is an upgrade request. The cloud server responds if there is a protocol packet UpdateNowFlag set to 1, if no protocol packet UpdateNowFlag is set to 0.
第三步,查询时间间隔,为了省带宽和流量,可以设置为5分钟一次。 每次设备连上网络后,发送一次请求,后续按照对应的时间间隔发送对应请求,在网络端口后,关闭该轮询线程The third step is to query the time interval. In order to save bandwidth and traffic, you can set it to 5 minutes. Each time the device is connected to the network, a request is sent, and the corresponding request is sent according to the corresponding time interval. After the network port, the polling thread is closed.
步骤430,在要升级的情况下,设置近距离传输芯片为工作状态,开始发送心跳广播数据包;Step 430, in the case of upgrading, setting the short-distance transmission chip to be in an active state, and starting to send a heartbeat broadcast data packet;
NB模块备份系统中的update app收到升级指令后,通过提前定义好的设备节点接口,设置近距离传输芯片为工作状态,近距离传输芯片正式启动。近距离传输芯片启动后,开始发送心跳广播数据包,比如按照NFC,Zigbee等协议类型来进行数据组包。心跳数据为固定时间间隔的数据包,比如我们可以设置为1分钟一个数据包,这样的发送数据包的方式功耗很小,从而使得近距离传输芯片运行在低功耗的工作模式下。After the update app in the NB module backup system receives the upgrade command, the short-distance transmission chip is set to work by the device node interface defined in advance, and the short-distance transmission chip is officially started. After the proximity transmission chip is started, it starts to send heartbeat broadcast data packets, for example, according to protocol types such as NFC and Zigbee. The heartbeat data is a fixed time interval data packet. For example, we can set a data packet for 1 minute. This way, the power consumption of the data packet is small, so that the short-distance transmission chip operates in a low-power operation mode.
步骤440,在要升级的情况下,升级工具设备启动搜索和匹配;Step 440, in the case of upgrading, the upgrade tool device initiates searching and matching;
上述启动搜索和匹配包括:The above startup search and matching includes:
第一步,升级工具设备启动搜索功能,即接收广播数据包数据,并且针对提前约到好的使用的协议进行包头数据的解析。In the first step, the upgrade tool device initiates a search function, that is, receives broadcast packet data, and parses the header data for a protocol that is used in advance to a good use.
第二步,解析协议包的内容部分,为了防止恶意更新版本,保证升级的安全性,按照提前约定的加密算法先进行解密操作,该解密算法可以是现有的MD5,也可以是其他程序的加解密算法。The second step is to parse the content part of the protocol package. In order to prevent the malicious update version and ensure the security of the upgrade, the decryption operation is performed according to the encryption algorithm agreed in advance. The decryption algorithm may be the existing MD5 or other programs. Encryption and decryption algorithm.
第三步,解密完成后,解析其中的设备唯一性标识信息。In the third step, after the decryption is completed, the device unique identifier information is parsed.
第四步,查询该设置唯一性标识是否在要升级的升级列表中,如果不是,结束整个升级过程。如果是根据该广播包发出的地址,发送响应请求。The fourth step is to query whether the setting uniqueness identifier is in the upgrade list to be upgraded, and if not, the entire upgrade process is ended. If it is based on the address sent by the broadcast packet, a response request is sent.
第五步,NB模块收到升级工具设备发送的响应请求后,按照事先约定好的加密算法进行解密操作,并且针对解析的数据进行升级工具设备的认证,认证成功即整个匹配过程完成。In the fifth step, after receiving the response request sent by the upgrade tool device, the NB module performs the decryption operation according to the encryption algorithm agreed in advance, and performs the authentication of the upgrade tool device for the parsed data, and the authentication succeeds, that is, the entire matching process is completed.
步骤450,升级工具设备将版本文件发送给NB模块;并将版本文件写入到正常系统分区中;Step 450: The upgrade tool device sends the version file to the NB module; and writes the version file to the normal system partition;
匹配成功后,升级工具设备将版本文件按照约定的近距离传输协议进行文件的拆分和数据组包,并且采用事先约定好的加密算法进行加密,然后发送到NB模块中,NB模块中的正常系统接收升级工具设备发送过来的协议 包数据,并且对数据进行解密。考虑到对FLASH的占用最小,对于解密好的版本文件,直接按照块的方式,写到正常系统分区中,而不用组成文件后再进行写操作After the matching is successful, the upgrade tool device splits the file and the data group package according to the agreed short-distance transmission protocol, and encrypts it by using a predetermined encryption algorithm, and then sends it to the NB module, and the NB module is normal. The system receives the protocol packet data sent by the upgrade tool device and decrypts the data. Considering that the FLASH is the least occupied, for the decrypted version file, it is directly written into the normal system partition according to the block mode, and then the file operation is not performed after the file is composed.
步骤460,传输完成后备份系统在启动项中设置启动升级后的正常系统,并重启设备;Step 460, after the transmission is completed, the backup system sets a normal system after starting the upgrade in the startup item, and restarts the device;
步骤470,设备重启后,加载正常系统,Step 470, after the device is restarted, the normal system is loaded.
步骤480,如果可以加载成功,继续运行升级后的正常系统。In step 480, if the loading is successful, continue to run the upgraded normal system.
步骤485,如果正常系统加载不成功,重启后,重新加载备份系统,等待新的升级包请求Step 485, if the normal system is not successfully loaded, after restarting, reload the backup system and wait for a new upgrade package request.
步骤490,关闭近距离传输芯片。In step 490, the proximity transmission chip is turned off.
升级工作完成。The upgrade is complete.
下面结合死机设备的应用场景描述另一个版本升级过程。The following describes the upgrade process of another version in combination with the application scenario of the dead device.
步骤510,正常系统死机时设置SBL加载备份系统Step 510, setting the SBL loading backup system when the normal system crashes.
步骤520,备份系统默认将近距离传输芯片置为工作状态。In step 520, the backup system sets the proximity transmission chip to the working state by default.
步骤530,近距离传输芯片启动后,开始发送心跳广播数据包,比如按照NFC,Zigbee等协议类型来进行数据组包。心跳数据为固定时间间隔的数据包,比如我们可以设置为1分钟一个数据包,这样的化,功耗很小,运行在低功耗的工作模式下Step 530, after the proximity transmission chip is started, start to send a heartbeat broadcast data packet, for example, according to a protocol type such as NFC or Zigbee. The heartbeat data is a fixed time interval packet. For example, we can set a packet for 1 minute. This way, the power consumption is very small, and it runs in a low power mode.
步骤540,在要升级的情况下,升级工具设备启动搜索和匹配;Step 540, in the case of upgrading, the upgrade tool device starts searching and matching;
上述启动搜索和匹配包括:The above startup search and matching includes:
第一步,升级工具设备启动搜索功能,即接收广播数据包数据,并且针对提前约到好的使用的协议进行包头数据的解析。In the first step, the upgrade tool device initiates a search function, that is, receives broadcast packet data, and parses the header data for a protocol that is used in advance to a good use.
第二步,解析协议包的内容部分,为了防止恶意更新版本,保证升级的安全性,按照提前约定的加密算法先进行解密操作,该解密算法可以是现有的MD5,也可以是其他程序的加解密算法。The second step is to parse the content part of the protocol package. In order to prevent the malicious update version and ensure the security of the upgrade, the decryption operation is performed according to the encryption algorithm agreed in advance. The decryption algorithm may be the existing MD5 or other programs. Encryption and decryption algorithm.
第三步,解密完成后,解析其中的设备唯一性标识信息。In the third step, after the decryption is completed, the device unique identifier information is parsed.
第四步,查询该设置唯一性标识是否在要升级的升级列表中,如果不是, 结束整个升级过程。如果是根据该广播包发出的地址,发送响应请求。The fourth step is to query whether the setting uniqueness identifier is in the upgrade list to be upgraded, and if not, the entire upgrade process is ended. If it is based on the address sent by the broadcast packet, a response request is sent.
第五步,NB模块收到升级工具设备发送的请求后,按照事先约定好的加密算法进行解密操作,并且针对解析的数据进行升级工具设备的认证,认证成功即整个匹配过程完成。In the fifth step, after receiving the request sent by the upgrade tool device, the NB module performs the decryption operation according to the encryption algorithm agreed in advance, and performs the authentication of the upgrade tool device for the parsed data, and the authentication succeeds, that is, the entire matching process is completed.
步骤550,升级工具设备将版本文件发送给NB模块;并将版本文件写入到正常系统分区中;Step 550: The upgrade tool device sends the version file to the NB module; and writes the version file to the normal system partition;
匹配成功后,升级工具设备将版本文件按照约定的近距离传输协议进行文件的拆分和数据组包,并且采用事先约定好的加密算法进行加密,然后发送到NB模块中,NB模块中备份系统接收升级工具设备发送过来的协议包数据,并且对数据进行解密。考虑到对FLASH的占用最小,对于解密好的版本文件,直接按照块的方式,写到正常系统分区中,而不用组成文件后再进行写操作After the matching is successful, the upgrade tool device splits the file and the data group package according to the agreed short-distance transmission protocol, and encrypts it by using a predetermined encryption algorithm, and then sends it to the NB module, and the backup system in the NB module. Receive protocol packet data sent by the upgrade tool device and decrypt the data. Considering that the FLASH is the least occupied, for the decrypted version file, it is directly written into the normal system partition according to the block mode, and then the file operation is not performed after the file is composed.
步骤560,传输完成后备份系统在启动项中设置启动升级后的正常系统,并重启设备Step 560, after the transmission is completed, the backup system sets a normal system after starting the upgrade in the startup item, and restarts the device.
步骤570,设备重启后,加载正常系统,Step 570, after the device is restarted, the normal system is loaded.
步骤580,如果可以加载成功,继续运行升级后的正常系统。Step 580, if the loading is successful, continue to run the upgraded normal system.
步骤585,如果正常系统加载不成功,重启后,重新加载备份系统,等待新的升级包请求Step 585, if the normal system is not successfully loaded, after restarting, reload the backup system and wait for a new upgrade package request.
步骤590,关闭近距离传输芯片。In step 590, the proximity transmission chip is turned off.
升级工作完成。The upgrade is complete.
基于与上述实施例相似的构思,本公开实施例还提供一种窄带物联网升级方法,所述方法包括:Based on the concept similar to the above embodiment, the embodiment of the present disclosure further provides a narrowband Internet of Things upgrade method, where the method includes:
升级工具设备通过云端获取版本文件;The upgrade tool device obtains the version file through the cloud;
升级工具设备通过近距离传输技术将获取的版本文件发送给NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The upgrade tool device sends the obtained version file to the NB module through the short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
本公开实施例中,在所述通过云端获取版本文件之前,还包括:In the embodiment of the present disclosure, before the obtaining the version file in the cloud, the method further includes:
检测NB模块发送的心跳广播数据包;Detecting a heartbeat broadcast data packet sent by the NB module;
判断NB模块对应的设备是否在有版本更新需求的设备列表中;Determining whether the device corresponding to the NB module is in the device list with the version update requirement;
在确定为在有版本更新需求的设备列表中的情况下,向所述NB模块发送响应请求。In the case where it is determined to be in the device list having the version update requirement, a response request is sent to the NB module.
参见图5,基于与上述实施例相似的构思,本公开实施例还提供一种窄带物联网升级装置,设置在NB模块中,所述装置包括:Referring to FIG. 5, based on the concept similar to the foregoing embodiment, the embodiment of the present disclosure further provides a narrowband Internet of Things upgrading device, which is disposed in the NB module, and the device includes:
第一传输单元51,设置为通过近距离传输模块接收近距离升级工具设备发送的版本文件;The first transmission unit 51 is configured to receive, by the short-distance transmission module, a version file sent by the proximity upgrade tool device;
升级单元52,设置为根据接收的版本文件进行版本升级。The upgrading unit 52 is configured to perform a version upgrade according to the received version file.
本公开实施例中,所述装置还包括:第一控制单元53;In the embodiment of the present disclosure, the device further includes: a first control unit 53;
所述第一控制单元53设置为在所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,开启近距离传输模块;The first control unit 53 is configured to enable the short-distance transmission module before the NB module receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module;
所述第一控制单元53还设置为在所述NB模块根据接收的版本文件进行版本升级之后,关闭近距离传输模块。The first control unit 53 is further configured to close the proximity transmission module after the NB module performs version upgrade according to the received version file.
本公开实施例中,所述第一控制单元53还设置为在所述开启近距离传输模块之前,轮询检查是否有升级请求;在确定为要升级的情况下,执行所述开启近距离传输模块的步骤。In the embodiment of the present disclosure, the first control unit 53 is further configured to: before the opening the proximity transmission module, polling to check whether there is an upgrade request; and if it is determined to be upgraded, performing the open proximity transmission The steps of the module.
本公开实施例中,在NB模块所在的设备为非死机设备时;In the embodiment of the present disclosure, when the device where the NB module is located is a non-dead device;
所述第一传输单元51通过NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中;The first transmission unit 51 receives the version file through a normal system in the NB module, and writes the version file into a backup system partition;
所述升级单元52根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;The upgrading unit 52 performs version upgrade according to the received version file, including: after writing the version file to the backup system partition, restarting and loading the backup system;
在NB模块所在的设备为死机设备时;When the device where the NB module is located is a dead device;
所述第一传输单元51通过NB模块中的备份系统接收所述版本文件,并将所述版本文件写入到正常系统分区中;The first transmission unit 51 receives the version file through a backup system in the NB module, and writes the version file into a normal system partition;
所述升级单元52根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The upgrading by the upgrading unit 52 according to the received version file includes: restarting and loading the normal system after writing the version file to the normal system partition.
本公开实施例中,所述第一传输单元51还设置为在所述开启近距离传 输模块之后,发送心跳广播数据包;以及,接收升级工具设备发送的响应请求;In the embodiment of the present disclosure, the first transmission unit 51 is further configured to: after the opening the proximity transmission module, send a heartbeat broadcast data packet; and receive a response request sent by the upgrade tool device;
所述第一控制单元53还设置为在接收到响应请求之后,根据预定的加密算法执行解密操作;执行对所述升级工具设备的认证。The first control unit 53 is further arranged to perform a decryption operation according to a predetermined encryption algorithm after receiving the response request; perform authentication of the upgrade tool device.
参见图6,基于与上述实施例相似的构思,本公开实施例还提供一种窄带物联网升级装置,设置在近距离升级工具设备上,所述装置包括:Referring to FIG. 6, based on the concept similar to the above embodiment, the embodiment of the present disclosure further provides a narrowband Internet of Things upgrading device, which is disposed on a proximity upgrade tool device, and the device includes:
文件获取单元61,设置为通过云端获取版本文件;The file obtaining unit 61 is configured to obtain a version file through the cloud;
第二传输单元62,设置为通过近距离传输技术将获取的版本文件发送给NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The second transmission unit 62 is configured to send the obtained version file to the NB module by using a short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
本公开实施例中,所述装置还包括第二控制单元63,设置为在通过云端获取版本文件之前,检测NB模块发送的心跳广播数据包,以及判断所述NB模块对应的设备是否在有版本更新需求的设备列表中;In the embodiment of the present disclosure, the device further includes a second control unit 63, configured to detect a heartbeat broadcast data packet sent by the NB module, and determine whether the device corresponding to the NB module is in a version before acquiring the version file in the cloud. Update the list of required devices;
所述第二传输单元62还设置为当所述第二控制单元63确定NB模块对应的设备在有版本更新需求的设备列表中时,向所述NB模块发送响应请求。The second transmission unit 62 is further configured to send a response request to the NB module when the second control unit 63 determines that the device corresponding to the NB module is in the device list with the version update requirement.
基于与上述实施例相似的构思,本公开实施例还提供一种NB模块,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一在NB模块中执行的窄带物联网升级方法的处理。Based on the concept similar to the above embodiment, an embodiment of the present disclosure further provides an NB module including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing The computer program implements the processing of any of the narrowband Internet of Things upgrade methods performed in the NB module described above.
基于与上述实施例相似的构思,本公开实施例还提供一种近距离升级工具设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一在近距离升级工具中执行的窄带物联网升级方法的处理。Based on the concept similar to the above embodiment, an embodiment of the present disclosure further provides a proximity upgrade tool device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, The processor performs the processing of any of the narrowband IoT upgrade methods performed in the proximity upgrade tool when the processor executes the computer program.
基于与上述实施例相似的构思,本公开实施例还提供一种近距离升级工具系统,所述近距离升级工具系统包括NB模块和近距离升级工具设备,所述NB模块包括上述任一设置在NB模块上的窄带物联网升级装置;所述近距离升级工具设备包括上述任一设置在升级工具设备上的窄带物联网升级装置。Based on the concept similar to the above embodiment, the embodiment of the present disclosure further provides a proximity upgrade tool system, where the proximity upgrade tool system includes an NB module and a proximity upgrade tool device, and the NB module includes any one of the above settings. A narrowband IoT upgrade device on the NB module; the proximity upgrade tool device includes any of the above-mentioned narrowband IoT upgrade devices disposed on the upgrade tool device.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行 指令,所述计算机可执行指令被处理器执行时实现以上描述的任一方法。Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed by a processor, implement any of the methods described above.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本公开的保护范围,在不脱离本公开的发明构思的前提下,本领域技术人员对本公开所做出的任何显而易见的替换和改进等均在本公开的保护范围之内。The embodiments described above are only for the convenience of those skilled in the art, and are not intended to limit the scope of the present disclosure, and those skilled in the art can make the present disclosure without departing from the inventive concept of the present disclosure. Any obvious substitutions and improvements, etc., are within the scope of the present disclosure.
工业实用性Industrial applicability
本公开提供的方案包括:NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件;NB模块根据接收的版本文件进行版本升级。通过本公开的方案,通过近距离的无线传输技术来解决NB带宽不足和布置场景不容易到达的问题,解决了NB网络中升级包大所造成的下载升级文件困 难的问题,并且解决了死机模块的升级功能,能够减少了人员在不同的NB模块集成场景下的升级时间,提高了效率,具有明显的经济效益。The solution provided by the disclosure includes: the NB module receives the version file sent by the proximity upgrade tool device through the short-distance transmission module; and the NB module performs version upgrade according to the received version file. Through the solution of the present disclosure, the short-distance wireless transmission technology solves the problem that the NB bandwidth is insufficient and the arrangement scenario is not easy to reach, solves the problem that the upgrade and upgrade file caused by the upgrade package in the NB network is difficult, and solves the dead module. The upgrade function can reduce the upgrade time of personnel in different NB module integration scenarios, improve efficiency, and has obvious economic benefits.

Claims (19)

  1. 一种窄带物联网升级方法,包括:A narrowband Internet of Things upgrade method includes:
    窄带NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件;The narrowband NB module receives the version file sent by the proximity upgrade tool device by using the short distance transmission module;
    NB模块根据接收的版本文件进行版本升级。The NB module performs version upgrade based on the received version file.
  2. 根据权利要求1所述的窄带物联网升级方法,其中,在所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,还包括:The method of claim 1 , wherein before the NB module receives the version file sent by the proximity upgrade tool device, the NB module further includes:
    开启近距离传输模块;Turn on the proximity transmission module;
    在所述NB模块根据接收的版本文件进行版本升级之后,还包括:After the version upgrade of the NB module according to the received version file, the method further includes:
    关闭近距离传输模块。Turn off the proximity transmission module.
  3. 根据权利要求2所述的窄带物联网升级方法,其中,在所述开启近距离传输模块之前,还包括:The method of claim 2, wherein before the opening the proximity transmission module, the method further comprises:
    轮询检查是否有升级请求;Polling to check if there is an upgrade request;
    当确定有升级请求时,执行所述开启近距离传输模块的步骤。When it is determined that there is an upgrade request, the step of turning on the proximity transmission module is performed.
  4. 根据权利要求1所述的窄带物联网升级方法,其中,The narrowband Internet of Things upgrading method according to claim 1, wherein
    在NB模块所在的设备为非死机设备时,When the device where the NB module is located is a non-dead device,
    所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件包括:NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中,The receiving, by the NB module, the version file sent by the proximity upgrade tool device by the proximity transmission module includes: receiving, by the normal system in the NB module, the version file, and writing the version file to the backup system partition,
    所述NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;Performing the version upgrade according to the received version file by the NB module includes: restarting and loading the backup system after writing the version file to the backup system partition;
    在NB模块所在的设备为死机设备时,When the device where the NB module is located is a dead device,
    所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件包括:NB模块中的备份系统接收所述版本文件,并将所述版本文件写入到正常系统分区中;Receiving, by the NB module, the version file sent by the proximity upgrade tool device by the short-distance transmission module, the backup system in the NB module receiving the version file, and writing the version file to a normal system partition;
    所述NB模块根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The upgrading of the version by the NB module according to the received version file includes: restarting and loading the normal system after writing the version file to the normal system partition.
  5. 根据权利要求2所述的窄带物联网升级方法,其中,在所述开启近距离传输模块之后,还包括:The method of claim 2, wherein after the opening the proximity transmission module, the method further comprises:
    发送心跳广播数据包;Send a heartbeat broadcast packet;
    接收升级工具设备发送的响应请求;Receiving a response request sent by the upgrade tool device;
    在接收到响应请求之后,根据预定的加密算法执行解密操作;After receiving the response request, performing a decryption operation according to a predetermined encryption algorithm;
    执行对所述升级工具设备的认证。Perform authentication of the upgrade tool device.
  6. 一种窄带物联网升级方法,包括:A narrowband Internet of Things upgrade method includes:
    通过云端获取版本文件;Get the version file through the cloud;
    通过近距离传输技术将获取的版本文件发送给窄带NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The obtained version file is sent to the narrowband NB module by the short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
  7. 根据权利要求6所述的窄带物联网升级方法,其中,在所述通过云端获取版本文件之前,还包括:The narrowband internet of things upgrade method of claim 6, wherein before the obtaining the version file by the cloud, the method further comprises:
    检测NB模块发送的心跳广播数据包;Detecting a heartbeat broadcast data packet sent by the NB module;
    判断NB模块对应的设备是否在有版本更新需求的设备列表中;Determining whether the device corresponding to the NB module is in the device list with the version update requirement;
    当确定NB模块对应的设备在有版本更新需求的设备列表中时,向所述NB模块发送响应请求。When it is determined that the device corresponding to the NB module is in the device list having the version update requirement, the response request is sent to the NB module.
  8. 一种窄带物联网升级装置,设置在窄带NB模块中,所述装置包括:A narrowband Internet of Things upgrading device is disposed in a narrowband NB module, the device comprising:
    第一传输单元,设置为通过近距离传输模块接收近距离升级工具设备发送的版本文件;a first transmission unit, configured to receive, by the short-distance transmission module, a version file sent by the proximity upgrade tool device;
    升级单元,设置为根据接收的版本文件进行版本升级。The upgrade unit is set to perform a version upgrade based on the received version file.
  9. 根据权利要求8所述的窄带物联网升级装置,其中,所述装置还包括:第一控制单元;The narrowband internet of things upgrading apparatus according to claim 8, wherein the apparatus further comprises: a first control unit;
    所述第一控制单元设置为在所述NB模块通过近距离传输模块接收近距离升级工具设备发送的版本文件之前,开启近距离传输模块;The first control unit is configured to enable the short-distance transmission module before the NB module receives the version file sent by the proximity upgrade tool device by using the short-distance transmission module;
    所述第一控制单元还设置为在所述NB模块根据接收的版本文件进行版本升级之后,关闭近距离传输模块。The first control unit is further configured to close the proximity transmission module after the NB module performs version upgrade according to the received version file.
  10. 根据权利要求9所述的窄带物联网升级装置,其中,所述第一控制单元还设置为在开启近距离传输模块之前,轮询检查是否有升级请求;当确定有升级请求时,开启近距离传输模块。The narrowband internet of things upgrading apparatus according to claim 9, wherein the first control unit is further configured to poll whether to check whether there is an upgrade request before turning on the proximity transmission module; when determining that there is an upgrade request, turn on the close distance Transmission module.
  11. 根据权利要求8所述的窄带物联网升级装置,其中,The narrowband internet of things upgrading apparatus according to claim 8, wherein
    在NB模块所在的设备为非死机设备时;When the device where the NB module is located is a non-dead device;
    所述第一传输单元通过NB模块中的正常系统接收所述版本文件,并将所述版本文件写入到备份系统分区中;The first transmission unit receives the version file through a normal system in the NB module, and writes the version file into a backup system partition;
    所述升级单元根据接收的版本文件进行版本升级包括:在将所述版本文件写入到备份系统分区之后,重启并加载备份系统;Performing the version upgrade according to the received version file by the upgrading unit includes: restarting and loading the backup system after writing the version file to the backup system partition;
    在NB模块所在的设备为死机设备时;When the device where the NB module is located is a dead device;
    所述第一传输单元通过NB模块中的备份系统接收所述版本文件,并将所述版本文件写入到正常系统分区中;The first transmission unit receives the version file through a backup system in the NB module, and writes the version file into a normal system partition;
    所述升级单元根据接收的版本文件进行版本升级包括:在将所述版本文件写入到正常系统分区之后,重启并加载正常系统。The upgrading of the version by the upgrading unit according to the received version file includes: restarting and loading the normal system after writing the version file to the normal system partition.
  12. 根据权利要求9所述的窄带物联网升级装置,其中,所述第一传输单元还设置为在开启近距离传输模块之后,发送心跳广播数据包;以及,接收升级工具设备发送的响应请求;The narrowband Internet of things upgrading apparatus according to claim 9, wherein the first transmission unit is further configured to: send a heartbeat broadcast data packet after the proximity transmission module is turned on; and receive a response request sent by the upgrade tool device;
    所述第一控制单元还设置为在接收到响应请求之后,根据预定的加密算法执行解密操作;执行对所述升级工具设备的认证。The first control unit is further configured to perform a decryption operation according to a predetermined encryption algorithm after receiving the response request; perform authentication of the upgrade tool device.
  13. 一种窄带物联网升级装置,设置在近距离升级工具设备上,所述装置包括:A narrowband Internet of Things upgrading device is disposed on a proximity upgrade tool device, the device comprising:
    文件获取单元,设置为通过云端获取版本文件;a file obtaining unit, configured to obtain a version file through the cloud;
    第二传输单元,设置为通过近距离传输技术将获取的版本文件发送给窄带NB模块,以使所述NB模块根据接收的版本文件进行版本升级。The second transmission unit is configured to send the obtained version file to the narrowband NB module by using a short-distance transmission technology, so that the NB module performs version upgrade according to the received version file.
  14. 根据权利要求13所述的窄带物联网升级装置,其中,所述装置还 包括第二控制单元,设置为在通过云端获取版本文件之前,检测NB模块发送的心跳广播数据包,以及判断所述NB模块对应的设备是否在有版本更新需求的设备列表中;The narrowband internet of things upgrading apparatus according to claim 13, wherein the apparatus further comprises a second control unit configured to detect a heartbeat broadcast data packet sent by the NB module and determine the NB before acquiring the version file through the cloud Whether the device corresponding to the module is in the device list with the version update requirement;
    所述第二传输单元还设置为当所述第二控制单元确定NB模块对应的设备在有版本更新需求的设备列表中时,向所述NB模块发送响应请求。The second transmission unit is further configured to: when the second control unit determines that the device corresponding to the NB module is in the device list with the version update requirement, send a response request to the NB module.
  15. 一种窄带NB模块,包括存储器、处理器及存储在所述存储器上并在所述处理器上可运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至5中任一权项所述的方法的处理。A narrowband NB module comprising a memory, a processor, and a computer program stored on the processor and operative on the processor, wherein the processor executes the computer program as claimed in claims 1 to 5 Process of the method of any of the preceding claims.
  16. 一种近距离升级工具设备,包括存储器、处理器及存储在所述存储器上并在所述处理器上可运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求6至7中任一权项所述的方法的处理。A proximity upgrade tool device comprising a memory, a processor, and a computer program stored on the processor and executable on the processor, wherein the processor executes the computer program as claimed in claim 6 Process of the method of any of the preceding claims.
  17. 一种近距离升级工具系统,其中,所述近距离升级工具系统包括窄带NB模块和近距离升级工具设备,所述NB模块包括权利要求8至12中任一权项所述的窄带物联网升级装置;所述近距离升级工具设备包括权利要求13至14中任一权项所述的窄带物联网升级装置。A proximity upgrade tool system, wherein the proximity upgrade tool system comprises a narrowband NB module and a proximity upgrade tool device, the NB module comprising the narrowband IoT upgrade according to any one of claims 8 to 12. The device includes: the narrow-band IoT upgrade device of any one of claims 13 to 14.
  18. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1-5中任一项所述的方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of any of claims 1-5.
  19. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求6-7中任一项所述的方法。A computer readable storage medium storing computer executable instructions that, when executed by a processor, implement the method of any one of claims 6-7.
PCT/CN2018/082222 2017-09-05 2018-04-08 Method and apparatus for upgrading narrowband internet of things and system WO2019047519A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710790466.X 2017-09-05
CN201710790466.XA CN109429205A (en) 2017-09-05 2017-09-05 A kind of narrowband Internet of Things upgrade method and device and system

Publications (1)

Publication Number Publication Date
WO2019047519A1 true WO2019047519A1 (en) 2019-03-14

Family

ID=65514097

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082222 WO2019047519A1 (en) 2017-09-05 2018-04-08 Method and apparatus for upgrading narrowband internet of things and system

Country Status (2)

Country Link
CN (1) CN109429205A (en)
WO (1) WO2019047519A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306514A (en) * 2019-07-24 2021-02-02 深圳市有方科技股份有限公司 Firmware upgrading method based on narrowband Internet of things, terminal equipment and computer readable storage medium
CN110809262B (en) * 2019-11-08 2023-09-01 杭州海兴电力科技股份有限公司 COAP protocol-based operation and maintenance management method for Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547799A (en) * 2010-12-22 2012-07-04 江苏联优信息科技有限公司 Firmware management method of wireless sensing access multiplexing device
GB2541649A (en) * 2015-08-21 2017-03-01 Senseye Ltd User feedback for machine learning
US20170187807A1 (en) * 2015-12-28 2017-06-29 Verizon Patent And Licensing Inc. Internet of things provisioning
CN107040404A (en) * 2017-03-06 2017-08-11 上海斐讯数据通信技术有限公司 A kind of Internet of product firmware update and its system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144466A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Access method for sensor in Internet of Things, Internet of Things system and server
US20170147320A1 (en) * 2015-04-23 2017-05-25 Telefonaktiebolaget Lm Ericsson (Publ) A network node, a device and methods therein for determining interoperability of software with the device
CN107104839A (en) * 2017-05-19 2017-08-29 京信通信技术(广州)有限公司 Firmware upgrade method, device, server, Internet of things system and RF tag

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547799A (en) * 2010-12-22 2012-07-04 江苏联优信息科技有限公司 Firmware management method of wireless sensing access multiplexing device
GB2541649A (en) * 2015-08-21 2017-03-01 Senseye Ltd User feedback for machine learning
US20170187807A1 (en) * 2015-12-28 2017-06-29 Verizon Patent And Licensing Inc. Internet of things provisioning
CN107040404A (en) * 2017-03-06 2017-08-11 上海斐讯数据通信技术有限公司 A kind of Internet of product firmware update and its system

Also Published As

Publication number Publication date
CN109429205A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
WO2016058366A1 (en) Smart home appliance control method and home control center
US10372923B2 (en) System and method for controlling the power states of a mobile computing device
KR20150119056A (en) Pervasive service providing device-specific updates
US10813169B2 (en) Mesh network deployment kit
US11115081B2 (en) Routing method for multiple security elements, NFC controller and NFC device
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
KR20190035076A (en) Method for registration of internet of things deivce and the appratus thereof
US20170041360A1 (en) Status monitoring of unconnected wireless broadcast devices
US20240267242A1 (en) Device identification and policy enforcement using power over ethernet (poe)
US20220086622A1 (en) Portable secure elements for subscription manager roles
KR20190084110A (en) Installation of profiles in the embedded subscriber identity module
US20230180007A1 (en) Electronic device and method for electronic device to provide ranging-based service
CN111459524A (en) Software upgrading method, device and system
WO2019047519A1 (en) Method and apparatus for upgrading narrowband internet of things and system
WO2019188677A1 (en) Communication system, communication module, server, control method and control program
CN116846681B (en) Device connection method, electronic device, and computer-readable storage medium
AU2020258279B2 (en) System and method for control policy retention
CN113946354A (en) Software upgrading method and device, storage medium and electronic device
CN108901057B (en) Method, apparatus and medium for establishing wireless connection
JP6716726B2 (en) Method and apparatus for applications to receive information
CN112055400B (en) Electronic device and system for electronic device
US12137348B2 (en) Method and apparatus by which electronic device performs secure ranging
US20230262467A1 (en) Method and apparatus by which electronic device performs secure ranging
KR102725637B1 (en) Method for internet of things communication and an electronic device thereof
KR20140067939A (en) Method for routing a message

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18853774

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18853774

Country of ref document: EP

Kind code of ref document: A1