CN110336862A - The method for upgrading system of batch Intelligent hardware - Google Patents

The method for upgrading system of batch Intelligent hardware Download PDF

Info

Publication number
CN110336862A
CN110336862A CN201910531060.9A CN201910531060A CN110336862A CN 110336862 A CN110336862 A CN 110336862A CN 201910531060 A CN201910531060 A CN 201910531060A CN 110336862 A CN110336862 A CN 110336862A
Authority
CN
China
Prior art keywords
intelligent hardware
server
bandwidth
upgrading
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910531060.9A
Other languages
Chinese (zh)
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.)
SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI 2345 NETWORK TECHNOLOGY 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 SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI 2345 NETWORK TECHNOLOGY Co Ltd
Priority to CN201910531060.9A priority Critical patent/CN110336862A/en
Publication of CN110336862A publication Critical patent/CN110336862A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The present invention relates to the method for upgrading system of batch Intelligent hardware, a time is randomly generated in each Intelligent hardware terminal, each Intelligent hardware terminal only sends downloading upgrade package file request to server when reaching the time respectively generated, after server receives the request, server judges whether bandwidth is enough, when server bandwidth is inadequate, intelligent terminal downloading upgrading APMB package failure, when server bandwidth is enough, intelligent terminal downloading upgrading APMB package success, when intelligent terminal downloads upgrading APMB package failure, Intelligent hardware delay a period of time retransmits downloading upgrade package file request, the time of delay is generated by exponential backoff algorithm.Terminal of the invention itself is downloaded according to algorithmic delay, reduces the communication between terminal and server, the mistake that reduces server stress and may cause, more efficiently.Solve the congestion problems occurred when upgrading.

Description

The method for upgrading system of batch Intelligent hardware
Technical field
The present invention relates to the method for upgrading system of batch Intelligent hardware.
Background technique
Batch Intelligent hardware wants upgrade-system at present, mainly passes through following 3 steps.
1, the Intelligent hardware of batch sends upgrade request from the same network to server simultaneously, current Intelligent hardware version This number is sent to server.
2, after server obtains the version number of Intelligent hardware, according to the version number of Intelligent hardware newest in current server, Judge whether current Intelligent hardware needs to upgrade, if necessary to upgrade, the path of upgrade package returned into Intelligent hardware.
3, after Intelligent hardware receives upgrading packet address, start to download upgrade package;After the completion of downloading, upgrade package is decompressed;Decompression After the completion, according to the updating content system of upgrade package.
Upgrading process has the following disadvantages at this stage:
1, terminal device bandwidth problem is not accounted for, batch smart machine is gone out from the same network simultaneously, will cause this Terminal network congestion, it may appear that upgrade file failed download.
2, server bandwidth problem is not accounted for, when Intelligent hardware is more, while upgrade server is carried out and will appear Bandwidth is inadequate, causes server and a series of uncertain problems of Intelligent hardware.
3, there is request, server just gives data, and control force is poor, and scalability is poor.
Summary of the invention
The main purpose of the present invention is to provide the upgrade method of congestion occur when a kind of upgrading of solution Intelligent hardware.
The upgrading the following steps are included:
A time is randomly generated in each Intelligent hardware terminal, and each Intelligent hardware terminal is only when reaching the time respectively generated Downloading upgrade package file request is sent to server,
After server receives the request, server judges whether bandwidth is enough, when server bandwidth is inadequate, service Device refusal sends upgrading APMB package and gives Intelligent hardware terminal, the failure of Intelligent hardware terminal downloads;When server bandwidth is enough, clothes Business device sends upgrading APMB package and gives Intelligent hardware terminal, and Intelligent hardware terminal downloads are successful,
Whenever intelligent terminal failed download, Intelligent hardware delay a period of time retransmits downloading upgrade package file request, prolongs When time by exponential backoff algorithm generate,
Wherein, the exponential backoff algorithm are as follows:
I. a timeslice t is determined,
Ii. after first time failed download occurring, each Intelligent hardware waits 0 or 1 t to retransmit downloading upgrade package file request,
Iii. after second of failed download occurs, each Intelligent hardware waits 0,1,2 or 3 t to retransmit downloading upgrading APMB package and asks It asks,
Iv. after i-th failed download occurring, downloading upgrade package file request is retransmited after waiting n * t, n is in 0 and 2i- 1 it Between a randomly selected integer, i is integer greater than 2.
Further, the above method also has following optimization or supplement step:
Intelligent hardware downloading is upgraded after completing upgrading APMB package.
Server judges the whether enough methods of bandwidth specifically:
The intelligent terminal sum bandwidth of current accessed is more than or equal to the bandwidth that current server can be supported, server bandwidth is not It is enough,
The intelligent terminal sum bandwidth of current accessed is less than the bandwidth that current server can be supported, server bandwidth is enough.
Terminal of the invention itself is downloaded according to algorithmic delay, reduces the communication between terminal and server, reduces clothes Business device pressure and the mistake that may cause, more efficiently.Solve the congestion problems occurred when upgrading.
Detailed description of the invention
Fig. 1 is the step flow chart of the system upgrade of batch Intelligent hardware.
Specific embodiment
Hereinafter, be described further for the present invention in conjunction with the embodiments, embodiment is only used for illustrating rather than limit Determine protection scope of the present invention.
1, terminal intelligent hardware dispersion sends request.
1) time is randomly generated in each Intelligent hardware terminal.
2) only time is up, just sends upgrade request to server, and the time is less than, and does not send upgrading to server and asks It asks.
2, server bandwidth load validation: the box quantity that server can be supported simultaneously.
1) a upgrade package file size is determined first.
2) box quantity=server total bandwidth that server can be supported simultaneously is divided by upgrade package file size.
3, Intelligent hardware upgrading judgement.
1) Intelligent hardware request upgrading after, if server bandwidth not enough (that is: current accessed box sum bandwidth >=when The bandwidth that preceding server can be supported), intelligent terminal then downloads upgrading APMB package failure, if bandwidth reaches (that is: current accessed The bandwidth that box sum bandwidth < current server can be supported), intelligent terminal is then downloaded upgrade package.
2) after upgrading APMB package is completed in Intelligent hardware downloading, it will do it normal upgrading.
3) after Intelligent hardware downloading upgrading APMB package failure, delay a period of time is re-requested, and delay time passes through index Back off algorithm generates.
4, exponential backoff algorithm.
1) method for upgrading system of batch Intelligent hardware determines a timeslice t.
2) after first time failed download occurs for the method for upgrading system of batch Intelligent hardware, each Intelligent hardware waits 0 or 1 T starts request upgrading again.
3) after second of failed download occurs for the method for upgrading system of batch Intelligent hardware, each Intelligent hardware waits 0,1,2 Or 3 t start request upgrading again.
4) batch Intelligent hardware method for upgrading system occur i-th failed download after, 0 to 2 i power subtract 1 between It is randomly chosen a several n, starts request upgrading after waiting n * t again.

Claims (3)

1. a kind of method for upgrading system of batch Intelligent hardware, it is characterised in that the following steps are included:
A time is randomly generated in each Intelligent hardware terminal, and each Intelligent hardware terminal is only when reaching the time respectively generated Downloading upgrade package file request is sent to server,
After server receives the request, server judges whether bandwidth is enough, when server bandwidth is inadequate, service Device refusal sends upgrading APMB package and gives Intelligent hardware terminal, the failure of Intelligent hardware terminal downloads;When server bandwidth is enough, clothes Business device sends upgrading APMB package and gives Intelligent hardware terminal, and Intelligent hardware terminal downloads are successful,
Whenever the failure of Intelligent hardware terminal downloads, Intelligent hardware delay a period of time retransmits downloading upgrading APMB package and asks It asks, the time of delay is generated by exponential backoff algorithm,
Wherein, the exponential backoff algorithm are as follows:
I. a timeslice t is determined,
Ii. after first time failed download occurring, each Intelligent hardware waits 0 or 1 t to retransmit downloading upgrade package file request,
Iii. after second of failed download occurs, each Intelligent hardware waits 0,1,2 or 3 t to retransmit downloading upgrading APMB package again Request,
Iv. after i-th failed download occurring, downloading upgrade package file request is retransmited after waiting n * t, n is in 0 and 2i- 1 it Between a randomly selected integer, i is integer greater than 2.
2. the method for upgrading system of batch Intelligent hardware as described in claim 1, it is characterised in that Intelligent hardware downloading is completed Upgraded after upgrading APMB package.
3. the method for upgrading system of batch Intelligent hardware as described in claim 1, it is characterised in that server judges that bandwidth is No enough methods are as follows:
The Intelligent hardware total number of terminals bandwidth of current accessed is more than or equal to the bandwidth that current server can be supported, server bandwidth Not enough,
The Intelligent hardware total number of terminals bandwidth of current accessed is less than the bandwidth that current server can be supported, server bandwidth foot It is enough.
CN201910531060.9A 2019-06-19 2019-06-19 The method for upgrading system of batch Intelligent hardware Pending CN110336862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910531060.9A CN110336862A (en) 2019-06-19 2019-06-19 The method for upgrading system of batch Intelligent hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910531060.9A CN110336862A (en) 2019-06-19 2019-06-19 The method for upgrading system of batch Intelligent hardware

Publications (1)

Publication Number Publication Date
CN110336862A true CN110336862A (en) 2019-10-15

Family

ID=68142770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910531060.9A Pending CN110336862A (en) 2019-06-19 2019-06-19 The method for upgrading system of batch Intelligent hardware

Country Status (1)

Country Link
CN (1) CN110336862A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852508A (en) * 2021-09-29 2021-12-28 厦门亿联网络技术股份有限公司 Communication method and device under scene of equipment batch deployment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645929A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system of synchronization initiated by dynamic content distributing service server
CN103259672A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Software upgrading method and software upgrading system
CN104704908A (en) * 2012-10-05 2015-06-10 高通股份有限公司 Apparatus and method for deferring cell update messages from user equipment
CN107015817A (en) * 2017-05-25 2017-08-04 孙文现 A kind of method of equipment firmware aerial upgrade

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645929A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system of synchronization initiated by dynamic content distributing service server
CN103259672A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Software upgrading method and software upgrading system
CN104704908A (en) * 2012-10-05 2015-06-10 高通股份有限公司 Apparatus and method for deferring cell update messages from user equipment
CN107015817A (en) * 2017-05-25 2017-08-04 孙文现 A kind of method of equipment firmware aerial upgrade

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852508A (en) * 2021-09-29 2021-12-28 厦门亿联网络技术股份有限公司 Communication method and device under scene of equipment batch deployment

Similar Documents

Publication Publication Date Title
US10541869B2 (en) Upgrading of controller cluster
CN102510409A (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN110471692B (en) Over-the-air upgrading method, device, equipment and storage medium of terminal program
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN104866339A (en) Distributed persistent management method, system and device of FOTA data
CN110865842A (en) OTA (over the air) upgrading method and device
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN108874437A (en) A kind of online cloud update method of android application program
WO2022142153A1 (en) Electricity meter upgrading method and system, smart meter, and storage medium
CN113746892A (en) Remote upgrading method and wireless terminal equipment
CN110336862A (en) The method for upgrading system of batch Intelligent hardware
CN110147246A (en) Version checking method and device, storage medium and the terminal of space download technology
CN113179324B (en) Block chain link point and service processing method executed by block chain link point
CN108920962A (en) Firmware downloads sign test method, firmware dissemination method, mobile terminal and server
CN110022287A (en) A kind of asynchronous distributed document transmission method, terminal device and storage medium
CN107908408A (en) A kind of long-distance cloud mobile phone application installation method
CN111372224A (en) Method, device and equipment for sharing seed code number by eSIM (embedded subscriber identity Module)
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN111352642A (en) Service equipment and service software upgrading method
CN111158947A (en) Method for making pre-copy file, server and readable storage medium
CN112615835B (en) Charging pile multi-communication protocol support method and storage medium
JPH10289172A (en) Data transfer system
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN111240867B (en) Information communication system and method
CN112333262A (en) Data updating prompting method and device, computer equipment and readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191015