[go: up one dir, main page]

CN105323299A - Data transmission method and terminal - Google Patents

Data transmission method and terminal Download PDF

Info

Publication number
CN105323299A
CN105323299A CN201510100040.8A CN201510100040A CN105323299A CN 105323299 A CN105323299 A CN 105323299A CN 201510100040 A CN201510100040 A CN 201510100040A CN 105323299 A CN105323299 A CN 105323299A
Authority
CN
China
Prior art keywords
terminal
adb
browser
data
instruction
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
CN201510100040.8A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510100040.8A priority Critical patent/CN105323299A/en
Publication of CN105323299A publication Critical patent/CN105323299A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本发明涉及移动通信技术领域,提供了一种数据传输方法,该方法包括:终端一的浏览器接收数据下载指示,并获取下载数据,接收将下载数据传输至终端二的指示,调用本地的安卓调试桥ADB,将下载数据传输至终端二。同时,本发明还提供了一种相应的终端。本发明实施例所提供的方法能实现移动终端通过没有安装指定客户端的终端一获取网络资源,并简化了通过终端一获取网络资源的流程,从而使网络资源的获取不再受客户端的限制并且使该过程操作更便捷。

The present invention relates to the technical field of mobile communication, and provides a data transmission method. The method includes: a browser of terminal one receives a data download instruction, obtains the downloaded data, receives an instruction to transmit the downloaded data to terminal two, and calls a local Android Debug bridge ADB, transmit the downloaded data to terminal two. At the same time, the invention also provides a corresponding terminal. The method provided by the embodiment of the present invention can realize the acquisition of network resources by the mobile terminal through the terminal-one that does not have a specified client installed, and simplifies the process of acquiring network resources through the terminal-one, so that the acquisition of network resources is no longer restricted by the client and enables This process is more convenient to operate.

Description

