CN112596764A - Internet of things monitoring method and device based on NB-IoT remote upgrading - Google Patents

Internet of things monitoring method and device based on NB-IoT remote upgrading Download PDF

Info

Publication number
CN112596764A
CN112596764A CN202011511849.7A CN202011511849A CN112596764A CN 112596764 A CN112596764 A CN 112596764A CN 202011511849 A CN202011511849 A CN 202011511849A CN 112596764 A CN112596764 A CN 112596764A
Authority
CN
China
Prior art keywords
internet
upgrading
things
upgrade
things terminal
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
CN202011511849.7A
Other languages
Chinese (zh)
Other versions
CN112596764B (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.)
Xi'an Chinastar M & C Ltd
Original Assignee
Xi'an Chinastar M & C Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Chinastar M & C Ltd filed Critical Xi'an Chinastar M & C Ltd
Priority to CN202011511849.7A priority Critical patent/CN112596764B/en
Publication of CN112596764A publication Critical patent/CN112596764A/en
Application granted granted Critical
Publication of CN112596764B publication Critical patent/CN112596764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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 invention provides an Internet of things monitoring method and device based on NB-IoT remote upgrading, wherein the method comprises the following steps: the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the terminal of the Internet of things is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; the terminal of the Internet of things is switched to an upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; the Internet of things terminal sends upgrading confirmation information to the upgrading server; the upgrading server sends a software upgrading package to the Internet of things terminal; installing a software upgrading package on the terminal of the Internet of things; and after the installation is finished, the terminal of the Internet of things is switched to a working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished. Based on NB-IoT technology, the remote upgrading of the terminal software without the limitation of a platform and an operator card is realized, the installation and deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, and the upgrading efficiency is improved.

Description

Internet of things monitoring method and device based on NB-IoT remote upgrading
Technical Field
The invention relates to the technical field of monitoring, in particular to an Internet of things monitoring method and device based on NB-IoT remote upgrading.
Background
The internet of things monitoring terminal comprises a well cover transaction monitoring terminal, a parking space occupation state monitoring terminal, a garbage can monitoring terminal and the like, and the internet of things products are quick in version updating, changeable in user demands, complex in working environment around the actual installation position, frequent in equipment maintenance and frequently required to be upgraded and maintained by software. In addition, the terminals of the internet of things are distributed in major streets and minor roadways of urban roads, time and labor are wasted when the equipment is frequently disassembled and assembled on site, and meanwhile, personnel safety factors in the working process, such as underground terminal maintenance and the like, need to be considered.
However, in the process of implementing the technical solution in the embodiment of the present application, the inventor of the present application finds that the above prior art has at least the following technical problems:
when the wired STLink downloader is adopted to upgrade the terminal software of the Internet of things in the prior art, the terminal equipment is required to be dismounted and installed after the software is upgraded due to inconvenient field wiring, so that the technical problems of frequent dismounting, time and labor waste and certain potential safety hazards exist.
Disclosure of Invention
The embodiment of the invention provides an Internet of things monitoring method and device based on NB-IoT remote upgrading, and aims to solve the technical problems that in the prior art, when a wired STLink downloader is adopted to upgrade terminal software of the Internet of things, due to the fact that field wiring is inconvenient, terminal equipment needs to be disassembled and then installed after the software upgrading is completed, the equipment is disassembled and assembled frequently, time and labor are wasted, and certain potential safety hazards exist. Based on NB-IoT technology, the remote upgrading of the terminal software which is not limited by a platform and an operator card is realized, the installation and deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, the upgrading efficiency is improved, and the technical effect of eliminating potential safety hazards is realized.
In view of the foregoing, embodiments of the present application are provided to provide an NB-IoT remote upgrade-based internet of things monitoring method and apparatus.
In a first aspect, the present invention provides an NB-IoT remote upgrade-based internet of things monitoring method, including: the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
Preferably, before the upgrade server sends an upgrade starting instruction to the internet of things terminal, the method includes: the Internet of things terminal sends startup message information to the upgrade server; judging whether the upgrading server receives the starting message information or not; if the upgrading server receives the starting-up message information, the upgrading server obtains the software version number and the equipment information parameters of the terminal of the Internet of things according to the starting-up message information; and the upgrading server sends an upgrading starting instruction to the terminal of the Internet of things according to the software version number and the equipment information parameters of the terminal of the Internet of things.
Preferably, the determining whether the upgrade server receives the boot packet information further includes: if the upgrading server does not receive the starting-up message information, the Internet of things terminal sends the starting-up message information to the upgrading server again; obtaining a first threshold value; judging whether the number of times that the Internet of things terminal sends the starting message information to the upgrading server exceeds the first threshold value or not; and if the times of sending the starting message information to the upgrading server by the Internet of things terminal exceed the first threshold value, the Internet of things terminal is switched to a working mode.
Preferably, after the upgrade server sends the software upgrade package to the internet of things terminal according to the upgrade confirmation information, the method includes: judging whether the software upgrading packet received by the terminal of the Internet of things has errors or not; if the software upgrading packet is received with errors, the Internet of things terminal sends an instruction for requesting to restore the working mode to the application server; and switching the terminal of the Internet of things to the working mode according to the instruction for requesting to recover the working mode.
Preferably, after receiving the software upgrade package and before installing the software upgrade package, the method includes: the Internet of things terminal stores the software upgrading package; and restarting the Internet of things terminal.
Preferably, the restarting the internet of things terminal includes: executing a starting operation on the terminal of the Internet of things; obtaining a bootloader program; the bootloader program judges whether a software upgrading package is to be installed or not; checking the software upgrading package to be installed; installing the software upgrading package to be installed; and starting the APP of the terminal of the Internet of things.
In a second aspect, the present invention provides an NB-IoT remote upgrade-based internet of things monitoring device, including:
the first sending unit is used for sending real-time monitoring data to the application server by the Internet of things terminal;
the first determining unit is used for determining that the Internet of things terminal is in a working mode according to the real-time monitoring data by the application server;
the second sending unit is used for sending an upgrading mode switching instruction to the Internet of things terminal by the application server;
the first switching unit is used for switching the Internet of things terminal to the upgrading mode according to the upgrading mode switching instruction;
the third sending unit is used for sending an upgrading starting instruction to the Internet of things terminal by the upgrading server;
the fourth sending unit is used for sending upgrading confirmation information to the upgrading server by the Internet of things terminal according to the upgrading starting instruction;
a fifth sending unit, configured to send, by the upgrade server, a software upgrade package to the internet of things terminal according to the upgrade confirmation information;
the first installation unit is used for installing the software upgrading package by the Internet of things terminal after receiving the software upgrading package;
and the first execution unit is used for switching the Internet of things terminal to the working mode after the installation is completed, sending an upgrade ending instruction to the application server, and completing the upgrade.
Preferably, the apparatus comprises:
a sixth sending unit, configured to send, by the internet of things terminal, start-up message information to the upgrade server;
the first judging unit is used for judging whether the upgrading server receives the starting-up message information or not;
a first obtaining unit, configured to, if the upgrade server receives the boot packet information, obtain, by the upgrade server, a software version number and device information parameters of the internet of things terminal according to the boot packet information;
and the seventh sending unit is used for sending an upgrade starting instruction to the terminal of the Internet of things according to the software version number and the equipment information parameters of the terminal of the Internet of things.
Preferably, the first judging unit further includes:
an eighth sending unit, configured to, if the upgrade server does not receive the boot packet information, send the boot packet information to the upgrade server again by the internet of things terminal;
a second obtaining unit configured to obtain a first threshold;
the second judging unit is used for judging whether the number of times that the Internet of things terminal sends the starting message information to the upgrading server exceeds the first threshold value or not;
and the second switching unit is used for switching the Internet of things terminal to a working mode if the number of times that the Internet of things terminal sends the starting message information to the upgrade server exceeds the first threshold value.
Preferably, the apparatus further comprises:
the third judging unit is used for judging whether the software upgrading packet received by the Internet of things terminal has errors or not;
a ninth sending unit, configured to send, to the application server, an instruction requesting a recovery of a working mode if there is an error in receiving the software upgrade package;
and the third switching unit is used for switching the terminal of the Internet of things to the working mode according to the instruction for recovering the working mode according to the request.
Preferably, the apparatus further comprises:
the first storage unit is used for storing the software upgrading package by the Internet of things terminal;
the first restarting unit is used for restarting the Internet of things terminal.
Preferably, the first restart unit includes:
the first starting unit is used for executing starting operation on the terminal of the Internet of things;
a third obtaining unit, configured to obtain a bootloader program;
the fourth judging unit is used for judging whether the software upgrading package to be installed exists by the bootloader program;
the first checking unit is used for checking the software upgrading package to be installed;
the second installation unit is used for installing the software upgrading package to be installed;
the first starting unit is used for starting an APP (application) of the terminal of the Internet of things.
In a third aspect, the present invention provides an NB-IoT remote upgrade-based internet of things monitoring device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the following steps when executing the program:
the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides an Internet of things monitoring method and device based on NB-IoT remote upgrading, wherein the method comprises the following steps: the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished. The problem of among the prior art adopt wired STLink downloader when upgrading to thing networking terminal software, because on-the-spot wiring is inconvenient, need dismantle terminal equipment and accomplish the reinstallation after the software upgrading to cause the equipment dismouting frequent, waste time and energy, and have certain potential safety hazard's technical problem is solved. Based on NB-IoT technology, the remote upgrading of the terminal software which is not limited by a platform and an operator card is realized, the installation and deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, the upgrading efficiency is improved, and the technical effect of eliminating potential safety hazards is realized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a schematic flowchart of an internet of things monitoring method based on NB-IoT remote upgrade according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an internet of things monitoring device based on NB-IoT remote upgrade according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another NB-IoT remote upgrade-based internet of things monitoring device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an overall upgrade process in an embodiment of the present invention;
fig. 5 is a schematic diagram of a starting process of the internet of things terminal in the embodiment of the present invention.
Description of reference numerals: the system comprises a first sending unit 11, a first determining unit 12, a second sending unit 13, a first switching unit 14, a third sending unit 15, a fourth sending unit 16, a fifth sending unit 17, a first installing unit 18, a first executing unit 19, a bus 300, a receiver 301, a processor 302, a sender 303, a memory 304 and a bus interface 306.
Detailed Description
The embodiment of the invention provides an Internet of things monitoring method and device based on NB-IoT remote upgrading, and solves the technical problems that in the prior art, when a wired STLink downloader is adopted to upgrade terminal software of the Internet of things, due to the fact that field wiring is inconvenient, terminal equipment needs to be disassembled and then installed after the software upgrading is completed, the equipment is disassembled and assembled frequently, time and labor are wasted, and certain potential safety hazards exist.
The technical scheme provided by the invention has the following general idea: the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished. Based on NB-IoT technology, the remote upgrading of the terminal software which is not limited by a platform and an operator card is realized, the installation and deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, the upgrading efficiency is improved, and the technical effect of eliminating potential safety hazards is realized.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
Fig. 1 is a schematic flowchart of an internet of things monitoring method based on NB-IoT remote upgrade in an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides an NB-IoT remote upgrade-based internet-of-things monitoring method, where the method includes:
step 110: the internet of things terminal sends real-time monitoring data to the application server;
step 120: according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode;
step 130: the application server sends an upgrading mode switching instruction to the Internet of things terminal;
step 140: according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode;
step 150: the upgrading server sends an upgrading starting instruction to the Internet of things terminal;
step 160: according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server;
step 170: according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal;
step 180: after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package;
step 190: and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
Specifically, the NB-IoT is called Narrow Band Internet of Things in english, and is a cellular network connection technology specially created for the interconnection of everything. As the name suggests, the bandwidth occupied by NB-IoT is narrow, only about 180KHz is needed, and the License frequency band is used, so that three deployment modes of in-band, guard band or independent carrier can be adopted, the existing network coexists, and the NB-IoT can be directly deployed on the 2G, 3G or 4G network, thereby realizing the multiplexing of the existing network, reducing the deployment cost and realizing smooth upgrade. The embodiment of the invention is based on NB-IoT wireless remote upgrading technology, the application server and the upgrading server are separately deployed, or the application server and the upgrading server can be deployed in one server, the flexible configuration can be realized, the upgrading process is initiated by the application server, the upgrading data transmission and the upgrading process management are controlled by the upgrading server, and the upgrading server is developed by adopting app software and is convenient to install and deploy. Specifically, firstly, the terminal of the internet of things sends real-time monitoring data to an application server, the application server can determine that the terminal of the internet of things is in a working mode according to the real-time monitoring data, so that the application server can send an instruction for switching an upgrade mode to the terminal of the internet of things, then the terminal of the internet of things is switched from an initial working mode to an upgrade mode to prepare for software upgrade, then the upgrade server sends an instruction for starting upgrade to the terminal of the internet of things, the terminal of the internet of things sends upgrade confirmation information to the upgrade server as a response after receiving the instruction for starting upgrade, and after confirming the software upgrade information, the upgrade server starts sending a software upgrade package to the terminal of the internet of things, wherein the version number of the software upgrade package is higher than the version number of an application program installed on the terminal of the internet of things, is convenient for adapting to the continuously improved user requirements. And after the software upgrading package is received, the Internet of things terminal starts to install the software upgrading package of the new version, and after the installation is completed, the Internet of things terminal switches to the working mode, enters a normal remote monitoring state, sends an upgrading finishing instruction to the application server and finishes the upgrading. Therefore, the remote upgrading of the terminal software which is not limited by the platform and the operator card is realized, the installation and the deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, the upgrading efficiency is improved, and the technical effects of potential safety hazards are eliminated.
In step 150, before the upgrade server sends an upgrade start instruction to the internet of things terminal, a first step of performing data interaction between the internet of things terminal in the upgrade mode and the upgrade server is as follows: sending boot message information to the upgrade server through the internet of things terminal, wherein the boot message information includes a current software version number and device parameter information of the internet of things terminal, then judging whether the upgrade server receives the boot message information, if the upgrade server does not receive the boot message information, the internet of things terminal sends the boot message information to the upgrade server again to obtain a first threshold value, wherein a user can set the first threshold value in advance, in the embodiment of the invention, the value of the first threshold value is 20 times, then judging whether the number of times that the internet of things terminal sends the boot message information to the upgrade server exceeds the first threshold value, if the number of times that the internet of things terminal sends the boot message information to the upgrade server exceeds the first threshold value, the upgrading server still does not receive the starting message information, the Internet of things terminal is restarted to exit the upgrading mode and is switched to the working mode; if the upgrading server receives the starting message information, the upgrading server can obtain the current software version number and the equipment information parameters of the Internet of things terminal, finally the upgrading server analyzes whether the current software of the Internet of things terminal is the latest version, and if the current software of the Internet of things terminal is not the latest version, the upgrading server sends a starting upgrading instruction to the Internet of things terminal.
In step 120, the determining whether the internet of things terminal is currently in the working mode further includes: if the Internet of things terminal is not in the working mode currently, namely the Internet of things terminal is in the switching process from the working mode to the upgrading mode currently, judging whether the upgrading mode fails to be switched, if the upgrading mode fails to be switched, the Internet of things terminal sends an instruction for requesting to restore the working mode to the application server, and the Internet of things terminal is switched to the working mode according to the instruction for requesting to restore the working mode. The technical effect of effectively controlling the upgrade mode switching process is achieved.
In step 170, after the upgrade server sends the software upgrade package to the internet of things terminal according to the upgrade confirmation information, the data transmission of the software upgrade package in the embodiment of the present invention adopts a serial transmission method, and the data transmission is sequentially transmitted in sequence, and when the data package transmission is discontinuous in the middle, the data is retransmitted, so as to ensure that the data reception of the software upgrade package is complete. Specifically, it is first determined whether the internet of things terminal has an error in receiving the software upgrade package, that is, whether data reception has failed or is interrupted, and if the software upgrade package has an error in receiving, an additional memory space is opened up for data reception and storage of the software upgrade package in the embodiment of the present invention, and in addition, the internet of things terminal may also send an instruction requesting a recovery of a working mode to the application server, and the internet of things terminal may be switched to the working mode according to the instruction requesting the recovery of the working mode. And then reached and guaranteed upgrading data packet reception complete, the technical effect that can resume normal work even data reception fails.
In step 180, before installing the software upgrade package, the internet of things terminal first needs to store the software upgrade package, and completes installation by restarting, where the specific steps of restarting the internet of things terminal are: the method comprises the steps of firstly executing a starting operation on the terminal of the Internet of things, and obtaining a bootloader program in the starting process, wherein a communication protocol and a code architecture are subjected to normalized design, so that the bootloader program is convenient to transplant, then judging whether a software upgrading package to be installed, namely a new version of the software upgrading package, exists by the bootloader program, checking the software upgrading package to be installed if the software upgrading package to be installed exists, installing after the software upgrading package to be installed is checked to be qualified, and finally starting an APP application program of the terminal of the Internet of things. Therefore, the technical effect of ensuring the reliability of the upgrade version is further achieved by checking the software upgrade package.
Example two
Based on the same inventive concept as the NB-IoT remote upgrade-based internet of things monitoring method in the foregoing embodiment, the present invention further provides an NB-IoT remote upgrade-based internet of things monitoring apparatus, as shown in fig. 2, the apparatus includes:
the first sending unit 11 is used for sending real-time monitoring data to the application server by the terminal of the internet of things;
a first determining unit 12, where the first determining unit 12 is configured to determine, according to the real-time monitoring data, that the internet of things terminal is in a working mode by the application server;
the second sending unit 13, where the second sending unit 13 is used for the application server to send an instruction of switching the upgrade mode to the internet of things terminal;
the first switching unit 14, the first switching unit 14 is configured to switch the internet of things terminal to the upgrade mode according to the upgrade mode switching instruction;
the third sending unit 15, where the third sending unit 15 is configured to send an upgrade starting instruction to the internet of things terminal by the upgrade server;
a fourth sending unit 16, where the fourth sending unit 16 is configured to send upgrade confirmation information to the upgrade server by the internet of things terminal according to the upgrade starting instruction;
a fifth sending unit 17, where the fifth sending unit 17 is configured to send, according to the upgrade confirmation information, a software upgrade package to the internet of things terminal by the upgrade server;
a first installation unit 18, where the first installation unit 18 is configured to install the software upgrade package by the internet of things terminal after receiving the software upgrade package;
and the first execution unit 19 is used for switching the internet of things terminal to the working mode after the installation is completed, sending an upgrade ending instruction to the application server, and completing the upgrade.
Further, the apparatus comprises:
a sixth sending unit, configured to send, by the internet of things terminal, start-up message information to the upgrade server;
the first judging unit is used for judging whether the upgrading server receives the starting-up message information or not;
a first obtaining unit, configured to, if the upgrade server receives the boot packet information, obtain, by the upgrade server, a software version number and device information parameters of the internet of things terminal according to the boot packet information;
and the seventh sending unit is used for sending an upgrade starting instruction to the terminal of the Internet of things according to the software version number and the equipment information parameters of the terminal of the Internet of things.
Further, the first determining unit further includes:
an eighth sending unit, configured to, if the upgrade server does not receive the boot packet information, send the boot packet information to the upgrade server again by the internet of things terminal;
a second obtaining unit configured to obtain a first threshold;
the second judging unit is used for judging whether the number of times that the Internet of things terminal sends the starting message information to the upgrading server exceeds the first threshold value or not;
and the second switching unit is used for switching the Internet of things terminal to a working mode if the number of times that the Internet of things terminal sends the starting message information to the upgrade server exceeds the first threshold value.
Further, the apparatus further comprises:
the third judging unit is used for judging whether the software upgrading packet received by the Internet of things terminal has errors or not;
a ninth sending unit, configured to send, to the application server, an instruction requesting a recovery of a working mode if there is an error in receiving the software upgrade package;
and the third switching unit is used for switching the terminal of the Internet of things to the working mode according to the instruction for recovering the working mode according to the request.
Further, the apparatus further comprises:
the first storage unit is used for storing the software upgrading package by the Internet of things terminal;
the first restarting unit is used for restarting the Internet of things terminal.
Further, the first restart unit includes:
the first starting unit is used for executing starting operation on the terminal of the Internet of things;
a third obtaining unit, configured to obtain a bootloader program;
the fourth judging unit is used for judging whether the software upgrading package to be installed exists by the bootloader program;
the first checking unit is used for checking the software upgrading package to be installed;
the second installation unit is used for installing the software upgrading package to be installed;
the first starting unit is used for starting an APP (application) of the terminal of the Internet of things.
Various changes and specific examples of the NB-IoT remote upgrade based internet of things monitoring method in the first embodiment of fig. 1 are also applicable to the NB-IoT remote upgrade based internet of things monitoring device in the present embodiment, and through the foregoing detailed description of the NB-IoT remote upgrade based internet of things monitoring method, those skilled in the art can clearly know an implementation method of the NB-IoT remote upgrade based internet of things monitoring device in the present embodiment, so for brevity of description, detailed description is not repeated here.
EXAMPLE III
Based on the same inventive concept as the NB-IoT remote upgrade based internet of things monitoring method in the foregoing embodiment, the present invention further provides an NB-IoT remote upgrade based internet of things monitoring apparatus, on which a computer program is stored, which when executed by a processor implements the steps of any one of the foregoing NB-IoT remote upgrade based internet of things monitoring methods.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Example four
Based on the same inventive concept as the NB-IoT remote upgrade based internet of things monitoring method in the foregoing embodiments, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor implements the following steps:
the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
In a specific implementation, when the program is executed by a processor, any method step in the first embodiment may be further implemented.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides an Internet of things monitoring method and device based on NB-IoT remote upgrading, wherein the method comprises the following steps: the internet of things terminal sends real-time monitoring data to the application server; according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode; the application server sends an upgrading mode switching instruction to the Internet of things terminal; according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode; the upgrading server sends an upgrading starting instruction to the Internet of things terminal; according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server; according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal; after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package; and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished. The problem of among the prior art adopt wired STLink downloader when upgrading to thing networking terminal software, because on-the-spot wiring is inconvenient, need dismantle terminal equipment and accomplish the reinstallation after the software upgrading to cause the equipment dismouting frequent, waste time and energy, and have certain potential safety hazard's technical problem is solved. Based on NB-IoT technology, the remote upgrading of the terminal software which is not limited by a platform and an operator card is realized, the installation and deployment are convenient, the safety and the reliability are realized, the on-site dismounting times are effectively reduced, the upgrading efficiency is improved, and the technical effect of eliminating potential safety hazards is realized.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. An NB-IoT remote upgrade based Internet of things monitoring method, the method comprising:
the internet of things terminal sends real-time monitoring data to the application server;
according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode;
the application server sends an upgrading mode switching instruction to the Internet of things terminal;
according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode;
the upgrading server sends an upgrading starting instruction to the Internet of things terminal;
according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server;
according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal;
after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package;
and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
2. The method of claim 1, wherein before the upgrade server sends an upgrade start instruction to the internet of things terminal, the method comprises:
the Internet of things terminal sends startup message information to the upgrade server;
judging whether the upgrading server receives the starting message information or not;
if the upgrading server receives the starting-up message information, the upgrading server obtains the software version number and the equipment information parameters of the terminal of the Internet of things according to the starting-up message information;
and the upgrading server sends an upgrading starting instruction to the terminal of the Internet of things according to the software version number and the equipment information parameters of the terminal of the Internet of things.
3. The method of claim 2, wherein the determining whether the upgrade server receives the boot packet information further comprises:
if the upgrading server does not receive the starting-up message information, the Internet of things terminal sends the starting-up message information to the upgrading server again;
obtaining a first threshold value;
judging whether the number of times that the Internet of things terminal sends the starting message information to the upgrading server exceeds the first threshold value or not;
and if the times of sending the starting message information to the upgrading server by the Internet of things terminal exceed the first threshold value, the Internet of things terminal is switched to a working mode.
4. The method of claim 1, wherein after the upgrade server sends the software upgrade package to the internet of things terminal according to the upgrade confirmation information, the method comprises:
judging whether the software upgrading packet received by the terminal of the Internet of things has errors or not;
if the software upgrading packet is received with errors, the Internet of things terminal sends an instruction for requesting to restore the working mode to the application server;
and switching the terminal of the Internet of things to the working mode according to the instruction for requesting to recover the working mode.
5. The method of claim 1, wherein the installing the software upgrade package by the internet of things terminal after receiving the software upgrade package comprises:
the Internet of things terminal stores the software upgrading package;
and restarting the Internet of things terminal.
6. The method of claim 5, wherein the restarting the internet of things terminal comprises:
executing a starting operation on the terminal of the Internet of things;
obtaining a bootloader program;
the bootloader program judges whether a software upgrading package is to be installed or not;
checking the software upgrading package to be installed;
installing the software upgrading package to be installed;
and starting the APP of the terminal of the Internet of things.
7. An Internet of things monitoring device based on NB-IoT remote upgrade, the device comprising:
the first sending unit is used for sending real-time monitoring data to the application server by the Internet of things terminal;
the first determining unit is used for determining that the Internet of things terminal is in a working mode according to the real-time monitoring data by the application server;
the second sending unit is used for sending an upgrading mode switching instruction to the Internet of things terminal by the application server;
the first switching unit is used for switching the Internet of things terminal to the upgrading mode according to the upgrading mode switching instruction;
the third sending unit is used for sending an upgrading starting instruction to the Internet of things terminal by the upgrading server;
the fourth sending unit is used for sending upgrading confirmation information to the upgrading server by the Internet of things terminal according to the upgrading starting instruction;
a fifth sending unit, configured to send, by the upgrade server, a software upgrade package to the internet of things terminal according to the upgrade confirmation information;
the first installation unit is used for installing the software upgrading package by the Internet of things terminal after receiving the software upgrading package;
and the first execution unit is used for switching the Internet of things terminal to the working mode after the installation is completed, sending an upgrade ending instruction to the application server, and completing the upgrade.
8. An NB-IoT remote upgrade based internet of things monitoring device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of:
the internet of things terminal sends real-time monitoring data to the application server;
according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode;
the application server sends an upgrading mode switching instruction to the Internet of things terminal;
according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode;
the upgrading server sends an upgrading starting instruction to the Internet of things terminal;
according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server;
according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal;
after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package;
and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
9. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
the internet of things terminal sends real-time monitoring data to the application server;
according to the real-time monitoring data, the application server determines that the Internet of things terminal is in a working mode;
the application server sends an upgrading mode switching instruction to the Internet of things terminal;
according to the upgrading mode switching instruction, the Internet of things terminal is switched to the upgrading mode;
the upgrading server sends an upgrading starting instruction to the Internet of things terminal;
according to the upgrading starting instruction, the Internet of things terminal sends upgrading confirmation information to the upgrading server;
according to the upgrade confirmation information, the upgrade server sends a software upgrade package to the Internet of things terminal;
after receiving the software upgrading package, the Internet of things terminal installs the software upgrading package;
and after the installation is finished, the terminal of the Internet of things is switched to the working mode, and an upgrade ending instruction is sent to the application server, so that the upgrade is finished.
CN202011511849.7A 2020-12-18 2020-12-18 Internet of things monitoring method and device based on NB-IoT remote upgrade Active CN112596764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511849.7A CN112596764B (en) 2020-12-18 2020-12-18 Internet of things monitoring method and device based on NB-IoT remote upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511849.7A CN112596764B (en) 2020-12-18 2020-12-18 Internet of things monitoring method and device based on NB-IoT remote upgrade

Publications (2)

Publication Number Publication Date
CN112596764A true CN112596764A (en) 2021-04-02
CN112596764B CN112596764B (en) 2023-06-27

Family

ID=75199680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511849.7A Active CN112596764B (en) 2020-12-18 2020-12-18 Internet of things monitoring method and device based on NB-IoT remote upgrade

Country Status (1)

Country Link
CN (1) CN112596764B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472759A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 Method for changing vehicle communication protocol, server and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011935A (en) * 2017-11-27 2018-05-08 海信集团有限公司 A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment
CN108924207A (en) * 2018-06-26 2018-11-30 深圳高新兴物联科技有限公司 Terminal device and its system file update method, system and computer storage medium
CN109347659A (en) * 2018-09-17 2019-02-15 瓴泰科技(上海)有限公司 Intelligent terminal and mould group remote upgrade method based on NB-IOT
CN109361544A (en) * 2018-10-30 2019-02-19 深圳市航天华拓科技有限公司 A kind of positioning terminal firmware method, apparatus and calculate equipment
CN109639842A (en) * 2019-02-26 2019-04-16 四川爱联科技有限公司 NB-IOT equipment software upgrading system and method
CN110308916A (en) * 2019-06-27 2019-10-08 厦门四信通信科技有限公司 OTA upgrade method, device, equipment, system and storage medium based on lorawan agreement
CN111338951A (en) * 2020-02-25 2020-06-26 珠海荣邦智能科技有限公司 Wireless intelligent household appliance detection method and system
CN111901419A (en) * 2020-07-28 2020-11-06 青岛海尔科技有限公司 Method, device and equipment for upgrading household appliance bottom plate

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011935A (en) * 2017-11-27 2018-05-08 海信集团有限公司 A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment
CN108924207A (en) * 2018-06-26 2018-11-30 深圳高新兴物联科技有限公司 Terminal device and its system file update method, system and computer storage medium
CN109347659A (en) * 2018-09-17 2019-02-15 瓴泰科技(上海)有限公司 Intelligent terminal and mould group remote upgrade method based on NB-IOT
CN109361544A (en) * 2018-10-30 2019-02-19 深圳市航天华拓科技有限公司 A kind of positioning terminal firmware method, apparatus and calculate equipment
CN109639842A (en) * 2019-02-26 2019-04-16 四川爱联科技有限公司 NB-IOT equipment software upgrading system and method
CN110308916A (en) * 2019-06-27 2019-10-08 厦门四信通信科技有限公司 OTA upgrade method, device, equipment, system and storage medium based on lorawan agreement
CN111338951A (en) * 2020-02-25 2020-06-26 珠海荣邦智能科技有限公司 Wireless intelligent household appliance detection method and system
CN111901419A (en) * 2020-07-28 2020-11-06 青岛海尔科技有限公司 Method, device and equipment for upgrading household appliance bottom plate

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472759A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 Method for changing vehicle communication protocol, server and readable storage medium

Also Published As

Publication number Publication date
CN112596764B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN104090796B (en) A kind of embedded device method for updating program and system
CN103136012B (en) Computer system and update method of basic input-output system thereof
CN102238093B (en) Service interruption prevention method and device
CN100525206C (en) Realizing method and system for automatic restoring equipment fault
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN101950254B (en) Software updating method and system thereof
CN104750515A (en) Firmware version upgrading method and system
CN111090444A (en) Version upgrading method and device, storage medium and electronic equipment
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
CN105743933B (en) A kind of module updating method and system of router
CN105517015A (en) Upgrading method, device of wifi product by over the air OTA and terminal
CN105260209A (en) Hot-update solution of program
CN101610604A (en) A kind of method for upgrading software and system
CN109144532B (en) Upgrading method and device
WO2010000142A1 (en) Distributed network management system and maintenance management method thereof
CN110995724A (en) Remote upgrading method for whole vehicle controller of new energy bus
CN112596764B (en) Internet of things monitoring method and device based on NB-IoT remote upgrade
CN113760332A (en) Software upgrading method and electronic equipment
JP7416067B2 (en) On-vehicle device, its control method, and vehicle
CN106912037A (en) A kind of OTA upgrade methods and device
CN104469278A (en) Method and device for upgrading monitoring system
CN114124698A (en) Upgrading method, device and system of power distribution automation terminal operation system based on cloud master station
CN114416132A (en) Equipment upgrading method, device, equipment and storage medium
CN104125249A (en) Synchronization system and method for communication terminal configuration file
JP2006054804A (en) File downloading method, mobile communication network system, and base station apparatus

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