CN103746975A - Method of data transmission, device and mobile terminal - Google Patents

Method of data transmission, device and mobile terminal Download PDF

Info

Publication number
CN103746975A
CN103746975A CN201310739842.4A CN201310739842A CN103746975A CN 103746975 A CN103746975 A CN 103746975A CN 201310739842 A CN201310739842 A CN 201310739842A CN 103746975 A CN103746975 A CN 103746975A
Authority
CN
China
Prior art keywords
transmission means
transmitting terminal
target data
receiving terminal
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310739842.4A
Other languages
Chinese (zh)
Inventor
文振威
许瑞军
彭涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
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 CN201310739842.4A priority Critical patent/CN103746975A/en
Publication of CN103746975A publication Critical patent/CN103746975A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method of data transmission, a device and a mobile terminal. The method includes that: a sending terminal receives a transmitting data and the data is as a target data; the sending terminal is connected with a receiving terminal that receives the target data by means of a first transmission method to establish a handshake link, and the size of the target data, the current network environment information of the sending terminal and the transmission mode that can be supported by the sending terminal are sent to the receiving terminal in a handshake message of the established handshake link; the sending terminal receives a second transmission mode of the receiving terminal, the second transmission mode is a receiving terminal according to the size of the target data, the current network environment information of the sending terminal, the transmission mode that can be supported by the sending terminal, and the transmission mode is selected from the transmission modes that can be supported by the sending terminal and the receiving terminal; the sending terminal is connected with the receiving terminal to establish a link of the second transmission mode; and the sending terminal transmits the target data to the receiving terminal by means of the second transmission mode. The invention simplifies the transmission process and improves the transmission efficiency.

Description

A kind of data transmission method, device and mobile terminal
Technical field
The disclosure relates to technical field of data transmission, particularly a kind of data transmission method, device and mobile terminal.
Background technology
Along with the development of electronic technology, the function of mobile terminal is also more and more perfect, and user not only can make a phone call with mobile terminal, play games, chat, sees e-book etc., can also on mobile terminal, preserve a large amount of files and information, and multiple application program is installed.Therefore, also just tend to run into the scene that these files or information need to be transmitted.
Between mobile terminal, when transfer files, user, determining after file to be transmitted, also needs to select transmission means, then by the transmission means of selecting, transmits file to be transmitted, such as, user selects this file to be transmitted of wireless network transmissions etc.Particularly, when the multiple file to be transmitted of transmission, file to be transmitted of the every transmission of user all needs to select transmission means etc., and its transmitting procedure is loaded down with trivial details, causes efficiency of transmission low.
Summary of the invention
The disclosure provides a kind of data transmission method, device and mobile terminal, to solve in prior art because transmitting procedure is loaded down with trivial details, and the technical problem that causes efficiency of transmission to reduce.
In order to solve the problems of the technologies described above, the disclosure discloses following technical scheme:
First aspect provides a kind of data transmission method, and described method comprises
Transmitting terminal receives the data that need transmission, and using described data as target data;
Described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and is linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Described transmitting terminal receives the second transmission means that described receiving terminal sends, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described transmitting terminal and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
Described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
Second aspect provides a kind of data transmission method, and described method comprises:
Receiving terminal is set up to shake hands by the first transmission means and transmitting terminal and link, and the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
Described receiving terminal, according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, is selected second transmission means the transmission means that the transmission means of supporting and described transmitting terminal are supported from self;
Described receiving terminal sends to described transmitting terminal by described the second transmission means, so that described transmitting terminal transmits described target data by described the second transmission means.
The third aspect provides a kind of data transmission device, comprising:
The first receiving element, for receiving the data that need transmission, and using described data as target data;
First sets up unit, for passing through the first transmission means, set up described device and link with receiving shaking hands between the receiving terminal of described target data, and send to described receiving terminal in the foundation transmission means that the handshake message that links supports to current network environmental information and the described device of the size information of target data described in major general, described device of shaking hands;
The second receiving element, the second transmission means sending for receiving described receiving terminal, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described device for described receiving terminal, the transmission means of selecting from the transmission means that described device and receiving terminal are all supported;
Second sets up unit, for setting up linking of described the second transmission means between described device and described receiving terminal;
The first transmission unit, is transferred to described receiving terminal for the link by described the second transmission means by described target data.
Fourth aspect provides a kind of data transmission device, comprising:
Set up unit, for set up shaking hands between described device and transmitting terminal by the first transmission means, link;
Receiving element, for setting up in the described unit of setting up when link of shaking hands, the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
Selected cell, for according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, the transmission means that the transmission means of supporting and described transmitting terminal are supported, select the second transmission means from self;
Transmitting element, for described the second transmission means is sent to described transmitting terminal, so that described transmitting terminal transmits described target data by described the second transmission means.
Preferably, described selected cell comprises:
Whether the first judging unit, exceed Second Threshold for the size information that judges described target data;
The second judging unit, for when described the first judging unit judgement does not exceed Second Threshold, judges whether described transmitting terminal and described device all support NFC transmission means;
The first chooser unit, for when NFC transmission means is all supported in described the second judging unit judgement, selecting described NFC transmission means is the second transmission means.
The 5th aspect provides a kind of mobile terminal, include memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to carry out described more than one or one program package containing for carrying out the instruction of following operation by more than one or one processor:
Transmitting terminal receives the data that need transmission, and using described data as target data;
Described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and is linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Described transmitting terminal receives the second transmission means that described receiving terminal sends, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
Described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
Beneficial effects more of the present disclosure can comprise:
In the disclosure, receiving terminal is from setting up size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the described target data of the needs transmission that gets transmitting terminal handshake message link of shaking hands with transmitting terminal, then according to the network condition of self, the transmission means of all supporting from the two, select a kind of suitable transmission means, with the response message of handshake message, inform to receiving terminal, so that receiving terminal sends target data by this transmission means.Not only simplify transmitting procedure, also improved efficiency of transmission.
Should be understood that, it is only exemplary that above general description and details are hereinafter described, and can not limit the disclosure.
Accompanying drawing explanation
In order to be illustrated more clearly in the disclosure or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of data transmission method that Fig. 1 provides for the disclosure;
Another flow chart of a kind of data transmission method that Fig. 2 provides for the disclosure;
Another flow chart of a kind of data transmission method that Fig. 3 provides for the disclosure;
The structural representation of a kind of data transmission device that Fig. 4 provides for the disclosure;
Another structural representation of a kind of data transmission device that Fig. 5 provides for the disclosure;
Another structural representation of a kind of data transmission device that Fig. 6 provides for the disclosure;
A kind of structural representation of the selected cell that Fig. 7 provides for the disclosure;
The another kind of structural representation of the selected cell that Fig. 8 provides for the disclosure;
The another kind of structural representation of the selected cell that Fig. 9 provides for the disclosure;
The another kind of structural representation of the selected cell that Figure 10 provides for the disclosure;
The structural representation of a kind of mobile terminal that Figure 11 provides for the disclosure.
Embodiment
Below in conjunction with accompanying drawing of the present disclosure, technical scheme of the present disclosure is carried out to clear, complete description, obviously, described embodiment is only disclosure part embodiment, rather than whole embodiment.Based on the embodiment in the disclosure, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of disclosure protection.
The term using in the disclosure is only for describing the object of specific embodiment, but not is intended to limit the disclosure." one ", " described " and " being somebody's turn to do " of the singulative using in disclosure and the accompanying claims book are also intended to comprise most forms, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more projects of listing that are associated any or all may combine.
Although should be appreciated that in the disclosure and may adopt term first, second, third, etc. to describe various information, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.For example, in the situation that not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, as used in this word " if " can be construed as into " ... time " or " when ... time " or " in response to determine ".
Refer to Fig. 1, the flow chart of a kind of data transmission method that Fig. 1 provides for the disclosure; In the disclosure, take mobile terminal as example, but be not limited to this, described method comprises:
Step 101: transmitting terminal receives the data that need transmission, and using described data as target data;
In this step, using the data of needs transmission as target data, wherein, described target data, can be text message, and file can also be picture etc., certainly, can also be other information, and the present embodiment is not restricted.
Step 102: described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Based on above-mentioned steps, when receiving terminal receives the data that need transmission, by the first transmission means, to the receiving terminal that receives described data, send handshake message, so that set up to shake hands with receiving terminal, link.Wherein, in described handshake message, at least comprise subordinate's information: the transmission means that the current network environmental information of the size information of described target data, described transmitting terminal and described transmitting terminal are supported, certainly, can also adaptability comprise other information, such as, the information such as the title of target data.
Wherein, described the first transmission means can comprise: sound, Quick Response Code, light wave, vibration or Near Field Communication (NFC, Near Field Communication) transmission means etc., certainly, can also comprise other transmission meanss, and the present embodiment is not restricted.
It should be noted that, NFC allows the contactless Point-to-Point Data Transmission of carrying out closely (such as in ten centimetres) between electric terminal (can be also electronic equipment); And when utilizing NFC transmission means to carry out transfer of data, some electric terminals need to be used Bluetooth transmission and WI-FI transmission, some electric terminals do not need to use Bluetooth transmission and WI-FI transmission, such as, support the electric terminal of S Beam platform etc.
It should be noted that, in the present embodiment, the current network environmental information of transmitting terminal can comprise: Wireless Fidelity (Wi-Fi, Wireless Fidelity) network environment information and the communication network information etc. of whether can breaking, certainly, can also adaptability comprise other network informations.Wherein, Wi-Fi is the same with bluetooth, belongs to the short distance wireless technical using in office and family.
Step 103: described transmitting terminal receives the second transmission means that described receiving terminal sends, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described transmitting terminal and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
In this step, receiving terminal is receiving after handshake message, from described handshake message, resolves, and obtains the current network environmental information of the size information of target data, described transmitting terminal and the transmission means that described transmitting terminal is supported; Then, in conjunction with the network condition of self, from the transmission means that described transmitting terminal and receiving terminal are all supported, select a kind of transmission means of suitable this target data of transmission, be called the second transmission means herein, then, described the second transmission means is sent to receiving terminal, and receiving terminal receives the second transmission means that transmitting terminal sends.
Optionally, in this embodiment, the transmission means that receiving terminal is supported according to current network environmental information and the transmitting terminal of the size information of described target data, described transmitting terminal, from the transmission means that described transmitting terminal and receiving terminal are all supported, select a kind of the second suitable transmission means, herein take following several situations as example, when being not limited to this:
The first situation: described receiving terminal first judges whether the size information of described target data exceedes Second Threshold; If do not exceed Second Threshold, judge whether described transmitting terminal and receiving terminal all support NFC transmission means; If described transmitting terminal and receiving terminal are all supported NFC transmission means, described the second transmission means of selecting is NFC transmission means.
If the size information of described target data exceedes described Second Threshold, continue to judge that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment, if all, under same Wi-Fi environment, described the second transmission means of selecting is described Wi-Fi transmission means.If described transmitting terminal and receiving terminal not under same Wi-Fi environment, judge whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size information of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, described the 3rd threshold value is greater than described Second Threshold.Wherein, wherein, described Second Threshold can be in Mbytes, certainly, also can adaptability tunes up (such as, tens Mbytes are with interior etc.) or turns (hundreds of is opened byte with interior etc.) down; The 3rd threshold value can be in tens Mbytes, and certainly, described the 3rd threshold value also can tune up (such as the several G of furnishing) or turn (several million) down.Second Threshold and the 3rd threshold value do not have obvious boundary between the two, and certainly, just to different situations, Second Threshold also can be more than or equal to the 3rd threshold value, and the present embodiment is not restricted.
If the size information of described target data exceedes described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi direct-connected (Direct) transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Bluetooth transmission mode; If described transmitting terminal and receiving terminal are not supported Wi-Fi Direct transmission means, and described network can not break, and described the second transmission means of selecting is Bluetooth transmission mode.
Wherein, Wi-Fi Direct refers to that the equipment allowing in wireless network is without interconnecting by wireless router, similar with Bluetooth technology,
The second situation, described receiving terminal is according to the current network environmental information of described transmitting terminal, judges that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment; If described transmitting terminal and receiving terminal are under same Wi-Fi environment, described the second transmission means of selecting is Wi-Fi transmission means;
If described transmitting terminal and receiving terminal not under same Wi-Fi environment, judge whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, described the 3rd threshold value is greater than described Second Threshold.
The third situation, described receiving terminal judges whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size information of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, the actual communication network that refers to of the current residing network signal of transmitting terminal, such as, the signal of mobile terminal etc.
If exceed described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-FiDirect transmission means; If described transmitting terminal or receiving terminal are not supported Wi-Fi Direct transmission means, described the second transmission means of selecting is Bluetooth transmission mode.
The 4th kind of situation, described receiving terminal judges whether the current residing network signal of described transmitting terminal can break; If described network signal can break, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-Fi Direct transmission means;
If described network signal can break, and described transmitting terminal or receiving terminal do not support Wi-Fi Direct transmission means, and described second transmission means of selection is Wi-Fi access point (AP, Access Poin) transmission means.
Step 104: described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
In this step, transmitting terminal is receiving being applicable to after the second transmission means of this transfer of data that receiving terminal sends, sets up and the linking of the second transmission means of receiving terminal.
Step 105: described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
Establishing after the second transmission means, utilizing described the second transmission that described target data is sent to receiving terminal.
In the disclosure, transmitting terminal is setting up and shake hands while linking with receiving terminal, the transmission means that the current network environmental information of the size information of described target data, described transmitting terminal and described transmitting terminal are supported sends to described receiving terminal, so that receiving terminal is selected suitable transmission means according to these information and himself situation, and suitable transmission means is informed to transmitting terminal, transmitting terminal utilizes this transmission means transmission objectives data.Simplify transmission operation, improved efficiency of transmission.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, and described method can also comprise: described transmitting terminal judges whether the size of described target data exceedes first threshold; If do not exceed first threshold, described target data is added in described handshake message, and by described the first transmission means, the described handshake message that adds described target data is transferred to described receiving terminal.
Wherein, first threshold, can be in hundred bytes, certainly, can be also that application tunes up (being adjusted into hundreds of byte etc.), and the present embodiment is not restricted.Wherein, described the first transmission means can comprise: sound, Quick Response Code, light wave, vibration or NFC transmission means, certainly, can also adaptability comprise other modes.
In this embodiment, if need the size of data of transmission smaller, just data can be added in described handshake message, and will receive to hold while linking with receiving terminal and send to receiving terminal, simplify the foundation of transmissions links, improve efficiency of transmission.
Also refer to Fig. 2, another flow chart of a kind of data transmission method that Fig. 2 provides for the disclosure, described method comprises:
Step 201: receiving terminal is set up to shake hands by the first transmission means and transmitting terminal and link, and the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
In this step, transmitting terminal initiates to set up to shake hands with receiving terminal by the first transmission means to link, receiving terminal and transmitting terminal establish the link, and when establishing the link, from the handshake message establishing the link, obtain size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that transmitting terminal need to send.
Step 202: described receiving terminal, according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, is selected second transmission means the transmission means that the transmission means of supporting and described transmitting terminal are supported from self;
Receiving terminal is receiving after the current network environmental information of the size information of the target data that transmitting terminal need to send, described transmitting terminal and transmission means that described transmitting terminal is supported, in conjunction with the network environment situation of self, with and the transmission means supported, and the transmission means of all supporting from the two, select a kind of suitable transmission means, this transmission means becomes the second transmission means.It selects a kind of suitable transmission means multiple situation, below take following four kinds of situations as example, but is not limited to this, is specially:
The first situation: described receiving terminal first judges whether the size information of described target data exceedes Second Threshold; If do not exceed Second Threshold, judge whether described transmitting terminal and receiving terminal all support NFC transmission means; If described transmitting terminal and receiving terminal are all supported NFC transmission means, described the second transmission means of selecting is NFC transmission means.
If the size information of described target data exceedes described Second Threshold, continue to judge that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment, if all, under same Wi-Fi environment, described the second transmission means of selecting is described Wi-Fi transmission means.If described transmitting terminal and receiving terminal not under same Wi-Fi environment, judge whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size information of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, described the 3rd threshold value is greater than described Second Threshold.Wherein, wherein, described Second Threshold can be in Mbytes, certainly, also can adaptability tunes up (such as, tens Mbytes are with interior etc.) or turns (hundreds of is opened byte with interior etc.) down; The 3rd threshold value can be in tens Mbytes, and certainly, described the 3rd threshold value also can tune up (such as the several G of furnishing) or turn (several million) down.Second Threshold and the 3rd threshold value do not have obvious boundary between the two, and certainly, just to different situations, Second Threshold also can be more than or equal to the 3rd threshold value, and the present embodiment is not restricted.
If the size information of described target data exceedes described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct, if all support Wi-Fi Direct, described the second transmission means of selecting is Bluetooth transmission mode; If described transmitting terminal and receiving terminal are not supported Wi-Fi Direct, and described network can not break, and described the second transmission means of selecting is Bluetooth transmission mode.
The second situation, described receiving terminal is according to the current network environmental information of described transmitting terminal, judges that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment; If described transmitting terminal and receiving terminal are under same Wi-Fi environment, described the second transmission means of selecting is Wi-Fi transmission means;
If described transmitting terminal and receiving terminal not under same Wi-Fi environment, judge whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, described the 3rd threshold value is greater than described Second Threshold.
The third situation, described receiving terminal judges whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, judge whether the size information of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode; Wherein, the actual communication network that refers to of the current residing network signal of transmitting terminal, such as, the signal of mobile terminal etc.
If exceed described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-FiDirect transmission means; If described transmitting terminal or receiving terminal are not supported Wi-Fi Direct transmission means, described the second transmission means of selecting is Bluetooth transmission mode.
The 4th kind of situation, described receiving terminal judges whether the current residing network signal of described transmitting terminal can break; If described network signal can break, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-Fi Direct transmission means;
If described network signal can break, and described transmitting terminal or receiving terminal do not support Wi-Fi Direct transmission means, and described second transmission means of selection is Wi-Fi AP transmission means.
Step 203: described receiving terminal sends to described transmitting terminal by described the second transmission means, so that described transmitting terminal transmits described target data by described the second transmission means.
In the disclosure, receiving terminal is from setting up size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the described target data of the needs transmission that gets transmitting terminal handshake message link of shaking hands with transmitting terminal, then according to the network condition of self, the transmission means of all supporting from the two, select a kind of suitable transmission means, with the response message of handshake message, inform to receiving terminal, so that receiving terminal sends target data by this transmission means.Not only simplify transmitting procedure, also improved efficiency of transmission.
Also refer to Fig. 3, another flow chart of a kind of data transmission method that Fig. 3 provides for the disclosure, described method comprises:
Step 301: transmitting terminal receives the data that need transmission;
Step 302: transmitting terminal is using described data as target data;
Step 303: described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Step 304: described receiving terminal, according to the current network environmental information of the size information of the described target data receiving, described transmitting terminal and the network environment situation of self, is selected second transmission means the transmission means that the transmission means of supporting and described transmitting terminal are supported from self;
Wherein, described receiving terminal is according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, the process of selecting the second transmission means the transmission means that the transmission means of supporting from self and described transmitting terminal are supported refers to above-mentioned four kinds of situations, certainly, also can select according to following preferred mode, be specially:
Described receiving terminal judges whether the size information of described target data exceedes Second Threshold (in Mbytes), if do not exceed Second Threshold, judges whether described transmitting terminal and receiving terminal all support NFC transmission means; If all support NFC transmission means, the second transmission means of selecting is described NFC transmission means;
If the size information of described target data exceedes described Second Threshold, continue judge that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment, if all under same Wi-Fi environment, the second transmission means of selection is described Wi-Fi transmission means;
If described transmitting terminal and receiving terminal not under same Wi-Fi environment, judge whether the current residing network signal of described transmitting terminal can break; If described network signal can not break, whether the size information that judges described target data exceedes the 3rd threshold value (such as tens000000), if the size information of described target data is no more than described the 3rd threshold value, the second transmission means of selecting is described Bluetooth transmission mode; Wherein, described the 3rd threshold value is greater than described Second Threshold.
If the size information of described target data exceedes described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, the second transmission means of selecting is described Wi-Fi Direct transmission.
If described transmitting terminal and receiving terminal are not supported Wi-Fi Direct, and described network signal can not break, and the second transmission means of selecting is Bluetooth transmission mode.
If described network can break, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, the second transmission means of selecting is described Wi-Fi Direct transmission means.
If described network can break, and described transmitting terminal and receiving terminal all do not support Wi-Fi Direct transmission means, and the second transmission means of selecting is Wi-Fi AP transmission means.
Certainly, be not limited in actual applications this said process, can also according to circumstances carry out accommodation, the present embodiment is not restricted.
Step 305: described receiving terminal sends to described transmitting terminal by the response message of described handshake message by described the second transmission means;
Step 306: described transmitting terminal is receiving after described the second transmission means, and transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Step 307: described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
Based on above-described embodiment, receiving terminal is after receiving user and need to transmitting the request of data, setting up and shake hands while linking with receiving terminal, the transmission means of size information, network environment information and the support of transmission data is sent to receiving terminal, so that receiving terminal is selected applicable transmission means, then, transmitting terminal is by these transmission means transmission data, and its detailed process is:
1) if user just transmits a more brief file (such as hundred bytes are with interior file, wherein hundred bytes with interior can be first threshold), receiving terminal is receiving after this file, the handshake message that can directly this file be added on for setting up the link of shaking hands directly sending receiving terminal to, and points out the other side should open corresponding equipment to receive.
2) if transmission file in Mbytes (wherein, Mbytes with interior can be Second Threshold), and user is that the NFC of use transmits to shake hands, just can directly by NFC transmission means, transmit (because the transmission rate of NFC is much larger than other several handshake methods);
3) if the file of transmission, not in Mbytes, just need to be selected bluetooth, the transmission meanss such as Wi-Fi are transmitted.That is to say, receiving terminal is after receiving handshake message, can be according to the size information of file, the speed that the various transmission meanss of transmitting terminal support and the current network of transmitting terminal connect (can be preset in program, such as bluetooth needs 5 seconds, Wi-Fi ap needs 10 seconds etc.), the transmission rate of various transmission meanss, whether electric weight service condition (bluetooth is than Wi-Fi power saving) and current network can interrupt etc. selecting, select a kind of transmission means that is applicable to this content, afterwards, receiving terminal sends the response message of handshake message to transmitting terminal, wherein, the response message of this handshake message comprises the transmission means that is used for connecting oneself that receiving terminal chooses.
Wherein, receiving terminal is selected suitable transmission means, and its transmission means mainly comprises that subordinate is several, but is not limited to this:
A. the direct transmission under same Wi-Fi environment (such as two mobile phones are under same Wi-Fi, can directly connect in this local area network (LAN)).
B. bluetooth, its transmission data speed is slower, but connection speed is very fast, compared with power saving;
C.Wi-Fi focus, its transmission data speed is fast, but connection speed is slow, need to destroy current network and connect;
D.Wi-Fi direct, its transmission data speed is fast, but connection speed is slow, does not destroy current network and connects;
It should be noted that, if transmitting terminal and receiving terminal have a side hardware not support wherein a kind of transmission means, directly get rid of this transmission means.
4), if transmitting terminal and receiving terminal both sides under same Wi-Fi, directly select local area network (LAN) mode to transmit.
5) if user selects current network signal to interrupt, get rid of the mode of Wi-Fi Hotspot, according to the size that transmits file, select, if smaller file (several M, tens M etc.) adopts Bluetooth transmission mode; If larger file, adopts Wi-Fi direct transmission means,, certainly, if hardware do not support, can only adopt Bluetooth transmission mode;
6) if current network can be interrupted, and it is larger to transmit file, and hardware do not support Wi-Fi direct transmission means, adopts Wi-Fi ap transmission means.
Afterwards, transmitting terminal is being received the response message of handshake message (comprising the transmission means that receiving terminal is selected) afterwards, just can adopt this selected transmission means to remove to connect receiving terminal, and utilizes the chain of setting up to receive and send this article part.
Based on the implementation procedure of said method, the disclosure also provides a kind of data transmission device, and its structural representation as shown in Figure 4, described data transmission device comprises: the first receiving element 41, the first is set up unit 42, the second receiving elements 43, second sets up unit 44 and the first transmission unit 45, wherein
Described the first receiving element 41, for receiving the data that need transmission, and using described data as target data;
Described first sets up unit 42, for passing through the first transmission means, set up described device and link with receiving shaking hands between the receiving terminal of described target data, and send to described receiving terminal in the foundation transmission means that the handshake message that links supports to current network environmental information and the described device of the size information of target data described in major general, described device of shaking hands;
Described the second receiving element 43, the second transmission means sending for receiving described receiving terminal, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described device for described receiving terminal, the second transmission means of selecting from the transmission means that described device and receiving terminal are all supported;
Described second sets up unit 44, for setting up linking of described the second transmission means between described device and described receiving terminal;
Described the first transmission unit 45, is transferred to described receiving terminal for the link by described the second transmission means by described target data.
Optionally, on the basis of another embodiment, described device can also comprise: the first judging unit 51, adding device 52 and the second transmission unit 53, its structural representation as shown in Figure 5, wherein,
Whether described the first judging unit 51, exceed first threshold for the size that judges the target data that described the first receiving element 41 receives;
Described adding device 52, while not exceeding first threshold for judging at described the first judging unit 51, is added on the handshake message for setting up the link of shaking hands by described target data;
Described the second transmission unit 53, uses the handshake message described adding device 52 being added after described target data by described the first transmission means to be transferred to described receiving terminal.
Wherein, described first set up described the first transmission means of passing through unit and comprise: sound, Quick Response Code, light wave, vibration or NFC transmission means.But being not limited to this, can also be other similar transmission meanss.
In described device, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
The disclosure also provides another kind of data transmission device, and as shown in Figure 6, described device comprises its structural representation: set up unit 61, and receiving element 62, selected cell 63 and transmitting element 64, wherein,
The described unit 61 of setting up, links for set up shaking hands between described device and transmitting terminal by the first transmission means;
Described receiving element 62, for setting up in the described unit of setting up when link of shaking hands, the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
Described selected cell 63, for according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, the transmission means that the transmission means of supporting and described transmitting terminal are supported, select the second transmission means from self;
Described transmitting element 64, for described the second transmission means is sent to described transmitting terminal, so that described transmitting terminal transmits described target data by described the second transmission means.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, and described selected cell 63 comprises: the first judging unit 71, the second judging units 72 and the first chooser unit 73, its structural representation as shown in Figure 7, wherein,
Whether described the first judging unit 71, exceed Second Threshold for the size information that judges the described target data that described receiving element 62 receives;
Described the second judging unit 72, while not exceeding Second Threshold for judging at described the first judging unit 71, judges whether described transmitting terminal and described device all support NFC transmission means;
Described the first chooser unit 73, while all supporting NFC transmission means for judging at described the second judging unit 72, selecting described NFC transmission means is the second transmission means.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, and described selected cell 63 comprises: the 3rd judging unit 81 and the second chooser unit 82, its structural representation as shown in Figure 8, wherein,
Described the 3rd judging unit 81, for receive the current network environmental information of described transmitting terminal according to described receiving element, judges that described device and described transmitting terminal are whether under same Wi-Fi environment;
Described the second chooser unit 82, for judging that at described the 3rd judging unit 81 described device and described transmitting terminal are under same Wi-Fi environment, selecting Wi-Fi transmission means is described the second transmission means.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, and described selected cell 63 comprises: the 4th judging unit 91, the five judging units 92, the 3rd chooser unit 93, the first detecting unit 94, the four chooser unit 95 and the 5th chooser unit 96, its structural representation is as shown in Figure 9, wherein
Described the 4th judging unit 91, for judging whether the current residing network signal of described transmitting terminal can break;
Described the 5th judging unit 92, for when described the 4th judging unit 91 judges that described network signal can not break, judges whether the size information of described target data exceedes the 3rd threshold value;
Described the 3rd chooser unit 93, for when described the 5th judging unit 92 judges that the size information of described target data is no more than described the 3rd threshold value, selecting Bluetooth transmission mode is described the second transmission means; Wherein, described the 3rd threshold value is greater than described Second Threshold;
Described the first detecting unit 94, for when described the 5th judging unit 92 judges that the size information of described target data exceedes described the 3rd threshold value, detects described device and transmitting terminal and whether all supports Wi-Fi Direct transmission means;
Described the 4th chooser unit 95, while all supporting Wi-Fi Direct transmission means for detect described device and transmitting terminal at described the first detecting unit 94, selecting described Wi-Fi Direct transmission means is described the second transmission means;
Described the 5th chooser unit 96, while all not supporting Wi-Fi Direct transmission means for detect described device and transmitting terminal at described the first detecting unit 94, selecting Bluetooth transmission mode is described the second transmission means.
Optionally, in another embodiment, this embodiment is on the basis of above-described embodiment, described selected cell 63 comprises: the 6th judging unit 11, the second detecting unit 12, the six chooser unit 13 and the 7th chooser unit 14, its structural representation as shown in figure 10, wherein
Described the 6th judging unit 11, for judging whether the current residing network signal of described transmitting terminal can break;
Described the second detecting unit 12, for when described the 6th judging unit 11 judges that described network signal can break, detects described device and described transmitting terminal and whether all supports Wi-Fi Direct transmission means;
Described the 6th chooser unit 13, while all supporting Wi-Fi Direct transmission means for detect described device and described transmitting terminal at described the second detecting unit 12, selecting Wi-Fi Direct transmission means is described the second transmission means;
Described the 7th chooser unit 14, for judging that at described the 6th judging unit 11 described network signal can break, and described the second detecting unit 12 detects described device and described transmitting terminal while not supporting Wi-Fi Direct transmission means, and selecting Wi-Fi AP transmission means is described the second transmission means.
In described device, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
Accordingly, the disclosure also provides a kind of mobile terminal, described mobile terminal includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to carry out described more than one or one program package containing for carrying out the instruction of following operation by more than one or one processor:
Transmitting terminal receives the data that need transmission, and using described data as target data;
Described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and is linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Described transmitting terminal receives the second transmission means that described receiving terminal sends, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
Described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part is referring to the part explanation of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of disclosure scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Accordingly, the disclosure also provides a kind of mobile terminal, described mobile terminal includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to carry out described more than one or one program package containing for carrying out the instruction of following operation by more than one or one processor: obtain ordered samples; The described ordered samples of obtaining comprises: obtain the time of staying of browsing each dialog items in instant messaging; Described each dialog items is sorted according to the described time of staying.
Also refer to Figure 11, the structural representation of a kind of mobile terminal that Figure 11 provides for the disclosure.This mobile terminal can be for the method for implementing to provide in above-described embodiment.
Mobile terminal 800 can comprise communication unit 110, include the memory 120 of one or more computer-readable recording mediums, input unit 130, display unit 140, transducer 150, voicefrequency circuit 160, WI-FI(WirelessFidelity, Wireless Fidelity) module 170, include the parts such as one or one processor 180 of processing above core and power supply 190.It will be understood by those skilled in the art that the mobile terminal structure shown in figure does not form the restriction to mobile terminal, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodulator, etc. network communication equipment.Especially, when communication unit 110 is RF circuit, after the downlink information of base station is received, transfer to more than one or one processor 180 to process; In addition, by relating to up data, send to base station.Conventionally, as the RF circuit of communication unit, include but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA(Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, communication unit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM(Global System of Mobile communication, global system for mobile communications), GPRS(General Packet Radio Service, general packet radio service), CDMA(Code Division MultipleAccess, code division multiple access), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE(Long Term Evolution, Long Term Evolution), Email, SMS(Short Messaging Service, Short Message Service) etc.Memory 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of memory 120 by operation, thereby carries out various function application and data processing.Memory 120 can mainly comprise storage program district and storage data field, wherein, and the application program (such as sound-playing function, image player function etc.) that storage program district can storage operation system, at least one function is required etc.; The data (such as voice data, phone directory etc.) that create according to the use of mobile terminal 800 etc. can be stored in storage data field.In addition, memory 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also comprise Memory Controller, so that processor 180 and the access of input unit 130 to memory 120 to be provided.
Input unit 130 can be used for receiving numeral or the character information of input, and generation is inputted with user arranges and function control is relevant keyboard, mouse, action bars, optics or trace ball signal.Preferably, input unit 130 can comprise touch-sensitive surperficial 131 and other input equipments 132.Touch-sensitive surperficial 131, also referred to as touch display screen or Trackpad, can collect user or near touch operation (using any applicable object or near the operations of annex on touch-sensitive surperficial 131 or touch-sensitive surperficial 131 such as finger, stylus such as user) thereon, and drive corresponding jockey according to predefined formula.Optionally, touch-sensitive surperficial 131 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch-sensitive surperficial 131.Except touch-sensitive surperficial 131, input unit 130 can also comprise other input equipments 132.Preferably, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 140 can be used for showing the information inputted by user or the various graphical user interface of the information that offers user and mobile terminal 800, and these graphical user interface can consist of figure, text, icon, video and its combination in any.Display unit 140 can comprise display floater 141, optionally, can adopt LCD(Liquid Crystal Display, liquid crystal display), OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display floater 141.Further, touch-sensitive surperficial 131 can cover display floater 141, when touch-sensitive surperficial 131 detect thereon or near touch operation after, send processor 180 to determine the type of touch event, corresponding vision output is provided according to the type of touch event with preprocessor 180 on display floater 141.Although in Figure 11, touch-sensitive surperficial 131 with display floater 141 be as two independently parts realize input and input function, in certain embodiments, can by touch-sensitive surperficial 131 and display floater 141 integrated and realize input and output function.
Mobile terminal 800 also can comprise at least one transducer 150, such as optical sensor, motion sensor and other transducers.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor can regulate according to the light and shade of ambient light the brightness of display floater 141, and proximity transducer can, when mobile terminal 800 moves in one's ear, cut out display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of the acceleration that (is generally three axles) in all directions, when static, can detect size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, knock) of mobile phone attitude etc.; As for also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor of mobile terminal 800, do not repeat them here.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and mobile terminal 800.Voicefrequency circuit 160 can, by the signal of telecommunication after the voice data conversion receiving, be transferred to loud speaker 161, by loud speaker 161, is converted to voice signal output; On the other hand, microphone 162 is converted to the signal of telecommunication by the voice signal of collection, after being received by voicefrequency circuit 160, be converted to voice data, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another mobile terminal, or export voice data to memory 120 so as further process.Voicefrequency circuit 160 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and mobile terminal 800 to be provided.
In order to realize radio communication, on this mobile terminal, can dispose wireless communication unit 170, this wireless communication unit 170 can be WI-FI module.WI-FI belongs to short range wireless transmission technology, mobile terminal 800 by wireless communication unit 170 can help that user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for user.Although there is shown wireless communication unit 170, be understandable that, it does not belong to must forming of mobile terminal 800, completely can be as required in the essential scope that does not change invention and omit.
Processor 180 is control centres of mobile terminal 800, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out the software program and/or the module that are stored in memory 120, and call the data that are stored in memory 120, carry out various functions and the deal with data of mobile terminal 800, thereby mobile phone is carried out to integral monitoring.Optionally, processor 180 can comprise one or more processing cores; Preferably, processor 180 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Mobile terminal 800 also comprises that the power supply 190(powering to all parts is such as battery), preferably, power supply can be connected with processor 180 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise the random component such as one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, mobile terminal 800 can also comprise camera, bluetooth module etc., does not repeat them here.
In the disclosure, mobile terminal also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to carry out described more than one or one program package containing the instruction for carrying out the method that the disclosure provides by more than one or one processor.
In addition, typically, the mobile terminal described in the disclosure can be various hand-held mobile terminals, such as mobile phone, personal digital assistant (PDA) etc., and therefore protection range of the present disclosure should not be defined as the mobile terminal of certain particular type.
In addition, according to method of the present disclosure, can also be implemented as the computer program of being carried out by CPU.When this computer program is carried out by CPU, carry out the above-mentioned functions limiting in method of the present disclosure.
In addition, said method step and system unit also can utilize controller and realize for the computer readable storage devices of storing the computer program that makes controller realize above-mentioned steps or Elementary Function.
In addition, should be understood that, computer readable storage devices as herein described (for example, memory) can be volatile memory or nonvolatile memory, or can comprise volatile memory and nonvolatile memory.And nonrestrictive, nonvolatile memory can comprise read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory as an example.Volatile memory can comprise random access memory (RAM), and this RAM can serve as External Cache memory.As an example and nonrestrictive, RAM can obtain in a variety of forms, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and direct RambusRAM (DRRAM).The memory device of disclosed aspect is intended to include but not limited to the memory of these and other adequate types.
Those skilled in the art will also understand is that, in conjunction with the described various illustrative logical blocks of disclosure herein, module, circuit and algorithm steps, may be implemented as electronic hardware, computer software or both combinations.For this interchangeability of hardware and software is clearly described, with regard to the function of various exemplary components, square, module, circuit and step, it has been carried out to general description.This function is implemented as software or is implemented as hardware and depends on concrete application and impose on the design constraint of whole system.Those skilled in the art can realize described function in every way for every kind of concrete application, but this realization determines should not be interpreted as causing departing from the scope of the present disclosure.
In conjunction with the described various illustrative logical blocks of disclosure herein, module and circuit, can utilize the following parts that are designed to carry out function described here to realize or carry out: general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC) (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete nextport hardware component NextPort or any combination of these parts.General processor can be microprocessor, but alternatively, processor can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as the combination of computing equipment, and for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessor are in conjunction with DSP core or any other this configuration.
Step in conjunction with the described method of disclosure herein or algorithm can directly be included in the software module of carrying out in hardware, by processor or in the two combination.Software module can reside in the storage medium of RAM memory, flash memory, ROM memory, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or any other form known in the art.Exemplary storage medium is coupled to processor, make processor can be from this storage medium reading information or to this storage medium writing information.In an alternative, described storage medium can be integral to the processor together.Processor and storage medium can reside in ASIC.ASIC can reside in user terminal.In an alternative, processor and storage medium can be used as discrete assembly and reside in user terminal.
In one or more exemplary design, described function can realize in hardware, software, firmware or its combination in any.If realized in software, described function can be transmitted on computer-readable medium or by computer-readable medium as one or more instructions or code storage.Computer-readable medium comprises computer-readable storage medium and communication media, and this communication media comprises any medium that contributes to computer program to be sent to from a position another position.Storage medium can be can be by any usable medium of universal or special computer access.As an example and nonrestrictive, this computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage device or other magnetic storage apparatus, or can for carry or file layout be instruction or data structure required program code and can be by any other medium of universal or special computer or universal or special processor access.In addition, any connection can suitably be called computer-readable medium.For example, if use coaxial cable, optical fiber cable, twisted-pair feeder, digital subscriber line (DSL) or such as the wireless technology of infrared ray, radio and microwave come from website, server or other remote source send software, above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or the wireless technology such as infrared first, radio and microwave include the definition at medium.As used herein, disk and CD comprise compact disk (CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disk rendering data magnetically conventionally, and cd-rom using laser optics ground rendering data.The combination of foregoing also should be included in the scope of computer-readable medium.
Although disclosed content shows exemplary embodiment of the present disclosure above, it should be noted that under the prerequisite of the scope of the present disclosure that does not deviate from claim restriction, can carry out multiple change and modification.According to the function of the claim to a method of disclosed embodiment described herein, step and/or action, need not carry out with any particular order.In addition, although element of the present disclosure can be with individual formal description or requirement, also it is contemplated that multiple, unless be clearly restricted to odd number.
Above-described embodiment; object of the present disclosure, technical scheme and beneficial effect are further described; institute is understood that; the foregoing is only embodiment of the present disclosure; and be not used in limit protection range of the present disclosure; all within spirit of the present disclosure and principle, any modification of making, be equal to replacement, improvement etc., within all should being included in protection range of the present disclosure.

Claims (17)

1. a data transmission method, is characterized in that, comprising:
Transmitting terminal receives the data that need transmission, and using described data as target data;
Described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and is linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Described transmitting terminal receives the second transmission means that described receiving terminal sends; The transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described transmitting terminal and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
Described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
2. method according to claim 1, is characterized in that, also comprises:
Described transmitting terminal judges whether the size of described target data exceedes first threshold;
If do not exceed first threshold, described target data is added in described handshake message, and by described the first transmission means, the described handshake message that adds described target data is transferred to described receiving terminal.
3. method according to claim 1 and 2, is characterized in that, described the first transmission means comprises: sound, Quick Response Code, light wave, vibration or NFC transmission means.
4. method according to claim 1, it is characterized in that, the transmission means that described receiving terminal is supported according to current network environmental information and the transmitting terminal of the size information of described target data, described transmitting terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported, comprising:
Described receiving terminal judges whether the size information of described target data exceedes Second Threshold;
If do not exceed Second Threshold, judge whether described transmitting terminal and receiving terminal all support NFC transmission means;
If described transmitting terminal and receiving terminal are all supported NFC transmission means, described the second transmission means of selecting is NFC transmission means.
5. method according to claim 1, it is characterized in that, the transmission means that described receiving terminal is supported according to current network environmental information and the transmitting terminal of the size information of described target data, described transmitting terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported, comprising:
Described receiving terminal is according to the current network environmental information of described transmitting terminal, judges that described transmitting terminal and receiving terminal are whether under same Wi-Fi environment;
If described transmitting terminal and receiving terminal are under same Wi-Fi environment, described the second transmission means of selecting is Wi-Fi transmission means.
6. method according to claim 1, it is characterized in that, the transmission means that described receiving terminal is supported according to current network environmental information and the transmitting terminal of the size information of described target data, described transmitting terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported, comprising:
Described receiving terminal judges whether the current residing network signal of described transmitting terminal can break;
If described network signal can not break, judge whether the size information of described target data exceedes the 3rd threshold value, if be no more than described the 3rd threshold value, described the second transmission means of selecting is Bluetooth transmission mode;
If exceed described the 3rd threshold value, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-FiDirect transmission means;
If described transmitting terminal or receiving terminal are not supported Wi-Fi Direct transmission means, described the second transmission means of selecting is Bluetooth transmission mode.
7. method according to claim 1, it is characterized in that, the transmission means that described receiving terminal is supported according to current network environmental information and the transmitting terminal of the size information of described target data, described transmitting terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported, comprising:
Described receiving terminal judges whether the current residing network signal of described transmitting terminal can break;
If described network signal can break, detect described transmitting terminal and receiving terminal and whether all support Wi-Fi Direct transmission means, if all support Wi-Fi Direct transmission means, described the second transmission means of selecting is Wi-Fi Direct transmission means;
If described network signal can break, and described transmitting terminal or receiving terminal do not support Wi-Fi Direct transmission means, and described the second transmission means of selecting is Wi-Fi AP transmission means.
8. a data transmission method, is characterized in that, comprising:
Receiving terminal is set up to shake hands by the first transmission means and transmitting terminal and link, and the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
Described receiving terminal, according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, is selected second transmission means the transmission means that the transmission means of supporting and described transmitting terminal are supported from self;
Described receiving terminal sends to described transmitting terminal by described the second transmission means, so that described transmitting terminal transmits described target data by described the second transmission means.
9. a data transmission device, is characterized in that, comprising:
The first receiving element, for receiving the data that need transmission, and using described data as target data;
First sets up unit, for passing through the first transmission means, set up described device and link with receiving shaking hands between the receiving terminal of described target data, and send to described receiving terminal in the foundation transmission means that the handshake message that links supports to current network environmental information and the described device of the size information of target data described in major general, described device of shaking hands;
The second receiving element, the second transmission means sending for receiving described receiving terminal, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described device for described receiving terminal, the second transmission means of selecting from the transmission means that described device and receiving terminal are all supported;
Second sets up unit, for setting up linking of described the second transmission means between described device and described receiving terminal;
The first transmission unit, is transferred to described receiving terminal for the link by described the second transmission means by described target data.
10. device according to claim 9, is characterized in that, also comprises:
Whether the first judging unit, exceed first threshold for the size that judges the target data that described the first receiving element receives;
Adding device, for when described the first judging unit judgement does not exceed first threshold, is added on the handshake message for setting up the link of shaking hands by described target data;
The second transmission unit, uses the handshake message described adding device being added after described target data by described the first transmission means to be transferred to described receiving terminal.
11. according to the device described in claim 9 or 10, it is characterized in that, described first sets up described the first transmission means of passing through unit comprises: sound, Quick Response Code, light wave, vibration or NFC transmission means.
12. 1 kinds of data transmission devices, is characterized in that, comprising:
Set up unit, for set up shaking hands between described device and transmitting terminal by the first transmission means, link;
Receiving element, for setting up in the described unit of setting up when link of shaking hands, the handshake message when establishing the link receives size information, the current network environmental information of described transmitting terminal and the transmission means that described transmitting terminal is supported of the target data that at least comprises needs transmission that described transmitting terminal sends;
Selected cell, for according to the current network environmental information of the size information of described target data, described transmitting terminal and the network environment situation of self, the transmission means that the transmission means of supporting and described transmitting terminal are supported, select the second transmission means from self;
Transmitting element, for described the second transmission means is sent to described transmitting terminal, so that described transmitting terminal transmits described target data by described the second transmission means.
13. devices according to claim 12, is characterized in that, described selected cell comprises:
Whether the first judging unit, exceed Second Threshold for the size information that judges described target data;
The second judging unit, for when described the first judging unit judgement does not exceed Second Threshold, judges whether described transmitting terminal and described device all support NFC transmission means;
The first chooser unit, for when NFC transmission means is all supported in described the second judging unit judgement, selecting described NFC transmission means is the second transmission means.
14. devices according to claim 12, is characterized in that, described selected cell comprises:
The 3rd judging unit, for receive the current network environmental information of described transmitting terminal according to described receiving element, judges that described device and described transmitting terminal are whether under same Wi-Fi environment;
The second chooser unit, for judging that at described the 3rd judging unit described device and described transmitting terminal are under same Wi-Fi environment, selecting Wi-Fi transmission means is described the second transmission means.
15. devices according to claim 12, is characterized in that, described selected cell comprises:
The 4th judging unit, for judging whether the current residing network signal of described transmitting terminal can break;
The 5th judging unit, for when described the 4th judging unit judges that described network signal can not break, judges whether the size information of described target data exceedes the 3rd threshold value;
The 3rd chooser unit, for when described the 5th judging unit judges that the size information of described target data is no more than described the 3rd threshold value, selecting Bluetooth transmission mode is described the second transmission means;
The first detecting unit, for when described the 5th judging unit judges that the size information of described target data exceedes described the 3rd threshold value, detects described device and transmitting terminal and whether all supports Wi-Fi Direct transmission means;
The 4th chooser unit, while all supporting Wi-FiDirect transmission means for detect described device and transmitting terminal at described the first detecting unit, selecting described Wi-Fi Direct transmission means is described the second transmission means;
The 5th chooser unit, while all not supporting Wi-FiDirect transmission means for detect described device and transmitting terminal at described the first detecting unit, selecting Bluetooth transmission mode is described the second transmission means.
16. devices according to claim 12, is characterized in that, described selected cell comprises:
The 6th judging unit, for judging whether the current residing network signal of described transmitting terminal can break;
The second detecting unit, for when described the 6th judging unit judges that described network signal can break, detects described device and described transmitting terminal and whether all supports Wi-Fi Direct transmission means;
The 6th chooser unit, while all supporting Wi-Fi Direct transmission means for detect described device and described transmitting terminal at described the second detecting unit, selecting Wi-Fi Direct transmission means is described the second transmission means;
The 7th chooser unit, for judging that at described the 6th judging unit described network signal can break, and described the second detecting unit detects described device and described transmitting terminal while not supporting Wi-Fi Direct transmission means, and selecting Wi-Fi AP transmission means is described the second transmission means.
17. 1 kinds of mobile terminals, it is characterized in that, include memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to carry out described more than one or one program package containing for carrying out the instruction of following operation by more than one or one processor:
Transmitting terminal receives the data that need transmission, and using described data as target data;
Described transmitting terminal is set up to shake hands with the receiving terminal that receives described target data by the first transmission means and is linked, and the transmission means of supporting to current network environmental information and the described transmitting terminal of the size information of target data described in major general, described transmitting terminal in the handshake message linking is shaken hands in foundation sends to described receiving terminal;
Described transmitting terminal receives the second transmission means that described receiving terminal sends, the transmission means that described the second transmission means is supported according to the current network environmental information of the size information of described target data, described device and described transmitting terminal for described receiving terminal, the transmission means of selecting from the transmission means that described transmitting terminal and receiving terminal are all supported;
Described transmitting terminal is set up linking of described the second transmission means with described receiving terminal;
Described transmitting terminal is transferred to described receiving terminal by described the second transmission means by described target data.
CN201310739842.4A 2013-12-26 2013-12-26 Method of data transmission, device and mobile terminal Pending CN103746975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310739842.4A CN103746975A (en) 2013-12-26 2013-12-26 Method of data transmission, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310739842.4A CN103746975A (en) 2013-12-26 2013-12-26 Method of data transmission, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN103746975A true CN103746975A (en) 2014-04-23

Family

ID=50503962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310739842.4A Pending CN103746975A (en) 2013-12-26 2013-12-26 Method of data transmission, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN103746975A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837042A (en) * 2015-05-06 2015-08-12 腾讯科技(深圳)有限公司 Digital multimedia data encoding method and apparatus
WO2015131582A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method, terminal, system for short-distance data transmission, and computer storage medium
CN105007587A (en) * 2015-06-01 2015-10-28 中国科学院信息工程研究所 Multi-network coverage apparatus and method having network selection function
CN105554856A (en) * 2016-01-26 2016-05-04 福州亿纵电子科技有限公司 Wireless communication method and system
CN106330756A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Data transmission method and device
CN106488469A (en) * 2016-10-31 2017-03-08 中国联合网络通信集团有限公司 A kind of wifi network accesses method of testing and device
CN106878917A (en) * 2015-12-11 2017-06-20 比亚迪股份有限公司 The transfer control method of information, system, terminal and data acquisition unit
CN107105397A (en) * 2017-05-24 2017-08-29 深圳市乃斯网络科技有限公司 The network link method for building up and system of face-to-face terminal
CN107318129A (en) * 2017-06-30 2017-11-03 广东欧珀移动通信有限公司 Data processing method, device and terminal
WO2018214058A1 (en) * 2017-05-24 2018-11-29 深圳市乃斯网络科技有限公司 Method and system for establishing network link for face-to-face terminals
CN109120683A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 data transmission method and related product
CN109168152A (en) * 2018-08-27 2019-01-08 优视科技新加坡有限公司 A kind of method and device thereof, the equipment/terminal/server of file transmission
CN109905147A (en) * 2019-03-19 2019-06-18 深圳市元征科技股份有限公司 A kind of vehicle-mounted unmanned aerial vehicle communication means and system
CN113055849A (en) * 2021-03-01 2021-06-29 Oppo广东移动通信有限公司 Vehicle control method and device, electronic equipment and computer readable storage medium
CN113079482A (en) * 2021-03-23 2021-07-06 深圳市沃特沃德信息有限公司 Data transmission method, electronic price tag and computer equipment
CN113572575A (en) * 2021-07-16 2021-10-29 北京东方国信科技股份有限公司 Self-adaptive data transmission method and system
CN113783660A (en) * 2017-04-10 2021-12-10 华为技术有限公司 Transmission method, sending end and receiving end

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716946A (en) * 2004-06-30 2006-01-04 联想(北京)有限公司 Data transmission method between equipment in network
EP1998525A1 (en) * 2006-03-17 2008-12-03 Huawei Technologies Co., Ltd. A dynamic content continuous transmission method, device and system
CN101631127A (en) * 2009-08-06 2010-01-20 中兴通讯股份有限公司 File transfer method and clients
CN103220822A (en) * 2013-04-08 2013-07-24 北京小米科技有限责任公司 Data transmission method, data transmission device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1716946A (en) * 2004-06-30 2006-01-04 联想(北京)有限公司 Data transmission method between equipment in network
EP1998525A1 (en) * 2006-03-17 2008-12-03 Huawei Technologies Co., Ltd. A dynamic content continuous transmission method, device and system
CN101631127A (en) * 2009-08-06 2010-01-20 中兴通讯股份有限公司 File transfer method and clients
CN103220822A (en) * 2013-04-08 2013-07-24 北京小米科技有限责任公司 Data transmission method, data transmission device and mobile terminal

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015131582A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method, terminal, system for short-distance data transmission, and computer storage medium
CN104837042B (en) * 2015-05-06 2018-01-16 腾讯科技(深圳)有限公司 The coding method of digital multimedia data and device
CN104837042A (en) * 2015-05-06 2015-08-12 腾讯科技(深圳)有限公司 Digital multimedia data encoding method and apparatus
CN105007587A (en) * 2015-06-01 2015-10-28 中国科学院信息工程研究所 Multi-network coverage apparatus and method having network selection function
CN105007587B (en) * 2015-06-01 2019-01-22 中国科学院信息工程研究所 A kind of Multi net voting overlay device and method with network selection functional
CN106330756A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Data transmission method and device
CN106330756B (en) * 2015-07-03 2020-01-03 华为技术有限公司 Data transmission method and equipment
CN106878917A (en) * 2015-12-11 2017-06-20 比亚迪股份有限公司 The transfer control method of information, system, terminal and data acquisition unit
CN105554856B (en) * 2016-01-26 2018-08-21 福州亿纵电子科技有限公司 A kind of wireless communications method and system
CN105554856A (en) * 2016-01-26 2016-05-04 福州亿纵电子科技有限公司 Wireless communication method and system
CN106488469A (en) * 2016-10-31 2017-03-08 中国联合网络通信集团有限公司 A kind of wifi network accesses method of testing and device
CN106488469B (en) * 2016-10-31 2019-10-01 中国联合网络通信集团有限公司 A kind of wifi network access test method and device
CN113783660B (en) * 2017-04-10 2023-07-11 华为技术有限公司 Transmission method, transmitting terminal and receiving terminal
CN113783660A (en) * 2017-04-10 2021-12-10 华为技术有限公司 Transmission method, sending end and receiving end
CN107105397A (en) * 2017-05-24 2017-08-29 深圳市乃斯网络科技有限公司 The network link method for building up and system of face-to-face terminal
WO2018214058A1 (en) * 2017-05-24 2018-11-29 深圳市乃斯网络科技有限公司 Method and system for establishing network link for face-to-face terminals
CN107318129A (en) * 2017-06-30 2017-11-03 广东欧珀移动通信有限公司 Data processing method, device and terminal
CN109120683A (en) * 2018-08-01 2019-01-01 Oppo广东移动通信有限公司 data transmission method and related product
CN109168152A (en) * 2018-08-27 2019-01-08 优视科技新加坡有限公司 A kind of method and device thereof, the equipment/terminal/server of file transmission
CN109905147B (en) * 2019-03-19 2021-06-15 深圳市元征科技股份有限公司 Vehicle-mounted unmanned aerial vehicle communication method and system
CN109905147A (en) * 2019-03-19 2019-06-18 深圳市元征科技股份有限公司 A kind of vehicle-mounted unmanned aerial vehicle communication means and system
CN113055849A (en) * 2021-03-01 2021-06-29 Oppo广东移动通信有限公司 Vehicle control method and device, electronic equipment and computer readable storage medium
CN113079482A (en) * 2021-03-23 2021-07-06 深圳市沃特沃德信息有限公司 Data transmission method, electronic price tag and computer equipment
CN113079482B (en) * 2021-03-23 2023-10-20 深圳市沃特沃德信息有限公司 Data transmission method, electronic price tag and computer equipment
CN113572575A (en) * 2021-07-16 2021-10-29 北京东方国信科技股份有限公司 Self-adaptive data transmission method and system

Similar Documents

Publication Publication Date Title
CN103746975A (en) Method of data transmission, device and mobile terminal
CN103501333A (en) Method, device and terminal equipment for downloading files
CN104853043A (en) Notification message filtering and control method, smart phone and system
CN103677899B (en) The method and apparatus of application program is installed
CN103701988A (en) Message prompt method and device and electronic equipment
CN104717125B (en) Graphic code store method and device
CN103327102A (en) Application program recommending method and device
CN104168175A (en) Message group sensing method and terminal in instant messaging
CN103683437B (en) A kind of charger and terminal equipment
CN104717341A (en) Message prompting method and terminal
CN104519485A (en) Communication method between terminals, devices and system
CN104427074A (en) Method, device and system for displaying incoming information
CN104135728B (en) Method for connecting network and device
CN104301315A (en) Method and device for limiting information access
CN103686963A (en) Method, device, equipment and system for controlling wireless network to be switched on/off
CN103702028A (en) Method and device for controlling shooting and terminal equipment
CN103634717A (en) Method, device and terminal equipment utilizing earphone to control
CN104426963A (en) Terminal associating method and terminal
CN103678605A (en) Information transmission method and device and terminal device
CN103368828B (en) A kind of message temporary storage and system
CN103596145A (en) Information automatic responding method, device and terminal equipment
CN103763112A (en) User identity protection method and apparatus
CN104954159A (en) Network information statistics method and device
CN104518945A (en) Method, device, and system for sending and receiving social network information
CN103747130A (en) Control method of terminal equipment, device and terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423

RJ01 Rejection of invention patent application after publication