Data transmission method and terminal
Technical field
The present invention relates to mobile communication technology field, especially a kind of data transmission method and terminal.
Background technology
Along with the development of mobile communication technology, mobile terminal can realize the function being obtained Internet resources by computer end or other-end substantially.In general user wants to obtain the resources such as the app of mobile terminal and video at computer end or other-end, needs to install the client of specifying on mobile terminals.
Meanwhile, because Internet resources to be obtained all limit in the client, if do not have the Internet resources that user wants in client, so user is just difficult to obtain the resource oneself wanting to obtain.For user, the Internet resources that the client of being specified by installation is obtained in computer end or other-end too limit to.
Summary of the invention
The inventive method embodiment provides a kind of data transmission method, terminal and system, need produce the problem of resource by client limitation in order to solve mobile terminal in prior art by terminal acquisition Internet resources through client.
The embodiment of the present invention provides a kind of data transmission method, comprising:
The browser of terminal one receives data and downloads instruction, and obtains downloading data;
This browser receives by download data transmissions to the instruction of terminal two, and this terminal two is mobile terminal;
This browser calls local Android debugging bridge ADB, by download data transmissions to terminal two.
The embodiment of the present invention additionally provides a kind of data transmission terminal, and this terminal comprises:
Downloading data acquisition module, downloads instruction for receiving data, and obtains downloading data;
Transmission instruction receiver module, for receiving by download data transmissions to the instruction of mobile terminal,
Calling module, for calling local Android debugging bridge ADB, by download data transmissions to described mobile terminal.
The data transmission method that the embodiment of the present invention provides, receive data by the browser of terminal one and download instruction, and obtain downloading data, receive download data transmissions to the instruction of terminal two, call local Android debugging bridge ADB, by download data transmissions to terminal two.Due to, browser is the bridge of user and Internet of Things, and user can obtain resources all on Internet of Things by browser.Like this, obtained after downloading data by browser, then calling local ADB by download data transmissions to mobile terminal by browser, make the acquisition of downloading data no longer by client restriction and make operating process more convenient.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only the accompanying drawing of some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of data transmission method of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of data transmission method of the present invention;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of data transmission method of the present invention;
Fig. 4 is the structural representation of the first embodiment of terminal of the present invention;
Fig. 5 is the structural representation of the second embodiment of terminal of the present invention;
Fig. 6 is the structural representation of the 3rd embodiment of terminal of the present invention.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, it is the schematic flow sheet of the first embodiment of data transmission method of the present invention.
The method comprises:
Step S11, the browser of terminal one receives data and downloads instruction, and obtains downloading data.
In embodiments of the present invention, terminal one can be desktop computer, notebook computer or other-end.Downloading data is all kinds resource of user by Network Capture, comprises installation file type and non-installation file type.
In this step, user assigns the download instruction of data in terminal one, and the browser of terminal one receives this instruction, then obtains this downloading data, and is stored in terminal one this locality, records corresponding local memory address simultaneously.Store and can not be discovered by user with the action of record, simplify the use flow process of user with this, promote Consumer's Experience.
Step S12, the browser of terminal one receives by download data transmissions to the instruction of terminal two, and this terminal two is mobile terminal.
In this step, obtain after downloading data, whether terminal one can send by the request of obtained download data transmissions to terminal two to user.This terminal two is mobile terminal, and mobile terminal can be mobile phone, panel computer, MP3, MP4 etc.
In this step, terminal one is while sending this request, also the option whether repeating this transmission action can be added, when user receives the request of network resource transmission to mobile terminal, have selected the option repeating this transmission action simultaneously, then terminal one no longer sends this identical request to user within the scope of certain hour, but directly repeats transmission action.When terminal one to receive download data transmissions to the instruction of terminal two, then carry out step S13.
Step S13, the browser of terminal one calls local Android debugging bridge ADB, by download data transmissions to terminal two.
In this step, when user accepts the request of download data transmissions to mobile terminal, the browser of terminal one calls local Android debugging bridge ADB and is transferred to mobile terminal by being stored in local download.
The mobile terminal of Android system and the communication of computer terminal one generally need to debug bridge ADB by Android and have come, and namely the transfer of data in terminal one in mobile terminal, will need to start ADB and perform corresponding instruction, complete the transmission of specific data.
ADB (AndroidDebugBridge, Android debugging bridge) is specifically used for doing two pieces thing below:
1. follow the tracks of all Android terminal one having connected computer or the simulation instance operated on developer's machine.
2. the demand for meeting client realizes abundant control command.Client comprises order line user or the helper as DDMS, and control command comprises " adbshell ", " adbpull " etc.These control commands are referred to as " service " in ADB.
The embodiment of the present invention receives data by the browser of terminal one and downloads instruction, and obtain downloading data, receive download data transmissions to the instruction of terminal two, call local Android debugging bridge ADB, by download data transmissions to terminal two, breach the restriction that terminal two needs to be obtained by the client in terminal one downloading data, meet the diversified resource acquisition demand of user, simultaneously simple to operation, save the trouble of installing given client end.
See Fig. 2, it is the schematic flow sheet of the second embodiment of data transmission method of the present invention.
The method comprises:
Step S21, the browser of terminal one receives data and downloads instruction, and obtains downloading data.
Step S22, the browser of terminal one receives by download data transmissions to the instruction of terminal two, and this terminal two is mobile terminal.
Step S21 to S22 is identical with the corresponding step in the first embodiment of data transmission method of the present invention, repeats no more here.
Step S23, the type of the browser determination downloading data of terminal one.
In this step, the browser of terminal one can judge that the file type of this downloading data, file type comprise installation file type (file suffixes is generally .APK) and non-installation file type.
Step S24, the browser of terminal one obtains the local store path of downloading data.
In this step, the browser of terminal one will obtain the local store path of this downloading data in terminal one.
Step S25, the browser of terminal one is based on the type of downloading data and local store path, and the ADB generating described downloading data encapsulates instruction.
In this step, the browser of terminal one generates corresponding ADB based on the file type of this downloading data and local store path and encapsulates instruction.Such as, when this downloading data belongs to installation file, it is adbinstall (local store path /) * .apk that the ADB generated encapsulates instruction; When this downloading data belongs to non-installation file, the ADB that generates encapsulate instruction be adbpush [filename]/local store path/.
Step S26, the browser of terminal one encapsulates instruction based on ADB, calls local Android debugging bridge ADB, with by download data transmissions to terminal two.
In this step, the browser of terminal one calls local Android debugging bridge ADB, corresponding ADB is encapsulated instruction issuing to ADB, makes ADB perform this download data transmissions to terminal two.
Such as, browser can use ConnectToNativeHost function call ADB, calls successfully, uses port.postMessage function that corresponding ADB is encapsulated instruction issuing and performs the instruction received to ADB, ADB, complete download data transmissions terminal two.
In this step, encapsulate instruction according to different ADB, can also comprise the following steps:
Step S261, if ADB encapsulates instruction for installing instruction, then browser encapsulates instruction based on ADB, calls ADB by download data transmissions and is installed on terminal two.
In this step, when downloading data is installation file, the ADB that browser generates encapsulates instruction for installing instruction, and now, browser calls ADB, makes ADB complete download data transmissions and is installed on terminal two.
Step S262, if it is transfer instruction that ADB encapsulates instruction, then browser encapsulates instruction based on ADB, calls ADB by download data transmissions to terminal two.
In this step, when downloading data is conventional data, it is transfer instruction that the ADB that browser generates encapsulates instruction, and now, browser calls ADB, makes ADB complete download data transmissions to terminal two.
The embodiment of the present invention receives data by the browser of terminal one and downloads instruction, and obtain downloading data, receive download data transmissions to the instruction of terminal two, determine the type of downloading data, obtain the local store path of downloading data, based on type and the local store path of downloading data, the ADB generating described downloading data encapsulates instruction, instruction is encapsulated based on ADB, call local Android debugging bridge ADB, with by download data transmissions to terminal two, downloading data can directly be installed or be transferred to terminal two by realization, simple to operation, promote customer experience.
See Fig. 3, it is the schematic flow sheet of the 3rd embodiment of data transmission method of the present invention.
The method comprises the following steps:
Step S31, the browser of terminal one receives data and downloads instruction, and obtains downloading data.
Step S32, the browser of terminal one receives by download data transmissions to the instruction of terminal two, and this terminal two is mobile terminal.
Step S31 to S32 is identical with the corresponding step in the first embodiment of data transmission method of the present invention, repeats no more here.
Step S33, if browser does not detect that terminal one stores ADB, then obtains ADB, and this ADB is stored in terminal one.
In this step, there is not ADB when browser recognizes terminal one this locality, then download by prompting user or automatically obtain ADB from network download or other modes and leave terminal one in, for future use.
Step S34, whether browser sense terminals one and terminal two establish a communications link.
In this step, browser calls the connection of ADB sense terminals one and terminal two, sees the terminal two whether existing and be connected with terminal one.
Step S35, if testing result is no, then browser prompts user sets up the communication connection between terminal one and terminal two; If testing result is yes, then performs browser and call local Android debugging bridge ADB, by download data transmissions to the step of terminal two
In this step, if ADB detects the terminal two not existing and be connected with terminal one, browser prompts user accesses terminal two by the USB (UniversalSerialBus, USB) of terminal one, sets up the communication connection of terminal one and terminal two.The terminal two be connected with terminal one is there is, at execution step S36 if detect
Step S36, the browser of terminal one calls local Android debugging bridge ADB, by download data transmissions to terminal two.
Step S36 is identical with the corresponding step in the first embodiment of data transmission method of the present invention, repeats no more here.
By there is not ADB when browser recognizes terminal one in the embodiment of the present invention, then obtain ADB and leave terminal one in, call ADB and identify whether to there is the terminal two be connected with terminal one, if not, browser prompts user accesses terminal two by the logical USB of getting lines crossed of terminal one, complete terminal one and the connection of terminal two, achieve ADB and obtain and the intellectuality being connected terminal two, make operating process more smooth.
See Fig. 4, it is the structural representation of the first embodiment of terminal of the present invention.
The browser of this terminal can the corresponding each step of browser of terminal one in the first embodiment to perform the above method, specifically comprises:
Downloading data acquisition module 110, indicates receiver module 120 to be connected with transmission, downloads instruction, and obtain downloading data for receiving data.
In the embodiment of the present invention, after user assigns the download instruction of data, this downloading data acquisition module 110 receives this instruction, then obtains this downloading data, and is stored in terminal one this locality, records corresponding local memory address simultaneously.Store and can not be discovered by user with the action of record, simplify the use flow process of user with this, promote Consumer's Experience.
Transmission instruction receiver module 120, is connected with calling module 130, for receiving download data transmissions to the instruction of mobile terminal.
In the embodiment of the present invention, obtain after downloading data, whether transmission instruction receiver module 120 can send by the request of obtained download data transmissions to mobile terminal to user, and receives this transmission and indicate.
In the embodiment of the present invention, this transmission instruction receiver module 120 is while sending this request, also the option whether repeating this transmission action can be added, when user receives the request of network resource transmission to mobile terminal, have selected the option repeating this transmission action simultaneously, then terminal no longer sends this identical request to user within the scope of certain hour, but directly repeats transmission action.
Calling module 130, for calling local Android debugging bridge ADB, by download data transmissions to mobile terminal.
In the embodiment of the present invention, when user accepts the request of download data transmissions to mobile terminal, this calling module 130 calls local Android debugging bridge ADB and is transferred to mobile terminal by being stored in local download.
The browser of the terminal of the embodiment of the present invention receives data by the browser of terminal one and downloads instruction, and obtain downloading data, receive download data transmissions to the instruction of terminal two, call local Android debugging bridge ADB, by download data transmissions to terminal two, breach the restriction that terminal two needs to be obtained by the client in terminal one downloading data, meet the diversified resource acquisition demand of user, simultaneously simple to operation, save the trouble of installing given client end.
See Fig. 5, it is the structural representation of the second embodiment of terminal of the present invention.
The browser of this terminal can the corresponding each step of browser of terminal one in the second embodiment to perform the above method, specifically comprises:
Downloading data acquisition module 210, indicates receiver module 220 to be connected with transmission, downloads instruction, and obtain downloading data for receiving data.
Transmission instruction receiver module 220, is connected with downloading data determination type module 230, for receiving download data transmissions to the instruction of mobile terminal.
Downloading data acquisition module 210 is identical with the respective modules in the first embodiment of the browser of data transmission terminal of the present invention with transmission instruction receiver module 220, repeats no more here.
Downloading data determination type module 230, is connected with downloading data path acquisition module 240, for determining the type of described downloading data.
In the embodiment of the present invention, this downloading data determination type module 230 can judge the file type of this downloading data, and file type comprises installation file type (file suffixes is generally .APK) and non-installation file type.
Downloading data path acquisition module 240, is connected, for obtaining the local store path of downloading data with encapsulation directive generation module 250.
In the embodiment of the present invention, this downloading data path acquisition module 240 will obtain the local store path of this downloading data in terminal one.
Encapsulation directive generation module 250, is connected with calling module 260, for based on the type of downloading data and described local store path, generates the ADB encapsulation instruction of downloading data.
In the embodiment of the present invention, this encapsulation directive generation module 250 generates corresponding ADB based on the file type of this downloading data and local store path and encapsulates instruction.Such as, when this downloading data belongs to installation file, it is adbinstall (local store path /) * .apk that the ADB generated encapsulates instruction; When this downloading data belongs to non-installation class file, the ADB that generates encapsulate instruction be adbpush [filename]/local store path/.
Calling module 260, for encapsulating instruction based on ADB, calls local Android debugging bridge ADB, with by download data transmissions to mobile terminal.
This calling module 260 calls local Android debugging bridge ADB, corresponding ADB is encapsulated instruction issuing to ADB, makes ADB perform this download data transmissions to mobile terminal.
Such as, calling module 260 can use ConnectToNativeHost function call ADB, calls successfully, uses port.postMessage function that corresponding ADB is encapsulated instruction issuing to ADB, ADB performs the instruction received, and completes download data transmissions mobile terminal.
Encapsulate instruction according to different ADB, this calling module can also comprise:
First call unit 261, if encapsulate instruction for installing instruction for described ADB, then browser encapsulates instruction based on this ADB, calls ADB by download data transmissions and is installed on mobile terminal;
In the embodiment of the present invention, when downloading data is installation data, the ADB that encapsulation directive generation module 250 generates encapsulates instruction for installing instruction, now, calls first module 261 and calls ADB, make ADB complete download data transmissions and be installed on terminal two.
Second call unit 262, if encapsulating instruction for ADB is transfer instruction, then browser encapsulates instruction based on this ADB, calls ADB by download data transmissions to mobile terminal.
In the embodiment of the present invention, when downloading data is non-installation data, it is transfer instruction that the ADB that encapsulation directive generation module 250 generates encapsulates instruction, now, calls second unit 262, makes ADB complete download data transmissions to terminal two.
The browser of the terminal of the embodiment of the present invention receives data by the browser of terminal one and downloads instruction, and obtain downloading data, receive download data transmissions to the instruction of terminal two, determine the type of downloading data, obtain the local store path of downloading data, based on type and the local store path of downloading data, the ADB generating described downloading data encapsulates instruction, instruction is encapsulated based on ADB, call local Android debugging bridge ADB, with by download data transmissions to terminal two, downloading data can directly be installed or be transferred to terminal two by realization, simple to operation, promote customer experience.
See Fig. 6, it is the structural representation of the 3rd embodiment of terminal of the present invention.
The browser of this terminal can the corresponding each step of browser of terminal one in the 3rd embodiment to perform the above method, specifically comprises:
Downloading data acquisition module 310, indicates receiver module 320 to be connected with transmission, downloads instruction, and obtain downloading data for receiving data.
Transmission instruction receiver module 320, is connected with ADB acquisition module 330, for receiving download data transmissions to the instruction of mobile terminal.
Downloading data acquisition module 310 is identical with the respective modules in the first embodiment of the browser of data transmission terminal of the present invention with transmission instruction receiver module 320, repeats no more here.
ADB acquisition module 330, is connected with linkage identification module 340, if for not detecting that terminal storage has ADB, then obtain ADB, and this ADB is stored in terminal.
In the embodiment of the present invention, there is not ADB when ADB acquisition module 330 recognizes terminal one this locality, then download by prompting user or automatically obtain ADB from network download or other modes and leave terminal one in, for future use.
Whether detection module 340, is connected with processing module 350, establish a communications link with described terminal two for detecting described terminal one.
In the embodiment of the present invention, linkage identification module 340 calls the connection of ADB sense terminals and mobile terminal, sees the mobile terminal whether existing and established a communications link with terminal.
Processing module 350, be connected with calling module 360, if be no for testing result, then prompting user sets up the communication connection between terminal and mobile terminal, if testing result is yes, then performed by calling module 360 and call local Android and debug bridge ADB, by download data transmissions to the step of mobile terminal.
In the embodiment of the present invention, if ADB detects the mobile terminal not existing and be connected with terminal, connect module 350 and pointed out user to access mobile terminal by the logical USB that gets lines crossed of terminal, set up the communication connection of terminal and mobile terminal.If detect, the communication connection of terminal and mobile terminal is set up, then performed by calling module 360 and call local Android and debug bridge ADB, by download data transmissions to the step of mobile terminal.
Calling module 360, for calling local Android debugging bridge ADB, by download data transmissions to mobile terminal.
Calling module 360 is identical with the respective modules in the first embodiment of the browser of data transmission terminal of the present invention, repeats no more here.
By there is not ADB when browser recognizes terminal one in the browser of the terminal of the embodiment of the present invention, then obtain ADB and leave terminal one in, call ADB and identify whether to there is the terminal two be connected with terminal one, if not, browser prompts user accesses terminal two by the logical USB of getting lines crossed of terminal one, complete terminal one and the connection of terminal two, achieve ADB and obtain and the intellectuality being connected terminal two, make operating process more smooth.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1.一种数据传输方法,其特征在于,包括:1. A data transmission method, characterized in that, comprising: 终端一的浏览器接收数据下载指示,并获取下载数据;The browser of Terminal 1 receives the data download instruction and obtains the downloaded data; 所述浏览器接收将所述下载数据传输至终端二的指示,所述终端二为移动终端;The browser receives an instruction to transmit the downloaded data to Terminal 2, and the Terminal 2 is a mobile terminal; 所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二。The browser calls the local Android debugging bridge ADB, and transmits the download data to the terminal two. 2.如权利要求1所述的数据传输方法,其特征在于,所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二的步骤之前,还包括:2. The data transmission method according to claim 1, wherein the browser calls the local Andrews debugging bridge ADB, before the download data is transmitted to the step of the terminal two, it also includes: 所述浏览器确定所述下载数据的类型;the browser determines the type of the downloaded data; 所述浏览器获取所述下载数据的本地存储路径;The browser obtains the local storage path of the downloaded data; 所述浏览器基于所述下载数据的类型和所述本地存储路径,生成所述下载数据的ADB封装指令;The browser generates an ADB encapsulation instruction for the downloaded data based on the type of the downloaded data and the local storage path; 所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二的步骤,包括:The browser calls the local Android debugging bridge ADB, and the step of transmitting the download data to the terminal two includes: 所述浏览器基于所述ADB封装指令,调用本地的安卓调试桥ADB,以将所述下载数据传输至所述终端二。The browser invokes a local Android debugging bridge ADB based on the ADB encapsulation instruction, so as to transmit the download data to the terminal two. 3.如权利要求2所述的数据传输方法,其特征在于,所述浏览器基于所述ADB封装指令,调用本地的安卓调试桥ADB,以将所述下载数据传输至所述终端二的步骤,包括:3. The data transmission method according to claim 2, wherein the browser calls the local Android debugging bridge ADB based on the ADB encapsulation instruction, so as to transfer the downloaded data to the step of the terminal two ,include: 若所述ADB封装指令为安装指令,则所述浏览器基于所述ADB封装指令,调用所述ADB将所述下载数据传输并安装于所述终端二;If the ADB encapsulation instruction is an installation instruction, then the browser calls the ADB to transmit and install the downloaded data on the terminal 2 based on the ADB encapsulation instruction; 若所述ADB封装指令为传输指令,则所述浏览器基于所述ADB封装指令,调用所述ADB将所述下载数据传输至所述终端二。If the ADB encapsulation instruction is a transmission instruction, the browser invokes the ADB to transmit the download data to the terminal two based on the ADB encapsulation instruction. 4.如权利要求1所述的数据传输方法,其特征在于,所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二的步骤之前,还包括:4. The data transmission method according to claim 1, wherein the browser calls the local Andrews debugging bridge ADB, and before the download data is transmitted to the step of the terminal two, it also includes: 若所述浏览器未检测到所述终端一存储有所述ADB,则获取所述ADB,并将所述ADB存储于所述终端一。If the browser does not detect that the terminal one stores the ADB, then acquire the ADB and store the ADB in the terminal one. 5.如权利要求1所述的数据传输方法,其特征在于,所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二的步骤之前,还包括:5. the data transmission method as claimed in claim 1, is characterized in that, described browser calls local Andrews debugging bridge ADB, before described downloading data is transmitted to the step of described terminal two, also comprises: 所述浏览器检测所述终端一与所述终端二是否建立通信连接;The browser detects whether a communication connection is established between the first terminal and the second terminal; 若检测结果为否,则所述浏览器提示用户建立所述终端一与所述终端二之间的通信连接;If the detection result is negative, the browser prompts the user to establish a communication connection between the terminal one and the terminal two; 若检测结果为是,则执行所述浏览器调用本地的安卓调试桥ADB,将所述下载数据传输至所述终端二的步骤。If the detection result is yes, execute the step of calling the local Android debugging bridge ADB by the browser to transmit the downloaded data to the terminal two. 6.一种终端,其特征在于,所述终端包括浏览器,所述浏览器包括:6. A terminal, characterized in that the terminal includes a browser, and the browser includes: 下载数据获取模块,用于接收数据下载指示,并获取下载数据;The download data acquisition module is used to receive the data download instruction and obtain the download data; 传输指示接收模块,用于接收将所述下载数据传输至移动终端的指示;a transmission instruction receiving module, configured to receive an instruction to transmit the downloaded data to the mobile terminal; 调用模块,用于调用本地的安卓调试桥ADB,将所述下载数据传输至所述移动终端。The calling module is used to call the local Android debugging bridge ADB, and transmit the downloaded data to the mobile terminal. 7.如权利要求6所述的终端,其特征在于,所述浏览器还包括:7. The terminal according to claim 6, wherein the browser further comprises: 下载数据类型确定模块,用于确定所述下载数据的类型;A download data type determination module, configured to determine the type of the download data; 下载数据路径获取模块,用于获取所述下载数据的本地存储路径;A download data path obtaining module, configured to obtain a local storage path of the downloaded data; 封装指令生成模块,用于基于所述下载数据的类型和所述本地存储路径,生成所述下载数据的ADB封装指令;An encapsulation instruction generation module, configured to generate an ADB encapsulation instruction for the downloaded data based on the type of the downloaded data and the local storage path; 所述调用模块进一步用于基于所述ADB封装指令,调用本地的安卓调试桥ADB,以将所述下载数据传输至所述移动终端。The calling module is further configured to call a local Android debugging bridge ADB based on the ADB encapsulation instruction, so as to transmit the download data to the mobile terminal. 8.如权利要求7所述的终端,其特征在于,所述调用模块包括:8. The terminal according to claim 7, wherein the calling module comprises: 第一调用单元,用于若所述ADB封装指令为安装指令,则基于所述ADB封装指令,调用所述ADB将所述下载数据传输并安装于所述移动终端;A first calling unit, configured to call the ADB to transmit and install the downloaded data on the mobile terminal based on the ADB packaging instruction if the ADB packaging instruction is an installation instruction; 第二调用单元,用于若所述ADB封装指令为传输指令,则基于所述ADB封装指令,调用所述ADB将所述下载数据传输至所述移动终端。The second calling unit is configured to call the ADB to transmit the download data to the mobile terminal based on the ADB encapsulation instruction if the ADB encapsulation instruction is a transmission instruction. 9.如权利要求6所述的终端,其特征在于,所述浏览器还包括:9. The terminal according to claim 6, wherein the browser further comprises: ADB获取模块,用于若未检测到所述终端存储有所述ADB,则获取所述ADB,并将所述ADB存储于所述终端。An ADB obtaining module, configured to obtain the ADB if it is not detected that the terminal stores the ADB, and store the ADB in the terminal. 10.如权利要求6所述的终端,其特征在于,所述浏览器还包括:10. The terminal according to claim 6, wherein the browser further comprises: 检测模块,用于检测所述终端与所述移动终端是否建立通信连接;A detection module, configured to detect whether a communication connection is established between the terminal and the mobile terminal; 处理模块,用于若检测结果为否,则提示用户建立所述终端与所述移动终端之间的通信连接,若检测结果为是,则由调用模块执行调用本地的安卓调试桥ADB,将所述下载数据传输至所述移动终端的步骤。The processing module is used to prompt the user to establish a communication connection between the terminal and the mobile terminal if the detection result is no, and if the detection result is yes, the calling module executes calling the local Android debugging bridge ADB, and transfers the The step of transmitting the downloaded data to the mobile terminal.
CN201510100040.8A 2015-03-06 2015-03-06 Data transmission method and terminal Pending CN105323299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510100040.8A CN105323299A (en) 2015-03-06 2015-03-06 Data transmission method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510100040.8A CN105323299A (en) 2015-03-06 2015-03-06 Data transmission method and terminal

