CN105703808A - Method and device for transmitting data - Google Patents

Method and device for transmitting data Download PDF

Info

Publication number
CN105703808A
CN105703808A CN201410710310.2A CN201410710310A CN105703808A CN 105703808 A CN105703808 A CN 105703808A CN 201410710310 A CN201410710310 A CN 201410710310A CN 105703808 A CN105703808 A CN 105703808A
Authority
CN
China
Prior art keywords
transmission mode
terminal
supported
transmission
locally
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
CN201410710310.2A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410710310.2A priority Critical patent/CN105703808A/en
Publication of CN105703808A publication Critical patent/CN105703808A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a method and device for transmitting data, belonging to the technical field of computers. The method comprises a step of obtaining the transmission mode supported by a first terminal and the corresponding connection information of each transmission mode supported by the first terminal provided by the first terminal, a step of determining the target transmission mode to be used according to the transmission mode supported by the local, the transmission mode supported by the first terminal and the priority order of each preset transmission mode, and a step of transmitting the data to be transmitted through the target transmission mode and the connection information corresponding to the target transmission mode. By using the method and device for transmitting data, the efficiency of transmission processing can be improved.

Description

A kind of method and apparatus transmitting data
Technical field
The present invention relates to field of computer technology, particularly to a kind of method and apparatus transmitting data。
Background technology
Along with the development of mobile terminal technology, the application of mobile terminal is more and more extensive, and from strength to strength, people can transmit file by mobile terminal to function, such as transmission picture, document or audio frequency etc.。People can install the application program for transmitting file on mobile terminals, carries out file transmission by application program。
Mobile terminal can support multiple transmission mode, such as WiFi (WirelessFidelity, Wireless Fidelity) transmission and Bluetooth transmission etc.。Application program would generally provide the option of supported transmission mode, and user can select the transmission mode wanting to use, and then passes through this transmission mode and carries out file transmission。
In the process realizing the present invention, inventor have found that prior art at least there is problems in that
When two users need to carry out file transmission, it is possible to there will be the situation that the mobile terminal of another user of transmission mode that a user selects is not supported, so, user needs to reselect transmission mode, thus the inefficient of transmission process can be caused。
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of method and apparatus transmitting data。Described technical scheme is as follows:
First aspect, it is provided that a kind of method transmitting data, described method includes:
Obtain the link information that the transmission mode of the described first terminal support that first terminal provides is corresponding with every kind of transmission mode that described first terminal is supported;
According to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
By the link information that described object transmission pattern is corresponding with described object transmission pattern, data to be transmitted is transmitted。
Second aspect, it is provided that a kind of device transmitting data, described device includes:
Acquisition module, the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal provided for obtaining first terminal is supported;
Determine module, for according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
Transport module, for the link information corresponding with described object transmission pattern by described object transmission pattern, is transmitted data to be transmitted。
The technical scheme that the embodiment of the present invention provides has the benefit that
In the embodiment of the present invention, in the embodiment of the present invention, the transmission mode that the first terminal that obtaining first terminal provides is supported, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode pre-set, determine object transmission pattern to be used, by object transmission pattern, data to be transmitted is transmitted, so, terminal can select transmission mode to be used automatically, and this transmission mode is the local transmission mode all supported with first terminal, carrying out without repeating selects, such that it is able to improve the efficiency of transmission process。
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings。
Fig. 1 is a kind of method flow diagram transmitting data that the embodiment of the present invention provides;
Fig. 2 is the interface display schematic diagram that the embodiment of the present invention provides;
Fig. 3 is a kind of application scenarios schematic diagram transmitting data that the embodiment of the present invention provides;
Fig. 4 is a kind of apparatus structure schematic diagram transmitting data that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of terminal that the embodiment of the present invention provides。
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail。
Embodiment one
The handling process of the method embodiments provides a kind of method transmitting data, as it is shown in figure 1, can comprise the following steps that
Step 101, the transmission mode that the first terminal that obtaining first terminal provides is supported。
Step 102, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used。
Step 103, is transmitted data to be transmitted by object transmission pattern。
In the embodiment of the present invention, the transmission mode that the first terminal that obtaining first terminal provides is supported, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, determine object transmission pattern to be used, by object transmission pattern, data to be transmitted is transmitted, so, terminal can select transmission mode to be used automatically, and this transmission mode is the local transmission mode all supported with first terminal, carrying out without repeating selects, such that it is able to improve the efficiency of transmission process。
Embodiment two
Embodiments providing a kind of method transmitting data, the executive agent of the method is terminal。Wherein, terminal can be the terminal with file transmitting function。Below in conjunction with detailed description of the invention, handling process shown in Fig. 1 is described in detail, in practice, first terminal can be the terminal sending file, it can also be the terminal receiving file, the embodiment of the present invention makes an explanation for first terminal for the terminal sending file, and content can be such that。
Step 101, obtains the link information that the transmission mode of the first terminal support that first terminal provides is corresponding with every kind of transmission mode that first terminal is supported。
Wherein, link information is to set up with first terminal to be connected required information, such as, link information corresponding to Bluetooth transmission is terminal iidentification, WiFi (WirelessFidelity, Wireless Fidelity) transmit the corresponding IP that link information is terminal (InternetProtocol, the agreement of interconnection between network) address。
In force, user can install the application program (such as wechat) with file transmitting function in terminal, when user require over certain terminal (i.e. first terminal) transmit file to other-end (can be described as the second terminal) time, this application program can be opened at first terminal and the second terminal, then file waiting for transmission is selected at first terminal, click transmission button, first terminal then can receive transmission instruction, then locally-supported transmission mode can be detected, and then the link information that every kind of locally-supported transmission mode is corresponding can be obtained, second terminal can obtain the transmission mode that first terminal is supported, and link information corresponding to every kind of transmission mode that first terminal is supported, so as follow-up use。Such as, first terminal detects that the transmission mode of support is Bluetooth transmission, then can obtain the terminal iidentification of self。When first terminal is the terminal receiving file, user can select file waiting for transmission and object transmission account (account that namely first terminal logs in) in the terminal sending file, click transmission button, this terminal then can send file transmission request to server, file transmission request can carry the account identification of object transmission account, after server receives file transmission request, file transmission notice can be sent to the terminal (i.e. first terminal) that object transmission account logs in, first terminal then can receive file transmission notice, and carry out above-mentioned detection process。
Optionally, the link information that the transmission mode of the first terminal support that first terminal provides is corresponding with every kind of transmission mode that first terminal is supported can be obtained in several ways, the concrete processing mode of step 101 can be varied, following present several feasible processing mode:
Mode one, the graphic code that scanning first terminal shows, obtain the link information that the transmission mode of the first terminal support of record in graphic code is corresponding with every kind of transmission mode that first terminal is supported。
In force, graphic code can be bar code or Quick Response Code etc., and graphically code is Quick Response Code is example。After first terminal detects locally-supported transmission mode, the mark that can obtain every kind of locally-supported transmission mode transmits, with every kind of support, the link information that instruction is corresponding, then can generate Quick Response Code according to the mark of above-mentioned transmission mode and link information, show this Quick Response Code, as shown in Figure 2。Second terminal can scan this Quick Response Code, obtains the image of Quick Response Code, and then can the image of Quick Response Code be resolved, and obtains the link information that the transmission mode of the first terminal support of record in Quick Response Code is corresponding with every kind of transmission mode that first terminal is supported。Additionally, link information corresponding for every kind of transmission mode of locally-supported transmission mode and support can also be sent to server by first terminal, server then can receive these information, Quick Response Code is generated according to these information, then Quick Response Code is sent to first terminal, after first terminal receives Quick Response Code, it is possible to show this Quick Response Code, this Quick Response Code can be carried out above-mentioned scan process by the second terminal。
Mode two, receives the link information that the transmission mode of the first terminal support that first terminal is sent is corresponding with every kind of transmission mode that first terminal is supported by server。
In force, after application program on first terminal and the second terminal is opened, account can be carried out at first terminal and the second terminal to log in, user can select file waiting for transmission and object transmission account (account namely logged in the second terminal) at first terminal, click transmission button, first terminal then can receive transmission instruction, then locally-supported transmission mode can be detected, and then the link information that every kind of locally-supported transmission instruction is corresponding can be obtained, first terminal can by locally-supported transmission mode, link information and the account identification of object transmission account that every kind of locally-supported transmission instruction is corresponding are sent to server, after server receives above-mentioned information, the link information that the transmission mode of first terminal support transmits instruction corresponding with every kind of first terminal support can be sent to the terminal (i.e. the second terminal) that object transmission account logs in, second terminal then can receive the information that server sends, obtain the link information that the transmission mode of first terminal support is corresponding with every kind of transmission instruction that first terminal is supported。
Optionally, the access-in point information of transmission mode can be obtained, accordingly, the processing procedure of step 101 can be such that the link information that every kind of transmission mode that transmission mode, the access-in point information of one or more of which transmission mode and first terminal that the first terminal obtaining first terminal and providing is supported are supported is corresponding。
In force, after first terminal receives transmission instruction, except can detecting the link information that locally-supported transmission mode is corresponding with locally-supported each transmission mode, it is also possible to obtain in locally-supported transmission mode, the access-in point information of one or more transmission modes。Such as, first terminal detects that locally-supported transmission mode is Bluetooth transmission and WiFi transmission, it is possible to obtain Bluetooth transmission link information, i.e. terminal iidentification, and the link information of WiFi transmission, i.e. the IP address of first terminal, the access-in point information of first terminal can also be obtained, i.e. gateway IP。Second terminal can obtain above-mentioned information, in order to follow-up use。
Step 102, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used。
In force, being both provided with most high transmission speed in every kind of transmission mode, it is possible to the size according to the most high transmission speed of each transmission mode, arrange the priority orders of each transmission mode, most high transmission speed is more big, and the priority of the transmission mode of its correspondence is more high。First terminal and the second terminal can store the priority orders of each transmission mode pre-set, after second terminal obtains the transmission mode that first terminal is supported, locally-supported transmission mode can be obtained, then determine that first terminal and the transmission mode that the second terminal is supported jointly and priority is the highest, using this transmission mode as object transmission pattern to be used。
Optionally, can first determine the transmission mode jointly supported with first terminal, accordingly, the processing procedure of step 102 can be such that according to the transmission mode that locally-supported transmission mode and first terminal are supported, it is determined that the local transmission mode jointly supported with first terminal;Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by transmission mode the highest for local and that first terminal is supported jointly transmission mode medium priority。
In force, after second terminal obtains the transmission mode that first terminal is supported, locally-supported transmission mode can be obtained, the transmission mode of locally-supported transmission mode Yu first terminal support can be contrasted by the second terminal, determine the local transmission mode jointly supported with first terminal, then can according to the priority orders of each transmission mode pre-set, in the transmission mode that local and first terminal are supported jointly, determine the transmission mode that priority is the highest, using this transmission mode as object transmission pattern to be used。Such as, the priority orders of each transmission mode pre-set is WiFi transmission, Bluetooth transmission and 3G (3rd-generation, G mobile communication) network transmission, it is Bluetooth transmission that second terminal gets the transmission mode of first terminal support, WiFi transmission and 3G network transmission, locally-supported transmission mode is Bluetooth transmission and WiFi transmission, then the second terminal may determine that the local transmission mode jointly supported with first terminal is Bluetooth transmission and WiFi transmission, then may determine that the WiFi priority transmitted is the highest, and then WiFi transmission can be defined as object transmission pattern to be used。
Optionally, when the access-in point information of above-mentioned acquisition transmission mode, corresponding processing procedure can be such that according to the transmission mode that first terminal is supported, the access-in point information of one or more transmission modes obtained, locally-supported transmission mode and this one or more transmission modes are at local access-in point information, in the transmission mode that local and first terminal are supported jointly, it is determined that the transmission mode being connected can be set up, with first terminal, in this locality;Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by the transmission mode that the transmission mode medium priority being connected can be set up the highest with first terminal in this locality。
In force, second terminal can obtain the transmission mode that first terminal is supported, the access-in point information of one or more of which transmission mode, locally-supported transmission mode and one or more transmission modes above-mentioned are at local access-in point information, such as, it is Bluetooth transmission and WiFi transmission that second terminal can obtain the transmission mode of first terminal support, and the gateway IP of WiFi transmission, it is Bluetooth transmission and WiFi transmission that second terminal can also obtain locally-supported transmission mode, and WiFi transmission is at the gateway IP of local access, then may determine that the local host-host protocol jointly supported with first terminal is Bluetooth transmission and WiFi transmission, and then may determine that whether WiFi transmission is identical with the local gateway IP accessed at first terminal, if WiFi transmission is identical with the local gateway IP accessed at first terminal, then judge that this locality can be connected by WiFi transmission foundation with first terminal, then the second terminal can according to the priority orders of the locally stored each transmission mode pre-set, determine in Bluetooth transmission and WiFi transmission, the transmission mode that priority is the highest is WiFi transmission, WiFi transmission is defined as object transmission pattern to be used。
Optionally, the transmission mode of first terminal support can arrange according to the priority orders of each transmission mode pre-set, accordingly, the processing procedure of step 102 can be such that in the transmission mode that the first terminal arranged according to the priority orders of each transmission mode pre-set is supported, the transmission mode that according to priority sequential search is locally-supported, when finding the first locally-supported transmission mode, the first transmission mode is defined as object transmission pattern to be used。
In force, after first terminal detects locally-supported transmission mode, according to the priority orders of each transmission mode pre-set, the transmission mode detected can be arranged, generate the sequence of transmission mode, such as, the transmission mode of support is arranged as WiFi transmission by first terminal, Bluetooth transmission and 3G network transmission, second terminal then can obtain the sequence of this transmission mode, then can according to the sequence of this transmission mode, determine that whether each transmission mode is locally-supported transmission mode successively, namely the second terminal can first search whether this locality supports that WiFi transmits, if locally-supported WiFi transmits, then WiFi transmission is defined as object transmission pattern to be used, no longer make a look up, if this locality does not support that WiFi transmits, then search whether this locality supports Bluetooth transmission, by that analogy。
Step 103, by the link information that object transmission pattern is corresponding with object transmission pattern, is transmitted data to be transmitted。
In force, after second terminal determines object transmission pattern to be used, can in the link information that every kind of transmission mode of the above-mentioned first terminal got support is corresponding, obtain the link information that object transmission pattern is corresponding, then object transmission pattern can be obtained in local corresponding link information, according to object transmission pattern in link information corresponding to first terminal, object transmission pattern is sent in local corresponding link information to first terminal, after first terminal receives this link information, can set up with the second terminal and be connected, then first terminal can pass through object transmission pattern, data to be transmitted is transferred to the second terminal, as shown in Figure 3。Such as, second terminal determines that object transmission pattern is WiFi transmission, then can obtain the IP address of first terminal, the IP address then passing through first terminal sends connection request to first terminal, connection request carries the IP address of the second terminal, after first terminal receives connection request, it is possible to sets up WiFi with the second terminal and is connected, may then pass through WiFi transmission, data to be transmitted is transferred to the second terminal。Additionally, second terminal is set up with first terminal after being connected, the character string that this locality prestores can be sent to first terminal, after first terminal receives character string, this character string can be contrasted with the local character string prestored, if the character string that this character string prestores with this locality is identical, then data to be transmitted is transferred to the second terminal。
In the embodiment of the present invention, the transmission mode that the first terminal that obtaining first terminal provides is supported, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, determine object transmission pattern to be used, by object transmission pattern, data to be transmitted is transmitted, so, terminal can select transmission mode to be used automatically, and this transmission mode is the local transmission mode all supported with first terminal, carrying out without repeating selects, such that it is able to improve the efficiency of transmission process。
Embodiment three
Based on identical technology design, the embodiment of the present invention additionally provides a kind of device transmitting data, and as shown in Figure 4, this device includes:
Acquisition module 410, the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal provided for obtaining first terminal is supported;
Determine module 420, for according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
Transport module 430, for the link information corresponding with described object transmission pattern by described object transmission pattern, is transmitted data to be transmitted。
Optionally, described determine module 420, be used for:
According to the transmission mode that locally-supported transmission mode and described first terminal are supported, it is determined that the transmission mode that local and described first terminal is supported jointly;
Priority orders according to each transmission mode pre-set, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern to be used。
Optionally, described acquisition module 410, it is used for:
The link information that every kind of transmission mode that transmission mode, the access-in point information of one or more of which transmission mode and the described first terminal that the described first terminal that obtaining first terminal provides is supported is supported is corresponding;
Described determine module 420, be used for:
According to the transmission mode that described first terminal is supported, the access-in point information of one or more transmission modes described obtained, locally-supported transmission mode and one or more transmission modes described are at local access-in point information, in the transmission mode that described local and described first terminal is supported jointly, it is determined that the transmission mode being connected can be set up, with described first terminal, in this locality;
Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by the transmission mode that the transmission mode medium priority being connected can be set up the highest with described first terminal in described this locality。
Optionally, the transmission mode of described first terminal support arranges according to the priority orders of each transmission mode pre-set;
Described determine module 420, be used for:
In the transmission mode that the first terminal arranged in the described priority orders according to each transmission mode pre-set is supported, locally-supported transmission mode is searched by described priority orders, when finding the first locally-supported transmission mode, described first transmission mode is defined as object transmission pattern to be used。
Optionally, described acquisition module 410, it is used for:
The graphic code that scanning first terminal shows, obtains the link information that the transmission mode of the described first terminal support of record in described graphic code is corresponding with every kind of transmission mode that described first terminal is supported;Or,
Receive the link information that the transmission mode of the described first terminal support that first terminal is sent is corresponding with every kind of transmission mode that described first terminal is supported by server。
In the embodiment of the present invention, the transmission mode that the first terminal that obtaining first terminal provides is supported, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, determine object transmission pattern to be used, by object transmission pattern, data to be transmitted is transmitted, so, terminal can select transmission mode to be used automatically, and this transmission mode is the local transmission mode all supported with first terminal, carrying out without repeating selects, such that it is able to improve the efficiency of transmission process。
It should be understood that the device of the transmission data of above-described embodiment offer is when transmitting data, only it is illustrated with the division of above-mentioned each functional module, in practical application, as desired above-mentioned functions distribution can be completed by different functional modules, it is divided into different functional modules, to complete all or part of function described above by the internal structure of equipment。It addition, the device of transmission data that above-described embodiment provides belongs to same design with the embodiment of the method for transmission data, it implements process and refers to embodiment of the method, repeats no more here。
Embodiment four
Refer to Fig. 5, it illustrates the structural representation of terminal involved by the embodiment of the present invention, this terminal may be used for implementing the method for the transmission data provided in above-described embodiment。Specifically:
Terminal 400 can include RF (RadioFrequency, radio frequency) circuit 110, include the memorizer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wirelessfidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 of or more than one process core。It will be understood by those skilled in the art that the terminal structure shown in Fig. 5 is not intended that the restriction to terminal, it is possible to include ratio and illustrate more or less of parts, or combine some parts, or different parts are arranged。Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfers to one or more than one processor 180 processes;It addition, be sent to base station by relating to up data。Generally, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more agitator, subscriber identity module (SIM) card, transceiver, bonder, LNA (LowNoiseAmplifier, low-noise amplifier), duplexer etc.。Communicate additionally, RF circuit 110 can also pass through radio communication with network and other equipment。Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, WCDMA), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.。
Memorizer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of memorizer 120 by running, thus performing the application of various function and data process。Memorizer 120 can mainly include storage program area and storage data field, and wherein, storage program area can store the application program (such as sound-playing function, image player function etc.) etc. needed for operating system, at least one function;Storage data field can store the data (such as voice data, phone directory etc.) etc. that the use according to terminal 400 creates。Additionally, memorizer 120 can include high-speed random access memory, it is also possible to include nonvolatile memory, for instance at least one disk memory, flush memory device or other volatile solid-state parts。Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and the input block 130 access to memorizer 120。
Input block 130 can be used for receiving numeral or the character information of input, and produce the keyboard relevant with user setup and function control, mouse, action bars, optics or trace ball signal and input。Specifically, input block 130 can include Touch sensitive surface 131 and other input equipments 132。Touch sensitive surface 131, also referred to as touching display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user uses any applicable object such as finger, stylus or adnexa operation on Touch sensitive surface 131 or near Touch sensitive surface 131), and drive corresponding connecting device according to formula set in advance。Optionally, Touch sensitive surface 131 can include touch detecting apparatus and two parts of touch controller。Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 180, and can receive order that processor 180 sends and be performed。Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize Touch sensitive surface 131。Except Touch sensitive surface 131, input block 130 can also include other input equipments 132。Specifically, 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 various graphical user interface of information or the information being supplied to user and the terminal 400 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any。Display unit 140 can include display floater 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display floater 141。Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display floater 141, provide corresponding visual output with preprocessor 180 according to the type of touch event。Although in Figure 5, Touch sensitive surface 131 and display floater 141 are to realize input and input function as two independent parts, but in some embodiments it is possible to by integrated to Touch sensitive surface 131 and display floater 141 and realize input and output function。
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensors。Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can regulate the brightness of display floater 141 according to the light and shade of ambient light, proximity transducer when terminal 400 moves in one's ear, can cut out display floater 141 and/or backlight。One as motion sensor, Gravity accelerometer can detect the size of the acceleration that (is generally three axles) in all directions, can detect that the size of gravity and direction time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.;Other sensors such as the gyroscope that can also configure as terminal 400, barometer, drimeter, thermometer, infrared ray sensor, do not repeat them here。
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio interface between user and terminal 400。Voicefrequency circuit 160 can by receive voice data conversion after the signal of telecommunication, be transferred to speaker 161, by speaker 161 be converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to be sent to such as another terminal, or voice data is exported to memorizer 120 to process further。Voicefrequency circuit 160 is also possible that earphone jack, to provide the communication of peripheral hardware earphone and terminal 400。
WiFi belongs to short range wireless transmission technology, and terminal 400 can help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed。Although Fig. 5 illustrates WiFi module 170, but it is understood that, it is also not belonging to must be configured into of terminal 400, completely can as needed in do not change invention essence scope in and omit。
Processor 180 is the control centre of terminal 400, utilize various interface and the various piece of the whole mobile phone of connection, it is stored in the software program in memorizer 120 and/or module by running or performing, and call the data being stored in memorizer 120, perform the various functions of terminal 400 and process data, thus mobile phone is carried out integral monitoring。Optionally, processor 180 can include one or more process core;Preferably, processor 180 can integrated application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication。It is understood that above-mentioned modem processor can not also be integrated in processor 180。
Terminal 400 also includes the power supply 190 (such as battery) powered to all parts, preferably, it is logically contiguous with processor 180 that power supply can pass through power-supply management system, realizes the functions such as management charging, electric discharge and power managed thereby through power-supply management system。Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator。
Although not shown, terminal 400 can also include photographic head, bluetooth module etc., does not repeat them here。Specifically in the present embodiment, the display unit of terminal 400 is touch-screen display, terminal 400 also includes memorizer, and one or more than one program, one of them or more than one program are stored in memorizer, and are configured to be performed to state one or more than one program package containing the instruction for carrying out following operation by one or more than one processor:
Obtain the link information that the transmission mode of the described first terminal support that first terminal provides is corresponding with every kind of transmission mode that described first terminal is supported;
According to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
By the link information that described object transmission pattern is corresponding with described object transmission pattern, data to be transmitted is transmitted。
Optionally, described according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used, including:
According to the transmission mode that locally-supported transmission mode and described first terminal are supported, it is determined that the transmission mode that local and described first terminal is supported jointly;
Priority orders according to each transmission mode pre-set, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern to be used。
Optionally, the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal that described acquisition first terminal provides is supported, including:
The link information that every kind of transmission mode that transmission mode, the access-in point information of one or more of which transmission mode and the described first terminal that the described first terminal that obtaining first terminal provides is supported is supported is corresponding;
The priority orders of each transmission mode that described basis pre-sets, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern, including:
According to the transmission mode that described first terminal is supported, the access-in point information of one or more transmission modes described obtained, locally-supported transmission mode and one or more transmission modes described are at local access-in point information, in the transmission mode that described local and described first terminal is supported jointly, it is determined that the transmission mode being connected can be set up, with described first terminal, in this locality;
Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by the transmission mode that the transmission mode medium priority being connected can be set up the highest with described first terminal in described this locality。
Optionally, the transmission mode of described first terminal support arranges according to the priority orders of each transmission mode pre-set;
Described according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used, including:
In the transmission mode that the first terminal arranged in the described priority orders according to each transmission mode pre-set is supported, locally-supported transmission mode is searched by described priority orders, when finding the first locally-supported transmission mode, described first transmission mode is defined as object transmission pattern to be used。
Optionally, the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal that described acquisition first terminal provides is supported, including:
The graphic code that scanning first terminal shows, obtains the link information that the transmission mode of the described first terminal support of record in described graphic code is corresponding with every kind of transmission mode that described first terminal is supported;Or,
Receive the link information that the transmission mode of the described first terminal support that first terminal is sent is corresponding with every kind of transmission mode that described first terminal is supported by server。
In the embodiment of the present invention, the transmission mode that the first terminal that obtaining first terminal provides is supported, according to locally-supported transmission mode, the transmission mode of first terminal support and the priority orders of each transmission mode that pre-sets, determine object transmission pattern to be used, by object transmission pattern, data to be transmitted is transmitted, so, terminal can select transmission mode to be used automatically, and this transmission mode is the local transmission mode all supported with first terminal, carrying out without repeating selects, such that it is able to improve the efficiency of transmission process。
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, can also be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc.。
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention。

