Summary of the invention
The embodiment of the present invention provides a kind of method of terminal and control documents transmission, the energy consumption can save transfer files time and raising efficiency of transmission.
First aspect, a kind of method that provides control documents to transmit, comprising: terminal receives the operational order of user's select target transfer files; Described terminal is determined described object transmission file according to described operational order; Described terminal is according to the size of object transmission file described in the determined property of described object transmission file; Described terminal is selected the transmission means of mating with the size of described object transmission file, wherein, and at least two kinds of wireless transmission methods of described terminal support; Described terminal, by the transmission means of mating with the size of described object transmission file, is transmitted described object transmission file.
In the possible implementation of the first of first aspect, receive the operational order of user's select target transfer files in described terminal before, comprising:
Described terminal is set up and recipient's short range wireless transmission NFC and Bluetooth wireless transmission; Or the wireless transmission that described terminal foundation and recipient NFC and WIFI are direct-connected; Or transmit leg is set up the wireless transmission direct-connected with recipient NFC, bluetooth and WIFI.
In the possible implementation of the second of first aspect, described terminal, by the wireless transmission method mating with the size of described object transmission file, is transmitted described object transmission file, comprising: when described terminal is selected NFC transmission, open NFC transport module, transmit described object transmission file; Select described Bluetooth transmission and/or the direct-connected transmission means of WIFI when described terminal, open the direct-connected transport module of Bluetooth transmission module and/or WIFI, transmit described object transmission file.
In conjunction with first aspect the first or the possible implementation of the second, in the third possible implementation, when described terminal is transmitted by NFC after described object transmission file, comprise, judge that described terminal and described recipient's distance exceeds the transmission range of described NFC, interrupt described NFC and connect, and continue the described object transmission file of transmission by the transmission means of described Bluetooth transmission and/or the direct-connected transmission of described WIFI.
In conjunction with the first or the possible implementation of the second of first aspect, in the 4th kind of possible implementation, when described terminal is by described Bluetooth transmission and/or the direct-connected transmission means of WIFI, transmit after described object transmission file, comprise, judge that the battery electric quantity of described terminal is lower than threshold values, interrupt described Bluetooth transmission module and/or the direct-connected transport module of WIFI, and continue the described object transmission file of transmission by described NFC transport module.
In conjunction with above-mentioned arbitrary possible implementation of first aspect or first aspect, in the 5th kind of possible implementation, the size of object transmission file does not reach preset range described in described terminal judges; Or described in described terminal judges, the size of object transmission file is in preset range; Or described in described terminal judges, the size of object transmission file exceedes preset range.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, described terminal does not reach preset range according to the size of described object transmission file, selects NFC transmission; Or described terminal reaches preset range according to the size of described object transmission file, select Bluetooth transmission and/or the direct-connected transmission means of WIFI.
In conjunction with above-mentioned arbitrary possible implementation of first aspect or first aspect, in the 7th kind of possible implementation, described terminal is selected the wireless transmission method mating with the size of described object transmission file, comprise, described terminal reaches preset range according to the size of described object transmission file, be at least two data groups by described object transmission Divide File, and the selection transmission means of mating with the size of each data group.
In conjunction with the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation, described terminal is selected the transmission means of mating with the size of each data group, comprises, described terminal will not reach the data group of preset range, selects NFC transmission means; Data group selection Bluetooth transmission mode and/or the direct-connected transmission means of WIFI of preset range will be reached.
In conjunction with the 7th kind of possible implementation of first aspect, in the 9th kind of possible implementation, after the transmission means that described terminal is selected to mate with the size of each data group, also comprise, each data group is divided multiple data slice by described terminal, wherein, transmission means corresponding to the each data slice transmission means corresponding with the data group of described data slice ownership is consistent.
The second fermentation, provides a kind of terminal, and described terminal comprises receiver module, determination module, judge module, selection module and transmission control module, described receiver module, the operational order of reception user select target transfer files; Described determination module, determines described object transmission file according to described operational order; Described judge module, according to the size of object transmission file described in the determined property of described object transmission file; Described selection module, the transmission means that selection is mated with the size of described object transmission file, wherein, at least two kinds of wireless transmission methods of described terminal support; Described transmission control module, by the transmission means of mating with the size of described object transmission file, transmits described object transmission file.
In the possible implementation of the first of second aspect, described receiver module, before receiving the operational order of user's select target transfer files, comprising: described terminal is set up and recipient's short range wireless transmission NFC and Bluetooth wireless transmission; Or the wireless transmission that described terminal foundation and recipient NFC and WIFI are direct-connected; Or the wireless transmission that foundation and recipient NFC, bluetooth and WIFI are direct-connected.
In the possible implementation of the second of second aspect, described transmission control module, by the wireless transmission method mating with the size of described object transmission file, transmit described object transmission file, comprise: when described selection module is selected NFC transmission, described transmission control module is opened NFC transport module, transmits described object transmission file; When described selection module, select Bluetooth transmission and/or the direct-connected transmission means of WIFI, described transmission control module is opened Bluetooth transmission module and/or the direct-connected transport module of WIFI, transmits described object transmission file.
In conjunction with above-mentioned arbitrary possible implementation of second aspect, in the third possible implementation, when described transmission control module transmits by NFC transmission means after described object transmission file, also comprise, described judge module, judges that described terminal and recipient's distance exceeds the transmission range of NFC, and described transmission control module interrupts described NFC and connects, and by the transmission means of described Bluetooth transmission and/or the direct-connected transmission of WIFI, continue the described object transmission file of transmission.
In conjunction with the first or the possible implementation of the second of second aspect, in the 4th kind of possible implementation, when described transmission control module transmits after described object transmission file by bluetooth and/or the direct-connected transmission means of WIFI, also comprise, described judge module, judges that the battery electric quantity of described terminal is lower than threshold values, described transmission control module, interrupt the direct-connected transmission means of described bluetooth and/or WIFI, and transmit described object transmission file by described NFC transmission means.
In conjunction with above-mentioned arbitrary possible implementation of second aspect or second aspect, in the 5th kind of possible implementation, described judge module, judge the size of described object transmission file, comprise that described judge module judges that the size of described object transmission file does not reach preset range; Or described judge module, judges that the size of described object transmission file is in described preset range; Or described judge module, judges that the size of described object transmission file exceedes described preset range.
In conjunction with the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, described selection module, select the transmission means of mating with the size of described object transmission file, comprise: described selection module does not reach preset range according to the size of described object transmission file, select NFC transmission; Or described selection module reaches preset range according to the size of described object transmission file, select Bluetooth transmission and/or the direct-connected transmission means of WIFI.
In the embodiment of the present invention, this terminal, according to the size of this object transmission file, is selected the transmission means corresponding with this object transmission file size, makes this terminal can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, should belong to the scope of protection of the invention.
Fig. 1 is embodiment of the present invention terminal 100 and recipient's 300 file transfer schematic diagram.
The embodiment of the present invention relates to a kind of method of terminal 100 and control documents transmission, this terminal 100 is passed through wireless transmission method transfer files to recipient 300, this terminal 100 can be mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal) or vehicle-mounted computer etc.This terminal 100 can be used as the recipient of transmit leg or the file of file.In the embodiment of the present invention, this terminal 100 is as the transmit leg of file.
Fig. 2 is the structural representation of embodiment of the present invention terminal 100.
With reference to figure 2, a kind of terminal 100 of the embodiment of the present invention, comprises, Wireless Transmitter 110, processor 120 and input unit 130; This input unit 130 receives the operational order of user's select target transfer files, this processor 120 is according to this operational order, determine this object transmission file, judge the size of this object transmission file according to this target file attributes, select the transmission means of mating with this object transmission file size, wherein, this Wireless Transmitter 110 is supported at least two kinds of wireless transmission methods; This processor 120, by the transmission means of mating with the size of this object transmission file, is controlled this Wireless Transmitter 110 these object transmission files of transmission.
In the embodiment of the present invention, this terminal 100 is according to the size of this object transmission file, and the transmission means that selection is mated with this object transmission file size, makes this terminal 100 can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
This Wireless Transmitter 110 can comprise NFC (Near Field Communication, short-distance transmission) transport module 111, Bluetooth transmission module 112 and/or WIFI direct-connected (wireless fidelity direct) transport module 113.
This Wireless Transmitter 110 can also comprise antenna 115 (for example 3G antenna or LTE antenna), wherein this antenna 115 be used in receive and send messages or communication process in, the reception of information and transmission, especially, by the downlink information of the base station receiving, process to this processor 120; In addition, uplink information is sent to base station.In addition, this Wireless Transmitter 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
This input unit 130 can be used for receiving numeral or the character information of input, and generation is inputted with the signal that user arranges and function control is relevant of terminal 100.Particularly, in the embodiment of the present invention, this input unit 130 can comprise contact panel 131.Contact panel 131, also referred to as touch-screen, can collect user or near touch operation (use any applicable objects such as finger, stylus or annex such as user on contact panel 131 or in the operation of contact panel 131) thereon, and drive corresponding jockey according to predefined formula.Optionally, contact panel 131 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives this processor 120, and the order that energy receiving processor 120 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 131.Except contact panel 131, input unit 130 can also comprise other input equipments 132, and 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.
This terminal 100 can also comprise display unit 140 and memory 150, and this display unit 140 can be used for showing the information inputted by user or the various menu interfaces of the information that offers user and terminal 100.This display unit 140 can comprise display floater 141, optionally, can adopt the form such as LCD (Liquid Crystal Display, liquid crystal display) or OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to configure display floater 141.
This memory 150 can be used for storing software program and module, and processor 120 is stored in software program and the module of this memory 150 by operation, thereby carries out various function application and the data processing of this terminal 100.This memory 140 can mainly comprise storage program district and storage data field, wherein, and the application program (such as sound-playing function, visual playing function etc.) that storage program district can storage operation system, at least one function is required etc.; The data (such as text data, voice data, phone directory etc.) that create according to the use of this terminal 100 etc. can be stored in storage data field.In addition, this memory 140 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.
This terminal 100 can also comprise the parts such as voicefrequency circuit 170 and power supply 190.It will be appreciated by those skilled in the art that, terminal structure shown in Fig. 2 does not form the restriction to this terminal 100, can comprise than parts more or less shown in Fig. 2, for example, can there is no voicefrequency circuit 170 for a part of terminal, or combine some parts, or different parts are arranged.
This voicefrequency circuit 170 can, by the signal of telecommunication after the voice data conversion receiving, be transferred to loud speaker, is converted to voice signal output by loud speaker; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone, after being received, is converted to audio-frequency information by voicefrequency circuit 170, then audio-frequency information is exported to RF circuit to send to such as another mobile phone.
This power supply 190 can be connected with these processor 120 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power consumption by power-supply management system.
This processor 120 is control centres of terminal 100, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out the software program and/or the module that are stored in this memory 150, and call the data that are stored in this memory 150, carry out various functions and the deal with data of terminal 100, thereby terminal 100 is carried out to integral monitoring.Optionally, this processor 120 can comprise one or more processing units.
Particularly, this processor 120 is controlled at least two kinds of wireless transmission methods of these Wireless Transmitter 110 foundation and recipient 300, comprise,
This processor 120 is controlled these Wireless Transmitter 110 foundation and this recipient's 300 NFC short range wireless transmission and Bluetooth wireless transmission; Or, the wireless transmission that foundation and this recipient's 300 NFC short range wireless transmission and WIFI are direct-connected; Or, set up the wireless transmission direct-connected with this recipient's 300 NFC short range wireless transmission, bluetooth and WIFI.Optionally, this processor 120 can, according to the wireless transmission method of selecting, then be opened the transport module corresponding to wireless transmission method of this selection.
Further, this processor 120 receives the operational order of user's select target transfer files, determines this object transmission file according to this operational order, comprise,
This processor 120 operates the selection operation of input unit 130 according to user, produce command signal, this processor 120 is determined object transmission file according to this command signal, wherein, this object transmission file can be picture file, text, video file, or audio file.
Further, this processor 120, according to the size of this object transmission file of the determined property of this object transmission file, comprises,
This processor 120 judges that the size of this object transmission file does not reach preset range; Or judge that the size of this object transmission file is in this preset range; Or the size that judges this object transmission file exceedes this preset range.
For example, the preset range of pre-defined this object transmission file size be (1M, 2M], the preset range that following examples relate to, all refer to this preset range (1M, 2M].This processor 120 judges that according to the attribute information of this object transmission file the size of this object transmission file is 0.5M, judges that the size of this object transmission file does not reach this preset range; The size that judges this file destination is 1.5M or 5M, judges that the size of this object transmission file reaches this preset range.
Further, this processor 120 is selected the transmission means corresponding with this object transmission file size, comprise,
This processor 120 does not reach preset range according to the size of this object transmission file, selects NFC transmission means; Or this processor 120 reaches preset range according to the size of this object transmission file, select bluetooth and/or the direct-connected transmission means of WIFI.
Optionally, this processor 120 is selected the transmission means corresponding with this object transmission file size, can also comprise,
This processor 120 reaches preset range according to the size of this object transmission file, can be at least two data groups by this object transmission Divide File, and the selection transmission means of mating with the size of each data group.
Further, this processor 120 will not reach the data group of preset range, selects NFC transmission means; Data group selection bluetooth and/or the direct-connected transmission means of WIFI of preset range will be reached.
For example, if this processor 120 judges that the size of this object transmission file reaches preset range, can be two data groups or three data groups by this object transmission Divide File, and the selection transmission means corresponding with the size of each data group, wherein, the size of those data groups can be different.In the present embodiment, take this processor 120, this object transmission Divide File is described as three data groups as example.
This processor 120 is selected one of them of this data group that does not reach this preset range, selects NFC transmission means; This processor 120 is by remaining data group selection Bluetooth transmission mode and/or the direct-connected transmission means of WIFI.
Three data groups in the present embodiment, according to the size of this data group corresponding NFC transmission means, Bluetooth transmission mode and the direct-connected transmission means of WIFI respectively.
As shown in table 1, this processor 120 judges that the size of this object transmission file is 6M, this preset range is (1M, 2M], this processor 120 can be divided into the data of this object transmission file three data groups that differ in size, wherein, the size of data group 1 is 1M, the size of data group 2 is 2M, the size of data group 3 is 3M, select this data group 1 that does not reach this preset range to should NFC transmission means, be chosen in the corresponding Bluetooth transmission mode of data group 2 in this preset range, select the direct-connected transmission means of data group 3 corresponding WIFI.
Further or optional, after the transmission means that this processor 120 is selected to mate with the size of each data group, each data group can also be divided to multiple data slice, wherein, transmission means corresponding to the each data slice transmission means corresponding with the data group of this data slice ownership is consistent, referring to table 1, the data slice quantity that this processor 120 is divided each data group is not etc.
Data group |
The size of data group |
Data slice number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, this processor 120 can also be big or small data groups such as multiple grades by this object transmission Divide File, by corresponding the plurality of data group above-mentioned three kinds of transmission meanss, wherein, the size of each data group for do not reach this preset range (1M, 2M].
For example, as shown in table 2, the size of this object transmission file is 3M, can be the data group that 3 sizes are 1M by this object transmission Divide File, the not corresponding NFC transmission means of each data component, Bluetooth transmission mode and the direct-connected transmission means of WIFI.
Data group |
The size of data group |
Number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
Be understandable that, this processor 120 can be selected NFC transmission means and Bluetooth transmission mode according to the size of these data, also the direct-connected transmission means of NFC transmission means and WIFI can be selected, the direct-connected transmission means of Bluetooth transmission mode and WIFI can also be selected.
Further, this processor 120, by the wireless transmission method mating with the size of this object transmission file, transmits described object transmission file, comprising: select NFC transmission when this processor 120, open NFC transport module, transmit this object transmission file; Select Bluetooth transmission and/or the direct-connected transmission means of WIFI when this processor 120, open the direct-connected transport module of Bluetooth transmission module and/or WIFI, transmit this object transmission file.
Optionally, select NFC transmission when this processor 120, can, by the NFC transport module of opening in advance, transmit this object transmission file; When this processor 120 is selected Bluetooth transmission and/or the direct-connected transmission means of WIFI, can, by Bluetooth transmission module and/or the direct-connected transport module of WIFI opened in advance, transmit this object transmission file.Further or optional, when this processor 120 transmits by NFC transmission means after described object transmission file, comprise, this processor 120 judges whether this terminal 100 exceeds with this recipient's 300 distance the transmission range that this NFC is connected, if exceed this transmission range, interrupt this NFC transmission means, and continue this object transmission file of transmission to this recipient 300 by bluetooth or the direct-connected transmission means of WIFI, otherwise, transmit this object transmission file to this recipient 300 by this NFC.
Understandable, this processor 120 judges that this terminal 100 and this recipient's 300 distance exceed the transmission range of this NFC, can display reminding frame, this terminal 100 of prompting user exceeds with this recipient's 300 distance the transmission range that this NFC is connected, this terminal 100 is continued to transmit this object transmission file near this recipient 300, or prompting user selects bluetooth or the direct-connected continuation of WIFI to transmit this object transmission file, the transmission means that this processor 120 is selected according to user continues this object transmission file of transmission.
Optionally, also display reminding frame not of this processor 120, selects the direct-connected continuation of bluetooth or WIFI to transmit this object transmission file automatically.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this processor 120 judges current transmission means, and judge that the battery electric quantity of this terminal 100 is lower than threshold values, when in this terminal 100 and this recipient's 300 the distance transmission range at this NFC, can interrupt the direct-connected transmission means of this bluetooth and/or WIFI, continue this object transmission file of transmission to this recipient 300 by this NFC transmission means.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this processor 120 judges current transmission means, and judge that the battery electric quantity of this terminal 100 is lower than threshold values, when this terminal 100 and this recipient's 300 distance exceed the transmission range of this NFC, can point out user by this terminal 100 near this recipient 300, thereby transmit by NFC, and select to interrupt WIFI direct-connected/transmission means of bluetooth.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this processor 120 judges current transmission means, and judge that the battery electric quantity of this terminal 100 is lower than threshold values, also can continue to use WIFI direct-connected and or the transmission means of bluetooth transmit this object transmission file.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this processor 120 judges current transmission means, and judge that the battery electric quantity of this terminal 100 is lower than threshold values, can also interrupt the direct-connected transmission means of this bluetooth and/or WIFI, thus the transmission of interrupt targets transfer files.In the embodiment of the present invention, this terminal 100, according to the size of this object transmission file, is selected the transmission means corresponding with this object transmission file size, makes this terminal 100 can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
Fig. 3 is the structural representation of another embodiment of the present invention terminal 200.
This terminal 200 comprises receiver module 210, determination module 220, judge module 230, selects module 240 and transmission control module 250, this receiver module 210, the operational order of reception user select target transfer files; This determination module 220, determines this object transmission file according to this operational order; This judge module 230, according to the size of this object transmission file of the determined property of this object transmission file; This selection module 240, the transmission means that selection is mated with the size of this object transmission file, wherein, this terminal 200 is supported at least two kinds of wireless transmission methods; This transmission control module 250, by the transmission means of mating with the size of this object transmission file, transmits described object transmission file.
In the embodiment of the present invention, this terminal 200 is according to the size of this object transmission file, and the transmission means that selection is mated with this object transmission file size, makes this terminal 200 can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
Wherein, this transmission control module 250 can be controlled at least two kinds of wireless transmission methods setting up with recipient 300 in advance, comprise,
This transmission control module 250 is controlled these terminal 200 foundation and this recipient's 300 NFC (Near Field Communication, short-distance transmission) and Bluetooth wireless transmission; Or, the wireless transmission that foundation and this recipient's 300 NFC short range wireless transmission and WIFI are direct-connected; Or, set up the wireless transmission direct-connected with this recipient's 300 NFC short range wireless transmission, bluetooth and WIFI.
Optionally, after the wireless transmission method that this transmission control module 250 can also be selected according to this selection module 240, then open the transport module corresponding to wireless transmission method of this selection.
Further, this receiver module 210 receives the operational order of user's select target transfer files, determines this object transmission file according to this operational order, comprise,
The selection operation that this receiver module 210 operates input unit 130 according to user, produces command signal.
This determination module 220, determines object transmission file according to this command signal, and wherein, this object transmission file can be picture file, text, video file, or audio file.
Further, this judge module 230, according to the size of this object transmission file of the determined property of this object transmission file, comprises,
This judge module 230 judges that the size of this object transmission file does not reach preset range; Or judge that the size of this object transmission file is in this preset range; Or the size that judges this object transmission file exceedes this preset range.
For example, the preset range of pre-defined this object transmission file size be (1M, 2M], the preset range that following examples relate to, all refer to this preset range (1M, 2M].This judge module 230 judges that the size of this object transmission file is 0.5M, judges that the size of this object transmission file does not reach this preset range; The size that judges this file destination is 1.5M or 5M, judges that the size of this object transmission file reaches this preset range.
Further, this selection module 240 is selected the transmission means corresponding with this object transmission file size, comprise,
This selection module 240 does not reach preset range according to the size of this object transmission file, selects NFC transmission means; Or this selection module 240 reaches preset range according to the size of this object transmission file, select bluetooth and/or the direct-connected transmission means of WIFI.
Optionally, this selection module 240 is selected the transmission means corresponding with this object transmission file size, can also comprise,
This selection module 240 reaches preset range according to the size of this object transmission file, can be at least two data groups by this object transmission Divide File, and the selection transmission means of mating with the size of each data group.
Further, this selection module 240 will not reach the data group of preset range, selects NFC transmission; Bluetooth transmission and/or the direct-connected transmission means of WIFI described in the data group selection of preset range will be reached.
For example, this selection module 240 by reach preset range this object transmission file be divided into two data groups or three data groups, and the selection transmission means corresponding with the size of each data group, wherein, the size of those data groups can be different.In the present embodiment, take this selection module 240, this object transmission Divide File is described as three data groups as example.
This selection module 240 is selected one of them of this data group that does not reach this preset range, corresponding NFC transmission means; This selection module 240 is selected the corresponding Bluetooth transmission mode of remaining data group and/or the direct-connected transmission means of WIFI.
Three data groups in the present embodiment, this selection module 240 is selected respectively NFC transmission means, Bluetooth transmission mode and the direct-connected transmission means of WIFI according to this write data groups of large young pathbreaker of this data group.
As shown in table 1, the size of this object transmission file is 6M, this preset range is (1M, 2M], this selection module 240 can be divided into the data of this object transmission file three data groups that differ in size, wherein, the size of data group 1 is 1M, the size of data group 2 is 2M, the size of data group 3 is 3M, select this data group 1 that does not reach this preset range to should NFC transmission means, be chosen in the corresponding Bluetooth transmission mode of data group 2 in this preset range, select the direct-connected transmission means of data group 3 corresponding WIFI.
Further or optional, after the transmission means that this selection module 240 is selected to mate with the size of each data group, each data group can also be divided to multiple data slice, wherein, transmission means corresponding to the each data slice transmission means corresponding with the data group of this data slice ownership is consistent, referring to table 1, the data slice quantity that this selection module 240 is divided each data group is not etc.
Data group |
The size of data group |
Data slice number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, this selection module 240 can also be big or small data groups such as multiple grades by this object transmission Divide File, by corresponding the plurality of data group above-mentioned three kinds of transmission meanss, wherein, the size of each data group for do not reach this preset range (1M, 2M].
For example, as shown in table 2, the size of this object transmission file is 3M, can be the data group that 3 sizes are 1M by this object transmission Divide File, the not corresponding NFC transmission means of each data component, Bluetooth transmission mode and the direct-connected transmission means of WIFI.
Data group |
The size of data group |
Number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
Be understandable that, this selection module 240 can be selected NFC transmission means and Bluetooth transmission mode according to the size of these data, also the direct-connected transmission means of NFC transmission means and WIFI can be selected, the direct-connected transmission means of Bluetooth transmission mode and WIFI can also be selected.
Further, this transmission control module 250 is by the wireless transmission method mating with the size of this object transmission file, transmit described object transmission file, comprise: when this selection module 240 is selected NFC transmission, this transmission control module 250, open NFC transport module 111, transmit this object transmission file; When this selection module 240 is selected Bluetooth transmission and/or the direct-connected transmission means of WIFI, 250 of this transmission control modules are opened Bluetooth transmission module 112 and/or the direct-connected transport module 113 of WIFI, transmit this object transmission file.
Optionally, when this selection module 240 is selected NFC transmission, this transmission control module 250 can be by NFC transport module 111 these object transmission files of transmission of opening in advance, when this selection module 240 is selected Bluetooth transmission and/or the direct-connected transmission means of WIFI, this transmission control module 250 can, by Bluetooth transmission module 112 and/or the direct-connected transport module 113 of WIFI opened in advance, transmit this object transmission file.Further or optional, when this transmission control module 250 transmits by NFC transmission means after described object transmission file, this judge module 230 judges whether this terminal 200 exceeds with this recipient's 300 distance the transmission range that this NFC is connected, if exceed this transmission range, 250 of this transmission control modules interrupt this NFC and connect, and continue this object transmission file of transmission to this recipient 300 by bluetooth or the direct-connected transmission means of WIFI, otherwise this transmission control module 250 transmits this object transmission file to this recipient 300 by this NFC.
Understandable, this judge module 230 judges that this terminal 100 and this recipient's 300 distance exceed the transmission range of this NFC, can display reminding frame, this terminal 200 of prompting user exceeds with this recipient's 300 distance the transmission range that this NFC is connected, this terminal 200 is continued to transmit this object transmission file near this recipient 300, or prompting user selects bluetooth or the direct-connected continuation of WIFI to transmit this object transmission file, the transmission means that this transmission control module 250 is selected according to user continues this object transmission file of transmission.
Optionally, also display reminding frame not of this judge module 230, selects the direct-connected continuation of bluetooth or WIFI to transmit this object transmission file automatically.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this judge module 230 judges current transmission means, and judge that the battery electric quantity of this terminal 200 is lower than threshold values, when this judge module 230 judges that this terminal 200 and recipient 300 are in NFC transmission range, 250 of this transmission control modules can interrupt this bluetooth and/or the direct-connected transmission means of WIFI, continue this object transmission file of transmission to this recipient 300 by this NFC transmission means.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this judge module 230 judges current transmission means, and judge that the battery electric quantity of this terminal 200 is lower than threshold values, when this terminal 200 and this recipient's 300 distance exceed the transmission range of this NFC, 250 of this transmission control modules can interrupt this bluetooth and/or the direct-connected transmission means of WIFI, continue this object transmission file of transmission to this recipient 300 by this NFC transmission means.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this judge module 230 judges current transmission means, and judge that the battery electric quantity of this terminal 200 is lower than threshold values, this transmission control module 250 also can continue to use WIFI direct-connected and or the transmission means of bluetooth transmit this object transmission file.
Further or optional, be bluetooth and/or the direct-connected transmission means of WIFI when this judge module 230 judges current transmission means, and judge that the battery electric quantity of this terminal 200 is lower than threshold values, this transmission control module 250, can also interrupt the direct-connected transmission means of this bluetooth and/or WIFI, thus the transmission of interrupt targets transfer files.
In the embodiment of the present invention, this terminal 200, according to the size of this object transmission file, is selected the transmission means corresponding with this object transmission file size, makes this terminal 200 can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
Fig. 4 is the flow chart of embodiment of the present invention control data transmission method.
The method of the control data transmission of the embodiment of the present invention, comprising:
Step 10: terminal receives the operational order of user's select target transfer files.
Particularly, before this terminal receives the operational order of user's select target transfer files, at least two kinds of wireless transmission methods of foundation and recipient, comprise,
This terminal is set up NFC (Near Field Communication, short-distance transmission) and the Bluetooth wireless transmission with this recipient; Or, the wireless transmission that foundation and this recipient's NFC short range wireless transmission and WIFI are direct-connected; Or, set up the wireless transmission direct-connected with this recipient's NFC short range wireless transmission, bluetooth and WIFI.Optionally, this terminal can also, according to the wireless transmission method of selecting, then be opened the wireless transport module corresponding to wireless transmission method of this selection.
Step 20: this terminal, according to this operational order, is determined this object transmission file.
Particularly, the selection operation that this terminal operates input unit 130 according to user, produces command signal, and determine object transmission file according to this command signal, wherein, this object transmission file can be picture file, text, video file, or audio file.
Step 30: this terminal judges the size of this object transmission file according to this target file attributes.
Particularly, the size of this object transmission file of this terminal judges does not reach preset range; Or judge that the size of this object transmission file is in this preset range; Or the size that judges this object transmission file exceedes this preset range.
For example, the preset range of pre-defined this object transmission file size be (1M, 2M], the preset range that following examples relate to, all refer to this preset range (1M, 2M].This processor 120 judges that the size of this object transmission file is 0.5M, judges that the size of this object transmission file does not reach this preset range; The size that judges this file destination is 1.5M or 5M, judges that the size of this object transmission file reaches this preset range.
Step 40: this terminal is selected the transmission means of mating with this object transmission file size, wherein, at least two kinds of wireless transmission methods of this terminal support.
Particularly, this terminal does not reach preset range according to the size of this object transmission file, selects NFC transmission means; Or reach preset range according to the size of this object transmission file, select bluetooth and/or the direct-connected transmission means of WIFI.
Optionally, this terminal reaches preset range according to the size of this object transmission file, can be at least two data groups by this object transmission Divide File, and the selection transmission means of mating with the size of each data group.
Particularly, this terminal will not reach the data group of preset range, selects NFC transmission; Bluetooth transmission and/or the direct-connected transmission means of WIFI described in the data group selection of preset range will be reached.
For example, if this terminal judges the size of this object transmission file and reaches preset range, can be two data groups or three data groups by this object transmission Divide File, and the selection transmission means corresponding with the size of each data group, wherein, the size of those data groups can be different.In the present embodiment, take this terminal, this object transmission Divide File is described as three data groups as example.
This terminal is selected one of them of this data group that does not reach this preset range, corresponding NFC transmission means; Select the corresponding Bluetooth transmission mode of remaining data group and/or the direct-connected transmission means of WIFI.
Three data groups in the present embodiment, according to the size of this data group corresponding NFC transmission means, Bluetooth transmission mode and the direct-connected transmission means of WIFI respectively.
As shown in table 1, the size of this object transmission file of this terminal judges is 6M, this preset range is (1M, 2M], the data of this object transmission file can be divided into three data groups that differ in size, wherein, the size of data group 1 is 1M, the size of data group 2 is 2M, the size of data group 3 is 3M, select this data group 1 that does not reach this preset range to should NFC transmission means, be chosen in the corresponding Bluetooth transmission mode of data group 2 in this preset range, select the direct-connected transmission means of data group 3 corresponding WIFI.
Further or optional, after the transmission means that this terminal is selected to mate with the size of each data group, each data group can also be divided to multiple data slice, wherein, transmission means corresponding to the each data slice transmission means corresponding with the data group of this data slice ownership is consistent, referring to table 1, the data slice quantity that this terminal is divided each data group is not etc.
Data group |
The size of data group |
Data slice number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
2M |
4 |
Bluetooth |
Data group 2 |
3M |
3 |
WIFI is direct-connected |
Table 1
Optionally, this terminal can also be big or small data groups such as multiple grades by this object transmission Divide File, by corresponding the plurality of data group above-mentioned three kinds of transmission meanss, wherein, the size of each data group for do not reach this preset range (1M, 2M].
For example, as shown in table 2, the size of this object transmission file is 3M, can be the data group that 3 sizes are 1M by this object transmission Divide File, the not corresponding NFC transmission means of each data component, Bluetooth transmission mode and the direct-connected transmission means of WIFI.
Data group |
The size of data group |
Number |
Transmission means |
Data group 1 |
1M |
5 |
NFC |
Data group 2 |
1M |
5 |
Bluetooth |
Data group 2 |
1M |
5 |
WIFI is direct-connected |
Table 2
Be understandable that, this terminal can be selected NFC transmission means and Bluetooth transmission mode according to the size of these data, also can select the direct-connected transmission means of NFC transmission means and WIFI, can also select the direct-connected transmission means of Bluetooth transmission mode and WIFI.
Step 50: this terminal, by the transmission means of mating with the size of this object transmission file, is transmitted this object transmission file.
Particularly, select NFC transmission when this terminal, open NFC transport module, transmit this object transmission file; When selecting Bluetooth transmission and/or the direct-connected transmission means of WIFI, open the direct-connected transport module of Bluetooth transmission module and/or WIFI, transmit this object transmission file.
Optionally, select NFC transmission when this terminal, can, by the NFC transport module of opening in advance, transmit this object transmission file; When selecting Bluetooth transmission and/or the direct-connected transmission means of WIFI, can, by Bluetooth transmission module and/or the direct-connected transport module of WIFI opened in advance, transmit this object transmission file.
Further or optional, when this terminal is by NFC wireless transmission method, transmit after this object transmission file, judge whether this terminal exceeds with recipient 300 distance the transmission range that this NFC is connected, if exceed this transmission range, interrupt this NFC and connect, and by selecting the direct-connected transmission means of bluetooth or WIFI to continue this object transmission file of transmission to this recipient 300, otherwise, transmit this object transmission file to this recipient 300 by this NFC.
Understandable, this terminal of this terminal judges and this recipient's 300 distance exceeds the transmission range of this NFC, can display reminding frame, this terminal 100 of prompting user exceeds with this recipient's 300 distance the transmission range that this NFC is connected, this terminal is continued to transmit this object transmission file near this recipient 300, or prompting user selects bluetooth or the direct-connected continuation of WIFI to transmit this object transmission file, the transmission means that this terminal is selected according to user continues this object transmission file of transmission.
Optionally, also display reminding frame not of this terminal, selects the direct-connected transmission means of bluetooth or WIFI to continue this object transmission file of transmission automatically.
Further or optional, when the current transmission means of this terminal judges is bluetooth and/or the direct-connected transmission means of WIFI, and judge that the battery electric quantity of this terminal is lower than threshold values, when this terminal and recipient 300 are in NFC transmission range, can interrupt the direct-connected transmission means of this bluetooth and/or WIFI, continue this object transmission file of transmission by this NFC transmission means.
Further or optional, when the current transmission means of this terminal judges is bluetooth and/or the direct-connected transmission means of WIFI, and judge that the battery electric quantity of this terminal is lower than threshold values, when this terminal and this recipient's distance exceeds the transmission range of this NFC, can interrupt the direct-connected transmission means of this bluetooth and/or WIFI, continue this object transmission file of transmission to this recipient 300 by this NFC transmission means.
Further or optional, when the current transmission means of this terminal judges is bluetooth and/or the direct-connected transmission means of WIFI, and judge that the battery electric quantity of this terminal is lower than threshold values, this terminal also can continue to use WIFI direct-connected and or the transmission means of bluetooth transmit this object transmission file.
Further or optional, when the current transmission means of this terminal judges is bluetooth and/or the direct-connected transmission means of WIFI, and judge that the battery electric quantity of this terminal is lower than threshold values, this terminal can also be interrupted this bluetooth and/or the direct-connected transmission means of WIFI, thereby the transmission of interrupt targets transfer files.
In the embodiment of the present invention, this terminal, according to the size of this object transmission file, is selected the transmission means corresponding with this object transmission file size, makes this terminal can save energy consumption and improve efficiency of transmission in the time of this object transmission file of transmission.
It should be noted that, in conjunction with the various method steps of describing in embodiment disclosed herein and module, can realize with the two the combination of electronic hardware or computer software and hardware, describe in general manner in the above description step and the composition of each embodiment according to function.These functions are carried out with hardware or the mode of software and hardware actually, depend on application-specific and the design constraint of technical scheme.Those of ordinary skills can realize described function with distinct methods to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software program that the method for describing in conjunction with embodiment disclosed herein or step can use hardware, processor to carry out, or the combination of the two is implemented.Software program can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Although the present invention be have been described in detail by reference to accompanying drawing mode in conjunction with the preferred embodiments, the present invention is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skills can carry out to embodiments of the invention modification or the replacement of various equivalences, and these modifications or replacement all should be in covering scopes of the present invention.