Publications (1)

Publication Number Publication Date
CN105323299A true CN105323299A (en) 2016-02-10

Family

ID=55249885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510100040.8A Pending CN105323299A (en) 2015-03-06 2015-03-06 Data transmission method and terminal

Country Status (1)

Country Link
CN (1) CN105323299A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804366A (en) * 2018-03-14 2018-11-13 南京烽火天地通信科技有限公司 A kind of device and method improving Android device data line transfer rate
CN108958785A (en) * 2017-05-23 2018-12-07 腾讯科技(深圳)有限公司 A kind of application program updating method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179805A (en) * 2007-12-24 2008-05-14 四川长城天讯数码技术有限公司 Method and system for downloading information of mobile terminal information
CN101478754A (en) * 2009-01-23 2009-07-08 深圳华为通信技术有限公司 Media file downloading method, apparatus and system based on copyright management
US20100115031A1 (en) * 2008-10-31 2010-05-06 International Business Machines Corporation System and Method For Enabling P2P Applications in a Wireless Mobile Network
CN102752365A (en) * 2012-05-29 2012-10-24 华为终端有限公司 Method and device for processing information
CN102938943A (en) * 2012-09-19 2013-02-20 河南智游网络技术有限公司 Wireless fidelity (WiFi) wireless data transmission method based on iPhone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179805A (en) * 2007-12-24 2008-05-14 四川长城天讯数码技术有限公司 Method and system for downloading information of mobile terminal information
US20100115031A1 (en) * 2008-10-31 2010-05-06 International Business Machines Corporation System and Method For Enabling P2P Applications in a Wireless Mobile Network
CN101478754A (en) * 2009-01-23 2009-07-08 深圳华为通信技术有限公司 Media file downloading method, apparatus and system based on copyright management
CN102752365A (en) * 2012-05-29 2012-10-24 华为终端有限公司 Method and device for processing information
CN102938943A (en) * 2012-09-19 2013-02-20 河南智游网络技术有限公司 Wireless fidelity (WiFi) wireless data transmission method based on iPhone

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958785A (en) * 2017-05-23 2018-12-07 腾讯科技(深圳)有限公司 A kind of application program updating method and device
CN108958785B (en) * 2017-05-23 2022-01-07 腾讯科技(深圳)有限公司 Application program upgrading method and device
CN108804366A (en) * 2018-03-14 2018-11-13 南京烽火天地通信科技有限公司 A kind of device and method improving Android device data line transfer rate

Similar Documents

Publication Publication Date Title
CN104699616B (en) The method of a kind of application test, Apparatus and system
WO2016029792A1 (en) Hardware device debugging method, device and system
CN110024362A (en) Bluetooth test system and method
CN113672441B (en) Method and device for testing intelligent equipment
CN105338110A (en) Remote debugging method, platform and server
CN113014449A (en) Local communication protocol pressure test method and system of electricity consumption information acquisition system
CN112333057B (en) Intelligent household equipment distribution network testing method and device, executive machine and storage medium
CN106487847B (en) Information processing method and transfer server
CN104866418A (en) Automatic testing method and system
CN108536484A (en) Parameter amending method, device, terminal device and storage medium
CN110347539B (en) Test method, device, system, computing device and medium applied to server
CN108345533A (en) Application program debugging method, device and server
CN104077163B (en) A kind of installation method of installation kit, device and terminal
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN105323299A (en) Data transmission method and terminal
CN109189629B (en) Method for realizing terminal remote control based on USB device and storage medium
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN109871288A (en) Execute method, apparatus, equipment and the medium of android system order
WO2024011916A1 (en) Control method and apparatus, device, and storage medium
KR20220108225A (en) Remote access system and method for remote test of moboile communication terminal
CN101510179A (en) Signal transmission apparatus and method
CN111506502A (en) System and method for testing mobile terminal UI automation distribution network process
CN108628683B (en) Data transmission method and device
CN114124691B (en) Equipment deployment method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160210

RJ01 Rejection of invention patent application after publication