Claims (10)

1. the method transmitting data, it is characterised in that described method includes:
Obtain the link information that the transmission mode of the described first terminal support that first terminal provides is corresponding with every kind of transmission mode that described first terminal is supported;
According to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
By the link information that described object transmission pattern is corresponding with described object transmission pattern, data to be transmitted is transmitted。
2. method according to claim 1, it is characterised in that described according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used, including:
According to the transmission mode that locally-supported transmission mode and described first terminal are supported, it is determined that the transmission mode that local and described first terminal is supported jointly;
Priority orders according to each transmission mode pre-set, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern to be used。
3. method according to claim 2, it is characterised in that the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal that described acquisition first terminal provides is supported, including:
The link information that every kind of transmission mode that transmission mode, the access-in point information of one or more of which transmission mode and the described first terminal that the described first terminal that obtaining first terminal provides is supported is supported is corresponding;
The priority orders of each transmission mode that described basis pre-sets, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern, including:
According to the transmission mode that described first terminal is supported, the access-in point information of one or more transmission modes described obtained, locally-supported transmission mode and one or more transmission modes described are at local access-in point information, in the transmission mode that described local and described first terminal is supported jointly, it is determined that the transmission mode being connected can be set up, with described first terminal, in this locality;
Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by the transmission mode that the transmission mode medium priority being connected can be set up the highest with described first terminal in described this locality。
4. method according to claim 1, it is characterised in that the transmission mode of described first terminal support arranges according to the priority orders of each transmission mode pre-set;
Described according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used, including:
In the transmission mode that the first terminal arranged in the described priority orders according to each transmission mode pre-set is supported, locally-supported transmission mode is searched by described priority orders, when finding the first locally-supported transmission mode, described first transmission mode is defined as object transmission pattern to be used。
5. method according to claim 1, it is characterised in that the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal that described acquisition first terminal provides is supported, including:
The graphic code that scanning first terminal shows, obtains the link information that the transmission mode of the described first terminal support of record in described graphic code is corresponding with every kind of transmission mode that described first terminal is supported;Or,
Receive the link information that the transmission mode of the described first terminal support that first terminal is sent is corresponding with every kind of transmission mode that described first terminal is supported by server。
6. the device transmitting data, it is characterised in that described device includes:
Acquisition module, the transmission mode link information corresponding with every kind of transmission mode that described first terminal is supported that the described first terminal provided for obtaining first terminal is supported;
Determine module, for according to locally-supported transmission mode, the transmission mode of described first terminal support and the priority orders of each transmission mode that pre-sets, it is determined that object transmission pattern to be used;
Transport module, for the link information corresponding with described object transmission pattern by described object transmission pattern, is transmitted data to be transmitted。
7. device according to claim 6, it is characterised in that described determine module, is used for:
According to the transmission mode that locally-supported transmission mode and described first terminal are supported, it is determined that the transmission mode that local and described first terminal is supported jointly;
Priority orders according to each transmission mode pre-set, the transmission mode that the transmission mode medium priority jointly supported by described local and described first terminal is the highest is defined as object transmission pattern to be used。
8. device according to claim 7, it is characterised in that described acquisition module, is used for:
The link information that every kind of transmission mode that transmission mode, the access-in point information of one or more of which transmission mode and the described first terminal that the described first terminal that obtaining first terminal provides is supported is supported is corresponding;
Described determine module, be used for:
According to the transmission mode that described first terminal is supported, the access-in point information of one or more transmission modes described obtained, locally-supported transmission mode and one or more transmission modes described are at local access-in point information, in the transmission mode that described local and described first terminal is supported jointly, it is determined that the transmission mode being connected can be set up, with described first terminal, in this locality;
Priority orders according to each transmission mode pre-set, is defined as object transmission pattern to be used by the transmission mode that the transmission mode medium priority being connected can be set up the highest with described first terminal in described this locality。
9. device according to claim 6, it is characterised in that the transmission mode of described first terminal support arranges according to the priority orders of each transmission mode pre-set;
Described determine module, be used for:
In the transmission mode that the first terminal arranged in the described priority orders according to each transmission mode pre-set is supported, locally-supported transmission mode is searched by described priority orders, when finding the first locally-supported transmission mode, described first transmission mode is defined as object transmission pattern to be used。
10. device according to claim 6, it is characterised in that described acquisition module, is used for:
The graphic code that scanning first terminal shows, obtains the link information that the transmission mode of the described first terminal support of record in described graphic code is corresponding with every kind of transmission mode that described first terminal is supported;Or,
Receive the link information that the transmission mode of the described first terminal support that first terminal is sent is corresponding with every kind of transmission mode that described first terminal is supported by server。
CN201410710310.2A 2014-11-28 2014-11-28 Method and device for transmitting data Pending CN105703808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410710310.2A CN105703808A (en) 2014-11-28 2014-11-28 Method and device for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410710310.2A CN105703808A (en) 2014-11-28 2014-11-28 Method and device for transmitting data

