[go: up one dir, main page]

CN109379424A - Multiple terminals resource introduction method - Google Patents

Multiple terminals resource introduction method Download PDF

Info

Publication number
CN109379424A
CN109379424A CN201811189473.5A CN201811189473A CN109379424A CN 109379424 A CN109379424 A CN 109379424A CN 201811189473 A CN201811189473 A CN 201811189473A CN 109379424 A CN109379424 A CN 109379424A
Authority
CN
China
Prior art keywords
resource
file
server
terminal
area network
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
CN201811189473.5A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201811189473.5A priority Critical patent/CN109379424A/en
Publication of CN109379424A publication Critical patent/CN109379424A/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/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to computer operating system technical fields, it discloses a kind of multiple terminals resource introduction method, solve the problems, such as to take time and effort existing for the terminal resource import plan in traditional technology, inefficiency, depend on server performance, expend a large amount of flows.The present invention is in local area network, or the same area terminal specifies an opening hot spot, other terminals are connected to this hot spot, form local area network, then each terminal simulation is become into Http server, when other terminals need to import resource, find whether these terminals have existed this resource in this local area network of service search by file, and if so, downloading resource from these terminals by p2p agreement.File resource to complete between more terminals quickly introduces, and avoids all largely requesting to download and occupy server resource from server.

Description

