CN104486371B - Batch downloads the device and method of file - Google Patents

Batch downloads the device and method of file Download PDF

Info

Publication number
CN104486371B
CN104486371B CN201410668872.5A CN201410668872A CN104486371B CN 104486371 B CN104486371 B CN 104486371B CN 201410668872 A CN201410668872 A CN 201410668872A CN 104486371 B CN104486371 B CN 104486371B
Authority
CN
China
Prior art keywords
file
mobile terminal
server
browser
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410668872.5A
Other languages
Chinese (zh)
Other versions
CN104486371A (en
Inventor
姜天鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING ANQI ZHILIAN 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 BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd filed Critical BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd
Priority to CN201410668872.5A priority Critical patent/CN104486371B/en
Publication of CN104486371A publication Critical patent/CN104486371A/en
Application granted granted Critical
Publication of CN104486371B publication Critical patent/CN104486371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]

Abstract

The invention discloses a kind of device and method of resident batch downloading file in the terminal.Mobile terminal can be connected by server with the browser for calculating equipment.The batch downloading file equipment include:Connection management device, suitable for receiving the listed files request message from browser;And file list generation device, suitable for after receiving listed files request message, generate the listed files comprising multiple the file informations, wherein connection management device is further adapted for sending listed files to browser, and it receives from the downloading request message at least one file in multiple files for calculating equipment, sends at least one described file to browser one by one.The invention also discloses the device and method of the batch downloading file resided in the browser for calculating equipment.

Description