Publications (1)

Publication Number Publication Date
CN105703808A true CN105703808A (en) 2016-06-22

Family

ID=56230933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410710310.2A Pending CN105703808A (en) 2014-11-28 2014-11-28 Method and device for transmitting data

Country Status (1)

Country Link
CN (1) CN105703808A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714279A (en) * 2016-11-14 2017-05-24 广东欧珀移动通信有限公司 Hot spot network switching method and terminal equipment
CN106792434A (en) * 2016-11-14 2017-05-31 广东欧珀移动通信有限公司 A kind of focus method for building up and terminal device
WO2019218951A1 (en) * 2018-05-17 2019-11-21 华为技术有限公司 Method and terminal for transmitting file
CN114500511A (en) * 2022-01-29 2022-05-13 联想(北京)有限公司 Data transmission method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384089A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 System for eliminating interference between wireless access and Bluetooth radio frequency and implementing method
CN101695189A (en) * 2009-10-23 2010-04-14 深圳华为通信技术有限公司 Method for conducting data synchronization by earphone, and corresponding earphone and mobile terminal
CN104038261A (en) * 2014-06-03 2014-09-10 深圳天珑无线科技有限公司 Multi device position information managing and sharing method and relevant device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384089A (en) * 2008-09-24 2009-03-11 中兴通讯股份有限公司 System for eliminating interference between wireless access and Bluetooth radio frequency and implementing method
CN101695189A (en) * 2009-10-23 2010-04-14 深圳华为通信技术有限公司 Method for conducting data synchronization by earphone, and corresponding earphone and mobile terminal
CN104038261A (en) * 2014-06-03 2014-09-10 深圳天珑无线科技有限公司 Multi device position information managing and sharing method and relevant device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106714279A (en) * 2016-11-14 2017-05-24 广东欧珀移动通信有限公司 Hot spot network switching method and terminal equipment
CN106792434A (en) * 2016-11-14 2017-05-31 广东欧珀移动通信有限公司 A kind of focus method for building up and terminal device
WO2019218951A1 (en) * 2018-05-17 2019-11-21 华为技术有限公司 Method and terminal for transmitting file
CN114500511A (en) * 2022-01-29 2022-05-13 联想(北京)有限公司 Data transmission method and device and electronic equipment
CN114500511B (en) * 2022-01-29 2023-12-26 联想(北京)有限公司 Data transmission method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN105824958A (en) Method, device and system for inquiring log
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN104978115A (en) Content display method and device
CN104135728B (en) Method for connecting network and device
CN104519197A (en) User login method, user login device and terminal devices
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN104519485A (en) Communication method between terminals, devices and system
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN104717341A (en) Message prompting method and terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104142868A (en) Connection establishment method and device
CN105162591A (en) Equipment registration method and device
CN104239332A (en) Webpage content processing method, webpage content processing device and browser client side
CN104965722A (en) Method and apparatus for displaying information
CN104363590A (en) Access point connection method and device
CN105630517A (en) Configuration information setting method, configuration information setting device and communication system
CN106454975A (en) Hotspot network switching method and terminal equipment
CN104660769A (en) Method, device and system for adding contact person information
CN103227832B (en) Share method for processing resource and device
CN103561155B (en) Send the method for note, device and terminal
CN105703808A (en) Method and device for transmitting data
CN105808043A (en) Setting method of terminal application and mobile terminal
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN105530222A (en) Method for establishing connection among terminals, and device and system

Legal Events

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

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication