CN104394600B - Transmit the method and device of file - Google Patents

Transmit the method and device of file Download PDF

Info

Publication number
CN104394600B
CN104394600B CN201410575605.3A CN201410575605A CN104394600B CN 104394600 B CN104394600 B CN 104394600B CN 201410575605 A CN201410575605 A CN 201410575605A CN 104394600 B CN104394600 B CN 104394600B
Authority
CN
China
Prior art keywords
link
terminal
transmission
network
information
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
CN201410575605.3A
Other languages
Chinese (zh)
Other versions
CN104394600A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410575605.3A priority Critical patent/CN104394600B/en
Publication of CN104394600A publication Critical patent/CN104394600A/en
Application granted granted Critical
Publication of CN104394600B publication Critical patent/CN104394600B/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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The disclosure discloses a kind of method and device for transmitting file, belongs to electronic equipment and wireless communication field.Methods described includes:Receive and send the link connection information that terminal is sent by Bluetooth link;The network link established according to the Connecting quantity included in the link connection information between the transmission terminal;Receive the transmission file data of the terminal by the network link transmission.The disclosure passes through Bluetooth link receives link link information, the network link between terminal is established and sent to Connecting quantity in the link connection information received, and file data is received by the network link of foundation, the network link for transmitting file is established outside Bluetooth link, it is limited to solve Bluetooth link transmission rate in correlation technique, the problem of quick transmission of large-data documents can not be met, reach the effect of file transfer rate between raising terminal.

Description

Transmit the method and device of file
Technical field
This disclosure relates to electronic equipment and wireless communication field, more particularly to a kind of method and device for transmitting file.
Background technology
With the continuous popularization of the mobile terminals such as smart mobile phone, tablet personal computer and E-book reader, user is to movement The demand that the big file transmission such as audio, picture, video is carried out between terminal is also more and more.
In the related art, the transmission of file can be generally carried out between two mobile terminals by bluetooth.Such as with intelligence Exemplified by file transmission between energy mobile phone, user a selects to establish with smart mobile phone B in smart mobile phone A bluetooth equipment list Bluetooth link, and select when a file is transferred into smart mobile phone B, smart mobile phone A can pass through the bluetooth chain of foundation This document is transferred to smart mobile phone B by road.Wherein, Bluetooth link uses OBEX (Object Exchange, object exchange) agreement File transmission is carried out, its transmission rate is limited, can not meet the quick transmission of large-data documents, and Consumer's Experience is not high.
The content of the invention
Bluetooth link transmission rate is limited in correlation technique in order to solve, and can not meet the quick transmission of large-data documents The problem of, present disclose provides a kind of method and device for transmitting file.The technical scheme is as follows:
First aspect, there is provided a kind of method for transmitting file, in receiving terminal, methods described to include:
Receive and send the link connection information that terminal is sent by Bluetooth link;
The network link established according to the Connecting quantity included in the link connection information between the transmission terminal;
Receive the transmission file data of the terminal by the network link transmission.
Optionally, the reception transmission file data of the terminal by the network link transmission, including:
The fileinfo that the transmission terminal is sent by the Bluetooth link is received, is included in the fileinfo described Address of the file data in the transmission terminal;
Download software into the receiving terminal sends download instruction, and the download instruction is used to indicate that the download is soft Part downloads the file data by the network link from the address.
Optionally, the reception transmission file data of the terminal by the network link transmission, including:
When corresponding at least two file of the file data, pass through each self-corresponding transmission line of at least two file Journey receives the respective data of at least two files respectively.
Optionally, the network link is wireless local area network link, Wireless Fidelity hot-spot link or Wireless Fidelity equity Transmission link.
Optionally, methods described also includes:
Before the link connection information that transmission terminal is sent by Bluetooth link is received, pass through the Bluetooth link and institute State and send the network type that terminal consults the determination network link.
Optionally, it is described to consult to determine the network class of the network link by the Bluetooth link and the transmission terminal Type, including:
The link selection information that the transmission terminal is sent by the Bluetooth link is received, the link selection information is used In the network type for indicating the transmission terminal support;
Identify the content of the link selection information;
It is whole according to the link selection information and the reception if identifying the content success of the link selection information The network type that end is supported determines the network type of the network link;
The network type of the network link is sent to the transmission terminal.
Optionally, methods described also includes:
If identifying, the content of the link selection information is unsuccessful, and recognition failures response is returned to the transmission terminal;
Receive the file data that the transmission terminal is transmitted by the Bluetooth link.
Optionally, the link selection information for receiving the transmission terminal and being sent by the Bluetooth link, including:
Receive what the transmission terminal was sent based on Object Exchange, the get for including the link selection message please Ask, the message format of the link selection message is user-defined format.
Optionally, the link selection information for receiving the transmission terminal and being sent by the Bluetooth link, including:
Receive the link selection message that the Object Exchange of the transmission terminal based on extension is sent, the extension Object Exchange protocol message in command code be self-defining operation code.
Second aspect, there is provided a kind of method for transmitting file, for sending in terminal, methods described includes:
By Bluetooth link to receiving terminal transmission link link information, the link connection information is used to indicate described connect Receive the network link that terminal is established between the transmission terminal according to the Connecting quantity included in the link connection information;
File data is transmitted to the receiving terminal by the network link.
Optionally, it is described that file data is transmitted to the receiving terminal by the network link, including:
Fileinfo is sent to the receiving terminal by the Bluetooth link, the file is included in the fileinfo Address of the data in the transmission terminal, the fileinfo are used to indicate that the download software in the receiving terminal passes through institute Network link is stated, the file data is downloaded from the address.
Optionally, it is described that file data is transmitted to the receiving terminal by the network link, including:
When corresponding at least two file of the file data, pass through each self-corresponding transmission line of at least two file Journey transmits the respective data of at least two files respectively.
Optionally, methods described also includes:
, to before receiving terminal transmission link link information, connect by Bluetooth link by the Bluetooth link with described Terminal is received to consult to determine the network type of the network link.
Optionally, it is described to consult to determine the network class of the network link by the Bluetooth link and the receiving terminal Type, including:
Information is selected to the receiving terminal transmission link by the Bluetooth link, the link selection information is used to refer to Show the network type that the transmission terminal is supported;
Receive what the transmission terminal was sent, the network type of the network link, the network type of the network link Be the receiving terminal after the content success of the link selection information is identified, according to the link selection information and described What the network type that receiving terminal is supported determined.
Optionally, it is described by Bluetooth link to receiving terminal transmission link link information, including:
The link connection information is generated according to the network type of the network link;
The link connection information is sent to the receiving terminal by the Bluetooth link.
Optionally, methods described also includes:
When receiving the recognition failures response that the transmission terminal returns, received eventually to described by the Bluetooth link The file data is transmitted at end, and the recognition failures response is identifying the content of the link selection information for the receiving terminal The response returned after unsuccessful.
Optionally, it is described that information is selected to the receiving terminal transmission link by the Bluetooth link, including:
The get requests for including the link selection message, institute are sent to the receiving terminal based on Object Exchange The message format for stating link selection message is user-defined format.
Optionally, it is described that information is selected to the receiving terminal transmission link by the Bluetooth link, including:
The link selection message, pair of the extension are sent to the receiving terminal based on the Object Exchange of extension As exchange agreement protocol message in command code be self-defining operation code.
The third aspect, there is provided a kind of device for transmitting file, in receiving terminal, described device to include:
Information receiving module, for receiving the link connection information for sending terminal and being sent by Bluetooth link;
Link establishment module, sent eventually with described for being established according to the Connecting quantity included in the link connection information Network link between end;
First data reception module, for receiving the transmission file data of the terminal by the network link transmission.
Optionally, first data reception module, including:
First information receiving submodule, believe for receiving the file that the transmission terminal is sent by the Bluetooth link Cease, address of the file data in the transmission terminal is included in the fileinfo;
Sending submodule is instructed, sends download instruction for the download software into the receiving terminal, the download refers to Make for indicating that by the network link, the file data is downloaded from the address for the download software.
Optionally, first data reception module, for when the file data corresponds at least two files, passing through Each self-corresponding transmission line journey of at least two files receives the respective data of at least two files respectively.
Optionally, the network link is wireless local area network link, Wireless Fidelity hot-spot link or Wireless Fidelity equity Transmission link.
Optionally, described device also includes:
First negotiation module, for receiving the link for sending terminal and being sent by Bluetooth link in described information receiving module Before link information, consult to determine the network type of the network link by the Bluetooth link and the transmission terminal.
Optionally, first negotiation module, including:
Second information receiving submodule, the link selection sent for receiving the transmission terminal by the Bluetooth link Information, the link selection information are used for the network type for indicating that the transmission terminal is supported;
Submodule is identified, for identifying the content of the link selection information;
Type determination module, if identifying the content success of the link selection information for the identification submodule, The network type supported according to the link selection information and the receiving terminal determines the network type of the network link;
Type sending submodule, for the network type of the network link to be sent into the transmission terminal.
Optionally, described device also includes:
Response returns to module, if identifying that the content of the link selection information is unsuccessful for the identification submodule, Recognition failures response is returned to the transmission terminal;
Second data reception module, the number of files transmitted for receiving the transmission terminal by the Bluetooth link According to.
Optionally, the second information receiving submodule, sent out for receiving the transmission terminal based on Object Exchange Send, include the get requests of the link selection message, the message format of the link selection message is user-defined format.
Optionally, the second information receiving submodule, for receiving the transmission object exchange of the terminal based on extension The link selection message that agreement is sent, the command code in the protocol message of the Object Exchange of the extension are self-defined Command code.
Fourth aspect, there is provided a kind of device for transmitting file, for sending in terminal, described device includes:
Information sending module, for by Bluetooth link to receiving terminal transmission link link information, the link connection Information is used to indicate that the receiving terminal is established with the transmission eventually according to the Connecting quantity included in the link connection information Network link between end;
First data transmission module, for transmitting file data to the receiving terminal by the network link.
Optionally, the first data transmission module, including:
First information sending submodule, for sending fileinfo, institute to the receiving terminal by the Bluetooth link The address that the file data is included in fileinfo in the transmission terminal is stated, the fileinfo is used to indicate described connect The download software in terminal is received by the network link, the file data is downloaded from the address.
Optionally, the first data transmission module, for when the file data corresponds at least two files, passing through Each self-corresponding transmission line journey of at least two files transmits the respective data of at least two files respectively.
Optionally, described device also includes:
Second negotiation module, for being connected in described information sending module by Bluetooth link to receiving terminal transmission link Before information, consult to determine the network type of the network link by the Bluetooth link and the receiving terminal.
Optionally, second negotiation module, including:
Second information sending submodule, for selecting to believe to the receiving terminal transmission link by the Bluetooth link Breath, the link selection information are used for the network type for indicating that the transmission terminal is supported;
Type reception submodule, for receiving the transmission terminal transmission, the network type of the network link is described The network type of network link is the receiving terminal after the content success of the link selection information is identified, according to the chain What the network type that road selects information and the receiving terminal to support determined.
Optionally, described information sending module, including:
Information generates submodule, for generating the link connection information according to the network type of the network link;
3rd information sending submodule, for the link connection information to be sent into described connect by the Bluetooth link Receive terminal.
Optionally, described device also includes:
Second data transmission module, for when receiving the recognition failures response that the transmission terminal returns, passing through institute State Bluetooth link and transmit the file data to the receiving terminal, the recognition failures response is identifying for the receiving terminal The unsuccessful rear response returned of content of the link selection information.
Optionally, the second information sending submodule, for being sent based on Object Exchange to the receiving terminal Include the get requests of the link selection message, the message format of the link selection message is user-defined format.
Optionally, the second information sending submodule, for being received eventually to described based on the Object Exchange of extension Hold and send the link selection message, the command code in the protocol message of the Object Exchange of the extension is self-defining operation Code.
5th aspect, there is provided a kind of device for transmitting file, in receiving terminal, described device to include:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Receive and send the link connection information that terminal is sent by Bluetooth link;
The network link established according to the Connecting quantity included in the link connection information between the transmission terminal;
Receive the transmission file data of the terminal by the network link transmission.
6th aspect, there is provided a kind of device for transmitting file, for sending in terminal, described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
By Bluetooth link to receiving terminal transmission link link information, the link connection information is used to indicate described connect Receive the network link that terminal is established between the transmission terminal according to the Connecting quantity included in the link connection information;
File data is transmitted to the receiving terminal by the network link.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By Bluetooth link receives link link information, the Connecting quantity in the link connection information received is established File data is received with sending the network link between terminal, and by the network link of foundation, is established outside Bluetooth link For transmitting the network link of file, such as, the transmission rate WLAN (Wireless higher than Bluetooth link can be established Local Area Networks, WLAN) link, Wi-Fi (Wireless Fidelity, Wireless Fidelity) hot-spot link Or Wi-Fi p2p (Peer to Peer, equity) link etc., have so as to solve Bluetooth link transmission rate in correlation technique Limit, the problem of quick transmission of large-data documents can not be met, reach the effect for improving file transfer rate between terminal.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and in specification together for explaining principle of the invention.
Fig. 1 is showing for the implementation environment involved by a kind of method for the transmission file for implementing to exemplify according to exemplary partial It is intended to;
Fig. 2 is a kind of flow chart of the method for transmission file according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the method for transmission file according to another exemplary embodiment;
Fig. 4 is a kind of flow chart of the method for transmission file according to further example embodiment;
Fig. 5 is the message structure figure of the OBEX agreements according to further example embodiment;
Fig. 6 is a kind of flow chart of the method for transmission file according to an exemplary embodiment;
Fig. 7 is a kind of flow chart of the method for transmission file according to another exemplary embodiment;
Fig. 8 is a kind of flow chart of the method for transmission file according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the device of transmission file according to an exemplary embodiment;
Figure 10 is a kind of block diagram of the device of transmission file according to another exemplary embodiment;
Figure 11 is a kind of block diagram of the device of transmission file according to an exemplary embodiment;
Figure 12 is a kind of block diagram of the device of transmission file according to an exemplary embodiment;
Figure 13 is a kind of block diagram of the device of transmission file according to an exemplary embodiment.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is refer to, one kind involved by the method for the transmission file provided it illustrates each embodiment of the disclosure is real Apply the schematic diagram of environment.The implementation environment includes:Receiving terminal 120 and transmission terminal 140.
Receiving terminal 120 and transmission terminal 140 can be such as smart mobile phone, tablet personal computer, electronic reader, intelligent hand Ring, intelligent watch or intelligent glasses etc. have the portable mobile termianl of Bluetooth function.
Pass through Bluetooth link wireless connection between receiving terminal 120 and transmission terminal 140.
Fig. 2 is a kind of flow chart of the method for transmission file according to an exemplary embodiment, and the present embodiment is with this The method of transmission file is used to come in the implementation environment shown in Fig. 1 for example, wherein, the method for the transmission file is used for as schemed Receiving terminal 120 in implementation environment shown in 1.As shown in Fig. 2 the method for the transmission file may comprise steps of.
In step 202, receive and send the link connection information that terminal is sent by Bluetooth link.
In step 204, established according to the Connecting quantity included in the link connection information between the transmission terminal Network link.
In step 206, the file data that the transmission terminal passes through the network link transmission is received.
Wherein, the network link can be the wireless network chain based on wireless network protocol (802.11a/b/e/g/n etc.) Road, such as, the network link can be WLAN links, Wi-Fi Hotspot link or Wi-Fi p2p links etc., the network link The peak transfer rate that can be supported is typically much higher than the peak transfer rate of Bluetooth link, is entered by the network link During row data transfer, the file transfer rate of terminal room can greatly be improved.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, is connected by Bluetooth link receives link Information, the Connecting quantity in the link connection information received is established and sends the network link between terminal, and passes through The network link of foundation receives file data, and the network link for transmitting file is established outside Bluetooth link, such as, can be with The transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc. are established, so as to solve Bluetooth link transmission rate is limited in correlation technique of having determined, the problem of can not meeting the quick transmission of large-data documents, reaches The effect of file transfer rate between raising terminal.
Fig. 3 is a kind of flow chart of the method for transmission file according to another exemplary embodiment, the present embodiment with The method of the transmission file is used to come in the implementation environment shown in Fig. 1 for example, wherein, the method for the transmission file is used for such as Receiving terminal 120 in implementation environment shown in Fig. 1.As shown in figure 3, the method for the transmission file may comprise steps of.
In step 302, consult to determine the network type of network link with sending terminal by Bluetooth link.
Wherein, the network link can be the wireless network chain based on wireless network protocol (802.11a/b/e/g/n etc.) Road, such as, the network link can be WLAN links, Wi-Fi Hotspot link or Wi-Fi p2p links etc., the network link The peak transfer rate that can be supported is typically much higher than the peak transfer rate of Bluetooth link.
When establishing a network link between receiving terminal and transmission terminal, it is necessary to which both sides support the network link pair simultaneously The network type answered, therefore, established between receiving terminal and transmission terminal before network link, it is necessary first to consult to determine the net The network type of network link.
Wherein, receiving terminal, which can receive, sends the link selection information that terminal is sent by Bluetooth link, link choosing Select information and be used for the network type for indicating that the transmission terminal is supported;Receiving terminal is whole according to the link selection information and the reception The network type that end is supported determines the network type of the network link, and the network type of the network link is sent into transmission eventually End.
It should be noted that when consulting to determine the network type of the network link or receiving terminal is to transmission Terminal sends the link selection information of the receiving terminal, as transmission terminal according to the receiving terminal indicated by link selection information Network type, and determine according to the network type of the transmission terminal network type of the network link.
Wherein, the link selection information, which can include, sends the network type that terminal is supported, such as WLAN, Wi-Fi Hotspot Or Wi-Fi p2p.Or the link selection information can also include the network connection information for sending terminal, such as SSID (Service Set Identifier, service set), BSSID (Basic Service Set Identifier, basis clothes It is engaged in set identifier), gateway address Gateway IP (Internet Protocol, the agreement interconnected between network) and gateway are covered Code Gateway Netmask etc., receiving terminal can analyze acquisition transmission terminal branch by sending the network connection information of terminal The network type held.
In addition, so that the network type of network link includes WLAN, Wi-Fi Hotspot or Wi-Fi p2p as an example, consulting really When determining the network type of network link, it can be determined according to the order of WLAN > Wi-Fi p2p > Wi-Fi Hotspots, such as, when connecing When the side for receiving terminal and sending in terminal currently has the WLAN to connect, network types of the WLAN for network link is determined, if connect Receive terminal and all connected with terminal is sent without WLAN, and receiving terminal and transmission terminal all support Wi-Fi p2p, it is determined that Wi- Fi p2p are the network type of network link;If receiving terminal and send it is at least one in terminal do not support Wi-Fi p2p, then Determine the network type that Wi-Fi Hotspot is network link.
In step 304, receive and send the link connection information that terminal is sent by Bluetooth link, the link connection information To send the link connection information that terminal is sent according to the network type of the network link.
Within step 306, established according to the Connecting quantity included in the link connection information between the transmission terminal Network link.
Wherein, the network link can be wireless local area network link, Wireless Fidelity hot-spot link or Wireless Fidelity equity Transmission link.
Such as so that the network type of network link includes WLAN, Wi-Fi Hotspot or Wi-Fi p2p as an example, when the network When the network type of link is WLAN, the Connecting quantity can be the SSID for sending terminal, and receiving terminal can be whole according to sending The SSID at end, the WLAN access points accessed where the transmission terminal;When the network type of the network link is Wi-Fi p2p, The Connecting quantity can be send terminal MAC (Media Access Control, medium access control) address, receiving terminal MAC Address according to terminal is sent is established Wi-Fi p2p with transmission terminal and is connected;When the network type of the network link is Wi- During Fi focuses, the Connecting quantity can be send terminal as Wi-Fi Hotspot when hotspot name and password, receiving terminal according to Hotspot name and password when the transmission terminal is as Wi-Fi Hotspot access the transmission terminal.
It should be noted that such scheme is obtained the link connection information for sending terminal by receiving terminal, and according to the chain Connecting quantity in the link information of road establishes network link, in actual applications, can also obtain receiving terminal by transmission terminal Link connection information and establish network link, its establishment step is similar with such scheme, and here is omitted.
In step 308, the file data that the transmission terminal passes through the network link transmission is received.
Receiving terminal can receive the fileinfo that the transmission terminal is sent by the Bluetooth link, be wrapped in this document information Address of the data containing this document in the transmission terminal;Receiving terminal can send to the download software in the receiving terminal and download Instruction, the download instruction are used to indicate that by the network link, this document data are downloaded from the address for the download software.
For example transmission terminal built-in there are Website server HTTP server, after network link establishes completion, send Terminal generates the download address URL (Uniform Resource Locator, URL) for including this document data Fileinfo, this document information is sent to receiving terminal by Bluetooth link, receiving terminal opens third party and downloads software, The third party downloads software in the case where sending the HTTP server support of terminal built-in, according to download address URL, by building Vertical network link downloads this document data.
Optionally, when corresponding at least two file of this document data, receiving terminal by least two file each Corresponding transmission thread receives the respective data of at least two files respectively.
Because the network links such as WLAN, Wi-Fi Hotspot or Wi-Fi p2p support multi-thread transmission, as the third party When download software also supports that multithreading is downloaded, multiple files can be downloaded in same time parallel, net is made full use of so as to reach The bandwidth resources of network link, improve the transmission rate of file and the effect of resource utilization.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, is connected by Bluetooth link receives link Information, the Connecting quantity in the link connection information received is established and sends the network link between terminal, and passes through The network link of foundation receives file data, and the network link for transmitting file is established outside Bluetooth link, such as, can be with The transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc. are established, so as to solve Bluetooth link transmission rate is limited in correlation technique of having determined, the problem of can not meeting the quick transmission of large-data documents, reaches The effect of file transfer rate between raising terminal.
In addition, the method for the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, The respective data of at least two files are received by each self-corresponding transmission line journey of at least two file respectively, can be same The one multiple files of time Parallel download, so as to reach the bandwidth resources for making full use of network link, improve the transmission rate of file With the effect of resource utilization.
Fig. 4 is a kind of flow chart of the method for transmission file according to further example embodiment, the present embodiment with The method of the transmission file is used to come in the implementation environment shown in Fig. 1 for example, wherein, the method for the transmission file is used for such as Receiving terminal 120 in implementation environment shown in Fig. 1.As shown in figure 4, the method for the transmission file may comprise steps of.
In step 402, receive and send the link selection information that terminal is sent by Bluetooth link, the link selection information The network type supported for indicating the transmission terminal.
When establishing a network link between receiving terminal and transmission terminal, it is necessary to which both sides support the network link pair simultaneously The network type answered, therefore, established between receiving terminal and transmission terminal before network link, it is necessary first to pass through link selection Information reconciliation determines the network type of the network link.Now, sending terminal can send to receiving terminal for indicating the hair Make arrangements for his funeral and hold the link selection message of supported network type.
Wherein, receiving terminal can receive what the transmission terminal was sent based on Object Exchange, include link choosing The get requests of message are selected, the message format of the link selection message is user-defined format.
Or receiving terminal can also receive the link choosing that Object Exchange of the transmission terminal based on extension is sent Message is selected, the command code in the protocol message of the Object Exchange of the extension is self-defining operation code.
Bluetooth link is carried out data transmission based on OBEX agreements.The message structure figure of OBEX agreements can with as shown in figure 5, its In, the OpCode in message structure is command code, and Length is the N number of Tag Set in rear part total length, and message is finally N number of Tag Set, the information that bearing protocol exchanges.Tag in Tag Set shows the content of Data below, and Length shows Data's Length, Data are protocol information.
In the disclosed embodiments, send between terminal and receiving terminal by proprietary protocol transmission link select information, Link connection information and fileinfo etc., wherein, the proprietary protocol can have the following two kinds form:
1) original OBEX agreements are based on, the proprietary protocol is realized by the content format in custom protocol message. For example transmission terminal can send get request (the OBEX protocol messages for carrying link selection information by original OBEX agreements In OpCode be 0x03 or 0x83), the form of the link selection information can be as shown in table 1:
Version: ***
Feature: ***
Description: ***
HTTP server: ***
Download Mode: ***
Support: ***
Table 1
In the message format shown in table 1, Version is the version number of proprietary protocol;Feature and Description For the associated description of the proprietary protocol;HTTP server identify for Website server, and Download Mode are downloading mode, HTTP server and Download Mode are used partial parameters from terminal downloading files data are sent for receiving terminal, HTTP server and Download Mode can be carried by link selection information, can also by follow-up link connection information or Person's fileinfo carries, or, HTTPserver the and Download Mode can also pass through other information or other manner Receiving terminal is sent to, the embodiment of the present disclosure is not limited this.
In the message format shown in table 1, link selection information, which directly carries, sends the network type that terminal is supported, than Such as, WLAN, Wi-Fi Hotspot or Wi-Fi p2p etc..In addition, transmission terminal can not also be directly carried in link selection information The network type of support, but carry send terminal network connection information, such as SSID, BSSID, Gateway IP and Gateway Netmask etc., receiving terminal can analyze acquisition transmission terminal support by sending the network connection information of terminal Network type.Now, the form of the link selection information can be as shown in table 2:
Version: ***
Feature: ***
Description: ***
HTTP server: ***
Download Mode: ***
SSID: ***
BSSID: ***
Gateway IP: ***
Gateway Netmask: ***
Table 2
2) original OBEX agreements are extended, the OBEX agreements using extension are used as proprietary protocol.
In OBEX agreements, 0x10 to the command code OpCode between 0x1F is user defined code, the embodiment of the present disclosure Proprietary protocol is defined using 0x10 to 0x1F, such as, 0x1A is defined as link selection information, 0x1B is defined as into link connects Message is connect, 0x1C is defined as fileinfo.
, can in the TagSet of protocol message when the protocol message transmission link of the OBEX agreements based on extension selects information To include the network type for sending terminal support, such as WLAN, Wi-Fi Hotspot or Wi-Fi p2p;Or in Tag Set The network connection information for sending terminal, such as SSID, BSSID, Gateway IP and Gateway Netmask can be included Deng.
In step 404, the content of the link selection information is identified, if identifying successfully, into step 408, otherwise, is entered Step 406.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, if the receiving terminal is supported The proprietary protocol, then receiving terminal can be with the content of Direct Recognition outgoing link selection information, if not supporting the proprietary protocol, reception The content of the terminal then None- identified link selection information.
When the proprietary protocol is by extending original OBEX protocol realizations, sends terminal and carrying link selection information OpCode code 0x1A are added in message, if receiving terminal also supports the proprietary protocol, implication corresponding to 0x1A can be identified For link selection information, if receiving terminal does not support the proprietary protocol, implication corresponding to None- identified 0x1A.
In a step 406, recognition failures response is returned to the transmission terminal, and receives the transmission terminal and pass through the bluetooth chain This document data of road transmission.
, can be by Bluetooth link, with OBEX agreements if the content of the receiving terminal None- identified link selection information Form returns to recognition failures response to terminal is sent.
When transmission terminal receives the recognition failures response of receiving terminal return, it is believed that receiving terminal does not support that this is privately owned Agreement, now, sending terminal can select to send file data to receiving terminal by Bluetooth link, to ensure file data energy It is enough to be correctly transferred to receiving terminal.
In a step 408, the network type supported according to the link selection information and the receiving terminal determines the network The network type of link, the network type of the network link is sent to transmission terminal.
, then can be according to the chain if receiving terminal also supports the proprietary protocol, and identifies the content of link selection information The network type that road selects information and the receiving terminal to support determines the network type of the network link.
So that the network type of network link includes WLAN, Wi-Fi Hotspot or Wi-Fi p2p as an example, consulting to determine net During the network type of network link, it can be determined according to the order of WLAN > Wi-Fi p2p > Wi-Fi Hotspots, such as, work as reception When terminal currently has the WLAN to connect with the side sent in terminal, the network type that WLAN is network link is determined, if received Terminal all connects with terminal is sent without WLAN, and receiving terminal and transmission terminal all support Wi-Fi p2p, it is determined that Wi-Fi P2p is the network type of network link;If at least one in receiving terminal and transmission terminal do not support Wi-Fi p2p, really Determine the network type that Wi-Fi Hotspot is network link.
It should be noted that when consulting to determine the network type of the network link or receiving terminal is to transmission Terminal sends the link selection information of the receiving terminal, as transmission terminal according to the receiving terminal indicated by link selection information Network type, and determine according to the network type of the transmission terminal network type of the network link.
In step 410, receive and send the link connection information that terminal is sent by Bluetooth link.
Wherein, the link connection information is believed to send the link connection that terminal is sent according to the network type of the network link Breath.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, sending terminal can send Get requests comprising link connection information, the form of the link connection information can be as shown in table 3:
Type: ***
AP name: ***
AP password: ***
WD device Name: ***
SSID: ***
IP: ***
Port: ***
Table 3
In table 3, Type is the network type for consulting to determine, AP (Access Point, wireless access node) name is Wi-Fi Hotspot title, AP password are Wi-Fi Hotspot access pin, WD (Wi-Fi Direct, Wi-Fi direct) device Name is Wi-Fi direct device name (such as MAC Address), and IP is the network address for sending equipment, and Port is to send equipment Port numbers.
When the proprietary protocol is by extending original OBEX protocol realizations, link selection letter can carried by sending terminal OpCode codes 0x1B is added in the protocol message of breath.
In step 412, established according to the Connecting quantity included in the link connection information between the transmission terminal Network link.
Wherein, the network link can be wireless local area network link, Wireless Fidelity hot-spot link or Wireless Fidelity equity Transmission link.
Such as so that the network type of network link includes WLAN, Wi-Fi Hotspot or Wi-Fi p2p as an example, when the network When the network type of link is WLAN, the Connecting quantity can be SSID, IP and Port for sending terminal etc., and receiving terminal can With SSID, IP and Port according to transmission terminal, the WLAN access points accessed where the transmission terminal, and accessed with the WLAN Point is relaying, is established and the wireless local area network link among the transmission terminal;When the network type of the network link is Wi-Fi During p2p, the Connecting quantity can be the MAC Address for sending terminal, and receiving terminal is whole with sending according to the MAC Address for sending terminal Wi-Fi p2p connections are established at end;When the network type of the network link is Wi-Fi Hotspot, the Connecting quantity can be sent Hotspot name and password when terminal is as Wi-Fi Hotspot, receiving terminal according to the transmission terminal as Wi-Fi Hotspot when heat Point title and password access the transmission terminal.
It should be noted that such scheme is obtained the link connection information for sending terminal by receiving terminal, and according to the chain Connecting quantity in the link information of road establishes network link, in actual applications, can also obtain receiving terminal by transmission terminal Link connection information and establish network link, its establishment step is similar with such scheme, and here is omitted.
In step 414, the file data that the transmission terminal passes through the network link transmission is received.
Receiving terminal can receive the fileinfo that the transmission terminal is sent by the Bluetooth link, be wrapped in this document information Address of the data containing this document in the transmission terminal;Receiving terminal can send to the download software in the receiving terminal and download Instruction, the download instruction are used to indicate that by the network link, this document data are downloaded from the address for the download software.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, sending terminal can send Get requests comprising fileinfo, the form of this document information can be as shown in table 4:
URL: ***
Name: ***
Mime type: ***
Length: ***
Table 4
In table 4, URL is the address of file data, and Name is filename, and Mime type are file type, and Length is The data length of file data.
When the proprietary protocol is by extending original OBEX protocol realizations, link selection letter can carried by sending terminal OpCode codes 0x1C is added in the protocol message of breath.
For example transmission terminal built-in there are Website server HTTP server, after network link establishes completion, send Download address URL of the terminal generation comprising this document data fileinfo, this document information is sent to by Bluetooth link Receiving terminal, receiving terminal open third party and download software, and the third party downloads software and sending the HTTP of terminal built-in Under server support, according to download address URL, this document data are downloaded by the network link of foundation.
Optionally, when corresponding at least two file of this document data, receiving terminal by least two file each Corresponding transmission thread receives the respective data of at least two files respectively.
Because the network links such as WLAN, Wi-Fi Hotspot or Wi-Fi p2p support multi-thread transmission, as the third party When download software also supports that multithreading is downloaded, multiple files can be downloaded in same time parallel, net is made full use of so as to reach The bandwidth resources of network link, improve the transmission rate of file and the effect of resource utilization.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, is connected by Bluetooth link receives link Information, the Connecting quantity in the link connection information received is established and sends the network link between terminal, and passes through The network link of foundation receives file data, and the network link for transmitting file is established outside Bluetooth link, such as, can be with The transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc. are established, so as to solve Bluetooth link transmission rate is limited in correlation technique of having determined, the problem of can not meeting the quick transmission of large-data documents, reaches The effect of file transfer rate between raising terminal.
In addition, the method for the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, The respective data of at least two files are received by each self-corresponding transmission line journey of at least two file respectively, can be same The one multiple files of time Parallel download, so as to reach the bandwidth resources for making full use of network link, improve the transmission rate of file With the effect of resource utilization.
Fig. 6 is a kind of flow chart of the method for transmission file according to an exemplary embodiment, and the present embodiment is with this The method of transmission file is used to come in the implementation environment shown in Fig. 1 for example, wherein, the method for the transmission file is used for as schemed Transmission terminal 140 in implementation environment shown in 1.As shown in fig. 6, the method for the transmission file may comprise steps of.
In step 602, it is used for by Bluetooth link to receiving terminal transmission link link information, the link connection information Indicate the lattice chain that the receiving terminal is established between the transmission terminal according to the Connecting quantity included in the link connection information Road.
In step 604, file data is transmitted to the receiving terminal by the network link.
Wherein, the network link can be the wireless network chain based on wireless network protocol (802.11a/b/e/g/n etc.) Road, such as, the network link can be WLAN links, Wi-Fi Hotspot link or Wi-Fi p2p links etc., the network link The peak transfer rate that can be supported is typically much higher than the peak transfer rate of Bluetooth link, is entered by the network link During row data transfer, the file transfer rate of terminal room can greatly be improved.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, sent out by Bluetooth link to receiving terminal Link connection information is sent, establishes and send the net between terminal by Connecting quantity of the receiving terminal in the link connection information Network link, and by the network link transmission file data of foundation, the link for transmitting file is established outside Bluetooth link, For example the transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links can be established Deng Bluetooth link transmission rate is limited so as to solving in correlation technique, can not meet the quick transmission of large-data documents Problem, reach the effect of file transfer rate between raising terminal.
Fig. 7 is a kind of flow chart of the method for transmission file according to another exemplary embodiment, the present embodiment with The method of the transmission file is used to come in the implementation environment shown in Fig. 1 for example, wherein, the method for the transmission file is used for such as Transmission terminal 140 in implementation environment shown in Fig. 1.As shown in fig. 7, the method for the transmission file may comprise steps of.
In a step 702, consult to determine the network type of network link by Bluetooth link and receiving terminal.
Wherein, the network link can be the wireless network chain based on wireless network protocol (802.11a/b/e/g/n etc.) Road, such as, the network link can be WLAN links, Wi-Fi Hotspot link or Wi-Fi p2p links etc., the network link The peak transfer rate that can be supported is typically much higher than the peak transfer rate of Bluetooth link.
Wherein, when consulting network type, sending terminal can be by the Bluetooth link to the receiving terminal transmission link Information is selected, the link selection information is used for the network type for indicating that the transmission terminal is supported;Send terminal and receive transmission end What end was sent, the network type of the network link, the network type of the network link is identifying link choosing for the receiving terminal After the content success for selecting information, determined according to the network type of the link selection information and receiving terminal support.
In addition, when receiving the recognition failures response of transmission terminal return, it is whole to the reception by the Bluetooth link End transmission this document data, recognition failures response are the receiving terminal after the content for identifying the link selection information is unsuccessful The response of return.
Wherein, send terminal and can be sent based on Object Exchange to the receiving terminal and include the link selection message Get request, the message format of the link selection message is user-defined format.
Or send terminal can also the Object Exchange based on extension send the link selection to the receiving terminal and disappear Cease, the command code in the protocol message of the Object Exchange of the extension is self-defining operation code.
Above-mentioned negotiation determines that the process of the network type of network link may refer to the description in embodiment corresponding to Fig. 4, Here is omitted.
In step 704, it is used for by Bluetooth link to receiving terminal transmission link link information, the link connection information Indicate the lattice chain that the receiving terminal is established between the transmission terminal according to the Connecting quantity included in the link connection information Road.
Wherein, in transmission link link information, sending terminal can be somebody's turn to do according to the generation of the network type of the network link Link connection information, and the link connection information is sent to receiving terminal by the Bluetooth link.
The above-mentioned process for establishing network link may refer to the description in embodiment corresponding to Fig. 4, and here is omitted.
In step 706, file data is transmitted to the receiving terminal by the network link.
Wherein, fileinfo can be sent by the Bluetooth link to the receiving terminal by sending terminal, in this document information Comprising the address in the transmission terminal this document data, this document information is used to indicate that the download software in the receiving terminal leads to The network link is crossed, this document data are downloaded from the address.
Optionally, when corresponding at least two file of this document data, at least two file can be passed through by sending terminal Each self-corresponding transmission line journey transmits the respective data of at least two files respectively.
The description in embodiment corresponding to Fig. 4 is may refer to above by the process of network link transmission file data, this Place repeats no more.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, sent out by Bluetooth link to receiving terminal Link connection information is sent, establishes and send the net between terminal by Connecting quantity of the receiving terminal in the link connection information Network link, and by the network link transmission file data of foundation, the link for transmitting file is established outside Bluetooth link, For example the transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links can be established Deng Bluetooth link transmission rate is limited so as to solving in correlation technique, can not meet the quick transmission of large-data documents Problem, reach the effect of file transfer rate between raising terminal.
In addition, the method for the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, The respective data of at least two files are transmitted by each self-corresponding transmission line journey of at least two file respectively, can be same The one multiple files of time parallel transmission, so as to reach the bandwidth resources for making full use of network link, improve the transmission rate of file With the effect of resource utilization.
Fig. 8 is a kind of flow chart of the method for transmission file according to an exemplary embodiment, and the present embodiment is with this The method of transmission file is used in the implementation environment shown in Fig. 1 to illustrate.As shown in figure 8, the method for the transmission file can To comprise the following steps.
In step 802, send terminal and information, the link selection information are selected to transmission link is received by Bluetooth link The network type supported for indicating the transmission terminal.
When establishing a network link between receiving terminal and transmission terminal, it is necessary to which both sides support the network link pair simultaneously The network type answered, therefore, established between receiving terminal and transmission terminal before network link, it is necessary first to pass through link selection Information reconciliation determines the network type of the network link.Now, sending terminal can send to receiving terminal for indicating the hair Make arrangements for his funeral and hold the link selection message of supported network type.
Wherein, send terminal and can be sent based on Object Exchange to the receiving terminal and include the link selection message Get request, the message format of the link selection message is user-defined format.
Or send terminal can also the Object Exchange based on extension send the link selection to the receiving terminal and disappear Cease, the command code in the protocol message of the Object Exchange of the extension is self-defining operation code.
Bluetooth link is carried out data transmission based on OBEX agreements.The message structure figure of OBEX agreements can with as shown in figure 5, its In, the OpCode in message structure is command code, and Length is the N number of Tag Set in rear part total length, and message is finally N number of Tag Set, the information that bearing protocol exchanges.Tag in Tag Set shows the content of Data below, and Length shows Data's Length, Data are protocol information.
In the disclosed embodiments, send between terminal and receiving terminal by proprietary protocol transmission link select information, Link connection information and fileinfo etc., wherein, the proprietary protocol can have the following two kinds form:
1) original OBEX agreements are based on, the proprietary protocol is realized by the content format in custom protocol message. For example transmission terminal can send get request (the OBEX protocol messages for carrying link selection information by original OBEX agreements In OpCode be 0x03 or 0x83), the form of the link selection information can be as shown in table 1.
In the message format shown in table 1, Version is the version number of proprietary protocol;Feature and Description For the associated description of the proprietary protocol;HTTP server identify for Website server, and DownloadMode is downloading mode, HTTP server and Download Mode are used partial parameters from terminal downloading files data are sent for receiving terminal, HTTP server and Download Mode can be carried by link selection information, can also by follow-up link connection information or Person's fileinfo carries, or, HTTPserver the and Download Mode can also pass through other information or other manner Receiving terminal is sent to, the embodiment of the present disclosure is not limited this.
In the message format shown in table 1, link selection information, which directly carries, sends the network type that terminal is supported, than Such as, WLAN, Wi-Fi Hotspot or Wi-Fi p2p etc..In addition, transmission terminal can not also be directly carried in link selection information The network type of support, but carry send terminal network connection information, such as SSID, BSSID, Gateway IP and Gateway Netmask etc., receiving terminal can analyze acquisition transmission terminal support by sending the network connection information of terminal Network type.Now, the form of the link selection information can be as shown in table 2.
2) original OBEX agreements are extended, the OBEX agreements using extension are used as proprietary protocol.
In OBEX agreements, 0x10 to the command code OpCode between 0x1F is user defined code, the embodiment of the present disclosure Original OBEX agreements are extended using 0x10 to 0x1F, so as to realize proprietary protocol, such as, 0x1A is defined as link selection Information, 0x1B is defined as link connection message, 0x1C is defined as fileinfo.
, can in the TagSet of protocol message when the protocol message transmission link of the OBEX agreements based on extension selects information To include the network type for sending terminal support, such as WLAN, Wi-Fi Hotspot or Wi-Fip2p;Or in Tag Set The network connection information for sending terminal, such as SSID, BSSID, Gateway IP and Gateway Netmask can be included Deng.
In step 804, receiving terminal identifies the content of the link selection information, if identifying successfully, into step 810, Otherwise, into step 806.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, if the receiving terminal is supported The proprietary protocol, then receiving terminal can be with the content of Direct Recognition outgoing link selection information, if not supporting the proprietary protocol, reception The content of the terminal then None- identified link selection information.
When the proprietary protocol is by extending original OBEX protocol realizations, sends terminal and carrying link selection information OpCode code 0x1A are added in message, if receiving terminal also supports the proprietary protocol, implication corresponding to 0x1A can be identified For link selection information, if receiving terminal does not support the proprietary protocol, implication corresponding to None- identified 0x1A.
In step 806, receiving terminal returns to recognition failures response to the transmission terminal.
, can be by Bluetooth link, with OBEX agreements if the content of the receiving terminal None- identified link selection information Form returns to recognition failures response to terminal is sent.
In step 808, send terminal and file data is transmitted to receiving terminal by the Bluetooth link.
When transmission terminal receives the recognition failures response of receiving terminal return, it is believed that receiving terminal does not support that this is privately owned Agreement, now, sending terminal can select to send file data to receiving terminal by Bluetooth link, to ensure file data energy It is enough to be correctly transferred to receiving terminal.
In step 810, the network type that receiving terminal is supported according to the link selection information and the receiving terminal is true The network type of the fixed network link.
, then can be according to the chain if receiving terminal also supports the proprietary protocol, and identifies the content of link selection information The network type that road selects information and the receiving terminal to support determines the network type of the network link.
So that the network type of network link includes WLAN, Wi-Fi Hotspot or Wi-Fi p2p as an example, consulting to determine net During the network type of network link, it can be determined according to the order of WLAN > Wi-Fi p2p > Wi-Fi Hotspots, such as, work as reception When terminal currently has the WLAN to connect with the side sent in terminal, the network type that WLAN is network link is determined, if received Terminal all connects with terminal is sent without WLAN, and receiving terminal and transmission terminal all support Wi-Fi p2p, it is determined that Wi-Fi P2p is the network type of network link;If at least one in receiving terminal and transmission terminal do not support Wi-Fi p2p, really Determine the network type that Wi-Fi Hotspot is network link.
It should be noted that when consulting to determine the network type of the network link or receiving terminal is to transmission Terminal sends the link selection information of the receiving terminal, as transmission terminal according to the receiving terminal indicated by link selection information Network type, and determine according to the network type of the transmission terminal network type of the network link.
In step 812, the network type of the network link is sent to transmission terminal by receiving terminal.
In step 814, terminal is sent by Bluetooth link to receiving terminal transmission link link information.
Wherein, the link connection information is believed to send the link connection that terminal is sent according to the network type of the network link Breath.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, sending terminal can send Get requests comprising link connection information, the form of the link connection information can be as shown in table 3.
When the proprietary protocol is by extending original OBEX protocol realizations, link selection letter can carried by sending terminal OpCode codes 0x1B is added in the protocol message of breath.
In step 816, receiving terminal is established whole with the transmission according to the Connecting quantity included in the link connection information Network link between end.
Include Connecting quantity in link connection information, such as, WLAN, Wi-Fi are included with the network type of network link Exemplified by focus or Wi-Fi p2p, when the network type of the network link is WLAN, the Connecting quantity can send terminal SSID, IP and Port etc., receiving terminal can access the transmission terminal according to SSID, IP and the Port for sending terminal The WLAN access points at place, and using the WLAN access points as relaying, establish and the wireless local area network link among the transmission terminal; When the network type of the network link is Wi-Fi p2p, the Connecting quantity can be the MAC Address for sending terminal, receive eventually End is established Wi-Fi p2p with transmission terminal according to the MAC Address for sending terminal and is connected;When the network type of the network link is During Wi-Fi Hotspot, the Connecting quantity can be send terminal as Wi-Fi Hotspot when hotspot name and password, receiving terminal Hotspot name and password during according to the transmission terminal as Wi-Fi Hotspot access the transmission terminal.
It should be noted that such scheme is obtained the link connection information for sending terminal by receiving terminal, and according to the chain Connecting quantity in the link information of road establishes network link, in actual applications, can also obtain receiving terminal by transmission terminal Link connection information and establish network link, its establishment step is similar with such scheme, and here is omitted.
In step 818, receiving terminal, which receives, sends file data of the terminal by network link transmission.
Receiving terminal can receive the fileinfo that the transmission terminal is sent by the Bluetooth link, be wrapped in this document information Address of the data containing this document in the transmission terminal;Receiving terminal can send to the download software in the receiving terminal and download Instruction, the download instruction are used to indicate that by the network link, this document data are downloaded from the address for the download software.
When the proprietary protocol is realized by the content format in self-defined OBEX protocol messages, sending terminal can send Get requests comprising fileinfo, the form of this document information can be as shown in table 4.
When the proprietary protocol is by extending original OBEX protocol realizations, sends terminal and carrying link selection information OpCode codes 0x1C is added in protocol message.
For example transmission terminal built-in there are Website server HTTP server, after network link establishes completion, send Download address URL of the terminal generation comprising this document data fileinfo, this document information is sent to by Bluetooth link Receiving terminal, receiving terminal open third party and download software, and the third party downloads software and sending the HTTP of terminal built-in Under server support, according to download address URL, this document data are downloaded by the network link of foundation.
Wherein, document base information corresponding to file data, such as file name, text can also be included in this document information Part type and the size of file data etc..Third party in receiving terminal downloads software and downloaded according to download address URL Before file data, this document essential information is shown first, asks the user whether to determine to download this document data, if user selects It is determined that then third party's download software in receiving terminal starts to start download.
Optionally, when corresponding at least two file of this document data, receiving terminal by least two file each Corresponding transmission thread receives the respective data of at least two files respectively.
Because the network links such as WLAN, Wi-Fi Hotspot or Wi-Fi p2p support multi-thread transmission, as the third party When download software also supports that multithreading is downloaded, multiple files can be downloaded in same time parallel, net is made full use of so as to reach The bandwidth resources of network link, improve the transmission rate of file and the effect of resource utilization.
After the completion of file data download, receiving terminal sends download completion response to terminal is sent, and sends terminal and closes HTTP server and network link.
In summary, the method for the transmission file provided in the embodiment of the present disclosure, receiving terminal are received by Bluetooth link The lattice chain between terminal is established and sent to link connection information, the Connecting quantity in the link connection information received Road, and file data is received by the network link of foundation, the link for transmitting file is established outside Bluetooth link, than Such as, the transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc. can be established, Bluetooth link transmission rate is limited so as to solving in correlation technique, can not meet that the quick transmission of large-data documents is asked Topic, reach the effect of file transfer rate between raising terminal.
In addition, the method for the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, Receiving terminal receives the respective data of at least two files respectively by each self-corresponding transmission line journey of at least two file, Multiple files can be downloaded in same time parallel, so as to reach the bandwidth resources for making full use of network link, improve file The effect of transmission rate and resource utilization.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.It is real for disclosure device The details not disclosed in example is applied, refer to embodiments of the present disclosure.
Fig. 9 is a kind of block diagram of the device of transmission file according to an exemplary embodiment, as shown in figure 9, the biography The device of defeated file is applied in the transmission terminal 120 in implementation environment shown in Fig. 1, and the device of the transmission file includes but unlimited In:Information receiving module 901, the data reception module 903 of link establishment module 902 and first;
Described information receiving module 901, which is arranged to be used for receiving, sends the link connection that terminal is sent by Bluetooth link Information;
The link establishment module 902 is arranged to be used for being built according to the Connecting quantity included in the link connection information The vertical and described network link sent between terminal;
First data reception module 903 is arranged to be used for receiving the transmission terminal and passed by the network link Defeated file data.
In summary, the device of the transmission file provided in the embodiment of the present disclosure, is connected by Bluetooth link receives link Information, the Connecting quantity in the link connection information received is established and sends the network link between terminal, and passes through The network link of foundation receives file data, and the link for transmitting file is established outside Bluetooth link, such as, it can establish The transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc., so as to solve Bluetooth link transmission rate is limited in correlation technique, the problem of can not meeting the quick transmission of large-data documents, reaches raising The effect of file transfer rate between terminal.
Figure 10 is a kind of block diagram of the device of transmission file according to another exemplary embodiment, as shown in Figure 10, The device of the transmission file be applied to implementation environment shown in Fig. 1 in transmission terminal 120 in, the device of the transmission file include but It is not limited to:Information receiving module 901, the data reception module 903 of link establishment module 902 and first;
Described information receiving module 901, which is arranged to be used for receiving, sends the link connection that terminal is sent by Bluetooth link Information;
The link establishment module 902 is arranged to be used for being built according to the Connecting quantity included in the link connection information The vertical and described network link sent between terminal;
First data reception module 903 is arranged to be used for receiving the transmission terminal and passed by the network link Defeated file data.
Optionally, first data reception module 903, including:First information receiving submodule 903a and instruction are sent Submodule 903b;
The first information receiving submodule 903a is arranged to be used for receiving the transmission terminal and passes through the bluetooth chain The fileinfo that road is sent, comprising the file data address in the transmission terminal in the fileinfo;
The download software that the instruction sending submodule 903b is arranged to be used for into the receiving terminal, which is sent, to be downloaded Instruction, the download instruction are used to indicate that by the network link, the file is downloaded from the address for the download software Data.
Optionally, first data reception module 903 is arranged to be used for when the file data corresponding at least two During file, the respective number of at least two files is received by each self-corresponding transmission line journey of at least two file respectively According to.
Optionally, the network link is wireless local area network link, Wireless Fidelity hot-spot link or Wireless Fidelity equity Transmission link.
Optionally, described device also includes:First negotiation module 904;
First negotiation module 904 is arranged in use in the reception transmission terminal of described information receiving module 901 and passed through Before the link connection information that Bluetooth link is sent, consult to determine the network by the Bluetooth link and the transmission terminal The network type of link.
Optionally, first negotiation module 904, including:Second information receiving submodule 904a, identification submodule 904b, type determination module 904c and type sending submodule 904d;
The second information receiving submodule 904a is arranged to be used for receiving the transmission terminal and passes through the bluetooth chain The link selection information that road is sent, the link selection information are used for the network type for indicating that the transmission terminal is supported;
The identification submodule 904b is arranged to be used for identifying the content of the link selection information;
If the type determination module 904c is arranged to be used for the identification submodule 904b and identifies the link choosing The content success of information is selected, then according to determining the network type that the link selection information and the receiving terminal are supported The network type of network link;
The type sending submodule 904d is arranged to be used for the network type of the network link being sent to described Send terminal.
Optionally, described device also includes:Response returns to the data reception module 906 of module 905 and second;
If the response returns to module 905 and is arranged to be used for the identification submodule 904b identifications link selection letter The content of breath is unsuccessful, then returns to recognition failures response to the transmission terminal;
Second data reception module 906 is arranged to be used for receiving the transmission terminal and passed by the Bluetooth link The defeated file data.
Optionally, the second information receiving submodule 904a is arranged to be used for receiving the transmission terminal and is based on object What exchange agreement was sent, include the get requests of the link selection message, the message format of the link selection message is certainly Definition format.
Or the second information receiving submodule 904a is arranged to be used for receiving the transmission terminal based on extension The link selection message that Object Exchange is sent, the command code in the protocol message of the Object Exchange of the extension For self-defining operation code.
In summary, the device of the transmission file provided in the embodiment of the present disclosure, is connected by Bluetooth link receives link Information, the Connecting quantity in the link connection information received is established and sends the network link between terminal, and passes through The network link of foundation receives file data, and the link for transmitting file is established outside Bluetooth link, such as, it can establish The transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links etc., so as to solve Bluetooth link transmission rate is limited in correlation technique, the problem of can not meeting the quick transmission of large-data documents, reaches raising The effect of file transfer rate between terminal.
In addition, the device of the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, The respective data of at least two files are received by each self-corresponding transmission line journey of at least two file respectively, can be same The one multiple files of time Parallel download, so as to reach the bandwidth resources for making full use of network link, improve the transmission rate of file With the effect of resource utilization.
Figure 11 is a kind of block diagram of the device of transmission file according to an exemplary embodiment, as shown in figure 11, should The device for transmitting file is applied in the transmission terminal 120 in implementation environment shown in Fig. 1, and the device of the transmission file is included but not It is limited to:Information sending module 1101 and first data transmission module 1102;
Described information sending module 1101, which is arranged to be used for connecting to receiving terminal transmission link by Bluetooth link, to be believed Breath, the link connection information are used to indicate that the receiving terminal is built according to the Connecting quantity included in the link connection information The vertical and described network link sent between terminal;
The first data transmission module 1102 is arranged to be used for passing to the receiving terminal by the network link Defeated file data.
In summary, the device of the transmission file provided in the embodiment of the present disclosure, sent out by Bluetooth link to receiving terminal Link connection information is sent, establishes and send the net between terminal by Connecting quantity of the receiving terminal in the link connection information Network link, and by the network link transmission file data of foundation, the link for transmitting file is established outside Bluetooth link, For example the transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links can be established Deng Bluetooth link transmission rate is limited so as to solving in correlation technique, can not meet the quick transmission of large-data documents Problem, reach the effect of file transfer rate between raising terminal.
Figure 12 is a kind of block diagram of the device of transmission file according to an exemplary embodiment, as shown in figure 12, should The device for transmitting file is applied in the transmission terminal 120 in implementation environment shown in Fig. 1, and the device of the transmission file is included but not It is limited to:Information sending module 1101 and first data transmission module 1102;
Described information sending module 1101, which is arranged to be used for connecting to receiving terminal transmission link by Bluetooth link, to be believed Breath, the link connection information are used to indicate that the receiving terminal is built according to the Connecting quantity included in the link connection information The vertical and described network link sent between terminal;
The first data transmission module 1102 is arranged to be used for passing to the receiving terminal by the network link Defeated file data.
Optionally, the first data transmission module 1102, including:First information sending submodule 1102a;
The first information sending submodule 1102a is arranged to be used for by the Bluetooth link to the receiving terminal Fileinfo is sent, address of the file data in the transmission terminal, the file letter are included in the fileinfo Cease for indicating that by the network link, the number of files is downloaded from the address for the download software in the receiving terminal According to.
Optionally, the first data transmission module 1102 is arranged to be used for when the file data corresponding at least two During file, the respective number of at least two files is transmitted by each self-corresponding transmission line journey of at least two file respectively According to.
Optionally, described device also includes:Second negotiation module 1103;
Second negotiation module 1103 be arranged in use in described information sending module 1101 by Bluetooth link to Before receiving terminal transmission link link information, consult to determine the lattice chain by the Bluetooth link and the receiving terminal The network type on road.
Optionally, second negotiation module 1103, including:Second information sending submodule 1103a and type reception Module 1103b;
The second information sending submodule 1103a is arranged to be used for by the Bluetooth link to the receiving terminal Transmission link selects information, and the link selection information is used for the network type for indicating that the transmission terminal is supported;
The type reception submodule 1103b is arranged to be used for receiving what the transmission terminal was sent, the lattice chain The network type on road, the network type of the network link is that the receiving terminal is identifying the content of the link selection information After success, determined according to the network type of the link selection information and receiving terminal support.
Optionally, described information sending module 1101, including:Information generates submodule 1101a and the 3rd information sends son Module 1101b;
Described information generation submodule 1101a is arranged to be used for according to the generation of the network type of the network link Link connection information;
The 3rd information sending submodule 1101b is arranged to be used for the link connection information passing through the bluetooth Link is sent to the receiving terminal.
Optionally, described device also includes:Second data transmission module 1104;
Second data transmission module 1104 is arranged to be used for when the identification for receiving the transmission terminal return is lost When losing response, the file data is transmitted to the receiving terminal by the Bluetooth link, the recognition failures response is institute State the response that receiving terminal returns after the content for identifying the link selection information is unsuccessful.
Optionally, the second information sending submodule 1103a is arranged to be used for based on Object Exchange to described Receiving terminal sends the get requests for including the link selection message, and the message format of the link selection message is to make by oneself Adopted form.
Or the second information sending submodule 1103a be arranged to be used for based on the Object Exchange of extension to The receiving terminal sends the link selection message, and the command code in the protocol message of the Object Exchange of the extension is Self-defining operation code.
In summary, the device of the transmission file provided in the embodiment of the present disclosure, sent out by Bluetooth link to receiving terminal Link connection information is sent, establishes and send the net between terminal by Connecting quantity of the receiving terminal in the link connection information Network link, and by the network link transmission file data of foundation, the link for transmitting file is established outside Bluetooth link, For example the transmission rate WLAN link higher than Bluetooth link, Wi-Fi Hotspot link or Wi-Fi p2p links can be established Deng Bluetooth link transmission rate is limited so as to solving in correlation technique, can not meet the quick transmission of large-data documents Problem, reach the effect of file transfer rate between raising terminal.
In addition, the device of the transmission file provided in the embodiment of the present disclosure, when corresponding at least two file of file data, The respective data of at least two files are transmitted by each self-corresponding transmission line journey of at least two file respectively, can be same The one multiple files of time parallel transmission, so as to reach the bandwidth resources for making full use of network link, improve the transmission rate of file With the effect of resource utilization.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in perform detailed description, explanation will be not set forth in detail herein.
Figure 13 is a kind of block diagram of the device 1300 of transmission file according to an exemplary embodiment.For example, device 1300 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 13, device 1300 can include following one or more assemblies:Processing component 1302, memory 1304, Power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, the interface 1312 of input/output (I/O), sensor cluster 1314, and communication component 1316.
The integrated operation of the usual control device 1300 of processing component 1302, such as communicated with display, call, data, The operation that camera operation and record operation are associated.Processing component 1302 can include one or more processors 1318 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 1302 can include one or more moulds Block, the interaction being easy between processing component 1302 and other assemblies.For example, processing component 1302 can include multi-media module, To facilitate the interaction between multimedia groupware 1308 and processing component 1302.
Memory 1304 is configured as storing various types of data to support the operation in device 1300.These data Example includes being used for the instruction of any application program or method operated on device 1300, contact data, telephone book data, Message, picture, video etc..Memory 1304 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.One or more modules are also stored with memory 1304, one or more modules be configured to by The one or more processors 1320 perform, to complete the whole of any shown method or portion in above-mentioned Fig. 2,3,4,6 or 7 Step by step.
Power supply module 1306 provides electric power for the various assemblies of device 1300.Power supply module 1306 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1300.
Multimedia groupware 1308 is included in the screen of one output interface of offer between described device 1300 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more Media component 1308 includes a front camera and/or rear camera.When device 1300 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1310 is configured as output and/or input audio signal.For example, audio-frequency assembly 1310 includes a wheat Gram wind (MIC), when device 1300 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 1304 or via communication Component 1316 is sent.In certain embodiments, audio-frequency assembly 1310 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1312 provide interface, above-mentioned peripheral interface module between processing component 1302 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1314 includes one or more sensors, and the state for providing various aspects for device 1300 is commented Estimate.For example, sensor cluster 1314 can detect opening/closed mode of device 1300, the relative positioning of component, such as institute The display and keypad that component is device 1300 are stated, sensor cluster 1314 can be with detection means 1300 or device 1,300 1 The position of individual component changes, the existence or non-existence that user contacts with device 1300, the orientation of device 1300 or acceleration/deceleration and dress Put 1300 temperature change.Sensor cluster 1314 can include proximity transducer, be configured in no any physics The presence of object nearby is detected during contact.Sensor cluster 1314 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1314 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1316 is configured to facilitate the communication of wired or wireless way between device 1300 and other equipment.Dress The wireless network based on communication standard, such as Wi-Fi, 2G or 3G, or combinations thereof can be accessed by putting 1300.It is exemplary at one In embodiment, communication component 1316 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1316 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1300 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1304 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1318 of device 1300.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (30)

  1. A kind of 1. method for transmitting file, it is characterised in that in receiving terminal, methods described to include:
    Receive and send the link connection information that terminal is sent by Bluetooth link;
    The network link established according to the Connecting quantity included in the link connection information between the transmission terminal;
    Receive the transmission file data of the terminal by the network link transmission;
    Wherein, methods described also includes:
    Before the link connection information that transmission terminal is sent by Bluetooth link is received, pass through the Bluetooth link and the hair End negotiation of making arrangements for his funeral determines the network type of the network link;
    Wherein, it is described to consult to determine the network type of the network link, bag by the Bluetooth link and the transmission terminal Include:
    The link selection information that the transmission terminal is sent by the Bluetooth link is received, the link selection information is used to refer to Show the network type that the transmission terminal is supported;
    Identify the content of the link selection information;
    If the content success of the link selection information is identified, according to the link selection information and the receiving terminal branch The network type held determines the network type of the network link;
    The network type of the network link is sent to the transmission terminal.
  2. 2. according to the method for claim 1, it is characterised in that the reception transmission terminal passes through the network link The file data of transmission, including:
    The fileinfo that the transmission terminal is sent by the Bluetooth link is received, the file is included in the fileinfo Address of the data in the transmission terminal;
    Download software into the receiving terminal sends download instruction, and the download instruction is used to indicate that the download software leads to The network link is crossed, the file data is downloaded from the address.
  3. 3. according to the method for claim 1, it is characterised in that the reception transmission terminal passes through the network link The file data of transmission, including:
    When corresponding at least two file of the file data, pass through at least two file each self-corresponding transmission line journey point The respective data of at least two files are not received.
  4. 4. according to the method for claim 1, it is characterised in that the network link is wireless local area network link, wireless guarantor True hot-spot link or Wireless Fidelity equity transmission link.
  5. 5. according to the method for claim 1, it is characterised in that methods described also includes:
    If identifying, the content of the link selection information is unsuccessful, and recognition failures response is returned to the transmission terminal;
    Receive the file data that the transmission terminal is transmitted by the Bluetooth link.
  6. 6. according to the method for claim 1, it is characterised in that the reception transmission terminal passes through the Bluetooth link The link selection information of transmission, including:
    Receive what the transmission terminal was sent based on Object Exchange, include the get requests of the link selection message, institute The message format for stating link selection message is user-defined format, and the get requests are in object exchange OBEX protocol messages OpCode is 0x03 or 0x83.
  7. 7. according to the method for claim 1, it is characterised in that the reception transmission terminal passes through the Bluetooth link The link selection information of transmission, including:
    Receive the link selection message that the Object Exchange of the transmission terminal based on extension is sent, pair of the extension As exchange agreement protocol message in command code be self-defining operation code.
  8. A kind of 8. method for transmitting file, it is characterised in that for sending in terminal, methods described includes:
    By Bluetooth link to receiving terminal transmission link link information, the link connection information is used to indicate described receive eventually End is established according to the Connecting quantity included in the link connection information and the network link sent between terminal;
    File data is transmitted to the receiving terminal by the network link;
    Wherein, methods described also includes:
    Received eventually with described by Bluetooth link to the Bluetooth link before receiving terminal transmission link link information, is passed through Consult to determine the network type of the network link in end;
    Wherein, it is described to consult to determine the network type of the network link, bag by the Bluetooth link and the receiving terminal Include:
    Information is selected to the receiving terminal transmission link by the Bluetooth link, the link selection information is used to indicate institute State and send the network type that terminal is supported;
    Receive what the transmission terminal was sent, the network type of the network link, the network type of the network link is institute Receiving terminal is stated after the content success of the link selection information is identified, according to the link selection information and the reception What the network type that terminal is supported determined.
  9. 9. according to the method for claim 8, it is characterised in that described to be passed by the network link to the receiving terminal Defeated file data, including:
    Fileinfo is sent to the receiving terminal by the Bluetooth link, the file data is included in the fileinfo Address in the transmission terminal, the fileinfo are used to indicate that the download software in the receiving terminal passes through the net Network link, the file data is downloaded from the address.
  10. 10. according to the method for claim 8, it is characterised in that it is described by the network link to the receiving terminal File data is transmitted, including:
    When corresponding at least two file of the file data, pass through at least two file each self-corresponding transmission line journey point The defeated respective data of at least two files of supplementary biography.
  11. 11. according to the method for claim 8, it is characterised in that it is described by Bluetooth link to receiving terminal transmission link Link information, including:
    The link connection information is generated according to the network type of the network link;
    The link connection information is sent to the receiving terminal by the Bluetooth link.
  12. 12. according to the method for claim 8, it is characterised in that methods described also includes:
    When receiving the recognition failures response that the transmission terminal returns, passed by the Bluetooth link to the receiving terminal The defeated file data, recognition failures response for the receiving terminal identify the content of the link selection information not into The response returned after work(.
  13. 13. according to the method for claim 8, it is characterised in that it is described by the Bluetooth link to the receiving terminal Transmission link selects information, including:
    The get requests for including the link selection message, the chain are sent to the receiving terminal based on Object Exchange The message format of road selection message be user-defined format, the get ask be OpCode in OBEX protocol messages be 0x03 or Person 0x83.
  14. 14. according to the method for claim 8, it is characterised in that it is described by the Bluetooth link to the receiving terminal Transmission link selects information, including:
    The link selection message is sent to the receiving terminal based on the Object Exchange of extension, the object of the extension is handed over The command code changed in the protocol message of agreement is self-defining operation code.
  15. 15. a kind of device for transmitting file, it is characterised in that in receiving terminal, described device to include:
    Information receiving module, for receiving the link connection information for sending terminal and being sent by Bluetooth link;
    Link establishment module, for according to the Connecting quantity that is included in the link connection information establish with the transmission terminal it Between network link;
    First data reception module, for receiving the transmission file data of the terminal by the network link transmission;
    Wherein, described device also includes:
    First negotiation module, for receiving the link connection for sending terminal and being sent by Bluetooth link in described information receiving module Before information, consult to determine the network type of the network link by the Bluetooth link and the transmission terminal;
    Wherein, first negotiation module, including:
    Second information receiving submodule, believe for receiving the link selection that the transmission terminal is sent by the Bluetooth link Breath, the link selection information are used for the network type for indicating that the transmission terminal is supported;
    Submodule is identified, for identifying the content of the link selection information;
    Type determination module, if identifying the content success of the link selection information, basis for the identification submodule The network type that the link selection information and the receiving terminal are supported determines the network type of the network link;
    Type sending submodule, for the network type of the network link to be sent into the transmission terminal.
  16. 16. device according to claim 15, it is characterised in that first data reception module, including:
    First information receiving submodule, the fileinfo sent for receiving the transmission terminal by the Bluetooth link, institute State the address that the file data is included in fileinfo in the transmission terminal;
    Sending submodule is instructed, sends download instruction for the download software into the receiving terminal, the download instruction is used In indicating the download software by the network link, from the address download file data.
  17. 17. device according to claim 15, it is characterised in that first data reception module, for when the text When number of packages is according to corresponding at least two file, by each self-corresponding transmission line journey of at least two file receive respectively it is described extremely Few two respective data of file.
  18. 18. device according to claim 15, it is characterised in that the network link is wireless local area network link, wirelessly Fidelity hot-spot link or Wireless Fidelity equity transmission link.
  19. 19. device according to claim 15, it is characterised in that described device also includes:
    Response returns to module, if identifying that the content of the link selection information is unsuccessful for the identification submodule, to institute State and send terminal return recognition failures response;
    Second data reception module, the file data transmitted for receiving the transmission terminal by the Bluetooth link.
  20. 20. device according to claim 15, it is characterised in that
    The second information receiving submodule, sent, included based on Object Exchange for receiving the transmission terminal The get requests of the link selection message, the message format of the link selection message is user-defined format, the get requests For the OpCode in OBEX protocol messages it is 0x03 or 0x83.
  21. 21. device according to claim 15, it is characterised in that
    The second information receiving submodule, the institute sent for receiving the Object Exchange of the transmission terminal based on extension State link selection message, the command code in the protocol message of the Object Exchange of the extension is self-defining operation code.
  22. 22. a kind of device for transmitting file, it is characterised in that for sending in terminal, described device includes:
    Information sending module, for by Bluetooth link to receiving terminal transmission link link information, the link connection information For indicate the receiving terminal according to the Connecting quantity that is included in the link connection information establish with the transmission terminal it Between network link;
    First data transmission module, for transmitting file data to the receiving terminal by the network link;
    Wherein, described device also includes:
    Second negotiation module, in described information sending module by Bluetooth link to receiving terminal transmission link link information Before, consult to determine the network type of the network link by the Bluetooth link and the receiving terminal;
    Wherein, second negotiation module, including:
    Second information sending submodule, for selecting information, institute to the receiving terminal transmission link by the Bluetooth link State link selection information and be used for the network type for indicating that the transmission terminal is supported;
    Type reception submodule, for receiving the transmission terminal transmission, the network type of the network link, the network The network type of link is the receiving terminal after the content success of the link selection information is identified, is selected according to the link Select what the network type that information and the receiving terminal are supported determined.
  23. 23. device according to claim 22, it is characterised in that the first data transmission module, including:
    First information sending submodule, for sending fileinfo, the text to the receiving terminal by the Bluetooth link Address of the file data in the transmission terminal is included in part information, the fileinfo is used to indicate described receive eventually Download software in end downloads the file data by the network link from the address.
  24. 24. device according to claim 22, it is characterised in that the first data transmission module, for when the text When number of packages is according to corresponding at least two file, by each self-corresponding transmission line journey of at least two file transmit respectively it is described extremely Few two respective data of file.
  25. 25. device according to claim 22, it is characterised in that described information sending module, including:
    Information generates submodule, for generating the link connection information according to the network type of the network link;
    3rd information sending submodule, for the link connection information to be sent into described receive eventually by the Bluetooth link End.
  26. 26. device according to claim 22, it is characterised in that described device also includes:
    Second data transmission module, for when receiving the recognition failures response that the transmission terminal returns, passing through the indigo plant Receiving terminal described in tooth chain road direction transmits the file data, and the recognition failures response is the receiving terminal described in identification The unsuccessful rear response returned of content of link selection information.
  27. 27. device according to claim 22, it is characterised in that
    The second information sending submodule, include the chain for being sent based on Object Exchange to the receiving terminal The get requests of road selection message, the message format of the link selection message is user-defined format, and the get requests are OBEX OpCode in protocol message is 0x03 or 0x83.
  28. 28. device according to claim 22, it is characterised in that
    The second information sending submodule, for sending the chain to the receiving terminal based on the Object Exchange of extension Road selects message, and the command code in the protocol message of the Object Exchange of the extension is self-defining operation code.
  29. 29. a kind of device for transmitting file, it is characterised in that in receiving terminal, described device to include:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Receive and send the link connection information that terminal is sent by Bluetooth link;
    The network link established according to the Connecting quantity included in the link connection information between the transmission terminal;
    Receive the transmission file data of the terminal by the network link transmission;
    Wherein, the processor is additionally configured to:
    Before the link connection information that transmission terminal is sent by Bluetooth link is received, pass through the Bluetooth link and the hair End negotiation of making arrangements for his funeral determines the network type of the network link;
    Wherein, it is described to consult to determine the network type of the network link, bag by the Bluetooth link and the transmission terminal Include:
    The link selection information that the transmission terminal is sent by the Bluetooth link is received, the link selection information is used to refer to Show the network type that the transmission terminal is supported;
    Identify the content of the link selection information;
    If the content success of the link selection information is identified, according to the link selection information and the receiving terminal branch The network type held determines the network type of the network link;
    The network type of the network link is sent to the transmission terminal.
  30. 30. a kind of device for transmitting file, it is characterised in that for sending in terminal, described device includes:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    By Bluetooth link to receiving terminal transmission link link information, the link connection information is used to indicate described receive eventually End is established according to the Connecting quantity included in the link connection information and the network link sent between terminal;
    File data is transmitted to the receiving terminal by the network link;
    Wherein, the processor is additionally configured to:
    Received eventually with described by Bluetooth link to the Bluetooth link before receiving terminal transmission link link information, is passed through Consult to determine the network type of the network link in end;
    Wherein, it is described to consult to determine the network type of the network link, bag by the Bluetooth link and the receiving terminal Include:
    Information is selected to the receiving terminal transmission link by the Bluetooth link, the link selection information is used to indicate institute State and send the network type that terminal is supported;
    Receive what the transmission terminal was sent, the network type of the network link, the network type of the network link is institute Receiving terminal is stated after the content success of the link selection information is identified, according to the link selection information and the reception What the network type that terminal is supported determined.
CN201410575605.3A 2014-10-24 2014-10-24 Transmit the method and device of file Active CN104394600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410575605.3A CN104394600B (en) 2014-10-24 2014-10-24 Transmit the method and device of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410575605.3A CN104394600B (en) 2014-10-24 2014-10-24 Transmit the method and device of file

Publications (2)

Publication Number Publication Date
CN104394600A CN104394600A (en) 2015-03-04
CN104394600B true CN104394600B (en) 2018-03-16

Family

ID=52612414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410575605.3A Active CN104394600B (en) 2014-10-24 2014-10-24 Transmit the method and device of file

Country Status (1)

Country Link
CN (1) CN104394600B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105376696A (en) * 2015-10-09 2016-03-02 惠州Tcl移动通信有限公司 Data transmission method and intelligent terminal
CN107801185A (en) * 2016-09-05 2018-03-13 中兴通讯股份有限公司 A kind of quick method and apparatus for sharing focus
EP3968672B1 (en) 2016-09-09 2023-11-08 Huawei Technologies Co., Ltd. File sending method and terminal
JP6915262B2 (en) * 2016-11-25 2021-08-04 セイコーエプソン株式会社 Wearable devices, information terminal devices, communication systems, electronic devices, and communication control methods
CN108616547A (en) * 2016-12-02 2018-10-02 武汉斗鱼网络科技有限公司 A kind of method and device of transmission file
CN107018554B (en) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 Data transmission method and device and intelligent terminal
CN107135472A (en) * 2017-05-25 2017-09-05 北京数科技有限公司 A kind of method of data transfer, device and electronic equipment
CN107318174A (en) * 2017-06-28 2017-11-03 广东欧珀移动通信有限公司 A kind of communication means, device and terminal
CN107391183A (en) * 2017-06-30 2017-11-24 深圳市冠旭电子股份有限公司 Installation method and its system, the terminal device of a kind of application program
CN111316681A (en) * 2017-09-11 2020-06-19 深圳传音通讯有限公司 File transmission method and system
CN109890012A (en) * 2018-12-29 2019-06-14 北京旷视科技有限公司 Data transmission method, device, system and storage medium
EP3908017A4 (en) * 2019-01-25 2022-01-26 Huawei Technologies Co., Ltd. Method and apparatus for establishing bluetooth data channel
CN111641431B (en) * 2019-11-08 2022-04-05 广州视源电子科技股份有限公司 Data transmission method and data transmission equipment
CN114356172A (en) * 2020-09-30 2022-04-15 华为技术有限公司 Data transmission method and electronic equipment
CN112804394B (en) * 2021-01-28 2022-12-06 网易(杭州)网络有限公司 Information transmission and receiving method and device, electronic equipment and storage medium
CN114071789A (en) * 2021-11-15 2022-02-18 合众新能源汽车有限公司 File sharing method and system, sending end equipment and receiving end equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179201A (en) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 Method and system for synchronizing files
CN103546200A (en) * 2013-08-26 2014-01-29 深圳Tcl新技术有限公司 Data transmission method and system based on near-field communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179201A (en) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 Method and system for synchronizing files
CN103546200A (en) * 2013-08-26 2014-01-29 深圳Tcl新技术有限公司 Data transmission method and system based on near-field communication

Also Published As

Publication number Publication date
CN104394600A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN104394600B (en) Transmit the method and device of file
JP6480481B2 (en) Device connection apparatus and method in portable terminal
CN104993981B (en) Control the method and device of equipment access
CN104159255B (en) Terminal room shares the method and device of network
CN104038263B (en) Method and device for establishing Bluetooth connection
KR101964077B1 (en) Apparatus and method for connecting bluetooth device in portable terminal
US9058397B1 (en) Quick response code business card
EP2919437A1 (en) Capability open platform, method and gateway for achieving terminal device plug and play management
US8738687B2 (en) Communication system having management apparatus and user apparatus, management apparatus, user apparatus, and method of controlling the same
CN106452924B (en) The method and apparatus of synchronous radio network configuration
JP6532333B2 (en) Communication device, communication method and program
CN104618267B (en) Connection control method and device
CN101808090A (en) On-site intelligent mobile information service system
CN101960745A (en) Skin-based information transfer between mobile devices
CN105049416A (en) Method and apparatus for accessing to wifi network
CN105744646B (en) A kind of mobile terminal and communication means
CN107426828A (en) Data transmission method, device and mobile terminal
EP2941058A1 (en) Near field communication method and device
CN105472698A (en) Wireless network access method and device
JP2017501598A (en) Method and apparatus for broadcasting stream media data
CN107820685A (en) Distributed physical layer method for mapping resource, device, transmitting terminal and receiving terminal
JP6472259B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, PROGRAM
CN106604230A (en) Region configuration method and region configuration device
CN104539497B (en) Method for connecting network and device
CN113132997B (en) Communication method, device and system of intelligent household equipment

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