CN110427201A - A kind of NB mould group upgrade method, device, equipment and storage medium - Google Patents
A kind of NB mould group upgrade method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110427201A CN110427201A CN201910674414.5A CN201910674414A CN110427201A CN 110427201 A CN110427201 A CN 110427201A CN 201910674414 A CN201910674414 A CN 201910674414A CN 110427201 A CN110427201 A CN 110427201A
- Authority
- CN
- China
- Prior art keywords
- mould group
- upgrade
- iot
- downloading
- update
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000013475 authorization Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 description 5
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 5
- 208000032370 Secondary transmission Diseases 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of NB mould group upgrade methods, comprising the following steps: S1: being powered;S2: downloading decision;S3: upgrade package downloading;S4: downloading judgement;S5: decision is updated;S6:NB-IoT mould group updates;S7: judgement is updated;S8: update terminates;S9: shutdown.NB-IoT mould group in the present invention is not when meeting allows any one in program upgrading or upgrade file failed download or upgrade file install failure to require, NB-IoT mould group will be actively closed, it avoids NB-IoT mould group from being in standby for a long time, facilitates the service life for extending NB-IoT mould group.
Description
Technical field
The invention belongs to Internet of Things field of communication technology, in particular to a kind of method, apparatus of NB mould group upgrading, equipment and
Storage medium.
Background technique
Internet of Things market potential is huge, and all things on earth interconnection has become global operator, the positive cloth of science-and-technology enterprise and industry alliance
Office grand strategy direction, NB-IoT covering, power consumption, cost, in terms of best performance, meet LPWA class business
Demand.NB-IoT technology (narrowband technology of Internet of things) has the technical characteristic that framework is excellent, covering is wide, low in energy consumption, at low cost.In
Under same frequency range, NB-IoT expands 100 times than existing network gain 20dB, area coverage, has support magnanimity connection
Ability, mono- sector NB-IoT can support 100,000 connections, support low latency sensitivity, ultralow equipment cost, low equipment
Power consumption and the network architecture of optimization and a variety of deployment way can be used, and it is existing network coexisted, there is excellent stabilization
Property
NB mould group is upgraded during use, when existing NB mould group carries out software upgrading, passes through NB network
Downloading software data is upgraded, but since NB network bandwidth is small and larger by network environment influence, is needed when network environment is poor
Take the even several days time several hours upgrades for NB mould group, prolonged standby to be easy to cause NB mould group reduced lifetime even hair
Raw damage.
Summary of the invention
The purpose of the present invention is being directed to the above-mentioned problems in the prior art, provide a kind of NB mould group upgrade method,
System, device and storage medium.
The first purpose of this invention can be realized by the following technical scheme: a kind of NB mould group upgrade method, including with
Lower step: S1: be powered: NB-IoT mould group powers on and starts;S2: it downloading decision: checks NB-IoT mould group and is confirmed whether
Program is allowed to upgrade;S3: upgrade package downloading: NB-IoT mould group downloads from a server preset upgrade file;S4: downloading is sentenced
Disconnected: NB-IoT mould group judges whether upgrade file downloads success;S5: it updates decision: increasing " in update " in NB-IoT mould group
Mark;S6:NB-IoT mould group updates;The upgrade file of NB-IoT mould group load downloading;S7: judgement is updated: according to NB-IoT mould
The program information of group judges whether upgrade file loads success;S8: update terminates: NB-IoT mould group terminates more new state;S9: it closes
Machine: NB-IoT mould group shuts down and disconnects power supply.
The working principle of the invention: it checks the need for upgrading after the energization starting of NB-IoT mould group, from clothes after confirmation upgrading
Preset upgrade file is downloaded on business device, upgrade file increases " in update " in NB-IoT mould group after downloading successfully and identifies and open
Begin to load, upgrade file terminates more new state after successfully loading, NB-IoT mould group shuts down and disconnects power supply.
Further include step S11 after the step S1 in above-mentioned NB mould group upgrade method: checking decision-making state: checking
Whether identified containing " in update " in NB-IoT mould group ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
It further include step S41 in the step S4 in above-mentioned NB mould group upgrade method: downloading timeliness judgement: NB-
Whether IoT mould group is more than timeliness according to preset threshold decision upgrade file download time, if-it is more than to then follow the steps S9;-
If being no more than, continue to download upgrade file.
In above-mentioned NB mould group upgrade method, in the step S9, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
Further include step S61 in the step S6 in above-mentioned NB mould group upgrade method: updating timeliness judgement: NB-IoT
Whether mould group is more than timeliness according to the preset threshold decision upgrade file load time, if-it is more than to then follow the steps S7;If no
It is more than then to continue loading upgrading file.
In above-mentioned NB mould group upgrade method, in the step S2, if allowing to upgrade, upgrade signal, authorization are sent
Mould group downloads upgrade file, and the upgrade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If
Not allowing to upgrade, upgrade signal, inhibited mode group downloading upgrade file are forbidden in transmission, and it is described that upgrade signal is forbidden to send several times,
Update is then exited when mould group receives feedback signal.
In above-mentioned NB mould group upgrade method, in the step S5, when updating decision, sends and update id signal, award
Quan Mo group enables new firmware, sends and updates id signal using retransmission mechanism, sends successfully to be increased by " in update " for the first time and mark
Know, the update id signal is sent several times, then starts loading upgrading file when mould group receives feedback signal.
Second object of the present invention can be realized by the following technical scheme: a kind of NB mould group update device, including with
In the device of energization: NB-IoT mould group powers on and starts;For downloading the device of decision: checking NB-IoT mould group and confirm
Whether program is allowed to upgrade;Device for upgrade package downloading: NB-IoT mould group downloads from a server preset upgrade file;
For downloading the device of judgement: NB-IoT mould group judges whether upgrade file downloads success;For updating the device of decision: In
Increase " in update " mark in NB-IoT mould group;The device updated for NB-IoT mould group;The liter of NB-IoT mould group load downloading
Grade file;For updating the device of judgement: judging whether upgrade file loads success according to the program information of NB-IoT mould group;With
In the device for updating end: NB-IoT mould group terminates more new state;Device for shutdown: NB-IoT mould group shuts down and disconnects electricity
Source.
It further include for checking decision in the device for output coordinate in above-mentioned NB mould group update device
The device of state: checking in NB-IoT mould group whether identify containing " in update " ,-if it does, thening follow the steps S6;If being free of
Have, thens follow the steps S2.
It further include for downloading timeliness in the device for downloading judgement in above-mentioned NB mould group update device
The device of judgement: whether NB-IoT mould group is more than timeliness according to preset threshold decision upgrade file download time, if-be more than,
Then follow the steps S9;If being no more than, continue to download upgrade file.
In above-mentioned NB mould group update device, in the device for shutdown, the shutdown of NB-IoT mould group is provided with
The delay time of 5S.
It further include being used in the device updated for NB-IoT mould group in above-mentioned NB mould group update device
Update the device of timeliness judgement: whether NB-IoT mould group is more than timeliness according to the preset threshold decision upgrade file load time ,-
If being more than, S7 is thened follow the steps;If being no more than, continue loading upgrading file.
In above-mentioned NB mould group update device, in the device for downloading decision, if allowing to upgrade, send
Upgrade signal, authorization mould group download upgrade file, and the upgrade signal sends several times, then downloads when mould group receives feedback signal
Upgrade file;If not allowing to upgrade, upgrade signal, inhibited mode group downloading upgrade file are forbidden in transmission, described that upgrading is forbidden to believe
It number sends several times, then exits update when mould group receives feedback signal.
In above-mentioned NB mould group update device, in the device for updating decision, when updating decision, send more
New logo signal, authorization mould group enable new firmware, send and update id signal using retransmission mechanism, send successfully just increase for the first time
Add and identified " in update ", the update id signal is sent several times, then starts loading upgrading text when mould group receives feedback signal
Part.
Third object of the present invention can be realized by the following technical scheme: a kind of NB mould group updating apparatus, comprising:
NB-IoT mould group;One or more processors;Memory;And one or more programs, wherein one or more of programs
It is stored in the memory, and is configured to be executed by one or more of processors, described program includes being used for
Execute a kind of following steps: NB mould group upgrade method, comprising the following steps: S1: be powered: NB-IoT mould group powers on and opens
It is dynamic;S2: downloading decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade;S3: upgrade package downloading: NB-IoT mould group
Download from a server preset upgrade file;S4: downloading judgement: NB-IoT mould group judges whether upgrade file downloads success;
S5: it updates decision: increasing " in update " mark in NB-IoT mould group;S6:NB-IoT mould group updates;Under the load of NB-IoT mould group
The upgrade file of load;S7: it updates judgement: judging whether upgrade file loads success according to the program information of NB-IoT mould group;S8:
Update terminates: NB-IoT mould group terminates more new state;S9: shutdown: NB-IoT mould group shuts down and disconnects power supply.
Further include step S11 after the step S1 in above-mentioned NB mould group updating apparatus: checking decision-making state: checking
Whether identified containing " in update " in NB-IoT mould group ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
It further include step S41 in the step S4 in above-mentioned NB mould group updating apparatus: downloading timeliness judgement: NB-
Whether IoT mould group is more than timeliness according to preset threshold decision upgrade file download time, if-it is more than to then follow the steps S9;-
If being no more than, continue to download upgrade file.
In above-mentioned NB mould group updating apparatus, in the step S9, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
Further include step S61 in the step S6 in above-mentioned NB mould group updating apparatus: updating timeliness judgement: NB-IoT
Whether mould group is more than timeliness according to the preset threshold decision upgrade file load time, if-it is more than to then follow the steps S7;If no
It is more than then to continue loading upgrading file.
In above-mentioned NB mould group updating apparatus, in the step S2, if allowing to upgrade, upgrade signal, authorization are sent
Mould group downloads upgrade file, and the upgrade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If
Not allowing to upgrade, upgrade signal, inhibited mode group downloading upgrade file are forbidden in transmission, and it is described that upgrade signal is forbidden to send several times,
Update is then exited when mould group receives feedback signal.
In above-mentioned NB mould group updating apparatus, in the step S5, when updating decision, sends and update id signal, award
Quan Mo group enables new firmware, sends and updates id signal using retransmission mechanism, sends successfully to be increased by " in update " for the first time and mark
Know, the update id signal is sent several times, then starts loading upgrading file when mould group receives feedback signal.
Fourth object of the present invention can be realized by the following technical scheme: a kind of storage medium, be stored with and NB-
The computer program that IoT mould group is used in combination, the computer program can be executed by processor to complete following steps: S1: logical
Electricity: NB-IoT mould group powers on and starts;S2: downloading decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade;
S3: upgrade package downloading: NB-IoT mould group downloads from a server preset upgrade file;S4: downloading judgement: NB-IoT mould group is sentenced
Whether disconnected upgrade file downloads success;S5: it updates decision: increasing " in update " mark in NB-IoT mould group;S6:NB-IoT mould
Group updates;The upgrade file of NB-IoT mould group load downloading;S7: it updates judgement: being judged according to the program information of NB-IoT mould group
Whether upgrade file loads success;S8: update terminates: NB-IoT mould group terminates more new state;S9: shutdown: NB-IoT mould group is closed
Machine simultaneously disconnects power supply.
Further include step S11 after the step S1 in above-mentioned storage medium: checking decision-making state: checking NB-IoT
Whether identified containing " in update " in mould group ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
It further include step S41 in the step S4 in above-mentioned storage medium: downloading timeliness judgement: NB-IoT mould group
It whether is more than timeliness according to preset threshold decision upgrade file download time, if-it is more than to then follow the steps S9;If not surpassing
It crosses, then continues to download upgrade file.
In above-mentioned storage medium, in the step S9, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
Further include step S61 in the step S6 in above-mentioned storage medium: updating timeliness judgement: NB-IoT mould group root
It whether is more than timeliness according to the preset threshold decision upgrade file load time, if-it is more than to then follow the steps S7;If being no more than,
Then continue loading upgrading file.
In above-mentioned storage medium, in the step S2, if allowing to upgrade, send under upgrade signal, authorization mould group
Upgrade file is carried, the upgrade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If do not allowed
Upgrading, upgrade signal, inhibited mode group downloading upgrade file are forbidden in transmission, described that upgrade signal is forbidden to send several times, when mould group
It receives feedback signal and then exits update.
In above-mentioned storage medium, in the step S5, when updating decision, sends and update id signal, authorization mould group
New firmware is enabled, sends and updates id signal using retransmission mechanism, sends successfully be increased by mark " in update " for the first time, it is described
It updates id signal to send several times, then starts loading upgrading file when mould group receives feedback signal.
Compared with prior art, the NB-IoT mould group in the present invention does not allow program upgrading or upgrade file downloading in satisfaction
When any one in failure or upgrade file load failure requires, NB-IoT mould group will be actively closed, NB-IoT mould is avoided
Group is in standby for a long time, facilitates the service life for extending NB-IoT mould group.
Detailed description of the invention
Fig. 1 is step schematic illustration of the invention.
Specific embodiment
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
As shown in Figure 1, this NB mould group upgrade method, comprising the following steps: S1: be powered: NB-IoT mould group powers on simultaneously
Starting;S2: downloading decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade;S3: upgrade package downloading: NB-IoT mould
Group downloads from a server preset upgrade file;S4: downloading judgement: NB-IoT mould group judges whether upgrade file is downloaded into
Function;S5: it updates decision: increasing " in update " mark in NB-IoT mould group;S6:NB-IoT mould group updates;NB-IoT mould group adds
Carry the upgrade file of downloading;S7: it updates judgement: judging whether upgrade file loads into according to the program information of NB-IoT mould group
Function;S8: update terminates: NB-IoT mould group terminates more new state;S9: shutdown: NB-IoT mould group shuts down and disconnects power supply.
In this implementation, in firmware downloading process, decision judgement can be carried out according to the message that NB-IoT mould group pushes, if a)
" LWEVTIND:7 " is received, then is switched to and [updates decision-making state];If b) receiving " DOWNLOAD FAIL ", switch
To [terminating state];If c) receiving " UPDATE OVER ", it is switched to [delaying state];If d) receiving time-out, cut
It changes to and [terminates state].
In this implementation, judgement is updated: if a) receiving " SUCCESS ", being switched to and [terminate state];If b) received
To " FAILED ", then it is switched to and [terminates state];If c) receiving " UPDATE OVER ", it is switched to [delaying state].
It further describes in detail, in order to prevent the repeated downloads of upgrade file, the time required to reducing upgrading, after step S1, also
Including step S11: it checks decision-making state: checking in NB-IoT mould group whether identify containing " in update " ,-if it does, then executing
Step S6;If not containing, S2 is thened follow the steps.
It further describes in detail, network environment is poor in order to prevent causes NB-IoT mould group long-time downloading upgrade file unsuccessful
It further include step S41 in step S4 to influence the service life of NB-IoT mould group: downloading timeliness judgement: NB-IoT mould group root
It whether is more than timeliness according to preset threshold decision upgrade file download time, if-it is more than to then follow the steps S9;If being no more than,
Then continue to download upgrade file, the threshold value is set as 20min in the present embodiment.
Further describe in detail, NB-IoT mould group moment, which shuts down, in order to prevent leads to system mistake, in step S9, NB-IoT mould group
Shutdown is provided with the delay time of 5S.
It further describes in detail, upgrade file long time loading is unsuccessful in order to prevent causes NB-IoT mould group to be in work for a long time
Make state, further include step S61 in step S6: update timeliness judgement: NB-IoT mould group upgrades text according to preset threshold decision
Whether the part load time is more than timeliness, if-it is more than to then follow the steps S7;If being no more than, continue loading upgrading file, this reality
It applies the threshold value in example and is set as 3min.
It further describes in detail, in step S2, if allowing to upgrade, sends upgrade signal, authorization mould group downloads upgrade file, liter
Grade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If not allowing to upgrade, transmission is forbidden upgrading
Signal, inhibited mode group download upgrade file, forbid upgrade signal to send several times, then exit more when mould group receives feedback signal
Newly.
In the present embodiment, if allowing to upgrade, sending " AT+QLWFoTAIND=2 ", authorization mould group starts to download firmware,
It sends " AT+QLWFoTAIND=2 " and uses retransmission mechanism, receive " oK " and then immediately begin to downloading upgrade file, otherwise retransmit 3 times
Start to download upgrade file again;If not allowing to upgrade, send " AT+QLWFoTAIND=3 ", under notice mould group does not allow
It carries, hair " AT+QLWFoTAIND=3 " uses retransmission mechanism, receives " oK " and then immediately exits from update, otherwise retransmits 3 times and exits again
It updates.
It further describes in detail, in step S5, when updating decision, sends and update id signal, the new firmware of authorization mould group enabling, hair
It send and updates id signal using retransmission mechanism, send successfully be increased by mark " in update " for the first time, it is more to update id signal point
Secondary transmission then starts loading upgrading file when mould group receives feedback signal, sends successfully be increased by mark " in update " for the first time,
Rather than it receives feedback signal and is further added by, in order to ensure to restart generation just during receiving feedback signal,
Cause to restart next time mould group is upgrading and master control also does other work in control mould group.
It in this implementation, when updating decision, sends " AT+QLWFoTAIND=4 ", authorization mould group enables new firmware, sends " AT
+ QLWFoTAIND=4 " uses retransmission mechanism, sends successfully be increased by mark " in update " for the first time, receive " oK " and then open immediately
Otherwise beginning loading upgrading file is retransmitted 3 times and starts loading upgrading file again.
This NB mould group update device, including the device for energization: NB-IoT mould group powers on and starts;For downloading
The device of decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade;Device for upgrade package downloading: NB-IoT mould
Group downloads from a server preset upgrade file;For downloading the device of judgement: whether NB-IoT mould group judges upgrade file
It downloads successfully;For updating the device of decision: increasing " in update " mark in NB-IoT mould group;It is updated for NB-IoT mould group
Device;The upgrade file of NB-IoT mould group load downloading;For updating the device of judgement: being believed according to the program of NB-IoT mould group
Breath judges whether upgrade file loads success;For updating the device terminated: NB-IoT mould group terminates more new state;For shutting down
Device: NB-IoT mould group shuts down and disconnects power supply.
It further describes in detail, further includes the device for checking decision-making state in the device for output coordinate: checking
Whether identified containing " in update " in NB-IoT mould group ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
It further describes in detail, further includes the device for downloading timeliness judgement: NB-IoT in the device for downloading judgement
Whether mould group is more than timeliness according to preset threshold decision upgrade file download time, if-it is more than to then follow the steps S9;If no
It is more than then to continue to download upgrade file.
It further describes in detail, in the device for shutdown, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
It further describes in detail, further includes the device for updating timeliness judgement in the device updated for NB-IoT mould group:
Whether NB-IoT mould group is more than timeliness according to the preset threshold decision upgrade file load time, if-it is more than to then follow the steps
S7;If being no more than, continue loading upgrading file.
It further describes in detail, in the device for downloading decision, if allowing to upgrade, sends upgrade signal, authorization mould group
Upgrade file is downloaded, upgrade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If not allowing to rise
Grade, transmission forbid upgrade signal, inhibited mode group downloading upgrade file, forbid upgrade signal to send several times, when mould group receives instead
Feedback signal then exits update.
It further describes in detail, in the device for updating decision, when updating decision, sends and update id signal, authorization mould
The new firmware of group enabling sends and updates id signal using retransmission mechanism, sends successfully be increased by mark " in update " for the first time, more
New logo signal is sent several times, then starts loading upgrading file when mould group receives feedback signal.
This NB mould group updating apparatus, comprising: NB-IoT mould group;One or more processors;Memory;And one or more
A program, wherein one or more programs are stored in memory, and are configured to be performed by one or more processors,
Program includes for executing following steps: a kind of NB mould group upgrade method, comprising the following steps: S1: be powered: NB-IoT mould group connects
Energization source simultaneously starts;S2: downloading decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade;S3: upgrade package downloading:
NB-IoT mould group downloads from a server preset upgrade file;S4: downloading judgement: whether NB-IoT mould group judges upgrade file
It downloads successfully;S5: it updates decision: increasing " in update " mark in NB-IoT mould group;S6:NB-IoT mould group updates;NB-IoT
The upgrade file of mould group load downloading;S7: it updates judgement: judging whether upgrade file adds according to the program information of NB-IoT mould group
It carries successfully;S8: update terminates: NB-IoT mould group terminates more new state;S9: shutdown: NB-IoT mould group shuts down and disconnects power supply.
Further describe in detail, further include step S11 after step S1: check decision-making state: check NB-IoT mould group in whether
It is identified containing " in update " ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
Further describe in detail, further include step S41 in step S4: downloading timeliness judgement: NB-IoT mould group is according to preset threshold
Value judges whether upgrade file download time is more than timeliness, if-it is more than to then follow the steps S9;If being no more than, continue to download
Upgrade file.
It further describes in detail, in step S9, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
Further describe in detail, further include step S61 in step S6: update timeliness judgement: NB-IoT mould group is according to preset threshold
Value judges whether the upgrade file load time is more than timeliness, if-it is more than to then follow the steps S7;If being no more than, continue to load
Upgrade file.
It further describes in detail, in step S2, if allowing to upgrade, sends upgrade signal, authorization mould group downloads upgrade file, liter
Grade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If not allowing to upgrade, transmission is forbidden upgrading
Signal, inhibited mode group download upgrade file, forbid upgrade signal to send several times, then exit more when mould group receives feedback signal
Newly.
It further describes in detail, in step S5, when updating decision, sends and update id signal, the new firmware of authorization mould group enabling, hair
It send and updates id signal using retransmission mechanism, send successfully be increased by mark " in update " for the first time, it is more to update id signal point
Secondary transmission then starts loading upgrading file when mould group receives feedback signal.
This storage medium, is stored with the computer program being used in combination with NB-IoT mould group, and computer program can be processed
Device is executed to complete following steps: S1: be powered: NB-IoT mould group powers on and starts;S2: downloading decision: NB-IoT is checked
Mould group simultaneously is confirmed whether that program is allowed to upgrade;S3: upgrade package downloading: NB-IoT mould group downloads from a server preset upgrading text
Part;S4: downloading judgement: NB-IoT mould group judges whether upgrade file downloads success;S5: decision is updated: in NB-IoT mould group
Increase " in update " mark;S6:NB-IoT mould group updates;The upgrade file of NB-IoT mould group load downloading;S7: judgement is updated:
Judge whether upgrade file loads success according to the program information of NB-IoT mould group;S8: update terminates: NB-IoT mould group terminates more
New state;S9: shutdown: NB-IoT mould group shuts down and disconnects power supply.
Further describe in detail, further include step S11 after step S1: check decision-making state: check NB-IoT mould group in whether
It is identified containing " in update " ,-if it does, thening follow the steps S6;If not containing, S2 is thened follow the steps.
Further describe in detail, further include step S41 in step S4: downloading timeliness judgement: NB-IoT mould group is according to preset threshold
Value judges whether upgrade file download time is more than timeliness, if-it is more than to then follow the steps S9;If being no more than, continue to download
Upgrade file.
It further describes in detail, in step S9, NB-IoT mould group, which is shut down, is provided with the delay time of 5S.
Further describe in detail, further include step S61 in step S6: update timeliness judgement: NB-IoT mould group is according to preset threshold
Value judges whether the upgrade file load time is more than timeliness, if-it is more than to then follow the steps S7;If being no more than, continue to load
Upgrade file.
It further describes in detail, in step S2, if allowing to upgrade, sends upgrade signal, authorization mould group downloads upgrade file, liter
Grade signal is sent several times, then downloads upgrade file when mould group receives feedback signal;If not allowing to upgrade, transmission is forbidden upgrading
Signal, inhibited mode group download upgrade file, forbid upgrade signal to send several times, then exit more when mould group receives feedback signal
Newly.
It further describes in detail, in step S5, when updating decision, sends and update id signal, the new firmware of authorization mould group enabling, hair
It send and updates id signal using retransmission mechanism, send successfully be increased by mark " in update " for the first time, it is more to update id signal point
Secondary transmission then starts loading upgrading file when mould group receives feedback signal.
Specific embodiment described herein is only an example for the spirit of the invention.The neck of technology belonging to the present invention
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.
Although a large amount of terms are used more herein, it does not exclude the possibility of using other terms.Use these
Term is only for the convenience of describing and explaining the nature of the invention;It is construed as any additional limitation all
It is to be disagreed with spirit of that invention.
Claims (10)
1. a kind of NB mould group upgrade method, which comprises the following steps:
S1: be powered: NB-IoT mould group powers on and starts;
S2: downloading decision: checking NB-IoT mould group and is confirmed whether that program is allowed to upgrade,
If allowing, S3 is thened follow the steps;
If not allowing, S9 is thened follow the steps;
S3: upgrade package downloading: NB-IoT mould group downloads from a server preset upgrade file;
S4: downloading judgement: NB-IoT mould group judges whether upgrade file downloads success,
If success, thens follow the steps S5;
If failure, thens follow the steps S8;
S5: it updates decision: increasing " in update " mark in NB-IoT mould group;
S6:NB-IoT mould group updates;The upgrade file of NB-IoT mould group load downloading;
S7: updating judgement: judging whether upgrade file loads success according to the program information of NB-IoT mould group,
If success, thens follow the steps S8;
If failure, thens follow the steps S9;
S8: update terminates: NB-IoT mould group terminates more new state;
S9: shutdown: NB-IoT mould group shuts down and disconnects power supply.
2. a kind of NB mould group upgrade method according to claim 1, which is characterized in that after the step S1, further include
Step S11: it checks decision-making state: checking in NB-IoT mould group whether identify containing " in update " ,-if it does, thening follow the steps
S6;If not containing, S2 is thened follow the steps.
3. a kind of NB mould group upgrade method according to claim 1, which is characterized in that in the step S4, further include
Step S41: downloading timeliness judgement: whether NB mould group is more than timeliness according to preset threshold decision upgrade file download time, if-
It is more than to then follow the steps S9;If being no more than, continue to download upgrade file.
4. a kind of NB mould group upgrade method according to claim 1, which is characterized in that in the step S9, NB-IoT mould
Group shutdown is provided with the delay time of 5S.
5. a kind of NB mould group upgrade method according to claim 1, which is characterized in that further include step in the step S6
Rapid S61: update timeliness judgement: whether NB mould group is more than timeliness according to the preset threshold decision upgrade file load time, if-super
It crosses, thens follow the steps S7;If being no more than, continue loading upgrading file.
6. a kind of NB mould group upgrade method according to claim 1, which is characterized in that in the step S2, if permitted
Perhaps upgrade, send upgrade signal, authorization mould group downloading upgrade file, the upgrade signal is sent several times, when mould group receives instead
Feedback signal then downloads upgrade file;If not allowing to upgrade, upgrade signal, inhibited mode group downloading upgrade file, institute are forbidden in transmission
It states and upgrade signal is forbidden to send several times, then exit update when mould group receives feedback signal.
7. a kind of NB mould group upgrade method according to claim 1, which is characterized in that in the step S5, update is determined
It when plan, sends and updates id signal, the new firmware of authorization mould group enabling, transmission updates id signal and uses retransmission mechanism, for the first time
It sends successfully to be increased by " in update " and identify, the update id signal sends several times, then opens when mould group receives feedback signal
Beginning loading upgrading file.
8. a kind of NB mould group update device, which is characterized in that including
Device for energization: NB-IoT mould group powers on and starts;
For downloading the device of decision: checking NB-IoT mould group and be confirmed whether that program is allowed to upgrade;
Device for upgrade package downloading: NB-IoT mould group downloads from a server preset upgrade file;
For downloading the device of judgement: NB-IoT mould group judges whether upgrade file downloads success;
For updating the device of decision: increasing " in update " mark in NB-IoT mould group;
The device updated for NB-IoT mould group;The upgrade file of NB-IoT mould group load downloading;
For updating the device of judgement: judging whether upgrade file loads success according to the program information of NB-IoT mould group;
For updating the device terminated: NB-IoT mould group terminates more new state;
Device for shutdown: NB-IoT mould group shuts down and disconnects power supply.
9. a kind of NB mould group updating apparatus characterized by comprising NB-IoT mould group;One or more processors;Memory;
And one or more programs, wherein one or more of programs are stored in the memory, and be configured to by
One or more of processors execute, and described program includes for executing one kind as described in claim 1-7 any one
NB mould group upgrade method.
10. a kind of storage medium is stored with the computer program being used in combination with NB mould group, which is characterized in that the computer
Program can be executed by processor to complete a kind of NB mould group upgrade method as described in claim 1-7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910674414.5A CN110427201A (en) | 2019-07-25 | 2019-07-25 | A kind of NB mould group upgrade method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910674414.5A CN110427201A (en) | 2019-07-25 | 2019-07-25 | A kind of NB mould group upgrade method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110427201A true CN110427201A (en) | 2019-11-08 |
Family
ID=68412294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910674414.5A Pending CN110427201A (en) | 2019-07-25 | 2019-07-25 | A kind of NB mould group upgrade method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110427201A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111897560A (en) * | 2020-08-27 | 2020-11-06 | 吉林大学 | NB-IoT module-based program upgrading system, method, device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
CN101685401A (en) * | 2008-09-22 | 2010-03-31 | 中国科学院计算技术研究所 | Remote wireless programming method and chip for supporting remote wireless programming |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN108011935A (en) * | 2017-11-27 | 2018-05-08 | 海信集团有限公司 | A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment |
CN109669708A (en) * | 2018-11-02 | 2019-04-23 | 金卡智能集团股份有限公司 | Remote upgrade method for modularization internet-of-things terminal equipment |
CN109982355A (en) * | 2018-12-26 | 2019-07-05 | 深圳市有方科技股份有限公司 | It is preserved and recovered the method and device thereof, terminal and storage medium of network path |
-
2019
- 2019-07-25 CN CN201910674414.5A patent/CN110427201A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101004691A (en) * | 2007-01-23 | 2007-07-25 | 北京映翰通网络技术有限公司 | Method and device for updating firmware program |
CN101685401A (en) * | 2008-09-22 | 2010-03-31 | 中国科学院计算技术研究所 | Remote wireless programming method and chip for supporting remote wireless programming |
CN103136013A (en) * | 2011-12-01 | 2013-06-05 | 腾讯科技(深圳)有限公司 | Method and system of software upgrade |
CN108011935A (en) * | 2017-11-27 | 2018-05-08 | 海信集团有限公司 | A kind of programme upgrade method of NB-IOT equipment, server and NB-IOT equipment |
CN109669708A (en) * | 2018-11-02 | 2019-04-23 | 金卡智能集团股份有限公司 | Remote upgrade method for modularization internet-of-things terminal equipment |
CN109982355A (en) * | 2018-12-26 | 2019-07-05 | 深圳市有方科技股份有限公司 | It is preserved and recovered the method and device thereof, terminal and storage medium of network path |
Non-Patent Citations (1)
Title |
---|
利尔达: "和你一起聊聊NB-IoT】OneNET FOTA基本流程和注意事项", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/67595038》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111897560A (en) * | 2020-08-27 | 2020-11-06 | 吉林大学 | NB-IoT module-based program upgrading system, method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10961651B2 (en) | Internet of things washing machine control method, control system, and washing machine | |
CN103677946B (en) | Method and system for updating elevator device control programs | |
CN106067840B (en) | Remote debugging method and system for on-orbit satellite | |
CN103533634A (en) | Profile activation system, eUICC and profile activation method of eUICC | |
CN107168739A (en) | POS, POS wireless communication module firmware upgrade method and device | |
CN110286941A (en) | Gray scale dissemination method, device, storage medium and electronic equipment | |
US20220417086A1 (en) | Management of IoT Devices in Wireless Communication Networks | |
CN111817874A (en) | Remote maintenance system and method for electric power internet of things terminal equipment | |
CN113163414B (en) | Information processing method and near-real-time radio access network controller | |
CN104503782A (en) | Method for remote software upgrading of in-situ relay protection device | |
CN111240713A (en) | Method for detecting remote breakpoint continuous transmission through power utilization | |
CN106557347A (en) | Oftware updating method and device | |
CN109067559A (en) | A kind of device updating method and device | |
CN109857000B (en) | Automatic startup control method and device and remote controller | |
US20060143606A1 (en) | Management of persistent software applications | |
CN110427201A (en) | A kind of NB mould group upgrade method, device, equipment and storage medium | |
CN103227782A (en) | Interphone, client, remote server, software distributing method and software updating method | |
CN110865826B (en) | Robot software upgrading method, device, equipment and storage medium | |
CN108011871A (en) | A kind of remote assistance processing method and equipment | |
US11928458B2 (en) | Method for updating a digital system | |
CN104469278B (en) | A kind of monitoring system upgrade method and device | |
CN102487391B (en) | Method and system for upgrading remote control edition | |
CN113791800A (en) | Automatic parking control module remote upgrading method and system and automobile | |
KR20180031415A (en) | Update system for internet of things devices | |
CN110286933A (en) | A kind of cross-system serial ports upgrade method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191108 |