Multiple terminals resource introduction method
Technical field
The present invention relates to computer operating system technical field, in particular to a kind of multiple terminals resource introduction method.
Background technique
Terminal on the market is difficult to update resource file therein in time again, generally after sale is spread apart at present All be using factory preset, but actually use in need that its content is updated and replaced according to particular demands.Its update side Formula usually has:
1. personnel make house calls by installation maintenance, artificial copy replacement is carried out by storage mediums such as USB flash disks, or pass through These storage mediums carry out being automatically imported replacement, and the implementation being automatically imported is different;
2. passing through the resource content of the connected terminal of server-side online updating, leading for terminal resource is carried out by internet Enter.
Above by the method that storage medium is replaced importing, additional importing medium is not only needed also to need additional Human cost, i.e., it is time- and labor-consuming, increase product maintenance cost, and inefficiency, when product quantity greatly to a certain extent when, This mode be completely it is unworkable, considerably increase the maintenance cost of enterprise;
Above by the method for server-side online updating, it is not only limited by server performance, it is also necessary to which terminal is in online State;Can not timely update resource content if terminal is in off-line state, also can when needing while updating more terminals The problems such as having various update failures and updating not in time, it can also generate a large amount of campus network.
Summary of the invention
The technical problems to be solved by the present invention are: proposing a kind of multiple terminals resource introduction method, solve in traditional technology Terminal resource import plan existing for take time and effort, inefficiency, dependent on server performance, expend a large amount of flows and ask Topic.
The technical proposal adopted by the invention to solve the above technical problems is that: multiple terminals resource introduction method is applied to more Platform is deployed in same local area network or the terminal of the same area executes being automatically imported for resource;Method includes the following steps:
A. for the terminal of the same area, it is matched after being placed in the same local area network, step b is executed, for portion It is deployed on the terminal of same local area network, then directly executes step b;
B. after each terminal booting in same local area network, oneself simulation is become into a Http server, is used for Subsequent file download request service is provided;And open and find server-side using the file of UDP communication, for monitoring other terminals File search request;
C. when certain terminal, which gets operation demand, needs to import some resource, starting UDP file finds client, will The resource name for needing to import finds server-side by other UDP files that Socket communication is transmitted in local area network;
D. it after others UDP file discovery server-side listens to file search request, is looked into according to the resource name in request It looks for and locally whether has existed the resource or currently downloading the resource, if it is, by the corresponding local URL of the resource File discovery client is fed back to as resource downloading address;
E. after file discovery client receives the resource downloading address that other file discovery server-sides are sent, according to this Address carries out the downloading of resource, and imported into local resource catalogue.
As advanced optimizing, in step a, for the terminal of the same area, it is randomly assigned a terminal and opens hot spot, Its terminal is connected to this hot spot, forms local area network.
As advanced optimizing, step d further include: local not deposit if other file discovery server-sides are by searching In resource corresponding with the resource name of request, the resource is not being downloaded yet, then is being looked into the discovery client transmission of the file of request Look for the result of failure;
If file finds that client does not find needs from other files discovery server-side all in local area network and leads When the resource entered, the resource is downloaded from background server.
The beneficial effects of the present invention are:
In local area network or the same area is using p2p agreement that all terminals is made to be automatically imported already existing money in the net Source does not need artificial separate unit and imports, so that improving resource imports efficiency, saves manpower and time cost;It does not need to service yet The online extensive downloading in end, reduces server overhead, increases its concurrency and stability, reduce the consumption of its flow, thus Improve speed and success rate that entire resource imports.
The present invention improves more terminal resources and imports efficiency and speed, reduce using threshold, dragged down fortune as a result, Seek cost, reduce probability of malfunction etc..It can be applied to the terminal that Duo Tai is deployed in local area network or the same area, it can be unlimited New resource quickly can be alternatively to each terminal, complete product operation by dilatation and convenient deployment.
Detailed description of the invention
Fig. 1 is that the multiple terminals resource in the present invention imports process flow diagram;
Fig. 2 is the schematic diagram of a scenario of the scheme practical application in the embodiment of the present invention.
Specific embodiment
The present invention is directed to propose a kind of multiple terminals resource introduction method, solves the terminal resource import plan in traditional technology It is existing to take time and effort, inefficiency, depend on server performance, expend the problem of a large amount of flows.
The present invention is in local area network or the same area terminal specifies an opening hot spot, other terminals are connected to this heat Point forms local area network, and each terminal simulation is then become Http server and is passed through when other terminals need to import resource File discovery this local area network of service search in these terminals whether have existed this resource, and if so, by p2p agreement from Resource is downloaded in these terminals.File resource to complete between more terminals quickly introduces, and avoids all a large amount of from server Request downloads and occupies server resource.
Its specific implementation is as shown in Figure 1, comprising the following steps:
1. by multiple terminals with the same local area network of merging: for the terminal of the same area, being randomly assigned a terminal and open heat Point, other terminals are connected to this hot spot, form local area network;If each terminal and be in same local area network, do not need to execute This step.
2., first will by the Open Framework HttpService of apache after each terminal booting in a local network Oneself simulation becomes a Http server, and for providing subsequent file download request service, needs to open use simultaneously The file of UDP communication finds server-side, for monitoring the request of data of UDP file discovery client in real time;
3. after all terminals all starting up Http server and UDP file discovery server-side, wherein certain When terminal gets operation demand and needs to import some resource, starting UDP file finds client, the resource name that will need to import The other UDP files being transmitted in local area network by Socket communication are claimed to find server-side;
4. other file discovery server-sides after listening to the request of client, obtain the needs that client is sent and import text Whether the title of part, having parsed to search after this title whether there is with name resources or is downloading under local resource catalogue, If there is or downloading, then by UDP Socket by the corresponding address URL of the resource be sent to file find client End.
5. it is the discovery service of requested file that file discovery client, which has got the required download address for importing resource, After holding address, requested in the resource using download tool class to the Http server that requested file discovery server-side is simulated Hold, the resource is imported into local resource catalogue after downloading successfully.
Embodiment:
The practical application scene that multiple terminals resource in the present embodiment imports is upgraded demand as shown in Fig. 2, runing publication, is taken Business device receives upgrade demand after issue more new data and be issued to random certain terminal (being terminal 2 in figure), local area network is other There are the terminal of the data (being terminal 2 in figure) out of this net according to the data of update for terminal (terminal 1 and terminal 3 in such as figure) Downloading returns to state to server after waiting all terminals to be updated successfully.
In specific implementation comprising following steps:
1. installation resource imports software in the terminal disposed away, and all terminals are accessed the same local area network, open Machine starting.
2. if all terminals are not in the same local area network or in no network environment after starting up, first with Machine terminal opens fixed name wifi hotspot, and the booting of other terminals connects this hot spot, forms a LAN environment.
3. operator issues new resource updates demand, and is input to background service control system, under background control system More new data is sent out to certain random terminal machine.
4. this terminal machine application method downFromServer (path, name) is downloaded from background control system, under By the resource conservation of downloading to local directory after carrying successfully.
5. other terminals get resource updates demand, first by method downFromOther (path, name) File discovery service searched whether that terminal has existed current demand resource in the local area network, and if so, open under Carry thread downloading.Wherein download address be by method DiscoveryClient.getLanDownloadServer (name, TvApplication.getContext ()) obtain, get application method after download address FileUtil.downLoadFromUrl (lanServer+path+name, path+name, mMd5) is carried out under MD5 code check It carries.
If 6. from other terminal downloads failure or other terminals not the demand resource when, application method DownFromServer (path, name) is opened to be downloaded from background service.
7. other all terminals upgraded demand that get all can after certain random terminal completely downloaded success It directly from this terminal downloads in the net, rather than is downloaded from background service, to complete the resource updates between multiple terminals.
8. after all having updated resource when all terminals, by method submitProgress () by update progress report in Background service system.
9. operation personnel receives the Real-time Feedback upgraded demand as a result, completing the demand this time updated.

Claims (3)

1. multiple terminals resource introduction method, the terminal for being deployed in same local area network or the same area applied to more executes resource Be automatically imported;It is characterized in that, method includes the following steps:
A. for the terminal of the same area, it is matched after being placed in the same local area network, step b is executed, for being deployed in The terminal of same local area network then directly executes step b;
B. after each terminal booting in same local area network, oneself simulation is become into a Http server, for providing Subsequent file download request service;And open and find server-side using the file of UDP communication, for monitoring the text of other terminals Part search request;
C. when certain terminal, which gets operation demand, needs to import some resource, starting UDP file finds client, will need The resource name of importing finds server-side by other UDP files that Socket communication is transmitted in local area network;
D. after others UDP file discovery server-side listens to file search request, this is searched according to the resource name in request Whether ground has existed the resource or is currently downloading the resource, if it is, the corresponding local URL of the resource is fed back To file discovery client as resource downloading address;
E. after file discovery client receives the resource downloading address that other file discovery server-sides are sent, according to this address The downloading of resource is carried out, and imported into local resource catalogue.
2. resource introduction method in multiple terminals as described in claim 1, which is characterized in that in step a, for the end of the same area End is randomly assigned a terminal and opens hot spot, and other terminals are connected to this hot spot, form local area network.
3. resource introduction method in multiple terminals as described in claim 1, which is characterized in that step d further include: if other files It was found that server-side by searching, locally and is not present resource corresponding with the resource name of request, is not also downloading the resource, then The result for searching failure is sent to the file of request discovery client;
If file finds that client does not find what needs imported from other files discovery server-side all in local area network When resource, the resource is downloaded from background server.
CN201811189473.5A 2018-10-12 2018-10-12 Multiple terminals resource introduction method Pending CN109379424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811189473.5A CN109379424A (en) 2018-10-12 2018-10-12 Multiple terminals resource introduction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811189473.5A CN109379424A (en) 2018-10-12 2018-10-12 Multiple terminals resource introduction method

Publications (1)

Publication Number Publication Date
CN109379424A true CN109379424A (en) 2019-02-22

Family

ID=65397561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811189473.5A Pending CN109379424A (en) 2018-10-12 2018-10-12 Multiple terminals resource introduction method

Country Status (1)

Country Link
CN (1) CN109379424A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527369A (en) * 2020-12-31 2021-03-19 神思电子技术股份有限公司 Resource updating method of intelligent terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055480A1 (en) * 2007-08-20 2009-02-26 Samsung Electronics Co., Ltd. System and method for sharing data in lan
CN102185920A (en) * 2011-05-10 2011-09-14 奇智软件(北京)有限公司 Network-based downloading method and system, and terminal
CN104093064A (en) * 2013-07-12 2014-10-08 腾讯科技(北京)有限公司 Method, system and device used for video interaction between terminal devices
CN104661191A (en) * 2013-11-15 2015-05-27 深圳市快播科技有限公司 Local area network communication method, system and terminal, and information sharing device
CN106412055A (en) * 2016-09-27 2017-02-15 武汉启目科技有限公司 Method for multiple terminal devices to share file resources mutually

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055480A1 (en) * 2007-08-20 2009-02-26 Samsung Electronics Co., Ltd. System and method for sharing data in lan
CN102185920A (en) * 2011-05-10 2011-09-14 奇智软件(北京)有限公司 Network-based downloading method and system, and terminal
CN104093064A (en) * 2013-07-12 2014-10-08 腾讯科技(北京)有限公司 Method, system and device used for video interaction between terminal devices
CN104661191A (en) * 2013-11-15 2015-05-27 深圳市快播科技有限公司 Local area network communication method, system and terminal, and information sharing device
CN106412055A (en) * 2016-09-27 2017-02-15 武汉启目科技有限公司 Method for multiple terminal devices to share file resources mutually

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527369A (en) * 2020-12-31 2021-03-19 神思电子技术股份有限公司 Resource updating method of intelligent terminal
CN112527369B (en) * 2020-12-31 2024-02-27 神思电子技术股份有限公司 Resource updating method of intelligent terminal

Similar Documents

Publication Publication Date Title
CN102752137B (en) The apparatus and method of virtual machine network parameter are initiatively set
CN111083722A (en) Model pushing method, model requesting method, model pushing device, model requesting device and storage medium
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
CN108737463A (en) A kind of software deployment method, server and system
CN110413295A (en) A remote firmware update method for embedded devices
CN105183496A (en) Method for automatically upgrading and pushing software based on domestic CPU and operating system
CN102945175A (en) Terminal software online upgrading system and method based on cloud computing environment
CN103051469A (en) Centralized configuration management method under cloud environment
CN102546796A (en) Data updating system and method of service server
CN104639648A (en) Remote upgrading method for intelligent cabinet
CN106339273A (en) Application program restoration method, terminal and server
CN109343858A (en) A kind of build a station automatically container deployment system and its working method based on server-side rendering
CN110532009A (en) A kind of smart machine upgrading management system and method
CN108881066A (en) A kind of method of route requests, access server and storage equipment
US12032952B2 (en) Service upgrade method, apparatus, and system
CN105391747A (en) Cloud intelligent equipment management method
CN107294785A (en) The automatic deployment method and device, computer-readable recording medium of CDN node service
CN105099774B (en) A kind of router software upgrade method and system
CN110109684A (en) Block chain node administration agent services installation method, electronic device and storage medium
CN115454420A (en) Artificial intelligence algorithm model deployment system, method, equipment and storage medium
CN111786810A (en) A method and system for automatic deployment of large-scale test bed nodes
CN103414584A (en) Method for rapidly expanding computer cluster based on P2P network technology
CN105208095A (en) Filtering service deployment recommendation device and method
CN105556918A (en) Resource downloading method, electronic device, and apparatus
CN109725913A (en) The method and apparatus that data update

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