Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is the part of the embodiment rather than whole embodiments of the present invention.Based on this hair
Embodiment in bright, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, should all belong to the scope of protection of the invention.
Fig. 1 is that terminal of the embodiment of the present invention 100 and the file of recipient 300 transmit schematic diagram.
The present embodiments relate to a kind of terminals 100 and the method for control file transmission, the terminal 100 to pass through wireless transmission
Mode transmits file to recipient 300, which can be mobile phone, tablet computer, PDA (Personal Digital
Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal) or vehicle-mounted computer etc..The terminal 100 can
Using the sender as file or the recipient of file.In the embodiment of the present invention, sender of the terminal 100 as file.
Fig. 2 is the structure diagram of terminal of the embodiment of the present invention 100.
With reference to figure 2, a kind of terminal 100 of the embodiment of the present invention, including Wireless Transmitter 110, processor 120 and input
Unit 130;The input unit 130 receives the operational order of user's selection target transmission file, and the processor 120 is according to the operation
Instruction, determines the object transmission file, and the size of the object transmission file, selection and the mesh are judged according to the target file attributes
The mark transmission matched transmission mode of file size, wherein, which supports at least two wireless transmission methods;It should
Processor 120 by with the matched transmission mode of the size of the object transmission file, control the Wireless Transmitter 110 transmit the mesh
Mark transmission file.
In the embodiment of the present invention, which selects and the object transmission file according to the size of the object transmission file
The matched transmission mode of size allows the terminal 100 to save energy consumption when transmitting the object transmission file and improves transmission effect
Rate.
The Wireless Transmitter 110 can include NFC (Near Field Communication, short-distance transmission) and transmit mould
Block 111, Bluetooth communication modules 112, and/or direct-connected (the wireless fidelity direct) transmission modules 113 of WIFI.
The Wireless Transmitter 110 can also include antenna 115 (such as 3G antennas or LTE antenna), and wherein the antenna 115 can
For receive and send messages or communication process in, information sends and receivees, and particularly, the downlink information of the base station of reception is given
The processor 120 is handled;In addition, uplink information is sent to base station.In addition, the Wireless Transmitter 110 can also be by wireless
Communication communicates with network and other equipment.The wireless communication can use any communication standard or agreement, including 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 Multiple Access, code
Point multiple access), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long
Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
The input unit 130 can be used for receiving the number inputted or character information and the user of generation and terminal 100 sets
It puts and the input of signal that function control is related.Specifically, in the embodiment of the present invention, which can include touch-control
Panel 131.Touch panel 131, also referred to as touch screen, collect user on it or neighbouring touch operation (for example user makes
With the operation of any suitable object such as finger, stylus or attachment on touch panel 131 or in touch panel 131), and according to
Preset formula drives corresponding attachment device.Optionally, touch panel 131 may include touch detecting apparatus and touch to control
Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, it will
Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact
Coordinate, then the processor 120 is given, and the order that processor 120 is sent can be received and performed.Furthermore, it is possible to using electricity
The multiple types such as resistive, condenser type, infrared ray and surface acoustic wave realize touch panel 131.In addition to touch panel 131, input
Unit 130 can also include other input equipments 132, other input equipments 132 can include but is not limited to physical keyboard, function
It is one or more in key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc..
The terminal 100 can also include display unit 140 and memory 150, the display unit 140 can be used for display by with
The information of family input is supplied to the information of user and the various menu interfaces of terminal 100.The display unit 140 may include showing
Show panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal display) or OLED (Organic may be used
Light-Emitting Diode, Organic Light Emitting Diode) etc. forms be configured display panel 141.
The memory 150 can be used for storage software program and module, and processor 120 is stored in the memory by operation
150 software program and module, so as to perform the various function application of the terminal 100 and data processing.The memory 140
Storing program area and storage data field can mainly be included, wherein, storing program area can storage program area, at least one function institute
Application program (such as sound-playing function, image playing function etc.) needed etc.;Storage data field can be stored according to the terminal 100
Use created data (such as text data, audio data, phone directory etc.) etc..In addition, the memory 140 can include
High-speed random access memory can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other volatile solid-state parts.
The terminal 100 can also include the components such as voicefrequency circuit 170 and power supply 190.Those skilled in the art can manage
Solution, terminal structure shown in Figure 2 do not form the restriction to the terminal 100, can include more more or fewer than shown in Fig. 2
Component, such as certain components or different component cloth can either be combined without voicefrequency circuit 170 for a part of terminal
It puts.
The transformed electric signal of the audio data received can be transferred to loud speaker, by loud speaker by the voicefrequency circuit 170
Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone, by voicefrequency circuit 170
Audio-frequency information is converted to after reception, then audio-frequency information exported to RF circuits to be sent to such as another mobile phone.
The power supply 190 can be logically contiguous by power-supply management system and the processor 120, so as to pass through power management system
System realizes the functions such as management charging, electric discharge and power consumption.
The processor 120 is the control centre of terminal 100, utilizes various interfaces and each portion of connection whole mobile phone
Point, it is stored in the storage by running or performing the software program being stored in the memory 150 and/or module and call
The data of device 150 perform the various functions of terminal 100 and processing data, so as to carry out integral monitoring to terminal 100.Optionally,
The processor 120 may include one or more processing units.
Specifically, which controls the Wireless Transmitter 110 to establish and is wirelessly passed at least two of recipient 300
Defeated mode, including,
The processor 120 control the Wireless Transmitter 110 establish with the NFC short range wireless transmissions of the recipient 300 and
Bluetooth wireless transmission;Alternatively, establish the wireless transmission direct-connected with the NFC short range wireless transmissions of the recipient 300 and WIFI;Or
Person establishes the wireless transmission direct-connected with the NFC short range wireless transmissions, bluetooth and WIFI of the recipient 300.Optionally, at this
Reason device 120 according to the wireless transmission method of selection, can be then turned on the corresponding transmission module of wireless transmission method of the selection.
Further, which receives the operational order of user's selection target transmission file, according to the operational order
Determine the object transmission file, including,
The processor 120 generates command signal, the processor 120 according to the selection operation of user's operation input unit 130
Object transmission file is determined according to the command signal, wherein, which can be picture file, text file, regard
Frequency file or audio file.
Further, the processor 120 is according to the size of the determined property of the object transmission file object transmission file,
Including,
The processor 120 judges that the size of the object transmission file is not up to preset range;Or judge the object transmission
The size of file is in the preset range;Or judge the size of the object transmission file more than the preset range.
For example, pre-define the object transmission file size preset range for (1M, 2M], following embodiment is related to pre-
Determine range, refer both to the preset range (1M, 2M].The processor 120 judges the mesh according to the attribute information of the object transmission file
The size of mark transmission file is 0.5M, then judges that the size of the object transmission file is not up to the preset range;Judge the target
The size of file is 1.5M or 5M, then judges that the size of the object transmission file reaches the preset range.
Further, which selects transmission mode corresponding with the object transmission file size, including,
The processor 120 is not up to preset range according to the size of the object transmission file, selects NFC transmission modes;Or
Person's processor 120 reaches preset range according to the size of the object transmission file, selects bluetooth and/or the direct-connected transmission of WIFI
Mode.
Optionally, which selects transmission mode corresponding with the object transmission file size, can also include,
The processor 120 reaches preset range according to the size of the object transmission file, can be by the object transmission file
At least two data groups are divided into, and select the matched transmission mode of size with each data group.
Further, which selects NFC transmission modes by the data group of not up to preset range;It is up to pre-
Determine the data group selection bluetooth of range and/or the transmission mode that WIFI is direct-connected.
It, can be by the target for example, if the processor 120 judges that the size of the object transmission file reaches preset range
Transmission file is divided into two data groups or three data groups, and selects transmission side corresponding with the size of each data group
Formula, wherein, the size of those data groups can be different.In the present embodiment, the object transmission file is divided with the processor 120
To be illustrated for three data groups.
This is not up to one of data group of the preset range for the processor 120 selection, selects NFC transmission modes;
The processor 120 is by remaining data group selection Bluetooth transmission mode and/or the direct-connected transmission modes of WIFI.
Three data groups in the present embodiment, NFC transmission modes, Bluetooth transmission are corresponded to according to the size of the data group respectively
Mode and the direct-connected transmission modes of WIFI.
As shown in table 1, which judges the size of the object transmission file for 6M, the preset range for (1M,
2M], then the data of the object transmission file can be divided into three data groups to differ in size by the processor 120, wherein, number
Size according to group 1 is 1M, and the size of data group 2 is 2M, and the size of data group 3 is 3M, this is selected to be not up to the preset range
Data group 1 corresponds to the NFC transmission modes, and the data group 2 in the preset range is selected to correspond to Bluetooth transmission mode, selects data
Group 3 corresponds to the direct-connected transmission modes of WIFI.
Further or optional, the processor 120 selection is with after the matched transmission mode of size of each data group, going back
Each data group can be divided multiple data slices, wherein, the corresponding transmission mode of each data slice and data slice ownership
The corresponding transmission mode of data group is consistent, and referring to table 1, the data slice which divides each data group is in varying numbers.
Data group |
The size of data group |
Data slice number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, which can also be divided into the object transmission file data group of the sizes such as multiple, by this
Multiple data groups correspond to above-mentioned three kinds of transmission modes, wherein, the size of each data group for the not up to preset range (1M,
2M]。
For example, as shown in table 2, the size of the object transmission file is 3M, can the object transmission file be divided into 3
Size is the data group of 1M, and each data group corresponds to NFC transmission modes, Bluetooth transmission mode and the direct-connected transmission sides of WIFI respectively
Formula.
Data group |
The size of data group |
Number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
It is understood that the processor 120 can select NFC transmission modes and Bluetooth transmission according to the size of the data
Mode can also select NFC transmission modes and the direct-connected transmission modes of WIFI, it is also an option that Bluetooth transmission mode and WIFI are straight
Transmission mode even.
Further, the processor 120 by with the matched wireless transmission method of the size of the object transmission file, transmission
The object transmission file, including:When the processor 120 selection NFC transmission, then NFC transmission modules are opened, transmit target biography
Defeated file;When the processor 120 selects Bluetooth transmission and/or the direct-connected transmission modes of WIFI, then open Bluetooth communication modules and/
Or the direct-connected transmission modules of WIFI, transmit the object transmission file.
Optionally, it when the processor 120 selection NFC transmission, then can be transmitted by the NFC transmission modules opened in advance
The object transmission file;It, then can be by pre- when the processor 120 selects Bluetooth transmission and/or the direct-connected transmission modes of WIFI
The direct-connected transmission module of Bluetooth communication modules and/or WIFI first opened, transmits the object transmission file.It is further or optional
, after the processor 120 transmits the object transmission file by NFC transmission modes, including the processor 120 judges should
The distance of terminal 100 and the recipient 300 whether transmission range connect beyond the NFC, if exceeding the transmission range, interrupt
The NFC transmission modes, and pass through bluetooth or the direct-connected transmission modes of WIFI continue to transmit the object transmission file to the recipient
300, otherwise, which is transmitted to the recipient 300 by the NFC.
It should be understood that the processor 120 judges that the distance of the terminal 100 and the recipient 300 exceed the transmission of the NFC
Distance, the then transmission that the distance of user's terminal 100 and the recipient 300 with display the prompt box, can be prompted to be connect beyond the NFC
Distance, which close to the recipient 300 is continued to transmit the object transmission file or prompting user select bluetooth or
WIFI is direct-connected to be continued to transmit the object transmission file, which continues to transmit the mesh according to the transmission mode that user selects
Mark transmission file.
Optionally, the processor 120 can not also display the prompt box, automatically select bluetooth or WIFI it is direct-connected continue transmission should
Object transmission file.
It is further or optional, when the processor 120 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge the battery capacity of the terminal 100 less than threshold values, when the terminal 100 and the distance of the recipient 300 are at this
In the transmission range of NFC, then the bluetooth and/or the direct-connected transmission modes of WIFI can be interrupted, pass through the NFC transmission modes and continue
The object transmission file is transmitted to the recipient 300.
It is further or optional, when the processor 120 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge that the battery capacity of the terminal 100 is less than threshold values, when the terminal 100 and the distance of the recipient 300 exceed
The transmission range of the NFC can prompt user by the terminal 100 close to the recipient 300, thus be transmitted by NFC, and
Selection interrupt WIFI it is direct-connected/transmission mode of bluetooth.
It is further or optional, when the processor 120 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge the battery capacity of the terminal 100 less than threshold values can continue to using WIFI is direct-connected and/or the biography of bluetooth
Defeated mode transmits the object transmission file.
It is further or optional, when the processor 120 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge the battery capacity of the terminal 100 less than threshold values can also interrupt the bluetooth and/or the direct-connected biographies of WIFI
Defeated mode, so as to the transmission of interrupt targets transmission file.In the embodiment of the present invention, the terminal 100 is according to the object transmission file
Size, select corresponding with object transmission file size transmission mode, make the terminal 100 in the transmission object transmission file
When can save energy consumption and improve efficiency of transmission.
Fig. 3 is the structure diagram of another embodiment of the present invention terminal 200.
The terminal 200 includes receiving module 210, determining module 220, judgment module 230, selecting module 240 and transmission control
Molding block 250, the receiving module 210 receive the operational order that user's selection target transmits file;The determining module 220, according to
The operational order determines the object transmission file;The judgment module 230, according to the determined property of the object transmission file target
Transmit the size of file;The selection module 240, selection and the matched transmission mode of size of the object transmission file, wherein, it should
Terminal 200 supports at least two wireless transmission methods;The transmission control module 250, passes through the size with the object transmission file
Matched transmission mode transmits the object transmission file.
In the embodiment of the present invention, which selects and the object transmission file according to the size of the object transmission file
The matched transmission mode of size allows the terminal 200 to save energy consumption when transmitting the object transmission file and improves transmission effect
Rate.
Wherein, which can control at least two wireless transmission sides of foundation and recipient 300 in advance
Formula, including,
The transmission control module 250 controls the terminal 200 to establish NFC (the Near Field with the recipient 300
Communication, short-distance transmission) and Bluetooth wireless transmission;Alternatively, establish the NFC short-distance wireless with the recipient 300
Transmission and wireless transmission direct-connected WIFI;Alternatively, establish NFC short range wireless transmissions, bluetooth and the WIFI with the recipient 300
Direct-connected wireless transmission.
Optionally, after which can also be according to the wireless transmission method that the selection module 240 selects,
It is then turned on the corresponding transmission module of wireless transmission method of the selection.
Further, which receives the operational order of user's selection target transmission file, is referred to according to the operation
It enables and determines the object transmission file, including,
The receiving module 210 generates command signal according to the selection operation of user's operation input unit 130.This determines mould
Block 220,
Object transmission file is determined according to the command signal, wherein, which can be picture file, text
File, video file or audio file.
Further, the judgment module 230 is according to the big of the determined property of the object transmission file object transmission file
It is small, including,
The judgment module 230 judges that the size of the object transmission file is not up to preset range;Or judge that the target passes
The size of defeated file is in the preset range;Or judge the size of the object transmission file more than the preset range.
For example, pre-define the object transmission file size preset range for (1M, 2M], following embodiment is related to pre-
Determine range, refer both to the preset range (1M, 2M].The judgment module 230 judges that the size of the object transmission file for 0.5M, is then sentenced
The size of the disconnected object transmission file is not up to the preset range;Judge that the size of the file destination for 1.5M or 5M, then judges
The size of the object transmission file reaches the preset range.
Further, the selection module 240 selects transmission mode corresponding with the object transmission file size, including,
The selection module 240 is not up to preset range according to the size of the object transmission file, selects NFC transmission modes;
Or the selection module 240 reaches preset range according to the size of the object transmission file, selects bluetooth and/or WIFI direct-connected
Transmission mode.
Optionally, the selection module 240 selects transmission mode corresponding with the object transmission file size, can also wrap
It includes,
The selection module 240 reaches preset range according to the size of the object transmission file, can be by object transmission text
Part is divided at least two data groups, and selects the matched transmission mode of size with each data group.
Further, the selection module 240 transmits the data group of not up to preset range, selection NFC;It is up to predetermined
Bluetooth transmission described in the data group selection of range and/or the direct-connected transmission modes of WIFI.
For example, the selection module 240 be up to the object transmission file of preset range be divided into two data groups or
Three data groups of person, and select corresponding with the size of each data group transmission mode, wherein, the sizes of those data groups can be with
It is different.In the present embodiment, illustrated so that the object transmission file is divided into three data groups by the selection module 240 as an example.
The selection module 240 selects this to be not up to one of data group of the preset range, corresponding NFC transmission sides
Formula;The selection module 240 selects remaining data group to correspond to Bluetooth transmission mode and/or the direct-connected transmission modes of WIFI.
Three data groups in the present embodiment, the selection module 240 divide the write data groups according to the size of the data group
It Xuan Ze not NFC transmission modes, Bluetooth transmission mode and the direct-connected transmission modes of WIFI.
As shown in table 1, the size of the object transmission file is 6M, the preset range for (1M, 2M], then the selection module
240 can be divided into the data of the object transmission file three data groups to differ in size, wherein, the size of data group 1 is
1M, the size of data group 2 is 2M, and the size of data group 3 is 3M, this is selected to be not up to the correspondence of the data group of the preset range 1 should
NFC transmission modes select the data group 2 in the preset range to correspond to Bluetooth transmission mode, data group 3 are selected to correspond to WIFI straight
Transmission mode even.
It is further or optional, after the matched transmission mode of size of the selection of the selection module 240 and each data group,
Each data group can also be divided multiple data slices, wherein, each corresponding transmission mode of data slice and the data slice belong to
The corresponding transmission mode of data group it is consistent, referring to table 1, data slice quantity that the selection module 240 divides each data group
Differ.
Data group |
The size of data group |
Data slice number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, which can also be divided into the data group of the sizes such as multiple by the selection module 240, will
Multiple data group corresponds to above-mentioned three kinds of transmission modes, wherein, the size of each data group for the not up to preset range (1M,
2M]。
For example, as shown in table 2, the size of the object transmission file is 3M, can the object transmission file be divided into 3
Size is the data group of 1M, and each data group corresponds to NFC transmission modes, Bluetooth transmission mode and the direct-connected transmission sides of WIFI respectively
Formula.
Data group |
The size of data group |
Number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
It is understood that the selection module 240 can select NFC transmission modes and bluetooth to pass according to the size of the data
Defeated mode can also select NFC transmission modes and the direct-connected transmission modes of WIFI, it is also an option that Bluetooth transmission mode and WIFI
Direct-connected transmission mode.
Further, the transmission control module 250 by with the matched wireless transmission side of the size of the object transmission file
Formula transmits the object transmission file, including:When the selection module 240 select NFC transmission, the transmission control module 250, then
NFC transmission modules 111 are opened, transmit the object transmission file;When the selection module 240 selects Bluetooth transmission and/or WIFI straight
Transmission mode even, the transmission control module 250 then open Bluetooth communication modules 112 and/or the direct-connected transmission modules 113 of WIFI,
Transmit the object transmission file.
Optionally, when the selection module 240 selects NFC transmission, which can be by opening in advance
NFC transmission modules 111 transmit the object transmission file, when the selection module 240 selects Bluetooth transmission and/or the direct-connected biographies of WIFI
Defeated mode, the transmission control module 250 can pass through the direct-connected transmission mould of the Bluetooth communication modules 112 and/or WIFI opened in advance
Block 113 transmits the object transmission file.It is further or optional, when the transmission control module 250 passes through NFC transmission modes
After transmitting the object transmission file, which judges whether the terminal 200 and the distance of the recipient 300 exceed
The transmission range of the NFC connections, if beyond the transmission range, which interrupts the NFC connections, and passes through
Bluetooth or the direct-connected transmission modes of WIFI continue to transmit the object transmission file to the recipient 300, otherwise, transmission control mould
Block 250 transmits the object transmission file to the recipient 300 by the NFC.
It should be understood that the judgment module 230 judges that the distance of the terminal 100 and the recipient 300 exceed the biography of the NFC
Defeated distance, the then biography that the distance of user's terminal 200 and the recipient 300 with display the prompt box, can be prompted to be connect beyond the NFC
The terminal 200 is continued to transmit the object transmission file or prompting user selects bluetooth by defeated distance close to the recipient 300
Or WIFI is direct-connected continues to transmit the object transmission file, which continues according to the transmission mode that user selects
Transmit the object transmission file.
Optionally, the judgment module 230 can not also display the prompt box, automatically select bluetooth or WIFI be direct-connected continues to transmit
The object transmission file.
It is further or optional, when the judgment module 230 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and the battery capacity of the terminal 200 is judged less than threshold values, when the judgment module 230 judges the terminal 200 with connecing
For debit 300 in NFC transmission ranges, which can then interrupt the bluetooth and/or the direct-connected transmission sides of WIFI
Formula continues to transmit the object transmission file to the recipient 300 by the NFC transmission modes.
It is further or optional, when the judgment module 230 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and the battery capacity of the terminal 200 is judged less than threshold values, when the terminal 200 and the distance of the recipient 300 surpass
Go out the transmission range of the NFC, which can then interrupt the bluetooth and/or the direct-connected transmission modes of WIFI, lead to
It crosses the NFC transmission modes and continues to transmit the object transmission file to the recipient 300.
It is further or optional, when the judgment module 230 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge the battery capacity of the terminal 200 less than threshold values, which can continue to use
WIFI is direct-connected and/or the transmission mode of bluetooth transmits the object transmission file.
It is further or optional, when the judgment module 230 judges that current transmission mode is direct-connected for bluetooth and/or WIFI
Transmission mode, and judge the battery capacity of the terminal 200 less than threshold values, which can also interrupt the indigo plant
Tooth and/or the direct-connected transmission modes of WIFI, so as to the transmission of interrupt targets transmission file.
In the embodiment of the present invention, which selects and the object transmission file according to the size of the object transmission file
The corresponding transmission mode of size allows the terminal 200 to save energy consumption when transmitting the object transmission file and improves transmission effect
Rate.
Fig. 4 is the flow chart that the embodiment of the present invention controls data transmission method.
The method of the control data transmission of the embodiment of the present invention, including:
Step 10:Terminal receives the operational order of user's selection target transmission file.
Specifically, it before which receives the operational order of user's selection target transmission file, establishes with recipient extremely
Few two kinds of wireless transmission methods, including,
The terminal establishes the NFC (Near Field Communication, short-distance transmission) and bluetooth with the recipient
Wireless transmission;Alternatively, establish the wireless transmission direct-connected with the NFC short range wireless transmissions of the recipient and WIFI;Alternatively, it establishes
The direct-connected wireless transmission with the NFC short range wireless transmissions, bluetooth and WIFI of the recipient.Optionally, which can be with root
According to the wireless transmission method of selection, it is then turned on the corresponding wireless transport module of wireless transmission method of the selection.
Step 20:The terminal determines the object transmission file according to the operational order.
Specifically, which generates command signal, and according to this according to the selection operation of user's operation input unit 130
Command signal determines object transmission file, wherein, the object transmission file can be picture file, text file, video file,
Or audio file.
Step 30:The terminal judges the size of the object transmission file according to the target file attributes.
Specifically, which judges that the size of the object transmission file is not up to preset range;Or judge that the target passes
The size of defeated file is in the preset range;Or judge the size of the object transmission file more than the preset range.
For example, pre-define the object transmission file size preset range for (1M, 2M], following embodiment is related to pre-
Determine range, refer both to the preset range (1M, 2M].The processor 120 judges that the size of the object transmission file for 0.5M, then judges
The size of the object transmission file is not up to the preset range;The size of the file destination is judged for 1.5M or 5M, then judging should
The size of object transmission file reaches the preset range.
Step 40:The terminal select with the matched transmission mode of object transmission file size, wherein, the terminal support to
Few two kinds of wireless transmission methods.
Specifically, which is not up to preset range according to the size of the object transmission file, selects NFC transmission modes;
Or preset range is reached according to the size of the object transmission file, select bluetooth and/or the direct-connected transmission modes of WIFI.
Optionally, which reaches preset range according to the size of the object transmission file, can be by object transmission text
Part is divided at least two data groups, and selects the matched transmission mode of size with each data group.
Specifically, which transmits the data group of not up to preset range, selection NFC;It is up to the number of preset range
According to the transmission mode that Bluetooth transmission described in group selection and/or WIFI are direct-connected.
It, can be by the object transmission for example, if the terminal judges that the size of the object transmission file reaches preset range
File is divided into two data groups or three data groups, and selects transmission mode corresponding with the size of each data group,
In, the size of those data groups can be different.In the present embodiment, which is divided by three data with the terminal
It is illustrated for group.
The terminal selects this to be not up to one of data group of the preset range, corresponding NFC transmission modes;Select it
Remaining data group corresponds to Bluetooth transmission mode and/or the direct-connected transmission modes of WIFI.
Three data groups in the present embodiment, NFC transmission modes, Bluetooth transmission are corresponded to according to the size of the data group respectively
Mode and the direct-connected transmission modes of WIFI.
As shown in table 1, which judges the size of the object transmission file for 6M, the preset range for (1M, 2M], then may be used
The data of the object transmission file are divided into three data groups to differ in size, wherein, the size of data group 1 is 1M, is counted
Size according to group 2 is 2M, and the size of data group 3 is 3M, this is selected to be not up to the data group of the preset range 1 and corresponds to NFC biographies
Defeated mode selects the data group 2 in the preset range to correspond to Bluetooth transmission mode, data group 3 is selected to correspond to WIFI direct-connected
Transmission mode.
It is further or optional, terminal selection with after the matched transmission mode of size of each data group, can be with
Each data group is divided into multiple data slices, wherein, the data of each corresponding transmission mode of data slice and data slice ownership
The corresponding transmission mode of group is consistent, and referring to table 1, the data slice which divides each data group is in varying numbers.
Data group |
The size of data group |
Data slice number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, which can also be divided into the object transmission file data group of the sizes such as multiple, will be multiple
Data group corresponds to above-mentioned three kinds of transmission modes, wherein, the size of each data group for the not up to preset range (1M, 2M].
For example, as shown in table 2, the size of the object transmission file is 3M, can the object transmission file be divided into 3
Size is the data group of 1M, and each data group corresponds to NFC transmission modes, Bluetooth transmission mode and the direct-connected transmission sides of WIFI respectively
Formula.
Data group |
The size of data group |
Number |
Transmission mode |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
It is understood that the terminal can select NFC transmission modes and Bluetooth transmission mode according to the size of the data,
NFC transmission modes and the direct-connected transmission modes of WIFI can also be selected, it is also an option that Bluetooth transmission mode and WIFI are direct-connected
Transmission mode.
Step 50:The terminal by with the matched transmission mode of the size of the object transmission file, transmit the object transmission
File.
Specifically, when terminal selection NFC transmission, then NFC transmission modules is opened, transmit the object transmission file;It is elected
Bluetooth transmission and/or the direct-connected transmission modes of WIFI are selected, then opens Bluetooth communication modules and/or the direct-connected transmission modules of WIFI, is passed
The defeated object transmission file.
Optionally, when terminal selection NFC transmission, can target biography be transmitted by the NFC transmission modules opened in advance
Defeated file;It, then can be by the Bluetooth communication modules opened in advance when selection Bluetooth transmission and/or the direct-connected transmission modes of WIFI
And/or the direct-connected transmission modules of WIFI, transmit the object transmission file.
It is further or optional, when the terminal is by NFC wireless transmission methods, after transmitting the object transmission file, sentence
Break the terminal and recipient 300 distance whether the transmission range being connect beyond the NFC, if exceeding the transmission range, interrupt
The NFC connections, and pass through and bluetooth or the direct-connected transmission modes of WIFI is selected to continue to transmit the object transmission file to the recipient
300, otherwise, which is transmitted to the recipient 300 by the NFC.
It should be understood that the terminal judges that the distance of the terminal and the recipient 300 exceed the transmission range of the NFC, then
The distance of user's terminal 100 and the recipient 300 with display the prompt box, can be prompted to exceed the transmission range that the NFC is connect, general
The terminal close to the recipient 300 continues to transmit the object transmission file or prompting user select bluetooth or WIFI it is direct-connected after
The defeated object transmission file is resumed, which continues to transmit the object transmission file according to the transmission mode that user selects.
Optionally, the terminal can not also display the prompt box, automatically select bluetooth or the direct-connected transmission modes of WIFI continue
Transmit the object transmission file.
It is further or optional, when the terminal judges current transmission mode for bluetooth and/or the direct-connected transmission of WIFI
Mode, and judge the battery capacity of the terminal less than threshold values, then can be with when the terminal and recipient 300 are in NFC transmission ranges
The bluetooth and/or the direct-connected transmission modes of WIFI are interrupted, continues to transmit the object transmission file by the NFC transmission modes.
It is further or optional, when the terminal judges current transmission mode for bluetooth and/or the direct-connected transmission of WIFI
Mode, and judge that the battery capacity of the terminal is less than threshold values, when the distance of the terminal and the recipient exceeds the transmission distance of the NFC
From can then interrupt the bluetooth and/or the direct-connected transmission modes of WIFI, continue to transmit the target passing by the NFC transmission modes
Defeated file is to the recipient 300.
It is further or optional, when the terminal judges current transmission mode for bluetooth and/or the direct-connected transmission of WIFI
Mode, and judge the battery capacity of the terminal less than threshold values, the terminal can continue to using WIFI is direct-connected and/or the biography of bluetooth
Defeated mode transmits the object transmission file.
It is further or optional, when the terminal judges current transmission mode for bluetooth and/or the direct-connected transmission of WIFI
Mode, and judge the battery capacity of the terminal less than threshold values, the terminal can also interrupt the bluetooth and/or the direct-connected transmission of WIFI
Mode, so as to the transmission of interrupt targets transmission file.
In the embodiment of the present invention, which selects big with the object transmission file according to the size of the object transmission file
Small corresponding transmission mode allows the terminal to save energy consumption when transmitting the object transmission file and improves efficiency of transmission.
It, can be with it should be noted that with reference to various method steps and module described in the embodiments described herein
The combination of electronic hardware or computer software and both hardware realizes, in the above description according to function in general manner
The step of describing each embodiment and composition.These functions are performed in a manner of the hardware or software and hardware actually, are depended on
In the specific application and design constraint of technical solution.Those of ordinary skill in the art can make each specific application
Differently realize described function, but this realization is it is not considered that beyond the scope of this invention.
The software journey that can be performed with reference to the method or step that the embodiments described herein describes with hardware, processor
The combination of sequence or the two is implemented.Software program can be placed in random access memory (RAM), memory, read-only memory (ROM),
Institute is public in electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium known.
Although by reference to the mode of attached drawing and combination preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should be in the covering scope of the present invention.