Batch downloads the device and method of file
Technical field
The present invention relates to the necks that field of data communication more particularly to mobile terminal are communicated with calculating device navigator Domain.
Background technique
As frequency of use of the user for mobile terminals such as smart phone, tablet computers is increasingly improving, very To being in many occasions more than traditional desktop computer (PC) and laptop.The calculated performance and memory space of mobile terminal Also in rapid growth, so that installation and operation be allowed to widely apply and generate in turn mass data.For example, a smart phone By the use of user for a period of time, it is often stored with picture, audio, video, application, the document, communication of gigabytes The data such as record, short message.
Although user such as can be browsed to these data on mobile phone, replicate, delete at the operation, if with Before family is located at large screen calculating equipment (such as PC, laptop and smart television), he may prefer to calculate by large screen Equipment carries out these operations.One done so the reason is that large screen calculates equipment there is more powerful I/O equipment (to show as big Display screen, mouse, full size keyboard), operating efficiency can be improved;Another reason be with the Android run on mobile terminal, IOS operating system is compared with application, and large screen calculates operating systems and the applications such as Windows, MAC OS of equipment operation It tends to provide the function of stronger big multiplicity.
There are some softwares to provide large screen at present and has calculated equipment to the data management function of mobile terminal.Typical example Son is the iTunes and various mobile phone assistants of Apple Inc..User is in operating systems such as operation Windows, MAC OS Mobile terminal data management software is installed on traditional computer, mobile terminal is connected to large screen meter by cables such as USB Equipment is calculated, mobile terminal data management software reads the various data in mobile terminal, and user is allowed to be managed accordingly Operation.However, this is used for users and inconvenience.Even if there is some software support mobile terminals to connect by WLAN It is connected to large screen and calculates equipment, but user is soft there is still a need for mobile terminal data management is installed in advance in large screen calculating equipment Part.Installation software is not only cumbersome and time-consuming in advance, and is difficult to realize in some cases.For example, the meter of enterprises The installation permission of software may be limited due to safety concerns by calculating equipment, alternatively, the large screen calculating as smart television is set It, may be without available mobile terminal data management software for and without using Windows, MAC OS operating system.
Therefore, user wishes to more calculate the number for managing mobile terminal in equipment in large screen with simple and fast mode According to.
Summary of the invention
For this purpose, the present invention a kind of new scheme is provided with try hard to solve or at least alleviate above it is existing at least one ask Topic.
According to an aspect of the present invention, a kind of equipment of batch downloading file is provided, batch downloading file device is stayed It stays in the terminal, mobile terminal can be connected by server with the browser for calculating equipment.The batch downloading file Equipment includes:Connection management device, suitable for receiving the listed files request message from browser;It generates and fills with listed files It sets, suitable for generating the listed files comprising multiple the file informations after receiving listed files request message.Wherein connection management Device is further adapted for sending listed files to browser, and receives from calculating equipment at least one of multiple files The downloading request message of file sends at least one described file to browser one by one.
Connection management device may be adapted at least one file uploading to the server, so as to server by its The address web is sent to browser.Listed files request message can be JSON format.The equipment of batch downloading file can also wrap Message processing apparatus is included, suitable for listed files request message is converted to command format.Listed files request message may include Requested file type, wherein file type includes one of picture, audio, video, application, document.
According to another aspect of the present invention, a kind of batch downloading document method is provided.This method executes in the terminal, Mobile terminal can be connected by server with the browser for calculating equipment.The method comprising the steps of:It receives from browser Listed files request message;Generate the listed files comprising multiple the file informations;Listed files is sent to browser;In response to connecing The downloading request message at least one file in multiple files from browser is received, is sent at least to browser one by one One file.
The step of sending at least one file to browser one by one may include:Receive from browser for multiple texts The downloading request message of at least one file in part;And at least one file is uploaded onto the server one by one, with housecoat Its address web is sent to browser by business device.Listed files request message can be JSON format.This method can also include will Listed files request message is converted to command format.
According to another aspect of the present invention, a kind of equipment of batch downloading file is provided, batch downloading file device is stayed It stays in the browser for calculating equipment, browser can be connected by server with mobile terminal.The batch downloading file device Including:Message processing apparatus is adapted to respond to the request that user downloads multiple files, generates listed files request message;Connecting tube Device is managed, is suitable for sending listed files request message to mobile terminal, receiving from mobile terminal includes multiple the file informations Listed files, send the downloading request message at least one file in multiple files to mobile terminal, and one by one Download at least one file.
Connection management device can be adapted to the address web for receiving at least one file, then one by one from server or shifting At least one file described in dynamic terminal downloads.Listed files request message can be JSON format.
According to another aspect of the present invention, a kind of batch downloading document method is provided, this method is in the browsing for calculating equipment It is executed on device, which can be connected by server with mobile terminal.The method comprising the steps of:In response to receiving user The request of multiple files is downloaded, listed files request message is generated;Listed files request message is sent to mobile terminal;It receives and From the listed files comprising multiple the file informations of mobile terminal;It sends to mobile terminal at least one of multiple files The downloading request message of file;And at least one described file is downloaded one by one.
The step of at least one file described in downloading may include one by one:With receiving the web of at least one file Location;And at least one described file is downloaded from server or mobile terminal one by one.
According to another aspect of the present invention, a kind of mobile terminal is provided, including setting for batch downloading file as described above It is standby.
According to another aspect of the present invention, a kind of calculating equipment being equipped with browser is provided, including is criticized as described above The equipment of amount downloading file.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the structural block diagram of a mobile terminal 100;
Fig. 2 shows the browser administration mobile terminals according to an embodiment of the invention that equipment is calculated using large screen The system 200 of file;
It is mobile eventually that Fig. 3 A shows the browser administration according to an embodiment of the invention for calculating equipment using large screen Hold the interface schematic diagram of the mobile terminal before establishing connection of system 200 of file;
Fig. 3 B shows the interface signal of the browser two-dimensional code display according to an embodiment of the invention for calculating equipment Figure;
It is mobile eventually that Fig. 3 C shows the browser administration according to an embodiment of the invention for calculating equipment using large screen The interface schematic diagram of the browser of equipment is calculated after holding the system 200 of file to establish channel;
Fig. 4 shows the process of the batch downloading document method 400 of mobile terminal execution according to an embodiment of the invention Figure;
Fig. 5 shows the batch downloading document method that the browser according to an embodiment of the invention for calculating equipment executes 500 flow chart;
Fig. 6 shows the block diagram of the equipment 600 of the downloading file of the batch in mobile terminal according to an embodiment of the invention;
Fig. 7 shows the equipment 700 of the batch downloading file in calculating device navigator according to an embodiment of the invention Block diagram.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is the structural block diagram of mobile terminal 100.Mobile terminal 100 may include memory interface 102, one or more A data processor, image processor and/or central processing unit 104 and peripheral interface 106.
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component, It can integrate in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize Function.
For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with Facilitate the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as positioning system (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as record photos and video clips The realization of function, wherein the camera sub-system and optical sensor for example can be charge-coupled device (CCD) or complementary gold Belong to oxide semiconductor (CMOS) optical sensor.It can help to realize by one or more radio communication subsystems 124 Communication function, wherein radio communication subsystem may include radio-frequency transmitter and transmitter and/or light (such as infrared) receiver And transmitter.The particular design and embodiment of radio communication subsystem 124 can depend on mobile terminal 100 is supported one A or multiple communication networks.For example, mobile terminal 100 may include being designed to support GSM network, GPRS network, EDGE net Network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, to help to implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.I/O subsystem 140 may include touch screen control Device 142 processed and/or other one or more input controllers 144.Touch screen controller 142 may be coupled to touch screen 146.It lifts For example, any one of a variety of touch-sensing technologies are can be used to detect in the touch screen 146 and touch screen controller 142 The contact and movement or pause carried out therewith, wherein detection technology includes but is not limited to capacitive character, resistive, infrared and table Face technology of acoustic wave.Other one or more input controllers 144 may be coupled to other input/control devicess 148, such as one Or the pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.It is described One or more button (not shown)s may include the up/down for controlling 130 volume of loudspeaker 128 and/or microphone Button.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/ Or flash memories (such as NAND, NOR).Memory 150 can store an operating system 172, for example, Android, IOS or The operating system of Windows Phone etc.The operating system 172 may include for handling basic system services and execution The instruction of task dependent on hardware.Memory 150 can also be stored using 174.It, can be from memory in mobile device operation Load operating system 172 in 150, and executed by processor 104.At runtime using 174, can also add from memory 150 It carries, and is executed by processor 104.It operates on operating system using 174, is provided using operating system and bottom hardware Interface realizes the various desired functions of user, such as instant messaging, web page browsing, pictures management.Using 174 can be independently of What operating system 172 provided, it is also possible to what operating system 172 carried.
In above-mentioned various applications 174, one such application can support mobile terminal document to be according to the present invention The client application of management, the client application that user can calculate the browser and mobile terminal in equipment by large screen are logical Believe and manage the file of mobile terminal.
Fig. 2 shows the browser administration mobile terminals according to an embodiment of the invention that equipment is calculated using large screen The system 200 of file.The system 200 includes mobile terminal 210, server 220 and calculating equipment 230.Pacify on mobile terminal 210 Equipped with the client application 212 for supporting mobile terminal document management, and be stored with various files, as photo, audio, video, Document (such as document of Word, PDF format).Applications client 212 may operate in the operating systems such as Android, IOS. Server 220 for example can be the remote cloud server for being physically located at one or more places.Calculating equipment 230 for example can be with There is the calculating equipment of relatively large screen including personal computer (PC), laptop, smart television etc..Calculate equipment Browser 232, such as IE, Chrome and Firefox browser are installed on 230.Browser 232 may operate in such as In the operating systems such as Windows, Mac.
Browser 232 receives user in the address that browser address bar inputs, e.g. domain name first Www.weline.cc corresponds to the IP address of server 220.Browser accesses server 220 according to the address, specific to grasp Make to include that such as inquiry DNS obtains the IP address returned, establishes TCP connection, send HTTP request request to server, this In be not repeated.After receiving the access request from browser 232, server 220 distributes the first session identification (Session ID) and gap marker (Channel ID).Server 220 generates invitation corresponding with gap marker address (inviteurl), which is two-dimension code pattern by calling two dimensional code Transformation Service, and obtains the two-dimension code pattern The address URL (qrcodeurl).In other words, the content which is included is inviteurl.Server 220 is to clear Look at 232 returning response message (200OK) of device, the address the URL qrcodeurl containing two-dimension code pattern and the first session in the message Mark.Wherein the format sample of qrcodeurl is as follows:
qrcodeurl:"qrcode?Content=http://192.168.0.1/invite?Id= 12d345d8z834baef839c0",
Long connection is established between server 220 and browser 232.The address URL of the access two-dimension code pattern of browser 232 Qrcodeurl, obtain two-dimension code pattern simultaneously show, as shown in Figure 3B, shown in the figure two-dimension code image with etc. end to be moved End scans the two-dimensional code.Fig. 3 A shows the browser administration according to an embodiment of the invention for calculating equipment using large screen and moves The interface schematic diagram of the mobile terminal when establishing connection of system 200 of dynamic terminal document, the operation in the surface chart, to user It is prompted, to establish the connection with server.User can calculate equipment using 212 scannings by mobile terminal client terminal The two-dimension code pattern shown on 230 browser 232 invites address to obtain the content of two-dimension code pattern inviteurl.Mobile terminal client terminal is identified to its backward channel, is returned simultaneously using 212 access inviteurl, server 220 Return the second session identification.Server can determine the relationship of browser and mobile terminal by gap marker, i.e. mobile terminal is swept What is retouched is the two dimensional code shown on browser.Similar to the process for establishing connection between server and 220 browsers 232, service Also long connection is established between device 220 and client application 212.Server 220 is stored between server and browser long connection The first session identification and server and client application between long connection the second session identification, between the two session identifications It is associated with by gap marker, a channel is formed between browser and client application by gap marker in this way, with meeting Words mark is mobile terminal client terminal application or browser with the object of the long connection of server to distinguish.In other words, it is taking Two long connections are established respectively between server and client application between business device and browser, and server is periodically to browsing Device and client application send heartbeat message.The two length connections are associated with to form a channel by the same channel logo, visitor The signaling or data that the application of family end is sent are pushed to browser via server by the channel.
After establishing channel, the client application 212 of mobile terminal is by the statistical information of mobile terminal, such as mobile terminal Model, system version, memory space, the contact person stored, short message, the quantity of Miscellaneous Documents etc., sent by channel To browser 232, specifically, these information for example pass through the second session connection by post mode by client application 212 It is sent to server 220, server 220 finds associated first session connection according to gap marker, and passes through the first session Connection sends information to browser 232.Browser 232 shows corresponding mobile terminal statistical information, and Fig. 3 C shows basis The system 200 of the browser administration mobile terminal document for calculating equipment using large screen of one embodiment of the invention establishes connection The interface schematic diagram for calculating the browser of equipment afterwards, establishes the master catalogue including various document classifications, such as picture master catalogue, sound Frequency master catalogue etc., and if when under such as picture master catalogue, can show multiple picture thumbnails etc..User can be big Check the information of mobile terminal on the browser of the calculating equipment of screen, and using calculate equipment input equipment (such as mouse, Keyboard) easily carry out the various operations to file, such as from acquisition for mobile terminal file, browsing, delete file.By moving The channel via server is established between dynamic terminal and the browser for calculating equipment, it only need to be existing clear in equipment using calculating The management to mobile terminal can be realized in device of looking at, and without installing software in advance on the computing device, not only saves user Time, also save the work of software developer.Moreover, being especially suitable for calculating using the scheme of browser administration mobile terminal The installation limited authority of device software or the case where lack available mobile terminal data management software.
After the client application of the browser and mobile terminal that calculate equipment establishes connection by server, work as server When receiving the message or data from client application by the second session, server is searched and the second meeting according to gap marker Words identify associated first session identification, send the message or data to by the first session the browser for calculating equipment.By It is transferred through transit server in this, because of referred to herein as indirectly connected communication pattern.The invention also provides one kind without server The data-transmission mode of transfer, i.e., direct-connected communication pattern.Under direct-connected mode, the browser of equipment and the visitor of mobile terminal are calculated Family end application between data transmission can by being directly connected to carry out between them, without transit server, thus It improves transmission speed and flow and expense may be saved.The establishment process of direct-connected communication pattern explained below.
Firstly, the client application of mobile terminal passes through the established channel of server, i.e. the first session and the second session, The direct-connected communication invitation message comprising the direct-connected mailing address of mobile terminal is sent to the browser for calculating equipment.The example lattice of message Formula is as follows:
Wherein 192.168.1.119 is the direct-connected mailing address of mobile terminal oneself, such as the inside IP of WLAN Address.It can also include the numerical value (id) generated at random in direct-connected communication notifications message, as authentication information.Browsing Device requests access to the direct-connected address for including in message after receiving direct-connected communication invitation message.This access is similar to ping and grasps Make, i.e., browser, which sends data packet to the direct-connected mailing address, can return to an equal amount of number if other side receives the data packet According to packet, the connection for thereby confirming that between the two be it is smooth, otherwise mean that browser can not access direct-connected mailing address, the two It continues to operate under indirectly connected mode.When the client application of mobile terminal receives the access request message from browser When, it is direct-connected to determine that mobile terminal and calculating equipment can carry out.It, can in the access request message of browser in order to enhance safety With comprising the numerical value in direct-connected communication notifications message, client application can be verified the numerical value.If verifying is consistent, move The client application of dynamic terminal sends direct-connected communication response message to browser by server, and format sample is
{
type:"directOK"
}
Client application enters direct-connected mode, starts web server.Browser is receiving direct-connected communication response message Afterwards, also enter direct-connected mode.In this way, between client application and the browser for calculating equipment in a manner of server-client Carry out data transmission.In addition, client application can recorde source IP after receiving the access request message from browser Address and write-in cookie will verify IP address and cookie for the request of the downloading file of browser later, if not With then returning to 403 mistakes.In addition, due to the client application of server and mobile terminal not same area, and browser and client Send access request using AJAX (asynchronous JavaScript and XML) mode can be used, and same in view of browser The limitation of source policy, therefore, the client application of mobile terminal can also realize that cross-domain resource shares (CORS), can be direct-connected Information (the Access-Control-Allow- for allowing the cross-domain access of browser is added in the response header of invitation message Origin), to be able to carry out cross-domain access when browser receives the direct-connected invitation message.
Under direct-connected communication pattern, signaling/message can also be switched to shifting from former channel (channel for passing through server) It is directly connected to channel between dynamic terminal and calculating device navigator, to realize the localization of message.The correlation of switching channel Message format sample it is as follows:
The directChannel message is sent to the browser for calculating equipment by mobile terminal by server, is informed straight The even address (url) of communication channel.Browser is polled (polling) to the address url upon receiving the message.It is mobile whole End will start direct communication channel after receiving the GET request of poll, stop toward former channel POST message.Mobile terminal to Browser send switchChannel message, format sample be
"type":"switchChannel"
}
SwitchChannel message informing browser switching channel.After browser receives the message, stop to server Former channel POST message.
Once can for example pass through enterprise between browser and mobile terminal without cloud and directly into direct-connected mode Internal local network transport data.In this way, not only saving the flow of mobile terminal, and substantially increase the speed of data transmission Degree, also improves the user experience by browser administration mobile terminal data.
Document transmission process under direct-connected communication pattern and indirectly connected communication pattern will be described respectively below.
Under direct-connected communication pattern, file of the browser in response to user's operation, in request mobile terminal.For example, User views the information such as the listed files stored on mobile terminal, thumbnail on a web browser, is inputted by mouse, keyboard etc. Equipment specifies the file to be obtained.Browser sends file request message (requestFile) to mobile terminal, wraps in the message Mark containing requested document.Mobile terminal returns to the logical of the address web comprising this document after receiving file request Know message.The address web of this document indicates absolute url of this document in the web server of mobile terminal.Browser is receiving To after response message, file is downloaded from mobile terminal according to web client-server mode.
In direct-connected communication pattern, it is understood that there may be some special implementations.For example, PDF.js may be obtained by AJAX Pdf document is taken, therefore, there is a problem of under direct-connected communication pattern cross-domain.At this moment the web server of mobile terminal is needed to realize CORS (across source Resource Sharing Protocol).CORS is realized by the setting and confirmation of some heads (Headers) of web server Cross-domain request is not detailed herein.
Under indirectly connected communication pattern, file of the browser in response to user's operation, in request mobile terminal.Browsing Device sends file request message (requestFile) to mobile terminal by server, includes requested document in the message Mark.Mobile terminal is uploaded to server after receiving file request, by this document.Server is returned to browser and is wrapped The notification message of the address web containing this document.The address web of this document indicates this document in the web server of server Address.Browser downloads file from server after receiving response message, according to web client-server mode.
In addition to answering browse request, mobile terminal can also actively send the file to browser.For example, user can be Browser is sent by photo in the client application of mobile terminal.Under direct-connected mode, browser sends text to mobile terminal Part sends message (sendFile).The message format example is
Mobile terminal sends the notification message of the address web comprising this document to browser.The address web of this document indicates Absolute url of this document in the web server of mobile terminal.Browser is after receiving response message, according to web client End-server mode downloads file from mobile terminal.In indirectly connected communication pattern, browser sends file hair to mobile terminal Message is sent, mobile terminal file to be sent is uploaded onto the server, and server receives the address web comprising this document after file Notification message be sent to browser, browser is after receiving response message, according to web client-server mode from clothes Business device downloads file.
It should be noted that transmission file here can be it is two-way, both can from mobile terminal to browser send, can also To be sent from browser to mobile terminal.
In this way, file transmission easily can be carried out with mobile terminal by calculating the browser of equipment, without counting It calculates and software is installed in advance in equipment.
According to one embodiment of present invention, propose that a kind of browser downloads the scheme of file from mobile terminal batch.This Sample can be further improved the efficiency of file transmission.The batch of file described in detail below is downloaded.
Fig. 4 shows the process of the batch downloading document method 400 of mobile terminal execution according to an embodiment of the invention Figure.
In step S410, mobile terminal receives the listed files request message from browser.This document list request disappears Breath can be JSON format, include requested file type, for example including one of picture, audio, video, application, document. In step S420, listed files request message is converted to command format by mobile terminal.It is by listed files request message below RequestFileList switchs to the example of Command order:
In step S430, mobile terminal generates the listed files comprising multiple the file informations.In step S440, to browser Send listed files.The example of listed files is as follows:
In step S350, in response to receiving asking for the downloading of at least one file in multiple files from browser Message is sought, sends at least one described file to browser one by one.The specific downloading process of each file describes in front, Wherein, the file download being further divided under direct-connected communication pattern and indirectly connected communication pattern.Under direct-connected communication pattern, move The address web of at least one file is sent to browser by dynamic terminal.Under indirectly connected communication pattern, mobile terminal will at least one A file is uploaded onto the server, so that its address web is sent to browser by server.It is all from web for browser Address carries out file download.
Fig. 5 shows the batch downloading document method that the browser according to an embodiment of the invention for calculating equipment executes 500 flow chart.
In step S510, browser downloads the request of multiple files in response to receiving user, generates listed files request Message.In step S520, the listed files request message is sent to mobile terminal.In step S530, receive from mobile whole The listed files comprising multiple the file informations at end.In step S540, send to mobile terminal in the multiple file The downloading request message of at least one file.In step S550, at least one described file is downloaded one by one.At least one is downloaded one by one The step of a file includes receiving the address web of at least one file and one by one from server (indirectly connected communication mould Formula) or at least one described file of mobile terminal (indirectly connected communication pattern) downloading.
Fig. 6 shows the block diagram of the equipment 600 of the downloading file of the batch in mobile terminal according to an embodiment of the invention.
The equipment 600 of batch downloading file includes connection management device 610, file list generation device 620.Connection management Device 610 is suitable for receiving the listed files request message from browser.File list generation device 620 is suitable for receiving text After part list request message, the listed files comprising multiple the file informations is generated.Connection management device 610 is further adapted for sending file List receives to browser and requests to disappear from the downloading at least one file in multiple files for calculating equipment Breath sends at least one described file to browser one by one.Connection management device may be adapted to will be at least one described file The server is passed to, so that its address web is sent to the browser by the server.Listed files request message can be with It is JSON format.Batch downloading file device can also include message processing apparatus 630, suitable for listed files request disappears Breath is converted to command format.
The equipment that Fig. 7 shows the batch downloading file in the browser according to an embodiment of the invention for calculating equipment 700 block diagram.
The equipment 700 of batch downloading file includes message processing apparatus 710 and connection management device 720.Message Processing dress It sets 710 and is adapted to respond to the request that user downloads multiple files, generate listed files request message.Connection management device 720 is suitable for The listed files request message is sent to the mobile terminal, receiving from the mobile terminal includes multiple the file informations Listed files, to the mobile terminal send at least one file in the multiple file downloading request message, And at least one described file is downloaded one by one.Connection management device 720 can be adapted to receive at least one file The address web, it is then described at least from server (indirectly connected communication pattern) or mobile terminal (direct-connected communication pattern) downloading one by one One file.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention:It is i.e. required to protect Shield the present invention claims than feature more features expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
A1:Listed files request message includes requested file type, and wherein file type includes picture, audio, view Frequently, one of application, document.A2:It resides in the batch downloading file device in the browser for calculating equipment, connection management device It is further adapted for receiving the address web of at least one file, then downloads at least one file from server or mobile terminal one by one. A3:Listed files request message is JSON format.A4:Listed files request message includes requested file type, Chinese Part type includes one of picture, audio, video, application, document.A5:The step of downloading at least one file one by one include:It receives To the address web of at least one file;And at least one described file is downloaded from server or mobile terminal one by one.A6:Text Part list request message is JSON format.A7:Listed files request message includes requested file type, wherein file type Including one of picture, audio, video, application, document.A8:A kind of calculating equipment being equipped with browser, including it is of the present invention Batch downloading file equipment.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice Element described in this is the example of following device:The device be used for implement as in order to implement the purpose of the invention element performed by Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (9)

