CN108011935B - Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment - Google Patents

Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment Download PDF

Info

Publication number
CN108011935B
CN108011935B CN201711206144.2A CN201711206144A CN108011935B CN 108011935 B CN108011935 B CN 108011935B CN 201711206144 A CN201711206144 A CN 201711206144A CN 108011935 B CN108011935 B CN 108011935B
Authority
CN
China
Prior art keywords
iot equipment
server
upgrading
upgrade
fragment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711206144.2A
Other languages
Chinese (zh)
Other versions
CN108011935A (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.)
Hisense Co Ltd
Original Assignee
Hisense Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201711206144.2A priority Critical patent/CN108011935B/en
Publication of CN108011935A publication Critical patent/CN108011935A/en
Application granted granted Critical
Publication of CN108011935B publication Critical patent/CN108011935B/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
    • 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
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • 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/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a program upgrading method of NB-IOT equipment, a server and the NB-IOT equipment, wherein the NB-IOT equipment sends current software version information to the server and receives an upgrading instruction sent by the server, the NB-IOT equipment determines whether to carry out program upgrading according to attribute information of an upgrading file in the upgrading instruction and the hardware state of the NB-IOT equipment, and if the program upgrading is determined, an upgrading request is sent to the server and the upgrading file sent by the server is received. Therefore, the NB-IOT equipment can jointly judge whether to carry out program upgrading according to the received attribute information of the upgrading file and the hardware state of the NB-IOT equipment, so that the problem that the upgrading fails due to the fact that the server cannot know the hardware state of the NB-IOT equipment and actively carries out the program upgrading on the NB-IOT equipment can be avoided, and the efficiency of the program upgrading is effectively improved.

