CN107278366A - A kind of method for down loading and its download system for improving download efficiency - Google Patents

A kind of method for down loading and its download system for improving download efficiency Download PDF

Info

Publication number
CN107278366A
CN107278366A CN201780000413.1A CN201780000413A CN107278366A CN 107278366 A CN107278366 A CN 107278366A CN 201780000413 A CN201780000413 A CN 201780000413A CN 107278366 A CN107278366 A CN 107278366A
Authority
CN
China
Prior art keywords
terminal
management system
download
terminal management
downloading task
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
CN201780000413.1A
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.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Publication of CN107278366A publication Critical patent/CN107278366A/en
Pending legal-status Critical Current

Links

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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading

Abstract

The present invention relates to network download technology field, more particularly to a kind of method for down loading and its download system for improving download efficiency comprises the following steps:Terminal sends end message and downloading task ID to terminal management system;Judge whether there is identical end message and downloading task ID in terminal management system, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;Confirm bag to terminal if so, then sending and downloading;Confirm bag to terminal if it is not, then calling and choosing to send to download after bag dynamic base;Terminal, which receives to download, to be confirmed after bag, and transmission downloads request to terminal management system;Terminal management system is received after download request, sends corresponding file to terminal.Terminal management system is after the end message and download information of terminal transmission is received, first judged, selectivity, which is called, chooses bag dynamic base, makes identical terminal when repeatedly sending end message and download information to terminal management system, only calls and once choose bag dynamic base.

Description

A kind of method for down loading and its download system for improving download efficiency
Technical field
The present invention relates to network download technology field, more particularly to a kind of method for down loading for improving download efficiency and its download System.
Background technology
With scientific and technological progress, current electronic product is used widely in industry-by-industry.User can be by making Abundant function is realized with terminal device.Along with the popularization of great amount of terminals equipment, necessarily occur to terminal in certain limit The terminal management system being managed.While user's a large amount of using terminal functions, great amount of terminals is connected to terminal management system System, causes download increasing.
Because terminal heartbeat packet finds have after downloading task, end message is sent to terminal management system, terminal management system System is received every time to be required for calling dynamic base to carry out choosing bag according to end message after end message, chooses packet procedures complexity and consumption When, add downloading flow.
The content of the invention
The technical problems to be solved by the invention are:A kind of method for down loading for improving download efficiency is provided and its system is downloaded System, solves existing terminal in downloading process, terminal management system is received every time will be according to end message after end message Call dynamic base progress to choose bag to cause to download time-consuming, the problem of downloading flow is big.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of download side for improving download efficiency Method, comprises the following steps:
Terminal sends end message and downloading task ID to terminal management system;The end message is protocol platform, end Hold platform, identification of the manufacturer, terminal pkg (installation kit configuration file), terminal apk (Android installation kit), hardware sequence number, base station and Model name;
After terminal management system receiving terminal information and downloading task ID, judge whether there is identical in terminal management system End message and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to end if it is not, then calling and choosing to send to download after bag dynamic base End;
Terminal, which receives to download, to be confirmed after bag, and transmission downloads request to terminal management system;
Terminal management system is received after download request, sends corresponding file to terminal.
The beneficial effects of the present invention are:The present invention provides a kind of method for down loading for improving download efficiency, terminal management system Unite after the end message and downloading task ID of terminal transmission is received, first judged, if existing in terminal management system Identical end message and downloading task ID, and above-mentioned end message and downloading task ID it is modulated it is used choose bag dynamic base, then not Recall and choose bag dynamic base, terminal management system directly transmits download and confirms bag to terminal;Called by selectivity and choose bag dynamic Storehouse, makes identical terminal when repeatedly sending end message and downloading task ID to terminal management system, only calls and once choose bag Dynamic base, so that reducing terminal management system calls the frequency for choosing bag dynamic base, so as to improve download concurrency, saves terminal again Downloading flow, so as to improve download efficiency.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method for down loading of raising download efficiency of the embodiment of the present invention 1;
Fig. 2 is a kind of schematic flow sheet of the method for down loading of raising download efficiency of the embodiment of the present invention 2;
Fig. 3 is a kind of virtual module schematic diagram of the download system of raising download efficiency of the specific embodiment of the invention;
Label declaration:
1st, terminal sending module;2nd, terminal management system judge module;3rd, terminal management system memory module;4th, terminal conduit Reason system sending module;5th, terminal authentication module;6th, terminal judge module.
Embodiment
To describe technology contents, the objects and the effects of the present invention in detail, below in conjunction with embodiment and coordinate attached Figure is explained.
The most critical design of the present invention is:Terminal management system is receiving the end message and lower information carrying of terminal transmission After breath, first judged, selectively call and choose bag dynamic base, identical terminal is repeatedly being sent end message and download information During to terminal management system, only call and once choose bag dynamic base.
Fig. 1 to Fig. 3 is refer to, a kind of method for down loading of raising download efficiency comprises the following steps:
Terminal sends end message and downloading task ID to terminal management system;The end message is protocol platform, end Hold platform, identification of the manufacturer, terminal pkg (installation kit configuration file), terminal apk (Android installation kit), hardware sequence number, base station and Model name;
After terminal management system receiving terminal information and downloading task ID, judge whether there is identical in terminal management system End message and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to end if it is not, then calling and choosing to send to download after bag dynamic base End;
Terminal, which receives to download, to be confirmed after bag, and transmission downloads request to terminal management system;
Terminal management system is received after download request, sends corresponding file to terminal.
In the method for down loading of above-mentioned raising download efficiency, terminal management system receive terminal transmission end message and After downloading task ID, first judged, if existing identical end message and downloading task ID in terminal management system, and on State end message and downloading task ID it is modulated it is used choose bag dynamic base, then do not recall and choose bag dynamic base, terminal management system is straight Receiving and sending download confirms bag to terminal;Called by selectivity and choose bag dynamic base, identical terminal is repeatedly being sent terminal letter When breath and downloading task ID are to terminal management system, only call and once choose bag dynamic base, called so as to reduce terminal management system The frequency of bag dynamic base is chosen, so as to improve download concurrency, terminal downloads flow is saved again, so as to improve download efficiency.
In the method for down loading of above-mentioned raising download efficiency, " terminal management system receiving terminal information and the downloading task After ID, judge whether there is identical end message and downloading task ID in terminal management system, and above-mentioned end message and download Task ID is modulated used to choose bag dynamic base;Confirm bag to terminal if so, then sending and downloading " specifically include following steps:
After terminal management system receiving terminal information and downloading task ID, judge in terminal management system Redis cachings storehouse With the presence or absence of the end message and downloading task ID MD5 (Message Digest 5) value, thus judge be in terminal management system No have an identical end message and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation Wrap to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values.
In the method for down loading of above-mentioned raising download efficiency, " terminal management system receiving terminal information and the downloading task After ID, judge whether there is identical end message and downloading task ID in terminal management system, and above-mentioned end message and download Task ID is modulated used to choose bag dynamic base;Confirm bag to terminal if it is not, then calling and choosing to send to download after bag dynamic base " specifically include Following steps:
After terminal management system receiving terminal information and downloading task ID, judge to whether there is the end in Redis cachings storehouse The MD5 values of client information and downloading task ID, so as to judge whether to have identical end message in terminal management system and download to appoint Be engaged in ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;
Terminal management system, which sends to download, confirms bag to terminal.
In the method for down loading of above-mentioned raising download efficiency, after described " call and choose bag dynamic base ", in addition to step:
The MD5 values of the received end message of terminal management system deposit and downloading task ID.
In the method for down loading of above-mentioned raising download efficiency, it is described " terminal management system be stored in received end message and Downloading task ID MD5 values " are specially:
Terminal management system is stored in the MD5 values of received end message into Redis cachings storehouse;
Terminal management system is stored in the received corresponding software kit download address to be downloaded of downloading task ID, software kit Size and software kit MD5 values are into Redis cachings storehouse.
In the method for down loading of above-mentioned raising download efficiency, described " terminal sends end message and downloading task ID to terminal Before management system ", in addition to step:
Terminal sends heartbeat packet to terminal management system;The heartbeat packet content includes the identification of the manufacturer of terminal, model name Claim hardware sequence number and base station information;
Terminal management system is received after heartbeat packet, sends corresponding downloading task ID to terminal.
In the method for down loading of above-mentioned raising download efficiency, described " terminal sends heartbeat packet to terminal management system;Terminal conduit Reason system is received after heartbeat packet, sends corresponding downloading task ID to terminal " specifically include following steps:
Terminal sends heartbeat packet to terminal management system;The heartbeat packet content includes the identification of the manufacturer of terminal, model name Claim hardware sequence number and base station information;
Terminal management system is received after heartbeat packet, sends secure authentication information to terminal;
After the secure authentication information that terminal is received, whether checking terminal has included terminal management system;
If so, then terminal management system sends downloading task ID to terminal.
In the method for down loading of above-mentioned raising download efficiency, in " terminal transmission heartbeat packet to terminal management system;Terminal management System is received after heartbeat packet, sends downloading task ID to terminal;Terminal sends end message and downloading task ID to terminal management System " specifically includes following steps:
Terminal periodically sends heartbeat packet to terminal management system;The heartbeat packet content includes identification of the manufacturer, the type of terminal Number title hardware sequence number and base station information;
Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
When than or equal to the downloading task time started, terminal sends end message and downloading task ID to terminal management System.
In the method for down loading of above-mentioned raising download efficiency, described " terminal sends heartbeat packet to terminal management system;Terminal conduit Reason system is received after heartbeat packet, sends downloading task ID to terminal;Terminal sends end message and downloading task ID to terminal conduit After reason system ", in addition to step:
Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
If it is not, then terminal management system transmission is identified to terminal without downloading task.
In the method for down loading of above-mentioned raising download efficiency, following steps are specifically included:
S1:Terminal periodically sends heartbeat packet to terminal management system;Identification of the manufacturer of the heartbeat packet content including terminal, Model name hardware sequence number and base station information;
S2:Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
S21:If so, then judging whether the terminal has downloading task according to register information;
S212:If so, then sending downloading task ID and downloading task time started to terminal;
S3:When than or equal to the downloading task time started, terminal sends end message and downloading task ID to terminal Management system;The end message includes protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence Number, base station and model name;
S4:After terminal management system receiving terminal information and downloading task ID, judge that terminal management system Redis caches storehouse In with the presence or absence of the end message and downloading task ID MD5 values;
S41:Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download Confirm bag to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 Value;
S42:Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation according to end message generation Bag;
Sending to download confirms bag to terminal;
S421:Terminal management system is stored in the MD5 values of received end message into Redis cachings storehouse;
S422:The received corresponding software kit download address to be downloaded of downloading task ID of terminal management system deposit, Software kit size and software kit MD5 values are into Redis cachings storehouse;
S5:Terminal, which receives to download, to be confirmed after bag, is sent terminal downloads and is asked to terminal management system;
S6:Terminal management system is received after download request, sends corresponding file to terminal.
It refer to Fig. 3, a kind of download system of raising download efficiency, including:
Terminal sending module:End message and downloading task ID are sent to terminal management system for terminal;The terminal Information is protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence number, base station and model name;
Terminal management system judge module:After terminal management system receiving terminal information and downloading task ID, judge Whether identical end message and downloading task ID are had in terminal management system, and above-mentioned end message and downloading task ID are modulated It is used to choose bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to end if it is not, then calling and choosing to send to download after bag dynamic base End;
Terminal sending module 1:Receive to download for terminal and confirm after bag, transmission downloads request to terminal management system;
Terminal management system sending module 4:Terminal management system is received after download request, sends corresponding file to end End.
In the download system of above-mentioned raising download efficiency, including:
Terminal management system judge module 2:After terminal management system receiving terminal information and downloading task ID, judge With the presence or absence of the MD5 values of the end message and downloading task ID in terminal management system Redis cachings storehouse, so as to judge terminal conduit Whether identical end message and downloading task ID is had in reason system, and above-mentioned end message and downloading task ID is modulated used chooses Bag dynamic base;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation Wrap to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values.
In the download system of above-mentioned raising download efficiency, including:
Terminal management system judge module 2:After terminal management system receiving terminal information and downloading task ID, judge With the presence or absence of the end message and downloading task ID MD5 values in Redis cachings storehouse, thus judge in terminal management system whether There are an identical end message and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;
In the download system of above-mentioned raising download efficiency, including:
Terminal management system memory module 3:The end message received for terminal management system deposit and downloading task ID MD5 values.
In the download system of above-mentioned raising download efficiency, including:
Terminal management system storage system 3:The MD5 values of received end message are stored in for terminal management system extremely In Redis cachings storehouse;
Terminal management system storage system 3:The downloading task ID received for terminal management system deposit is corresponding to be treated Software kit download address, software kit size and the software kit MD5 values of download are into Redis cachings storehouse.
In the download system of above-mentioned raising download efficiency, including:
Terminal sending module 1:Heartbeat packet is sent to terminal management system for terminal;The heartbeat packet content includes terminal Identification of the manufacturer, model name hardware sequence number and base station information;
Terminal management system sending module 4:Received for terminal management system after heartbeat packet, send corresponding downloading task ID is to terminal.
In the download system of above-mentioned raising download efficiency, including:
Terminal sending module 1:Heartbeat packet is sent to terminal management system for terminal;The heartbeat packet content includes terminal Identification of the manufacturer, model name hardware sequence number and base station information;
Terminal management system sending module 4:Received for terminal management system after heartbeat packet, send secure authentication information extremely Terminal;
Terminal authentication module 5:After the secure authentication information received for terminal, whether checking terminal has included terminal management System;
If so, then terminal management system sends downloading task ID to terminal.
In the download system of above-mentioned raising download efficiency, including:
Terminal sending module 1:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes Identification of the manufacturer, model name hardware sequence number and the base station information of terminal;
Terminal management system judge module 2:Received for terminal management system after heartbeat packet, judge terminal whether in terminal Management system is registered;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
Terminal sending module:For when than or equal to the downloading task time started, terminal to send end message with Task ID is carried to terminal management system.
In the download system of above-mentioned raising download efficiency, including:
Terminal sending module 1:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes Identification of the manufacturer, model name hardware sequence number and the base station information of terminal;
Terminal judge module 6:Received for terminal management system after heartbeat packet, judge terminal whether in terminal management system Registration;
If it is not, then terminal management system transmission is identified to terminal without downloading task.
In the download system of above-mentioned raising download efficiency, including:
Terminal sending module 1:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes Identification of the manufacturer, model name hardware sequence number and the base station information of terminal;
Terminal management system judge module 2:Received for terminal management system after heartbeat packet, judge terminal whether in terminal Management system is registered;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
Terminal sending module 1:For when than or equal to the downloading task time started, terminal to send end message with Task ID is carried to terminal management system;The end message includes protocol platform, terminal platform, identification of the manufacturer, terminal pkg, end Hold apk, hardware sequence number, base station and model name;
Terminal management system judge module 2:After terminal management system receiving terminal information and downloading task ID, judge With the presence or absence of the MD5 values of the end message and downloading task ID in terminal management system Redis cachings storehouse;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation Wrap to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;Hair Download is sent to confirm bag to terminal;
Terminal management system memory module 3:The MD5 values of received end message are stored in for terminal management system extremely In Redis cachings storehouse;
Terminal management system memory module 3:The downloading task ID received for terminal management system deposit is corresponding to be treated Software kit download address, software kit size and the software kit MD5 values of download are into Redis cachings storehouse;
Terminal sending module 1:Receive to download for terminal and confirm after bag, send terminal downloads and ask to terminal management system System;
Terminal management system sending module 4:Terminal management system is received after download request, sends corresponding file to end End.
Embodiment 1
Fig. 1 is refer to, a kind of method for down loading of raising download efficiency comprises the following steps:
Terminal sends end message and downloading task ID to terminal management system;The end message is protocol platform, end Hold platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence number, base station and model name;
After terminal management system receiving terminal information and downloading task ID, judge whether there is identical in terminal management system End message and downloading task ID, which have been called, chooses bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to end if it is not, then calling and choosing to send to download after bag dynamic base End;
Terminal, which receives to download, to be confirmed after bag, and transmission downloads request to terminal management system;
Terminal management system is received after download request, sends corresponding file to terminal.
Embodiment 2
Fig. 2 is refer to, a kind of method for down loading of raising download efficiency comprises the following steps:
S1:Terminal periodically sends heartbeat packet to terminal management system;Identification of the manufacturer of the heartbeat packet content including terminal, Model name hardware sequence number and base station information;
S2:Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
S21:If so, then judging whether the terminal has downloading task according to register information;
S212:If so, then sending downloading task ID and downloading task time started to terminal;
S3:When than or equal to the downloading task time started, terminal sends end message and downloading task ID to terminal Management system;The end message includes protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence Number, base station and model name;
S4:After terminal management system receiving terminal information and downloading task ID, judge that terminal management system Redis caches storehouse In with the presence or absence of the end message and downloading task ID MD5 values;
S41:Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download Confirm bag to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 Value;
S42:Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation according to end message generation Bag;
Sending to download confirms bag to terminal;
S421:Terminal management system is stored in the MD5 values of received end message into Redis cachings storehouse;
S422:The received corresponding software kit download address to be downloaded of downloading task ID of terminal management system deposit, Software kit size and software kit MD5 values are into Redis cachings storehouse;
S5:Terminal, which receives to download, to be confirmed after bag, is sent terminal downloads and is asked to terminal management system;
S6:Terminal management system is received after download request, sends corresponding file to terminal.
Embodiment 3
(terminal is exemplified by joining enlightening POS)
Terminal POS periodically sends heartbeat packet to platform (mainly to be included:Identification of the manufacturer, model name, hardware sequence number, base The information such as stand), management platform judges whether to register in management platform according to hardware sequence number and manufacturer, type information, if not stepping on Note, then directly return to the unregistered information of terminal, appoints conversely, then checking whether the station terminal has according to register information in platform configuration Business, has and then returns to task ID and job start time to terminal, nothing then returns to no task identification to terminal.
Terminal, which receives platform and returned, task identification and inter-related task information, when than or equal to job start time, Terminal POS to platform send task download message (mainly including end message (including protocol platform, terminal platform, manufacturer mark Knowledge, terminal pkg, terminal apk information) and download information is (such as:The downloading task ID of configuration)), platform obtains task ID+terminal letter MD5 values are ceased, are that Key goes in Redis to inquire about first with task ID+end message MD5 values, if there is record, have, obtain Take correspondence value (program bag download address);Anti-regular transfer POS chooses bag dynamic base and choose bag (dynamic base is believed according to terminal Bag is chosen in breath progress), return program packet-related information (such as download address, file size) after the completion of bag is chosen, by task ID+terminal Information MD5 values are Key, and terminal downloads program is that value is stored in redis, issues program packet-related information.
Terminal is according to photos and sending messages under platform, transmission program bag download request, after the completion of download, and terminal carries out parsing installation.
In summary, in the method for down loading for the raising download efficiency that the present invention is provided, terminal management system is receiving end Hold after the end message sent and downloading task ID, first judged, if existing identical terminal letter in terminal management system Breath and downloading task ID, which have been called, chooses bag dynamic base, then does not recall and choose bag dynamic base, terminal management system directly transmits download Confirm bag to terminal;Called by selectivity and choose bag dynamic base, identical terminal is appointed in repeatedly transmission end message and download When being engaged in ID to terminal management system, only call and once choose bag dynamic base, bag dynamic base is chosen so as to reduce terminal management system and call Frequency, so as to improve download concurrency, terminal downloads flow is saved again, so as to improve download efficiency.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include In the scope of patent protection of the present invention.

Claims (20)

1. a kind of method for down loading for improving download efficiency, it is characterised in that comprise the following steps:
Terminal sends end message and downloading task ID to terminal management system;The end message is protocol platform, terminal is put down Platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence number, base station and model name;
After terminal management system receiving terminal information and downloading task ID, judge whether there is identical terminal in terminal management system Information and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to terminal if it is not, then calling and choosing to send to download after bag dynamic base;
Terminal, which receives to download, to be confirmed after bag, and transmission downloads request to terminal management system;
Terminal management system is received after download request, sends corresponding file to terminal.
2. the method for down loading according to claim 1 for improving the download efficiency, it is characterised in that " terminal management system After receiving terminal information and downloading task ID, judge whether there is identical end message and downloading task in terminal management system ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;Confirm bag to terminal if so, then sending and downloading " Specifically include following steps:
After terminal management system receiving terminal information and downloading task ID, judge in terminal management system Redis cachings storehouse whether In the presence of the MD5 values of the end message and downloading task ID, so as to judge whether there is identical end message in terminal management system With downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation bag extremely Terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values.
3. the method for down loading according to claim 1 for improving the download efficiency, it is characterised in that " terminal management system After receiving terminal information and downloading task ID, judge whether there is identical end message and downloading task in terminal management system ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;Chosen if it is not, then calling after bag dynamic base under transmission Carry and confirm bag to terminal " specifically include following steps:
After terminal management system receiving terminal information and downloading task ID, judge in Redis cachings storehouse with the presence or absence of terminal letter The MD5 values of breath and downloading task ID, so that judge whether there is identical end message and downloading task ID in terminal management system, And above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;
Terminal management system, which sends to download, confirms bag to terminal.
4. the method for down loading according to claim 3 for improving download efficiency, it is characterised in that described " to call and choose bag dynamic Behind storehouse ", in addition to step:
The MD5 values of the received end message of terminal management system deposit and downloading task ID.
5. the method for down loading according to claim 4 for improving the download efficiency, it is characterised in that " terminal management system The MD5 values of the received end message of deposit and downloading task ID " are specially:
Terminal management system is stored in the MD5 values of received end message into Redis cachings storehouse;
Terminal management system is stored in the received corresponding software kit download address to be downloaded of downloading task ID, software kit size And software kit MD5 values are into Redis cachings storehouse.
6. the method for down loading according to claim 1 for improving download efficiency, it is characterised in that described " terminal sends terminal Information and downloading task ID are to terminal management system " before, in addition to step:
Terminal sends heartbeat packet to terminal management system;It is hard that the heartbeat packet content includes the identification of the manufacturer of terminal, model name Part sequence number and base station information;
Terminal management system is received after heartbeat packet, sends corresponding downloading task ID to terminal.
7. the method for down loading according to claim 6 for improving download efficiency, it is characterised in that described " terminal sends heartbeat Wrap to terminal management system;Terminal management system is received after heartbeat packet, sends corresponding downloading task ID to terminal " specifically include Following steps:
Terminal sends heartbeat packet to terminal management system;It is hard that the heartbeat packet content includes the identification of the manufacturer of terminal, model name Part sequence number and base station information;
Terminal management system is received after heartbeat packet, sends secure authentication information to terminal;
After the secure authentication information that terminal is received, whether checking terminal has included terminal management system;
If so, then terminal management system sends downloading task ID to terminal.
8. the method for down loading according to claim 6 for improving download efficiency, it is characterised in that in " terminal transmission heartbeat packet To terminal management system;Terminal management system is received after heartbeat packet, sends downloading task ID to terminal;Terminal sends end message With downloading task ID to terminal management system " specifically include following steps:
Terminal periodically sends heartbeat packet to terminal management system;The heartbeat packet content includes the identification of the manufacturer of terminal, model name Claim hardware sequence number and base station information;
Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
When than or equal to the downloading task time started, terminal sends end message and downloading task ID to terminal management system System.
9. the method for down loading according to claim 8 for improving download efficiency, it is characterised in that described " terminal sends heartbeat Wrap to terminal management system;Terminal management system is received after heartbeat packet, sends downloading task ID to terminal;Terminal sends terminal letter Cease and downloading task ID to terminal management system " after, in addition to step:
Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
If it is not, then terminal management system transmission is identified to terminal without downloading task.
10. the method for down loading according to claim 1 for improving download efficiency, it is characterised in that comprise the following steps:
S1:Terminal periodically sends heartbeat packet to terminal management system;The heartbeat packet content includes the identification of the manufacturer of terminal, model Title hardware sequence number and base station information;
S2:Whether terminal management system is received after heartbeat packet, judge terminal in terminal management system registration;
S21:If so, then judging whether the terminal has downloading task according to register information;
S212:If so, then sending downloading task ID and downloading task time started to terminal;
S3:When than or equal to the downloading task time started, terminal sends end message and downloading task ID to terminal management System;The end message includes protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence number, base Stand and model name;
S4:After terminal management system receiving terminal information and downloading task ID, judge be in terminal management system Redis cachings storehouse It is no to there is the end message and downloading task ID MD5 values;
S41:Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation Wrap to terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values;
S42:Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;
Sending to download confirms bag to terminal;
S421:Terminal management system is stored in the MD5 values of received end message into Redis cachings storehouse;
S422:Terminal management system is stored in the received corresponding software kit download address to be downloaded of downloading task ID, software Bag size and software kit MD5 values are into Redis cachings storehouse;
S5:Terminal, which receives to download, to be confirmed after bag, is sent terminal downloads and is asked to terminal management system;
S6:Terminal management system is received after download request, sends corresponding file to terminal.
11. a kind of download system for improving download efficiency, it is characterised in that including:
Terminal sending module:End message and downloading task ID are sent to terminal management system for terminal;The end message For protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal apk, hardware sequence number, base station and model name;
Terminal management system judge module:After terminal management system receiving terminal information and downloading task ID, terminal is judged Whether identical end message and downloading task ID are had in management system, and above-mentioned end message and downloading task ID are modulated used Choose bag dynamic base;
Confirm bag to terminal if so, then sending and downloading;Confirm bag to terminal if it is not, then calling and choosing to send to download after bag dynamic base;
Terminal sending module:Receive to download for terminal and confirm after bag, transmission downloads request to terminal management system;
Terminal management system sending module:Terminal management system is received after download request, sends corresponding file to terminal.
12. the download system according to claim 11 for improving download efficiency, it is characterised in that including:
Terminal management system judge module:After terminal management system receiving terminal information and downloading task ID, terminal is judged With the presence or absence of the MD5 values of the end message and downloading task ID in management system Redis cachings storehouse, so as to judge terminal management system Whether identical end message and downloading task ID are had in system, and above-mentioned end message and the modulated used bags of choosing of downloading task ID are moved State storehouse;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation bag extremely Terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values.
13. the download system according to claim 11 for improving download efficiency, it is characterised in that including:
Terminal management system judge module:After terminal management system receiving terminal information and downloading task ID, Redis is judged The MD5 values with the presence or absence of the end message and downloading task ID in storehouse are cached, so as to judge whether there is phase in terminal management system With end message and downloading task ID, and above-mentioned end message and downloading task ID is modulated used chooses bag dynamic base;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation.
14. the download system according to claim 13 for improving download efficiency, it is characterised in that including:
Terminal management system memory module:Received end message and downloading task ID are stored in for terminal management system MD5 values.
15. the download system according to claim 14 for improving download efficiency, it is characterised in that including:
Terminal management system storage system:The MD5 values that received end message is stored in for terminal management system are slow to Redis In warehousing;
Terminal management system storage system:It is corresponding to be downloaded that received downloading task ID is stored in for terminal management system Software kit download address, software kit size and software kit MD5 values are into Redis cachings storehouse.
16. the download system according to claim 11 for improving download efficiency, it is characterised in that including:
Terminal sending module:Heartbeat packet is sent to terminal management system for terminal;The heartbeat packet content includes the factory of terminal Trade mark knowledge, model name hardware sequence number and base station information;
Terminal management system sending module:Received for terminal management system after heartbeat packet, send corresponding downloading task ID extremely Terminal.
17. the download system according to claim 16 for improving download efficiency, it is characterised in that including:
Terminal sending module:Heartbeat packet is sent to terminal management system for terminal;The heartbeat packet content includes the factory of terminal Trade mark knowledge, model name hardware sequence number and base station information;
Terminal management system sending module:Received for terminal management system after heartbeat packet, send secure authentication information to terminal;
Terminal authentication module:After the secure authentication information received for terminal, whether checking terminal has included terminal management system;
If so, then terminal management system sends downloading task ID to terminal.
18. the download system according to claim 16 for improving download efficiency, it is characterised in that including:
Terminal sending module:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes terminal Identification of the manufacturer, model name hardware sequence number and base station information;
Terminal management system judge module:Received for terminal management system after heartbeat packet, judge terminal whether in terminal management System is registered;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
Terminal sending module:For when than or equal to the downloading task time started, terminal to send end message and download is appointed ID be engaged in terminal management system.
19. the download system according to claim 18 for improving download efficiency, it is characterised in that including:
Terminal sending module:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes terminal Identification of the manufacturer, model name hardware sequence number and base station information;
Terminal judge module:Received for terminal management system after heartbeat packet, judge terminal whether in terminal management system registration;
If it is not, then terminal management system transmission is identified to terminal without downloading task.
20. the download system according to claim 11 for improving download efficiency, it is characterised in that including:
Terminal sending module:Heartbeat packet is periodically sent for terminal to terminal management system;The heartbeat packet content includes terminal Identification of the manufacturer, model name hardware sequence number and base station information;
Terminal management system judge module:Received for terminal management system after heartbeat packet, judge terminal whether in terminal management System is registered;
If so, then judging whether the terminal has downloading task according to register information;
If so, then sending downloading task ID and downloading task time started to terminal;
Terminal sending module:For when than or equal to the downloading task time started, terminal to send end message and download is appointed ID be engaged in terminal management system;The end message includes protocol platform, terminal platform, identification of the manufacturer, terminal pkg, terminal Apk, hardware sequence number, base station and model name;
Terminal management system judge module:After terminal management system receiving terminal information and downloading task ID, terminal is judged With the presence or absence of the MD5 values of the end message and downloading task ID in management system Redis cachings storehouse;
Confirm to wrap if so, then obtaining corresponding download from Redis cachings storehouse by the MD5 values, send and download confirmation bag extremely Terminal;Described download confirms to include software kit download address to be downloaded, software kit size and software kit MD5 values;
Bag dynamic base is chosen if it is not, then calling;The dynamic bank interface of bag of choosing downloads confirmation bag according to end message generation;Under transmission Carry and confirm bag to terminal;
Terminal management system memory module:The MD5 values that received end message is stored in for terminal management system are slow to Redis In warehousing;
Terminal management system memory module:It is corresponding to be downloaded that received downloading task ID is stored in for terminal management system Software kit download address, software kit size and software kit MD5 values are into Redis cachings storehouse;
Terminal sending module:Receive to download for terminal and confirm after bag, send terminal downloads and ask to terminal management system;
Terminal management system sending module:Terminal management system is received after download request, sends corresponding file to terminal.
CN201780000413.1A 2017-05-27 2017-05-27 A kind of method for down loading and its download system for improving download efficiency Pending CN107278366A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/086326 WO2018218419A1 (en) 2017-05-27 2017-05-27 Downloading method for improving download efficiency and downloading system thereof

Publications (1)

Publication Number Publication Date
CN107278366A true CN107278366A (en) 2017-10-20

Family

ID=60076619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780000413.1A Pending CN107278366A (en) 2017-05-27 2017-05-27 A kind of method for down loading and its download system for improving download efficiency

Country Status (2)

Country Link
CN (1) CN107278366A (en)
WO (1) WO2018218419A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018218419A1 (en) * 2017-05-27 2018-12-06 福建联迪商用设备有限公司 Downloading method for improving download efficiency and downloading system thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101719936A (en) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 Method, device and cache system for providing file downloading service
CN102456005A (en) * 2010-10-19 2012-05-16 深圳市金蝶友商电子商务服务有限公司 High-data-volume file processing method and system
CN102624689A (en) * 2011-11-28 2012-08-01 苏州奇可思信息科技有限公司 Client proxy internet surfing method capable of realizing cache priority of local files of server
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103390061A (en) * 2013-07-31 2013-11-13 浙江大学 Multi-level cache-based sea spatio-temporal data accessing method taking user as center
CN103916483A (en) * 2014-04-28 2014-07-09 中国科学院成都生物研究所 Self-adaptation data storage and reconstruction method for coding redundancy storage system
CN104601724A (en) * 2015-02-03 2015-05-06 北京金和软件股份有限公司 Method and system for uploading and downloading file
WO2015096632A1 (en) * 2013-12-26 2015-07-02 乐视网信息技术(北京)股份有限公司 Data download method and device
CN106161524A (en) * 2015-04-03 2016-11-23 中国移动通信集团上海有限公司 A kind of resource downloading method based on distributed resource node and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581736A (en) * 2012-07-26 2014-02-12 腾讯科技(深圳)有限公司 Digital television terminal, video file playing method and video file playing system
CN103227836B (en) * 2013-05-02 2016-10-26 百度在线网络技术(北京)有限公司 Offline download method and off-line download server
CN104348840A (en) * 2013-07-23 2015-02-11 中兴通讯股份有限公司 Download statistical method, terminal and server
WO2018218419A1 (en) * 2017-05-27 2018-12-06 福建联迪商用设备有限公司 Downloading method for improving download efficiency and downloading system thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101719936A (en) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 Method, device and cache system for providing file downloading service
CN102456005A (en) * 2010-10-19 2012-05-16 深圳市金蝶友商电子商务服务有限公司 High-data-volume file processing method and system
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN102624689A (en) * 2011-11-28 2012-08-01 苏州奇可思信息科技有限公司 Client proxy internet surfing method capable of realizing cache priority of local files of server
CN103390061A (en) * 2013-07-31 2013-11-13 浙江大学 Multi-level cache-based sea spatio-temporal data accessing method taking user as center
WO2015096632A1 (en) * 2013-12-26 2015-07-02 乐视网信息技术(北京)股份有限公司 Data download method and device
CN103916483A (en) * 2014-04-28 2014-07-09 中国科学院成都生物研究所 Self-adaptation data storage and reconstruction method for coding redundancy storage system
CN104601724A (en) * 2015-02-03 2015-05-06 北京金和软件股份有限公司 Method and system for uploading and downloading file
CN106161524A (en) * 2015-04-03 2016-11-23 中国移动通信集团上海有限公司 A kind of resource downloading method based on distributed resource node and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018218419A1 (en) * 2017-05-27 2018-12-06 福建联迪商用设备有限公司 Downloading method for improving download efficiency and downloading system thereof

Also Published As

Publication number Publication date
WO2018218419A1 (en) 2018-12-06

Similar Documents

Publication Publication Date Title
US6996818B2 (en) Update system for facilitating software update and data conversion in an electronic device
CN107770269B (en) A kind of service response method and its terminal
US20050193098A1 (en) Method and apparatus for selection of download technology
CN101227343B (en) Method and device for testing TCPv6 and UDPv6
CN103547339B (en) File uploading method, client side and server side
CN101171593A (en) Data backup system
WO2009097776A1 (en) System, device and method for achieving service upgrade
CN102137390A (en) Method, equipment and system for downloading mobile phone software
CN102779071A (en) Method, device and system for calling software interface
CN101945097A (en) Electronic bill processing method, device and system
CN108023736A (en) Communication means, server device, client device, apparatus and system
CN107741853A (en) A kind of method, system and the information management platform of deployment services device
CN107278366A (en) A kind of method for down loading and its download system for improving download efficiency
CN104052754B (en) The auth method and system of a kind of third-party application
CN112379938A (en) Cross-browser safe local application calling method based on domestic operating system
EP1826996B1 (en) A method for ensuring the service platform acquiring the information of the user terminal by multi-application protocol
US20190004832A1 (en) Communication method and apparatus, and electronic device and program product thereof
CN106528192A (en) Service logic updating method and device
CN102196411A (en) Mobile communication terminal and communication software upgrading method
CN111556487B (en) SIM card air transmission system based on hybrid protocol and working method thereof
CN105959386B (en) The processing method that terminal, Cloud Server and application are debugged
CN106534279A (en) Dynamic native interface invoking method and system
CN104468514B (en) Information processing method, electronic equipment and server
CN101662740A (en) Transmission method of multimedia message accessory at network side and equipment thereof
CN114697931B (en) Near field communication method, mobile terminal and back clamp

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: 20171020