1. a kind of equipment of batch downloading file, batch downloading file device is resided in the browser for calculating equipment, described Browser can be connected by server with mobile terminal, and batch downloading file device includes:
Connection management device, is adapted for user's input, sends access request to server, and receives the of server return One session identification and two dimensional code corresponding with two-dimension code pattern address, wherein the two-dimension code pattern contains corresponding with gap marker Address is invited, long connection, and access two dimensional code address are established according to the first session identification and the server, from two dimensional code Two-dimension code pattern is downloaded in location, in order to which the client application of mobile terminal accesses corresponding invitation by scanning the two-dimension code pattern Address, to make the mobile terminal and the server establish long connection, so that the server by utilizing gap marker will be clear Look at the long connection of device and server and the long connection of mobile terminal and server be associated, formed browser and mobile terminal it Between channel;
Message processing apparatus is adapted to respond to the request that user downloads multiple files, generates listed files request message;
Connection management device is suitable for sending the listed files request message to the mobile terminal, receives and come from the movement The listed files comprising multiple the file informations of terminal is sent to the mobile terminal at least one in the multiple file The downloading request message of a file, and at least one described file is downloaded one by one.
2. the equipment that batch as described in claim 1 downloads file, wherein:
The connection management device is further adapted for receiving the address web of at least one file, then one by one from server or shifting At least one file described in dynamic terminal downloads.
3. the equipment that batch downloads file as described in claim 1 or 2, wherein:
The listed files request message is JSON format.
4. the equipment that batch as claimed in claim 3 downloads file, wherein:
The listed files request message includes requested file type, wherein file type include picture, audio, video, Using one of, document.
5. a kind of batch downloads document method, the method executes on the browser for calculating equipment, and the browser can lead to Server is crossed to be connected with mobile terminal, the method includes the steps:
It is inputted in response to user, sends access request to server;
The first session identification and two dimensional code corresponding with two-dimension code pattern address that server returns are received, wherein the two dimensional code figure Shape contains invitation corresponding with gap marker address;
Long connection is established according to the first session identification and the server;
Access the two dimensional code address;
From the two dimensional code address downloading and two-dimensional code display figure, in order to mobile terminal client application by scan this two It ties up code figure and accesses corresponding invitation address, to make the mobile terminal and the server establish long connection, so that described The long connection of browser and server and the long connection of mobile terminal and server are associated by server by utilizing gap marker, Form the channel between browser and mobile terminal;
The request of multiple files is downloaded in response to receiving user, generates listed files request message;
The listed files request message is sent to the mobile terminal;
Receive the listed files comprising multiple the file informations from the mobile terminal;
The downloading request message at least one file in the multiple file is sent to the mobile terminal;And
At least one described file is downloaded one by one.
6. batch downloading document method as claimed in claim 5, wherein the step of downloading at least one described file one by one is wrapped It includes:
Receive the address web of at least one file;And
At least one described file is downloaded from server or mobile terminal one by one.
7. the batch as described in claim 5 or 6 downloads document method, wherein the listed files request message is JSON lattice Formula.
8. batch downloading document method as claimed in claim 7, wherein the listed files request message includes requested File type, wherein file type includes one of picture, audio, video, application, document.
9. a kind of calculating equipment for being equipped with browser, including as batch of any of claims 1-4 downloads file Equipment.
CN201410668872.5A 2014-11-20 2014-11-20 Batch downloads the device and method of file Active CN104486371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410668872.5A CN104486371B (en) 2014-11-20 2014-11-20 Batch downloads the device and method of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410668872.5A CN104486371B (en) 2014-11-20 2014-11-20 Batch downloads the device and method of file

Publications (2)

Publication Number Publication Date
CN104486371A CN104486371A (en) 2015-04-01
CN104486371B true CN104486371B (en) 2018-11-23

Family

ID=52760875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410668872.5A Active CN104486371B (en) 2014-11-20 2014-11-20 Batch downloads the device and method of file

Country Status (1)

Country Link
CN (1) CN104486371B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107634895B (en) * 2016-07-19 2020-09-22 上海诺基亚贝尔股份有限公司 Method and device for processing batch operation based on file or single message
CN109471639A (en) * 2017-09-06 2019-03-15 北京国双科技有限公司 The monitoring method and device in a kind of application downloading source
CN107613003B (en) * 2017-09-19 2019-03-12 北京达佳互联信息技术有限公司 Multimedia file synchronous method, device and terminal
CN111651418B (en) * 2020-05-29 2022-03-08 腾讯科技(深圳)有限公司 Document content downloading method and device, computer equipment and storage medium
CN112187949B (en) * 2020-10-09 2021-08-20 珠海格力电器股份有限公司 Picture batch downloading method and device, storage medium and electronic device
CN113268179B (en) * 2021-04-28 2023-06-30 北京达佳互联信息技术有限公司 Session message processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873452A (en) * 2012-12-18 2014-06-18 北京掌汇天下科技有限公司 Method and system for connecting android system by PC (personal computer) browser
CN104320417A (en) * 2014-11-06 2015-01-28 北京安奇智联科技有限公司 Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN104394200A (en) * 2014-11-06 2015-03-04 北京安奇智联科技有限公司 A method for performing simultaneous preview and display between a mobile device and a web terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100592720C (en) * 2006-12-22 2010-02-24 腾讯科技(深圳)有限公司 Method and system for implementing instant communication between external network user and LAN user
US20120079043A1 (en) * 2010-09-27 2012-03-29 Research In Motion Limited Method, apparatus and system for accessing an application across a plurality of computers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873452A (en) * 2012-12-18 2014-06-18 北京掌汇天下科技有限公司 Method and system for connecting android system by PC (personal computer) browser
CN104320417A (en) * 2014-11-06 2015-01-28 北京安奇智联科技有限公司 Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN104394200A (en) * 2014-11-06 2015-03-04 北京安奇智联科技有限公司 A method for performing simultaneous preview and display between a mobile device and a web terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Alvin Ybañez.AirDroid: Remotely manage your Android from a Web browser.《http:// www.androidauthority.com/airdroid-control-android-from-pc-269186/》.2013, *