Description

Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
Technical Field
The invention relates to the field of data processing of the Internet of things, in particular to a program upgrading method of NB-IOT equipment, a server and the NB-IOT equipment.
Background
Narrow-Band Internet of Things (NB-IOT) technology is a novel Internet of Things technology proposed by the third generation partnership project (3GPP) all over the world and is an important branch of the Internet of everything. The method is constructed in a cellular network, supports data connection of low-power consumption equipment in a wide area network, and has the characteristics of high capacity, wide coverage, low power consumption, low cost, high stability and the like. In recent years, the NB-IOT technology has been rapidly developed, and its numerous applications (such as intelligent water meters, intelligent electric meters, parking lot management, etc.) have gradually come into people's lives.
In the prior art, the NB-IOT device can normally operate after installing a corresponding program, and the server can remotely upgrade and manage the program in the NB-IOT device by using OTA (over the Air technology). Generally, the NB-IOT device generally has a low hardware configuration, a low support for a large memory space and a large memory space, and a large data size of an upgrade file required for upgrading a program in the NB-IOT device. Therefore, since the server cannot know the device status of the NB-IOT device, the upgrade file sent by the server may have a problem that the upgrade file cannot be completely received due to insufficient storage space or memory space, or cannot be normally installed even if the upgrade file is completely received, which may cause a large burden to the client, resulting in a low efficiency of program upgrade.
In view of the foregoing, there is a need for a program upgrade method for NB-IOT devices to improve the program upgrade efficiency of NB-IOT devices.
Disclosure of Invention
The invention provides a program upgrading method of NB-IOT equipment, a server and the NB-IOT equipment, which are used for improving the program upgrading efficiency of the NB-IOT equipment.
The program upgrading method for the NB-IOT equipment provided by the embodiment of the invention comprises the following steps:
the NB-IOT equipment sends the current software version information of the NB-IOT equipment to a server;
the NB-IOT equipment receives an upgrade instruction sent by the server, wherein the upgrade instruction comprises attribute information of an upgrade file, and the upgrade instruction is determined by the server according to the current software version information of the NB-IOT equipment;
the NB-IOT equipment determines whether to carry out program upgrading according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment;
and if the NB-IOT equipment determines to carry out program upgrading, sending an upgrading request to the server and receiving the upgrading file sent by the server.
Optionally, the sending, by the NB-IOT device, an upgrade request to the server includes:
the NB-IOT equipment judges whether to fragment the upgrade file according to the current hardware state, and if the fragmentation is determined, an upgrade strategy for the fragmentation is determined according to the current hardware state; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
and the NB-IOT equipment sends the upgrading strategy to the server through the upgrading request.
Optionally, the receiving, by the NB-IOT device, the upgrade file sent by the server includes:
the NB-IOT equipment receives a confirmation message which is sent by the server and indicates that the fragment processing is completed; for any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server; the fragment request message comprises the identifier of any fragment;
and the NB-IOT equipment receives the any fragment sent by the server according to the identifier of the any fragment.
Optionally, the method further comprises:
if the NB-IOT equipment determines not to be upgraded, triggering a timer in the NB-IOT equipment;
and when the NB-IOT equipment is in the next state of the timer, judging whether upgrading is carried out again according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment, and if upgrading is carried out, sending the upgrading request to the server.
Based on the same inventive concept, the invention provides another NB-IOT device program upgrading method, which includes:
the server receives current software version information sent by the NB-IOT equipment, and sends an upgrading instruction to the NB-IOT equipment according to the current software version information of the NB-IOT equipment; the upgrading instruction comprises attribute information of an upgrading file;
and after receiving an upgrading request sent by the NB-IOT equipment according to the upgrading instruction, the server sends the upgrading file to the NB-IOT equipment.
Optionally, the upgrade request includes an upgrade policy that the NB-IOT device determines to fragment the upgrade file; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
after receiving the upgrade request sent by the NB-IOT device, the server further includes:
and the server divides the upgrade file into a plurality of fragments according to the upgrade strategy, and sends a confirmation message indicating that the fragment processing is finished to the NB-IOT equipment after the fragment processing is finished.
Optionally, the sending, by the server, the upgrade file to the NB-IOT device includes:
the server receives a fragmentation request message sent by the NB-IOT equipment; the fragmentation request message comprises an identifier of the fragmentation requested to be transmitted by the NB-IOT equipment;
and the server sends the fragment corresponding to the fragment identifier to the NB-IOT equipment according to the fragment identifier.
Based on the same inventive concept, the invention also provides an NB-IOT device, which comprises:
the receiving and sending module is used for sending the current software version information of the NB-IOT equipment to a server; receiving an upgrade instruction sent by the server, wherein the upgrade instruction comprises attribute information of an upgrade file, and the upgrade instruction is determined by the server according to the current software version information of the NB-IOT equipment;
the processing module is used for determining whether to carry out program upgrading according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment;
and the transceiver module is also used for sending an upgrading request to the server and receiving the upgrading file sent by the server if the program upgrading is determined.
Optionally, the transceiver module is specifically configured to:
judging whether the upgrade file is subjected to fragmentation processing according to the current hardware state, and if the upgrade file is determined to be subjected to fragmentation processing, determining an upgrade strategy for the fragmentation processing according to the current hardware state; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
and sending the upgrading strategy to the server through the upgrading request.
Optionally, the transceiver module is specifically configured to:
receiving a confirmation message which is sent by the server and indicates that the fragment processing is completed; for any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server; the fragment request message comprises the identifier of any fragment;
and receiving any fragment sent by the server according to the identifier of any fragment.
Optionally, the processing module is further configured to:
if the upgrading is not determined, triggering a timer in the NB-IOT equipment;
and when the next state of the timer comes, judging whether to upgrade or not according to the attribute information of the upgrade file and the hardware state of the NB-IOT equipment, and if the upgrade is performed, sending the upgrade request to the server.
Based on the same inventive concept, the invention also provides a server, which comprises:
a transceiver module, configured to receive current software version information sent by the NB-IOT device, and send an upgrade instruction to the NB-IOT device according to the current software version information of the NB-IOT device; the upgrading instruction comprises attribute information of an upgrading file; and after receiving an upgrade request sent by the NB-IOT equipment according to the upgrade instruction, sending the upgrade file to the NB-IOT equipment.
Optionally, the upgrade request includes an upgrade policy that the NB-IOT device determines to fragment the upgrade file; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
the server further comprises a processing module configured to:
and dividing the upgrade file into a plurality of fragments according to the upgrade strategy, and sending a confirmation message indicating that the fragment processing is completed to the NB-IOT equipment through the sending module after the fragment processing is completed.
Optionally, the transceiver module is specifically configured to:
receiving a fragmentation request message sent by the NB-IOT equipment; the fragmentation request message comprises an identifier of the fragmentation requested to be transmitted by the NB-IOT equipment;
and sending the fragment corresponding to the fragment identifier to the NB-IOT equipment according to the fragment identifier.
Another embodiment of the present invention provides an NB-IOT device, which includes a memory and a processor, wherein the memory is configured to store program instructions, and the processor is configured to call the program instructions stored in the memory, and perform any of the above methods according to an obtained program.
Another embodiment of the present invention provides a computer storage medium having stored thereon computer-executable instructions for causing a computer to perform any one of the methods described above.
In the embodiment of the invention, NB-IOT equipment sends current software version information to a server and receives an upgrading instruction sent by the server, the NB-IOT equipment determines whether to carry out program upgrading according to attribute information of an upgrading file in the upgrading instruction and the hardware state of the NB-IOT equipment, and if the NB-IOT equipment determines to carry out program upgrading, the NB-IOT equipment sends an upgrading request to the server and receives the upgrading file sent by the server. Therefore, the NB-IOT equipment can jointly judge whether to carry out program upgrading according to the received attribute information of the upgrading file and the hardware state of the NB-IOT equipment, so that the problem that the upgrading fails due to the fact that the server cannot know the hardware state of the NB-IOT equipment and actively carries out the program upgrading on the NB-IOT equipment can be avoided, and the efficiency of the program upgrading is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart corresponding to a program upgrading method for a narrowband internet of things NB-IOT device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an NB-IOT device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
Fig. 1 shows a flowchart corresponding to a program upgrading method for a narrowband internet of things NB-IOT device provided in an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S101, NB-IOT equipment sends current software version information of the NB-IOT equipment to a server;
step S102, a server receives current software version information sent by the NB-IOT equipment and sends an upgrading instruction to the NB-IOT equipment according to the current software version information of the NB-IOT equipment;
s103, the NB-IOT equipment receives an upgrade instruction sent by the server;
step S104, the NB-IOT equipment determines whether to carry out program upgrading according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment;
step S105: and if the NB-IOT equipment determines to carry out program upgrading, sending an upgrading request to the server and receiving the upgrading file sent by the server.
In the embodiment of the invention, NB-IOT equipment sends current software version information to a server and receives an upgrading instruction sent by the server, the NB-IOT equipment determines whether to carry out program upgrading according to attribute information of an upgrading file in the upgrading instruction and the hardware state of the NB-IOT equipment, and if the NB-IOT equipment determines to carry out program upgrading, the NB-IOT equipment sends an upgrading request to the server and receives the upgrading file sent by the server. Therefore, the NB-IOT equipment can jointly judge whether to carry out program upgrading according to the received attribute information of the upgrading file and the hardware state of the NB-IOT equipment, so that the problem that the upgrading fails due to the fact that the server cannot know the hardware state of the NB-IOT equipment and actively carries out the program upgrading on the NB-IOT equipment can be avoided, and the efficiency of the program upgrading is effectively improved.
Specifically, in step S101, the NB-IOT device may send the current software version information to the server in various manners, for example, the NB-IOT device may send the current software version information at power-on start, or may send the current software version information at connection with the server, or may send the current software version information to the server periodically according to a set period, or may send the current software version information to the server when performing data communication with the server, which is not limited in this embodiment of the invention.
In step S102, the server receives the current software version information sent by the NB-IOT device, and determines whether to perform program upgrade on the NB-IOT device according to the current software version information of the NB-IOT device and an OTA (over the air) policy stored in the server.
In the embodiment of the present invention, the OTA policy stored in the server refers to a principle that the server upgrades the programs of the NB-IOT devices connected thereto, where software version information of the programs to which the NB-IOT devices are to be upgraded is specified. The specific content of the OTA policy may be determined by a person skilled in the art according to actual needs, for example, the OTA policy may be that all NB-IOT devices need to be upgraded to the latest software version, and the server determines to perform program upgrade on a certain NB-IOT device when the current software version information sent by the NB-IOT device is not the latest software version. For another example, the OTA policy is that the software versions of all NB-IOT devices are unified, and the server determines to perform program upgrade on a certain NB-IOT device when determining that the current software version information sent by the NB-IOT device is not the same as the software versions of most NB-IOT devices.
And if the server determines to perform program upgrading on the NB-IOT equipment, sending an upgrading instruction to the NB-IOT equipment. The upgrade indication includes attribute information of the upgrade file, where the attribute information may specifically include information such as size and type of the upgrade file. In this embodiment of the present invention, the type of the upgrade file may be any one or more of a protocol core, an application core, and a firmware core, which is not specifically limited in this embodiment of the present invention.
In step S103 and step S104, the NB-IOT device receives the upgrade instruction sent by the server, and determines whether to perform program upgrade according to the attribute information of the upgrade file in the upgrade instruction and the hardware state of the NB-IOT device itself.
In the embodiment of the invention, after receiving the upgrade instruction sent by the server, the NB-IOT equipment determines the current hardware state of the NB-IOT equipment, wherein the hardware state can specifically refer to the currently available memory space and storage space of the NB-IOT equipment.
According to the attribute information of the upgrade file, if the NB-IOT device determines that the current hardware state of the NB-IOT device can support the program upgrade, and if the memory space and the storage space can normally receive and store the upgrade file, the NB-IOT device sends an upgrade request to the server, so that the server sends the upgrade file to the NB-IOT device in step S105 after receiving the upgrade request.
After step S105, the NB-IOT device performs program upgrade according to the upgrade file after receiving the upgrade file, and feeds back a confirmation message indicating that upgrade is successful to the server after successful upgrade.
Therefore, compared with the method that the server actively sends the upgrade file to the NB-IOT equipment and performs the program upgrade under the condition that the hardware state of the NB-IOT equipment cannot be known in the prior art, the method has the advantages that the NB-IOT equipment has the initiative for whether the program upgrade is performed or not in the implementation of the method, and the NB-IOT equipment sends the upgrade request to the server only when the hardware state of the NB-IOT equipment is determined to support the program upgrade, so that the problem that the program upgrade fails due to insufficient memory or storage space of the NB-IOT equipment is effectively avoided, and the efficiency of the program upgrade is effectively improved.
It should be noted that, in step S105, before the NB-IOT device sends the upgrade request to the server, the NB-IOT device may further determine whether to perform fragmentation processing on the upgrade file according to the attribute information of the upgrade file and the current hardware state.
For example, if the upgrade file is large, the server sends the entire upgrade file to the NB-IOT device at one time, and the NB-IOT device may select to fragment the upgrade file when the memory or storage space of the NB-IOT device is not enough to receive the entire upgrade file. For another example, if the current network state is poor, when the server sends the whole upgrade file to the NB-IOT device at one time, the probability that the file needs to be retransmitted due to an error in the file transmission process is high, and in the severe case, even if the file needs to be retransmitted for many times, the upgrade file cannot be successfully received finally, and due to the fact that the transmitted data volume is increased, the NB-IOT device can select to perform fragmentation processing in such a case, so that the power consumption of the NB-IOT device and the probability of an error in the file transmission process are reduced.
And if the NB-IOT equipment determines to perform the fragment processing, an upgrading strategy for performing the fragment processing on the upgrading file is formulated, and the upgrading strategy is sent to the server through an upgrading request. In the embodiment of the present invention, the upgrade strategy formulated by the NB-IOT device specifically includes the number of fragments for fragmenting the upgrade file, and the identifier and size of each fragment.
Thus, after receiving an upgrade request sent by the NB-IOT device, the server may perform fragmentation processing on the upgrade file according to the upgrade policy in the upgrade request, divide the upgrade file into a plurality of fragments, and send a confirmation message indicating that the fragmentation processing is completed to the NB-IOT device, so as to notify that the preparation work before the NB-IOT device is upgraded is completed.
Furthermore, the NB-IOT device may pull each fragment from the server according to information of each fragment divided from the upgrade file in its own upgrade policy, and specifically includes:
and aiming at any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server, wherein the fragment request message comprises the identifier of any fragment. And the server receives a fragmentation request message sent by the NB-IOT equipment, and sends the fragmentation corresponding to the identification of any fragmentation to the NB-IOT equipment according to the identification of any fragmentation.
Therefore, in the embodiment of the present invention, after determining to perform program upgrade, the NB-IOT device may further formulate an upgrade policy for performing fragment processing according to the attribute information of the upgrade file and the current hardware state of the NB-IOT device, so that the server divides the upgrade file into a plurality of fragments, and performs independent transmission on each fragment. The server does not need to transmit the whole upgrade file to the NB-IOT equipment at one time, so that the possibility that the transmission process of the upgrade file is wrong, the upgrade file needs to be continuously retransmitted and the program upgrade is finally failed due to overlarge upgrade file is avoided, and the program upgrade efficiency is effectively improved. In addition, only one fragment is transmitted between the server and the NB-IOT equipment at a time, and compared with the whole upgrade file, the data volume of the fragment file is smaller, so that the power consumption of the NB-IOT equipment is reduced, and the performance of the NB-IOT equipment is not influenced in the transmission process of the upgrade file.
In step S104, since the hardware state (i.e., the memory space and/or the storage space) of the NB-IOT device may be dynamically changed, once the NB-IOT device triggers a timer in the NB-IOT device according to the attribute information of the upgrade file and the current hardware state, if it is determined that the program upgrade is not performed. When the next state of the timer comes, judging whether the hardware state can support the program upgrading again according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment, and if the upgrading is determined, sending an upgrading request to the server.
In the embodiment of the present invention, the duration of the set period in the timer may be set by a person skilled in the art according to actual needs, and the present invention is not limited to this specifically.
Based on the same inventive concept, an NB-IOT device is further provided in the embodiments of the present invention, and fig. 2 is a schematic structural diagram of the NB-IOT device provided in the embodiments of the present invention, as shown in fig. 2, the device 200 includes:
a transceiver module 201, configured to send current software version information of the NB-IOT device to a server; receiving an upgrade instruction sent by the server, wherein the upgrade instruction comprises attribute information of an upgrade file, and the upgrade instruction is determined by the server according to the current software version information of the NB-IOT equipment;
a processing module 202, configured to determine whether to perform program upgrade according to the attribute information of the upgrade file and the hardware state of the NB-IOT device;
the transceiver module 201 is further configured to send an upgrade request to the server and receive the upgrade file sent by the server if it is determined that the program is upgraded.
Optionally, the transceiver module 201 is specifically configured to:
judging whether the upgrade file is subjected to fragmentation processing according to the current hardware state, and if the upgrade file is determined to be subjected to fragmentation processing, determining an upgrade strategy for the fragmentation processing according to the current hardware state; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
and sending the upgrading strategy to the server through the upgrading request.
Optionally, the transceiver module 201 is specifically configured to:
receiving a confirmation message which is sent by the server and indicates that the fragment processing is completed; for any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server; the fragment request message comprises the identifier of any fragment;
and receiving any fragment sent by the server according to the identifier of any fragment.
Optionally, the processing module 202 is further configured to:
if the upgrading is not determined, triggering a timer in the NB-IOT equipment;
and when the next state of the timer comes, judging whether to upgrade or not according to the attribute information of the upgrade file and the hardware state of the NB-IOT equipment, and if the upgrade is performed, sending the upgrade request to the server.
Based on the same inventive concept, an embodiment of the present invention further provides a server, and fig. 3 is a schematic structural diagram of the server provided in the embodiment of the present invention, as shown in fig. 3, where the server 300 includes:
a receiving module 301, configured to receive current software version information sent by the NB-IOT device, and send an upgrade instruction to the NB-IOT device according to the current software version information of the NB-IOT device; the upgrading instruction comprises attribute information of an upgrading file; and after receiving an upgrade request sent by the NB-IOT equipment according to the upgrade instruction, sending the upgrade file to the NB-IOT equipment.
Optionally, the upgrade request includes an upgrade policy that the NB-IOT device determines to fragment the upgrade file; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
the server further comprises a processing module 302, the processing module 303 is configured to:
and dividing the upgrade file into a plurality of fragments according to the upgrade strategy, and sending a confirmation message indicating that the fragment processing is completed to the NB-IOT equipment through the sending module after the fragment processing is completed.
Optionally, the transceiver module 301 is specifically configured to:
receiving a fragmentation request message sent by the NB-IOT equipment; the fragmentation request message comprises an identifier of the fragmentation requested to be transmitted by the NB-IOT equipment;
and sending the fragment corresponding to the fragment identifier to the NB-IOT equipment according to the fragment identifier.
Based on the same inventive concept, embodiments of the present invention also provide another NB-IOT device, which may include a Central Processing Unit (CPU), a memory, an input/output device, and the like, the input device may include a keyboard, a mouse, a touch screen, and the like, and the output device may include a Display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
The memory may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present invention, the memory may be configured to store a program of the above-described program upgrading method for the NB-IOT device.
And the processor is used for executing the program upgrading method of the NB-IOT equipment according to the obtained program instructions by calling the program instructions stored in the memory.
Based on the same inventive concept, embodiments of the present invention provide a computer storage medium for storing computer program instructions for the above-described computing device, which includes a program for executing the program upgrading method of the above-described NB-IOT device.
The computer storage media may be any available media or data storage device that can be accessed by a computer, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
From the above, it can be seen that:
in the embodiment of the invention, NB-IOT equipment sends current software version information to a server and receives an upgrading instruction sent by the server, the NB-IOT equipment determines whether to carry out program upgrading according to attribute information of an upgrading file in the upgrading instruction and the hardware state of the NB-IOT equipment, and if the NB-IOT equipment determines to carry out program upgrading, the NB-IOT equipment sends an upgrading request to the server and receives the upgrading file sent by the server. Therefore, the NB-IOT equipment can jointly judge whether to carry out program upgrading according to the received attribute information of the upgrading file and the hardware state of the NB-IOT equipment, so that the problem that the upgrading fails due to the fact that the server cannot know the hardware state of the NB-IOT equipment and actively carries out the program upgrading on the NB-IOT equipment can be avoided, and the efficiency of the program upgrading is effectively improved.
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 block or blocks 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 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.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
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 (14)

1. A program upgrading method for narrow-band Internet of things NB-IOT equipment is characterized by comprising the following steps:
the NB-IOT equipment sends the current software version information of the NB-IOT equipment to a server;
the NB-IOT equipment receives an upgrade instruction sent by the server, wherein the upgrade instruction comprises attribute information of an upgrade file, and the upgrade instruction is determined by the server according to the current software version information of the NB-IOT equipment;
the NB-IOT equipment determines whether to carry out program upgrading according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment;
if the NB-IOT equipment determines to perform program upgrading, the NB-IOT equipment judges whether to perform fragmentation processing on the upgrading file according to the current hardware state, and if the NB-IOT equipment determines to perform fragmentation processing, an upgrading strategy for performing fragmentation processing is determined according to the current hardware state;
the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
and the NB-IOT equipment sends the upgrading strategy to the server through an upgrading request and receives the upgrading file sent by the server.
2. The method of claim 1, wherein the NB-IOT device receiving the upgrade file sent by the server comprises:
the NB-IOT equipment receives a confirmation message which is sent by the server and indicates that the fragment processing is completed; for any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server; the fragment request message comprises the identifier of any fragment;
and the NB-IOT equipment receives the any fragment sent by the server according to the identifier of the any fragment.
3. The method of claim 1, further comprising:
if the NB-IOT equipment determines not to be upgraded, triggering a timer in the NB-IOT equipment;
and when the NB-IOT equipment is in the next state of the timer, judging whether upgrading is carried out again according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment, and if upgrading is carried out, sending the upgrading request to the server.
4. A method for upgrading programs of NB-IOT equipment, the method comprising:
the server receives current software version information sent by the NB-IOT equipment, and sends an upgrading instruction to the NB-IOT equipment according to the current software version information of the NB-IOT equipment; the upgrading instruction comprises attribute information of an upgrading file; after receiving an upgrade request sent by the NB-IOT equipment according to the upgrade instruction, the server divides the upgrade file into a plurality of fragments according to an upgrade strategy, and sends a confirmation message indicating that the fragment processing is completed to the NB-IOT equipment after the fragment processing is completed; the upgrade request comprises an upgrade strategy for the NB-IOT equipment to determine the fragment processing of the upgrade file; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
and the server sends the upgrade file to the NB-IOT equipment.
5. The method of claim 4, wherein the server sending the upgrade file to the NB-IOT device comprises:
the server receives a fragmentation request message sent by the NB-IOT equipment; the fragmentation request message comprises an identifier of the fragmentation requested to be transmitted by the NB-IOT equipment;
and the server sends the fragment corresponding to the fragment identifier to the NB-IOT equipment according to the fragment identifier.
6. An NB-IOT device, the device comprising:
the receiving and sending module is used for sending the current software version information of the NB-IOT equipment to a server; receiving an upgrade instruction sent by the server, wherein the upgrade instruction comprises attribute information of an upgrade file, and the upgrade instruction is determined by the server according to the current software version information of the NB-IOT equipment;
the processing module is used for determining whether to carry out program upgrading according to the attribute information of the upgrading file and the hardware state of the NB-IOT equipment;
the transceiver module is also used for judging whether the upgrade file is subjected to fragmentation processing according to the current hardware state if the program upgrade is determined, and determining an upgrade strategy for the fragmentation processing according to the current hardware state if the fragmentation processing is determined; the upgrading strategy comprises the number of fragments and the identification and size of each fragment; and sending the upgrading strategy to the server through an upgrading request, and receiving the upgrading file sent by the server.
7. The device according to claim 6, wherein the transceiver module is specifically configured to:
receiving a confirmation message which is sent by the server and indicates that the fragment processing is completed; for any fragment obtained by dividing the upgrade file, the NB-IOT equipment sends a fragment request message to the server; the fragment request message comprises the identifier of any fragment;
and receiving any fragment sent by the server according to the identifier of any fragment.
8. The apparatus of claim 6, wherein the processing module is further configured to:
if the upgrading is not determined, triggering a timer in the NB-IOT equipment;
and when the next state of the timer comes, judging whether to upgrade or not according to the attribute information of the upgrade file and the hardware state of the NB-IOT equipment, and if the upgrade is performed, sending the upgrade request to the server.
9. A server, characterized in that the server comprises:
the receiving and sending module is used for receiving current software version information sent by NB-IOT equipment and sending an upgrading instruction to the NB-IOT equipment according to the current software version information of the NB-IOT equipment; the upgrading instruction comprises attribute information of an upgrading file; after receiving an upgrade request sent by the NB-IOT equipment according to the upgrade instruction, sending the upgrade file to the NB-IOT equipment; the upgrade request comprises an upgrade strategy for the NB-IOT equipment to determine the fragment processing of the upgrade file; the upgrading strategy comprises the number of fragments and the identification and size of each fragment;
the server further comprises a processing module configured to: after receiving the upgrade request, before sending the upgrade file to the NB-IOT device, dividing the upgrade file into a plurality of fragments according to the upgrade strategy, and after completing the fragment processing, sending a confirmation message indicating that the fragment processing is completed to the NB-IOT device through the sending module.
10. The server according to claim 9, wherein the transceiver module is specifically configured to:
receiving a fragmentation request message sent by the NB-IOT equipment; the fragmentation request message comprises an identifier of the fragmentation requested to be transmitted by the NB-IOT equipment;
and sending the fragment corresponding to the fragment identifier to the NB-IOT equipment according to the fragment identifier.
11. An NB-IOT device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 3 in accordance with the obtained program.
12. A computer storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1 to 3.
13. A server, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 4 to 5 in accordance with the obtained program.
14. A computer storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 4-5.
CN201711206144.2A 2017-11-27 2017-11-27 Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment Active CN108011935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711206144.2A CN108011935B (en) 2017-11-27 2017-11-27 Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711206144.2A CN108011935B (en) 2017-11-27 2017-11-27 Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment

Publications (2)

Publication Number Publication Date
CN108011935A CN108011935A (en) 2018-05-08
CN108011935B true CN108011935B (en) 2020-06-05

Family

ID=62053773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711206144.2A Active CN108011935B (en) 2017-11-27 2017-11-27 Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment

Country Status (1)

Country Link
CN (1) CN108011935B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502256A (en) * 2018-05-18 2019-11-26 佛山市顺德区美的电热电器制造有限公司 A kind of method for upgrading software, terminal and storage medium
CN108923935B (en) * 2018-06-29 2021-07-09 天津金汤智能科技发展有限公司 Narrowband Internet of things data analysis management control system, method and application
CN109347659B (en) * 2018-09-17 2021-09-24 瓴泰科技(上海)有限公司 Intelligent terminal equipment and module remote upgrading method based on NB-IOT
CN109639842B (en) * 2019-02-26 2021-09-28 四川爱联科技股份有限公司 NB-IOT equipment software upgrading system and method
CN110427201A (en) * 2019-07-25 2019-11-08 金卡智能集团股份有限公司 A kind of NB mould group upgrade method, device, equipment and storage medium
CN111475189A (en) * 2020-03-27 2020-07-31 深圳光启超材料技术有限公司 Upgrading method, head-mounted equipment, storage medium and electronic device
CN111629065B (en) * 2020-06-05 2021-10-29 宁波方太厨具有限公司 Method and system for controlling OTA (over the air) upgrade of equipment in networking system
CN112039697A (en) * 2020-08-20 2020-12-04 海尔优家智能科技(北京)有限公司 Method, system, device and equipment for upgrading internet of things equipment
CN111897560A (en) * 2020-08-27 2020-11-06 吉林大学 NB-IoT module-based program upgrading system, method, device and storage medium
CN112398681A (en) * 2020-10-21 2021-02-23 红石阳光(北京)科技股份有限公司 Firmware low-power-consumption upgrading method and system based on NB-IOT (network of things)
CN112383439B (en) * 2020-11-24 2023-07-25 重庆前卫表业有限公司 Intelligent gas meter air upgrading system and upgrading method
CN112596764B (en) * 2020-12-18 2023-06-27 西安中星测控有限公司 Internet of things monitoring method and device based on NB-IoT remote upgrade
CN114995848B (en) * 2021-12-08 2023-04-28 荣耀终端有限公司 IoT device upgrade method, ioT device, and computer-readable storage medium
CN114422994A (en) * 2022-03-29 2022-04-29 龙旗电子(惠州)有限公司 Firmware upgrading method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217412B (en) * 2008-01-03 2011-07-27 烽火通信科技股份有限公司 A method of optical network terminal batch grading in passive optical network system on gigabit Ethernet
CN102118640A (en) * 2009-12-31 2011-07-06 乐金电子(中国)研究开发中心有限公司 Digital television as well as software upgrading method and system thereof
CN105183519B (en) * 2015-09-18 2018-08-07 烽火通信科技股份有限公司 The device and method of ONU software version fragments upgrading
CN105302601A (en) * 2015-10-22 2016-02-03 四川长虹电器股份有限公司 System and method for software upgrade server
CN106708548A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Program upgrading method and terminal device
CN106647517A (en) * 2016-12-29 2017-05-10 金卡高科技股份有限公司 Internet of Things metering instrument remote firmware upgrading method and metering instrument system
CN107301056A (en) * 2017-07-27 2017-10-27 上海斐讯数据通信技术有限公司 A kind of AP online upgradings processing method and processing device

Also Published As

Publication number Publication date
CN108011935A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN108011935B (en) Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
CN107579863A (en) Terminal OTA upgrade methods, apparatus and system
CN110471692B (en) Over-the-air upgrading method, device, equipment and storage medium of terminal program
CN110762775B (en) Upgrading method of air conditioner and air conditioner
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN105824659A (en) Application program updating method and terminal equipment
TW201441934A (en) Method and device for updating client
CN112416969B (en) Parallel task scheduling system in distributed database
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN103379446A (en) Multi-terminal control method and device based on wifi
CN105978937A (en) Bluetooth slave device and upgrade method thereof
CN103281356A (en) File distribution method and system
CN112698857A (en) Data flashing method and device
US8719622B2 (en) Recording and preventing crash in an appliance
CN103457748A (en) Data transmission method, system and device
CN110837381B (en) Software upgrading method and device for projection equipment
CN106293814B (en) Upgrading method and device
US11995436B2 (en) Out-of-band updating method and system of expander
CN111200833B (en) Method and device for determining network element state
CN111511041B (en) Remote connection method and device
CN113377396B (en) Upgrading method and device, electronic equipment and storage medium
CN112911659B (en) NR-based information reporting method and device
CN116243949A (en) Software upgrading method and device, embedded equipment and storage medium
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN111176674B (en) OSGI plug-in upgrading method and device, electronic equipment and storage medium

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