CN110855463A - Method, device and equipment for upgrading aerial firmware and computer readable medium - Google Patents

Method, device and equipment for upgrading aerial firmware and computer readable medium Download PDF

Info

Publication number
CN110855463A
CN110855463A CN201810954031.9A CN201810954031A CN110855463A CN 110855463 A CN110855463 A CN 110855463A CN 201810954031 A CN201810954031 A CN 201810954031A CN 110855463 A CN110855463 A CN 110855463A
Authority
CN
China
Prior art keywords
lpwan
terminal
environment
firmware upgrade
air
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810954031.9A
Other languages
Chinese (zh)
Other versions
CN110855463B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810954031.9A priority Critical patent/CN110855463B/en
Publication of CN110855463A publication Critical patent/CN110855463A/en
Application granted granted Critical
Publication of CN110855463B publication Critical patent/CN110855463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0219Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave where the power saving management affects multiple terminals
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the disclosure provides an air firmware upgrading method, an air firmware upgrading device, air firmware upgrading equipment and a computer readable medium, and relates to the field of terminals, wherein the method comprises the following steps: during the firmware upgrading starting period, acquiring the current network quality index of the LPWAN environment where the low-power-consumption wide area network LPWAN terminal suitable for the firmware upgrading in the air is located; determining whether the LPWAN environment is suitable for over-the-air firmware upgrade according to the current network quality index of the LPWAN environment where the LPWAN terminal is located; and if the LPWAN environment is determined to be suitable for the air firmware upgrading, performing air firmware upgrading processing on the LPWAN terminal.

Description

Method, device and equipment for upgrading aerial firmware and computer readable medium
Technical Field
The present disclosure relates to, but not limited to, the field of terminals, and in particular, to an over-the-air firmware upgrade method, apparatus, device, and computer readable medium.
Background
The Low Power consumption Wide Area Network (LPWAN) comprises NB-IOT (narrow band-Internet Of Things), LTE CAT-M (Internet Of Things based on long term evolution technology), LoRa (ultra-long distance wireless transmission Network based on spread spectrum technology), SigFox (Internet Of Things terminal special wireless Network based on ultra-narrow band technology) and other technologies, and has the characteristics Of strong coverage, Low cost, small Power consumption and large connection. Due to The fact that The internet of things terminal upgrading system is designed to be connected with a large number of internet of things terminals, The internet of things terminals are generally upgraded in a Firmware Over The Air (FOTA) mode.
Compared with the traditional FOTA network communication mode based on TCP (Transmission Control Protocol), the FOTA upgrading mode of LWM2M (light Machine-to-Machine Protocol) appears in the low-power-consumption wide area network at present, the LWM2M is based on UDP (User Datagram Protocol) and COAP (Constrained Application Protocol) Protocol, the characteristic of general low-power-consumption connection of LPWAN is considered, and the FOTA upgrading mode is an improvement for FOTA upgrading under the LPWAN network.
The LPWAN Internet of things terminal is generally a terminal with a battery, the service life of the terminal is generally 5-10 years according to the design of a service model of the LPWAN, and the battery needs to be replaced after the service life is over. Therefore, the service of the terminal needs to save electricity as much as possible, so that the terminal of the internet of things can achieve the designed service life target. The FOTA service includes the processes of searching, downloading and installing the upgrade package, which is a significant test for the service life of the battery, and no matter the traditional FOTA or LWM2M FOTA does not consider the communication and transmission quality of the LPWAN network in the actual environment, which causes a large amount of power consumption in the actual LPWAN service scene and reduces the service life of the internet of things terminal.
Disclosure of Invention
The method, the device, the equipment and the computer readable medium for upgrading the aerial firmware solve the problem of large power consumption of the Internet of things terminal caused by poor communication and transmission quality during the aerial firmware upgrading.
According to the method for upgrading the firmware over the air provided by the embodiment of the disclosure, the method comprises the following steps:
acquiring a current network quality index of an LPWAN environment where an LPWAN terminal suitable for air firmware upgrading is located;
determining whether the LPWAN environment is suitable for over-the-air firmware upgrade according to the current network quality index of the LPWAN environment where the LPWAN terminal is located;
and if the LPWAN environment is determined to be suitable for the air firmware upgrading, performing air firmware upgrading processing on the LPWAN terminal.
According to the firmware upgrading device over the air provided by the embodiment of the disclosure, the device comprises:
the acquisition module is used for acquiring the current network quality index of the LPWAN environment where the low-power-consumption wide area network LPWAN terminal suitable for air firmware upgrading is located;
the determining module is used for determining whether the LPWAN environment is suitable for over-the-air firmware upgrading according to the current network quality index of the LPWAN environment where the LPWAN terminal is located;
and the upgrading module is used for carrying out air firmware upgrading treatment on the LPWAN terminal if the LPWAN environment is determined to be suitable for air firmware upgrading.
According to the firmware upgrading equipment in the air provided by the embodiment of the disclosure, the equipment comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the above-described over-the-air firmware upgrade method.
According to an embodiment of the present disclosure, a computer readable medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the above-mentioned over-the-air firmware upgrade method.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
according to the embodiment of the invention, the FOTA upgrading is combined with the actual conditions of the environment (such as weak signal strength, poor signal-to-noise ratio, low bandwidth and the like) and/or the state (such as working mode, working period and the like) of the terminal of the Internet of things (or LPWAN terminal) under the LPWAN, the FOTA upgrading is carried out dynamically and adaptively, the battery power of the terminal of the Internet of things (or LPWAN terminal) can be effectively saved, and the service life of the terminal of the Internet of things (or LPWAN terminal) is prolonged.
Drawings
Fig. 1 is a flowchart illustrating an over-the-air firmware upgrading method according to an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of an LPWAN networking environment provided by embodiments of the present disclosure;
fig. 3 is a schematic structural diagram of an LPWAN adaptive FOTA upgraded internet of things terminal provided in the embodiment of the present disclosure;
fig. 4 is a schematic view of a switching operation mode of an internet of things terminal under the LPWAN provided by the embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a process of searching for packages and downloading for adaptive FOTA upgrade under LPWAN according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating an installation flow of an adaptive FOTA upgrade under an LPWAN provided by an embodiment of the present disclosure;
FIG. 7 is a schematic block diagram of an over-the-air firmware upgrade apparatus provided by an embodiment of the present disclosure;
fig. 8 is a schematic block diagram of an over-the-air firmware upgrade apparatus provided by an embodiment of the present disclosure.
Detailed Description
The following detailed description of the preferred embodiments of the present disclosure is provided in conjunction with the accompanying drawings, and it is to be understood that the embodiments described below are merely intended to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
The embodiment of the disclosure is suitable for an internet of things terminal (or an LPWAN terminal) in an LPWAN network environment, and the terminal can communicate with an FOTA server in a cloud end through a base station (or an LPWAN base station) supporting an LPWAN protocol so as to search and download a firmware upgrade package and upgrade firmware.
Fig. 1 is a schematic flowchart of an over-the-air firmware upgrading method provided by an embodiment of the present disclosure, and as shown in fig. 1, the method may include:
step S101: and acquiring the current network quality index of the LPWAN environment where the LPWAN terminal suitable for the air firmware upgrading is located.
Before executing step S101, it is first determined whether the LPWAN terminal is suitable for over-the-air firmware upgrade, that is, whether the LPWAN terminal is suitable for over-the-air firmware upgrade according to a traffic model of the LPWAN terminal. In specific implementation, according to a service model of the LPWAN terminal, determining that the LPWAN terminal is in an operating mode or a non-operating state, if the LPWAN terminal is determined to be in the operating mode, determining that the LPWAN terminal is an LPWAN terminal suitable for air firmware upgrade, and if the LPWAN terminal is determined to be in the non-operating mode, determining that the LPWAN terminal is an LPWAN terminal not suitable for air firmware upgrade.
The current network quality index is an index related to the current network transmission delay and rate, and comprises at least one of current signal strength, signal-to-noise ratio and network transmission bandwidth.
Step S102: and determining whether the LPWAN environment is suitable for over-the-air firmware upgrade according to the current network quality index of the LPWAN environment in which the LPWAN terminal is positioned.
And if the current network quality index reaches or exceeds a preset index threshold, determining that the LPWAN environment is suitable for air firmware upgrading. The current network quality index may be one or a combination of multiple indexes. The preset index threshold may be configured and issued by the FOTA server, or may be locally configured by the LPWAN terminal.
Step S103: and if the LPWAN environment is determined to be suitable for the air firmware upgrading, performing air firmware upgrading processing on the LPWAN terminal.
And if the LPWAN environment is determined to be suitable for the firmware upgrade in the air, searching and downloading a firmware upgrade package, and after the firmware upgrade package is downloaded, installing the firmware upgrade package if the LPWAN terminal in the working mode finishes the service of the current service period.
It should be noted that, during the searching and downloading of the firmware upgrade package, if the LPWAN terminal is shifted from the operating mode to the non-operating mode (i.e., is in the non-operating mode) or the LPWAN environment is not suitable for the over-the-air firmware upgrade, the searching and downloading of the firmware upgrade package is stopped. Namely, the firmware upgrade package is searched and downloaded only under the condition that the working mode is adopted and the current network quality index reaches the standard.
It should be noted that, during installation of the firmware upgrade package, if the LPWAN terminal is moved from the operating mode to the non-operating mode (i.e., is in the non-operating mode), or the LPWAN terminal is in the operating mode and the service of the current service cycle is not completed, the installation of the firmware upgrade package is stopped. Namely, the firmware upgrade package is only installed in the working mode and the current service cycle service is completed.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium.
Fig. 2 is a schematic diagram of an LPWAN network environment provided in the embodiment of the present disclosure, as shown in fig. 2, in the LPWAN network environment, a terminal of the internet of things (or an LPWAN terminal) collects data, and communicates with a service server through a cloud end by using a base station (or an LPWAN base station) supporting an LPWAN protocol. The firmware upgrading method comprises the steps that a firmware upgrading package of the terminal (or the LPWAN terminal) of the Internet of things is deployed in an FOTA server, the terminal (or the LPWAN terminal) of the Internet of things searches for the package and downloads the package from the FOTA server, and the firmware upgrading is completed after the firmware upgrading package is downloaded to the local. The service server and the FOTA server may be different servers or may be implemented on the same server.
Fig. 3 is a schematic structural diagram of an internet of things terminal (or LPWAN terminal) for LPWAN adaptive FOTA upgrade provided in an embodiment of the present disclosure, as shown in fig. 3, the internet of things terminal (or LPWAN terminal) includes 3 main modules in a FOTA service portion: the FOTA search and download module 51, the FOTA installation module 52 and the FOTA upgrade main control module (i.e. LPWAN FOTA main control module) 53.
The FOTA upgrade main control module 53 is a key module of the adaptive FOTA upgrade apparatus under the LPWAN, and determines whether to perform FOTA upgrade by detecting signal strength, signal-to-noise ratio, communication bandwidth (i.e., determining whether the LPWAN environment is suitable for firmware upgrade over the air) and/or an operation mode of the internet of things terminal (or LPWAN terminal) (i.e., determining whether the LPWAN terminal is suitable for firmware upgrade over the air) included in the current LPWAN environment. The FOTA upgrade main control module 53 communicates with the FOTA packet searching and downloading module 51 and the FOTA installation module 52, and controls the behaviors of the two modules.
The FOTA packet searching and downloading module 51 communicates with the FOTA server storing the firmware upgrade packet, completes packet searching and downloading of the over-the-air firmware upgrade packet, and stores the packet to the internet of things terminal (or LPWAN terminal).
The FOTA installation module 52 performs firmware local installation and update actions of FOTA.
Fig. 5 is a schematic diagram of a package searching and downloading process of adaptive FOTA upgrade under LPWAN according to an embodiment of the present disclosure, and as shown in fig. 5, the process may include the following steps:
step 701: and the server or the terminal initiates an upgrading process.
The FOTA upgrade can be initiated by the server or the device itself.
Step 702: the LPWAN FOTA upgrade main control module 53 is started.
When the FOTA upgrade is started, the device starts the LPWAN FOTA upgrade main control module 53 for managing and controlling the flow of FOTA upgrade in the LPWAN network.
The FOTA upgrade main control module 53 configures an index threshold of the LPWAN network environment where the FOTA upgrade process is located, where the index threshold may be one or a combination of some indexes, such as one or more of current signal strength, signal-to-noise ratio, and network transmission bandwidth.
The configuration of the index threshold is through a configuration file or other modes, a user can dynamically modify the configuration, and the configuration file can be issued through a server or locally dynamically modified.
The indicator threshold is used for describing the communication and transmission quality of the current LPWAN network, and when the indicator threshold is lower than the value, it indicates that the LPWAN environment where the terminal is located is not suitable for air firmware upgrade, that is, the network transmission quality where the terminal is located is poor, data transmission delay is high, and battery power consumption of the terminal is obviously increased. The FOTA packet searching and downloading upgrading operation needs to be stopped under the threshold.
Step 703: the FOTA upgrade master control module 53 determines whether the terminal is suitable for over-the-air firmware upgrade, if yes, step 704 is performed, otherwise, step 703 is performed.
The FOTA upgrade main control module 53 determines whether the terminal is in a working mode according to the service model of the terminal, if so, determines that the terminal is suitable for the air firmware upgrade, that is, the terminal is suitable for the air firmware upgrade, otherwise, determines that the terminal is not suitable for the air firmware upgrade, that is, the terminal is not suitable for the air firmware upgrade. That is to say, the LPWAN FOTA upgrade main control module 53 needs to determine the current working mode of the LPWAN terminal, fig. 4 is a schematic diagram illustrating a working mode conversion of the terminal of the internet of things under the LPWAN according to the embodiment of the present disclosure, and as shown in fig. 4, the terminal of the internet of things under the LPWAN determines the current working mode according to the set service model. For example, in the report of data read by a water meter in an NBIOT network, a common working service model is to report data once every 24 hours, a service Mode of the water meter is a reported time, for example, 10 minutes, a Mode of the terminal in the period of time is a working Mode (Work Mode), and the water meter is in a Sleep Mode (Sleep Mode) at the rest of the time. The LPWAN FOTA upgrade main control module 53 detects whether the current terminal is in a working mode, performs FOTA operation if the current terminal is in the working mode, and does not perform FOTA flow if the current terminal is in a sleep mode.
It should be noted that, in the stage of searching and downloading the package, the apparatus and method may utilize the service operating mode of the LPWAN terminal to perform the corresponding FOTA upgrade package searching and downloading process in the operating mode.
Step 704: the FOTA upgrade master control module 53 determines whether the LPWAN environment in which the terminal is located is suitable for over-the-air firmware upgrade, if yes, step 705 is performed, otherwise step 703 is performed.
When the terminal is in the working mode, the current network quality index is obtained, the actually obtained data of the LPWAN network is compared with the threshold (i.e. the threshold set in step 702) configured and set in the FOTA upgrade main control module 53, when the threshold is higher than the threshold, the current network environment is suitable for the air firmware upgrade, and at this time, the package search and download operation of the FOTA is started. When the current network environment is lower than the threshold, the current network environment is not suitable for the air firmware upgrading, and the packet searching and upgrading operation of the FOTA is not carried out at the moment, so that the phenomenon that the battery power of the terminal is excessively consumed, and the working life of the terminal is sharply reduced is prevented. The quality indexes of the current network environment can be signal strength, signal to noise ratio, current network data transmission bandwidth and any other indexes related to network transmission delay and rate, the indexes are related to the rate and delay of data transmission, the low data transmission rate can prolong the FOTA upgrade time of the terminal under the LPWAN network, increase the battery power of the terminal, and therefore the service life of the terminal is shortened. The detection of the threshold may be compared and judged according to one or a combination of several.
Step 705: the FOTA search and download module 51 is notified to start searching for a package.
When the obtained indexes of the network, such as the signal strength, the signal-to-noise ratio, the current transmission network threshold and the like, meet the configured threshold requirements, it indicates that the current network environment is suitable for the air firmware upgrade, the air firmware upgrade processing can be performed on the terminal, at this time, the FOTA packet searching and downloading module 51 is notified to work, and the packet searching process is started first.
Step 706: after the FOTA upgrade package is searched, the FOTA upgrade package is downloaded, and the FOTA upgrade package is downloaded to an upgrade package storage area in the device.
It should be noted that, because the index parameter of the network is dynamic and may change, in the packet searching and downloading process of FOTA upgrade, the LPWAN FOTA upgrade main control module 53 needs to detect the dynamically changing index at regular time, and if the dynamically changing index is lower than the threshold index required by FOTA upgrade, the FOTA upgrade is stopped. And if the index is recovered to be above the threshold, continuing the FOTA packet searching and downloading process, and stopping and recovering actions can set a time threshold, and if the index is reduced or the recovery time is longer than the time threshold, starting corresponding operations, so that the FOTA upgrading actions are prevented from being stopped and started too frequently due to the jitter of the network threshold index.
It should be noted that, during the searching and downloading of the firmware upgrade package, if the LPWAN terminal is shifted from the operating mode to the non-operating mode (i.e., the LPWAN terminal is a terminal unsuitable for over-the-air firmware upgrade at this time) or the network environment is unsuitable for over-the-air firmware upgrade, the searching and downloading of the firmware upgrade package is stopped. That is, the packet searching and downloading process of the FOTA upgrade packet is within the time period of the working mode of the LPWAN terminal, when the LPWAN is switched to the working mode and needs to be switched to the sleep mode at that time, the current packet searching and downloading process is stored in the current working state and is suspended, and the current packet searching and downloading process is continued when the LPWAN terminal enters the working mode next time. The obtained real-time LPWAN network parameters and the set index threshold still need to be detected according to the flow when FOTA upgrade packet searching or downloading is performed next time.
Step 707: and completing upgrading by the FOTA upgrading package.
It should be noted that, when the download of the FOTA upgrade package is completed, the download completion flag is set, and the lpwan ota installation module 52 is notified to perform detection.
Fig. 6 is a schematic diagram of an installation process of an adaptive FOTA upgrade in an LPWAN network, where as shown in fig. 6, the process may include the following steps:
step 801: the FOTA install module 52 determines whether the download of the FOTA upgrade package is completed, if so, executes step 802, otherwise, repeats the step.
The FOTA install module 52 of the present apparatus checks the flag indicating that the download of the FOTA upgrade package is completed, and confirms that the download of the FOTA upgrade package is completed.
Step 802: determining whether the LPWAN terminal in the working mode has completed the service of the current service period (i.e. the LPWAN terminal is not currently doing the service), if yes, executing step 803, otherwise, repeating the step.
The method comprises the steps that the current LPWAN terminal is in a working mode, after the service of the service period is completed, before the current LPWAN terminal enters a dormant mode, FOTA installation work is started, after the FOTA installation is completed, the device enters dormancy or carries out next service according to the service period, and service reporting which does not affect the LPWAN terminal is carried out to the maximum extent.
It should be noted that, during installation of the firmware upgrade package, if the LPWAN terminal is moved from an operating mode to a non-operating mode (i.e., is in a non-operating mode, such as a sleep mode), or the LPWAN terminal is in an operating mode and the traffic of the current traffic cycle is not completed, the installation of the firmware upgrade package is stopped.
Step 803: completing the FOTA firmware upgrade of the LPWAN terminal.
In the existing FOTA upgrading technology, the FOTA upgrading method of the LWM2M is an upgrading mode applied to an LPWAN network, and the FOTA upgrading is performed by using a UDP-based COAP upgrading packet mode in the method for obtaining the upgrading packet. At present, the LWM2M FOTA technology does not consider some characteristics of the actual operating environment of the LPWAN network, so that a large amount of battery power of LPWAN equipment is consumed in the LWM2M FOTA upgrading process, and the design service life of the equipment is greatly reduced. Namely, LWM2M FOTA is a current Internet of things terminal FOTA upgrade, but brings a large power consumption influence under the condition of dynamic change of a network environment, and the upgrading mode is not associated with an actual business working model. In one embodiment, because the network signal strength of the environment where the terminal of the internet of things works is poor, interference exists between signals among the terminals when the terminals are on the network simultaneously, the signal-to-noise ratio is low, and the like, considering that the signal strength difference of the terminal of the internet of things in the LPWAN network and interference data among the signals can cause great delay in sending and receiving data, the actual downloading rate is far less than the theoretical rate, and the FOTA upgrade package searching time and the upgrade package downloading time are long, the device and the method provided by the embodiment of the disclosure can detect the current network condition of the LPWAN on the basis of the existing FOTA technology, including network indexes such as the current signal strength, interference and bandwidth. And executing the FOTA process when the signal intensity, the signal-to-noise ratio and the bandwidth reach preset thresholds, and not performing FOTA upgrading operation when the signal intensity, the signal-to-noise ratio and the bandwidth are lower than the thresholds. Specifically, the package search and upgrade of FOTA upgrade are related to indexes of the LPWAN network, FOTA upgrade is executed when the network indexes are good (larger than a set threshold), and FOTA upgrade is not executed when the indexes are not good. For example, the signal strength (RSRP), the signal-to-noise ratio (SINR), and the network download rate, if the RSRP, the network download rate is higher than a certain threshold, the upgrade procedure is executed, and if the RSRP, the network download rate is lower than the certain threshold, the upgrade procedure is stopped. In another embodiment, considering the working period of the terminal service model, a large amount of time is in a dormant state or a shutdown state, and a small amount of time is in a working state, for example, data is reported once a day by a typical NB-IOT water meter reading service. The FOTA upgrading scheme of the embodiment of the disclosure is combined with the working mode of the service of the LPWAN, when the service is in the working mode, the FOTA upgrading process is performed, and when the service is in the dormant mode, the FOTA process is not performed, so that the power consumption is saved to the maximum extent. Specifically, after FOTA upgrade is started, according to the working mode and the service cycle of the LPWAN terminal, FOTA packet search and download are performed only when the terminal is in the working mode and performs networking service, and the terminal does not perform FOTA packet search and download in a non-working mode outside the service period alone. For example, NBIOT water meter needs to report meter reading data once in 24 hours, and the time for reporting data in each networking process is about 10 minutes. The service period of the water meter is 24 hours, the working mode time is 10 minutes, the rest time is a sleep mode, after the FOTA upgrading is started, the device detects whether the network index meets the upgrading condition according to the working mode of the service period in 10 minutes, and searches for the package and downloads after the network index meets the upgrading condition, and the sleep mode does not search for the package and downloads for the FOTA. The service model of the NB-IOT water meter reading is a typical case, and the actual service period can be configured differently. It should be noted that the FOTA installation is completed after the service reporting, and the FOTA installation does not affect the normal service reporting process basically. In the example of the water meter, the FOTA can be installed after the reporting of the working mode of the water meter is completed, and the normal reporting of the meter reading data of the water meter cannot be influenced by the device and the method.
Generally, the main function of the LPWAN is to complete data collection and reporting, and the design goal is to shorten the service time as much as possible, and most of the time is in a dormant state, so that the service life of the battery can be kept longer. Based on the goal, the power consumption brought by the FOTA service is reduced as much as possible, and the reporting of the service is not influenced as much as possible. The embodiment of the disclosure searches and downloads the FOTA upgrade package according to the working mode and the service period of the LPWAN terminal, and does not consume extra electric quantity. When packet searching and downloading are started, the index of the current network can be dynamically detected, and when the index is lower than a threshold, the FOTA packet searching and downloading can not be started in a working period. Because the service life of the battery is seriously influenced by the FOTA packet searching and downloading under the condition of poor network quality, in order to save the battery power of the terminal, the FOTA upgrading is executed and stopped under the condition of dynamic change of the network environment. After the FOTA upgrade package is downloaded, the FOTA installation is started after the current service is finished, and the normal data reporting service is not influenced as much as possible by giving priority to the service reporting work of the terminal.
The method and the device are suitable for the FOTA upgrading operation scene of the Internet of things terminal (or the LPWAN terminal) under the LPWAN, and can also be applied to the application scene issued by the configuration parameters of the low-power-consumption network terminal.
Fig. 7 is a schematic block diagram of an over-the-air firmware upgrading apparatus provided by an embodiment of the present disclosure, and as shown in fig. 7, the apparatus may include an obtaining module 21, a determining module 22, and an upgrading module 23, where the obtaining module 21 and the determining module 22 may implement the function of the FOTA upgrade main control module 53 in fig. 3, and the upgrading module 23 may implement the functions of the FOTA search and download module 51 and the FOTA installation module 52 in fig. 3.
The obtaining module 21 is configured to obtain a current network quality index of an LPWAN environment where a low power consumption wide area network LPWAN terminal suitable for air firmware upgrade is located.
The determining module 22 is configured to determine whether the LPWAN environment is suitable for over-the-air firmware upgrade according to a current network quality indicator of the LPWAN environment in which the LPWAN terminal is located. The determination module implements the function of step S102 described above.
In another embodiment, the determining module 22 is further configured to determine whether the LPWAN terminal suitable for the over-the-air firmware upgrade is an LPWAN terminal suitable for the over-the-air firmware upgrade according to a traffic model of the LPWAN terminal before acquiring a current network quality indicator of an LPWAN environment in which the LPWAN terminal suitable for the over-the-air firmware upgrade is located. That is, the determining module 22 determines whether the LPWAN terminal is in an operating mode according to a service model of the LPWAN terminal, and if the LPWAN terminal is determined to be in the operating mode, it is determined that the LPWAN terminal is an LPWAN terminal suitable for firmware upgrade over the air.
In this embodiment, if the current network quality indicator reaches or exceeds a preset indicator threshold, the determining module 22 determines that the LPWAN environment is suitable for over-the-air firmware upgrade, where the current network quality indicator is an indicator related to a current network transmission delay and rate, and includes at least one of a current signal strength, a signal-to-noise ratio, and a network transmission bandwidth.
The upgrade module 23 is configured to perform air firmware upgrade processing on the LPWAN terminal if it is determined that the LPWAN environment is suitable for air firmware upgrade.
In this embodiment, if it is determined that the LPWAN environment is suitable for over-the-air firmware upgrade, the upgrade module 23 searches and downloads a firmware upgrade package, and after the firmware upgrade package is downloaded, if the service of the current service period that the LPWAN terminal in the working mode has completed is completed, the firmware upgrade package is installed.
On the basis of the above embodiment, during the searching and downloading of the firmware upgrade package, if the LPWAN terminal is shifted from the working mode to the non-working mode or the LPWAN environment is not suitable for over-the-air firmware upgrade, the upgrade module 23 stops searching and downloading the firmware upgrade package.
On the basis of the above embodiment, during the installation of the firmware upgrade package, if the LPWAN terminal is shifted from the working mode to be in the non-working mode, or the LPWAN terminal is in the working mode and the service of the current service cycle is not completed, the upgrade module 23 stops installing the firmware upgrade package.
Fig. 8 is a schematic block diagram of an over-the-air firmware upgrade apparatus provided in an embodiment of the present disclosure, and as shown in fig. 8, the apparatus may include: a processor 31, a memory 32, and a computer program stored on said memory 32 and executable on said processor 31. The computer program, when executed by the processor 31, implements the steps of the over-the-air firmware upgrade method described above.
The present disclosure may also provide a computer readable medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described over-the-air firmware upgrade method. The storage medium may include ROM/RAM, magnetic disk, optical disk, and U disk. That is, one of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices 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 performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, 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 computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies 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 includes any information delivery media as known to those skilled in the art.
Although the embodiments of the present disclosure have been described in detail above, the embodiments of the present disclosure are not limited thereto, and those skilled in the art can make various modifications according to the principles of the embodiments of the present disclosure. Accordingly, any modifications made in accordance with the principles of the disclosed embodiments should be understood to fall within the scope of the disclosure.

Claims (10)

1. An over-the-air firmware upgrade method, comprising:
acquiring a current network quality index of an LPWAN environment where a low-power-consumption wide area network (LPWAN) terminal suitable for air firmware upgrading is located;
determining whether the LPWAN environment is suitable for over-the-air firmware upgrade according to the current network quality index of the LPWAN environment where the LPWAN terminal is located;
and if the LPWAN environment is determined to be suitable for the air firmware upgrading, performing air firmware upgrading processing on the LPWAN terminal.
2. The method of claim 1, wherein before the obtaining of the current network quality indicator of the LPWAN environment in which the LPWAN terminal suitable for the over-the-air firmware upgrade is located, further comprising:
and determining whether the LPWAN terminal is an LPWAN terminal suitable for over-the-air firmware upgrade according to the service model of the LPWAN terminal.
3. The method of claim 2, wherein determining whether the LPWAN terminal is an LPWAN terminal suitable for over-the-air firmware upgrade based on a traffic model of the LPWAN terminal comprises:
determining whether the LPWAN terminal is in a working mode or not according to the service model of the LPWAN terminal;
and if the LPWAN terminal is determined to be in the working mode, determining that the LPWAN terminal is an LPWAN terminal suitable for over-the-air firmware upgrade.
4. The method of claim 3, wherein determining whether the LPWAN environment is suitable for over-the-air firmware upgrade based on current network quality metrics of the LPWAN environment in which the LPWAN terminal is located comprises:
and if the current network quality index reaches or exceeds a preset index threshold, determining that the LPWAN environment is suitable for air firmware upgrade, wherein the current network quality index is an index related to the current network transmission delay and rate and comprises at least one of current signal strength, signal-to-noise ratio and network transmission bandwidth.
5. The method of claim 4, wherein the performing over-the-air firmware upgrade processing on the LPWAN terminal if it is determined that the LPWAN environment is suitable for over-the-air firmware upgrade comprises:
if the LPWAN environment is determined to be suitable for the over-the-air firmware upgrade, searching and downloading a firmware upgrade package;
and after the firmware upgrading package is downloaded, if the LPWAN terminal in the working mode finishes the service of the current service period, installing the firmware upgrading package.
6. The method of claim 5, further comprising:
and during searching and downloading the firmware upgrade package, if the LPWAN terminal is shifted from the working mode to the non-working mode or the LPWAN environment is not suitable for the over-the-air firmware upgrade, stopping searching and downloading the firmware upgrade package.
7. The method of claim 5, further comprising:
and during the installation of the firmware upgrade package, if the LPWAN terminal is shifted from a working mode to a non-working mode or the LPWAN terminal is in the working mode and the service of the current service cycle is not completed, stopping installing the firmware upgrade package.
8. An over-the-air firmware upgrade apparatus, the apparatus comprising:
the acquisition module is used for acquiring the current network quality index of the LPWAN environment where the low-power-consumption wide area network LPWAN terminal suitable for air firmware upgrading is located;
the determining module is used for determining whether the LPWAN environment is suitable for over-the-air firmware upgrading according to the current network quality index of the LPWAN environment where the LPWAN terminal is located;
and the upgrading module is used for carrying out air firmware upgrading treatment on the LPWAN terminal if the LPWAN environment is determined to be suitable for air firmware upgrading.
9. An over-the-air firmware upgrade apparatus, the apparatus comprising: memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when executed by the processor, implements the steps of the over-the-air firmware upgrade method according to any one of claims 1 to 7.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the over-the-air firmware upgrade method according to any one of claims 1 to 7.
CN201810954031.9A 2018-08-21 2018-08-21 Method, device and equipment for upgrading aerial firmware and computer readable medium Active CN110855463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810954031.9A CN110855463B (en) 2018-08-21 2018-08-21 Method, device and equipment for upgrading aerial firmware and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810954031.9A CN110855463B (en) 2018-08-21 2018-08-21 Method, device and equipment for upgrading aerial firmware and computer readable medium

Publications (2)

Publication Number Publication Date
CN110855463A true CN110855463A (en) 2020-02-28
CN110855463B CN110855463B (en) 2022-04-08

Family

ID=69595678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810954031.9A Active CN110855463B (en) 2018-08-21 2018-08-21 Method, device and equipment for upgrading aerial firmware and computer readable medium

Country Status (1)

Country Link
CN (1) CN110855463B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443929A (en) * 2020-03-24 2020-07-24 广东星舆科技有限公司 Control method and system for CORS equipment upgrading and readable storage medium
CN111865692A (en) * 2020-07-22 2020-10-30 中国联合网络通信集团有限公司 Terminal firmware upgrading method and device
CN112398527A (en) * 2020-11-03 2021-02-23 上海擎昆信息科技有限公司 Control method and system for enabling satellite system to rapidly enter sleep state
CN114793241A (en) * 2021-01-26 2022-07-26 南宁富联富桂精密工业有限公司 Firmware updating method, electronic device and computer readable storage medium
CN115291919A (en) * 2022-10-10 2022-11-04 荣耀终端有限公司 Packet searching method and related device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074125A (en) * 2011-01-25 2011-05-25 中山北京理工大学研究院 Low power consumption parking management system based on wireless sensor network, and wireless network nodes
CN104391465A (en) * 2014-11-21 2015-03-04 国家电网公司 Pressing plate with state monitoring function
CN104683128A (en) * 2013-11-28 2015-06-03 中国电信股份有限公司 Method and device for lowering energy consumption of household multi-media networked terminal system
CN105045636A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and apparatus for updating software
US20160015004A1 (en) * 2014-07-21 2016-01-21 Nicholas Jay Bonge, JR. Wireless animal training, monitoring and remote control system
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
US20160197813A1 (en) * 2014-12-19 2016-07-07 Shantigram Jagannath System and method for coordinating client-side inference of mobile network loading and capacity
CN106657204A (en) * 2015-10-29 2017-05-10 现代自动车株式会社 Terminal, vehicle and method for controlling the same
CN106900041A (en) * 2017-03-03 2017-06-27 上海斐讯数据通信技术有限公司 A kind of Internet of things node power-economizing method and its device
CN107041170A (en) * 2015-12-03 2017-08-11 华为技术有限公司 Data transmission method for uplink, device and terminal
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN107251531A (en) * 2015-02-17 2017-10-13 罗伯特·博世有限公司 For carrying out the method that wireless firmware updates in the wide area network
CN108052339A (en) * 2017-12-29 2018-05-18 无锡小天鹅股份有限公司 Control method and device, storage medium and the signal transmitting equipment of firmware upgrade
CN108400882A (en) * 2017-12-29 2018-08-14 乐鑫信息科技(上海)有限公司 Device updating method in a kind of mesh networks

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074125A (en) * 2011-01-25 2011-05-25 中山北京理工大学研究院 Low power consumption parking management system based on wireless sensor network, and wireless network nodes
CN104683128A (en) * 2013-11-28 2015-06-03 中国电信股份有限公司 Method and device for lowering energy consumption of household multi-media networked terminal system
US20160015004A1 (en) * 2014-07-21 2016-01-21 Nicholas Jay Bonge, JR. Wireless animal training, monitoring and remote control system
CN104391465A (en) * 2014-11-21 2015-03-04 国家电网公司 Pressing plate with state monitoring function
US20160197813A1 (en) * 2014-12-19 2016-07-07 Shantigram Jagannath System and method for coordinating client-side inference of mobile network loading and capacity
CN107251531A (en) * 2015-02-17 2017-10-13 罗伯特·博世有限公司 For carrying out the method that wireless firmware updates in the wide area network
CN105045636A (en) * 2015-08-11 2015-11-11 广东欧珀移动通信有限公司 Method and apparatus for updating software
CN106657204A (en) * 2015-10-29 2017-05-10 现代自动车株式会社 Terminal, vehicle and method for controlling the same
CN107041170A (en) * 2015-12-03 2017-08-11 华为技术有限公司 Data transmission method for uplink, device and terminal
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
CN106900041A (en) * 2017-03-03 2017-06-27 上海斐讯数据通信技术有限公司 A kind of Internet of things node power-economizing method and its device
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN108052339A (en) * 2017-12-29 2018-05-18 无锡小天鹅股份有限公司 Control method and device, storage medium and the signal transmitting equipment of firmware upgrade
CN108400882A (en) * 2017-12-29 2018-08-14 乐鑫信息科技(上海)有限公司 Device updating method in a kind of mesh networks

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111443929A (en) * 2020-03-24 2020-07-24 广东星舆科技有限公司 Control method and system for CORS equipment upgrading and readable storage medium
CN111865692A (en) * 2020-07-22 2020-10-30 中国联合网络通信集团有限公司 Terminal firmware upgrading method and device
CN111865692B (en) * 2020-07-22 2023-04-07 中国联合网络通信集团有限公司 Terminal firmware upgrading method and device
CN112398527A (en) * 2020-11-03 2021-02-23 上海擎昆信息科技有限公司 Control method and system for enabling satellite system to rapidly enter sleep state
CN112398527B (en) * 2020-11-03 2021-06-29 上海擎昆信息科技有限公司 Control method and system for enabling satellite system to rapidly enter sleep state
CN114793241A (en) * 2021-01-26 2022-07-26 南宁富联富桂精密工业有限公司 Firmware updating method, electronic device and computer readable storage medium
CN115291919A (en) * 2022-10-10 2022-11-04 荣耀终端有限公司 Packet searching method and related device

Also Published As

Publication number Publication date
CN110855463B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN110855463B (en) Method, device and equipment for upgrading aerial firmware and computer readable medium
CN111510323A (en) Firmware upgrading method, device and system for Internet of things equipment and storage medium
CN109347989B (en) Meter design method, device and system design method based on NB-IoT (network B-IoT) Internet of things
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN103582087B (en) Discontinuous reception parameters collocation method, data transmission method for uplink and equipment
JP6342915B2 (en) Intelligent network operation
RU2543614C2 (en) Method and apparatus for controlling base station power
CN103945478A (en) Cell reselection method and mobile terminal
CN102076060A (en) ZigBee-based Wi-Fi access point discovering and selecting method
CN114208130B (en) Managing interrupt detection and reporting
CN111224745B (en) Narrow-band Internet of things NB-IoT network resource allocation method, terminal, equipment and system
CN104041168A (en) Methods and apparatus for generating and/or using a signal suppression utility metric
KR20130031283A (en) Reducing idle mode power consumption for monitoring neighboring base stations
WO2016145876A1 (en) Component carrier link management method and device
CN110719359A (en) Terminal performance test method and system
CN103957586A (en) Power adjustment method and device for wireless local area network
WO2021200114A1 (en) Interference detecting device, wireless base station, interference detecting method, and program
WO2011031197A1 (en) Method and apparatus for cell control
CN104115532A (en) Apparatus and method for dynamic pilot acquisition in a wireless communication system
US20140071905A1 (en) Methods and apparatus for automated device state changes in response to network conditions
CN111434156A (en) Method for managing optimal transmit power of a WI-FI access point and corresponding WI-FI access point
US11006358B1 (en) Reconfigurable data transmission system with terminal devices of different data transmission modes
CN112449407B (en) Equipment access processing method and device and electronic equipment
US8989041B2 (en) Apparatus and method for controlling an access probe transmit power according to a reverse link underload condition
WO2018075285A1 (en) Extending battery life in low signal conditions

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