Also Published As

Publication number Publication date
CN104486371A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN104378435B (en) The browser of computing device and the file of mobile terminal transmit
CN104486371B (en) Batch downloads the device and method of file
CN104394208B (en) Document transmission method and server
US20220147696A1 (en) Enhanced links in curation and collaboration applications
CN104376090B (en) The browser of computing device and the screen synch of mobile terminal
JP6025991B2 (en) Information processing method, apparatus, terminal, and server
EP3203709B1 (en) Cloud service server and method for managing cloud service server
US10244065B2 (en) Device pairing for content sharing
WO2017211020A1 (en) Television control method and apparatus
CN105407134B (en) A kind of list submits equipment, method and mobile terminal
US20140059652A1 (en) Apparatus for uploading contents, user terminal apparatus for downloading contents, server, contents sharing system and their contents sharing method
CN111368173A (en) File transmission method and device, electronic equipment and readable storage medium
KR102159443B1 (en) Provide remote keyboard service
CN102867008A (en) Recognition system and method based on augmented reality and remote computing
CN104462367B (en) A kind of browser and its method for viewing thumbnail of computing device
CN104484338B (en) Listed files management equipment and method
CN104462366A (en) Browser of computing device and thumbnail display method of browser
CN104394210B (en) Direct-connected communication means and device
CN103401935A (en) Mobile terminal and method thereof for sharing data through web browser
CN107534860A (en) Wi-Fi hotspot portal authentication method and device
CN104468739B (en) Message treatment method, client and mobile terminal
WO2015035899A1 (en) Search methods and terminals
CN104462250B (en) The communication of the browser and mobile terminal of computing device
US20150242176A1 (en) Determining optimal rendering systems
KR101170322B1 (en) Method and device for providing cloud computing service using personal computer based on web

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant